joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464ee0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x475445
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
mov eax, dword [esp + 0x68]
mov dword [esp + 4], 0x4765e0
test eax, eax
mov dword [esp + 0x24], 0x4765d8
jne 0x464f15
mov eax, 0x4947d8
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x78]
push 0
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004011a9
lea edx, [esp + 0x3c]
mov dword [esp + 0x70], 0
push edx
call fcn.00464b30
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
mov ecx, eax
mov byte [esp + 0x88], 1
call fcn.00401a19
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [esp + 0x78], edi
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x5c]
neg eax
sbb eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, ecx
mov byte [esp + 0x70], 5
mov edx, dword [eax]
mov esi, dword [edx + 4]
add esi, eax
call ebx
lea ecx, [esp + 0x3c]
mov dword [esi], eax
neg ecx
sbb ecx, ecx
lea eax, [esp + 0x50]
and ecx, eax
call fcn.00415bb3
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x40]
neg ecx
sbb ecx, ecx
push 1
and ecx, edx
mov byte [esp + 0x74], 4
call fcn.00401245
mov byte [esp + 0x70], 3
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
mov edx, dword [esp + ecx + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x20]
mov ebp, eax
lea esi, [eax + eax + 2]
mov eax, dword [esp + 0x2c]
cmp esi, eax
mov eax, dword [esp + 0x28]
jae 0x464ff9
test eax, eax
jne 0x465017
push eax
call fcn.00439086
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [esp + 0x34], esi
call fcn.0045469e
add esp, 8
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x2c]
push 0
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00401b15
lea edx, [esp + 0x10]
push 0
mov eax, dword [esp + 0x2c]
push edx
push ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test edi, edi
je 0x46504c
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x46504c
push edi
call eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x34]
neg eax
sbb eax, eax
and eax, ecx
mov edx, dword [eax]
mov esi, dword [edx + 4]
add esi, eax
call ebx
mov dword [esi], eax
lea esi, [esp + 0x14]
neg esi
sbb esi, esi
lea eax, [esp + 0x28]
and esi, eax
mov ecx, dword [esi]
push ecx
call fcn.00439086
mov edx, dword [esi + 8]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push edx
call edi
lea esi, [esp + 0x14]
lea eax, [esp + 0x18]
neg esi
sbb esi, esi
xor ebx, ebx
and esi, eax
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4650ba
mov cl, byte [eax - 1]
test cl, cl
je 0x4650b4
cmp cl, 0xff
je 0x4650b4
dec cl
mov byte [eax - 1], cl
jmp 0x4650ba
add eax, 0xfffffffe
push eax
call edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
mov eax, dword [esp + edx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov ecx, dword [esp + 0x60]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 4
Function at 0x412fb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451593
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x46759c]
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 + 8]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0042a000
add esp, 8
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x3c]
call fcn.004073c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00407340
cmp dword [ebp - 0x30], 0xffffffff
je 0x413031
mov eax, dword [ebp - 0x30]
and eax, 0x10
je 0x413031
mov dword [ebp - 0x40], 1
jmp 0x413038
mov dword [ebp - 0x40], 0
mov cl, byte [ebp - 0x40]
mov byte [ebp - 0x31], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00407160
mov al, byte [ebp - 0x31]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004320d5
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4515c0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x46759c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040a3b0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x4130c5
mov eax, dword [ebp - 0x14]
and eax, 0x10
je 0x4130c5
mov dword [ebp - 0x1c], 1
jmp 0x4130cc
mov dword [ebp - 0x1c], 0
mov cl, byte [ebp - 0x1c]
mov byte [ebp - 0x15], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00407160
mov al, byte [ebp - 0x15]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4151c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451848
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x46759c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x44], 0
je 0x415200
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x41520c
mov al, 1
jmp 0x4153af
mov dword [ebp - 0x10], 8
call fcn.0040a520
push eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x58]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.0040a520
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.0040a500
add esp, 8
movzx eax, al
test eax, eax
je 0x41524f
xor al, al
jmp 0x4153af
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0040cae0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x34]
call fcn.00414790
mov ecx, eax
call fcn.00415510
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.00408820
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x34]
call fcn.00414790
mov ecx, eax
call fcn.00415510
push eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x4c
push ecx
mov edx, dword [ebp - 0x58]
mov ecx, dword [edx + 0x44]
call fcn.00415680
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x4152ca
cmp dword [ebp - 0x5c], 1
je 0x4152d1
cmp dword [ebp - 0x5c], 3
je 0x41536b
jmp 0x415383
mov eax, dword [ebp - 0x58]
mov byte [eax + 0x49], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00414790
mov ecx, eax
call fcn.00415510
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x415334
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.00414790
mov ecx, eax
call fcn.00415510
push eax
call fcn.00434022
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x415334
mov byte [ebp - 0x51], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00407160
mov al, byte [ebp - 0x51]
jmp 0x4153af
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x415357
mov byte [ebp - 0x52], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00407160
mov al, byte [ebp - 0x52]
jmp 0x4153af
cmp dword [ebp - 0x38], 0
jne 0x415369
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0040fc00
jmp 0x41539b
mov byte [ebp - 0x53], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00407160
mov al, byte [ebp - 0x53]
jmp 0x4153af
mov byte [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00407160
mov al, byte [ebp - 0x54]
jmp 0x4153af
jmp 0x415262
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004320d5
mov esp, ebp
pop ebp
ret
Function at 0x417610
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x46759c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.004095a0
mov dword [ebp - 0x20c], 0x200
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x208]
push edx
push 0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.0040a3b0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x417676
lea ecx, [ebp - 0x208]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.004071c0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004320d5
mov esp, ebp
pop ebp
ret
Function at 0x41ccf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00436a4f
add esp, 0xc
sub eax, 0xffffffff
neg eax
sbb eax, eax
neg eax
sub eax, 1
pop ebp
ret

Function at 0x41cfc0
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
je 0x41cfee
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004371a3
add esp, 4
push eax
call fcn.004370ad
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x41d036
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x230], 0
je 0x41d01a
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x230]
push ecx
call dword [0x4649ac]
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x41d036
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x238]
push edx
call sub.WS2_32.dll_recv
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x22c]
cmp dword [ecx], 0
je 0x41d04d
mov dword [ebp - 8], 0xffffffff
jmp 0x41d053
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x41d320
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x1c]
jg 0x41d423
jl 0x41d34e
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0x18]
jae 0x41d423
mov edx, dword [ebp + 0x18]
sub edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
sbb eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x41d37a
jg 0x41d371
cmp dword [ebp - 0x1c], 0x7fffffff
jbe 0x41d37a
mov dword [ebp - 0x20], SysReAllocString
jmp 0x41d389
mov ecx, dword [ebp + 0x18]
sub ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x1c]
sbb edx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x10], 0
je 0x41d3b2
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [0x4649b4]
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x41d406
cmp dword [ebp + 8], 0
je 0x41d3ed
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 1
mov eax, dword [ebp - 0x10]
add eax, dword [ebp + 0x14]
push eax
call fcn.00434022
add esp, 0x10
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043721a
add esp, 4
test eax, eax
je 0x41d3eb
mov dword [ebp - 4], 0xffffffff
jmp 0x41d406
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.WS2_32.dll_send
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jg 0x41d40e
jmp 0x41d423
mov eax, dword [ebp - 4]
cdq
add eax, dword [ebp - 0x10]
adc edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp 0x41d334
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x41dce0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0
pop ebp
ret
Function at 0x420c30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.00437250
mov eax, dword [0x46759c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, 1
mov word [ebp - 8], ax
mov ecx, 1
mov word [ebp - 6], cx
push 4
lea edx, [ebp - 8]
push edx
push 0x80
push 0xffff
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x238]
push ecx
call sub.WS2_32.dll_setsockopt
push 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x238]
push eax
call sub.WS2_32.dll_shutdown
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x238]
push edx
call fcn.00420ce0
add esp, 4
push 0x2000
lea eax, [ebp - 0x2010]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
call fcn.0041cfc0
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jg 0x420c9b
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x238]
push eax
call sub.WS2_32.dll_closesocket
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004320d5
mov esp, ebp
pop ebp
ret
Function at 0x420d10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00420eb0
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x420d47
jmp 0x420e9e
push 0x42b0
push 1
call fcn.00436448
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x420d92
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004379b7
add esp, 4
push eax
push str.calloc__:__s
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.0043771c
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
call sub.WS2_32.dll_closesocket
jmp 0x420e9e
cmp dword [ebp + 0x10], 0
je 0x420df3
call dword [0x464a1c]
push eax
call dword [0x4649d4]
add esp, 4
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x234], eax
cmp dword [ebp - 0x10], 0
jne 0x420df3
push str.SSL_CTX_new_error
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.0043771c
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
call sub.WS2_32.dll_closesocket
mov ecx, dword [ebp - 8]
push ecx
call fcn.004335aa
add esp, 4
mov dword [ebp - 8], 0
jmp 0x420e9e
mov dword [ebp - 0xc], 0x10
mov edx, dword [ebp - 8]
mov dword [edx + 0x28c], 0x4000
mov eax, dword [ebp - 8]
add eax, 0x2b0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x280], eax
mov edx, dword [ebp - 8]
mov dword [edx + 0x22c], 0x469020
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x238], ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
add eax, 0x24c
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.WS2_32.dll_getsockname
mov edx, dword [ebp + 0x10]
and edx, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x25c]
and ecx, 0xfffffffe
or ecx, edx
mov edx, dword [ebp - 8]
mov dword [edx + 0x25c], ecx
cmp dword [ebp + 0x10], 0
je 0x420e9e
push 0
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x234]
push ecx
call dword [0x464a2c]
add esp, 0xc
mov edx, dword [0x4649a4]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x234]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00421050
add esp, 0xc
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x420eb0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x46759c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0xffffffff
cmp dword [ebp + 8], 0
jne 0x420eec
push str.NULL_host
push 0x4656c0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.0043771c
add esp, 0x10
jmp 0x421018
cmp dword [ebp + 0x10], 0
je 0x420f1a
cmp dword [0x464a1c], 0
jne 0x420f1a
push str.SSL_is_not_initialized
push 0x4656dc
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.0043771c
add esp, 0x10
jmp 0x421018
mov ecx, dword [ebp + 8]
push ecx
call sub.WS2_32.dll_gethostbyname
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x420f5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004379b7
add esp, 4
push eax
mov edx, dword [ebp + 8]
push edx
push str.gethostbyname__s_:__s
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.0043771c
add esp, 0x14
jmp 0x421018
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x420f98
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004379b7
add esp, 4
push eax
push str.socket__:__s
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.0043771c
add esp, 0x10
jmp 0x421018
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00421030
add esp, 4
mov edx, 2
mov word [ebp - 0x14], dx
movzx eax, word [ebp + 0xc]
push eax
call sub.WS2_32.dll_htons
mov word [ebp - 0x12], ax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
push 0x10
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call sub.WS2_32.dll_connect
test eax, eax
je 0x421018
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004379b7
add esp, 4
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.connect__s:_d_:__s
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.0043771c
add esp, 0x18
mov edx, dword [ebp - 0x18]
push edx
call sub.WS2_32.dll_closesocket
mov dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004320d5
mov esp, ebp
pop ebp
ret
Function at 0x423730
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x46759c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041f9c0
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
sub eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004320d5
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x46759c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], 0
cmp dword [ebp + 8], 0
jne 0x424763
push 0xa0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x424826
push 0x358
call fcn.0043393a
add esp, 4
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x42478c
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x424826
push 0x104
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041f9c0
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
je 0x42480d
mov eax, dword [ebp - 0x214]
and eax, 0x10
je 0x42480d
push 0x464f2c
lea ecx, [ebp - 0x210]
push ecx
call fcn.00439006
add esp, 8
mov edx, dword [ebp - 0x218]
add edx, 4
push edx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x218]
mov dword [ecx], eax
mov edx, dword [ebp - 0x218]
mov byte [edx + 0x254], 0
jmp 0x424826
mov eax, dword [ebp - 0x218]
push eax
call fcn.004335aa
add esp, 4
mov dword [ebp - 0x218], 0
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004320d5
mov esp, ebp
pop ebp
ret
Function at 0x427280
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x46759c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.0041dae0
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
call fcn.0041fa90
add esp, 4
push 0x104
lea eax, [ebp - 0x318]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x110]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
lea edx, [ebp - 0x318]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
sbb eax, eax
neg eax
sub eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004320d5
mov esp, ebp
pop ebp
ret

Function at 0x428a60
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x46759c]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x11c], 0
mov eax, dword [ebp + 0x10]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 0x118], eax
mov eax, dword [ebp + 0x10]
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x110], 0
mov dword [ebp - 4], 0
jmp 0x428ac1
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jge 0x428b2a
cmp dword [ebp - 0x110], 0x40
jae 0x428af7
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov edx, dword [eax + edx*8]
mov dword [ebp + ecx*4 - 0x10c], edx
mov eax, dword [ebp - 0x110]
add eax, 1
mov dword [ebp - 0x110], eax
xor ecx, ecx
jne 0x428ac9
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov word [ecx + eax*8 + 6], dx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*8]
cmp ecx, dword [ebp - 0x11c]
jbe 0x428b28
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*8]
mov dword [ebp - 0x11c], ecx
jmp 0x428ab8
lea edx, [ebp - 0x118]
push edx
push 0
push 0
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x11c]
add ecx, 1
push ecx
call sub.WS2_32.dll_select
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jle 0x428ba0
mov dword [ebp - 4], 0
jmp 0x428b6c
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jge 0x428ba0
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*8]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x428b9e
mov edx, 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov word [ecx + eax*8 + 6], dx
jmp 0x428b63
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004320d5
mov esp, ebp
pop ebp
ret