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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1819f008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xa0
mov dword [ebp - 0x21c], eax
mov esi, edx
lea eax, [ebp - 0xcc]
mov edi, ecx
push 0
push eax
call fcn.1812b9b0
lea eax, [ebp - 0xcc]
mov edx, esi
push eax
mov ecx, edi
call fcn.18125aa9
push 0xa0
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.1812c230
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
mov ecx, ebx
call fcn.18125b14
mov eax, dword [ebp + 0x18]
add esp, 0x20
dec eax
xor edx, edx
push 0x14
pop esi
div esi
add eax, 1
mov dword [ebp - 0x220], eax
je 0x18125de2
xor edi, edi
lea ecx, [ebp - 0x2c]
xor ebx, ebx
mov dword [ebp - 0x210], edi
inc ebx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ebx
push esi
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.1812b9b0
push 0xa0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x16c]
push eax
call fcn.1812c230
mov eax, ebx
mov byte [ebp - 0x15], bl
shr eax, 0x18
add esp, 0x18
mov byte [ebp - 0x18], al
mov edi, 0x3e8
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0x17], al
mov eax, ebx
shr eax, 8
push 4
mov byte [ebp - 0x16], al
pop esi
lea eax, [ebp - 0x16c]
mov edx, esi
push eax
lea ecx, [ebp - 0x18]
call fcn.18125b14
lea eax, [ebp - 0x16c]
push eax
push 0x14
pop edx
lea ecx, [ebp - 0x18]
call fcn.18125bab
pop ecx
pop ecx
xor esi, esi
mov al, byte [ebp + esi - 0x18]
xor byte [ebp + esi - 0x2c], al
inc esi
cmp esi, 0x14
jb 0x18125d5d
push 0xa0
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x16c]
push eax
call fcn.1812c230
add esp, 0xc
sub edi, 1
jne 0x18125d36
mov ecx, dword [ebp - 0x210]
xor edx, edx
mov esi, dword [ebp - 0x218]
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp - 0x21c]
cmp ecx, edi
jae 0x18125db3
mov al, byte [esi + ecx]
inc edx
mov byte [ecx + ebx], al
inc ecx
cmp edx, 0x14
jb 0x18125da2
mov ebx, dword [ebp - 0x214]
sub esi, 0x14
add dword [ebp - 0x210], 0x14
inc ebx
push 0x14
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], ebx
lea eax, [ebx - 1]
pop esi
cmp eax, dword [ebp - 0x220]
jb 0x18125cec
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18128eaf
leave
ret
Function at 0x18125df1
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x1819f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor edx, edx
mov dword [ebp - 0x154], edi
lea esi, [edi + 0x1c]
mov ecx, dword [esi]
mov eax, ecx
ror eax, 8
lea esi, [esi + 4]
rol ecx, 8
and eax, 0xff00ff00
and ecx, 0xff00ff
or eax, ecx
mov dword [ebp + edx*4 - 0x144], eax
inc edx
cmp edx, 0x10
jb 0x18125e14
push 0x40
lea ecx, [ebp - 0x13c]
pop edx
mov eax, dword [ecx + 0x2c]
xor eax, dword [ecx + 0x18]
xor eax, dword [ecx - 8]
xor eax, dword [ecx]
lea ecx, [ecx + 4]
rol eax, 1
mov dword [ecx + 0x34], eax
sub edx, 1
jne 0x18125e44
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x18]
mov esi, dword [edi + 8]
mov ebx, dword [edi + 0x10]
xor edi, edi
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x158], 0x14
jmp 0x18125e91
mov ecx, dword [ebp - 0x150]
not ecx
mov edx, esi
and ecx, eax
rol esi, 5
mov eax, ebx
and eax, dword [ebp - 0x150]
xor ecx, eax
mov eax, dword [ebp - 0x14c]
add esi, ecx
add eax, 0x5a827999
add esi, dword [ebp + edi*4 - 0x144]
add esi, eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x14c], eax
mov eax, ebx
mov ebx, dword [ebp - 0x150]
ror ebx, 2
inc edi
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x150], edx
cmp edi, 0x14
jb 0x18125e8b
mov dword [ebp - 0x15c], 0x28
xor eax, ebx
mov ecx, esi
xor eax, edx
rol esi, 5
add esi, eax
mov eax, dword [ebp - 0x158]
add esi, dword [ebp + eax*4 - 0x144]
mov eax, dword [ebp - 0x14c]
add eax, 0x6ed9eba1
add esi, eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x14c], eax
mov eax, ebx
mov ebx, edx
mov dword [ebp - 0x148], eax
mov edx, ecx
ror ebx, 2
mov ecx, dword [ebp - 0x158]
inc ecx
mov dword [ebp - 0x158], ecx
cmp ecx, 0x28
jb 0x18125eed
mov dword [ebp - 0x150], edx
mov edi, edx
mov ecx, ebx
mov edx, esi
xor ecx, edi
rol esi, 5
add esi, dword [ebp - 0x14c]
and ecx, eax
mov eax, ebx
and eax, edi
xor ecx, eax
mov eax, dword [ebp - 0x15c]
add ecx, 0x8f1bbcdc
push 0x3c
add ecx, dword [ebp + eax*4 - 0x144]
mov eax, dword [ebp - 0x148]
add esi, ecx
mov ecx, dword [ebp - 0x15c]
mov dword [ebp - 0x14c], eax
mov eax, ebx
mov ebx, edi
mov dword [ebp - 0x148], eax
ror ebx, 2
mov edi, edx
inc ecx
pop edx
mov dword [ebp - 0x15c], ecx
cmp ecx, edx
jb 0x18125f47
mov dword [ebp - 0x150], edi
mov edi, dword [ebp - 0x154]
mov ecx, dword [ebp - 0x150]
xor eax, ebx
mov dword [ebp - 0x154], esi
xor eax, ecx
rol esi, 5
add esi, dword [ebp - 0x14c]
add eax, 0xca62c1d6
add eax, dword [ebp + edx*4 - 0x144]
add esi, eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x14c], eax
mov eax, ebx
mov ebx, ecx
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x154]
ror ebx, 2
inc edx
cmp edx, 0x50
jb 0x18125fb4
add dword [edi + 8], esi
mov eax, ecx
add dword [edi + 0xc], eax
mov eax, dword [ebp - 0x148]
add dword [edi + 0x14], eax
add dword [edi + 0x10], ebx
mov eax, dword [ebp - 0x14c]
add dword [edi + 0x18], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18128eaf
leave
ret
Function at 0x18126026
Capabilities:
Hash data using sha1

