joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a1140
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516370
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x58fa2c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [esi]
test eax, eax
je 0x4a1183
push 1
push eax
call fcn.004a42c5
add esp, 8
mov eax, dword [esi + 4]
test eax, eax
je 0x4a1195
push 1
push eax
call fcn.004a42c5
add esp, 8
mov eax, dword [esi + 8]
test eax, eax
je 0x4a11a7
push 1
push eax
call fcn.004a42c5
add esp, 8
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4a11b9
push 1
push eax
call fcn.004a42c5
add esp, 8
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4a11cb
push 1
push eax
call fcn.004a42c5
add esp, 8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a11dd
push 1
push eax
call fcn.004a42c5
add esp, 8
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4a11ef
push 1
push eax
call fcn.004a42c5
add esp, 8
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4a1201
push 1
push eax
call fcn.004a42c5
add esp, 8
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4a1213
push 1
push eax
call fcn.004a42c5
add esp, 8
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4a1225
push 1
push eax
call fcn.004a42c5
add esp, 8
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4a1237
push 1
push eax
call fcn.004a42c5
add esp, 8
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4a1249
push 1
push eax
call fcn.004a42c5
add esp, 8
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4a125b
push 1
push eax
call fcn.004a42c5
add esp, 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b0260
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x516ca8
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [ebx + 8], 0xffffffff
jne 0x4b029b
mov esi, dword [ebx]
mov ecx, edi
call fcn.004b1c60
push eax
mov ecx, ebx
call dword [esi + 0x88]
mov esi, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, edi
call fcn.004b2f70
push eax
mov ecx, edi
call fcn.004b1c40
push eax
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4b02fc
call esi
cmp eax, 0x2714
je 0x4b02a1
call esi
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x24]
push eax
call fcn.004b2f90
push eax
push esi
mov dword [ebp - 4], 0
call fcn.004b05b0
mov eax, dword [ebp - 0x10]
add esp, 8
cmp eax, 0x10
jb 0x4b02fc
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.004066b0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x4b0310
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517378
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], edi
cmp dword [edi + 8], 0xffffffff
jne 0x4b0351
mov esi, dword [edi]
mov ecx, ebx
call fcn.004b1c60
push eax
mov ecx, edi
call dword [esi + 0x88]
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x7c]
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.004b2f70
mov ecx, ebx
mov esi, eax
call fcn.004b1c40
push esi
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4b042a
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2734
je 0x4b03c1
cmp esi, 0x2733
je 0x4b03c1
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.004b2f90
push eax
push esi
mov byte [ebp - 4], 1
call fcn.004b05b0
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00405600
mov eax, dword [edi]
mov ecx, edi
push 7
push dword [ebp + 0xc]
mov eax, dword [eax + 0x48]
call eax
test al, al
jne 0x4b0416
push str.connect_timed_out
lea ecx, [ebp - 0x44]
call fcn.0040d450
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.004b2f90
push 0
push eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x88]
call fcn.004a6f70
push 0x589484
lea eax, [ebp - 0x88]
push eax
call fcn.004b84f4
mov ecx, edi
call fcn.004b16e0
test eax, eax
je 0x4b042a
push eax
call fcn.004b0540
add esp, 4
mov eax, dword [edi]
mov ecx, edi
push 1
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x7c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b0470
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x516ca8
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [edi + 8], 0xffffffff
jne 0x4b04ab
mov esi, dword [edi]
mov ecx, ebx
call fcn.004b1c60
push eax
mov ecx, edi
call dword [esi + 0x88]
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x7c]
mov ecx, ebx
call fcn.004b2f70
push eax
mov ecx, ebx
call fcn.004b1c40
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4b050d
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2734
je 0x4b050d
cmp esi, 0x2733
je 0x4b050d
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.004b2f90
push eax
push esi
mov dword [ebp - 4], 0
call fcn.004b05b0
add esp, 8
lea ecx, [ebp - 0x24]
call fcn.00405600
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b0fa0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5174f0
push eax
mov dword fs:[0], esp
sub esp, 0x360
push ebx
push esi
mov esi, dword [ecx + 8]
push edi
cmp esi, 0xffffffff
jne 0x4b0fe1
push 0
lea ecx, [ebp - 0x60]
call fcn.004af570
push 0x58a330
lea eax, [ebp - 0x60]
push eax
call fcn.004b84f4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x36c], 0
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x164], 0
test al, 1
je 0x4b1016
mov dword [ebp - 0x368], esi
mov dword [ebp - 0x36c], 1
test al, 2
je 0x4b102a
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x268], 1
test al, 4
je 0x4b103e
mov dword [ebp - 0x160], esi
mov dword [ebp - 0x164], 1
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.004aac10
lea eax, [esi + 1]
mov dword [ebp - 4], 0
xor ebx, ebx
mov dword [ebp + 0xc], eax
nop dword [eax + eax]
push dword [0x54767c]
mov esi, dword [ebp - 0x10]
push dword [0x547678]
mov edi, dword [ebp - 0x14]
push esi
push edi
call fcn.004e7cc0
push 0
push 0xf4240
push esi
push edi
mov dword [ebp - 0x34], eax
call fcn.004e7cc0
imul eax, eax, 0xf4240
lea ecx, [ebp - 0x2c]
sub edi, eax
mov dword [ebp - 0x30], edi
call fcn.004a7aa0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x36c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jns 0x4b113b
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2714
jne 0x4b113b
lea ecx, [ebp - 0x24]
call fcn.004a7aa0
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
sbb eax, dword [ebp - 0x28]
push eax
push ecx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004aac70
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 3
cmp eax, dword [ebp - 0x10]
jg 0x4b111f
jl 0x4b1111
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jae 0x4b111f
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.004aac90
jmp 0x4b112b
push 0
push 0
lea ecx, [ebp - 0x14]
call fcn.004aac70
lea ecx, [ebp - 0x1c]
call fcn.00419680
lea ecx, [ebp - 0x24]
call fcn.00419680
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00419680
test esi, esi
jns 0x4b1160
cmp ebx, 0x2714
je 0x4b1060
push ebx
call fcn.004b0540
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.00419680
mov ecx, dword [ebp - 0xc]
test esi, esi
pop edi
pop esi
setg al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b1180
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push ebp
mov ebp, dword [esp + 0x40]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x4b120a
push ebp
push dword [esp + 0x48]
push dword [esp + 0x48]
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp byte [edi + 0xc], 0
mov esi, eax
je 0x4b11c0
test esi, esi
jns 0x4b11e5
call ebx
cmp eax, 0x2714
je 0x4b1193
test esi, esi
jns 0x4b11e5
call ebx
cmp eax, 0x2733
jne 0x4b11d5
cmp byte [edi + 0xc], 0
je 0x4b11e5
jmp 0x4b11f1
cmp eax, 0x274c
je 0x4b11f1
push eax
call fcn.004b0540
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0xc
push eax
lea ecx, [esp + 0x14]
call fcn.004a6fa0
push 0x589484
lea eax, [esp + 0x14]
push eax
call fcn.004b84f4
push 0
lea ecx, [esp + 0x14]
call fcn.004af570
push 0x58a330
lea eax, [esp + 0x14]
push eax
call fcn.004b84f4
int3

Function at 0x4b1230
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517508
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
mov ebx, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], 0x1c
nop dword [eax]
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x4b1317
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp byte [edi + 0xc], 0
mov esi, eax
je 0x4b1299
test esi, esi
jns 0x4b129d
call ebx
cmp eax, 0x2714
je 0x4b1260
test esi, esi
js 0x4b12c6
push dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004b2a20
mov ecx, dword [ebp + 0x10]
push eax
mov dword [ebp - 4], 0
call fcn.004b2b50
lea ecx, [ebp - 0x4c]
call fcn.004b2b40
jmp 0x4b1302
call ebx
cmp eax, 0x2733
jne 0x4b12f2
cmp byte [edi + 0xc], 0
je 0x4b1302
push eax
lea ecx, [ebp - 0x84]
call fcn.004a6fa0
push 0x589484
lea eax, [ebp - 0x84]
push eax
call fcn.004b84f4
cmp eax, 0x274c
je 0x4b12d5
push eax
call fcn.004b0540
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push 0
lea ecx, [ebp - 0x58]
call fcn.004af570
push 0x58a330
lea eax, [ebp - 0x58]
push eax
call fcn.004b84f4
int3

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

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push ebp
mov ebp, dword [esp + 0x40]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x4b1385
push ebp
push dword [esp + 0x48]
push dword [esp + 0x48]
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp byte [edi + 0xc], 0
mov esi, eax
je 0x4b1370
test esi, esi
jns 0x4b1379
call ebx
cmp eax, 0x2714
je 0x4b1343
test esi, esi
jns 0x4b1379
call fcn.004b0b70
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0xc
push 0
lea ecx, [esp + 0x14]
call fcn.004af570
push 0x58a330
lea eax, [esp + 0x14]
push eax
call fcn.004b84f4
int3
Function at 0x4b13a0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push ebp
mov ebp, dword [esp + 0x40]
push esi
push edi
mov edi, ecx
cmp dword [edi + 8], 0xffffffff
je 0x4b1408
mov ecx, ebp
call fcn.004b2f70
push eax
mov ecx, ebp
call fcn.004b1c40
push eax
push dword [esp + 0x54]
push dword [esp + 0x50]
push dword [esp + 0x50]
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_sendto]
cmp byte [edi + 0xc], 0
mov esi, eax
je 0x4b13f3
test esi, esi
jns 0x4b13fc
call ebx
cmp eax, 0x2714
je 0x4b13b3
test esi, esi
jns 0x4b13fc
call fcn.004b0b70
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
push 0
lea ecx, [esp + 0x14]
call fcn.004af570
push 0x58a330
lea eax, [esp + 0x14]
push eax
call fcn.004b84f4
int3

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

Disassembly:
mov eax, dword [ecx + 8]
sub esp, 0x2c
cmp eax, 0xffffffff
je 0x4b145a
push 1
push 1
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4b1454
call fcn.004b0b70
add esp, 0x2c
ret 4
push 0
lea ecx, [esp + 4]
call fcn.004af570
push 0x58a330
lea eax, [esp + 4]
push eax
call fcn.004b84f4
int3

Function at 0x4b14f0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [ecx + 8]
sub esp, 0x2c
cmp eax, 0xffffffff
je 0x4b1522
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4b151c
call fcn.004b0b70
add esp, 0x2c
ret 0x10
push 0
lea ecx, [esp + 4]
call fcn.004af570
push 0x58a330
lea eax, [esp + 4]
push eax
call fcn.004b84f4
int3

Function at 0x4b38b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5178d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0041b910
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push edx
mov dword [ebp - 4], 0
mov dword [esi], vtable.Poco::BasicBufferedStreamBuf_char__struct_std::char_traits_char___class_Poco::Net::HTTPBufferAllocator_.0
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
call fcn.004b1850
mov ecx, dword [ebp + 0x10]
add esp, 8
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ecx
lea ecx, [eax + 4]
mov eax, dword [esi + 0xc]
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
sub ecx, ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], ecx
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x40]
mov ecx, dword [esi + 0x38]
dec ecx
mov dword [eax], edx
add ecx, edx
mov eax, dword [esi + 0x20]
sub ecx, edx
mov dword [eax], edx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b6e60
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
cmp dword [esi + 0x10], 0
jne 0x4b6e84
mov ecx, dword [esp + 0xc]
call fcn.004b6780
mov eax, dword [esp + 0xc]
pop esi
pop ecx
ret
cmp dword [esi + 0x14], 0x10
jb 0x4b6e8e
mov eax, dword [esi]
jmp 0x4b6e90
mov eax, esi
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x4b6eb7
push 0xf
push str.255.255.255.255
push dword [esi + 0x10]
mov ecx, esi
push 0
call fcn.004a8c00
test eax, eax
jne 0x4b6e74
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
call fcn.004b6750
mov eax, dword [esp + 0xc]
pop esi
pop ecx
ret

Function at 0x4b6ed0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x3c
mov eax, dword [esp + 0x44]
push esi
mov dword [esp + 4], 0
cmp dword [eax + 0x10], 0
je 0x4b6f4f
cmp dword [eax + 0x14], 0x10
xorps xmm0, xmm0
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x20], 4
movups xmmword [esp + 0x30], xmm0
jb 0x4b6f03
mov eax, dword [eax]
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x24]
push ecx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x4b6f4f
mov esi, dword [esp + 0x48]
lea ecx, [esp + 8]
mov eax, dword [esi + 0x18]
push dword [eax + 0x18]
add eax, 8
push eax
call fcn.004b6800
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [esp + 0x44]
lea eax, [esp + 8]
push eax
call fcn.004b67a0
mov eax, dword [esp + 0x44]
pop esi
add esp, 0x3c
ret
mov ecx, dword [esp + 0x44]
call fcn.004b6830
mov eax, dword [esp + 0x44]
pop esi
add esp, 0x3c
ret

Function at 0x4b7b30
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x30]
xorps xmm0, xmm0
push esi
mov esi, dword [esp + 0x30]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], 0
movups xmmword [esp + 0x18], xmm0
cmp dword [esi + 0x14], 0x10
mov dword [esp + 8], eax
jb 0x4b7b5f
mov eax, dword [esi]
jmp 0x4b7b61
mov eax, esi
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0xc]
push ecx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x4b7b98
push dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
call fcn.004b7610
push dword [esp + 0x34]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [esp + 0x2c]
pop esi
add esp, 0x24
ret
push esi
push eax
call fcn.004b7a30
int3

Function at 0x4dd4ec
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004dd18e

Function at 0x4e425c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e40d9
Function at 0x4e52a4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x593cf0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4e52e5
cmp byte [edx], 0xa
jne 0x4e52e5
or byte [eax + edi + 0x28], 4
jmp 0x4e52ea
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x4e53db
mov al, byte [ebx]
cmp al, 0x1a
je 0x4e53bc
cmp al, 0xd
je 0x4e5313
mov byte [esi], al
inc esi
inc ebx
jmp 0x4e53b1
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x4e5333
cmp byte [eax], 0xa
jne 0x4e5328
push 2
mov byte [esi], 0xa
pop eax
jmp 0x4e532e
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x4e53b1
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e53aa
cmp dword [ebp - 0x14], 0
je 0x4e53aa
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x593cf0]
test byte [eax + edi + 0x28], 0x48
je 0x4e5381
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x4e5371
mov byte [esi], dl
jmp 0x4e53ad
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x593cf0]
mov byte [eax + edi + 0x2a], dl
jmp 0x4e53ad
cmp byte [ebp - 1], 0xa
jne 0x4e5393
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x4e5393
mov byte [esi], 0xa
jmp 0x4e5330
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004e4f4b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4e53ae
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x4e52fc
jmp 0x4e53db
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x593cf0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4e53d6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4e53db
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e53e6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x593cf0]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x4e542a
cmp word [edx], bx
jne 0x4e542a
or byte [edi + eax + 0x28], 4
jmp 0x4e542f
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x4e5583
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x4e5563
cmp ax, word [ebp - 0x10]
je 0x4e5468
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x4e5558
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x4e548e
push 0xa
pop ecx
cmp word [eax], cx
jne 0x4e547e
push ecx
pop eax
push 4
jmp 0x4e5483
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x4e5552
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e5549
cmp dword [ebp - 0x18], 0
je 0x4e5549
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x593cf0]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x4e5515
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4e54d9
mov word [esi], ax
jmp 0x4e550d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x593cf0]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x593cf0]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x593cf0]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x4e5558
cmp word [ebp - 4], ax
jne 0x4e552a
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x4e552a
mov word [esi], ax
add esi, 2
jmp 0x4e5558
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004e4f4b
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4e5555
jmp 0x4e554c
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x4e5448
jmp 0x4e5583
mov ecx, dword [ecx*4 + 0x593cf0]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x4e557a
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x4e5583
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431001
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7e6c1468
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x431060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x7d607dd7
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219