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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 8]
call fcn.004017e0
push 0
push 0
push 4
push 0
push 2
push 0x40000000
mov ecx, dword [ebp - 8]
call fcn.004028f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
call fcn.00402050
cmp dword [ebp - 4], 0xffffffff
jne 0x402370
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
push 0xb
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00402140
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
jmp 0x402410
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x28], ecx
mov edx, dword [eax + 0x34]
mov dword [ebp - 0x24], edx
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4023e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
push 0xb
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00402140
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
jmp 0x402410
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp - 8]
add ecx, dword [eax + 0x30]
adc edx, dword [eax + 0x34]
mov eax, dword [ebp - 8]
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], edx
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x402ab0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00402d50
add esp, 0xc
mov dword [ebp - 0x10], 0
jmp 0x402af0
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0xc]
jge 0x402baa
mov edx, dword [ebp - 8]
add edx, 1
and edx, 0x800000ff
jns 0x402b12
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
movzx ecx, byte [ebp + eax - 0x110]
add ecx, dword [ebp - 0xc]
and ecx, 0x800000ff
jns 0x402b33
dec ecx
or ecx, 0xffffff00
inc ecx
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov al, byte [ebp + edx - 0x110]
mov byte [ebp - 1], al
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov al, byte [ebp + edx - 0x110]
mov byte [ebp + ecx - 0x110], al
mov ecx, dword [ebp - 0xc]
mov dl, byte [ebp - 1]
mov byte [ebp + ecx - 0x110], dl
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
movzx ecx, byte [eax]
mov edx, dword [ebp - 8]
movzx eax, byte [ebp + edx - 0x110]
mov edx, dword [ebp - 0xc]
movzx edx, byte [ebp + edx - 0x110]
add eax, edx
and eax, 0x800000ff
jns 0x402b93
dec eax
or eax, 0xffffff00
inc eax
movzx eax, byte [ebp + eax - 0x110]
xor ecx, eax
mov edx, dword [ebp + 0x18]
add edx, dword [ebp - 0x10]
mov byte [edx], cl
jmp 0x402ae7
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 0x18

Function at 0x402fa0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push 0x80
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402fd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x403030
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40306b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 1
jmp 0x403079
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x18], esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov edx, dword [eax]
push edx
call fcn.00401560
call fcn.00404610
add esp, 0x24
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403103
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0xb
mov edx, dword [ebp - 4]
mov dword [edx], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + 0x14]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 4], edx
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404ff0
add esp, 0xc
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00401850
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x403db0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov byte [ebp - 1], 0x7f
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 0
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
push 0x104
push 0
lea edx, [ebp - 0x144]
push edx
call fcn.0041fdd0
add esp, 0xc
movsx eax, byte [ebp + 8]
push eax
push str.._c:
push 0x104
lea ecx, [ebp - 0x144]
push ecx
call fcn.00405110
add esp, 0x10
push 0
push 0
push 3
push 0
push 3
push 0
lea edx, [ebp - 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x403e8f
push 0
lea eax, [ebp - 0xc]
push eax
push 0x28
lea ecx, [ebp - 0x40]
push ecx
push 0xc
lea edx, [ebp - 0x18]
push edx
push 0x2d1400
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x403e7e
mov cl, byte [ebp - 0x24]
mov byte [ebp - 1], cl
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 0xffffffff
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x4041a0
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x18], esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov edx, dword [eax]
push edx
call fcn.00401560
call fcn.00404610
add esp, 0x24
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404291
push 0x80
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x404237
mov dword [ebp - 8], 0
jmp 0x404240
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
mov dword [edx], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0x14]
mov dword [ecx + 0xc], edx
cmp dword [ebp + 0xc], 0
je 0x404272
mov eax, dword [ebp - 4]
mov dword [eax + 8], 6
jmp 0x40427c
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 7
push 0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00404ff0
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.00401850
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4044b0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
push 0x80
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x404525
mov dword [ebp - 0x20], 1
jmp 0x40452e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
shl eax, 1
push eax
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040a300
add esp, 0x14
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x34], esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [edx]
push eax
call fcn.00401560
call fcn.00404610
add esp, 0x24
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x4045cc
mov edx, dword [ebp - 4]
mov dword [edx + 8], 5
mov eax, dword [ebp - 4]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
mov ecx, dword [edx + 0x14]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 4], eax
push 0
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00404ff0
add esp, 0xc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00401850
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0041ddb4
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x30]
mov esp, ebp
pop ebp
ret
Function at 0x407fe0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov dword [ebp - 8], 1
mov dword [ebp - 0x234], 0x22c
push 0x228
push 0
lea eax, [ebp - 0x230]
push eax
call fcn.0041fdd0
add esp, 0xc
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x234]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40809c
mov eax, dword [ebp - 0x22c]
cmp eax, dword [ebp + 8]
jne 0x40805c
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.0041d380
add esp, 4
test eax, eax
jne 0x40805c
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4080a9
mov eax, dword [ebp - 0x21c]
cmp eax, dword [ebp + 8]
jne 0x408088
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.00407fe0
add esp, 4
test eax, eax
jne 0x408088
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4080a9
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x408030
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4080b0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432568
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov dword [ebp - 0x10], 0
imul eax, dword [ebp + 8], 0x1c
cmp dword [eax + 0x477dec], 0
je 0x4080fe
imul ecx, dword [ebp + 8], 0x1c
mov edx, dword [ecx + 0x477dec]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
imul eax, dword [ebp + 8], 0x1c
mov dword [eax + 0x477dec], 0
imul ecx, dword [ebp + 8], 0x1c
cmp dword [ecx + 0x477de4], 0
je 0x40812a
imul edx, dword [ebp + 8], 0x1c
mov eax, dword [edx + 0x477de4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
imul ecx, dword [ebp + 8], 0x1c
mov dword [ecx + 0x477de4], 0
imul edx, dword [ebp + 8], 0x1c
cmp dword [edx + 0x477de8], 0
je 0x408156
imul eax, dword [ebp + 8], 0x1c
mov ecx, dword [eax + 0x477de8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
imul edx, dword [ebp + 8], 0x1c
mov dword [edx + 0x477de8], 0
movzx eax, byte [ebp + 0xc]
test eax, eax
jne 0x4081a5
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
jne 0x408197
imul edx, dword [ebp + 8], 0x1c
cmp dword [edx + 0x477de0], 0
je 0x408197
push 0
imul eax, dword [ebp + 8], 0x1c
mov ecx, dword [eax + 0x477de0]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
imul edx, dword [ebp + 8], 0x1c
mov eax, dword [edx + 0x477de0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
imul ecx, dword [ebp + 8], 0x1c
mov dword [ecx + 0x477de0], 0
movzx edx, byte [ebp + 0xc]
test edx, edx
jne 0x4081cd
imul eax, dword [ebp + 8], 0x1c
cmp dword [eax + 0x477df0], 0xffffffff
je 0x4081cd
imul ecx, dword [ebp + 8], 0x1c
mov edx, dword [ecx + 0x477df0]
push edx
call fcn.00407fe0
add esp, 4
imul eax, dword [ebp + 8], 0x1c
mov dword [eax + 0x477df4], 0
imul ecx, dword [ebp + 8], 0x1c
mov dword [ecx + 0x477df8], 1
mov edx, dword [ebp + 8]
push edx
call fcn.004086e0
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40827b
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x40827b
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
jne 0x40827b
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0x434088
lea ecx, [ebp - 0x3c]
call fcn.00407e70
mov dword [ebp - 4], 0
lea edx, [ebp - 0x14]
push edx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x24], esp
lea eax, [ebp - 0x3c]
push eax
call fcn.004058f0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00408710
add esp, 0x20
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x18], edx
push 3
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00408b70
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00405b20
cmp dword [ebp - 0x10], 0
jne 0x40828a
mov dword [ebp - 0x1c], 1
jmp 0x408291
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4083c0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 1
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
imul edx, dword [ecx], 0x1c
add edx, 0x477de8
push edx
mov eax, dword [ebp + 8]
imul ecx, dword [eax], 0x1c
add ecx, 0x477de4
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40841d
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00408af0
add esp, 4
xor eax, eax
jmp 0x40851b
push 0x44
push 0
lea ecx, [ebp - 0x60]
push ecx
call fcn.0041fdd0
add esp, 0xc
mov dword [ebp - 0x60], 0x44
lea edx, [ebp - 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp + 8]
imul ecx, dword [eax], 0x1c
mov edx, dword [ecx + 0x477de8]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 8]
imul ecx, dword [eax], 0x1c
mov edx, dword [ecx + 0x477de8]
mov dword [ebp - 0x24], edx
xor eax, eax
mov word [ebp - 0x30], ax
mov dword [ebp - 0x34], 0x101
push 0x104
push 0
lea ecx, [ebp - 0x164]
push ecx
call fcn.0041fdd0
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, 0xc
push edx
push 0x434068
push 0x104
lea eax, [ebp - 0x164]
push eax
call fcn.00405110
add esp, 0x10
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x60]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x164]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4084d8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.00408af0
add esp, 4
xor eax, eax
jmp 0x40851b
mov eax, dword [ebp + 8]
imul ecx, dword [eax], 0x1c
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0x477dec], edx
mov eax, dword [ebp + 8]
imul ecx, dword [eax], 0x1c
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x477df0], edx
mov eax, dword [ebp + 8]
imul ecx, dword [eax], 0x1c
mov dword [ecx + 0x477df4], 1
mov edx, dword [ebp + 8]
imul eax, dword [edx], 0x1c
mov dword [eax + 0x477df8], 0
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x409120
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
call fcn.0040ad50
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x140]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
jbe 0x4091fe
lea ecx, [ebp - 0x140]
mov dword [ebp - 8], ecx
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx + eax]
test edx, edx
je 0x4091f7
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 3
je 0x40918f
jmp 0x4091bb
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x28]
mov edx, dword [eax + 4]
adc edx, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov byte [ebp - 1], cl
add dword [ebp - 0xc], 1
cmp byte [ebp - 1], 0
jne 0x4091ca
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 1]
mov dword [ebp - 8], edx
jmp 0x40915b
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x4097c0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push 0x40
lea eax, [ebp - 0x40]
push eax
call fcn.00408e20
add esp, 8
mov dword [ebp - 0x40], 0x40
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
push 0
push 0x400
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.0041e090
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
push 0
push 0x400
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.0041e090
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
push 0
push 0x3e8
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0041e090
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret
Function at 0x40a460
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0x4a
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
push 0x208
push 0
lea eax, [ebp - 0x230]
push eax
call fcn.0041fdd0
add esp, 0xc
push 0x4a
push 0
push 0x478ac0
call fcn.0041fdd0
add esp, 0xc
call fcn.004108b0
mov dword [ebp - 0x18], eax
push 0x104
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x104
lea eax, [ebp - 0x230]
push eax
call fcn.0041d580
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x40a4f1
call fcn.0040b5f0
xor eax, eax
jmp 0x40a61f
push 0x4342e0
lea edx, [ebp - 0x230]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
call fcn.0041d3e0
push 0
push 0
push 3
push 0
push 1
push closesocket
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
call fcn.0041d600
cmp dword [ebp - 4], 0xffffffff
jne 0x40a547
call fcn.0040b5f0
xor eax, eax
jmp 0x40a61f
push 0
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 0x478ac0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40a581
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
call fcn.0040b5f0
xor eax, eax
jmp 0x40a61f
mov dword [ebp - 0x10], str._shlLK:Th84__rpoxKGqmArpeTKjf_c
mov dword [ebp - 0xc], 0x478ae5
mov edx, dword [ebp - 0xc]
mov al, byte [edx]
mov byte [ebp - 5], al
mov ecx, dword [ebp - 0x10]
cmp al, byte [ecx]
jne 0x40a5cc
cmp byte [ebp - 5], 0
je 0x40a5c3
mov edx, dword [ebp - 0xc]
mov al, byte [edx + 1]
mov byte [ebp - 6], al
mov ecx, dword [ebp - 0x10]
cmp al, byte [ecx + 1]
jne 0x40a5cc
add dword [ebp - 0xc], 2
add dword [ebp - 0x10], 2
cmp byte [ebp - 6], 0
jne 0x40a58f
mov dword [ebp - 0x14], 0
jmp 0x40a5d4
sbb edx, edx
or edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x40a607
push 0x478ac0
call fcn.0040a420
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, 1
jmp 0x40a61f
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
call fcn.0040b5f0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40ada0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret