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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x47f55c
call fcn.00480c66
mov dword [eax], esi
call fcn.00480c53
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00479ea7
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x47f538
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47f58b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00480c79
pop ecx
call fcn.00480c53
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x47f5b2
test al, 1
je 0x47f5b2
test byte [esp + 0xc], 2
je 0x47f5b2
call fcn.00480c66
mov dword [eax], 5
call fcn.00480c53
mov dword [eax], 0xd
jmp 0x47f582
xor eax, eax
pop esi
ret

Function at 0x48028c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d5304]
jne 0x480296
repz ret
jmp fcn.0048e5bc

Function at 0x4885c0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4d5e20]
je 0x4885db
inc edi
cmp edi, 0x17
jb 0x4885cc
cmp edi, 0x17
jae 0x48875b
push ebp
push 3
call fcn.00491ebe
cmp eax, 1
pop ecx
je 0x488727
push 3
call fcn.00491ebe
test eax, eax
pop ecx
jne 0x48860f
cmp dword [0x4d5160], 1
je 0x488727
cmp ebx, 0xfc
je 0x48875a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4da580
push ebp
call fcn.0047f6fd
add esp, 0xc
test eax, eax
je 0x488645
push esi
push esi
push esi
push esi
push esi
call fcn.00479dab
add esp, 0x14
push 0x104
mov esi, 0x4da599
push esi
push 0
mov byte [0x4da69d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x488689
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0047f6fd
add esp, 0xc
test eax, eax
je 0x488689
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00479dab
add esp, 0x14
push esi
call fcn.0047a8d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4886ce
push esi
call fcn.0047a8d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4da894
push 0x4afb8c
sub ecx, eax
push ecx
push eax
call fcn.0047cbd5
add esp, 0x14
test eax, eax
je 0x4886ce
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00479dab
add esp, 0x14
jmp 0x4886d0
xor esi, esi
push 0x4afb88
push ebx
push ebp
call fcn.0048e919
add esp, 0xc
test eax, eax
je 0x4886f0
push esi
push esi
push esi
push esi
push esi
call fcn.00479dab
add esp, 0x14
push dword [edi*8 + 0x4d5e24]
push ebx
push ebp
call fcn.0048e919
add esp, 0xc
test eax, eax
je 0x488712
push esi
push esi
push esi
push esi
push esi
call fcn.00479dab
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00491d01
add esp, 0xc
jmp 0x48875a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x48875a
cmp ebp, 0xffffffff
je 0x48875a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4d5e24]
push dword [esi]
call fcn.0047a8d0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x491d01
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00483986
xor ebx, ebx
cmp dword [0x4daed8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x491dd7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x491eb7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x491eb7
push eax
call fcn.00483918
mov dword [esp], 0x4aff88
push edi
mov dword [0x4daed8], eax
call esi
push eax
call fcn.00483918
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4daedc], eax
call esi
push eax
call fcn.00483918
mov dword [0x4daee0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0047ce1e
test eax, eax
pop ecx
pop ecx
je 0x491da5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00479dab
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x491dd7
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00483918
cmp eax, ebx
pop ecx
mov dword [0x4daee8], eax
je 0x491dd7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00483918
pop ecx
mov dword [0x4daee4], eax
mov eax, dword [0x4daee4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x491e5c
cmp dword [0x4daee8], ecx
je 0x491e5c
push eax
call fcn.0048398f
push dword [0x4daee8]
mov esi, eax
call fcn.0048398f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x491e5c
cmp edi, ebx
je 0x491e5c
call esi
cmp eax, ebx
je 0x491e29
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x491e29
test byte [ebp - 0x18], 1
jne 0x491e5c
lea eax, [ebp - 0x10]
push eax
call fcn.0047ce55
test eax, eax
pop ecx
je 0x491e44
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00479dab
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x491e53
or dword [ebp + 0x10], 0x200000
jmp 0x491e97
or dword [ebp + 0x10], 0x40000
jmp 0x491e97
mov eax, dword [0x4daedc]
cmp eax, dword [ebp - 8]
je 0x491e97
push eax
call fcn.0048398f
cmp eax, ebx
pop ecx
je 0x491e97
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x491e97
mov eax, dword [0x4daee0]
cmp eax, dword [ebp - 8]
je 0x491e97
push eax
call fcn.0048398f
cmp eax, ebx
pop ecx
je 0x491e97
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4daed8]
call fcn.0048398f
cmp eax, ebx
pop ecx
je 0x491eb7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x491eb9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4943b4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4d5304]
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 0x4943f5
cmp byte [ebp - 0x194], 2
jne 0x4943ef
cmp byte [ebp - 0x193], 2
je 0x4943f8
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048028c
leave
ret
Function at 0x49c0a6
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 0x49c0d5
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 0x49c1f6
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x49c216
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 0x49c24f
cmp eax, 2
jg 0x49c24f
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
add eax, 0x4b1468
push 2
push eax
call fcn.0047d30e
push dword [esi + 0xf0]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.0047d30e
add esp, 0x20
xor eax, eax
ret

