joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1131610
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
mov dword [eax + 0x1c], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
xor eax, eax
pop ebp
ret

Function at 0x1131700
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1c]
mov edx, 0x40
cmp eax, edx
jb 0x1131719
lea eax, [edx - 0x30]
pop esi
pop ebp
ret
lea ecx, [eax*8]
add dword [esi], ecx
push ebx
mov ebx, 0
adc dword [esi + 4], ebx
push edi
mov byte [eax + esi + 0x20], 0x80
mov edi, 1
add dword [esi + 0x1c], edi
mov eax, dword [esi + 0x1c]
mov ecx, 0x38
cmp eax, ecx
jbe 0x1131772
cmp eax, edx
jae 0x113175e
lea esp, [esp]
mov byte [eax + esi + 0x20], bl
add dword [esi + 0x1c], edi
mov eax, dword [esi + 0x1c]
cmp eax, edx
jb 0x1131750
lea edx, [esi + 0x20]
push esi
call fcn.01131110
add esp, 4
mov dword [esi + 0x1c], ebx
mov ecx, 0x38
cmp dword [esi + 0x1c], ecx
jae 0x113178f
jmp 0x1131780
mov edx, dword [esi + 0x1c]
mov byte [esi + edx + 0x20], bl
add dword [esi + 0x1c], edi
cmp dword [esi + 0x1c], ecx
jb 0x1131780
movzx eax, byte [esi + 7]
movzx ecx, byte [esi + 6]
movzx edx, byte [esi + 5]
mov byte [esi + 0x58], al
movzx eax, byte [esi + 4]
mov byte [esi + 0x59], cl
movzx ecx, byte [esi + 3]
mov byte [esi + 0x5a], dl
movzx edx, byte [esi + 2]
mov byte [esi + 0x5b], al
movzx eax, byte [esi + 1]
mov byte [esi + 0x5c], cl
movzx ecx, byte [esi]
mov byte [esi + 0x5d], dl
lea edx, [esi + 0x20]
push esi
mov byte [esi + 0x5e], al
mov byte [esi + 0x5f], cl
call fcn.01131110
movzx edx, byte [esi + 0xb]
mov eax, dword [ebp + 0xc]
mov byte [eax], dl
movzx ecx, byte [esi + 0xa]
mov byte [eax + 1], cl
movzx edx, byte [esi + 9]
mov byte [eax + 2], dl
movzx ecx, byte [esi + 8]
mov byte [eax + 3], cl
movzx edx, byte [esi + 0xf]
mov byte [eax + 4], dl
movzx ecx, byte [esi + 0xe]
mov byte [eax + 5], cl
movzx edx, byte [esi + 0xd]
mov byte [eax + 6], dl
movzx ecx, byte [esi + 0xc]
mov byte [eax + 7], cl
movzx edx, byte [esi + 0x13]
mov byte [eax + 8], dl
movzx ecx, byte [esi + 0x12]
mov byte [eax + 9], cl
movzx edx, byte [esi + 0x11]
mov byte [eax + 0xa], dl
movzx ecx, byte [esi + 0x10]
mov byte [eax + 0xb], cl
movzx edx, byte [esi + 0x17]
mov byte [eax + 0xc], dl
movzx ecx, byte [esi + 0x16]
mov byte [eax + 0xd], cl
movzx edx, byte [esi + 0x15]
mov byte [eax + 0xe], dl
movzx ecx, byte [esi + 0x14]
mov byte [eax + 0xf], cl
movzx edx, byte [esi + 0x1b]
mov byte [eax + 0x10], dl
movzx ecx, byte [esi + 0x1a]
mov byte [eax + 0x11], cl
movzx edx, byte [esi + 0x19]
add esp, 4
mov byte [eax + 0x12], dl
movzx ecx, byte [esi + 0x18]
pop edi
pop ebx
mov byte [eax + 0x13], cl
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1131ea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x23c], 0
jne 0x1131ff4
mov eax, dword [esi + 0x240]
cmp eax, 0x10
jge 0x1131ff4
test eax, eax
js 0x1131ff4
mov eax, dword [esi + 0x234]
push eax
call fcn.01135ea0
add esp, 4
test eax, eax
jne 0x1131ff9
mov ecx, dword [esi + 0x240]
mov eax, dword [ebp + 0x10]
lea edx, [ecx + eax]
cmp edx, 0xc
jbe 0x1131efa
or dword [esi + 0x238], 1
push ebx
push edi
xor edi, edi
test ecx, ecx
jne 0x1131f55
mov ecx, eax
and ecx, 0xfffffff0
mov dword [ebp + 8], ecx
jbe 0x1131f4e
lea ebx, [esi + 0x1f4]
xor eax, eax
mov edx, dword [ebp + 0xc]
lea ecx, [eax + edi]
mov ecx, dword [ecx + edx]
xor dword [ebx + eax], ecx
add eax, 4
cmp eax, 0x10
jb 0x1131f14
push ebx
push esi
call fcn.01135e10
add esp, 8
add dword [esi + 0x248], 0x80
adc dword [esi + 0x24c], 0
add edi, 0x10
cmp edi, dword [ebp + 8]
jb 0x1131f12
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
add ebx, edi
jmp 0x1131f58
mov ebx, dword [ebp + 0xc]
cmp edi, eax
jae 0x1131fed
sub eax, edi
mov dword [ebp + 8], eax
mov ecx, 1
lea ebx, [ebx]
mov al, byte [ebx]
mov edx, dword [esi + 0x240]
mov byte [esi + edx + 0x224], al
add dword [esi + 0x240], ecx
add ebx, ecx
cmp dword [esi + 0x240], 0x10
jne 0x1131fe3
lea edi, [esi + 0x1f4]
mov eax, edi
mov ecx, 4
lea ecx, [ecx]
movzx edx, byte [eax + 0x30]
xor byte [eax], dl
movzx edx, byte [eax + 0x31]
xor byte [eax + 1], dl
movzx edx, byte [eax + 0x32]
xor byte [eax + 2], dl
movzx edx, byte [eax + 0x33]
xor byte [eax + 3], dl
add eax, 4
dec ecx
jne 0x1131fa0
push edi
push esi
call fcn.01135e10
xor eax, eax
add esp, 8
add dword [esi + 0x248], 0x80
mov dword [esi + 0x240], eax
adc dword [esi + 0x24c], eax
mov ecx, 1
sub dword [ebp + 8], ecx
jne 0x1131f70
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret
mov eax, 0x10
pop esi
pop ebp
ret
Function at 0x1135330
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x28], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
xor eax, eax
pop ebp
ret
Function at 0x1135430
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x28]
mov edx, 0x40
cmp eax, edx
jb 0x1135449
lea eax, [edx - 0x30]
pop esi
pop ebp
ret
lea ecx, [eax*8]
add dword [esi], ecx
push ebx
mov ebx, 0
adc dword [esi + 4], ebx
push edi
mov byte [eax + esi + 0x2c], 0x80
mov edi, 1
add dword [esi + 0x28], edi
mov eax, dword [esi + 0x28]
mov ecx, 0x38
cmp eax, ecx
jbe 0x11354a2
cmp eax, edx
jae 0x113548e
lea esp, [esp]
mov byte [eax + esi + 0x2c], bl
add dword [esi + 0x28], edi
mov eax, dword [esi + 0x28]
cmp eax, edx
jb 0x1135480
lea eax, [esi + 0x2c]
push esi
call fcn.01133880
add esp, 4
mov dword [esi + 0x28], ebx
mov ecx, 0x38
cmp dword [esi + 0x28], ecx
jae 0x11354bf
jmp 0x11354b0
mov edx, dword [esi + 0x28]
mov byte [esi + edx + 0x2c], bl
add dword [esi + 0x28], edi
cmp dword [esi + 0x28], ecx
jb 0x11354b0
movzx eax, byte [esi + 7]
movzx ecx, byte [esi + 6]
movzx edx, byte [esi + 5]
mov byte [esi + 0x64], al
movzx eax, byte [esi + 4]
mov byte [esi + 0x65], cl
movzx ecx, byte [esi + 3]
mov byte [esi + 0x67], al
movzx eax, byte [esi + 1]
mov byte [esi + 0x66], dl
movzx edx, byte [esi + 2]
mov byte [esi + 0x68], cl
movzx ecx, byte [esi]
mov byte [esi + 0x6a], al
lea eax, [esi + 0x2c]
push esi
mov byte [esi + 0x69], dl
mov byte [esi + 0x6b], cl
call fcn.01133880
movzx edx, byte [esi + 0xb]
mov eax, dword [ebp + 0xc]
mov byte [eax], dl
movzx ecx, byte [esi + 0xa]
mov byte [eax + 1], cl
movzx edx, byte [esi + 9]
mov byte [eax + 2], dl
movzx ecx, byte [esi + 8]
mov byte [eax + 3], cl
movzx edx, byte [esi + 0xf]
mov byte [eax + 4], dl
movzx ecx, byte [esi + 0xe]
mov byte [eax + 5], cl
movzx edx, byte [esi + 0xd]
mov byte [eax + 6], dl
movzx ecx, byte [esi + 0xc]
mov byte [eax + 7], cl
movzx edx, byte [esi + 0x13]
mov byte [eax + 8], dl
movzx ecx, byte [esi + 0x12]
mov byte [eax + 9], cl
movzx edx, byte [esi + 0x11]
mov byte [eax + 0xa], dl
movzx ecx, byte [esi + 0x10]
mov byte [eax + 0xb], cl
movzx edx, byte [esi + 0x17]
mov byte [eax + 0xc], dl
movzx ecx, byte [esi + 0x16]
mov byte [eax + 0xd], cl
movzx edx, byte [esi + 0x15]
mov byte [eax + 0xe], dl
movzx ecx, byte [esi + 0x14]
mov byte [eax + 0xf], cl
movzx edx, byte [esi + 0x1b]
mov byte [eax + 0x10], dl
movzx ecx, byte [esi + 0x1a]
mov byte [eax + 0x11], cl
movzx edx, byte [esi + 0x19]
mov byte [eax + 0x12], dl
movzx ecx, byte [esi + 0x18]
mov byte [eax + 0x13], cl
movzx edx, byte [esi + 0x1f]
mov byte [eax + 0x14], dl
movzx ecx, byte [esi + 0x1e]
mov byte [eax + 0x15], cl
movzx edx, byte [esi + 0x1d]
mov byte [eax + 0x16], dl
movzx ecx, byte [esi + 0x1c]
mov byte [eax + 0x17], cl
movzx edx, byte [esi + 0x23]
mov byte [eax + 0x18], dl
movzx ecx, byte [esi + 0x22]
mov byte [eax + 0x19], cl
movzx edx, byte [esi + 0x21]
mov byte [eax + 0x1a], dl
movzx ecx, byte [esi + 0x20]
mov byte [eax + 0x1b], cl
movzx edx, byte [esi + 0x27]
mov byte [eax + 0x1c], dl
movzx ecx, byte [esi + 0x26]
add esp, 4
mov byte [eax + 0x1d], cl
movzx edx, byte [esi + 0x25]
mov byte [eax + 0x1e], dl
movzx ecx, byte [esi + 0x24]
pop edi
pop ebx
mov byte [eax + 0x1f], cl
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1135c60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 8
mov dword [ebp - 4], edi
cmp eax, edi
je 0x1135d04
push esi
mov eax, dword [ebp + 0x10]
dec dword [ebp + 0xc]
test eax, eax
je 0x1135c91
call eax
dec dword [ebp - 8]
call fcn.01150a9b
mov esi, eax
call fcn.01150a9b
cmp esi, eax
jne 0x1135cb0
xor edi, 1
call fcn.01150a9b
cmp esi, eax
je 0x1135ca4
call fcn.01150a9b
mov esi, eax
call fcn.01150a9b
cmp esi, eax
jne 0x1135ccc
xor ebx, 1
call fcn.01150a9b
cmp esi, eax
je 0x1135cc0
cmp edi, ebx
je 0x1135c94
mov eax, dword [ebp - 4]
lea ecx, [eax + eax]
or ecx, edi
cmp dword [ebp - 8], 0
mov dword [ebp - 4], ecx
jne 0x1135c91
mov eax, dword [ebp + 8]
mov dl, cl
mov byte [eax], dl
inc eax
cmp dword [ebp + 0xc], 0
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 8
jne 0x1135c85
mov eax, dword [ebp - 0xc]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1135e10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
movzx eax, byte [edi]
add eax, eax
lea edx, [ecx + eax*8 + 0x258]
push 0x10
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.0114f0a0
add esp, 0xc
mov esi, 1
mov edx, 0x100
movzx ecx, byte [esi + edi]
mov ebx, dword [ebp + 8]
add ecx, edx
xor eax, eax
add ecx, ecx
lea ecx, [ebx + ecx*8 + 0x258]
jmp 0x1135e60
mov ebx, dword [ecx]
xor dword [ebp + eax - 0x10], ebx
add eax, 4
add ecx, 4
cmp eax, 0x10
jl 0x1135e60
add edx, 0x100
inc esi
cmp edx, 0x1000
jl 0x1135e44
push 0x10
lea edx, [ebp - 0x10]
push edx
push edi
call fcn.0114f0a0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x113f5e4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, edx
mov eax, edx
xor eax, dword [ebp + 0x10]
shr ecx, 5
inc ecx
cmp edx, ecx
jb 0x113f61b
push esi
push edi
mov esi, dword [ebp + 8]
movzx esi, byte [esi + edx - 1]
mov edi, eax
shl edi, 5
add esi, edi
mov edi, eax
shr edi, 2
add esi, edi
sub edx, ecx
xor eax, esi
cmp edx, ecx
jae 0x113f5fb
pop edi
pop esi
pop ebp
ret

