joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b0b40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ecdb5
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x68e500]
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, ecx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 4
push eax
lea eax, [ebp - 0x54]
mov ecx, 0x691c20
push eax
call fcn.004117e0
mov esi, dword [ebp - 0x4c]
cmp byte [esi + 0xd], 0
jne 0x4b0c03
cmp dword [esi + 0x10], 4
jg 0x4b0c03
add esi, 0x14
mov edi, esi
cmp dword [esi + 0x14], 0xf
jbe 0x4b0ba2
mov edi, dword [esi]
xor ecx, ecx
mov edx, 0x811c9dc5
cmp dword [esi + 0x10], ecx
jbe 0x4b0bc2
nop
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, dword [esi + 0x10]
jb 0x4b0bb0
push edx
push esi
lea eax, [ebp - 0x48]
mov ecx, ebx
push eax
call fcn.004b0700
mov eax, dword [eax + 4]
test eax, eax
je 0x4b0bff
cmp eax, dword [ebx + 4]
je 0x4b0bff
cmp dword [ebx + 8], 1
jne 0x4b0c0d
mov al, 1
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.005aa453
mov esp, ebp
pop ebp
ret
xor al, al
jmp 0x4b0be3
push str.invalid_map_K__T__key
call fcn.00595e35
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.004b0c60
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push str.AcceptEncoding_does_not_accept_any_other_values_if_disabled_is_present._You_set_the_following_encodings:
push eax
call fcn.004556e0
add esp, 0xc
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.004b0af0
push 0x688df8
lea eax, [ebp - 0x54]
push eax
call fcn.005ac4fb
int3
Function at 0x4b95e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x78]
test eax, eax
je 0x4b9605
push dword [edi + 0x74]
call eax
add esp, 4
push ebx
push esi
mov esi, dword [edi + 0x54]
test esi, esi
je 0x4b966b
nop
mov ebx, dword [esi + 4]
xor edx, edx
mov eax, dword [ebx + 0x60]
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x4b9664
mov ecx, dword [eax + 8]
cmp eax, esi
je 0x4b9637
mov edx, eax
mov eax, ecx
test eax, eax
jne 0x4b9626
jmp 0x4b9664
test edx, edx
jne 0x4b9640
mov dword [ebx + 0x54], ecx
jmp 0x4b9643
mov dword [edx + 8], ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b9650
push esi
call eax
add esp, 4
push esi
call fcn.004b9b00
mov eax, dword [esp + 0x20]
push esi
push eax
mov eax, dword [eax + 8]
call eax
add esp, 0xc
mov esi, dword [edi + 0x54]
test esi, esi
jne 0x4b9610
lea eax, [edi + 0x6c]
test eax, eax
je 0x4b96ee
test ebp, ebp
je 0x4b96ee
mov ebx, dword [eax]
test ebx, ebx
je 0x4b96e1
nop dword [eax]
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x4b9697
push esi
call eax
add esp, 4
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x4b96ab
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4b96bc
push eax
mov eax, dword [ebp + 8]
push ebp
call eax
add esp, 8
mov dword [esi + 0x28], 0
mov eax, dword [ebp + 8]
push esi
push ebp
call eax
mov eax, dword [ebp + 8]
push ebx
push ebp
call eax
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x4b9680
lea eax, [edi + 0x6c]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [edi + 0x30]
mov dword [edi + 0x58], 0
test eax, eax
je 0x4b9702
push edi
call eax
add esp, 4
push ebp
push edi
call fcn.004b9560
mov eax, dword [esp + 0x18]
add esp, 8
mov eax, dword [eax + 0x34]
test eax, eax
je 0x4b971d
push edi
call eax
add esp, 4
mov esi, dword [edi + 0x68]
mov eax, dword [edi + 8]
mov dword [esp + 0x20], eax
test esi, esi
je 0x4b974f
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
test eax, eax
je 0x4b973b
push esi
call eax
add esp, 4
test dword [esp + 0x20], 0x400
jne 0x4b974f
mov eax, dword [ebx + 8]
push esi
push ebx
call eax
add esp, 8
mov eax, dword [edi + 0x80]
mov dword [edi + 0x68], 0
pop esi
pop ebx
test eax, eax
je 0x4b9776
push eax
mov eax, dword [ebp + 8]
push ebp
call eax
add esp, 8
mov dword [edi + 0x80], 0
mov eax, dword [ebp + 8]
push edi
push ebp
call eax
add esp, 8
pop edi
pop ebp
pop ecx
ret
Function at 0x501c30
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esi + 0x58]
mov dword [eax], 0
cmp byte [esi + 0x35c], 0
mov dword [esp + 0x10], edi
jne 0x501c67
push dword [esi + 0x68]
push esi
call fcn.00508f20
add esp, 8
test eax, eax
jne 0x501e20
mov edx, dword [esi + 0x348]
push ebx
mov ebx, dword [esi + 0x358]
add edx, 8
mov esi, 6
mov dword [esp + 0xc], esi
push ebp
lea ebp, [edx + ebx*4]
test edi, edi
je 0x501cef
mov eax, dword [esp + 0x24]
test eax, eax
je 0x501cef
mov ecx, eax
lea eax, [ecx + 1]
mov dword [esp + 0x14], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x501ca0
sub ecx, dword [esp + 0x14]
mov dword [esp + 0x14], ecx
je 0x501cef
test ebx, ebx
je 0x501cef
movzx esi, byte [edx + 2]
lea edi, [edx + 4]
movzx eax, byte [edi - 1]
movzx ecx, byte [edx]
shl esi, 8
or esi, eax
shl ecx, 8
movzx eax, byte [edx + 1]
mov edx, dword [esp + 0x18]
or ecx, eax
movzx eax, word [edx + 0xe]
cmp ecx, eax
je 0x501cf9
lea eax, [esi + esi*4]
mov edx, edi
lea ebp, [ebp + eax*2]
sub ebx, 1
jne 0x501cb5
mov esi, dword [esp + 0x10]
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret
test esi, esi
je 0x501ceb
lea edi, [ebp + 1]
movzx ebx, byte [edi + 4]
test bl, 0x10
je case.default.0x501d82
movzx ecx, byte [edi - 1]
movzx eax, byte [edi]
movzx ebp, byte [edi + 5]
mov edx, dword [esp + 0x20]
shl ecx, 8
or ecx, eax
shl ebp, 8
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 6]
or ebp, eax
movzx eax, byte [edi + 7]
shl ebp, 8
or ebp, eax
movzx eax, byte [edi + 8]
shl ebp, 8
or ebp, eax
mov eax, dword [edx + 0x354]
cmp ecx, eax
jae case.default.0x501d82
sub eax, ecx
cmp dword [esp + 0x14], eax
jae case.default.0x501d82
push eax
mov eax, dword [edx + 0x350]
add eax, ecx
push eax
push dword [esp + 0x2c]
call fcn.005bfb60
add esp, 0xc
test eax, eax
jne case.default.0x501d82
and ebx, 0xf
cmp ebx, 3
ja case.default.0x501d82
jmp dword [ebx*4 + 0x501e28]
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x354]
cmp ebp, eax
jae case.default.0x501d82
push eax
mov eax, dword [edx + 0x350]
add eax, ebp
push 0
push eax
call fcn.005ac570
add esp, 0xc
test eax, eax
jne 0x501dc9
add edi, 0xa
sub esi, 1
jne 0x501d00
mov esi, dword [esp + 0x10]
mov eax, esi
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xc
ret
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov dword [ecx], 1
mov eax, dword [esi + 0x350]
add eax, ebp
xor esi, esi
pop ebp
pop ebx
mov dword [ecx + 4], eax
mov eax, esi
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x28]
xor esi, esi
mov dword [eax + 4], ebp
pop ebp
pop ebx
mov dword [eax], 2
mov eax, esi
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x28]
xor esi, esi
mov dword [eax + 4], ebp
pop ebp
pop ebx
mov dword [eax], 3
mov eax, esi
pop edi
pop esi
add esp, 0xc
ret
mov esi, eax
pop edi
pop esi
add esp, 0xc
ret
Function at 0x513410
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x513424
lea eax, [esi + 0x28]
pop esi
add esp, 0xc
ret
push ebx
push 0
push 0x80
push 3
push 0
push 1
push accept
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x513453
pop ebx
mov eax, 1
pop esi
add esp, 0xc
ret
push ebp
push edi
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x513565
mov ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x513565
mov eax, dword [esp + 0x14]
jl 0x51348c
cmp eax, 0x7fffffff
ja 0x513565
or eax, ecx
je 0x513565
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
je 0x513565
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
push 4
push edi
mov dword [esi + 4], ecx
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov dword [esi], eax
call ebp
cmp dword [esi], 0
je 0x5134dd
mov eax, 0x5135c0
jmp 0x51352d
push dword [esi + 4]
mov eax, dword [esi + 0x1c]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x513565
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
xor edi, edi
nop dword [eax + eax]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 4]
sub eax, edi
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call ebp
test eax, eax
je 0x513550
add edi, dword [esp + 0x10]
cmp edi, dword [esi + 4]
jne 0x513500
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x513590
push ebx
mov dword [esi + 0x18], eax
call ebp
mov eax, dword [esi]
pop edi
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x20]
pop ebp
mov dword [esi + 0x10], eax
xor eax, eax
pop ebx
mov dword [esi + 0x14], 0
pop esi
add esp, 0xc
ret
push dword [esi]
mov eax, dword [esi + 0x1c]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call ebp
pop edi
pop ebp
pop ebx
mov dword [esi], 0
mov eax, 0x51
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop esi
add esp, 0xc
ret
Function at 0x532190
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ecx, 0x2b
test edi, edi
je 0x532240
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
nop dword [eax]
mov ebx, 4
lea eax, [esp + 0x1c]
push 4
push eax
cmp edi, ebx
push ebp
cmovb ebx, edi
call fcn.005341c0
add esp, 0xc
cmp eax, 4
je 0x5321d3
mov ecx, eax
jmp 0x5321fd
cmp byte [0x691e98], 0
jne 0x532207
push 2
push 4
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 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 0x532242
mov eax, dword [esp + 0x1c]
jmp 0x532224
imul eax, dword [0x691e94], 0x41c64e6d
add eax, 0x3039
mov dword [0x691e94], eax
ror eax, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x532238
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x532228
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x5321b0
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x532250
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
sub ebx, 1
je 0x5322cb
mov esi, dword [esp + 0x14]
mov ebp, 0x3e
nop word [eax + eax]
push 4
lea eax, [esp + 0x20]
push eax
push esi
call fcn.005341c0
add esp, 0xc
cmp eax, 4
jne 0x5322ac
cmp byte [0x691e98], 0
jne 0x5322d5
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
test eax, eax
jne 0x5322d0
mov eax, dword [esp + 0x1c]
cmp eax, 0xfffffffc
jae 0x532270
xor edx, edx
div ebp
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789]
mov byte [edi], al
inc edi
sub ebx, 1
jne 0x532270
mov byte [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
imul eax, dword [0x691e94], 0x41c64e6d
add eax, 0x3039
mov dword [0x691e94], eax
ror eax, 0x10
mov dword [esp + 0x1c], eax
jmp 0x5322b4

Function at 0x532300
Capabilities:
Generate random numbers via winapi

Disassembly:
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call fcn.005acba0
add esp, 0xc
push 2
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
ret
Function at 0x5364d0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x53657f
push esi
call fcn.00553bf0
add esp, 4
test al, al
jne 0x53657f
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x5364f7
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00554ec0
add esp, 0xc
test eax, eax
je 0x53652b
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00554ec0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x53652d
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 0x53655e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.00530110
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 0x536540
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
ret
xor eax, eax
pop esi
ret
Function at 0x546940
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x60ebe4
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x54695a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push 0x60ebf8
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x60ec08
push esi
call fcn.005c2bd6
add esp, 8
test eax, eax
je 0x5469a2
test ebp, ebp
je 0x546993
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_LoadLibraryW]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x5469c8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5469c8
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_GetSystemDirectoryW]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x546aa2
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5469e5
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x68e068]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x546a98
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x546a98
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x546a26
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x546a41
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, esi
add ecx, ebx
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x546a60
test ebp, ebp
je 0x546a8f
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x68e06c]
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_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x68e06c]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x546ab0
Capabilities:
Get common file path
Initialize winsock library
Link many functions at runtime

