joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416a2c
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.00457b00
mov eax, dword [0x46d060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x2010], ecx
mov esi, 0x1001
mov edi, dword [ebx + 0x18]
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4169a0
sub edx, ecx
lea eax, [edx + 1]
cmp eax, 0x1001
jae 0x4169c4
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4169b8
sub ecx, edx
lea esi, [ecx + 1]
xor edx, edx
xor eax, eax
xor ecx, ecx
test esi, esi
je 0x416a03
nop
mov dl, byte [ecx + edi]
cmp dl, 0xa
jne 0x4169ea
mov byte [ebp + eax - 0x2008], 0xd
inc eax
mov byte [ebp + eax - 0x2008], dl
jmp 0x4169f1
mov byte [ebp + eax - 0x2008], dl
inc ecx
lea edx, [eax + 1]
mov eax, edx
cmp ecx, esi
jb 0x4169d0
cmp edx, 0x2003
jae 0x416a7e
mov eax, dword [ebx + 4]
pop edi
dec eax
mov byte [ebp + edx - 0x2008], 0
pop esi
pop ebx
cmp eax, 0x3f
ja case.0x416a1e.3
movzx eax, byte [eax + 0x416a90]
jmp dword [eax*4 + 0x416a84]
mov eax, 4
jmp 0x416a38
mov eax, 2
jmp 0x416a38
mov eax, 1
push 0
lea ecx, [ebp - 0x2008]
mov dword [ebp - 0x200c], ecx
lea ecx, [ebp - 0x200c]
push ecx
push 0
push 1
push 0
push 0
push 0
push eax
mov eax, dword [ebp - 0x2010]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
dec eax
call fcn.00456d98
mov esp, ebp
pop ebp
ret 4
call fcn.00456f35
nop
and eax, 0x2c00416a
push 65
add byte [ebx], dh
push 0x41
add byte [eax], al
add byte [edx], al
add byte [edx], al
add al, byte [edx]
add byte [edx], al
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add dword [edx], eax
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add dword [edx], eax
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add byte [ebp - 117], dl
in al, dx
push 0xffffffffffffffff
push 0x458b17
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x46d060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x416b08
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [esi + 0x10], 0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 0
test byte [esi + 0x1c], 1
mov dword [esi], vtable.ACE_Message_Block.0
jne 0x416b2f
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x416b2f
push ecx
call fcn.00417920
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418f20
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459bf8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x46d060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, eax
mov dword [ebp - 0x18], esi
mov edi, dword [esi]
mov esi, dword [ebp + 0x10]
cmp esi, 0xffffffff
jne 0x418f7d
cmp edi, 0x2748
je 0x418f7d
cmp edi, 0x2733
je 0x418fb6
cmp edi, 0x274c
je 0x418fb6
jmp 0x418faf
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x8004667e
push dword [ebx]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x418fb6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], esi
or esi, 0xffffffff
mov ecx, ebx
call fcn.004190a0
mov eax, dword [ebp - 0x18]
mov dword [eax], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00456d98
mov esp, ebp
pop ebp
ret 0xc

Function at 0x418fe0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [ecx + 4]
push edi
cmp dword [ebx], 0xffffffff
mov dword [esp + 0xc], ecx
jne 0x41901c
push 0
push ecx
push eax
push ecx
mov ecx, ebx
call fcn.00418e70
cmp eax, 0xffffffff
jne 0x419018
or eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov esi, dword [ecx + 8]
mov edi, dword [ebx]
call dword [eax + 4]
push esi
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x419047
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], esi
or eax, 0xffffffff
push eax
push ecx
push ebx
call fcn.00418f20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x419250
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x198
mov eax, dword [0x46d060]
xor eax, esp
mov dword [esp + 0x194], eax
cmp dword [0x46dbf0], 0
jne 0x4192ff
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [section..data], eax
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [0x46d004], eax
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov dword [0x46d008], eax
mov eax, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov dword [0x46d00c], eax
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov dword [0x46dbf0], 1
mov dword [0x46d010], eax
call fcn.0041fe20
test eax, eax
je 0x419333
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x419333
mov eax, dword [esp + 4]
cmp al, 2
jne 0x41932d
shr eax, 8
cmp al, 2
jne 0x41932d
call fcn.0041df90
test eax, eax
jne 0x419333
call fcn.00403500
test eax, eax
jne 0x419333
call fcn.0041f240
mov dword [0x46dbf4], 3
call fcn.0042b4a0
lea eax, [esp]
push eax
call fcn.004213e0
mov ecx, dword [esp + 4]
xor edx, edx
add esp, 4
test eax, eax
cmovne ecx, edx
mov eax, ecx
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00456d98
add esp, 0x198
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
xor eax, eax
xor ecx, esp
call fcn.00456d98
add esp, 0x198
ret