Function at 0x49c415
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 0x49c487
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x49c461
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x49c486
push ebx
push esi
call fcn.004a55c6
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.0049c381
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 0x49cb36
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4d5304]
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 0x49cc53
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 0x49cbb3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004a55c6
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0049c381
add esp, 0x18
jmp 0x49cc5a
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 0x49cbe6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004a55c6
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x49cba5
lea edi, [esi + 0xc8]
lea ebx, [esi + 0x9a]
lea esi, [ebp - 0x74]
call fcn.0049cafd
test eax, eax
jne 0x49cc1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004a55c6
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
jmp 0x49cba6
mov eax, dword [ebp - 0x78]
lea edi, [eax + 0xfc]
lea ebx, [eax + 0xcc]
lea esi, [ebp + 0xc]
call fcn.0049cafd
test eax, eax
jne 0x49cc50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004a55c6
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x49cc16
mov esi, dword [ebp - 0x78]
push esi
call fcn.0049caae
pop ecx
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048028c
add ebp, 0x90
leave
ret

Function at 0x49cc72
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 0x49ccb7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004a55c6
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0049c30e
add esp, 0x14
jmp 0x49ccc4
push str.TCP_NODELAY_set_n
push esi
call fcn.0049c30e
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x49d11b
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 0x49d16e
mov ecx, dword [ecx + 0x514]
mov ecx, dword [ecx]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
je 0x49d16e
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x49d148
mov dword [ecx], eax
cmp dword [eax + 0x144], 0
mov esi, dword [eax + 0x12c]
jne 0x49d16e
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x49d16e
mov eax, esi
jmp 0x49d171
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x49e243
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 0x49e3b5
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
mov dword [ebp - 0xc], esi
je 0x49e39a
push ebx
push edi
jmp 0x49e28b
mov esi, dword [ebp - 0xc]
cmp dword [esi + 4], 2
jne 0x49e32e
cmp dword [esi + 0x18], 0
je 0x49e32e
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x49e32e
push 0x10
pop edi
cmp eax, edi
jb 0x49e32e
push 0x20
call dword [0x4d65e8]
mov ebx, eax
xor eax, eax
cmp ebx, eax
pop ecx
je 0x49e33e
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 [0x4d65e8]
test eax, eax
pop ecx
mov dword [ebx + 0x18], eax
je 0x49e347
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 0x49e315
push eax
call dword [0x4d65f4]
test eax, eax
pop ecx
mov dword [ebx + 0x14], eax
je 0x49e357
cmp dword [ebp - 4], 0
jne 0x49e31e
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x49e328
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 0x49e288
jmp 0x49e370
mov dword [ebp - 8], 8
jmp 0x49e370
push ebx
mov dword [ebp - 8], 8
call dword [0x4d65ec]
jmp 0x49e36f
push dword [ebx + 0x18]
mov dword [ebp - 8], 8
call dword [0x4d65ec]
push ebx
call dword [0x4d65ec]
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 0x10], esi
pop edi
pop ebx
je 0x49e382
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], esi
je 0x49e395
push dword [ebp - 4]
call fcn.0049e207
pop ecx
mov dword [ebp - 4], esi
jmp 0x49e3a9
cmp dword [ebp - 4], esi
jne 0x49e3a9
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 0x49e707
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 [0x4d65f8]
mov esi, eax
xor eax, eax
cmp esi, eax
pop ecx
pop ecx
mov dword [ebp - 4], 0xc
mov dword [edi + 0x3ac], esi
je 0x49e7b9
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.0049e5c3
test eax, eax
pop ecx
pop ecx
je 0x49e7b9
lea ebx, [edi + 0x398]
push dword [ebx]
call fcn.00494aa2
push dword [ebp + 8]
call dword [0x4d65f4]
test eax, eax
pop ecx
pop ecx
mov dword [ebx], eax
je 0x49e7b9
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x49e7b9
lea eax, [esi + 0x10]
push eax
push 0x49e637
call fcn.004a5dee
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x49e7d3
call fcn.00480c53
mov eax, dword [eax]
mov dword [ebp - 4], eax
add edi, 0x398
push edi
call fcn.0049e6b5
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x49e7d6
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a232d
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 0x4a2361
cmp ebx, esi
jne 0x4a2361
mov eax, dword [ebp + 0x7c]
call fcn.004a230e
jmp 0x4a24fe
cmp dword [ebp + 0x7c], edx
jle 0x4a2376
mov edi, dword [ebp + 0x7c]
call fcn.004a38f3
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 0x4a23a6
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 0x4a23fd
mov dword [ebp - 0x2b0], eax
xor eax, eax
cmp dword [ebp - 0xa8], edx
mov dword [ebp - 0x2ac], ebx
jbe 0x4a23d9
cmp dword [ebp + eax*4 - 0xa4], ebx
je 0x4a23d9
inc eax
cmp eax, dword [ebp - 0xa8]
jb 0x4a23c7
cmp eax, dword [ebp - 0xa8]
jne 0x4a23f7
cmp dword [ebp - 0xa8], 0x40
jae 0x4a23f7
mov dword [ebp + eax*4 - 0xa4], ebx
inc dword [ebp - 0xa8]
cmp ebx, ecx
jbe 0x4a23fd
mov ecx, ebx
cmp dword [ebp + 0x7c], edx
jge 0x4a2406
xor ebx, ebx
jmp 0x4a2409
lea ebx, [ebp + 0x5c]
lea esi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x4a2428
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x60], edx
jmp 0x4a242d
jne 0x4a2430
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 0x4a2489
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4a2463
cmp eax, 0x2714
jne 0x4a248d
cmp dword [ebp + 0x7c], 0
jle 0x4a240c
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call fcn.004a38f3
push edx
push eax
call fcn.004a3909
mov edi, dword [ebp + 0x7c]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x4a240c
jmp 0x4a248d
test eax, eax
jge 0x4a2492
or eax, 0xffffffff
jmp 0x4a24fe
jne 0x4a2498
xor eax, eax
jmp 0x4a24fe
xor esi, esi
cmp dword [ebp + 0x74], 0xffffffff
je 0x4a24ca
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a24b4
inc esi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a24ca
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x4a24fc
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a24e6
or esi, 2
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a24fc
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x4a444b
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4a4458
jmp dword [eax*4 + 0x4a44b3]
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 0x4a619e
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 0x4a61c2
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [esi + 0xc]
jmp 0x4a61f3
cmp dword [esi + 8], 0
jne 0x4a61e3
push 0x4b45dc
push dword [eax + 8]
call fcn.00478547
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x4a61e3
or eax, 0xffffffff
jmp 0x4a6219
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.0047a4a9
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4a6201
cmp edi, dword [ebp + 0xc]
jbe 0x4a6217
test ebx, ebx
jne 0x4a6211
push dword [esi + 8]
call fcn.004785cc
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 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40234f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push edi
xor eax, eax
push eax
xor eax, eax
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x14]
push eax
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
test eax, eax
jne 0x402381
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x10
push 8
pop eax
push eax
call dword [0x514754]
mov edi, eax
mov eax, dword [ebp - 4]
mov dword [edi], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [edi + 4], eax
mov esi, dword [ebp + 8]
mov dword [esi], edi
add esp, 4
mov eax, dword [edi]
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4290f1
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 8
call fcn.00436736
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.00436736
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x18], 0
push 0x10
call fcn.00436736
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x20], esp
mov eax, 0x10
call fcn.00436754
cmp dword [ebp - 0x20], esp
je 0x4291ae
push 6
call fcn.00436742
add esp, 4
mov dword [ebp - 4], eax
mov eax, str.SeDebugPrivilege
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4291c7
push ebx
call fcn.0043673c
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0xc]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 0x11
call fcn.00436754
cmp dword [ebp - 0x20], esp
je 0x4291f6
push 6
call fcn.00436742
add esp, 4
mov dword [ebp - 0x20], esp
push dword [ebp - 0x10]
push dword [ebp - 8]
push 0x4f5dcc
mov eax, 0x12
call fcn.00436754
cmp dword [ebp - 0x20], esp
je 0x429220
push 6
call fcn.00436742
add esp, 4
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x14]
add ebx, 8
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 0xc
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 2
mov dword [ebp - 0x20], esp
mov eax, 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
push 0x1c
push dword [ebp - 0x14]
push 0
push dword [ebp - 0xc]
mov eax, 0x13
call fcn.00436754
cmp dword [ebp - 0x20], esp
je 0x4292b4
push 6
call fcn.00436742
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
mov eax, 0x14
call fcn.00436754
cmp dword [ebp - 0x20], esp
je 0x4292d9
push 6
call fcn.00436742
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x4292e1
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4292f2
push ebx
call fcn.0043673c
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.0043673c
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.0043673c
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.0043673c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret