joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006be9c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x1006bebe
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1006bebe
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1006bebe
ret
cmp word [ebx + 4], 0x14c
jne 0x1006bebe
test word [ebx + 0x16], 2
je 0x1006bebe
test word [ebx + 0x16], 0x100
je 0x1006bebe
cmp word [ebx + 0x18], 0x10b
jne 0x1006bebe
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1006bebe
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1006bf4a
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1006bede
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10052e29
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1006bebe
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x1006bf4a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x1006bebe
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1006bebe
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1006bebe
ret
cmp word [ebx + 4], 0x14c
jne 0x1006bebe
test word [ebx + 0x16], 2
je 0x1006bebe
test word [ebx + 0x16], 0x100
je 0x1006bebe
cmp word [ebx + 0x18], 0x10b
jne 0x1006bebe
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1006bebe
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1006bf4a
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1006bede
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10052e29
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1006bebe
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x1006c001
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1006c05a
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1006c001
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1006c010
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x10471cb3
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1006c061
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10052ed7
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1006c100
add edi, 4
add eax, 2
dec ecx
jne 0x1006c046
call 0x1006c0ad
loope 0x1006c0a3
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1006c0fd
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1006c10e
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1006c0c1
cmp eax, ecx
ja 0x1006c0c1
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1006c14b
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1006c141
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.100533b6
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1006c010
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1006c05a
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1006c001
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1006c010
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x10471cb3
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1006c061
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10052ed7
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1006c100
add edi, 4
add eax, 2
dec ecx
jne 0x1006c046
call 0x1006c0ad
loope 0x1006c0a3
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1006c0fd
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1006c10e
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1006c0c1
cmp eax, ecx
ja 0x1006c0c1
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1006c14b
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1006c141
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.100533b6
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x2b003156
Capabilities:
Check for peb ntglobalflag flag
Get number of processors
Parse pe header

Disassembly:
xor eax, 0x334d6a4d
push 0x3375462b

Function at 0x2b005821
Capabilities:
Get number of processors
Parse pe header

Disassembly:
push ebx
xor byte [ebp + 0x4c], dh
push eax
outsb dx, byte [esi]
xor byte [eax + 0x79], cl

Function at 0x2b005b3e
Capabilities:
Get number of processors
Parse pe header

Disassembly:
popal
push ecx
dec eax
pop ecx
dec ebx
jns 0x2b005bab
insd dword es:[edi], dx
jp 0x2b005b95
je 0x2b005bec

Function at 0x2b006354
Capabilities:
Get number of processors
Parse pe header

Disassembly:
jno 0x2b006387
jo 0x2b0063a9
inc ecx
push ebp
push 0x554c696e
push ecx
Function at 0x402ca0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], edx
mov eax, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp dword [ebp + 8], ebx
jbe 0x402ced
movzx ecx, byte [ebp + 0x1c]
sub eax, edx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
push esi
cmp dword [ebp + 0x20], 0x10
lea ecx, [edx + ebx]
lea esi, [ebp + 0xc]
mov eax, ebx
cmovae esi, edi
xor edx, edx
div dword [ebp - 4]
inc ebx
mov al, byte [edx + esi]
mov edx, dword [ebp - 8]
xor al, byte [edx + ecx]
mov edx, dword [ebp - 0xc]
mov byte [ecx], al
cmp ebx, dword [ebp + 8]
jb 0x402cc4
pop esi
mov eax, dword [ebp + 0x20]
cmp eax, 0x10
jb 0x402d1c
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x402d12
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402d22
push ecx
push edi
call fcn.0046472a
add esp, 8
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0046c48e
int3
Function at 0x403900
Capabilities:
Link many functions at runtime
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb44
mov eax, dword [0x4af454]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x808]
push 0x400
push eax
push 0
mov esi, dword [edi + 0x3c]
add esi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x4b1364
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
push 0x4b1330
push ebx
mov dword [ebp - 0xb34], ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4b1394
push ebx
mov dword [ebp - 0xb3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4b1340
push ebx
mov dword [ebp - 0xb38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4b1310
push ebx
mov dword [ebp - 0xb40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [esi], 0x4550
mov dword [ebp - 0xb44], eax
jne 0x403a77
push 0x44
lea eax, [ebp - 0x850]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x860], xmm0
call fcn.004661d0
add esp, 0xc
lea eax, [ebp - 0x860]
push eax
lea eax, [ebp - 0x850]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x808]
push eax
call dword [ebp - 0xb3c]
test eax, eax
je 0x403a77
lea eax, [ebp - 0xb30]
mov dword [ebp - 0xb30], 0x10007
push eax
push dword [ebp - 0x85c]
call dword [ebp - 0xb38]
test eax, eax
je 0x403a77
push 0x4b12fc
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4b1374
push dword [ebp - 0xb34]
mov ebx, eax
mov dword [ebp - 0xb38], ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40
push 0x3000
push dword [esi + 0x50]
push dword [esi + 0x34]
push dword [ebp - 0x860]
call eax
mov dword [ebp - 0xb3c], eax
test eax, eax
jne 0x403a8d
call fcn.00406ee0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00404e80
push eax
call fcn.00407180
add esp, 4
push 0
push dword [ebp - 0x860]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004646e4
mov esp, ebp
pop ebp
ret
push 0
push dword [esi + 0x54]
push edi
push eax
push dword [ebp - 0x860]
call ebx
xor eax, eax
mov dword [ebp - 0xb34], 0
cmp ax, word [esi + 6]
jae 0x403afe
xor ebx, ebx
lea ecx, [ebx + edi]
add ecx, dword [edi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, edi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [ebp - 0xb3c]
push eax
push dword [ebp - 0x860]
call dword [ebp - 0xb38]
mov ecx, dword [ebp - 0xb34]
lea ebx, [ebx + 0x28]
movzx eax, word [esi + 6]
inc ecx
mov dword [ebp - 0xb34], ecx
cmp ecx, eax
jl 0x403ab0
mov ebx, dword [ebp - 0xb38]
push 0
push 4
lea eax, [esi + 0x34]
push eax
mov eax, dword [ebp - 0xa8c]
add eax, 8
push eax
push dword [ebp - 0x860]
call ebx
mov eax, dword [esi + 0x28]
add eax, dword [ebp - 0xb3c]
mov dword [ebp - 0xa80], eax
lea eax, [ebp - 0xb30]
push eax
push dword [ebp - 0x85c]
call dword [ebp - 0xb40]
push dword [ebp - 0x85c]
call dword [ebp - 0xb44]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004646e4
mov esp, ebp
pop ebp
ret
Function at 0x4109d0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x410a7f
push esi
call fcn.00426c90
add esp, 4
test al, al
jne 0x410a7f
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4109f7
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.004311c0
add esp, 0xc
test eax, eax
je 0x410a2b
sub eax, esi
push eax
push 0x2e
push esi
call fcn.004311c0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x410a2d
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 0x410a5e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.004223b0
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 0x410a40
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 0x417520
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x14
mov eax, dword [0x4af454]
xor eax, esp
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x1c]
push ebx
push ebp
push esi
mov eax, dword [ecx]
push edi
mov edi, dword [esp + 0x28]
mov eax, dword [eax + 4]
and eax, 0xa
cmp al, 0xa
mov eax, dword [ecx + 0xc]
jne 0x417557
mov esi, dword [eax + 0x78]
mov ebx, dword [eax + 0x7c]
mov ebp, dword [eax + 0x80]
jmp 0x417563
mov esi, dword [eax + 0x30]
mov ebx, dword [eax + 0x34]
mov ebp, dword [eax + 0x4c0]
test esi, esi
je 0x417644
mov eax, dword [edi]
test eax, eax
je 0x4175a0
mov ecx, esi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x417593
test dl, dl
je 0x41758f
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x417593
add ecx, 2
add eax, 2
test dl, dl
jne 0x417573
xor eax, eax
jmp 0x417598
sbb eax, eax
or eax, 1
test eax, eax
je 0x417644
push edi
call fcn.004174d0
push esi
call dword [0x4af00c]
mov edx, eax
add esp, 8
mov dword [edi], edx
test edx, edx
je 0x4175fa
test ebx, ebx
je 0x41761b
mov ecx, ebx
nop
mov al, byte [esi]
cmp al, byte [ecx]
jne 0x4175e0
test al, al
je 0x4175dc
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x4175e0
add esi, 2
add ecx, 2
test al, al
jne 0x4175c0
xor eax, eax
jmp 0x4175e5
sbb eax, eax
or eax, 1
test eax, eax
je 0x41761b
push ebx
call dword [0x4af00c]
add esp, 4
mov dword [edi + 4], eax
test eax, eax
jne 0x41761e
push edi
call fcn.004174d0
add esp, 4
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004646e4
add esp, 0x14
ret
mov dword [edi + 4], edx
mov esi, dword [edi]
test esi, esi
je 0x41767a
cmp byte [esi], 0
je 0x41767a
mov ebx, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [esp + 0x10]
push eax
push esi
push 2
call ebx
test eax, eax
je 0x417663
mov dword [edi + 0xc], 1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004646e4
add esp, 0x14
ret
lea eax, [esp + 0x10]
push eax
push esi
push 0x17
call ebx
test eax, eax
je 0x41767a
mov dword [edi + 0xc], 2
jmp 0x417644
mov ecx, dword [edi]
mov dword [edi + 0xc], 0
cmp byte [ecx], 0
je 0x417644
mov esi, ecx
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x417690
sub esi, edx
je 0x4176a3
cmp byte [ecx + esi - 1], 0x2e
jne 0x4176a3
dec esi
cmp esi, 0xffff
jae 0x417644
lea eax, [esi + 1]
push eax
push 1
call dword [0x4af010]
add esp, 8
mov dword [edi + 8], eax
test eax, eax
je 0x4175fa
push esi
push dword [edi]
push eax
call fcn.00422410
mov eax, dword [edi + 8]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x417644
Function at 0x41d0d0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0x68a], 0
je 0x41d16d
cmp dword [esi + 0x194], 0
je 0x41d127
push esi
call fcn.0040b6a0
push 1
push esi
mov byte [esp + 0x14], al
call fcn.0040bb40
push dword [esi + 0x144]
mov eax, dword [esi + 0x194]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call eax
push dword [esp + 0x28]
push esi
call fcn.0040bb40
add esp, 0x28
pop esi
ret
mov ecx, dword [esp + 0xc]
mov eax, ecx
sub eax, 0
je 0x41d13c
sub eax, 1
je 0x41d13c
sub eax, 1
jne 0x41d16d
push dword [esi + 0x140]
lea eax, [ecx*2 + 0x48cebc]
push 1
add eax, ecx
push 2
push eax
call fcn.0046cc1c
push dword [esi + 0x140]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.0046cc1c
add esp, 0x20
pop esi
ret

Function at 0x4205d0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x48d7ec
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x4205ea
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push 0x48d800
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x48d810
push esi
call fcn.0046ec2c
add esp, 8
test eax, eax
je 0x420632
test ebp, ebp
je 0x420623
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 0x420658
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x420658
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 0x420732
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420675
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x420728
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x420728
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4206b6
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 0x4206d1
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 0x4206f0
test ebp, ebp
je 0x42071f
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x4af004]
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 [0x4af004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x420740
Capabilities:
Get common file path
Initialize winsock library
Link many functions at runtime

Disassembly:
sub esp, 0x198
mov eax, dword [0x4af454]
xor eax, esp
mov dword [esp + 0x194], eax
test byte [esp + 0x19c], 2
je 0x4207a1
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x420787
mov eax, dword [esp + 4]
cmp al, 2
jne 0x420781
shr eax, 8
cmp al, 2
je 0x4207a1
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004646e4
add esp, 0x198
ret
call fcn.00453670
test eax, eax
jne 0x420987
push ebp
push esi
push edi
push 0x48d7ec
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 0x4207d5
mov dword [0x4b04a4], esi
jmp 0x42090c
push ebx
push 0x48d800
push edi
call ebp
push 0x48d810
push str.iphlpapi.dll
mov ebx, eax
call fcn.0046ec2c
add esp, 8
test eax, eax
je 0x42081e
test ebx, ebx
je 0x42080c
push 8
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x4208f0
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
jmp 0x4208f0
test ebx, ebx
je 0x420843
push str.AddDllDirectory
push edi
call ebp
test eax, eax
je 0x420843
push 0x800
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x4208f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4208f0
lea ecx, [eax*2 + 0x1a]
push ecx
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x4208e6
push dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4208e6
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420884
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 0x4208a0
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 0x4208c0
test ebx, ebx
je 0x4208dd
push 8
push 0
push edi
call ebx
jmp 0x4208e4
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push edi
call dword [0x4af004]
add esp, 4
mov dword [0x4b04a4], esi
pop ebx
test esi, esi
je 0x42090c
push str.if_nametoindex
push esi
call ebp
test eax, eax
je 0x42090c
mov dword [0x4b0494], eax
push str.ws2_32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x420944
push str.FreeAddrInfoExW
push esi
call ebp
push str.GetAddrInfoExCancel
push esi
mov dword [0x4b0498], eax
call ebp
push str.GetAddrInfoExW
push esi
mov dword [0x4b049c], eax
call ebp
mov dword [0x4b04a0], eax
push 3
push 2
push 0
push 0
push 6
call fcn.00453270
push 3
push 2
push 0
test al, al
push 2
push 6
setne byte [0x4b1409]
call fcn.00453270
add esp, 0x28
test al, al
setne byte [0x4b1408]
push 0x4b1410
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.004646e4
add esp, 0x198
ret
Function at 0x426c90
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x18
mov eax, dword [0x4af454]
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 0x426cd8
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.004646e4
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
mov al, 1
pop esi
xor ecx, esp
call fcn.004646e4
add esp, 0x18
ret

Function at 0x426e30
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x426e6e
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x114], 0
jne 0x426e5f
push 0
call fcn.00426e30
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 0x426e88
xor esi, esi
test esi, esi
pop esi
setne al
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
test esi, esi
pop esi
setne al
ret