Function at 0x4195f0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x46d060]
xor eax, esp
mov dword [esp + 0x190], eax
mov eax, dword [0x46dbf0]
mov ecx, eax
inc eax
mov dword [0x46dbf0], eax
test ecx, ecx
je 0x41962c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00456d98
add esp, 0x194
ret
cmp byte [esp + 0x19c], 0
je 0x419668
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [section..data], eax
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [0x46d004], eax
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov dword [0x46d008], eax
mov eax, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov dword [0x46d00c], eax
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov dword [0x46d010], eax
push ebx
mov ebx, dword [esp + 0x19c]
test bl, 1
je 0x41967e
call fcn.0041fe20
test eax, eax
je 0x4196fb
test bl, 2
je 0x4196af
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4196fb
mov eax, dword [esp + 4]
cmp al, 2
jne 0x4196f5
shr eax, 8
cmp al, 2
jne 0x4196f5
call fcn.0041df90
test eax, eax
jne 0x4196fb
call fcn.00403500
test eax, eax
jne 0x4196fb
call fcn.0041f240
mov eax, dword [0x46dc28]
test bl, 4
mov ecx, 1
mov dword [0x46dbf4], ebx
cmovne eax, ecx
mov dword [0x46dc28], eax
call fcn.0042b4a0
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00456d98
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
mov eax, 2
pop ebx
xor ecx, esp
call fcn.00456d98
add esp, 0x194
ret
Function at 0x41f240
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [0x46d014]
cmp eax, 0xffffffff
jne 0x41f282
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x41f268
xor eax, eax
test eax, eax
mov dword [0x46d014], eax
setg al
ret
push eax
push 0
mov dword [0x46d014], 1
call fcn.004299b0
mov eax, dword [0x46d014]
add esp, 8
test eax, eax
setg al
ret

Function at 0x41f290
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x398], 2
jne 0x41f2e5
mov eax, dword [0x46d014]
cmp eax, 0xffffffff
jne 0x41f2df
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x41f2c5
xor eax, eax
test eax, eax
mov dword [0x46d014], eax
setg al
ret
push eax
push 0
mov dword [0x46d014], 1
call fcn.004299b0
mov eax, dword [0x46d014]
add esp, 8
test eax, eax
setg al
ret
mov al, 1
ret
Function at 0x428f80
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
push 0x4000
push dword [ebx + 0x62c]
call fcn.00434f20
mov eax, dword [ebx + 0x120]
add esp, 0x10
test eax, eax
je 0x428fd4
cmp byte [ebx + 0x4664], 0
jne 0x428fd4
push dword [ebx + 0x62c]
push 0x46684c
push 0x100
push eax
call fcn.00434dd0
add esp, 0x10
mov byte [ebx + 0x4664], 1
cmp byte [ebx + 0x340], 0
je 0x42905f
mov ecx, dword [ebx + 0x62c]
push edi
mov edi, ecx
lea edx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x428ff0
sub edi, edx
cmp edi, 0x3fff
jae 0x429010
mov byte [ecx + edi], 0xa
inc edi
mov eax, dword [ebx + 0x62c]
mov byte [edi + eax], 0
mov eax, dword [ebx + 0x190]
push ebp
mov ebp, dword [ebx + 0x62c]
test eax, eax
je 0x429035
push dword [ebx + 0x11c]
push edi
push ebp
push 0
push ebx
call eax
add esp, 0x14
pop ebp
pop edi
pop ebx
ret
push dword [ebx + 0x118]
push 1
push 2
push 0x45b828
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [ebx + 0x118]
push 1
push edi
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x20
pop ebp
pop edi
pop ebx
ret

Function at 0x429070
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x46d060]
xor eax, esp
mov dword [esp + 0x804], eax
push ebx
mov ebx, dword [esp + 0x810]
test ebx, ebx
je 0x42913b
cmp byte [ebx + 0x340], 0
je 0x42913b
push edi
lea eax, [esp + 0x81c]
push eax
push dword [esp + 0x81c]
lea eax, [esp + 0x10]
push 0x801
push eax
call fcn.00434f20
lea edi, [esp + 0x18]
add esp, 0x10
lea ecx, [edi + 1]
nop word [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x4290d0
mov eax, dword [ebx + 0x190]
sub edi, ecx
test eax, eax
je 0x42910e
push dword [ebx + 0x11c]
lea ecx, [esp + 0xc]
push edi
push ecx
push 0
push ebx
call eax
add esp, 0x14
pop edi
pop ebx
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00456d98
add esp, 0x808
ret
push dword [ebx + 0x118]
push 1
push 2
push 0x45b828
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [ebx + 0x118]
lea eax, [esp + 0x1c]
push 1
push edi
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x20
pop edi
mov ecx, dword [esp + 0x808]
pop ebx
xor ecx, esp
call fcn.00456d98
add esp, 0x808
ret
Function at 0x4297b0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
xor ecx, ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, dword [edi + 0x194]
lea esi, [edi + 0x1b4]
sete cl
mov eax, ecx
shl eax, 4
add esi, eax
mov eax, dword [edi + 0x390]
mov ebp, dword [edi + ecx*4 + 0x190]
mov ebx, dword [esi + 4]
sub ebx, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x42986a
cmp dword [edi + ecx*4 + 0x1a4], 0x429350
jne 0x42986a
cmp dword [esi], 0
je 0x429803
test ebx, ebx
je 0x42986a
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.00428870
add esp, 0x14
cmp eax, 0xffffffff
je 0x42986a
test al, 1
je 0x42986a
cmp dword [esi], 0
jne 0x429853
push 0x8000
mov dword [esi + 4], 0x8000
call dword [section..data]
mov ebx, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x429853
mov dword [esi + 4], eax
jmp 0x42986a
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push ebx
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x42986a
add dword [esi + 8], eax
push 0
push dword [esp + 0x24]
push dword [esp + 0x24]
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4298d3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4298a4
mov ecx, dword [esp + 0x24]
lea eax, [ebx + 0x52]
pop edi
pop esi
pop ebp
mov dword [ecx], 0
pop ebx
ret
push esi
push edi
call fcn.00436fa0
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.00428f80
mov eax, dword [edi]
add esp, 0x14
mov ecx, dword [esp + 0x24]
pop edi
mov dword [eax + 0x4668], esi
mov eax, 0x37
pop esi
pop ebp
mov dword [ecx], ebx
pop ebx
ret
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
pop ebp
mov dword [ecx], ebx
pop ebx
ret

Function at 0x429940
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi + 0x190]
test eax, eax
je 0x429969
push dword [edi + 0x11c]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push edi
call eax
add esp, 0x14
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x4299a4
push dword [edi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x45b828
push 2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [edi + 0x118]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x20
xor eax, eax
pop edi
ret
Function at 0x429a60
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
mov eax, dword [0x46d060]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
cmp byte [eax + 0x1d4], 0
je 0x429a99
push eax
call fcn.0041f750
add esp, 4
test eax, eax
jne 0x429ac9
xor al, al
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00456d98
add esp, 8
ret
mov eax, dword [eax + 0x190]
cmp eax, 0xffffffff
je 0x429a88
push 2
push 1
lea ecx, [esp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x429ac9
xor al, al
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00456d98
add esp, 8
ret
mov ecx, dword [esp + 4]
mov al, 1
xor ecx, esp
call fcn.00456d98
add esp, 8
ret

Function at 0x42a300
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
mov eax, dword [0x46d060]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [0x46dc2c]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x42a366
push 3
push 2
push eax
push 6
call fcn.004362d0
add esp, 0x10
test al, al
je 0x42a35a
mov dword [0x46dc2c], 2
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00456d98
add esp, 0x10
ret
mov dword [0x46dc2c], 1
jmp 0x42a36b
cmp eax, 2
je 0x42a3b1
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x42a396
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x42a3b1
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00456d98
add esp, 0x10
ret
Function at 0x436180
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x45d600
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x43619a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x45d61c
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
add esp, 8
test eax, eax
je 0x4361e3
test ebp, ebp
je 0x4361d4
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x436209
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x436209
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4362bf
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x436226
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4362b5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4362b5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x436258
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x436270
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x436280
test ebp, ebp
je 0x4362ac
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x46d004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x46d004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x436470
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x14
mov eax, dword [0x46d060]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
push esi
mov esi, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x10], esi
mov dword [esp + 8], ebx
mov dword [esi], ebx
lea esi, [esp + 0x14]
push esi
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x436606
push ebp
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4365f0
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x4364d1
lea ebp, [eax + 0xe]
jmp 0x4364dd
cmp eax, 0x17
jne 0x43658b
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x43658b
mov eax, dword [edi + 0x10]
test eax, eax
je 0x43658b
cmp eax, ebp
jb 0x43658b
push 0x20
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x4365e5
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push ebp
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebp
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [section..data]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x4365d4
push ebp
push dword [edi + 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x436577
push eax
call dword [0x46d00c]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x4365ba
mov eax, dword [esp + 0x10]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x436587
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4364c4
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4365a9
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x4365ec
push ebx
call fcn.00436430
add esp, 4
xor ebx, ebx
jmp 0x4365fc
push dword [esi + 0x18]
mov ebp, 8
call dword [0x46d004]
push esi
call dword [0x46d004]
add esp, 8
jmp 0x43659a
push esi
mov ebp, 8
call dword [0x46d004]
add esp, 4
jmp 0x43659a
mov ebp, 8
jmp 0x43659a
test ebx, ebx
jne 0x4365fc
mov ebp, 0x2af9
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], ebx
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x18]
pop esi
pop ebx
xor ecx, esp
call fcn.00456d98
add esp, 0x14
ret

Function at 0x437760
Capabilities:
Create thread

Disassembly:
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x437782
cmp eax, 0xffffffff
jne 0x437784
xor eax, eax
ret
Function at 0x437be0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
sub esp, 8
mov eax, dword [0x46d060]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push 0xf0000040
push 1
push 0
push 0
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x437c34
push esi
push dword [esp + 0x18]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 8]
test eax, eax
jne 0x437c49
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00456d98
add esp, 8
ret
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 8]
xor eax, eax
pop esi
xor ecx, esp
call fcn.00456d98
add esp, 8
ret
Function at 0x43f110
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x46d060]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x98]
lea eax, [esp + 0xc]
push edi
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
mov ebp, dword [esi + 0x194]
or edi, 0xffffffff
mov ebx, dword [esi]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x43f172
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebp
push esi
call fcn.004299b0
add esp, 8
cmp edi, 0xffffffff
jne 0x43f196
push str.Error_accept__ing_server_connect
push ebx
call fcn.00428f80
add esp, 8
mov eax, 0x1e
jmp 0x43f1ee
push str.Connection_accepted_from_server_n
push ebx
call fcn.00429070
push 1
mov byte [esi + 0x360], 0
push edi
mov dword [esi + 0x194], edi
call fcn.0044c860
mov byte [esi + 0x1a1], 1
add esp, 0x10
mov eax, dword [ebx + 0x198]
test eax, eax
je 0x43f1ec
push 1
push edi
push dword [ebx + 0x19c]
call eax
add esp, 0xc
test eax, eax
je 0x43f1ec
push esi
call fcn.0043f710
add esp, 4
mov eax, 0x2a
jmp 0x43f1ee
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00456d98
add esp, 0x88
ret