joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409520
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x462080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push dword [0x462a24]
mov ebx, ecx
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x228], 0x224
cmp esi, 0xffffffff
jne 0x409568
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044fd45
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x228]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x4095ac
lea ecx, [ebp - 0x208]
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4095a3
test dl, dl
je 0x40959f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4095a3
add eax, 2
add ecx, 2
test dl, dl
jne 0x409583
xor eax, eax
jmp 0x4095a8
sbb eax, eax
or eax, 1
test eax, eax
je 0x409619
mov edi, dword [sym.imp.KERNEL32.dll_Module32Next]
lea eax, [ebp - 0x228]
push eax
push esi
call edi
test eax, eax
je 0x4095ff
lea eax, [ebp - 0x208]
mov ecx, ebx
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4095e8
test dl, dl
je 0x4095e4
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4095e8
add ecx, 2
add eax, 2
test dl, dl
jne 0x4095c8
xor eax, eax
jmp 0x4095ed
sbb eax, eax
or eax, 1
test eax, eax
je 0x409619
lea eax, [ebp - 0x228]
push eax
push esi
call edi
test eax, eax
jne 0x4095c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044fd45
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0044fd45
mov esp, ebp
pop ebp
ret
Function at 0x409640
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451a70
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x462080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 2
mov dword [ebp - 0x140], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4096f4
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x409711
lea ecx, [ebp - 0x11c]
mov eax, str.csgo.exe
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4096c5
test dl, dl
je 0x4096c1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4096c5
add eax, 2
add ecx, 2
test dl, dl
jne 0x4096a5
xor eax, eax
jmp 0x4096ca
sbb eax, eax
or eax, 1
test eax, eax
jne 0x409711
push dword [ebp - 0x138]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [0x462a2c], eax
test eax, eax
jne 0x40979c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044fd45
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [ebp - 0x140]
push eax
push esi
call edi
test eax, eax
je 0x4096ed
nop word [eax + eax]
lea eax, [ebp - 0x11c]
mov ecx, str.csgo.exe
nop dword [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x409760
test dl, dl
je 0x40975c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x409760
add ecx, 2
add eax, 2
test dl, dl
jne 0x409740
xor eax, eax
jmp 0x409765
sbb eax, eax
or eax, 1
test eax, eax
je 0x40977c
lea eax, [ebp - 0x140]
push eax
push esi
call edi
test eax, eax
jne 0x409730
jmp 0x4096ed
push dword [ebp - 0x138]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [0x462a2c], eax
test eax, eax
je 0x4096ed
mov eax, dword [ebp - 0x138]
push esi
mov dword [0x462a24], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, str.client.dll
call fcn.00409520
mov ecx, str.engine.dll
mov dword [0x462a1c], eax
call fcn.00409520
cmp dword [0x462a1c], 0
mov dword [0x462a28], eax
je 0x4096f4
test eax, eax
je 0x4096f4
call fcn.004020d0
push 0xd
push str.dwClientState
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x148], 0
mov esi, eax
mov dword [ebp - 0x144], 0xf
mov byte [ebp - 0x158], 0
call fcn.00402af0
lea eax, [ebp - 0x158]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.00401db0
add eax, dword [0x462a28]
lea ecx, [ebp - 0x14]
push 0
push 4
push ecx
push eax
push dword [0x462a2c]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edx, dword [ebp - 0x144]
mov eax, dword [ebp - 0x14]
mov dword [0x462a20], eax
cmp edx, 0x10
jb 0x40988e
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40987f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40987f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004501e0
mov eax, dword [0x462a20]
add esp, 8
test eax, eax
je 0x4096f4
mov al, 1
jmp 0x4096f6
Function at 0x409d40
Capabilities:
Create thread
Log keystrokes via polling
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451b3d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x462080]
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
call fcn.00409640
test al, al
jne 0x409d92
xor eax, eax
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.0044fd45
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0x409a60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00409980
test al, al
je 0x409e55
call fcn.004020d0
push 0xd
push str.dwLocalPlayer
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov esi, eax
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00402af0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.00401db0
add eax, dword [0x462a1c]
lea ecx, [ebp - 0x14]
push 0
push 4
push ecx
push eax
push dword [0x462a2c]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x409e4f
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409e45
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409e6a
push edx
push ecx
call fcn.004501e0
add esp, 8
mov dword [0x462a30], esi
push 0x91
call ebx
test ax, ax
jne 0x409e70
push 0x64
call edi
jmp 0x409db3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x40a290
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x462080]
xor eax, esp
mov dword [esp + 0x190], eax
mov eax, dword [0x462368]
mov ecx, eax
inc eax
mov dword [0x462368], eax
test ecx, ecx
je 0x40a2cc
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0044fd45
add esp, 0x194
ret
cmp byte [esp + 0x19c], 0
je 0x40a308
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 [0x462004], eax
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov dword [0x462008], eax
mov eax, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov dword [0x46200c], eax
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov dword [0x462010], eax
push ebx
call fcn.00417c50
test eax, eax
je 0x40a34a
mov ebx, dword [esp + 0x19c]
test bl, 2
je 0x40a36d
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40a34a
mov eax, dword [esp + 4]
cmp al, 2
jne 0x40a365
shr eax, 8
cmp al, 2
jne 0x40a365
call fcn.00416840
test eax, eax
je 0x40a36d
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0044fd45
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x40a34a
call fcn.00413730
test eax, eax
jne 0x40a34a
call fcn.00414960
mov eax, dword [0x46247c]
test bl, 4
mov ecx, 1
mov dword [0x46236c], ebx
cmovne eax, ecx
mov dword [0x46247c], eax
call fcn.0041feb0
mov ecx, dword [esp + 0x194]
xor eax, eax
pop ebx
xor ecx, esp
call fcn.0044fd45
add esp, 0x194
ret
Function at 0x412f40
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x18
mov eax, dword [0x462080]
xor eax, esp
mov dword [esp + 0x14], eax
push edi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x41301a
lea eax, [esp + 4]
push eax
push edi
push 2
call fcn.0042ca00
add esp, 0xc
test eax, eax
jne 0x41301a
lea eax, [esp + 8]
push eax
push edi
push 0x17
call fcn.0042ca00
add esp, 0xc
test eax, eax
jne 0x41301a
push ebx
push ebp
push esi
mov esi, edi
xor ebx, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x412f95
sub esi, ecx
push esi
push 0x2e
push edi
call fcn.0042c9d0
add esp, 0xc
test eax, eax
je 0x412fc9
sub eax, edi
push eax
push 0x2e
push edi
call fcn.0042c9d0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x412fcb
inc ebx
mov ecx, edi
sub ecx, ebx
add esi, ecx
test ebx, ebx
cmovne edi, ebx
xor ecx, ecx
xor ebp, ebp
mov ebx, 0x1505
lea eax, [esi + edi]
cmp edi, eax
cmova esi, ecx
test esi, esi
je 0x413004
mov al, byte [edi]
push eax
call fcn.00421490
movsx ecx, al
lea edi, [edi + 1]
mov eax, ebx
inc ebp
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp ebp, esi
jb 0x412fe3
pop esi
pop ebp
movzx eax, bl
pop ebx
pop edi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044fd45
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop edi
xor ecx, esp
call fcn.0044fd45
add esp, 0x18
ret

Function at 0x414960
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [0x462014]
cmp eax, 0xffffffff
jne 0x4149a2
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x414988
xor eax, eax
test eax, eax
mov dword [0x462014], eax
setg al
ret
push eax
push 0
mov dword [0x462014], 1
call fcn.0041e2a0
mov eax, dword [0x462014]
add esp, 8
test eax, eax
setg al
ret

Function at 0x4149b0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2d0], 2
jne 0x414a05
mov eax, dword [0x462014]
cmp eax, 0xffffffff
jne 0x4149ff
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x4149e5
xor eax, eax
test eax, eax
mov dword [0x462014], eax
setg al
ret
push eax
push 0
mov dword [0x462014], 1
call fcn.0041e2a0
mov eax, dword [0x462014]
add esp, 8
test eax, eax
setg al
ret
mov al, 1
ret
Function at 0x41d730
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x628], 0
je 0x41d774
push 1
push edi
call fcn.0040ef20
push dword [edi + 0x5b4]
mov eax, dword [edi + 0x628]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.0040ef20
add esp, 0x24
mov eax, esi
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
cmp eax, 2
ja 0x41d7ad
push dword [edi + 0x5b0]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea eax, [eax + eax*2]
push 1
add eax, 0x455320
push 2
push eax
call esi
push dword [edi + 0x5b0]
push 1
push dword [esp + 0x30]
push dword [esp + 0x30]
call esi
add esp, 0x20
pop edi
xor eax, eax
pop esi
ret

Function at 0x41ded0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, 0x1cc
mov ecx, dword [edi + 0x1ac]
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1a8]
mov ebp, dword [eax + edi]
mov eax, 0x1dc
cmove esi, eax
mov eax, dword [edi + 0x2c8]
add esi, edi
mov ebx, dword [esi + 4]
sub ebx, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x41dfa8
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1bc]
cmp dword [eax + edi], 0x41db20
jne 0x41dfa8
cmp dword [esi], 0
je 0x41df38
test ebx, ebx
je 0x41dfa8
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.0041d2f0
add esp, 0x14
cmp eax, 0xffffffff
je 0x41dfa8
test al, 1
je 0x41dfa8
mov ecx, dword [esi]
test ecx, ecx
jne 0x41df88
mov eax, dword [edi]
mov eax, dword [eax + 0x920]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
mov ebx, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x41dfa1
mov eax, dword [esi + 8]
push 0
push ebx
add eax, ecx
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x41dfa8
add dword [esi + 8], eax
jmp 0x41dfa8
mov dword [esi + 4], 0
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 0x41e011
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x41dfe2
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.0040aa80
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.0041d7c0
mov eax, dword [edi]
add esp, 0x14
mov ecx, dword [esp + 0x24]
pop edi
mov dword [eax + 0xd5c], 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 0x41e360
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x1ec], 0
je 0x41e37d
push eax
call fcn.00417410
add esp, 4
test eax, eax
jne 0x41e39c
xor al, al
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x41e37a
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x41e37a
mov al, 1
ret
Function at 0x42cd30
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [eax], ebx
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x42cec2
push ebp
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x42ceac
push esi
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x42cd7f
lea ebp, [eax + 0xe]
jmp 0x42cd8b
cmp eax, 0x17
jne 0x42ce39
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x42ce39
mov eax, dword [edi + 0x10]
test eax, eax
je 0x42ce39
cmp eax, ebp
jb 0x42ce39
push 0x20
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x42cea1
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 0x42ce90
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 0x42ce25
push eax
call dword [0x46200c]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x42ce76
mov eax, dword [esp + 0x10]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x42ce35
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x42cd72
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x42ce58
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x42cea8
push ebx
call fcn.0042ccf0
mov eax, dword [esp + 0x2c]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebp, 8
call dword [0x462004]
push esi
call dword [0x462004]
add esp, 8
jmp 0x42ce48
push esi
mov ebp, 8
call dword [0x462004]
add esp, 4
jmp 0x42ce48
mov ebp, 8
jmp 0x42ce48
test ebx, ebx
jne 0x42ceb8
mov ebp, 0x2af9
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x42d260
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 0x42d282
cmp eax, 0xffffffff
jne 0x42d284
xor eax, eax
ret
Function at 0x42e930
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x42e94a
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 0x457988
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
add esp, 8
test eax, eax
je 0x42e993
test ebp, ebp
je 0x42e984
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 0x42e9b9
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42e9b9
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 0x42ea6f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42e9d6
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 0x42ea65
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x42ea65
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42ea08
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 0x42ea20
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 0x42ea30
test ebp, ebp
je 0x42ea5c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x462004]
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 [0x462004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x4322d0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x462080]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x432336
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x432336
lea eax, [esp]
push eax
call dword [0x46200c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0044fd45
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor eax, eax
xor ecx, esp
call fcn.0044fd45
add esp, 0x108
ret

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

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
mov byte [esp + 0x16], al
lea eax, [esp + 0x14]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x1a8]
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x434d1c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0041d7c0
add esp, 0xc
push dword [esp + 0x18]
push ebx
push str.SENT
push dword [esi]
call fcn.004348e0
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x434e50
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
push ebp
mov eax, dword [eax]
mov dword [esp + 4], eax
mov ebp, dword [eax + 0x170]
jne 0x434fa0
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb0]
lea edi, [ebp + 0x1eb0]
mov dword [edi], ebx
cmp ebx, edi
jae 0x434e8b
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
jmp 0x434e8d
mov eax, ebx
cmp eax, edi
jae 0x434ea1
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x434ea1
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x1c], eax
movzx eax, word [ebp + 0x1caa]
push eax
call esi
mov edx, dword [esp + 0x1c]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x434f0b
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x434f0b
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x434f0b
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x434f0b
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x434f0b
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x434f0b
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov esi, dword [esp + 0x10]
mov dword [ebp + 0x1eb4], eax
sub eax, ebx
sub eax, 2
mov dword [edi], ebx
push eax
lea eax, [ebp + 0x1cb2]
push eax
push 0x3e
push esi
call fcn.004349e0
add esp, 0x10
push 0
push 3
push ebx
mov ebx, dword [esp + 0x24]
push dword [ebx + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x434f5f
call edi
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0041d7c0
add esp, 0xc
push 4
lea eax, [ebp + 0x1cb3]
push eax
push ebx
call fcn.00434d40
add esp, 0xc
lea eax, [ebp + 0x1cb7]
push 0
push 2
push eax
push dword [ebx + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x434f9d
call edi
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0041d7c0
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret