joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006af8
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x100aca8
call fcn.01006fd4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x100e250
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x10068af
cmp eax, esi
jne 0x10068a2
xor esi, esi
inc esi
mov ebx, esi
jmp 0x10068b2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1006889
xor esi, esi
inc esi
mov eax, dword [0x100e24c]
cmp eax, esi
jne 0x10068c5
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10068f4
mov eax, dword [0x100e24c]
test eax, eax
jne 0x10068ee
mov dword [0x100e24c], esi
push 0x1001298
push 0x100128c
call fcn.010067ee
pop ecx
pop ecx
test eax, eax
je 0x10068f4
jmp 0x1006a1c
mov dword [0x100cd94], esi
mov eax, dword [0x100e24c]
cmp eax, esi
jne 0x1006918
push 0x1001288
push 0x1001280
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100e24c], 2
test ebx, ebx
jne 0x1006924
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100e258], 0
je 0x1006948
push 0x100e258
call fcn.01006f49
pop ecx
test eax, eax
je 0x1006948
push 0
push 2
push 0
call dword [0x100e258]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x10069a4
test al, al
je 0x1006962
cmp dword [ebp - 0x1c], 0
jne 0x10069a4
mov al, byte [esi]
test al, al
je 0x1006972
cmp al, 0x20
ja 0x1006972
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1006962
test byte [ebp - 0x3c], 1
je 0x100697e
movzx eax, word [ebp - 0x38]
jmp 0x1006981
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x100cd90], eax
cmp dword [0x100cd84], 0
jne 0x10069f8
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x10069b3
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x10069c6
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x100694f
cmp dword [0x100cd94], 0
jne 0x1006a07
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100cd90]
jmp 0x1006a28
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01007019
ret
call fcn.01007119
jmp 0x100684f

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10074f2
xor eax, eax
jmp 0x10074fa
shr eax, 4
not eax
and eax, 1
pop ebp
ret 4
Function at 0x1007661
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xa8], 0
cmp dword [0x100c5e4], 0xfffffffe
mov dword [ebp - 0xb0], 0xc
jne 0x1007786
and dword [0x100c5e4], 0
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1007786
cmp dword [ebp - 0x94], 1
jne 0x1007786
cmp dword [ebp - 0xa0], 4
jne 0x1007786
cmp dword [ebp - 0x9c], 0xa
jae 0x1007786
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1007786
lea eax, [ebp - 0xac]
push eax
push 0x20019
push 0
push 0x10015bc
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1007786
push edi
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb4]
push eax
push 0
push 0x10012e1
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xac]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x1007786
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0100753e
test eax, eax
je 0x1007786
and dword [ebp - 0xa8], 0x3ff
cmp dword [ebp - 0xa8], 1
je 0x100777c
cmp dword [ebp - 0xa8], 0xd
jne 0x1007786
mov dword [0x100c5e4], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x100c5e4]
xor ecx, ebp
call fcn.01006b07
leave
ret

Function at 0x10077f7
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0100779c

Function at 0x1008bc3
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x1008c04
push ebx
movzx edx, byte [ecx]
dec eax
inc ecx
movzx ebx, byte [ecx]
shl ebx, 8
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
test eax, eax
jg 0x1008bdd
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x1008c22
dec esi
je 0x1008c19
dec esi
jne 0x1008c27
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
movzx edx, byte [ecx]
shl edx, 8
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x215414b7
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
nop
mov ecx, 0x16e5115a
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
test ebx, ebx
je 0x4010b2
mov al, byte [esp + 0x14]
test al, al
jne 0x401025
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
jmp 0x401075
cmp al, 1
jne 0x401037
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x401075
cmp al, 2
jne 0x401075
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.Program_FilesInternet_Explorer
or ecx, 0xffffffff
xor eax, eax
mov byte [ebx + 3], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebx - 1], 0x5c
je 0x4010b2
mov edi, 0x4042cc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
ret

Function at 0x401150
Capabilities:
Create process on windows
Create thread
Inject dll
Inject thread

