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

Disassembly:
test ecx, ecx
jne 0x1176627
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x1176704
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x119ab48]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x119ab48]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x119ab48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x119ab48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x119ab48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x119ab48]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x119ab48]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x119ab48]
inc ecx
sub edx, 8
sub esi, 1
jne 0x1176640
pop edi
test edx, edx
je 0x117672b
jmp 0x1176710
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x119ab48]
inc ecx
sub edx, 1
jne 0x1176710
not eax
pop esi
ret

Function at 0x1176730
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x119ab48]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x119ab48]
mov dword [edx + 8], ecx
ret

Function at 0x1176780
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x119ab48]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x119ab48]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret
Function at 0x1177b80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x1177b9e
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x1177b92
cmp dword [edi + 0x7c], ebx
je 0x1177bad
call fcn.01177f60
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.011778f0
add esp, 0xc
test eax, eax
je 0x1177bd4
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x7e
call fcn.01181f46
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1177c12
push 0x4000
call fcn.01181f46
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x1177c1f
push esi
call fcn.01182010
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x1177c67
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.01176a40
test eax, eax
jne 0x1177c67
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x1177c8e
mov cl, byte [edi + 0x39]
mov byte [esi + 0x7d], cl
jmp 0x1177c94
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x7d], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x6d]
mov dword [esi + 0x79], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x71], 0x23456789
mov dword [esi + 0x75], 0x34567890
cmp ebp, ebx
je 0x1177cd1
lea ecx, [ecx]
mov cl, byte [ebp]
cmp cl, bl
je 0x1177cd1
call fcn.01176730
add ebp, 1
jne 0x1177cc0
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x411bb0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c50e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1a8], ecx
mov ecx, dword [ebp - 0x1a8]
call fcn.004762c3
push 0
mov ecx, dword [ebp - 0x1a8]
call fcn.00412d70
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0
je 0x411c7b
push 4
lea ecx, [ebp - 0x14]
call fcn.00408300
lea ecx, [ebp - 0x14]
call fcn.004138b0
mov dword [ebp - 4], 0
push 0x65
lea ecx, [ebp - 0x14]
call fcn.004133b0
mov dword [ebp - 0x1b0], eax
lea ecx, [ebp - 0x14]
call fcn.00412d40
movzx eax, al
test eax, eax
jne 0x411c6c
push 0
push 0
push 0x800
mov ecx, dword [ebp - 0x1ac]
call fcn.00412dc0
lea ecx, [ebp - 0x14]
call fcn.00405b60
push eax
push 0x10
push 0
mov ecx, dword [ebp - 0x1ac]
call fcn.00412dc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004138f0
push 1
mov ecx, dword [ebp - 0x1a8]
mov edx, dword [ecx + 0xbc]
push edx
mov ecx, dword [ebp - 0x1a8]
call fcn.00412d10
push 0
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [eax + 0xbc]
push ecx
mov ecx, dword [ebp - 0x1a8]
call fcn.00412d10
lea edx, [ebp - 0x1a4]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp - 0x1a8]
call fcn.00411a60
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00588376
mov esp, ebp
pop ebp
ret

Function at 0x413090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4130b4
xor eax, eax
jmp 0x413134
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4130cb
xor eax, eax
jmp 0x413134
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x413117
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x413117
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x4130ee
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x413123
xor eax, eax
jmp 0x413134
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x413131
xor eax, eax
jmp 0x413134
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x422650
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c62d8
mov eax, dword fs:[0]
push eax
sub esp, 0x3ec
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp + 8]
call fcn.00406720
push eax
call fcn.0042fe90
add esp, 8
lea ecx, [ebp - 0x3f8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004066a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00588376
mov esp, ebp
pop ebp
ret
Function at 0x424520
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6698
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xc
lea ecx, [ebp - 0x1c]
call fcn.00408300
lea ecx, [ebp - 0x1c]
call fcn.00409ed0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call fcn.004522f0
add esp, 4
lea ecx, [ebp - 0x1c]
call fcn.0040b890
test eax, eax
jne 0x42458c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040b810
jmp 0x4245c8
cmp dword [0x6426f4], 1
jne 0x42459a
call fcn.00423d50
cmp dword [0x650f78], 0
je 0x4245b2
mov ecx, dword [0x650f78]
push ecx
call fcn.004226d0
add esp, 4
push 0
call fcn.005899b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040b810
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00588376
mov esp, ebp
pop ebp
ret

Function at 0x4270c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6be8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], 0
push 0x613cf6
lea ecx, [ebp - 0x2c]
call fcn.00406610
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x14], 2
jl 0x427163
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + ecx]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
lea edx, [ebp - 0x54]
push edx
call fcn.0042ff30
add esp, 8
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040f5d0
lea ecx, [ebp - 0x54]
call fcn.004066a0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406650
mov edx, dword [ebp - 0x34]
or edx, 1
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004066a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00588376
mov esp, ebp
pop ebp
ret
Function at 0x436ba0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7beb
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x614bb8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x250], eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x230]
push edx
call fcn.0042ff30
add esp, 8
mov dword [ebp - 4], 0
push 0x613df6
lea eax, [ebp - 0x230]
push eax
call fcn.0040a120
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x436c3c
push 0x614bc8
lea ecx, [ebp - 0x230]
call fcn.00408b30
jmp 0x436c67
lea ecx, [ebp - 0x230]
call fcn.00406720
push eax
call fcn.0043ce50
add esp, 4
movzx edx, al
test edx, edx
jne 0x436c67
push 0x614bcc
lea ecx, [ebp - 0x230]
call fcn.00408b30
push 1
push 0
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.00430460
lea ecx, [ebp - 0x248]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406650
mov edx, dword [ebp - 0x24c]
or edx, 1
mov dword [ebp - 0x24c], edx
lea ecx, [ebp - 0x248]
call fcn.004066a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.004066a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00588376
mov esp, ebp
pop ebp
ret
Function at 0x43cc00
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
jne 0x43cc1a
xor eax, eax
jmp 0x43cd09
mov eax, dword [ebp + 8]
push eax
call fcn.0058a376
add esp, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
mov cl, byte [eax]
mov byte [ebp - 1], cl
add dword [ebp - 0x14], 1
cmp byte [ebp - 1], 0
jne 0x43cc38
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], 0
jmp 0x43cc6b
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x20]
jge 0x43ccd4
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x5c
je 0x43cc8f
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
movsx eax, byte [edx]
cmp eax, 0x2f
jne 0x43ccd2
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
mov byte [ecx], 0
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.0058a3c6
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43ccc9
mov eax, dword [ebp - 8]
push eax
call fcn.0058a426
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43ccc9
or eax, 0xffffffff
jmp 0x43cd09
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
mov byte [ecx], 0x2f
jmp 0x43cc62
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.0058a3c6
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43ccfa
mov eax, dword [ebp - 8]
push eax
call fcn.0058a426
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00588bb4
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x43ce50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x43ce6b
xor al, al
jmp 0x43ce79
mov ecx, dword [ebp - 4]
and ecx, 0x10
je 0x43ce77
mov al, 1
jmp 0x43ce79
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x4404c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8698
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x40], 0
je 0x440500
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x44050c
mov al, 1
jmp 0x4406af
mov dword [ebp - 0x54], 8
call fcn.00404f80
push eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x40], eax
call fcn.00404f80
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.00404f50
add esp, 8
movzx eax, al
test eax, eax
je 0x44054f
xor al, al
jmp 0x4406af
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00407080
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x28]
call fcn.0040f6b0
mov ecx, eax
call fcn.0040b9e0
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.00406b40
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040f6b0
mov ecx, eax
call fcn.0040b9e0
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x48
push ecx
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 0x40]
call fcn.00440a50
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x4405ca
cmp dword [ebp - 0x3c], 1
je 0x4405d1
cmp dword [ebp - 0x3c], 3
je 0x44066b
jmp 0x440683
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x45], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040f6b0
mov ecx, eax
call fcn.0040b9e0
mov edx, dword [ebp - 0x2c]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x440634
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040f6b0
mov ecx, eax
call fcn.0040b9e0
push eax
call fcn.0058b0eb
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x440634
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004066a0
mov al, byte [ebp - 0x34]
jmp 0x4406af
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x440657
mov byte [ebp - 0x31], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004066a0
mov al, byte [ebp - 0x31]
jmp 0x4406af
cmp dword [ebp - 0x38], 0
jne 0x440669
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.004343f0
jmp 0x44069b
mov byte [ebp - 0x33], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004066a0
mov al, byte [ebp - 0x33]
jmp 0x4406af
mov byte [ebp - 0x32], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004066a0
mov al, byte [ebp - 0x32]
jmp 0x4406af
jmp 0x440562
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00588376
mov esp, ebp
pop ebp
ret
Function at 0x443440
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c88f0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x20]
call fcn.00427d20
mov byte [ebp - 0x25], 0
lea ecx, [ebp + 8]
call fcn.00406720
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x44352c
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x2c]
cmp dword [ecx + edx*4], 0
je 0x44352a
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ecx + edx*4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x1c], edx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x48]
call fcn.00406610
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp + 0x20]
call fcn.004317f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004066a0
mov byte [ebp - 0x25], 1
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
jmp 0x44349e
jmp 0x443530
mov byte [ebp - 0x25], 0
mov cl, byte [ebp - 0x25]
mov byte [ebp - 0x26], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004066a0
mov al, byte [ebp - 0x26]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00588376
mov esp, ebp
pop ebp
ret
Function at 0x445a40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8b73
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x641490]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.004065e0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x2a], 0
mov edx, dword [ebp - 0x10]
mov dword [edx], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 0xffffffff
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.004070c0
mov ecx, dword [ebp - 0x10]
mov dx, word [ebp + 0x20]
mov word [ecx + 0x28], dx
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x2a], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x2c], 0x1f40
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x30], 0x1f40
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x34], 0xf
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x38], 0xf
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x3c], 0x1388
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x40], 0x12c
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x44], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004066a0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4460a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8c23
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], 0
lea ecx, [ebp - 0x6c]
call fcn.00410490
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x7c]
movzx ecx, byte [eax + 0x2a]
test ecx, ecx
je 0x4460fb
mov dword [ebp - 0x84], 1
jmp 0x446105
mov dword [ebp - 0x84], 0
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x20], edx
push 4
lea eax, [ebp - 0x20]
push eax
push 1
push 6
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp - 0x7c]
cmp dword [eax + 0x3c], 0
je 0x446149
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x3c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x40]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], 1
jmp 0x44615e
mov dword [ebp - 0x18], 0x124f80
mov dword [ebp - 0x14], 0x7d0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x24], 0
push 0
push 0
lea edx, [ebp - 0x24]
push edx
push 0xc
lea eax, [ebp - 0x78]
push eax
push 0xc
lea ecx, [ebp - 0x1c]
push ecx
push 0x98000004
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0xffffffff
jne 0x446241
mov byte [ebp - 0x6c], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0xc4]
push ecx
call fcn.00408770
add esp, 8
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x8c]
push eax
push 0x6156b0
lea ecx, [ebp - 0xac]
push ecx
call fcn.00408b50
add esp, 0xc
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
push edx
lea ecx, [ebp - 0x68]
call fcn.0040f5d0
lea ecx, [ebp - 0xac]
call fcn.004066a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc4]
call fcn.004066a0
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041b490
mov ecx, dword [ebp - 0x80]
or ecx, 1
mov dword [ebp - 0x80], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00409a10
mov eax, dword [ebp + 8]
jmp 0x446279
mov byte [ebp - 0x6c], 1
push 0x61409b
lea ecx, [ebp - 0x68]
call fcn.00408b30
lea edx, [ebp - 0x6c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041b490
mov eax, dword [ebp - 0x80]
or eax, 1
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00409a10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00588376
mov esp, ebp
pop ebp
ret 4