joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4514cd
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, 0x4515a5
call fcn.0043147c
sub esp, 4
push ebx
push esi
mov eax, dword [ecx]
push edi
mov esi, ecx
cmp eax, 0xffffffff
jne 0x4514f5
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esi + 4]
jmp 0x4514fe
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x45150e
mov edx, dword [ebp + 8]
cmp dword [ebx + 8], edx
jg 0x451619
cmp dword [ebp + 0xc], 0
je 0x451625
test ebx, ebx
jne 0x45158b
push 0x10
call fcn.004512a2
mov dword [ebp - 0x10], eax
mov edi, eax
mov dword [ebp - 4], 0
test edi, edi
je 0x451553
mov ebx, edi
mov dword [edi], vtable.CNoTrackObject.0
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
mov dword [edi], vtable.CThreadData.0
jmp 0x451555
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
cmp dword [esi], 0xffffffff
jne 0x451573
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
lea ecx, [esi + 0x18]
call fcn.00451242
cmp dword [esi], 0xffffffff
jne 0x45158b
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0xc]
lea edi, [esi + 0x10]
test eax, eax
jne 0x4515b8
mov eax, dword [edi]
shl eax, 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4515c7
push 2
mov ecx, dword [edi]
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [ebx + 0xc], eax
cmp dword [ebx + 0xc], 0
jne 0x4515e4
cmp dword [esi], 0xffffffff
jne 0x4515df
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0043f014
mov eax, dword [ebx + 8]
mov ecx, dword [edi]
sub ecx, eax
shl ecx, 2
shl eax, 2
push ecx
push 0
add eax, dword [ebx + 0xc]
push eax
call fcn.004314a0
add esp, 0xc
mov ecx, dword [edi]
mov dword [ebx + 8], ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x451616
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x451619
mov dword [esi + 4], ebx
mov edx, dword [ebp + 8]
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebp + 0xc]
mov dword [ecx + edx*4], eax
cmp dword [esi], 0xffffffff
jne 0x451634
add esi, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x451695
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ecx + 0x20]
push edi
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4516bc
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
jmp 0x4516bf
mov edi, dword [esi + 4]
test edi, edi
je 0x451777
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
cmp dword [edi + 8], 1
jle 0x45173a
mov dword [ebp - 0xc], 8
mov ebx, 4
cmp dword [ebp + 8], 0
je 0x45170e
mov ecx, dword [ebp - 0xc]
mov edx, dword [esi + 0x14]
mov eax, dword [ebp + 8]
cmp dword [edx + ecx + 4], eax
je 0x45170e
mov eax, dword [edi + 0xc]
cmp dword [eax + ebx], 0
je 0x451728
mov dword [ebp - 4], 0
jmp 0x451728
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + ebx]
test ecx, ecx
je 0x45171e
push 1
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [edi + 0xc]
mov dword [eax + ebx], 0
add ebx, 4
inc dword [ebp - 8]
add dword [ebp - 0xc], 8
mov eax, dword [ebp - 8]
cmp dword [edi + 8], eax
jg 0x4516e7
cmp dword [ebp - 4], 0
je 0x451777
push edi
lea ecx, [esi + 0x18]
call fcn.00451255
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x45175e
push 1
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x451770
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x451777
mov dword [esi + 4], 0
add esi, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x45178a
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
cmp dword [ecx], 0
mov esi, ecx
jne 0x4517ca
cmp dword [0x468f10], 0
jne 0x4517bd
mov ecx, 0x468f18
test ecx, ecx
je 0x4517b3
push 1
call fcn.004512d2
mov dword [0x468f10], eax
jmp 0x4517bd
mov dword [0x468f10], 0
mov ecx, dword [0x468f10]
call fcn.00451324
mov dword [esi], eax
mov edi, dword [esi]
mov eax, dword [0x468f10]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4517ea
cmp dword [eax + 8], edi
jle 0x4517ea
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x4517ec
xor edi, edi
test edi, edi
jne 0x451804
call dword [esp + 0xc]
push eax
mov edi, eax
push dword [esi]
mov ecx, dword [0x468f10]
call fcn.004514cd
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x452205
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x452239
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
cmp eax, 1
sbb eax, eax
neg eax
jmp 0x452285
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x452283
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0xc]
push 1
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x452283
mov eax, 1
test esi, esi
je 0x452285
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42b0de
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov al, byte [ecx]
and dword [esp + 0x14], 0
push ebx
push ebp
mov byte [edx], al
lea eax, [edx + 1]
push esi
mov dword [esp + 0x18], eax
push edi
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x14]
lea eax, [ecx + 1]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
call fcn.0042b087
test eax, eax
je 0x42b237
lea ecx, [esp + 0x18]
call fcn.0042b087
lea ecx, [esp + 0x18]
test eax, eax
je 0x42b1a6
call fcn.0042b087
test eax, eax
je 0x42b168
push 4
xor edi, edi
pop ebx
lea ecx, [esp + 0x18]
call fcn.0042b087
lea edi, [eax + edi*2]
dec ebx
jne 0x42b13e
mov edx, dword [esp + 0x1c]
test edi, edi
je 0x42b15f
mov eax, edx
sub eax, edi
mov al, byte [eax]
mov byte [edx], al
jmp 0x42b162
mov byte [edx], 0
inc edx
jmp 0x42b249
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
movzx esi, byte [eax]
mov ecx, esi
and ecx, 1
inc eax
add ecx, 2
shr esi, 1
mov dword [esp + 0x18], eax
je 0x42b19e
test ecx, ecx
je 0x42b232
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x42b190
jmp 0x42b22e
xor ebp, ebp
inc ebp
jmp 0x42b232
call fcn.0042b0bd
test edi, edi
jne 0x42b1db
cmp eax, 2
jne 0x42b1d6
lea ecx, [esp + 0x18]
call fcn.0042b0bd
mov edx, dword [esp + 0x1c]
mov edi, eax
test edi, edi
je 0x42b232
mov ecx, edx
sub ecx, esi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
dec edi
jne 0x42b1cb
jmp 0x42b22e
sub eax, 3
jmp 0x42b1de
sub eax, 2
mov ecx, dword [esp + 0x18]
mov esi, eax
movzx eax, byte [ecx]
shl esi, 8
add esi, eax
inc ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.0042b0bd
mov ecx, eax
cmp esi, 0x7d00
jb 0x42b205
inc ecx
cmp esi, 0x500
jb 0x42b20e
inc ecx
cmp esi, 0x80
jae 0x42b219
add ecx, 2
mov edx, dword [esp + 0x1c]
test ecx, ecx
je 0x42b232
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x42b225
mov dword [esp + 0x1c], edx
xor edi, edi
inc edi
jmp 0x42b24f
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
mov dword [esp + 0x18], ecx
xor edi, edi
mov dword [esp + 0x1c], edx
test ebp, ebp
je 0x42b10e
sub edx, dword [esp + 0x14]
pop edi
mov eax, edx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42b3d4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, edi
shr ebx, 2
and edi, 3
mov esi, ecx
test ebx, ebx
je 0x42b406
mov al, byte [esp + 0x14]
mov edx, dword [esi]
add al, bl
movzx ecx, al
mov eax, dword [esp + 0x10]
ror edx, cl
xor edx, eax
sub edx, ebx
mov dword [esi], edx
add esi, 4
dec ebx
jne 0x42b3e7
jmp 0x42b40a
mov eax, dword [esp + 0x10]
test edi, edi
je 0x42b414
xor byte [esi], al
inc esi
dec edi
jne 0x42b40e
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x4014b4
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x401ba7
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
sub esp, 0x54
push ebx
xor ebx, ebx
push edi
cmp dword [eax - 0xc], ebx
je 0x401d21
mov eax, dword [0x45a180]
mov edi, 0x45a180
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push 0x44ab90
lea eax, [ebp - 8]
call fcn.004044e8
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0040a189
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004045dc
push 0x44ab98
lea eax, [ebp - 4]
push eax
call fcn.004020a2
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x401c2e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401d16
mov eax, dword [0x45a180]
mov ecx, edi
call dword [eax + 0xc]
push dword [ebp - 4]
add eax, 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00401f49
mov eax, str._echo_off__r_nATTRIB__r___s___r_n:try__r_nrd___s___r_nif_exist___s__goto_try_r_nATTRIB__r___s___r_ndel___s___cls
cmp byte [esi + 9], bl
jne 0x401c58
mov eax, str._echo_off__r_nATTRIB__r___s___r_n:try__r_ndel___s___r_nif_exist___s__goto_try_r_nATTRIB__r___s___r_ndel___s___cls
push dword [ebp - 8]
push dword [ebp - 8]
push dword [esi]
push dword [esi]
push dword [esi]
push eax
lea eax, [ebp - 0xc]
call fcn.0040223d
mov edi, dword [ebp - 0xc]
add esp, 0x18
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [edi - 0xc]
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004045dc
lea eax, [edi - 0x10]
call fcn.004045dc
cmp dword [ebp - 0x18], ebx
je 0x401ca6
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 4]
lea edi, [ebp - 0xc]
call fcn.00409e5a
cmp byte [esi + 8], bl
jne 0x401ccd
mov edi, dword [ebp - 0xc]
push ebx
push edi
push ebx
push dword [ebp - 4]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x401d0e
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.004315c0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x44], eax
add esp, 0xc
mov dword [ebp - 0x54], edi
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], 0x500
mov dword [ebp - 0x48], str.runas
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea eax, [edi - 0x10]
call fcn.004045dc
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [esi + 4]
sub eax, 0x10
call fcn.004045dc
mov eax, dword [esi]
sub eax, 0x10
call fcn.004045dc
pop edi
pop ebx
leave
ret
Function at 0x402f9d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x402fab
push 0xd
pop eax
jmp 0x402fde
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x402fb2
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4033de
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x458090]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
mov dword [ebp - 0x21c], eax
xor esi, esi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.004033ab
mov ebx, eax
cmp ebx, esi
je 0x403446
cmp dword [ebp - 0x214], esi
je 0x40343f
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x4034e1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40346e
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.004033de
mov dword [ebp - 0x220], eax
cmp eax, esi
jne 0x4034f2
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call ebx
test eax, eax
je 0x40344e
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], esi
je 0x4034b9
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], esi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 0x214], esi
je 0x4034df
push dword [ebp - 0x214]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043159b
leave
ret 4
cmp dword [ebp - 0x214], esi
je 0x403506
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x4034e1
Function at 0x403e66
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x458090]
xor eax, ebp
mov dword [ebp + 0x390], eax
mov eax, dword [ebp + 0x39c]
push ebx
mov ebx, dword [ebp + 0x3a0]
push esi
push edi
xor esi, esi
push 2
push esi
push eax
mov edi, edx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x74], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x78], eax
cmp eax, esi
jne 0x403eba
call fcn.00402acd
mov esi, eax
jmp 0x403f78
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x403ed3
call fcn.00402acd
jmp 0x403f6d
push edi
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, esi
je 0x403ec9
push edi
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x403f0d
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x74], eax
je 0x403f06
lea eax, [ebp - 0x74]
call fcn.004118e8
mov eax, 0x8007000e
jmp 0x403f8a
push 2
push eax
call fcn.00403002
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x403f2a
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00402aac
jmp 0x403f30
lea eax, [ebp - 0x70]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], esi
jne 0x403f3c
mov esi, 0x8007000e
jmp 0x403f6f
push edi
push dword [ebp - 0x74]
push edi
push ebx
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x403ec9
mov edx, dword [ebp - 0x74]
push dword [ebp + 0x3a4]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x74]
lea edx, [ebp - 0x80]
call fcn.00403d1e
mov esi, eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x74], eax
je 0x403f88
lea eax, [ebp - 0x74]
call fcn.004118e8
mov eax, esi
mov ecx, dword [ebp + 0x390]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043159b
add ebp, 0x394
leave
ret 0xc

Function at 0x4041cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4041e3
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x404218
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x404214
cmp edi, eax
jae 0x404218
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x404206
cmp edi, eax
jb 0x40421c
xor eax, eax
jmp 0x404225
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x4070f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x458090]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [edx + 0x28]
call fcn.0040b521
test al, al
jne 0x407188
test dword [edx + 0x6c], 0x2000
jne 0x407188
push edx
call fcn.00408098
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jl 0x407188
test ecx, ecx
jge 0x407136
push 0x80070057
call fcn.0040459d
cmp word [eax], 0x5c
jne 0x407154
cmp ecx, 1
jl 0x40712c
cmp word [eax + 2], 0x5c
jne 0x407154
cmp ecx, 2
jl 0x40712c
cmp word [eax + 4], 0x5c
jne 0x407188
push esi
xor esi, esi
test esi, esi
jl 0x40712c
mov ecx, esi
mov eax, edi
call fcn.00408d04
mov word [ebp + esi*2 - 0xc], ax
inc esi
cmp esi, 3
jl 0x407157
xor eax, eax
mov word [ebp - 6], ax
pop esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
setne al
jmp 0x40718a
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0043159b
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
call fcn.00408098
lea ecx, [ebp - 4]
mov esi, eax
call fcn.00409c77
push 0x5c
call fcn.00408b4f
mov ecx, dword [esi]
mov ecx, dword [ecx - 0xc]
inc eax
lea edx, [ebp - 8]
push edx
sub ecx, eax
mov edx, eax
mov eax, esi
call fcn.00408be5
mov ebx, dword [ebp - 8]
push dword [ebx - 0xc]
lea eax, [ebp - 4]
push ebx
call fcn.00402288
lea eax, [ebx - 0x10]
call fcn.004045dc
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4071fd
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esi]
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x407218
xor esi, esi
inc esi
mov dword [edi + 0x10], esi
jmp 0x407299
push esi
lea ebx, [edi + 0x18]
push ebx
push 3
pop eax
call fcn.00415a02
mov eax, dword [0x45a180]
mov ecx, 0x45a180
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
xor esi, esi
push esi
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.00415af8
push dword [eax]
mov ebx, dword [ebp - 4]
push ebx
lea eax, [ebp - 8]
push 0x44b6c8
push eax
call fcn.00409682
mov eax, dword [ebp - 0xc]
add esp, 0x10
add eax, 0xfffffff0
call fcn.004045dc
lea eax, [edi + 0x16c]
call fcn.0041575c
push esi
push 0x20
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040f8c4
add esp, 0x14
test al, al
jne 0x40728e
inc esi
mov dword [edi + 0x10], esi
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004045dc
lea eax, [ebx - 0x10]
call fcn.004045dc
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x409ffc
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x458090]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
sub eax, 0x10
mov dword [esp + 0x1c], edi
call fcn.00409bcb
add eax, 0x10
lea esi, [esp + 0xc]
mov dword [esp + 0xc], eax
call fcn.00409c45
push 0x44b9dc
mov eax, esi
push eax
call fcn.004020a2
xor esi, esi
push 0x24c
lea eax, [esp + 0x28]
push esi
push eax
mov dword [esp + 0x2c], esi
call fcn.004315c0
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x40a15e
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp word [esp + 0x4c], 0x2e
jne 0x40a0b4
cmp word [esp + 0x4e], si
je 0x40a0a0
cmp word [esp + 0x4e], 0x2e
jne 0x40a0b4
cmp word [esp + 0x50], si
jne 0x40a0b4
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call ebx
mov dword [esp + 0x18], eax
jmp 0x40a152
test byte [esp + 0x20], 0x10
je 0x40a114
mov eax, dword [edi]
sub eax, 0x10
call fcn.00409bcb
add eax, 0x10
lea esi, [esp + 0x10]
mov dword [esp + 0x10], eax
call fcn.00409c45
lea eax, [esp + 0x4c]
push eax
mov eax, esi
push eax
call fcn.004020a2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call ebx
mov dword [esp + 0x18], eax
mov eax, esi
push eax
call fcn.00409ffc
pop ecx
call fcn.00402010
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004045dc
jmp 0x40a152
mov eax, edi
lea edi, [esp + 0xc]
call fcn.004087db
mov esi, edi
call fcn.00409c45
lea eax, [esp + 0x4c]
push eax
mov eax, edi
push eax
call fcn.004020a2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call ebx
mov dword [esp + 0x18], eax
call fcn.00402010
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [esp + 0x1c]
xor esi, esi
cmp dword [esp + 0x18], esi
jne 0x40a082
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.004045dc
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043159b
mov esp, ebp
pop ebp
ret
Function at 0x40a189
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x458090]
xor eax, ebp
mov dword [ebp + 0x394], eax
mov eax, dword [0x45a180]
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x45a180
mov edi, edx
call dword [eax + 0xc]
mov esi, eax
lea eax, [ebp + 0x18c]
push eax
add esi, 0x10
push 0x104
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40a213
mov ebx, dword [ebx]
lea eax, [ebp - 0x7c]
push eax
push 0
push ebx
lea eax, [ebp + 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40a213
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004044c5
mov esi, dword [ebp - 0x80]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x80]
call fcn.004087db
mov bl, 1
jmp 0x40a215
xor bl, bl
lea eax, [esi - 0x10]
call fcn.004045dc
mov ecx, dword [ebp + 0x394]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0043159b
add ebp, 0x398
leave
ret

Function at 0x40a237
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x45a180]
push esi
mov ecx, 0x45a180
call dword [eax + 0xc]
mov esi, dword [ebp + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
dec ecx
js 0x40a2fe
push edi
mov eax, esi
call fcn.00408d04
cmp ax, 0x5c
jne 0x40a295
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
lea ecx, [eax - 1]
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00408c5c
lea edi, [ebp - 4]
call fcn.004087db
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004045dc
jmp 0x40a29f
mov eax, esi
lea edi, [ebp - 4]
call fcn.004087db
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [esi]
mov edx, dword [eax - 0xc]
cmp edx, dword [ecx - 0xc]
pop edi
jl 0x40a2bb
add eax, 0xfffffff0
call fcn.004045dc
pop esi
leave
ret
push 0x5c
call fcn.00408b4f
mov ecx, eax
lea edx, [ebp - 8]
mov eax, esi
call fcn.00408c5c
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
je 0x40a2ee
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040a237
pop ecx
pop ecx
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [ebp - 4]
jmp 0x40a2b0
push 0x80070057
call fcn.0040459d
int3