Disassembly:
sub esp, 0x158
push ebx
push esi
lea eax, [esp + 0x5c]
push edi
push eax
call fcn.004010c0
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push 0
push 0
push 1
push 0
lea ecx, [esp + 0x7c]
push 0
push ecx
push 0
mov word [esp + 0x74], 0
mov dword [esp + 0x70], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4011b1
pop edi
pop esi
pop ebx
add esp, 0x158
ret
mov edi, dword [esp + 0x168]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 4
push 0x1000
push edi
call ebx
mov edx, dword [esp + 0x14]
inc eax
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
jne 0x4011e7
pop edi
pop esi
pop ebx
add esp, 0x158
ret
push 0
push edi
call ebx
inc eax
push eax
mov eax, dword [esp + 0x14]
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x401209
pop edi
pop esi
pop ebx
add esp, 0x158
ret
push 0x404324
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40122e
pop edi
pop esi
pop ebx
add esp, 0x158
ret
mov ecx, dword [esp + 0xc]
push 0
push 0
push esi
push eax
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
neg eax
sbb eax, eax
pop edi
pop esi
pop ebx
neg eax
add esp, 0x158
ret
Function at 0x40a3d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ebp, dword [eax + ecx - 0x7aebbf15]
sal byte [ebx + esi - 0x75], 0x4d
or al, 0x51
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax

Function at 0x40aa2b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov edx, ebp
test edi, esi
or byte [ebx], al
lea esi, [eax*4 + 0x4108e4]
test dword [eax], 0x348d0043
test esp, esp
or byte [ecx], al
test ecx, ecx
jne 0x40a970
pop ss
mov eax, dword [eax*4 - 0x7ef63b0c]
stosd dword es:[edi], eax
xor byte [0x40c011], dl
test eax, eax
sub dword [ebx - 0x3feeead0], 0xc0850040
push ebx
push edi
jne 0x40a9e3
pop esi
jp 0x40a95f
rol dword [ebp + 0x1c], cl
test eax, eax
je 0x40a94a
mov ecx, dword [esi]
push eax
mov edi, 0xc01c15ff
inc eax
add byte [esi + 0x5d], bl
jmp 0x40a958
dec ebp
adc byte [esi + 0x53], ah
add dword [ebx + 0x4d8902c1], eax
adc cl, ch
enter 1, 0
mov ecx, eax
sbb eax, 0x66c0
mov dword [0x85cbc0f9], eax
xchg dword [eax], eax
add byte [eax], al
cdq
mov edi, 0x5a0000e0
add al, cl
mov dword [edx - 0x10], ebx
and esp, dword [edx + 0x6fbedbe0]
add byte [eax], al
add byte [ebx], dh
sar al, cl
xor dword [ecx + 0x4589f175], ecx
inc edx
jne 0x40aa58
cmp edx, ebx
jne 0x40aa58
mov edx, edx
mov edx, ebx
sal dword [edx], cl
add dword [eax], eax
cld
add al, ch
fidiv dword [edi]
add byte [ebx], cl
clc
or ebx, edx
scasb al, byte es:[edi]
cmp esi, 3
mov dword [ebp + ebx + 0x458b4877], edx
in al, dx
mov ecx, dword [ebp - 0x10]
and eax, edi
and ebp, dword [edx + 0x475c73b]
cmp ecx, ebx
je 0x40aa28
mov ebp, esi
in al, dx
mov edx, dword [ebp - 0x4e]
mov ecx, ebx
not esp
das
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ed0
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x5d0d3094
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x28702c36
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x402e41
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406248
xor ebx, ebx
cmp eax, ebx
jne 0x402f24
test byte [ebp + 0x10], 2
je 0x402ea2
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x402f09
lea eax, [ebp - 0x214]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402ede
test edi, edi
jne 0x402f09
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.00402e41
test eax, eax
jne 0x402ee7
lea eax, [ebp - 0x214]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402eb7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004067d0
test eax, eax
jne 0x402f19
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x402f24
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402f24
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40324c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x40326c
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x40327b
mov ebx, 0x418ec0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403290
mov ecx, dword [0x42a298]
add ecx, eax
push ecx
call fcn.00403447
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403431
test eax, eax
je 0x4033e8
test byte [ebp + 0x17], 0x80
je 0x4033d1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40ce30
mov dword [ebp - 0xc], eax
call fcn.0040692b
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403427
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x4032e0
mov esi, dword [ebp + 0x14]
mov edi, 0x414ec0
push esi
push edi
call fcn.00403431
test eax, eax
je 0x4033e8
sub dword [ebp + 0x14], esi
mov dword [0x40ce48], edi
mov dword [0x40ce4c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40ce30
mov dword [0x40ce50], ebx
mov dword [0x40ce54], eax
call fcn.0040694b
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x4033c9
mov esi, dword [0x40ce50]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x42a2f4], 1
mov edi, eax
je 0x403388
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x40334f
cmp dword [ebp + 0x14], 0
jne 0x403388
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x90]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
push 0
call fcn.00405443
mov dword [ebp - 0xc], edi
test esi, esi
je 0x4033bd
cmp dword [ebp + 0x10], 0
jne 0x4033a5
push esi
push ebx
push dword [ebp + 0xc]
call fcn.00405f83
test eax, eax
je 0x4033cd
add dword [ebp - 4], esi
jmp 0x4033b1
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40ce50]
cmp dword [ebp - 0x10], 1
jne 0x403303
jmp 0x403427
cmp dword [ebp + 0x14], 0
jg 0x4032d3
jmp 0x403427
push 0xfffffffffffffffc
jmp 0x4033ea
push 0xfffffffffffffffe
jmp 0x4033ea
test edi, edi
je 0x40341c
cmp dword [ebp + 0x14], esi
jge 0x4033dd
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403431
test eax, eax
jne 0x403424
push 0xfffffffffffffffd
pop eax
jmp 0x40342a
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x4033f8
mov esi, dword [ebp + 0x14]
mov edi, 0x414ec0
push esi
push edi
call fcn.00403431
test eax, eax
je 0x4033e8
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405f83
test eax, eax
je 0x4033cd
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x4033ed
jmp 0x403427
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405912
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405963
xor eax, eax
jmp 0x40598a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x40598a
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40595f
call esi
pop esi
leave
ret 4

Function at 0x4059c4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x426710], 0x44
push eax
xor eax, eax
push 0x426710
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405a03
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405a07
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405aa5
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405eac
mov edi, eax
cmp edi, 0xffffffff
je 0x405ae6
test byte [esp + 0x10], 1
push esi
je 0x405ac8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405ace
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405ad7
xor eax, eax
inc eax
jmp 0x405ae8
test byte [esp + 0x10], 4
jne 0x405ae6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405aed
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405db8
test bl, 8
mov dword [ebp - 8], eax
je 0x405b2c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42a2c8], eax
jmp 0x405ca9
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405b46
test eax, eax
je 0x405c57
test bl, 2
je 0x405c57
mov esi, 0x425710
push edi
push esi
call fcn.004063db
cmp dword [ebp + 8], 0
je 0x405b65
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405b6b
push edi
call fcn.00405cfc
cmp word [edi], 0
jne 0x405b7b
cmp word [0x425710], 0x5c
jne 0x405b86
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405c4c
cmp word [ebp - 0x22c], 0x2e
jne 0x405bd0
cmp word [ebp - 0x22a], 0
je 0x405c2f
cmp word [ebp - 0x22a], 0x2e
jne 0x405bd0
cmp word [ebp - 0x228], 0
je 0x405c2f
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.004063db
test byte [ebp - 0x258], 0x10
je 0x405bfb
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405c2f
push dword [ebp + 0xc]
push edi
call fcn.00405aed
jmp 0x405c2f
push dword [ebp - 4]
push edi
call fcn.00405aa5
test eax, eax
jne 0x405c27
cmp dword [ebp - 4], eax
je 0x405c1f
push edi
push 0xfffffffffffffff1
call fcn.00405443
push 0
push edi
call fcn.004061a1
jmp 0x405c2f
inc dword [0x42a2c8]
jmp 0x405c2f
push edi
push 0xfffffffffffffff2
call fcn.00405443
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405ba8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405c57
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405ca9
cmp dword [ebp - 8], esi
jne 0x405c6b
inc dword [0x42a2c8]
jmp 0x405ca9
push edi
call fcn.00406739
test eax, eax
je 0x405ca9
push edi
call fcn.00405cb0
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405aa5
test eax, eax
jne 0x405ca1
cmp dword [ebp - 4], esi
je 0x405c63
push edi
push 0xfffffffffffffff1
call fcn.00405443
push esi
push edi
call fcn.004061a1
jmp 0x405ca9
push edi
push 0xffffffffffffffe5
call fcn.00405443
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405db8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f10
push esi
call fcn.004063db
push esi
call fcn.00405d5b
mov edi, eax
test edi, edi
jne 0x405dd9
xor eax, eax
jmp 0x405e31
push edi
call fcn.0040668a
test byte [0x42a23c], 0x80
je 0x405df6
mov ax, word [edi]
test ax, ax
je 0x405dd5
cmp ax, 0x5c
je 0x405dd5
sub edi, esi
sar edi, 1
jmp 0x405e10
call fcn.00406739
test eax, eax
je 0x405e0a
test byte [eax], 0x10
je 0x405dd5
push esi
call fcn.00405cfc
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405dfc
call fcn.00405cb0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405eac
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405ecb
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405ed1
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405f00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a578]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a57c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405f50
test edi, edi
jne 0x405f0d
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405f4a