Function at 0x1143780
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
mov esi, 0x200
call fcn.01137426
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.011372c5
push dword [ebp + 0xc]
push esi
push 1
push eax
call fcn.0114ebcd
add esp, 0x20
jmp 0x11437e2
cmp esi, 0x3fffffff
ja 0x11437c6
add esi, esi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.011372c5
push dword [ebp + 0xc]
push esi
push 1
push eax
call fcn.0114ebcd
add esp, 0x18
add dword [ebp - 0x208], eax
cmp eax, esi
jae 0x11437bc
lea eax, [ebp - 0x210]
push eax
call fcn.0113738e
pop ecx
pop esi
leave
ret

Function at 0x11437fc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call fcn.01137426
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
call fcn.011372c5
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 1
push eax
call fcn.0114ebcd
mov esi, eax
add dword [ebp - 0x208], esi
lea eax, [ebp - 0x210]
push eax
call fcn.0113738e
xor eax, eax
add esp, 0x24
cmp eax, esi
sbb eax, eax
neg eax
pop esi
leave
ret

Function at 0x1143aed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, eax
call fcn.011383d4
pop ecx
mov esi, eax
sub esi, ebx
push 1
pop edi
je 0x1143b7e
push ebx
push dword [ebp + 8]
dec esi
call fcn.01138563
pop ecx
pop ecx
cmp eax, 3
jne 0x1143b47
test edi, edi
je 0x1143b73
push 0
push ebx
push dword [ebp + 8]
call fcn.0113874c
fstp qword [esp + 4]
mov dword [esp], str._.14g
push dword [ebp + 0xc]
call fcn.0114c20d
add esp, 0x10
test eax, eax
jle 0x1143b73
xor edi, edi
inc edi
jmp 0x1143b75
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
call fcn.01137f48
add esp, 0xc
test edi, edi
je 0x1143b73
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp - 4]
inc edi
push edi
push eax
call fcn.0114d7fe
add esp, 0x10
cmp eax, dword [ebp - 4]
je 0x1143b75
xor edi, edi
inc ebx
test esi, esi
jne 0x1143b08
test edi, edi
je 0x1143b83
xor eax, eax
inc eax
jmp 0x1143b92
push 0
push 0
push dword [ebp + 8]
call fcn.011370ef
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4015dd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x401550
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esp, ebp
pop ebp
ret

Function at 0x401609
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0x9e3779b9
mov dword [ebp - 0x14], 0x20
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
sub edx, 1
mov dword [ebp - 0x14], edx
test ecx, ecx
jbe 0x4016a3
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
shl ecx, 4
mov edx, dword [ebp + 0xc]
add ecx, dword [edx]
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 4]
xor ecx, eax
mov edx, dword [ebp - 0x10]
shr edx, 5
mov eax, dword [ebp + 0xc]
add edx, dword [eax + 4]
xor ecx, edx
mov edx, dword [ebp - 8]
add edx, ecx
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
shl eax, 4
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 8]
mov edx, dword [ebp - 8]
add edx, dword [ebp - 4]
xor eax, edx
mov ecx, dword [ebp - 8]
shr ecx, 5
mov edx, dword [ebp + 0xc]
add ecx, dword [edx + 0xc]
xor eax, ecx
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x10], ecx
jmp 0x401635
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 4], edx
mov esp, ebp
pop ebp
ret

Function at 0x4016b8
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0x9e3779b9
mov dword [ebp - 0x14], 0x20
mov ecx, dword [ebp - 0xc]
shl ecx, 5
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
sub eax, 1
mov dword [ebp - 0x14], eax
test edx, edx
jbe 0x401754
mov ecx, dword [ebp - 8]
shl ecx, 4
mov edx, dword [ebp + 0xc]
add ecx, dword [edx + 8]
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
xor ecx, eax
mov edx, dword [ebp - 8]
shr edx, 5
mov eax, dword [ebp + 0xc]
add edx, dword [eax + 0xc]
xor ecx, edx
mov edx, dword [ebp - 0x10]
sub edx, ecx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
shl eax, 4
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx]
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 4]
xor eax, edx
mov ecx, dword [ebp - 0x10]
shr ecx, 5
mov edx, dword [ebp + 0xc]
add ecx, dword [edx + 4]
xor eax, ecx
mov ecx, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
jmp 0x4016e6
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov dword [edx + 4], eax
mov esp, ebp
pop ebp
ret
Function at 0x40182a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40184b
xor eax, eax
jmp 0x401888
mov dword [ebp - 8], 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x40186b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebp - 8], 0
sete al
mov esp, ebp
pop ebp
ret

Function at 0x401914
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0x14], 0
jl 0x401929
cmp dword [ebp + 0x14], 0x7fffffff
jne 0x40194a
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
jmp 0x401969
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0xffffffff
je 0x4019d9
cmp dword [ebp + 0x14], 0x7fffffff
jne 0x40198e
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 0x14], eax
cmp dword [ebp + 0x14], 0
jl 0x4019a6
push 0
push 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4019dd
xor eax, eax
jmp 0x4019e0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x401a70
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3fc
xor eax, eax
test eax, eax
je 0x401ce2
push 0x3e8
push 0
lea ecx, [ebp - 0x3e8]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea edx, [ebp - 0x3f8]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0xa
push 2
mov eax, dword [ebp - 0x3f2]
and eax, 0xffff
push eax
lea ecx, [ebp - 0x3e8]
push ecx
call fcn.00401cfa
add esp, 0x10
push 0x401198
lea edx, [ebp - 0x3e8]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0xa
push 2
mov eax, dword [ebp - 0x3f6]
and eax, 0xffff
push eax
lea ecx, [ebp - 0x3e8]
push ecx
call fcn.00401cfa
add esp, 0x10
push 0x40119c
lea edx, [ebp - 0x3e8]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0xa
push 4
mov eax, dword [ebp - 0x3f8]
and eax, 0xffff
push eax
lea ecx, [ebp - 0x3e8]
push ecx
call fcn.00401cfa
add esp, 0x10
push 0x4011a0
lea edx, [ebp - 0x3e8]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0xa
push 2
mov eax, dword [ebp - 0x3f0]
and eax, 0xffff
push eax
lea ecx, [ebp - 0x3e8]
push ecx
call fcn.00401cfa
add esp, 0x10
push 0x4011a4
lea edx, [ebp - 0x3e8]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0xa
push 2
mov eax, dword [ebp - 0x3ee]
and eax, 0xffff
push eax
lea ecx, [ebp - 0x3e8]
push ecx
call fcn.00401cfa
add esp, 0x10
push 0x4011a8
lea edx, [ebp - 0x3e8]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0xa
push 2
mov eax, dword [ebp - 0x3ec]
and eax, 0xffff
push eax
lea ecx, [ebp - 0x3e8]
push ecx
call fcn.00401cfa
add esp, 0x10
push 0x4011ac
lea edx, [ebp - 0x3e8]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0xa
push 3
mov eax, dword [ebp - 0x3ea]
and eax, 0xffff
push eax
lea ecx, [ebp - 0x3e8]
push ecx
call fcn.00401cfa
add esp, 0x10
push 0x4011b0
lea edx, [ebp - 0x3e8]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
mov eax, dword [ebp + 8]
and eax, 0xff
mov dword [ebp - 0x3fc], eax
cmp dword [ebp - 0x3fc], 4
ja case.0x401c28.2
mov ecx, dword [ebp - 0x3fc]
jmp dword [ecx*4 + 0x401ce6]
push 0x4011b4
lea edx, [ebp - 0x3e8]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
jmp case.0x401c28.2
push 0x4011c0
lea eax, [ebp - 0x3e8]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
jmp case.0x401c28.2
push 0x4011cc
lea ecx, [ebp - 0x3e8]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
jmp case.0x401c28.2
push 0x4011d8
lea edx, [ebp - 0x3e8]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x3e8]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x401150
lea edx, [ebp - 0x3e8]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x7fffffff
lea eax, [ebp - 0x3e8]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
lea ecx, [ebp - 0x3e8]
push ecx
push 0x4011e4
call fcn.00401914
add esp, 0x10
push 2
push 0x4011f4
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esp, ebp
pop ebp
ret
Function at 0x4020ce
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0x104
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x401250
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
pop ebp
ret

Function at 0x4021dd
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push 0x401268
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [ebp - 0x400], eax
cmp dword [ebp - 0x400], 0xffffffff
je 0x402318
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x404], eax
cmp dword [ebp - 0x404], 0
je 0x402318
mov ecx, dword [ebp - 0x404]
add ecx, 0x10
mov dword [ebp - 0x404], ecx
mov edx, dword [ebp - 0x404]
add edx, 0x10
mov dword [ebp - 0x404], edx
mov dword [ebp - 0x408], 0
push 4
mov eax, dword [ebp - 0x404]
push eax
lea ecx, [ebp - 0x408]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [ebp - 0x408], 0x3e8
jne 0x40228c
mov dword [ebp - 0x408], 0
mov edx, dword [ebp - 0x404]
add edx, 0x10
mov dword [ebp - 0x404], edx
mov eax, dword [ebp - 0x408]
imul eax, eax, 0x104
mov ecx, dword [ebp - 0x404]
lea edx, [ecx + eax*4]
mov dword [ebp - 0x404], edx
mov eax, dword [ebp + 8]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 1
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0x104
ja 0x4022f1
mov ecx, dword [ebp - 0x40c]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x404]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x408]
add ecx, 1
mov dword [ebp - 0x408], ecx
push 4
lea edx, [ebp - 0x408]
push edx
mov eax, dword [ebp - 0x404]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0x401274
lea ecx, [ebp - 0x3fc]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x3fc]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x401278
lea ecx, [ebp - 0x3fc]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x40127c
lea edx, [ebp - 0x3fc]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x401284
lea eax, [ebp - 0x3fc]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
push 0xa
lea ecx, [ebp - 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
call fcn.00402174
push eax
call sub.MSVCRT.dll__itoa
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x3fc]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x401290
lea ecx, [ebp - 0x3fc]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea edx, [ebp - 0x3fc]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x3fc]
push eax
call fcn.00402420
add esp, 4
mov esp, ebp
pop ebp
ret