joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402482
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
and byte [ebp - 0x12c], 0
push ebx
push esi
push edi
mov ebx, ecx
push 0x4a
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
mov ecx, ebx
mov eax, edi
shl eax, 6
add eax, 0x40483a
push eax
call fcn.00402634
mov ecx, edi
push eax
shl ecx, 4
lea esi, [ecx + 0x4048ba]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push esi
call sub.MSVCRT.dll_strcpy
push esi
call sub.MSVCRT.dll_strlen
add esp, 0xc
test eax, eax
je 0x40255a
push str.0.0.0.0
push esi
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x40255a
movzx eax, word [edi*2 + reloc.crtdll.dll_vsprintf]
push eax
push esi
lea eax, [ebp - 0x12c]
push str.CONNECT__s:_d_HTTP_1.1_r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_6.0.1.3__Windows_NT_5.0.3__r_nPragma:_no_cache__r_n_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x12c]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x14
push 0
push eax
lea eax, [ebp - 0x12c]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x40255f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.send_con_info_failed__error_num:
push str._s_d_n
call fcn.00401598
add esp, 0xc
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x402562
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402569
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x650
and byte [ebp - 0x650], 0
mov edx, ecx
push edi
mov ecx, 0x18f
xor eax, eax
lea edi, [ebp - 0x64f]
rep stosd dword es:[edi], eax
and byte [ebp - 0x10], 0
push 0
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x650]
push 0x640
push eax
push dword [edx + 4]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
pop edi
jg 0x4025be
or eax, 0xffffffff
leave
ret
lea eax, [ebp - 0x650]
push 0x10
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x10]
push 0x4043d0
push eax
call sub.MSVCRT.dll_strstr
add esp, 0x14
neg eax
sbb eax, eax
and eax, 2
dec eax
leave
ret

Function at 0x4025eb
Capabilities:
Send data
Send data on socket

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_send]
inc eax
neg eax
sbb eax, eax
and eax, 2
dec eax
ret 8

Function at 0x402617
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x402631
or eax, 0xffffffff
ret 8
Function at 0x402634
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
call esi
cmp eax, 0xffffffff
je 0x402655
push dword [ebp + 8]
call esi
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
pop esi
jne 0x402682
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x402682
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
cmp dword [eax], 0
je 0x402682
push 4
push eax
lea eax, [ebp - 4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x402689
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x10]
and dword [ebp - 4], 0
imul edx, edx, 0x9e3779b9
push esi
mov esi, dword [ebp + 0xc]
test edx, edx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
je 0x4026fe
mov esi, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
mov ebx, ecx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, dword [ebp - 4]
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, dword [ebp - 4]
xor ebx, ecx
sub dword [ebp - 4], 0x61c88647
add ebx, eax
lea eax, [ebx + edi]
mov edi, eax
mov ebx, eax
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, dword [ebp - 4]
sar ebx, 0xb
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, dword [ebp - 4]
xor ebx, eax
add ebx, ecx
cmp dword [ebp - 4], edx
lea ecx, [ebx + edi]
jne 0x4026ac
mov esi, dword [ebp + 0xc]
pop edi
pop ebx
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
leave
ret

Function at 0x402706
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
imul eax, eax, 0x61c88647
mov esi, dword [esp + 0xc]
test eax, eax
mov edx, dword [esi]
mov ecx, dword [esi + 4]
je 0x40276e
mov esi, dword [esp + 8]
push ebx
push edi
mov edi, edx
mov ebx, edx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
sar ebx, 0xb
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, edx
add eax, 0x61c88647
add edi, ebx
sub ecx, edi
mov edi, ecx
mov ebx, ecx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, ecx
add edi, ebx
sub edx, edi
test eax, eax
jne 0x402724
mov esi, dword [esp + 0x14]
pop edi
pop ebx
mov dword [esi], edx
mov dword [esi + 4], ecx
pop esi
ret

Function at 0x43b651
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
mov eax, dword [esp]
add esp, 4
or ecx, edi
mov edi, edi
sub edi, ecx
call fcn.0043b690
add ecx, 0x59f7ac4c
sub edi, 0x1902dea2
xor dword [ebx], eax
add ecx, edi
push ecx
pop ecx
sub ecx, 0xfd40ad0f
inc ebx
add edi, ecx
cmp ebx, esi
jne fcn.0043b651
mov ecx, ecx
ret
Function at 0x4eccd4
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4eca52
sub ecx, 0xea8c114e
call fcn.004ecd15
sub ecx, 0x2717da9b
dec edi
mov edi, 0x68dff77d
xor dword [edx], eax
dec edi
add ecx, edi
add edx, 1
or ecx, edi
mov edi, edi
cmp edx, esi
jl fcn.004eccd4
add edi, 1
ret

Function at 0x406fa0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
je 0x406ffe
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp esi, ebx
dec ebx
xor byte [ebp - 0xc], dh
jne 0x406fba
mov esi, 0x40f4b1
mov al, byte [esi]
cmp al, 0x30
jl 0x40707d
xchg ebp, eax
cmp esi, edx
rdmsr
iretd
cmp cl, byte [ebp - 0x14]
lea eax, [ebp + 0x2b]
mov ecx, dword [eax + 0xc]
cmp dword [edi - 0x18], ebp
jp 0x406fb3
add dh, dh
popfd
call dword [sym.imp.WSOCK32.dll_gethostbyname]
add eax, 0xcb189c3
jne 0x407010
xor eax, sym.imp.WSOCK32.dll_WSAGetLastError
call esi
test eax, eax
je 0x4070c6
inc edx
ficomp dword [esi + 5]
cmp ah, 0xa
add byte [esi - 0x69a21a75], dl
mov edx, dword [ebx + 4]
sti
push esi
add byte [ebx + 0x73], dl
and al, 0x8b
jnp 0x4070bd
popfd
invalid
cmp al, 0xf
add byte [edi], cl
test dword [edx], ebx
invalid
pop edi
push esi
xor esi, dword [edx]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4072ad
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bc7c], 0
jne 0x4072eb
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4072c1
mov dword [ecx*4 + 0x46bc78], eax
inc ecx
cmp ecx, 0x100
jl 0x4072bc
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407318
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bc78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072f9
not eax
pop ebp
ret 0xc

Function at 0x438ca6
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x438a14
add ebx, 0x78998f6d
dec esi
add ebx, 0x3fa3eda4
call fcn.00438cf2
and ebx, esi
add esi, 1
xor dword [eax], edx
sub ebx, esi
inc eax
and esi, esi
add ebx, 1
add esi, esi
cmp eax, ecx
jne fcn.00438ca6
sub ebx, 0xc7237ab2
add esi, 1
mov ebx, esi
ret

Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4
Function at 0x430ac0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4a6124]
movss xmm0, dword [0x4a6018]
push dword [0x4a72c0]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
addss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [0x4a6124], eax
call fcn.00437170
movss xmm0, dword [0x4a6374]
add esp, 4
addss xmm0, dword [0x4991d8]
push 1
movss dword [0x4a6374], xmm0
movss xmm1, dword [0x4a6374]
addss xmm1, dword [0x49ba14]
movss xmm0, dword [0x4a6518]
mulss xmm0, xmm1
movss dword [0x4a6518], xmm0
call fcn.004511d9
int3
Function at 0x4415f0
Capabilities:
Hash data with md5

Disassembly:
movsx eax, word [0x4a6418]
mov edx, ecx
movss xmm0, dword [0x4a61c8]
movss xmm2, dword [0x4991d8]
movsd xmm3, qword [0x4991e0]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
addss xmm0, xmm1
cvttss2si eax, xmm0
mov word [0x4a6418], ax
movss xmm0, dword [0x4a61c8]
addss xmm0, xmm2
movss dword [0x4a61c8], xmm0
mov dword [edx], 0
inc word [0x4a651c]
mov ax, word [0x4a651c]
movsx ecx, word [0x4a606c]
dec word [0x4a606c]
cwde
sub ecx, eax
cmp ecx, 0xb79ba2fb
jge 0x4416b6
movsd xmm1, qword [0x4a60b8]
movss xmm0, dword [str.LV_NSN]
addsd xmm1, qword [0x499f58]
cvtps2pd xmm0, xmm0
addsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [0x4a6120], eax
movss xmm0, dword [str.LV_NSN]
addss xmm0, xmm2
movss dword [str.LV_NSN], xmm0
movsd xmm0, qword [0x4a60b8]
addsd xmm0, xmm3
movsd qword [0x4a60b8], xmm0
mov dword [edx + 4], 0
movss xmm0, dword [0x4a62ec]
subss xmm0, dword [0x49bb90]
subss xmm0, dword [0x49b44c]
movss dword [0x4a60e0], xmm0
mov dword [edx + 8], 0x67452301
movsx eax, word [0x4a6230]
movss xmm1, dword [0x4a60f4]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
movsd xmm0, qword [0x4a6338]
subss xmm1, dword [0x49b338]
cvtps2pd xmm1, xmm1
mulsd xmm0, xmm1
movsd qword [0x4a6338], xmm0
movss xmm0, dword [0x4a60f4]
subss xmm0, xmm2
movss dword [0x4a60f4], xmm0
mov dword [edx + 0xc], 0xefcdab89
movsd xmm0, qword [0x4a60c0]
addsd xmm0, xmm3
movsd qword [0x4a60c0], xmm0
movsd xmm0, qword [0x4a60c0]
addsd xmm0, qword [0x4a6450]
cvttsd2si eax, xmm0
mov dword [0x4a6090], eax
mov dword [edx + 0x10], 0x98badcfe
mov eax, dword [0x4a6474]
sub eax, 0x496a8daa
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [0x4a6238], xmm0
inc dword [0x4a6474]
mov dword [edx + 0x14], 0x10325476
movss xmm0, dword [0x4a6208]
cvtps2pd xmm1, xmm0
movsd xmm0, qword [0x4a6030]
mulsd xmm0, xmm1
movsd qword [0x4a6030], xmm0
ret
Function at 0x47f0e3
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047eed7

Function at 0x481341
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00480b1b

Function at 0x48134c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00480d56

Function at 0x48b1f4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048adf9

Function at 0x48b1ff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048af7a
Function at 0x401b3c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x4109f8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xd
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x9c], eax
jb 0x401cf4
xor ebx, ebx
lea eax, [ebp - 0x8c]
mov edx, edi
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x8c], 0x401b26
mov dword [ebp - 0x88], 0x401b31
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
call fcn.004042eb
sub dword [ebp + 8], 0xd
xor eax, eax
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
add edi, 5
mov eax, dword [edi]
push eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x7c], eax
call fcn.0040c308
mov esi, eax
pop ecx
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 8]
push eax
add edi, 8
push edi
lea eax, [ebp - 0x7c]
push eax
push esi
lea edi, [ebp - 0x78]
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x80], ebx
call fcn.004041a1
add esp, 0x14
push dword [ebp - 0x68]
mov edi, eax
lea eax, [ebp - 0x8c]
push eax
call dword [ebp - 0x88]
push dword [ebp - 0x64]
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 0x68], ebx
call dword [ebp - 0x88]
add esp, 0x10
mov dword [ebp - 0x64], ebx
cmp edi, ebx
je 0x401c25
or edi, 0xffffffff
push esi
call fcn.0040c34c
pop ecx
mov eax, edi
jmp 0x401cf7
mov ecx, dword [esi]
add esi, 4
mov edi, dword [esi]
push 4
pop eax
add esi, eax
mov ebx, dword [esi]
add esi, eax
mov edx, dword [esi]
add esi, eax
mov dword [ebp - 0x90], edx
mov edx, dword [esi]
push ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x94], edx
add esi, eax
call fcn.0040c308
pop ecx
push dword [ebp - 0x80]
mov dword [ebp - 0x7c], eax
push eax
push dword [ebp - 0x94]
mov eax, dword [ebp - 0x90]
push eax
lea edx, [eax + ebx]
lea eax, [ebx + edi]
add eax, esi
push eax
push ebx
lea eax, [edi + esi]
push eax
add edx, edi
push edi
add edx, esi
push esi
call fcn.00404358
add esp, 0x24
test eax, eax
je 0x401c9e
push dword [ebp - 0x7c]
call fcn.0040c34c
mov esi, dword [ebp - 0x84]
xor edi, edi
pop ecx
inc edi
jmp 0x401c17
mov esi, dword [ebp - 0x80]
push 0
lea eax, [ebp - 0x98]
push eax
push esi
push dword [ebp - 0x7c]
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401cdf
cmp dword [ebp - 0x98], esi
jne 0x401cdf
push dword [ebp - 0x7c]
call fcn.0040c34c
pop ecx
push dword [ebp - 0x84]
call fcn.0040c34c
pop ecx
xor eax, eax
jmp 0x401cf7
push dword [ebp - 0x7c]
call fcn.0040c34c
pop ecx
push dword [ebp - 0x84]
call fcn.0040c34c
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085ae
leave
ret
Function at 0x402564
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [eax]
push ebx
push esi
push edi
sub eax, 0x10
call fcn.004022f9
mov esi, eax
push 0x44
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
add esi, 0x10
push eax
mov dword [ebp - 8], esi
call fcn.00408840
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x30], 0x81
xor eax, eax
inc eax
mov word [ebp - 0x2c], ax
cmp dword [esi - 4], eax
jle 0x4025c5
push dword [esi - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.004023a9
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4025fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea eax, [esi - 0x10]
call fcn.004010b5
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 1], 1
cmp dword [ebp + 8], ebx
je 0x402623
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne byte [ebp - 1]
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14]
call edi
mov bl, byte [ebp - 1]
jmp 0x4025ee

Function at 0x402664
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, eax
call fcn.004026fd
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4026f5
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
cmp eax, edi
je 0x4026f0
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
cmp edx, edi
je 0x4026e7
push 6
pop ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4026e7
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x10], eax
mov al, 1
jmp 0x4026f7
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004026fd
xor al, al
pop edi
pop esi
leave
ret 4
Function at 0x402755
Capabilities:
Parse pe header

Disassembly:
test ecx, ecx
jne 0x40275c
xor al, al
ret
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x402759
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x402759
mov eax, dword [eax + 0x98]
test eax, eax
je 0x402782
lea edx, [eax + ecx]
jmp 0x402784
xor edx, edx
test edx, edx
je 0x402759
lea eax, [edx + 8]
test eax, eax
je 0x402759
cmp byte [eax], 0x30
lea ecx, [eax + 1]
jne 0x4027b3
mov al, byte [ecx]
inc ecx
cmp al, 0x82
jne 0x4027b3
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
lea eax, [eax + ecx + 0x13]
and eax, 0xffffff8
jmp 0x4027b5
xor eax, eax
test eax, eax
je 0x402759
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edx
mov al, 1
ret

Function at 0x40285f
Capabilities:
Delete file

Disassembly:
push esi
xor esi, esi
cmp dword [edi + 0x10], esi
je 0x402882
test esi, esi
jl 0x402896
cmp esi, dword [edi + 0x10]
jge 0x402896
mov eax, dword [edi + 0xc]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [edi + 0x10]
jne 0x402867
lea esi, [edi + 0xc]
call fcn.00401fdb
mov eax, dword [edi + 4]
sub eax, 0x10
pop esi
jmp fcn.004010b5
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x4028a8
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4022c
call fcn.0040ba40
mov eax, dword [0x4109f8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x40220], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x40224]
push eax
mov esi, 0x200
push esi
lea eax, [ebp - 0x4020c]
push eax
push dword [edi]
mov byte [ebp - 0x4020d], 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4029af
cmp dword [ebp - 0x40224], esi
jne 0x4029af
push 4
lea eax, [ebp - 0x4010b]
push 0x40eba0
push eax
call fcn.004099a8
add esp, 0xc
test eax, eax
jne 0x40292e
mov eax, dword [ebp - 0x40220]
mov byte [eax], 1
mov al, 1
jmp 0x4029b1
push 5
lea eax, [ebp - 0x4010b]
push 0x40eb98
push eax
call fcn.004099a8
add esp, 0xc
test eax, eax
jne 0x4029af
mov eax, dword [edi + 4]
sub eax, 0x10
call fcn.004022f9
add eax, 0x10
mov dword [ebp - 0x40214], eax
push 0x40ec20
lea eax, [ebp - 0x40214]
push eax
call fcn.00402ae8
lea eax, [ebp - 0x4020c]
push eax
lea eax, [ebp - 0x40214]
push eax
call fcn.00402ae8
mov esi, dword [ebp - 0x40214]
push ebx
push 0x100
push 2
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40220], eax
cmp eax, 0xffffffff
jne 0x4029c1
lea eax, [esi - 0x10]
call fcn.004010b5
xor al, al
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.004085ae
leave
ret 4
push 8
lea eax, [ebp - 0x40190]
push ebx
push eax
call fcn.0040bc9a
add esp, 0xc
push 1
push ebx
push ebx
push dword [edi]
mov esi, eax
mov dword [ebp - 0x40218], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add eax, dword [ebp - 0x40218]
neg esi
and esi, 0x1ff
add esi, eax
mov dword [ebp - 0x40228], esi
cmp dword [ebp - 0x40218], ebx
jbe 0x402a7c
mov ecx, dword [ebp - 0x40218]
mov eax, 0x40000
mov dword [ebp - 0x4021c], eax
cmp ecx, eax
jae 0x402a20
mov dword [ebp - 0x4021c], ecx
push ebx
lea eax, [ebp - 0x40224]
push eax
push dword [ebp - 0x4021c]
lea eax, [ebp - 0x4000c]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402a76
push ebx
lea eax, [ebp - 0x40224]
push eax
push dword [ebp - 0x4021c]
lea eax, [ebp - 0x4000c]
push eax
push dword [ebp - 0x40220]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402a76
mov eax, dword [ebp - 0x4021c]
sub dword [ebp - 0x40218], eax
jne 0x402a05
jmp 0x402a7c
mov byte [ebp - 0x4020d], bl
push dword [ebp - 0x40220]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x4020d], bl
je 0x402abf
cmp byte [edi + 8], bl
je 0x402aab
lea esi, [edi + 0xc]
lea ebx, [ebp - 0x40214]
call fcn.00401f65
mov esi, dword [ebp - 0x40228]
xor ebx, ebx
mov eax, dword [edi + 0x18]
cmp eax, ebx
je 0x402abf
push dword [ebp - 0x40214]
push dword [edi + 0x1c]
call eax
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x402acf
push ebx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x40214]
add eax, 0xfffffff0
call fcn.004010b5
mov al, byte [ebp - 0x4020d]
jmp 0x4029b1