Disassembly:
and dword [ecx + 4], 0
and dword [ecx], 0
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
mov dword [ecx + 0x18], 0xc3d2e1f0
ret

Function at 0x18126bd7
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
lea eax, [ebp - 0x14]
push ebx
push esi
push edi
push eax
xor edi, edi
mov ebx, ecx
push edi
push edi
push ebx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x18126c32
push edi
push 0x989680
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.1814b7c0
sub eax, 0xb6109100
push ebx
sbb edx, 2
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x18126c23
inc edi
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x18126c54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18126b98
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x18126c4f
mov dword [ecx + 4], eax
mov dword [ecx], 5
or eax, 0xffffffff
jmp 0x18126cb6
push esi
call sym.TEST_goopdate_unsigned.dll_zip_stat_init
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 8]
mov edx, dword [esi + 4]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x2c], eax
pop ecx
mov ecx, dword [esi]
mov eax, ecx
or eax, 0x10
mov dword [esi + 4], edx
mov dword [esi], eax
mov dword [ebp - 8], edx
mov edx, dword [ebx + 0x70]
mov eax, edx
mov ebx, dword [ebx + 0x74]
or eax, ebx
je 0x18126c99
mov eax, dword [ebp + 8]
sub edx, dword [eax + 0x68]
sbb ebx, dword [eax + 0x6c]
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ebx
jmp 0x18126ca9
test edi, edi
je 0x18126cb4
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 8]
or ecx, 0x14
mov dword [esi + 4], eax
mov dword [esi], ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x18141b09
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.181417c9

Function at 0x18151560
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.181513df

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x411054
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42e068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
mov dword [ebp - 0x208], ecx
lea eax, [ebp - 0x214]
mov dword [ebp - 0x20c], 0x100
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x41112f
lea eax, [ebp - 0x208]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x411144
push dword [ebp - 0x208]
call fcn.00411054
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x411144
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x208], 0
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x411144
jmp 0x411137
cmp esi, 0x80070103
je 0x411142
test esi, esi
jne 0x411144
xor ecx, ecx
jmp 0x411074
xor esi, esi
cmp dword [ebp - 0x208], 0
je 0x411159
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004116b9
mov esp, ebp
pop ebp
ret 4

Function at 0x41116d
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push 0x2001f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x411197
xor esi, esi
inc esi
jmp 0x4111de
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x4111de
push dword [ebp - 4]
call fcn.00411054
mov esi, eax
test esi, esi
js 0x4111de
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 4], 0
je 0x4111ed
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x411a00
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b29e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x62c490]
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.00465148
push 0
mov ecx, dword [ebp - 0x1a8]
call fcn.00412bc0
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0
je 0x411acb
push 4
lea ecx, [ebp - 0x14]
call fcn.00408150
lea ecx, [ebp - 0x14]
call fcn.00413700
mov dword [ebp - 4], 0
push 0x65
lea ecx, [ebp - 0x14]
call fcn.00413200
mov dword [ebp - 0x1b0], eax
lea ecx, [ebp - 0x14]
call fcn.00412b90
movzx eax, al
test eax, eax
jne 0x411abc
push 0
push 0
push 0x800
mov ecx, dword [ebp - 0x1ac]
call fcn.00412c10
lea ecx, [ebp - 0x14]
call fcn.004059b0
push eax
push 0x10
push 0
mov ecx, dword [ebp - 0x1ac]
call fcn.00412c10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00413740
push 1
mov ecx, dword [ebp - 0x1a8]
mov edx, dword [ecx + 0xbc]
push edx
mov ecx, dword [ebp - 0x1a8]
call fcn.00412b60
push 0
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [eax + 0xbc]
push ecx
mov ecx, dword [ebp - 0x1a8]
call fcn.00412b60
lea edx, [ebp - 0x1a4]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp - 0x1a8]
call fcn.004118b0
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.00577115
mov esp, ebp
pop ebp
ret

Function at 0x412ee0
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 0x412f04
xor eax, eax
jmp 0x412f84
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 0x412f1b
xor eax, eax
jmp 0x412f84
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 0x412f67
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x412f67
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 0x412f3e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x412f73
xor eax, eax
jmp 0x412f84
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x412f81
xor eax, eax
jmp 0x412f84
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x430320
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
jne 0x43033a
xor eax, eax
jmp 0x430429
mov eax, dword [ebp + 8]
push eax
call fcn.005790c7
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 0x430358
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 0x43038b
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x20]
jge 0x4303f4
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x5c
je 0x4303af
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
movsx eax, byte [edx]
cmp eax, 0x2f
jne 0x4303f2
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.00579117
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4303e9
mov eax, dword [ebp - 8]
push eax
call fcn.00579177
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4303e9
or eax, 0xffffffff
jmp 0x430429
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
mov byte [ecx], 0x2f
jmp 0x430382
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00579117
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43041a
mov eax, dword [ebp - 8]
push eax
call fcn.00579177
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00577954
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x430570
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 0x43058b
xor al, al
jmp 0x430599
mov ecx, dword [ebp - 4]
and ecx, 0x10
je 0x430597
mov al, 1
jmp 0x430599
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x432df0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b4d98
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x62c490]
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 0x432e30
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x432e3c
mov al, 1
jmp 0x432fdf
mov dword [ebp - 0x54], 8
call fcn.00404dd0
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.00404dd0
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.00404da0
add esp, 8
movzx eax, al
test eax, eax
je 0x432e7f
xor al, al
jmp 0x432fdf
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00406ed0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x28]
call fcn.0040f500
mov ecx, eax
call fcn.0040b830
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.00406990
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040f500
mov ecx, eax
call fcn.0040b830
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x48
push ecx
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 0x40]
call fcn.00433380
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x432efa
cmp dword [ebp - 0x3c], 1
je 0x432f01
cmp dword [ebp - 0x3c], 3
je 0x432f9b
jmp 0x432fb3
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x45], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040f500
mov ecx, eax
call fcn.0040b830
mov edx, dword [ebp - 0x2c]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x432f64
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.0040f500
mov ecx, eax
call fcn.0040b830
push eax
call fcn.00579488
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x432f64
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004064f0
mov al, byte [ebp - 0x34]
jmp 0x432fdf
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x432f87
mov byte [ebp - 0x31], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004064f0
mov al, byte [ebp - 0x31]
jmp 0x432fdf
cmp dword [ebp - 0x38], 0
jne 0x432f99
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.0042ec80
jmp 0x432fcb
mov byte [ebp - 0x33], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004064f0
mov al, byte [ebp - 0x33]
jmp 0x432fdf
mov byte [ebp - 0x32], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004064f0
mov al, byte [ebp - 0x32]
jmp 0x432fdf
jmp 0x432e92
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00577115
mov esp, ebp
pop ebp
ret
Function at 0x4343d0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b4e50
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x62c490]
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.00422880
mov byte [ebp - 0x25], 0
lea ecx, [ebp + 8]
call fcn.00406570
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4344bc
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 0x4344ba
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.00406460
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp + 0x20]
call fcn.0042c160
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004064f0
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 0x43442e
jmp 0x4344c0
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.004064f0
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.00577115
mov esp, ebp
pop ebp
ret
Function at 0x4369e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b50d3
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x62c490]
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.00406430
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.00406f10
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.004064f0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x1c