joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47b798
Capabilities:
Persist via appinit_dlls registry key

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x47b919
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov ecx, 0x47b934
mov edx, dword [0x489cbc]
call fcn.00404da8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 8]
call fcn.004086e0
mov dl, 1
mov eax, dword [0x41f7b8]
call fcn.0041f8b8
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x47b8dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041f958
mov cl, 1
mov edx, 0x47b948
mov eax, dword [ebp - 0xc]
call fcn.0041f9c0
lea ecx, [ebp - 0x14]
mov edx, 0x47b988
mov eax, dword [ebp - 0xc]
call fcn.0041ff3c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 4]
call fcn.004086e0
mov edx, 0x47b9a0
mov eax, dword [ebp - 0xc]
call fcn.004200d4
test al, al
je 0x47b85b
mov edx, 0x47b9a0
mov eax, dword [ebp - 0xc]
call fcn.0041ffc8
dec eax
je 0x47b86d
mov ecx, 1
mov edx, 0x47b9a0
mov eax, dword [ebp - 0xc]
call fcn.0041ffb4
jmp 0x47b86d
mov ecx, 1
mov edx, 0x47b9a0
mov eax, dword [ebp - 0xc]
call fcn.0041ffb4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0040506c
test eax, eax
jne 0x47b8bc
cmp dword [ebp - 4], 0
je 0x47b8ac
push dword [ebp - 4]
push 0x47b9bc
push dword [ebp - 8]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404e24
mov ecx, dword [ebp - 0x18]
mov edx, 0x47b988
mov eax, dword [ebp - 0xc]
call fcn.0041ff0c
jmp 0x47b8bc
mov ecx, dword [ebp - 8]
mov edx, 0x47b988
mov eax, dword [ebp - 0xc]
call fcn.0041ff0c
mov eax, dword [ebp - 0xc]
call fcn.0041f928
mov eax, dword [ebp - 0xc]
call fcn.00403bb0
call fcn.0047b5e4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47b8f1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b920
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404ab4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ab4
ret

Function at 0x47b9c0
Capabilities:
Copy file
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x47ba71
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
je 0x47ba56
push 0xf01ff
push 0x47ba80
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
je 0x47ba50
push 0
lea eax, [ebp - 4]
call fcn.004764a4
lea eax, [ebp - 4]
mov edx, 0x47ba94
call fcn.00404d5c
mov eax, dword [ebp - 4]
call fcn.00404f20
push eax
lea eax, [ebp - 8]
call fcn.004764a4
lea eax, [ebp - 8]
mov edx, 0x47baac
call fcn.00404d5c
mov eax, dword [ebp - 8]
call fcn.00404f20
push eax
call sub.kernel32.dll_CopyFileA
push esi
call sub.advapi32.dll_DeleteService
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ba78
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ab4
ret
Function at 0x47bac0
Capabilities:
Copy file
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x47bb71
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
je 0x47bb56
push 0xf01ff
push 0x47bb80
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
je 0x47bb50
push 0
lea eax, [ebp - 4]
call fcn.004764a4
lea eax, [ebp - 4]
mov edx, 0x47bb98
call fcn.00404d5c
mov eax, dword [ebp - 4]
call fcn.00404f20
push eax
lea eax, [ebp - 8]
call fcn.004764a4
lea eax, [ebp - 8]
mov edx, 0x47bbb0
call fcn.00404d5c
mov eax, dword [ebp - 8]
call fcn.00404f20
push eax
call sub.kernel32.dll_CopyFileA
push esi
call sub.advapi32.dll_DeleteService
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bb78
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ab4
ret

Function at 0x47bbcc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], eax
mov eax, dword [ebp + 8]
call fcn.00404f10
xor eax, eax
push ebp
push 0x47bd4e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor edx, edx
mov eax, 2
call fcn.00477690
mov esi, eax
mov dword [ebp - 0x128], 0x128
lea edx, [ebp - 0x128]
mov eax, esi
call fcn.004776b0
mov edi, eax
jmp 0x47bd1a
lea eax, [ebp - 0x134]
lea edx, [ebp - 0x104]
mov ecx, 0x104
call fcn.00404d00
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.004090bc
mov eax, dword [ebp - 0x130]
lea edx, [ebp - 0x12c]
call fcn.00408658
mov eax, dword [ebp - 0x12c]
push eax
lea edx, [ebp - 0x138]
mov eax, dword [ebp + 8]
call fcn.00408658
mov edx, dword [ebp - 0x138]
pop eax
call fcn.00404eb8
je 0x47bced
lea eax, [ebp - 0x140]
lea edx, [ebp - 0x104]
mov ecx, 0x104
call fcn.00404d00
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x13c]
call fcn.00408658
mov eax, dword [ebp - 0x13c]
push eax
lea edx, [ebp - 0x144]
mov eax, dword [ebp + 8]
call fcn.00408658
mov edx, dword [ebp - 0x144]
pop eax
call fcn.00404eb8
jne 0x47bd0b
push 0
mov eax, dword [ebp - 0x120]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
lea edx, [ebp - 0x128]
mov eax, esi
call fcn.004776d0
mov edi, eax
test edi, edi
jne 0x47bc48
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bd55
lea eax, [ebp - 0x144]
mov edx, 7
call fcn.00404ab4
lea eax, [ebp + 8]
call fcn.00404a90
ret
Function at 0x47c230
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f10
xor eax, eax
push ebp
push 0x47c307
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x209]
mov edx, dword [ebp - 4]
call fcn.004092ac
lea eax, [ebp - 0x250]
xor ecx, ecx
mov edx, 0x44
call fcn.004034ec
mov dword [ebp - 0x250], 0x44
mov dword [ebp - 0x224], 1
mov word [ebp - 0x220], 0
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x250]
push eax
push 0
push 0
push 0x30
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x209]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x47c2f1
push 0xffffffffffffffff
mov eax, dword [ebp - 0x260]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x260]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x260]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x25c]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c30e
lea eax, [ebp - 4]
call fcn.00404a90
ret

Function at 0x47c314
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
call sub.advapi32.dll_GetUserNameA
mov eax, dword [ebp - 8]
call fcn.00402e60
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47c373
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404c88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c37a
mov eax, dword [ebp - 4]
call fcn.00402e7c
ret
Function at 0x411bb0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5208
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.0047641b
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.0058849e
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 0x5c63f8
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.0042ffc0
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.0058849e
mov esp, ebp
pop ebp
ret
Function at 0x424520
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c67b8
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.00452430
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.00589ad0
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.0058849e
mov esp, ebp
pop ebp
ret
Function at 0x4270c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6d33
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
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 - 0x94], 0
push 0x613ce6
lea ecx, [ebp - 0x58]
call fcn.00406610
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
push eax
lea ecx, [ebp - 0x70]
push ecx
call fcn.00430060
add esp, 8
mov byte [ebp - 4], 1
push 0xc
lea ecx, [ebp - 0x28]
call fcn.00408300
lea ecx, [ebp - 0x28]
call fcn.00409ed0
mov byte [ebp - 4], 2
push 0x6147e8
lea ecx, [ebp - 0x88]
call fcn.00406610
mov byte [ebp - 4], 3
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x70]
push ecx
call fcn.0042faf0
add esp, 0xc
push 0xc
lea ecx, [ebp - 0x1c]
call fcn.00408300
lea ecx, [ebp - 0x1c]
call fcn.00409ed0
mov byte [ebp - 4], 4
mov dword [ebp - 0x8c], 0
jmp 0x42719e
mov edx, dword [ebp - 0x8c]
add edx, 1
mov dword [ebp - 0x8c], edx
lea ecx, [ebp - 0x28]
call fcn.0041cf10
cmp dword [ebp - 0x8c], eax
jae 0x427217
mov eax, dword [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00409f20
push eax
lea ecx, [ebp - 0x40]
call fcn.00406580
mov byte [ebp - 4], 5
push 0x613ce7
lea ecx, [ebp - 0x40]
push ecx
call fcn.0041ea70
add esp, 8
movzx edx, al
test edx, edx
je 0x427206
push 0x6147ec
lea eax, [ebp - 0x40]
push eax
call fcn.0041ea70
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x427206
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0041cf30
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.004066a0
jmp 0x42718f
mov dword [ebp - 0x90], 0
jmp 0x427232
mov eax, dword [ebp - 0x90]
add eax, 1
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x1c]
call fcn.0041cf10
cmp dword [ebp - 0x90], eax
jae 0x427244
jmp 0x427223
lea ecx, [ebp - 0x1c]
call fcn.0041cf10
cmp eax, 2
jb 0x427264
push 1
lea ecx, [ebp - 0x1c]
call fcn.00409f20
push eax
lea ecx, [ebp - 0x58]
call fcn.004070c0
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406650
mov edx, dword [ebp - 0x94]
or edx, 1
mov dword [ebp - 0x94], edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00409f00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call fcn.004066a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00409f00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.004066a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
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.0058849e
mov esp, ebp
pop ebp
ret
Function at 0x436cd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7d3b
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.00430060
add esp, 8
mov dword [ebp - 4], 0
push 0x613de6
lea eax, [ebp - 0x230]
push eax
call fcn.0040a120
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x436d6c
push 0x614bc8
lea ecx, [ebp - 0x230]
call fcn.00408b30
jmp 0x436d97
lea ecx, [ebp - 0x230]
call fcn.00406720
push eax
call fcn.0043cf80
add esp, 4
movzx edx, al
test edx, edx
jne 0x436d97
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.00430590
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.0058849e
mov esp, ebp
pop ebp
ret
Function at 0x43cd30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
jne 0x43cd4a
xor eax, eax
jmp 0x43ce39
mov eax, dword [ebp + 8]
push eax
call fcn.0058a496
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 0x43cd68
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 0x43cd9b
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x20]
jge 0x43ce04
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x5c
je 0x43cdbf
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
movsx eax, byte [edx]
cmp eax, 0x2f
jne 0x43ce02
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.0058a4e6
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43cdf9
mov eax, dword [ebp - 8]
push eax
call fcn.0058a546
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43cdf9
or eax, 0xffffffff
jmp 0x43ce39
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
mov byte [ecx], 0x2f
jmp 0x43cd92
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.0058a4e6
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43ce2a
mov eax, dword [ebp - 8]
push eax
call fcn.0058a546
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00588cd4
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x43cf80
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 0x43cf9b
xor al, al
jmp 0x43cfa9
mov ecx, dword [ebp - 4]
and ecx, 0x10
je 0x43cfa7
mov al, 1
jmp 0x43cfa9
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x440600
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c87e8
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 0x440640
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x44064c
mov al, 1
jmp 0x4407ef
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 0x44068f
xor al, al
jmp 0x4407ef
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.00440b90
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x44070a
cmp dword [ebp - 0x3c], 1
je 0x440711
cmp dword [ebp - 0x3c], 3
je 0x4407ab
jmp 0x4407c3
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 0x440774
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.0058b20b
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x440774
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004066a0
mov al, byte [ebp - 0x34]
jmp 0x4407ef
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x440797
mov byte [ebp - 0x31], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004066a0
mov al, byte [ebp - 0x31]
jmp 0x4407ef
cmp dword [ebp - 0x38], 0
jne 0x4407a9
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00434520
jmp 0x4407db
mov byte [ebp - 0x33], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004066a0
mov al, byte [ebp - 0x33]
jmp 0x4407ef
mov byte [ebp - 0x32], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004066a0
mov al, byte [ebp - 0x32]
jmp 0x4407ef
jmp 0x4406a2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058849e
mov esp, ebp
pop ebp
ret
Function at 0x443580
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8a40
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.00427e50
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 0x44366c
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 0x44366a
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.00431920
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 0x4435de
jmp 0x443670
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.0058849e
mov esp, ebp
pop ebp
ret