joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421ec0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e706
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4c0980]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x24c], esi
call fcn.0046e6a0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push 0x7e
push eax
call fcn.0046e92b
lea ecx, [ebp - 0x218]
add esp, 8
mov edx, eax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421f45
sub ecx, edi
mov dword [ebp - 0x220], 0
sar ecx, 1
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x230]
movups xmmword [ebp - 0x230], xmm0
push eax
test edx, edx
je 0x42203e
call fcn.00401cc0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00427060
push eax
push esi
mov byte [ebp - 4], 1
call fcn.004224d0
mov ecx, dword [ebp - 0x234]
add esp, 0x10
cmp ecx, 0xf
jbe 0x421fef
mov edx, dword [ebp - 0x248]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x421fe5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422083
push ecx
push edx
call fcn.0046ca31
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x422066
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42205c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422083
jmp 0x42205c
call fcn.00401cc0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 2
push eax
push esi
call fcn.00427060
add esp, 8
jmp 0x42200a
push ecx
push edx
call fcn.0046ca31
add esp, 8
mov eax, esi
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.0046ca44
mov esp, ebp
pop ebp
ret
call fcn.00471cbf
int3
Function at 0x432e00
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x432eb5
push esi
call fcn.004489e0
add esp, 4
test al, al
jne 0x432eb5
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x432e30
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00451c70
add esp, 0xc
test eax, eax
je 0x432e64
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00451c70
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x432e66
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
lea ebx, [esi + edi]
mov edi, 0x1505
cmp esi, ebx
jae 0x432e93
mov al, byte [esi]
push eax
call fcn.00446ba0
movsx ecx, al
inc esi
mov eax, edi
add esp, 4
shl eax, 5
add eax, edi
xor ecx, eax
mov edi, ecx
cmp esi, ebx
jb 0x432e75
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x443490
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x4a2c38
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4434b0
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push str.LoadLibraryExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x4a6f48
push esi
mov dword [ebp - 8], ebx
call fcn.0047f81a
add esp, 8
test eax, eax
je 0x4434fc
test ebx, ebx
je 0x4434ec
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x443525
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x443525
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x4435d0
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x443541
sub ecx, ebx
lea eax, [ecx + 1]
add eax, edx
push eax
call dword [0x4c0510]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4435c6
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4435c6
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x443572
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x443590
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 0x4435a0
mov eax, dword [ebp - 8]
test eax, eax
je 0x4435bd
push 8
push 0
push ebx
call eax
jmp 0x4435c4
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x4c0514]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4489e0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
setg al
mov esp, ebp
pop ebp
ret
Function at 0x449820
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4c0980]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0x38], esi
cmp byte [ebx + 0x616], 0
je 0x449957
cmp byte [esi + 0x18], 0
lea eax, [esi + 0x18]
je 0x449957
lea ecx, [ebp - 0x4c]
push ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x449957
mov edx, dword [ebp - 0x38]
mov eax, str._none_
cmp byte [edx + 0x18], 0
lea ecx, [edx + 0x18]
mov esi, dword [esi]
cmovne eax, ecx
push dword [edx + 0x14]
push eax
push str.Host__s:_d_was_resolved.
push ebx
call fcn.00440060
lea eax, [ebp - 0x48]
push 0x400
push eax
call fcn.00433460
add esp, 0x18
test esi, esi
je 0x449909
cmp dword [esi + 4], 2
jne 0x449902
push 0x2e
lea eax, [ebp - 0x34]
mov byte [ebp - 0x34], 0
push eax
mov eax, dword [esi + 0x18]
add eax, 4
push eax
push 2
call sub.WS2_32.dll_inet_ntop
lea eax, [ebp - 0x48]
push eax
call fcn.00433490
add esp, 4
test eax, eax
je 0x4498e8
push 2
lea eax, [ebp - 0x48]
push 0x4a6664
push eax
call fcn.00433420
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x449927
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004333c0
mov edi, eax
add esp, 8
test edi, edi
jne 0x449927
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x4498a5
lea eax, [ebp - 0x48]
push eax
call fcn.00433490
add esp, 4
test eax, eax
je 0x449937
lea eax, [ebp - 0x48]
push eax
call fcn.004334a0
add esp, 4
jmp 0x44993c
push str.too_many_IP__cant_show
push ebx
call fcn.00440060
add esp, 8
jmp 0x44994b
mov eax, str._none_
push eax
push str.IPv4:__s
push ebx
call fcn.00440060
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
call fcn.00433430
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ca44
mov esp, ebp
pop ebp
ret
Function at 0x452390
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00433180
push dword [ebp + 8]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x10], xmm0
call fcn.0048839b
push dword [ebp + 0xc]
mov edi, eax
call fcn.0048839b
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x452417
lea eax, [ebp - 0x20]
push eax
call fcn.00433180
movups xmm0, xmmword [ebp - 0x10]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.00433230
add esp, 0x20
test edx, edx
ja 0x45243a
jb 0x452405
cmp eax, 0x3e8
ja 0x45243a
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x4523d0
test edi, edi
je 0x452424
push edi
call fcn.00472719
add esp, 4
test esi, esi
je 0x452431
push esi
call fcn.00472719
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x452447
push edi
call fcn.00472719
add esp, 4
test esi, esi
je 0x452454
push esi
call fcn.00472719
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452910
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [eax], edi
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]
mov dword [ebp - 4], eax
test eax, eax
jne 0x452a87
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x452a73
push ebx
nop dword [eax]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45296c
lea edx, [eax + 1]
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x452960
sub eax, edx
inc eax
jmp 0x45296e
xor eax, eax
cmp dword [esi + 4], 2
mov dword [ebp - 8], eax
jne 0x452a12
cmp dword [esi + 0x18], 0
je 0x452a12
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x452a12
cmp ecx, 0x10
jb 0x452a12
add eax, 0x30
push eax
call dword [0x4c0510]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x452a65
mov ecx, dword [esi]
lea edx, [ebx + 0x20]
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 eax, dword [esi + 0xc]
mov ecx, dword [ebp - 8]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 0x10
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], edx
mov eax, dword [esi + 0x18]
movups xmm0, xmmword [eax]
movups xmmword [edx], xmm0
test ecx, ecx
je 0x452a00
lea eax, [edx + 0x10]
push ecx
mov dword [ebx + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.0046e120
add esp, 0xc
mov eax, dword [ebp - 0xc]
test edi, edi
cmove edi, ebx
test eax, eax
je 0x452a0f
mov dword [eax + 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x452950
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop ebx
test eax, eax
je 0x452a2f
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x452a6f
test edi, edi
je 0x452a56
nop word [eax + eax]
mov esi, dword [edi + 0x1c]
push edi
call dword [0x4c0514]
add esp, 4
mov edi, esi
test esi, esi
jne 0x452a40
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
xor edi, edi
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov esi, 8
mov dword [ebp - 4], esi
jmp 0x452a20
test edi, edi
jne 0x452a7f
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x452c30
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x452c5f
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push dword [ebp + 8]
push eax
push 2
call fcn.00452a90
add esp, 0x10
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x452dd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.0047ebe2
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x452df7
cmp ecx, 0xffffffff
cmovne eax, ecx
pop ebp
ret
Function at 0x4535a0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, 0x2b
test edi, edi
je 0x45364c
mov esi, dword [ebp + 0xc]
nop dword [eax]
push 4
lea eax, [ebp + 0x10]
mov ebx, 4
push eax
push dword [ebp + 8]
cmp edi, ebx
cmovb ebx, edi
call fcn.00439e70
add esp, 0xc
cmp eax, 4
je 0x4535e4
mov ecx, eax
jmp 0x45360c
cmp byte [0x4c1da4], 0
jne 0x453615
push 2
push 4
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb ecx, ecx
and ecx, 2
mov eax, ecx
test eax, eax
jne 0x45364e
mov eax, dword [ebp + 0x10]
jmp 0x453631
imul eax, dword [0x4c1da0], 0x41c64e6d
add eax, 0x3039
mov dword [0x4c1da0], eax
ror eax, 0x10
xor ecx, ecx
mov dword [ebp + 0x10], eax
test ebx, ebx
je 0x453644
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x453635
mov dword [ebp + 0x10], eax
test edi, edi
jne 0x4535c0
mov eax, ecx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x453660
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
sub ebx, 1
je 0x4536d0
mov esi, dword [ebp + 8]
push 4
lea eax, [ebp + 0x10]
push eax
push esi
call fcn.00439e70
add esp, 0xc
cmp eax, 4
jne 0x4536ad
cmp byte [0x4c1da4], 0
jne 0x4536da
push 2
push eax
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
test eax, eax
jne 0x4536d5
mov eax, dword [ebp + 0x10]
cmp eax, 0xfffffffc
jae 0x453674
xor edx, edx
mov ecx, 0x3e
div ecx
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789]
mov byte [edi], al
inc edi
sub ebx, 1
jne 0x453674
mov byte [edi], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
imul eax, dword [0x4c1da0], 0x41c64e6d
add eax, 0x3039
mov dword [0x4c1da0], eax
ror eax, 0x10
mov dword [ebp + 0x10], eax
jmp 0x4536b4

Function at 0x453700
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0046e6a0
add esp, 0xc
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
pop ebp
ret
Function at 0x4542d0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0x14]
push esi
push 0
push dword [ebp + 0x10]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 4
mov dword [ebp + 0x14], esi
call fcn.0046e6a0
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x45439f
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x454381
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x454381
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x454381
cmp esi, dword [ebp - 0xc]
jb 0x454381
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 4]
test eax, eax
je 0x45438f
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0x45439f
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x456b40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
lea esi, [ebx + 1]
push esi
push ebx
call dword [0x4c0518]
mov edi, eax
add esp, 8
test edi, edi
je 0x456b9a
nop dword [eax]
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x456bb6
cmp esi, ebx
je 0x456bb6
cmp esi, 0x8000
ja 0x456bb6
cmp esi, ebx
jb 0x456bad
push esi
push edi
call dword [0x4c0518]
mov edi, eax
add esp, 8
test edi, edi
jne 0x456b60
mov ebx, dword [ebp - 4]
push ebx
call dword [0x4c0514]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [0x4c0514]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4587b0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4c0980]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
cmp edi, 4
jb 0x458920
inc ebx
sub edi, 2
push str.0123456789abcdefABCDEF:.
push ebx
mov dword [ebp - 0x50], ebx
call fcn.0047f910
add esp, 8
cmp edi, eax
je 0x4588ac
mov edi, eax
add eax, ebx
mov dword [ebp - 0x4c], eax
cmp byte [eax], 0x25
jne 0x458920
push 2
lea esi, [eax + 1]
xor ebx, ebx
push 0x4aa728
push esi
call fcn.0047f090
add esp, 0xc
test eax, eax
jne 0x45882e
mov cl, byte [esi + 2]
lea eax, [esi + 2]
test cl, cl
je 0x45882e
cmp cl, 0x5d
cmovne esi, eax
mov al, byte [esi]
test al, al
je 0x458920
lea ecx, [ebp - 0x14]
sub ecx, esi
nop dword [eax]
cmp al, 0x5d
je 0x458855
cmp ebx, 0xf
jge 0x458855
mov byte [ecx + esi], al
inc ebx
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x458840
test ebx, ebx
je 0x458920
cmp byte [esi], 0x5d
jne 0x458920
cmp ebx, 0x10
jae 0x458936
lea eax, [ebp - 0x14]
mov byte [ebp + ebx - 0x14], 0
push eax
call dword [0x4c051c]
mov ecx, dword [ebp - 0x48]
add esp, 4
mov dword [ecx + 0x14], eax
test eax, eax
jne 0x4588a1
pop edi
pop esi
mov eax, 7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ca44
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x50]
mov word [eax], 0x5d
lea eax, [ebp - 0x14]
mov byte [edi + ebx], 0
push eax
push ebx
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x458920
push 0x2e
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x17
call sub.WS2_32.dll_inet_ntop
test eax, eax
je 0x458909
lea edx, [ebp - 0x44]
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4588e0
sub edx, ecx
cmp edx, edi
jae 0x458909
lea ecx, [ebp - 0x44]
mov esi, ebx
mov eax, ecx
sub esi, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x4588f6
mov byte [edx + ebx + 1], al
mov edi, edx
mov byte [edi + ebx], 0x5d
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ca44
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x16
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ca44
mov esp, ebp
pop ebp
ret
call fcn.0046d1ed
int3
Function at 0x461070
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4c0980]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov eax, dword [ebx]
push 0
push dword [ebp + 0x10]
mov eax, dword [eax + 8]
push ecx
mov dword [edi], 0
mov dword [ebp - 0x108], eax
push dword [eax + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x461106
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4610d1
mov dword [edi], 0x51
jmp 0x461103
push 0x100
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.00429e70
push eax
push str.Recv_failure:__s
push dword [ebx + 4]
call fcn.0043ffa0
mov eax, dword [ebx + 4]
add esp, 0x18
mov dword [eax + 0x830], esi
mov dword [edi], 0x38
or esi, 0xffffffff
push dword [edi]
mov eax, dword [ebp - 0x108]
push esi
push dword [eax + 0x98]
push dword [ebp + 0x10]
push str.nw_in_read_len_zu__fd_d______d__err_d
push dword [ebx]
push dword [ebx + 4]
call fcn.004400a0
mov ecx, dword [ebp - 4]
add esp, 0x1c
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046ca44
mov esp, ebp
pop ebp
ret

Function at 0x461140
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x4c0980]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [esi + 0x98]
cmp edi, 0xffffffff
je 0x46126b
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x25c]
test dword [eax + 0x48], 0x800
jne 0x46126b
push 0x80
lea eax, [ebp - 0x184]
mov dword [ebp - 0x188], 0x80
push 0
push eax
call fcn.0046e6a0
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x184]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4611fd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.00429e70
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0043ffa0
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ca44
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x11c]
push eax
lea eax, [esi + 0xea]
push eax
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.004421f0
add esp, 0x10
test al, al
jne 0x46126b
call fcn.00471dad
mov esi, dword [eax]
call fcn.00471dad
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.00429e70
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0043ffa0
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ca44
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ca44
mov esp, ebp
pop ebp
ret