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

Disassembly:
push ecx
push ecx
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebp, ebp
push edi
mov edi, ebp
test esi, esi
je 0x4044b9
push dword [esp + 0x18]
push dword [0x4e516c]
call fcn.0040c80a
test eax, eax
je 0x4044b9
push esi
mov dword [esp + 0x24], ebp
call sub.MSVCRT.dll_wcslen
pop ecx
push 0x2e
pop edx
lea eax, [esi + eax*2]
jmp 0x4043dd
movzx ecx, word [eax]
cmp cx, dx
je 0x4043e6
cmp ecx, 0x2f
je 0x4043e1
cmp ecx, 0x5c
je 0x4043e1
sub eax, 2
cmp eax, esi
ja 0x4043c8
cmp word [eax], dx
jne 0x4043ed
add eax, 2
mov dword [esp + 0x20], eax
push ebx
push ebp
push pe_nt_image_headers32
push 3
push ebp
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
test ebx, ebx
je 0x4044b8
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
lea eax, [ebp - 1]
cmp eax, 0x5f5e0fe
ja 0x4044b1
push ebp
push 0
push dword [0x4e4690]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x4044b1
push 0
lea eax, [esp + 0x18]
push eax
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esp + 0x28]
xor eax, eax
test edi, edi
je 0x40445f
cmp word [edi], ax
jne 0x40448f
mov edi, 0x4cf234
mov esi, eax
push dword [esp + 0x24]
push dword [esi*8 + 0x4e1844]
call sub.MSVCRT.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
je 0x404484
inc esi
cmp esi, 0x5d
jb 0x404466
jmp 0x40448b
mov edi, dword [esi*8 + 0x4e1840]
mov esi, dword [esp + 0x10]
push edi
push ebp
push esi
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.00404d77
mov edi, eax
xor eax, eax
push esi
push eax
push dword [0x4e4690]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret 0x10
Function at 0x4049f7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 8]
xor ebx, ebx
push dword [0x4e516c]
call fcn.0040c80a
mov edi, eax
test edi, edi
je 0x404b1f
cmp dword [ebp + 0xc], ebx
je 0x404b1f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x2c], 0xa
cmp dword [edi + 0x18], ebx
je 0x404a41
push dword [edi + 0x18]
push ebx
push dword [0x4e4690]
call esi
cmp dword [edi + 0x1c], ebx
je 0x404a52
push dword [edi + 0x1c]
push ebx
push dword [0x4e4690]
call esi
cmp dword [edi + 0x20], ebx
je 0x404a63
push dword [edi + 0x20]
push ebx
push dword [0x4e4690]
call esi
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x24], eax
cmp dword [ebp + 0x18], ebx
je 0x404a8d
push dword [ebp + 0x18]
call fcn.004c4a70
mov esi, eax
push esi
call fcn.00404d00
push esi
mov dword [edi + 0x18], eax
call fcn.004c4a60
cmp dword [ebp + 0x1c], ebx
je 0x404aab
push dword [ebp + 0x1c]
call fcn.004c4a70
mov esi, eax
push esi
call fcn.00404d00
push esi
mov dword [edi + 0x1c], eax
call fcn.004c4a60
push dword [ebp + 0xc]
call fcn.004c4a70
mov esi, eax
push esi
call sub.MSVCRT.dll_strlen
pop ecx
sub eax, 0xffffff80
push eax
push ebx
push dword [0x4e4690]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 0x10]
mov dword [edi + 0x20], eax
push esi
push str.smtp:___s:_d
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x10
push esi
call fcn.004c4a60
test byte [ebp + 0x14], 1
pop esi
je 0x404b16
lea eax, [ebp + 0x18]
push eax
push ebx
push edi
push 0x404cf1
push 0x20000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x404b1f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
jmp 0x404b1f
push edi
call fcn.00404b81
pop ecx
mov ebx, eax
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 0x18

Function at 0x40583a
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push edi
xor edi, edi
inc edi
cmp dword [0x4e48c4], 0
jne 0x405866
push fcn.00405789
push 0x10
push 0x2c
mov dword [0x4e48c4], edi
call fcn.0040c8b3
mov dword [0x4e48c0], eax
cmp word [0x4e48b8], 0
jne 0x405902
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x405891
mov word [0x4e48b8], di
jmp 0x405899
xor eax, eax
mov word [0x4e48b8], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4e48d4], eax
test eax, eax
je 0x405902
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4cf5b4
push eax
call esi
push 0x4cf5c0
push dword [0x4e48d4]
mov dword [0x4e48c8], eax
call esi
push str.getnameinfo
push dword [0x4e48d4]
mov dword [0x4e48cc], eax
call esi
cmp dword [0x4e48c8], 0
mov dword [0x4e48d0], eax
pop esi
je 0x405902
cmp dword [0x4e48cc], 0
je 0x405902
test eax, eax
je 0x405902
mov dword [0x4e48bc], edi
movsx eax, word [0x4e48b8]
pop edi
add esp, 0x190
ret
Function at 0x405a48
Capabilities:
Set socket configuration

Disassembly:
push ecx
push ecx
push ebx
push edi
push dword [esp + 0x14]
xor edi, edi
push dword [0x4e48c0]
call fcn.0040c832
mov ebx, eax
test ebx, ebx
je 0x405bd9
cmp dword [esp + 0x18], 0xffff
push ebp
push esi
ja 0x405bc0
mov ebp, dword [esp + 0x24]
push 2
pop ecx
push 0x17
pop eax
test ebp, 0x10000000
je 0x405a95
mov dword [esp + 0x24], eax
and ebp, 0xefffffff
jmp 0x405a9b
mov eax, ecx
mov dword [esp + 0x24], ecx
test ebp, ebp
jne 0x405aa0
inc ebp
push edi
push ebp
push eax
call dword [sym.imp.WSOCK32.DLL_socket]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
je 0x405bc0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WSOCK32.DLL_ioctlsocket]
cmp eax, 0xffffffff
jle 0x405bb5
push 0x17
pop eax
cmp dword [esp + 0x24], eax
je 0x405ae6
push 2
pop eax
push dword [esp + 0x20]
mov word [ebx + 4], ax
call dword [sym.imp.WSOCK32.DLL_htons]
mov word [ebx + 6], ax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x405b40
cmp word [eax], di
je 0x405b40
push eax
call fcn.004c4a70
cmp dword [esp + 0x24], 0x17
mov dword [esp + 0x20], eax
jne 0x405b27
lea ecx, [ebx + 4]
push ecx
push eax
push 0x17
call fcn.004059bd
add esp, 0xc
jmp 0x405b31
push eax
call dword [sym.imp.WSOCK32.DLL_inet_addr]
mov dword [ebx + 8], eax
push dword [esp + 0x20]
call fcn.004c4a60
mov eax, dword [esp + 0x24]
jmp 0x405b60
mov eax, dword [esp + 0x24]
cmp eax, 0x17
jne 0x405b5d
mov esi, 0x4cf598
lea edi, [ebx + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x14]
xor edi, edi
jmp 0x405b65
mov dword [ebx + 8], edi
cmp eax, 0x17
jne 0x405b69
push 0x1c
jmp 0x405b6b
push 0x10
lea eax, [ebx + 4]
push eax
push esi
call dword [sym.imp.WSOCK32.DLL_bind]
test eax, eax
jne 0x405bb5
cmp ebp, 1
jne 0x405b8c
push 0x64
push esi
call dword [sym.imp.WSOCK32.DLL_listen]
test eax, eax
jne 0x405bb5
xor eax, eax
mov dword [ebx], esi
cmp dword [esp + 0x24], 0x17
mov word [ebx + 0x20], bp
sete al
mov word [ebx + 0x22], ax
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
jne 0x405bae
mov dword [ebx + 0x24], ebx
jmp 0x405bb1
mov dword [ebx + 0x24], eax
mov edi, ebx
jmp 0x405bbc
push esi
call dword [sym.imp.WSOCK32.DLL_closesocket]
test edi, edi
jne 0x405bd7
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x405bcb
mov ebx, eax
push ebx
push dword [0x4e48c0]
call fcn.0040c7d0
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
pop ecx
ret 0x10
Function at 0x405bf4
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x814
xor ecx, ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x828]
xor ebx, ebx
inc ebx
mov ebp, ecx
cmp word [edi + 0x20], bx
jne 0x405c53
push ecx
push ecx
push dword [edi]
call dword [sym.imp.WSOCK32.DLL_accept]
mov esi, eax
cmp esi, 0xffffffff
je 0x405d4e
lea eax, [edi + 0x28]
push 0x18
push eax
call fcn.0040c9f4
pop ecx
pop ecx
mov ecx, eax
mov ebp, ebx
mov dword [ecx], ebx
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edi
mov eax, dword [edi + 0x24]
mov dword [0x4e517c], eax
mov dword [0x4e5178], ecx
jmp 0x405d4e
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x10
push eax
lea eax, [esp + 0x18]
push eax
push ecx
push 0x800
lea eax, [esp + 0x34]
push eax
push dword [edi]
call dword [sym.imp.WSOCK32.DLL_recvfrom]
mov ebx, eax
test ebx, ebx
jle 0x405d4e
mov esi, dword [edi + 0x28]
push 2
pop ebp
push dword [esp + 0x16]
call dword [sym.imp.WSOCK32.DLL_ntohs]
movzx ecx, ax
test esi, esi
je 0x405cad
mov eax, dword [esp + 0x18]
cmp dword [esi + 0x10], ecx
jne 0x405ca7
cmp dword [esi + 0xc], eax
je 0x405d07
mov esi, dword [esi]
test esi, esi
jne 0x405c9d
lea eax, [edi + 0x28]
push 0x28
push eax
call fcn.0040c9f4
mov esi, eax
pop ecx
pop ecx
mov dword [esi], ebp
push dword [esp + 0x16]
call dword [sym.imp.WSOCK32.DLL_ntohs]
movzx eax, ax
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
cmp dword [esi + 0x14], 0
jne 0x405d0c
push ebx
push 0
push dword [0x4e4690]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
lea ecx, [esp + 0x28]
mov dword [esi + 0x14], eax
push ecx
push eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x405d3f
add esi, 8
jmp 0x405cd8
mov eax, dword [esi + 0x18]
add eax, ebx
push eax
push dword [esi + 0x14]
push 8
push dword [0x4e4690]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
lea eax, [esp + 0x24]
push ebx
push eax
mov eax, dword [esi + 0x18]
add eax, ecx
mov dword [esi + 0x14], ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [esi + 0x18], ebx
mov dword [0x4e5178], esi
mov ecx, dword [edi + 0x24]
mov dword [0x4e517c], ecx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x814
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [esi], 1
jne 0x405faf
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.WSOCK32.DLL_recv]
mov edi, eax
jmp 0x405fec
cmp dword [esi + 0x14], ebx
je 0x405fec
mov edi, dword [ebp + 0x10]
cmp edi, dword [esi + 0x18]
jle 0x405fbf
mov edi, dword [esi + 0x18]
push edi
push dword [esi + 0x1c]
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0x18], edi
add esp, 0xc
add dword [esi + 0x1c], edi
cmp dword [esi + 0x18], ebx
jne 0x405fec
push dword [esi + 0x14]
push ebx
push dword [0x4e4690]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x14], ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4065cc
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
cmp eax, 0xffffffff
jne 0x4065ef
lea eax, [ebp + 0xc]
push eax
push 0x4004667f
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.DLL_ioctlsocket]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x406636
push 2
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.DLL_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40662f
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
cmp eax, 0x2745
je 0x406633
cmp eax, 0x2746
je 0x406633
cmp eax, 0x2749
je 0x406633
cmp eax, 0x274a
je 0x406633
xor esi, esi
jmp 0x406636
test esi, esi
jne 0x406636
push 0xfffffffffffffffe
pop esi
mov eax, esi
pop esi
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 1
jne 0x406687
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.WSOCK32.DLL_send]
jmp 0x4066c6
push 2
pop eax
mov word [ebp - 0x10], ax
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], eax
movzx eax, word [esi + 8]
push eax
call dword [sym.imp.WSOCK32.DLL_htons]
mov word [ebp - 0xe], ax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4066ae
mov eax, dword [eax]
jmp 0x4066b1
mov eax, dword [esi + 0x10]
push 0x10
lea ecx, [ebp - 0x10]
push ecx
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WSOCK32.DLL_sendto]
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4067f0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x40682c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x406aa0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x406b94
cmp word [edx], 0
je 0x406b94
mov ecx, dword [esp + 0x10]
push esi
cmp ecx, 0x19
jne 0x406b2d
mov esi, dword [esp + 0xc]
mov ecx, edx
push edi
cmp dword [esi + 4], 0
lea edi, [ecx + 2]
je 0x406b00
jmp 0x406ae0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406ae0
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00406ba0
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406b00
sub ecx, edi
lea eax, [esp + 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 0x10]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.00406ca0
mov esi, eax
test esi, esi
je 0x406b8b
mov eax, dword [esp + 0xc]
cmp dword [eax + 4], 0
je 0x406b68
push dword [esp + 0x10]
push esi
push eax
call fcn.00406ba0
mov dword [esp + 4], eax
jmp 0x406b7c
push 0
lea ecx, [esp + 8]
push ecx
push dword [esp + 0x18]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
push dword [0x4e4690]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc

Function at 0x406ba0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
push edi
mov dword [esp + 8], 0
cmp dword [esi + 0x14], 1
jne 0x406be2
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x10]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x406c43
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x406c2e
dec eax
je 0x406c17
sub eax, 2
jne 0x406c78
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.004067f0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x406c70
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
add ecx, eax
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
Function at 0x408045
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
mov edi, ebx
test esi, esi
je 0x4080a2
mov eax, dword [esi + 0x80]
mov dword [esi + 0x94], eax
mov eax, dword [esi + 0x84]
push esi
mov dword [esi + 0x98], eax
call dword [esi + 0x58]
mov edi, eax
test edi, edi
jne 0x4080a2
mov eax, dword [esi + 0x70]
test eax, eax
je 0x408081
push ebx
push esi
call eax
push esi
push ebx
push dword [0x4e4690]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x4e5270]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x4e5274], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x409076
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4e4b04], eax
test eax, eax
je 0x4090a4
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4e4b00], eax
lea eax, [ebp - 0x114]
mov dword [0x4e4b08], 1
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x409106
cmp dword [ebp - 0x104], 1
jne 0x4090db
and dword [0x4e4b08], 0
jmp 0x40911e
cmp dword [ebp - 0x104], 2
jne 0x409106
cmp dword [ebp - 0x110], 5
jb 0x4090d2
jne 0x409106
mov eax, dword [ebp - 0x10c]
neg eax
sbb eax, eax
and eax, dword [0x4e4b08]
mov dword [0x4e4b08], eax
jmp 0x40910b
mov eax, dword [0x4e4b08]
test eax, eax
je 0x40911e
call fcn.00408d90
neg eax
sbb eax, eax
and dword [0x4e4b08], eax
mov esp, ebp
pop ebp
ret

Function at 0x40a180
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x40a1b2
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a1ad
cmp dword [esp + 0xc], esi
je 0x40a1c9
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret
Function at 0x40a202
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
mov ecx, dword [0x4e4b64]
push ebx
push ebp
push esi
push edi
xor esi, esi
xor edi, edi
mov dword [esp + 0x10], esi
test ecx, ecx
jle 0x40a3d6
mov edx, dword [esp + 0x28]
mov eax, dword [esi*4 + 0x4e5304]
cmp dword [eax], edx
je 0x40a23c
inc esi
mov dword [esp + 0x10], esi
cmp esi, ecx
jl 0x40a223
jmp 0x40a3d6
cmp dword [esp + 0x38], 0x20
jne 0x40a3aa
mov eax, dword [eax + 8]
mov ebp, dword [esp + 0x44]
test eax, eax
je 0x40a280
cmp ebp, 0x20
je 0x40a25c
cmp ebp, 0xffffffff
jne 0x40a280
push ebp
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call eax
jmp 0x40a3d4
mov eax, dword [esp + 0x2c]
inc eax
imul ebx, eax, 3
and ebx, 0xfffffffc
mov eax, ebx
mov dword [esp + 0x14], ebx
imul eax, dword [esp + 0x30]
push eax
push 0
push dword [0x4e4690]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x40a3d6
mov edi, dword [esp + 0x30]
test edi, edi
jle 0x40a375
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ecx
mov ebp, edx
test eax, eax
jle 0x40a355
mov ebx, ecx
mov esi, eax
mov ecx, 0xff
movzx eax, byte [ebp + 2]
sub eax, ecx
movzx ecx, byte [ebp + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebx + 2], al
movzx eax, byte [ebp + 1]
sub eax, ecx
movzx ecx, byte [ebp + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebx + 1], al
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
sub eax, ecx
movzx ecx, byte [ebp - 1]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebx], al
lea ebx, [ebx + 3]
dec esi
jne 0x40a2e6
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0x34]
add ecx, ebx
dec dword [esp + 0x24]
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ecx
jne 0x40a2d3
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x44]
mov eax, dword [esi*4 + 0x4e5304]
mov esi, dword [esp + 0x18]
push ebp
push dword [esp + 0x44]
push dword [esp + 0x44]
push ebx
push edi
push dword [esp + 0x40]
push esi
push dword [esp + 0x3c]
call dword [eax + 4]
push esi
push 0
push dword [0x4e4690]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40a3d6
cmp dword [esp + 0x38], 0x18
jne 0x40a3d6
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call dword [eax + 4]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x28
Function at 0x40d4c0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x40d4f9
mov eax, dword [esp]
cmp al, 2
jne 0x40d4f3
shr eax, 8
cmp al, 2
jne 0x40d4f3
call fcn.0041af90
add esp, 0x190
ret
call dword [sym.imp.WSOCK32.DLL_WSACleanup]
mov eax, 2
add esp, 0x190
ret

Function at 0x416500
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
lea eax, [esp + 0x10]
push ebp
push eax
push dword [esp + 0x14]
lea ebp, [ebx + 0x4c4]
push 0x4000
push ebp
call fcn.00425de0
mov eax, dword [ebx + 0xfc]
add esp, 0x10
test eax, eax
je 0x416551
cmp byte [ebx + 0x84ec], 0
jne 0x416551
push ebp
push 0x4d01e8
push 0x100
push eax
call fcn.00425cf0
add esp, 0x10
mov byte [ebx + 0x84ec], 1
cmp byte [ebx + 0x284], 0
je 0x4165c8
push edi
mov edi, ebp
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x416560
sub edi, ecx
cmp edi, 0x3fff
jae 0x416581
mov byte [edi + ebx + 0x4c4], 0xa
inc edi
mov byte [edi + ebx + 0x4c4], al
mov eax, dword [ebx + 0x164]
test eax, eax
je 0x41659f
push dword [ebx + 0xf8]
push edi
push ebp
push 0
push ebx
call eax
add esp, 0x14
pop edi
pop ebp
pop ebx
ret
push dword [ebx + 0xf4]
push 1
push 2
push 0x4d01d0
call dword [sym.imp.MSVCRT.dll_fwrite]
push dword [ebx + 0xf4]
push 1
push edi
push ebp
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x20
pop edi
pop ebp
pop ebx
ret

Function at 0x4165d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x804
push ebx
mov ebx, dword [esp + 0x80c]
test ebx, ebx
je 0x41667d
cmp byte [ebx + 0x284], 0
je 0x41667d
push edi
lea eax, [esp + 0x818]
push eax
push dword [esp + 0x818]
lea eax, [esp + 0x10]
push 0x801
push eax
call fcn.00425de0
lea edi, [esp + 0x18]
add esp, 0x10
lea ecx, [edi + 1]
lea esp, [esp]
mov al, byte [edi]
inc edi
test al, al
jne 0x416620
mov eax, dword [ebx + 0x164]
sub edi, ecx
test eax, eax
je 0x416650
push dword [ebx + 0xf8]
lea ecx, [esp + 0xc]
push edi
push ecx
push 0
push ebx
call eax
add esp, 0x14
pop edi
pop ebx
add esp, 0x804
ret
push dword [ebx + 0xf4]
push 1
push 2
push 0x4d01d0
call dword [sym.imp.MSVCRT.dll_fwrite]
push dword [ebx + 0xf4]
lea eax, [esp + 0x1c]
push 1
push edi
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x20
pop edi
pop ebx
add esp, 0x804
ret

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

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WSOCK32.DLL_recv]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4167e1
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
xor eax, eax
ret