Disassembly:
sub esp, 0x198
mov eax, dword [0x68e500]
xor eax, esp
mov dword [esp + 0x194], eax
test byte [esp + 0x19c], 2
je 0x546b11
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x546af7
mov eax, dword [esp + 4]
cmp al, 2
jne 0x546af1
shr eax, 8
cmp al, 2
je 0x546b11
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.005aa453
add esp, 0x198
ret
call fcn.005749f0
test eax, eax
jne 0x546cf7
push ebp
push esi
push edi
push 0x60ebe4
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x546b45
mov dword [0x691f84], esi
jmp 0x546c7c
push ebx
push 0x60ebf8
push edi
call ebp
push 0x60ec08
push str.iphlpapi.dll
mov ebx, eax
call fcn.005c2bd6
add esp, 8
test eax, eax
je 0x546b8e
test ebx, ebx
je 0x546b7c
push 8
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x546c60
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
jmp 0x546c60
test ebx, ebx
je 0x546bb3
push str.AddDllDirectory
push edi
call ebp
test eax, eax
je 0x546bb3
push 0x800
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x546c60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [esp + 0x10], eax
test eax, eax
je 0x546c60
lea ecx, [eax*2 + 0x1a]
push ecx
call dword [0x68e068]
mov edi, eax
add esp, 4
test edi, edi
je 0x546c56
push dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x546c56
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x546bf4
sub ecx, edx
mov edx, edi
sar ecx, 1
mov dword [edi + ecx*2], 0x5c
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x546c10
sub edx, ecx
mov ecx, str.iphlpapi.dll
sar edx, 1
add edx, edx
sub edx, ecx
add edx, edi
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x546c30
test ebx, ebx
je 0x546c4d
push 8
push 0
push edi
call ebx
jmp 0x546c54
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push edi
call dword [0x68e06c]
add esp, 4
mov dword [0x691f84], esi
pop ebx
test esi, esi
je 0x546c7c
push str.if_nametoindex
push esi
call ebp
test eax, eax
je 0x546c7c
mov dword [0x691f74], eax
push str.ws2_32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x546cb4
push str.FreeAddrInfoExW
push esi
call ebp
push str.GetAddrInfoExCancel
push esi
mov dword [0x691f78], eax
call ebp
push str.GetAddrInfoExW
push esi
mov dword [0x691f7c], eax
call ebp
mov dword [0x691f80], eax
push 3
push 2
push 0
push 0
push 6
call fcn.005745f0
push 3
push 2
push 0
test al, al
push 2
push 6
setne byte [0x6b4a1d]
call fcn.005745f0
add esp, 0x28
test al, al
setne byte [0x6b4a1c]
push 0x6b4a20
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.005aa453
add esp, 0x198
ret
Function at 0x54e440
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x691f88]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x54e491
push 3
push 2
push eax
push eax
push 6
call fcn.005745f0
add esp, 0x14
test al, al
je 0x54e485
mov dword [0x691f88], 2
add esp, 0xc
ret
mov dword [0x691f88], 1
jmp 0x54e496
cmp eax, 2
je 0x54e4dc
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x54e4c1
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x54e4dc
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x54efe0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x68e500]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
push esi
push edi
mov eax, dword [ebx]
mov edi, dword [esp + 0x124]
push 0
push dword [esp + 0x124]
mov ebp, dword [eax + 8]
push ecx
mov dword [edi], 0
push dword [ebp + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x54f080
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x54f04d
mov dword [edi], 0x51
jmp 0x54f07d
push 0x100
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00552e70
push eax
push str.Recv_failure:__s
push dword [ebx + 4]
call fcn.00531dc0
mov eax, dword [ebx + 4]
add esp, 0x18
mov dword [eax + 0x8d8], esi
mov dword [edi], 0x38
or esi, 0xffffffff
push dword [edi]
push esi
push dword [ebp + 0x98]
push dword [esp + 0x12c]
push str.nw_in_read_len_zu__fd_d______d__err_d
push dword [ebx]
push dword [ebx + 4]
call fcn.00531f70
mov ecx, dword [esp + 0x12c]
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005aa453
add esp, 0x104
ret

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

Disassembly:
sub esp, 0x188
mov eax, dword [0x68e500]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x194]
push esi
mov esi, dword [eax + 8]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x260]
test dword [eax + 0x44], 0x800
jne 0x54f1ed
push 0x80
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x80
push 0
push eax
call fcn.005acba0
add esp, 0xc
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x54f17a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x8c]
push 0x100
push eax
push esi
call fcn.00552e70
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00531dc0
add esp, 0x1c
mov eax, 2
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.005aa453
add esp, 0x188
ret
lea eax, [esi + 0x11c]
push eax
lea eax, [esi + 0xea]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.00545750
add esp, 0x10
test al, al
jne 0x54f1ed
push edi
call fcn.005afeb5
mov esi, dword [eax]
call fcn.005afeb5
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.00552e70
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00531dc0
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.005aa453
add esp, 0x188
ret
mov ecx, dword [esp + 0x18c]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.005aa453
add esp, 0x188
ret
Function at 0x5523d0
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x68e070]
mov edi, eax
add esp, 8
test edi, edi
je 0x552427
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x55243f
cmp esi, ebx
je 0x55243f
cmp esi, 0x8000
ja 0x55243f
cmp esi, ebx
jb 0x552438
push esi
push edi
call dword [0x68e070]
mov edi, eax
add esp, 8
test edi, edi
jne 0x5523f0
push ebp
call dword [0x68e06c]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x68e06c]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x553bf0
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x18
mov eax, dword [0x68e500]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
lea eax, [esp + 4]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x553c38
lea eax, [esp + 8]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
pop esi
setg al
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.005aa453
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
mov al, 1
pop esi
xor ecx, esp
call fcn.005aa453
add esp, 0x18
ret

Function at 0x553da0
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x553dde
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x114], 0
jne 0x553dcf
push 0
call fcn.00553da0
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x114], cl
mov eax, dword [esi + 0x7c]
pop esi
cmp byte [eax + 0x114], 2
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x553df3
xor al, al
pop esi
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret