joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c821b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 0x3c], 0
jne 0x4c8230
xor eax, eax
jmp 0x4c83b0
mov eax, dword [ebp + 8]
push esi
mov dword [ebx + 0x38], eax
push edi
lea eax, [ebx + 0x24]
call fcn.004c9606
test eax, eax
je 0x4c82c9
call fcn.004c7e95
mov esi, eax
xor eax, eax
lea edi, [esi + 4]
push edi
push eax
push esi
push 0x4c7ce3
push eax
push eax
mov dword [esi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi], eax
je 0x4c8272
cmp dword [edi], 0
jne 0x4c82c9
cmp dword [0x550bdc], 0
je 0x4c82c9
push str.keyboard_monitor_init_failed
push 0x509228
push str.KPreventScreenshots::Monitor
push 0x5091f4
lea eax, [ebp + 8]
push eax
push 0x5091f0
mov dword [ebp + 8], 0xfb
call fcn.004022f5
call fcn.0040233d
call fcn.00423894
call fcn.0040233d
call fcn.0040233d
call fcn.0040233d
call fcn.0040233d
mov esi, eax
call fcn.00402366
call fcn.00428fe8
mov eax, dword [eax]
xor esi, esi
cmp dword [ebx + 0x20], esi
mov dword [ebx + 0x34], eax
je 0x4c83a8
cmp eax, esi
jne 0x4c830c
lea edi, [ebx + 4]
call fcn.004c9dce
mov esi, eax
call fcn.0042a85e
mov eax, dword [eax]
test eax, eax
je 0x4c8303
mov ecx, dword [eax]
push esi
push str.proc_52CFAB6A_8C6A_4a41_8B44_DCE0EAC7B2E0
push eax
call dword [ecx + 0x14]
and dword [edi + 4], 0
jmp 0x4c83a8
call dword [sym.imp.KERNEL32.dll_CreateTimerQueue]
cmp eax, esi
mov dword [ebx + 0x48], eax
je 0x4c83a8
mov ecx, dword [ebx + 0x44]
push 0x20
push ecx
push ecx
push ebx
push 0x4c91a5
push eax
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x4c8349
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x4c8349
mov dword [ebx + 0x4c], eax
cmp dword [0x550bdc], esi
je 0x4c83a8
lea eax, [ebp - 4]
push eax
push str.process_monitor_timer_init
push 0x509228
push str.KPreventScreenshots::Monitor
push 0x5091f4
lea eax, [ebp - 8]
push eax
push 0x5091f0
mov dword [ebp - 8], 0x112
call fcn.004022f5
call fcn.0040233d
call fcn.00423894
call fcn.0040233d
call fcn.0040233d
call fcn.0040233d
call fcn.0040233d
call fcn.00423894
mov esi, eax
call fcn.00402366
xor eax, eax
inc eax
pop edi
mov dword [ebx + 0x40], eax
pop esi
pop ebx
leave
ret 4
Function at 0x4c83b5
Capabilities:
Log keystrokes via polling
Open clipboard

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x38], 0
push esi
push edi
jne 0x4c83d2
xor eax, eax
inc eax
jmp 0x4c85ac
lea edi, [ebx + 0x24]
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
jbe 0x4c83e3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], esi
mov esi, dword [edi + 8]
cmp dword [edi + 4], esi
jbe 0x4c83f9
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, edi
je 0x4c8403
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x1c], esi
jae 0x4c85aa
lea esi, [esp + 0x18]
call fcn.00490068
cmp byte [eax + 9], 0
jbe 0x4c842c
call fcn.00490068
movzx eax, byte [eax + 9]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], eax
je 0x4c843b
lea esi, [esp + 0x18]
call fcn.00490068
cmp byte [eax + 9], 0
jne 0x4c84ab
lea esi, [esp + 0x18]
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
call fcn.00490068
cmp byte [eax], 0
jbe 0x4c849a
movzx ebx, byte [esp + 0x12]
lea esi, [esp + 0x18]
call fcn.00490068
cmp byte [eax + ebx + 1], 0
je 0x4c8497
call fcn.00490068
movzx eax, byte [eax + ebx + 1]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x4c8482
inc byte [esp + 0x13]
inc byte [esp + 0x12]
lea esi, [esp + 0x18]
call fcn.00490068
mov cl, byte [esp + 0x12]
cmp cl, byte [eax]
jb 0x4c8453
mov ebx, dword [ebp + 8]
lea esi, [esp + 0x18]
call fcn.00490068
mov cl, byte [esp + 0x13]
cmp cl, byte [eax]
je 0x4c84c4
mov eax, dword [esp + 0x1c]
cmp eax, dword [edi + 8]
jb 0x4c84ba
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add dword [esp + 0x1c], 0x2c
jmp 0x4c83eb
xor edi, edi
cmp dword [0x550bdc], edi
je 0x4c8548
lea esi, [esp + 0x18]
mov dword [esp + 0x14], 0x131
call fcn.00490068
add eax, 0x10
cmp dword [eax + 0x18], 8
jb 0x4c84ed
mov eax, dword [eax + 4]
jmp 0x4c84f0
add eax, 4
push str._pressed
push eax
push str.closepop_while_hit_hotkey
push 0x509228
push str.KPreventScreenshots::CheckHotKey
push 0x5091f4
lea eax, [esp + 0x2c]
push eax
push 0x5091f0
call fcn.004022f5
call fcn.0040233d
call fcn.00423894
call fcn.0040233d
call fcn.0040233d
call fcn.0040233d
call fcn.0040233d
call fcn.0040233d
call fcn.0040233d
mov esi, eax
call fcn.00402366
lea esi, [esp + 0x18]
call fcn.00490068
cmp dword [eax + 0xc], edi
je 0x4c856d
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4c856d
call dword [sym.imp.USER32.dll_EmptyClipboard]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebx + 0x38]
mov eax, dword [ecx]
push str.monitor_snapshot
call dword [eax + 0x34]
lea esi, [esp + 0x18]
call fcn.00490068
add eax, 0x10
cmp dword [eax + 0x18], 8
jb 0x4c8591
mov eax, dword [eax + 4]
jmp 0x4c8594
add eax, 4
mov ecx, dword [ebx + 0x38]
mov edx, dword [ecx]
push eax
push str.monitor_snapshot_close
call dword [edx + 0x30]
mov dword [ebx + 0x38], edi
jmp 0x4c83ca
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4d0144
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x54b0c4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004d0083
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 0x4d0193
cmp dword [ebp - 0x1c], 5
jb 0x4d01ab
jmp 0x4d01a7
cmp dword [ebp - 0x10], 1
jne 0x4d01ab
cmp dword [ebp - 0x1c], 4
ja 0x4d01a7
jne 0x4d01ab
cmp dword [ebp - 0x18], 0
jbe 0x4d01ab
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4ff0a8
call fcn.00435141
test eax, eax
jge 0x4d01cc
mov byte [0x550c14], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004d0736
add ebp, 0x78
leave
ret

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

Disassembly:
cmp dword [0x550394], 0
push esi
jne 0x4d02f1
call fcn.004d021c
test eax, eax
je 0x4d0334
mov eax, dword [0x550394]
cmp eax, 1
jne 0x4d0312
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4d0334
pop esi
ret
push eax
call dword [0x55039c]
test eax, eax
jne 0x4d037c
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 0x4d0338
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x550394]
call dword [0x55039c]
mov edi, eax
test edi, edi
je 0x4d035f
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4d037b
lea edi, [esi + 0xff0]
push esi
push dword [0x550394]
call dword [0x550398]
add esi, 0x10
cmp esi, edi
jb 0x4d0365
mov eax, esi
pop edi
pop esi
ret
jmp 0x4d02de

Function at 0x4d0736
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x54b0c4]
jne 0x4d0740
repz ret
jmp fcn.004d0dd0

Function at 0x4d13d2
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x54b0c4]
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 0x4d1413
cmp byte [ebp - 0x194], 2
jne 0x4d140d
cmp byte [ebp - 0x193], 2
je 0x4d1416
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d0736
leave
ret

Function at 0x4d9115
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 0x4d9144
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 0x4d9265
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x4d9285
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 0x4d92c0
cmp eax, 2
jg 0x4d92c0
imul eax, eax, 3
push edi
push dword [esi + 0xf0]
mov edi, dword [sym.imp.MSVCR80.dll_fwrite]
push 1
add eax, 0x4ffe98
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 0x4d9486
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 0x4d94f8
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x4d94d2
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x4d94f7
push ebx
push esi
call fcn.004e2643
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.004d93f2
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 0x4d9ba7
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x54b0c4]
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 0x4d9cc4
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 0x4d9c24
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004e2643
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004d93f2
add esp, 0x18
jmp 0x4d9ccb
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 0x4d9c57
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004e2643
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x4d9c16
lea edi, [esi + 0xc8]
lea ebx, [esi + 0x9a]
lea esi, [ebp - 0x74]
call fcn.004d9b6e
test eax, eax
jne 0x4d9c8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004e2643
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
jmp 0x4d9c17
mov eax, dword [ebp - 0x78]
lea edi, [eax + 0xfc]
lea ebx, [eax + 0xcc]
lea esi, [ebp + 0xc]
call fcn.004d9b6e
test eax, eax
jne 0x4d9cc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004e2643
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x4d9c87
mov esi, dword [ebp - 0x78]
push esi
call fcn.004d9b1f
pop ecx
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d0736
add ebp, 0x90
leave
ret

Function at 0x4d9ce3
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 0x4d9d28
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004e2643
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004d937f
add esp, 0x14
jmp 0x4d9d35
push str.TCP_NODELAY_set_n
push esi
call fcn.004d937f
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x4da18c
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 0x4da1df
mov ecx, dword [ecx + 0x514]
mov ecx, dword [ecx]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
je 0x4da1df
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x4da1b9
mov dword [ecx], eax
cmp dword [eax + 0x144], 0
mov esi, dword [eax + 0x12c]
jne 0x4da1df
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4da1df
mov eax, esi
jmp 0x4da1e2
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x4db2b0
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 0x4db422
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
mov dword [ebp - 0xc], esi
je 0x4db407
push ebx
push edi
jmp 0x4db2f8
mov esi, dword [ebp - 0xc]
cmp dword [esi + 4], 2
jne 0x4db39b
cmp dword [esi + 0x18], 0
je 0x4db39b
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x4db39b
push 0x10
pop edi
cmp eax, edi
jb 0x4db39b
push 0x20
call dword [0x54b0e4]
mov ebx, eax
xor eax, eax
cmp ebx, eax
pop ecx
je 0x4db3ab
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 [0x54b0e4]
test eax, eax
pop ecx
mov dword [ebx + 0x18], eax
je 0x4db3b4
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 0x4db382
push eax
call dword [0x54b0f0]
test eax, eax
pop ecx
mov dword [ebx + 0x14], eax
je 0x4db3c4
cmp dword [ebp - 4], 0
jne 0x4db38b
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4db395
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 0x4db2f5
jmp 0x4db3dd
mov dword [ebp - 8], 8
jmp 0x4db3dd
push ebx
mov dword [ebp - 8], 8
call dword [0x54b0e8]
jmp 0x4db3dc
push dword [ebx + 0x18]
mov dword [ebp - 8], 8
call dword [0x54b0e8]
push ebx
call dword [0x54b0e8]
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 0x10], esi
pop edi
pop ebx
je 0x4db3ef
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], esi
je 0x4db402
push dword [ebp - 4]
call fcn.004db274
pop ecx
mov dword [ebp - 4], esi
jmp 0x4db416
cmp dword [ebp - 4], esi
jne 0x4db416
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 0x4db774
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 [0x54b0f4]
mov esi, eax
xor eax, eax
cmp esi, eax
pop ecx
pop ecx
mov dword [ebp - 4], 0xc
mov dword [edi + 0x3ac], esi
je 0x4db827
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.004db630
test eax, eax
pop ecx
pop ecx
je 0x4db827
lea ebx, [edi + 0x398]
push dword [ebx]
call fcn.004d1ac4
push dword [ebp + 8]
call dword [0x54b0f0]
test eax, eax
pop ecx
pop ecx
mov dword [ebx], eax
je 0x4db827
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x4db827
lea eax, [esi + 0x10]
push eax
push 0x4db6a4
call fcn.004e2e76
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x4db841
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
mov dword [ebp - 4], eax
add edi, 0x398
push edi
call fcn.004db722
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4db844
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4df3a6
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 0x4df3da
cmp ebx, esi
jne 0x4df3da
mov eax, dword [ebp + 0x7c]
call fcn.004df387
jmp 0x4df577
cmp dword [ebp + 0x7c], edx
jle 0x4df3ef
mov edi, dword [ebp + 0x7c]
call fcn.004e096e
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 0x4df41f
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 0x4df476
mov dword [ebp - 0x2b0], eax
xor eax, eax
cmp dword [ebp - 0xa8], edx
mov dword [ebp - 0x2ac], ebx
jbe 0x4df452
cmp dword [ebp + eax*4 - 0xa4], ebx
je 0x4df452
inc eax
cmp eax, dword [ebp - 0xa8]
jb 0x4df440
cmp eax, dword [ebp - 0xa8]
jne 0x4df470
cmp dword [ebp - 0xa8], 0x40
jae 0x4df470
mov dword [ebp + eax*4 - 0xa4], ebx
inc dword [ebp - 0xa8]
cmp ebx, ecx
jbe 0x4df476
mov ecx, ebx
cmp dword [ebp + 0x7c], edx
jge 0x4df47f
xor ebx, ebx
jmp 0x4df482
lea ebx, [ebp + 0x5c]
lea esi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x4df4a1
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x60], edx
jmp 0x4df4a6
jne 0x4df4a9
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 0x4df502
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4df4dc
cmp eax, 0x2714
jne 0x4df506
cmp dword [ebp + 0x7c], 0
jle 0x4df485
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call fcn.004e096e
push edx
push eax
call fcn.004e0984
mov edi, dword [ebp + 0x7c]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x4df485
jmp 0x4df506
test eax, eax
jge 0x4df50b
or eax, 0xffffffff
jmp 0x4df577
jne 0x4df511
xor eax, eax
jmp 0x4df577
xor esi, esi
cmp dword [ebp + 0x74], 0xffffffff
je 0x4df543
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4df52d
inc esi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4df543
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x4df575
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4df55f
or esi, 2
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4df575
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x4e14c7
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4e14d4
jmp dword [eax*4 + 0x4e152f]
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 0x4e2e76
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 0x4e2e98
cmp eax, 0xffffffff
jne 0x4e2e9a
xor eax, eax
ret

Function at 0x4e322a
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 0x4e324e
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [esi + 0xc]
jmp 0x4e3281
cmp dword [esi + 8], 0
jne 0x4e3270
push 0x510810
push dword [eax + 8]
call dword [sym.imp.MSVCR80.dll_fopen]
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x4e3270
or eax, 0xffffffff
jmp 0x4e32a8
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 0x4e328f
cmp edi, dword [ebp + 0xc]
jbe 0x4e32a6
test ebx, ebx
jne 0x4e32a0
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 0x1e7a4b10
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]

Function at 0x1e7a4eb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
popfd
and dh, al
inc ebp
sahf
sub eax, 0x119f45c6
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.1e7a4ae0
push eax
push esi
push dword [ebp + 8]
call fcn.1e7a4a95
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.1e7a4ae0
push eax
push esi
push dword [ebp + 8]
call fcn.1e7a4a95
add esp, 0x30
mov dword [ebp - 0xb8], eax
call sym.pywintypes27.dll_public:_int___thiscall_PyIID::IsEqual_struct__GUID_const__
movsd dword es:[edi], dword [esi]
jle 0x1e7a4f6d
xor dword [eax - 0x8363], ecx
dec dword [eax - 0x8263]
inc esi
test dword [esi - 1], edi
invalid
adc byte [ecx - 0x3a], 0x45
xor dword [ebx - 0x3a], 0xc6628245
inc ebp
sbb dword [ebx - 0x3a], 0x45
test byte [ecx - 0x3a], bh
inc ebp
test dword [edx - 0x3a], esi
inc ebp
xchg byte [ebx - 0x3a], ah
inc ebp
xchg dword [edx - 0x3a], edi
inc ebp
mov byte [ebx - 0x3a], dh
inc ebp
mov dword [esi - 0x3a], ebx
inc ebp
mov dh, byte [edi - 0x3a]
inc ebp
mov edi, dword [eax - 0x3a]
inc ebp
invalid

Function at 0x1e7a5150
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x1e7a5184
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x1e7a517f
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
add byte [eax], dh
add byte [eax], al
add byte [eax], dh
add byte [eax], al
jne 0x1e7a5169
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x1e7a5171
cmp edx, ebx
jne 0x1e7a52bf
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x1e7a5140
add eax, dword [eax + 4]
jmp 0x1e7a512d
mov dword [ebp + 0xc], ebx
jmp 0x1e7a518f