joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47d214
Capabilities:
Check if file exists

Disassembly:
push 0x17c
mov eax, 0x4a2bdf
call fcn.004878f8
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x47d234
xor al, al
call fcn.004879d0
ret 4
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47d22a
push 0x4ba3d8
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.MSVCR80.dll__wfopen_s]
add esp, 0xc
cmp dword [ebp - 0x10], esi
je 0x47d22a
lea eax, [ebp - 0x188]
call fcn.004616f1
mov dword [ebp - 4], esi
mov ebx, dword [ebp - 0x10]
call fcn.004618db
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.MSVCR80.dll_fclose]
xor ebx, ebx
cmp esi, ebx
pop ecx
lea eax, [ebp - 0x188]
je 0x47d298
or dword [ebp - 4], 0xffffffff
push eax
call fcn.00461817
jmp 0x47d22a
push ebx
call fcn.0045cbdf
mov esi, eax
cmp esi, ebx
jne 0x47d2ac
lea eax, [ebp - 0x188]
jmp 0x47d28c
push str.shortcuts
call fcn.0045cbdf
cmp eax, ebx
je 0x47d2a4
push 0x4bf32c
call fcn.0045cbdf
push eax
push edi
call fcn.0047d352
cmp al, bl
je 0x47d2a4
push str.shadow
mov eax, esi
call fcn.0045cbdf
cmp eax, ebx
jne 0x47d2f6
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x188]
push eax
call fcn.00461817
mov al, bl
jmp 0x47d22c
lea ecx, [ebp + 8]
push ecx
push 0x4aec94
mov dword [ebp + 8], ebx
call fcn.0045cc6d
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov bl, 1
jmp 0x47d2df
Function at 0x47f08c
Capabilities:
Check if file exists

Disassembly:
push 0x44
mov eax, 0x4a6169
call fcn.004878f8
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 0x6c8], esi
jne 0x47f0b9
push dword [edi + 0x6b8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47f160
mov eax, dword [edi + 0x6b4]
sub eax, 0x10
call fcn.00401311
add eax, 0x10
mov dword [ebp - 0x14], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.004242f5
lea eax, [ebp - 0x50]
push eax
call fcn.00452e3c
lea eax, [edi + 0x6b8]
lea edi, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00404347
mov edi, dword [ebp - 0x14]
push edi
lea ecx, [ebp - 0x50]
call fcn.00452eb5
test eax, eax
jne 0x47f11e
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
call fcn.004012f9
lea eax, [edi - 0x10]
jmp 0x47f15b
mov edi, dword [ebp + 0xc]
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.USER32.dll_SetRect]
lea ebx, [ebp - 0x50]
call fcn.0045356e
test eax, eax
mov esi, ebx
jne 0x47f16a
call fcn.00453028
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004012f9
xor al, al
call fcn.004879d0
ret 8
call fcn.00453028
mov eax, dword [edi + 8]
sub eax, dword [edi]
test eax, eax
jle 0x47f13f
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
test eax, eax
jle 0x47f13f
lea esi, [ebp - 0x1c]
call fcn.00452d37
test eax, eax
je 0x47f19f
mov eax, dword [ebp - 0x1c]
add dword [edi], eax
add dword [edi + 8], eax
mov eax, dword [ebp - 0x18]
add dword [edi + 4], eax
add dword [edi + 0xc], eax
add dword [edi + 0xc], 0xfffffff1
push 0
push 0xfffffffffffffff1
push edi
call dword [sym.imp.USER32.dll_InflateRect]
fild dword [edi]
mov esi, dword [ebp + 8]
fdiv dword [esi + 0x6cc]
call fcn.00487300
fild dword [edi + 8]
mov dword [edi], eax
fdiv dword [esi + 0x6cc]
call fcn.00487300
fild dword [edi + 4]
mov dword [edi + 8], eax
fdiv dword [esi + 0x6cc]
call fcn.00487300
fild dword [edi + 0xc]
mov dword [edi + 4], eax
fdiv dword [esi + 0x6cc]
call fcn.00487300
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004012f9
mov al, 1
jmp 0x47f162
Function at 0x47f90b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a6d1f
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4dc0a8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x4bf5f0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x2c4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x47f976
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00405f0e
mov dword [esp + 0x38], ebx
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.004510b4
lea edi, [esi + 0x2bc]
push edi
lea eax, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.004515a8
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
jne 0x47f9e7
lea eax, [esi + 0x2c0]
push str.poptype_empty
push eax
call fcn.00405140
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call fcn.00451127
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, ebx
jmp 0x47f961
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x10]
lea edi, [esi + 0x2b8]
call fcn.00404347
push ebx
mov ecx, esi
call fcn.00436f33
mov ebx, eax
jmp 0x47f9c6

Function at 0x485a10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ad67
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4dc0a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi], vtable.Json::StyledWriter.0
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x14]
mov dword [ebp - 4], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [esi + 0x4c], 0x4a
mov dword [esi + 0x50], 3
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x486794
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4dc0a8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004866d3
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4867e3
cmp dword [ebp - 0x1c], 5
jb 0x4867fb
jmp 0x4867f7
cmp dword [ebp - 0x10], 1
jne 0x4867fb
cmp dword [ebp - 0x1c], 4
ja 0x4867f7
jne 0x4867fb
cmp dword [ebp - 0x18], 0
jbe 0x4867fb
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4aa220
call fcn.0043432f
test eax, eax
jge 0x48681c
mov byte [0x4e0e0c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00486d86
add ebp, 0x78
leave
ret

Function at 0x4869ce
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4e05b4], 0
push esi
jne 0x486941
call fcn.0048686c
test eax, eax
je 0x486984
mov eax, dword [0x4e05b4]
cmp eax, 1
jne 0x486962
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x486984
pop esi
ret
push eax
call dword [0x4e05bc]
test eax, eax
jne 0x4869cc
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x486988
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4e05b4]
call dword [0x4e05bc]
mov edi, eax
test edi, edi
je 0x4869af
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4869cb
lea edi, [esi + 0xff0]
push esi
push dword [0x4e05b4]
call dword [0x4e05b8]
add esi, 0x10
cmp esi, edi
jb 0x4869b5
mov eax, esi
pop edi
pop esi
ret
jmp 0x48692e

Function at 0x487a20
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4dc0a8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x487a61
cmp byte [ebp - 0x194], 2
jne 0x487a5b
cmp byte [ebp - 0x193], 2
je 0x487a64
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00486d86
leave
ret

Function at 0x48f763
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.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x48f792
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret
Function at 0x48f8b3
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x48f8d3
push dword [esi + 0xf4]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x48f90e
cmp eax, 2
jg 0x48f90e
imul eax, eax, 3
push edi
push dword [esi + 0xf0]
mov edi, dword [sym.imp.MSVCR80.dll_fwrite]
push 1
add eax, 0x4ab010
push 2
push eax
call edi
push dword [esi + 0xf0]
push 1
push dword [esp + 0x24]
push dword [esp + 0x24]
call edi
add esp, 0x20
pop edi
xor eax, eax
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x12c]
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
and dword [edi], 0
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x48fb46
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x48fb20
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x48fb45
push ebx
push esi
call fcn.00498c91
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.0048fa40
mov eax, dword [esi]
mov dword [eax + 0x855c], ebx
add esp, 0x14
mov dword [edi], 0x37
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret
Function at 0x4901f5
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4dc0a8]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
mov esi, dword [ebp + 0x98]
cmp dword [esi + 0x198], 0
mov ebx, dword [esi]
push edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], ebx
jne 0x490312
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x9c]
mov edi, 0x80
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x490272
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.00498c91
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0048fa40
add esp, 0x18
jmp 0x490319
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x9c]
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4902a5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.00498c91
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x490264
lea edi, [esi + 0xc8]
lea ebx, [esi + 0x9a]
lea esi, [ebp - 0x74]
call fcn.004901bc
test eax, eax
jne 0x4902da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.00498c91
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
jmp 0x490265
mov eax, dword [ebp - 0x78]
lea edi, [eax + 0xfc]
lea ebx, [eax + 0xcc]
lea esi, [ebp + 0xc]
call fcn.004901bc
test eax, eax
jne 0x49030f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.00498c91
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x4902d5
mov esi, dword [ebp - 0x78]
push esi
call fcn.0049016d
pop ecx
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00486d86
add ebp, 0x90
leave
ret

Function at 0x490331
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x308]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x490376
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00498c91
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0048f9cd
add esp, 0x14
jmp 0x490383
push str.TCP_NODELAY_set_n
push esi
call fcn.0048f9cd
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x4907da
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x520]
cmp eax, 0xffffffff
push esi
je 0x49082d
mov ecx, dword [ecx + 0x514]
mov ecx, dword [ecx]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
je 0x49082d
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x490807
mov dword [ecx], eax
cmp dword [eax + 0x144], 0
mov esi, dword [eax + 0x12c]
jne 0x49082d
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x49082d
mov eax, esi
jmp 0x490830
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x4918fe
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
and dword [eax], 0
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
mov dword [ebp - 8], eax
jne 0x491a70
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
mov dword [ebp - 0xc], esi
je 0x491a55
push ebx
push edi
jmp 0x491946
mov esi, dword [ebp - 0xc]
cmp dword [esi + 4], 2
jne 0x4919e9
cmp dword [esi + 0x18], 0
je 0x4919e9
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x4919e9
push 0x10
pop edi
cmp eax, edi
jb 0x4919e9
push 0x20
call dword [0x4dc0c4]
mov ebx, eax
xor eax, eax
cmp ebx, eax
pop ecx
je 0x4919f9
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov ecx, dword [esi + 0xc]
push edi
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x1c], eax
call dword [0x4dc0c4]
test eax, eax
pop ecx
mov dword [ebx + 0x18], eax
je 0x491a02
mov esi, dword [esi + 0x18]
mov edi, eax
mov eax, dword [ebp - 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 eax, dword [eax + 0x14]
test eax, eax
je 0x4919d0
push eax
call dword [0x4dc0d0]
test eax, eax
pop ecx
mov dword [ebx + 0x14], eax
je 0x491a12
cmp dword [ebp - 4], 0
jne 0x4919d9
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4919e3
mov dword [eax + 0x1c], ebx
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
mov dword [ebp - 0xc], esi
jne 0x491943
jmp 0x491a2b
mov dword [ebp - 8], 8
jmp 0x491a2b
push ebx
mov dword [ebp - 8], 8
call dword [0x4dc0c8]
jmp 0x491a2a
push dword [ebx + 0x18]
mov dword [ebp - 8], 8
call dword [0x4dc0c8]
push ebx
call dword [0x4dc0c8]
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 0x10], esi
pop edi
pop ebx
je 0x491a3d
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], esi
je 0x491a50
push dword [ebp - 4]
call fcn.004918c2
pop ecx
mov dword [ebp - 4], esi
jmp 0x491a64
cmp dword [ebp - 4], esi
jne 0x491a64
mov eax, 0x2af9
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x491dc2
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x48
push 1
mov ebx, eax
mov edi, ecx
call dword [0x4dc0d4]
mov esi, eax
xor eax, eax
cmp esi, eax
pop ecx
pop ecx
mov dword [ebp - 4], 0xc
mov dword [edi + 0x3ac], esi
je 0x491e75
mov dword [edi + 0x3a4], eax
mov dword [edi + 0x3a8], eax
mov dword [edi + 0x3a0], eax
mov dword [edi + 0x39c], ebx
or dword [esi + 4], 0xffffffff
push ebx
push dword [ebp + 8]
mov dword [esi], eax
lea eax, [esi + 0x10]
call fcn.00491c7e
test eax, eax
pop ecx
pop ecx
je 0x491e75
lea ebx, [edi + 0x398]
push dword [ebx]
call fcn.00488112
push dword [ebp + 8]
call dword [0x4dc0d0]
test eax, eax
pop ecx
pop ecx
mov dword [ebx], eax
je 0x491e75
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x491e75
lea eax, [esi + 0x10]
push eax
push 0x491cf2
call fcn.004994c4
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x491e8f
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
mov dword [ebp - 4], eax
add edi, 0x398
push edi
call fcn.00491d70
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x491e92
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4959f4
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x31c
push ebx
mov ebx, dword [ebp + 0x78]
push esi
mov esi, dword [ebp + 0x74]
xor edx, edx
push edi
xor edi, edi
cmp esi, 0xffffffff
mov dword [ebp + 0x64], edx
mov dword [ebp + 0x68], edx
jne 0x495a28
cmp ebx, esi
jne 0x495a28
mov eax, dword [ebp + 0x7c]
call fcn.004959d5
jmp 0x495bc5
cmp dword [ebp + 0x7c], edx
jle 0x495a3d
mov edi, dword [ebp + 0x7c]
call fcn.00496fbc
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x64], eax
xor edx, edx
xor eax, eax
or ecx, 0xffffffff
inc eax
cmp esi, ecx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x1ac], edx
je 0x495a6d
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], eax
mov ecx, esi
cmp ebx, 0xffffffff
mov dword [ebp - 0x2b0], edx
je 0x495ac4
mov dword [ebp - 0x2b0], eax
xor eax, eax
cmp dword [ebp - 0xa8], edx
mov dword [ebp - 0x2ac], ebx
jbe 0x495aa0
cmp dword [ebp + eax*4 - 0xa4], ebx
je 0x495aa0
inc eax
cmp eax, dword [ebp - 0xa8]
jb 0x495a8e
cmp eax, dword [ebp - 0xa8]
jne 0x495abe
cmp dword [ebp - 0xa8], 0x40
jae 0x495abe
mov dword [ebp + eax*4 - 0xa4], ebx
inc dword [ebp - 0xa8]
cmp ebx, ecx
jbe 0x495ac4
mov ecx, ebx
cmp dword [ebp + 0x7c], edx
jge 0x495acd
xor ebx, ebx
jmp 0x495ad0
lea ebx, [ebp + 0x5c]
lea esi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x495aef
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x60], edx
jmp 0x495af4
jne 0x495af7
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x5c], eax
push ebx
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x1ac]
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x495b50
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x495b2a
cmp eax, 0x2714
jne 0x495b54
cmp dword [ebp + 0x7c], 0
jle 0x495ad3
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call fcn.00496fbc
push edx
push eax
call fcn.00496fd2
mov edi, dword [ebp + 0x7c]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x495ad3
jmp 0x495b54
test eax, eax
jge 0x495b59
or eax, 0xffffffff
jmp 0x495bc5
jne 0x495b5f
xor eax, eax
jmp 0x495bc5
xor esi, esi
cmp dword [ebp + 0x74], 0xffffffff
je 0x495b91
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x495b7b
inc esi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x495b91
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x495bc3
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x495bad
or esi, 2
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x495bc3
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x497b15
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x497b22
jmp dword [eax*4 + 0x497b7d]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, byte [esp + 4]
ret

Function at 0x4994c4
Capabilities:
Create thread

Disassembly:
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x4994e6
cmp eax, 0xffffffff
jne 0x4994e8
xor eax, eax
ret

Function at 0x499878
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
push ebx
xor ebx, ebx
cmp dword [eax + 4], 2
push edi
sete bl
test ebx, ebx
je 0x49989c
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [esi + 0xc]
jmp 0x4998cf
cmp dword [esi + 8], 0
jne 0x4998be
push 0x4bb5d0
push dword [eax + 8]
call dword [sym.imp.MSVCR80.dll_fopen]
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x4998be
or eax, 0xffffffff
jmp 0x4998f6
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.MSVCR80.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4998dd
cmp edi, dword [ebp + 0xc]
jbe 0x4998f4
test ebx, ebx
jne 0x4998ee
push dword [esi + 8]
call dword [sym.imp.MSVCR80.dll_fclose]
and dword [esi + 8], ebx
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret
Function at 0x422a7d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x422a8c
pop dword [ebp - 0x38]
mov eax, 0x422a8c
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x46e0b
push 0
mov eax, 0xeeaaac3c
sub eax, 0xee685a24
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0xa8bfca4f
sub ecx, 0xa8bf5ddb
xor esi, esi
add esi, eax
mov edx, 0x435400
add edx, dword [ebp - 0x38]
mov ebx, 0xa02e2f98
mov dword [ebp - 0x14], 0x62758b3c
mov edi, dword [edx]
mov dword [ebp - 0x34], 0xd0e76172
add edi, ebx
xor dword [ebp - 0x34], 0xaba6688c
mov dword [esi], edi
xor dword [ebp - 0x28], 0xfd5e22c5
add esi, 4
add edx, 4
loop 0x422adc
add eax, 0x7e6327f5
add eax, 0x819e7cae
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx