joyce8/EMBER2024-capa huggingface dataset:
Function at 0x548853
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x592c80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.005398e8
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.005398e8
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x5488ca
cmp word [ecx], dx
je 0x5488ca
mov eax, dword [0x56bd94]
push edi
dec eax
push eax
push 0x56bc80
call fcn.005487f2
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x54893d
cmp word [eax], dx
je 0x54893d
mov eax, dword [edi]
test eax, eax
je 0x5488ee
cmp word [eax], dx
je 0x5488ee
lea eax, [ebp - 0x10]
push eax
call fcn.005481d5
jmp 0x5488f7
lea eax, [ebp - 0x10]
push eax
call fcn.00548270
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x548967
mov eax, dword [0x56bc7c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x56b970
call fcn.005487f2
add esp, 0xc
test al, al
je 0x548967
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x548932
cmp word [eax], di
je 0x548932
lea eax, [ebp - 0x10]
push eax
call fcn.005481d5
pop ecx
jmp 0x548969
lea eax, [ebp - 0x10]
push eax
call fcn.00548270
jmp 0x54892f
mov eax, dword [edi]
test eax, eax
je 0x548954
cmp word [eax], dx
je 0x548954
lea eax, [ebp - 0x10]
push eax
call fcn.0054816c
pop ecx
jmp 0x548967
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x548a32
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00548677
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x548a32
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x548a32
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x548a32
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5489bf
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0053ab72
test ebx, ebx
je 0x548a2d
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0053ab72
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x548a32
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x548a32
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00551922
add esp, 0x10
xor eax, eax
inc eax
jmp 0x548a34
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c8873
leave
ret
Function at 0x552bf6
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00552a1a
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x552d65
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x552d65
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x552d1a
jg 0x552c52
test eax, eax
je 0x552d10
push 1
push 0x1000
call fcn.00539e18
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x552c75
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x552d07
push 0x8000
push ebx
call fcn.0052ff2d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x552c9e
jg 0x552c99
cmp ecx, 0x1000
jb 0x552c9e
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0053d3d4
add esp, 0x10
cmp eax, 0xffffffff
je 0x552ce3
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x552c99
jl 0x552cca
test ecx, ecx
jne 0x552c8b
push dword [ebp - 0xc]
push ebx
call fcn.0052ff2d
push esi
call fcn.00537bab
add esp, 0xc
xor ebx, ebx
jmp 0x552d73
cmp byte [edi + 0x24], 0
je 0x552cfa
cmp dword [edi + 0x20], 5
jne 0x552cfa
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x552d05
mov ebx, dword [edi + 0x18]
jmp 0x552d07
xor ebx, ebx
push esi
call fcn.00537bab
pop ecx
jmp 0x552d73
test ecx, ecx
jg 0x552cdc
jl 0x552d1a
test eax, eax
jae 0x552cdc
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0053f12e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x552d3a
cmp byte [edi + 0x1c], 0
je 0x552cdc
jmp 0x552d6b
push ebx
call fcn.005462b8
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x552cdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x552d73
cmp byte [edi + 0x1c], 0
je 0x552d70
mov ebx, dword [edi + 0x18]
jmp 0x552d73
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0053f12e
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x553c90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x553cbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x553cbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4010c0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x5c
test byte [0x403000], 8
mov dword [ebp - 0x2c], eax
jne 0x4011a0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [sym.imp.advapi32.dll_RegQueryValueExW]
lea edi, [ebp - 0x1c]
lea esi, [ebp - 0x20]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp + 0x14], edi
mov dword [esp + 4], ebx
mov dword [esp + 0xc], esi
mov dword [esp], eax
mov dword [ebp - 0x30], ecx
call ecx
xor edx, edx
sub esp, 0x18
test eax, eax
jne 0x40118d
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov ecx, dword fs:[0x18]
mov dword [ebp - 0x38], ecx
add edx, 4
mov dword [esp + 8], edx
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x3c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov dword [ebp - 0x34], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebp - 0x30]
sub esp, 0x18
test eax, eax
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
jne 0x4011d0
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
xor ebx, ebx
and eax, 0xfffffffe
mov word [edx + eax - 2], cx
mov word [edx + eax - 4], bx
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], section..rdata
mov dword [esp + 8], global___func__
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1
jmp 0x4010db
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
xor edx, edx
sub esp, 0xc
jmp 0x40118d
Function at 0x4022e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strlen]
mov esi, eax
xor eax, eax
test esi, esi
je 0x40233b
cmp byte [ebx + esi - 1], 0xa
je 0x40230f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x405084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x4029b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call dbg.__wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x402b80
mov eax, dword fs:[0x18]
mov edi, dword [0x405084]
cmp dword [eax + 0x24], edi
je 0x402b72
test byte [0x403018], 8
jne 0x402b20
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x403028], 8
jne 0x402ae0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x402a73
cmp esi, 3
ja 0x402a73
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x4044e8]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.2
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x402a84
mov esi, edx
mov dword [esp + 0xc], edi
mov dword [esp + 4], 1
shr esi, 0x10
test edx, 0x8080
mov dword [esp], ebx
cmove edx, esi
lea esi, [ecx + 2]
mov eax, edx
cmove ecx, esi
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x403028
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x402a0e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x402a0e
mov dword [esp], 0x403018
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x4029fb
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
mov ecx, eax
lea ebx, [esp + 0x28]
mul edx
mov dword [esp + 4], str._3u._03u:
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x402a01
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xffffffff
jmp 0x402ad1

Function at 0x402be0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov ebx, dword [eax]
call sym.___p___wargv
mov esi, dword [eax]
call sym.__get_initial_wide_environment
mov edi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x3c]
cmp word [edx + eax + 0x5c], 2
sete dl
movzx edx, dl
add edx, 1
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dbg.wmain
mov dword [esp], eax
call sym._exit
Function at 0x447480
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push esi
mov esi, edx
lea edx, [ebp - 0x438]
call fcn.00405453
lea edx, [ebp - 0x22c]
mov ecx, esi
call fcn.00405453
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
pop esi
test eax, eax
jne 0x4474f7
cmp byte [ebp + 8], al
je 0x4474f3
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.00422c63
pop ecx
pop ecx
test eax, eax
je 0x4474ef
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov al, 1
leave
ret
xor al, al
leave
ret
lea ecx, [ebp - 0x438]
call fcn.0044869a
test al, al
je 0x4474f3
lea ecx, [ebp - 0x22c]
call fcn.0044869a
test al, al
je 0x4475a1
cmp byte [ebp + 8], 0
je 0x4474f3
lea eax, [ebp - 0x438]
push 0x4b47b4
push eax
call fcn.00422374
lea eax, [ebp - 0x438]
push eax
call fcn.0042235b
xor ecx, ecx
mov word [ebp + eax*2 - 0x436], cx
lea eax, [ebp - 0x22c]
push eax
call fcn.0042235b
xor ecx, ecx
mov word [ebp + eax*2 - 0x22a], cx
lea eax, [ebp - 0x438]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0x20], eax
mov eax, 0x614
add esp, 0x10
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
leave
ret
lea ecx, [ebp - 0x22c]
call fcn.004477f4
test al, al
je 0x4474f3
lea ecx, [ebp - 0x22c]
call fcn.0044869a
test al, al
jmp 0x44751d
Function at 0x4475c6
Capabilities:
Copy file
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10b8
call fcn.004310a0
push ebx
push esi
mov esi, edx
xor ebx, ebx
lea edx, [ebp - 0x640]
mov byte [ebp - 1], bl
call fcn.00405453
lea edx, [ebp - 0x850]
mov ecx, esi
call fcn.00405453
lea edx, [ebp - 0x850]
lea ecx, [ebp - 0x640]
call fcn.0044862d
lea ecx, [ebp - 0x640]
mov byte [ebp - 3], al
call fcn.0044869a
mov esi, 0x4b47b4
test al, al
je 0x44762b
lea eax, [ebp - 0x640]
push esi
push eax
call fcn.00422374
pop ecx
pop ecx
lea ecx, [ebp - 0x850]
call fcn.0044869a
test al, al
je 0x447649
lea eax, [ebp - 0x850]
push esi
push eax
call fcn.00422374
pop ecx
pop ecx
lea eax, [ebp - 0x10b8]
push eax
lea eax, [ebp - 0xca8]
push eax
lea eax, [ebp - 0xeb0]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x640]
push eax
call fcn.004233d0
add esp, 0x14
lea eax, [ebp - 0xaa0]
push eax
lea eax, [ebp - 0x640]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov al, 1
mov byte [ebp - 2], al
cmp esi, 0xffffffff
je 0x4477e4
cmp al, 1
jne 0x4477e4
test byte [ebp - 0xaa0], 0x10
jne 0x4477b6
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x850]
push eax
lea eax, [ebp - 0x10b8]
push eax
lea edx, [ebp - 0xca8]
lea ecx, [ebp - 0xa74]
call fcn.00447dbb
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004223a3
lea eax, [ebp - 0xeb0]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00422374
lea eax, [ebp - 0xa74]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00422374
add esp, 0x18
lea ecx, [ebp - 0x430]
call fcn.0041ecd8
test al, al
je 0x447749
cmp byte [ebp + 8], bl
je 0x4477d9
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
lea eax, [ebp - 0x430]
push eax
je 0x44776a
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0xc], 1
lea eax, [ebp - 0x430]
jne 0x44779f
cmp byte [ebp - 3], bl
jne 0x44777d
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x4477ae
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4477e7
jmp 0x4477b2
push ebx
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4477d9
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4477ae
push ebx
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4477d9
mov byte [ebp - 1], 1
lea eax, [ebp - 0xaa0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov al, byte [ebp - 2]
jne 0x447695
mov al, bl
mov byte [ebp - 2], al
jmp 0x447695
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x4477f0
mov bl, byte [ebp - 1]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x4477f4
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov edx, ecx
push ebx
push esi
push 0x104
lea ecx, [ebp - 0x20c]
call fcn.00404ce2
lea eax, [ebp - 0x20c]
push eax
call fcn.0042235b
pop ecx
pop ecx
push 0x5c
pop ebx
test eax, eax
je 0x44783a
cmp word [ebp + eax*2 - 0x20e], bx
jne 0x44783a
xor ecx, ecx
mov word [ebp + eax*2 - 0x20e], cx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4478c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x44786e
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x447873
mov al, 1
jmp 0x4478cd
cmp eax, 3
jne 0x4478cb
lea ecx, [ebp - 0x20c]
call fcn.004043e1
mov esi, eax
push ebx
push esi
call fcn.00423bc7
pop ecx
pop ecx
test eax, eax
jne 0x447896
push esi
call fcn.00420bde
pop ecx
jmp 0x4478cb
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
call fcn.004477f4
push esi
mov bl, al
call fcn.00420bde
pop ecx
test bl, bl
je 0x4478c3
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
mov al, bl
jmp 0x4478cd
test al, 0x10
jne 0x44786a
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x4478d1
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x678
push ebx
xor ebx, ebx
push esi
lea edx, [esp + 0x18]
mov byte [esp + 0xf], bl
call fcn.00405453
lea ecx, [esp + 0x18]
call fcn.0044869a
test al, al
je 0x44790c
lea eax, [esp + 0x18]
push 0x4b47b4
push eax
call fcn.00422374
pop ecx
pop ecx
push ebx
push ebx
lea eax, [esp + 0x480]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004233d0
add esp, 0x14
lea eax, [esp + 0x228]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov al, 1
mov byte [esp + 0xe], al
cmp esi, 0xffffffff
je 0x4479bf
cmp al, 1
jne 0x4479bf
test byte [esp + 0x228], 0x10
jne 0x4479a0
mov byte [esp + 0xf], al
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004223a3
lea eax, [esp + 0x480]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00422374
lea eax, [esp + 0x264]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00422374
add esp, 0x18
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x4479c3
lea eax, [esp + 0x228]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov al, byte [esp + 0xe]
jne 0x447948
mov al, bl
mov byte [esp + 0xe], al
jmp 0x447948
mov bl, byte [esp + 0xf]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e472
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xa2c]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x44e5cb
push ebx
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x20c]
push str.___s
push eax
call fcn.00422dab
lea eax, [ebp - 0x20c]
push eax
call fcn.0042235b
mov ebx, eax
add esp, 0x10
cmp word [ebp + ebx*2 - 0x20e], 0x5c
jne 0x44e4e6
cmp word [ebp + ebx*2 - 0x210], 0x3a
je 0x44e4e6
xor eax, eax
mov word [ebp + ebx*2 - 0x20e], ax
push edi
xor edi, edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x44e500
cmp byte [ebp + 0x10], al
je 0x44e5bc
push edi
push 0x2200000
push 3
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x44e5b3
push 0x618
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.004223d0
lea eax, [ebx + ebx]
mov word [ebp - 0x81a], ax
mov eax, dword [ebp - 0x81a]
add eax, 2
mov word [ebp - 0x818], ax
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x814]
push eax
mov dword [ebp - 0x824], 0xa0000003
call fcn.00423670
mov eax, dword [ebp - 0x81a]
add esp, 0x18
add eax, 0xc
xor edx, edx
push edx
mov word [ebp - 0x820], ax
lea ecx, [ebp + 8]
push ecx
push edx
movzx eax, ax
push edx
add eax, 8
push eax
lea eax, [ebp - 0x824]
push eax
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
test eax, eax
jne 0x44e5c0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
jmp 0x44e5c9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret 0xc
Function at 0x40100b
Capabilities:
Get number of processors
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210c
push ebx
push esi
push edi
push eax
push ebx
add esp, 4
and eax, 0x24c1
jmp 0x401027
call 0x401037
add byte [0x38503c4a], dh
xor eax, 0x39324b3c
add esp, 4
add eax, 0x171de
pop eax
push ebx
and ebx, 0x141fa
pop ebx
mov eax, 0x4d
mov word [ebp - 0x2048], ax
mov ecx, 0x42
mov word [ebp - 0x2046], cx
mov edx, 0x53
mov word [ebp - 0x2044], dx
mov eax, 0x65
add byte [eax], al

Function at 0x401037
Capabilities:
Get number of processors
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210c
push ebx
push esi
push edi
push eax
push ebx
add esp, 4
and eax, 0x24c1
jmp 0x401027
call 0x401037
add byte [0x38503c4a], dh
xor eax, 0x39324b3c
add esp, 4
add eax, 0x171de
pop eax
push ebx
and ebx, 0x141fa
pop ebx
mov eax, 0x4d
mov word [ebp - 0x2048], ax
mov ecx, 0x42
mov word [ebp - 0x2046], cx
mov edx, 0x53
mov word [ebp - 0x2044], dx
mov eax, 0x65
add byte [eax], al
Function at 0x406ecc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [ebp - 0x77c]
add eax, 1
mov dword [ebp - 0x77c], eax
add esp, 4
call 0x406edd
add byte [esi + 0x47], al
dec edx
dec edi
inc ebx
xor al, 0x44
inc ebx
add esp, 4
pop edi
mov ecx, dword [ebp - 0x780]
add ecx, dword [ebp - 0x1a0]
movsx edx, byte [ecx]
or edx, 0x20
mov eax, dword [ebp - 0x1a0]
movsx ecx, byte [ebp + eax - 0x8a4]
or ecx, 0x20
cmp edx, ecx
jge 0x406f14
mov dword [ebp - 0xcd4], 0xffffffff
jmp 0x406f1e
mov dword [ebp - 0xcd4], 1
cmp dword [ebp - 0xcd4], 0
jne 0x406f35
mov edx, dword [ebp - 0x1a00]
mov dword [ebp - 0x3f8], edx
jmp 0x406f46
jmp 0x406d1f

Function at 0x406edd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [ebp - 0x77c]
add eax, 1
mov dword [ebp - 0x77c], eax
add esp, 4
call 0x406edd
add byte [esi + 0x47], al
dec edx
dec edi
inc ebx
xor al, 0x44
inc ebx
add esp, 4
pop edi
mov ecx, dword [ebp - 0x780]
add ecx, dword [ebp - 0x1a0]
movsx edx, byte [ecx]
or edx, 0x20
mov eax, dword [ebp - 0x1a0]
movsx ecx, byte [ebp + eax - 0x8a4]
or ecx, 0x20
cmp edx, ecx
jge 0x406f14
mov dword [ebp - 0xcd4], 0xffffffff
jmp 0x406f1e
mov dword [ebp - 0xcd4], 1
cmp dword [ebp - 0xcd4], 0
jne 0x406f35
mov edx, dword [ebp - 0x1a00]
mov dword [ebp - 0x3f8], edx
jmp 0x406f46
jmp 0x406d1f