joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4093f0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450100
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov ecx, dword [ebp + 8]
push ebx
push esi
call fcn.0040d870
mov edx, dword [section..data]
mov ebx, eax
mov ecx, section..data
mov dword [ebp - 0x10], ebx
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push str.BFAppInstall.exe
push ebx
lea eax, [ebp + 8]
push str._s_s
push eax
mov dword [ebp - 4], 0
call fcn.0040a530
mov esi, dword [ebp + 8]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
je 0x409518
push edi
mov edi, dword [ebp + 0xc]
cmp byte [edi + 4], 0
je 0x409517
mov byte [edi + 5], 1
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 1
push dword [edi + 0xc]
lea eax, [ebp + 0xc]
push dword [ebp - 0x10]
push str._ShellRun__s_s_
push eax
call fcn.0040a530
push 0x38
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.0043da70
mov edi, dword [ebp + 0xc]
add esp, 0x1c
cmp dword [0x467194], 6
mov ecx, str.open
mov eax, str.runas
cmovb eax, ecx
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x48], 0x40
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x30], 5
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4094fa
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409517
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x409536
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x409720
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450120
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x674
push ebx
push esi
push edi
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x67c], ax
lea eax, [ebp - 0x67a]
push eax
mov ebx, ecx
call fcn.0043da70
add esp, 0xc
lea eax, [ebp - 0x67c]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x67c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4582a4
lea eax, [ebp - 0x67c]
push eax
call esi
push 0x4582a8
lea eax, [ebp - 0x67c]
push eax
call esi
push 0x24c
lea eax, [ebp - 0x268]
push 0
push eax
mov dword [ebp - 0x26c], 0
call fcn.0043da70
add esp, 0xc
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x67c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4098f4
nop
test byte [ebp - 0x26c], 0x10
jne 0x4098d7
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, 0xa
jbe 0x40984d
push 0xa
push str.JiaMarket_
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x40984d
push section..data
lea eax, [esi - 0x10]
push eax
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x18]
call fcn.004016c0
push ecx
lea eax, [ebp - 0x240]
push eax
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x18]
push esi
push 0x4582d0
push 7
jmp 0x4098b3
mov eax, dword [section..data]
mov ecx, section..data
mov dword [ebp - 0x14], 0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x240]
push eax
mov dword [ebp - 4], 1
call fcn.00409910
mov esi, dword [ebp + 8]
test al, al
je 0x4098ba
cmp dword [esi - 0xc], 0
jne 0x4098a5
push 7
push str.0.0.0.0
lea ecx, [ebp + 8]
call fcn.00401ea0
mov esi, dword [ebp + 8]
push ecx
lea eax, [ebp - 0x240]
push eax
push esi
push 0
push dword [ebp - 0x14]
mov ecx, ebx
call fcn.00409550
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
mov dword [ebp - 4], ecx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4098d7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x26c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4097e0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a690
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes
Execute shell command and capture output
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
xorps xmm0, xmm0
lea eax, [ebp - 0x18]
movq qword [ebp - 0x20], xmm0
push eax
mov esi, ecx
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x1c], 1
call edi
test eax, eax
je 0x40a7e1
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call edi
test eax, eax
je 0x40a7e1
push 0x44
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.0043da70
xor eax, eax
mov word [ebp - 0x4c], ax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 8]
push 0x103
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x183]
push 0
push eax
mov dword [ebp - 0x50], 0x101
mov byte [ebp - 0x184], 0
call fcn.0043da70
add esp, 0x18
lea eax, [ebp - 0x184]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.cmd.exe
lea eax, [ebp - 0x184]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], 0
call fcn.0040a870
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x184]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, dword [ebp - 0xc]
test eax, eax
setne bl
test edi, edi
je 0x40a7b1
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.Wow64RevertWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a7b1
push edi
call eax
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x10]
call edi
test bl, bl
je 0x40a7e1
push dword [ebp - 0x30]
call edi
mov eax, dword [ebp - 0x2c]
mov dword [esi], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xc], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a7f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
test edi, edi
je 0x40a85c
mov esi, edi
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40a805
sub esi, edx
je 0x40a85c
push 0
lea eax, [ebp + 8]
push eax
push esi
push edi
push dword [ecx + 0xc]
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [esi + edi - 1], 0xa
je 0x40a84f
push 0
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push 1
push 0x457f58
push dword [eax + 0xc]
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40b0f0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x450648
push eax
mov dword fs:[0], esp
sub esp, 0x208
push ebx
push esi
mov esi, dword [ebp + 8]
mov bl, cl
test esi, esi
je 0x40b1e8
cmp word [esi], 0
je 0x40b1e8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b1e8
push 1
push 0x25
lea eax, [ebp - 0x214]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.regsvr32.exe
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push esi
push 0x4584b0
lea eax, [ebp + 8]
push str.__s__s_
push eax
mov dword [ebp - 4], 0
call fcn.0040a530
add esp, 0x10
test bl, bl
jne 0x40b19d
push 0x4584c8
lea ecx, [ebp + 8]
call fcn.0040b8c0
mov esi, dword [ebp + 8]
push ecx
push 0xffffffffffffffff
mov edx, esi
lea ecx, [ebp - 0x214]
call fcn.00412c40
test eax, eax
setne bl
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b1d6
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40b2d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x450308
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 8]
xor cl, cl
call fcn.0040b0f0
add esp, 4
mov bl, 1
push 0
push str.BFEngineMsg
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x40b328
push 0
push 0
push 0x7ec
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
neg eax
sbb al, al
and bl, al
mov ecx, dword [esi + 8]
push 0
call fcn.0040e560
add esp, 4
test bl, bl
je 0x40b3d2
push edi
call fcn.0040b6f0
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call fcn.00412d20
test eax, eax
lea eax, [ebp - 0x10]
je 0x40b370
push str.bfDesktop64.dll
jmp 0x40b375
push str.bfDesktop.dll
push dword [esi]
push str._s_s
push eax
call fcn.0040a530
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b3a0
sub esp, 0xc
mov ecx, esi
call fcn.0040afe0
add esp, 0xc
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b3f7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0xc], 0
jne 0x40b3f7
push 0x1030
push dword [esi + 4]
push 0x458538
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x40b3f7
call fcn.0040b7b0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b410
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450308
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
lea edi, [esi + 8]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, edx
jge 0x40b453
push 0x104
mov ecx, edi
call fcn.00401e30
mov edx, dword [edi]
mov ecx, dword [esi]
push ebx
call fcn.0040b520
mov ecx, dword [edi]
mov bl, al
test ecx, ecx
je 0x40b47b
push dword [ecx - 8]
push ecx
call fcn.0043cf47
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40b50d
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x40b50d
mov dword [eax - 0xc], ecx
mov eax, dword [edi]
xor edx, edx
test bl, bl
mov word [eax + ecx*2], dx
pop ebx
jne 0x40b4fd
mov ecx, edi
call fcn.00401d00
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.0040b610
mov esi, dword [ebp - 0x10]
test al, al
je 0x40b4dc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b4dc
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.00401270
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b4fd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401fd0
int3

Function at 0x40b520
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450308
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x40b5f5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x40b5f5
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call fcn.00412d20
test eax, eax
lea eax, [ebp - 0x10]
je 0x40b583
push str.BFShellIcon64.dll
jmp 0x40b588
push str.BFShellIcon.dll
push esi
push str._s_s
push eax
call fcn.0040a530
mov esi, dword [ebp - 0x10]
add esp, 0x10
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b5bf
cmp dword [esi - 0xc], 0x104
jge 0x40b5bf
test edi, edi
je 0x40b5bb
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov bl, 1
jmp 0x40b5c1
xor bl, bl
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b5e2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
xor al, al
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40b610
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00412d20
mov esi, 0x20019
call fcn.00412d20
test eax, eax
mov ecx, 0x20119
lea eax, [ebp - 4]
push eax
cmovne esi, ecx
push esi
push 0
push str.CLSID16076CC1_DE6A_4EB5_9356_201305201800InprocServer32
push SysReAllocStringLen
xor bl, bl
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b6d3
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
mov esi, 1
mov dword [ebp - 8], 0x208
mov ecx, esi
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x40b686
push 0x104
mov ecx, edi
call fcn.00401e30
lea eax, [ebp - 8]
push eax
push dword [edi]
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, bl
test eax, eax
mov eax, dword [edi]
cmove ebx, esi
test eax, eax
jne 0x40b6af
xor ecx, ecx
jmp 0x40b6c1
push dword [eax - 8]
push eax
call fcn.0043cf47
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40b6dc
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x40b6dc
mov dword [eax - 0xc], ecx
mov eax, dword [edi]
xor edx, edx
mov word [eax + ecx*2], dx
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401fd0
int3

Function at 0x40b7b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0040a690
push str.taskkill__f__im_explorer.exe
lea ecx, [ebp - 0x28]
call fcn.0040a7f0
cmp dword [0x467194], 6
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jb 0x40b869
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
push 8
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40b869
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push 0x14
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40b856
cmp dword [ebp - 0x14], ebx
setne bl
push dword [ebp - 0x10]
call esi
test ebx, ebx
je 0x40b869
sub esp, 0x10
call fcn.0040a8e0
jmp 0x40b876
push str.start_explorer.exe
lea ecx, [ebp - 0x28]
call fcn.0040a7f0
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40b892
push eax
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40b89c
push eax
call esi
cmp dword [ebp - 0x28], 0
je 0x40b8ad
push 0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b970
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa7c
push ebx
push esi
push edi
xor eax, eax
push 0x40e
push eax
mov word [esp + 0x680], ax
lea eax, [esp + 0x682]
push eax
mov dword [esp + 0x1c], edx
mov esi, ecx
call fcn.0043da70
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0xc
lea eax, [esp + 0x678]
push esi
push eax
call ebx
mov edi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [esp + 0x678]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esp + 0x678]
push eax
call esi
mov dword [esp + 0x14], eax
xor eax, eax
push 0x40e
push eax
mov word [esp + 0x270], ax
lea eax, [esp + 0x272]
push eax
call fcn.0043da70
add esp, 0xc
lea eax, [esp + 0x268]
push dword [esp + 0x10]
push eax
call ebx
lea eax, [esp + 0x268]
push eax
call edi
lea eax, [esp + 0x268]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [esp + 0x10], eax
push 0x458c1c
lea eax, [esp + 0x67c]
push eax
call esi
push 0x24c
lea eax, [esp + 0x20]
push 0
push eax
mov dword [esp + 0x24], 0
call fcn.0043da70
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x67c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40bb2b
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x40ba80
cmp word [esp + 0x44], 0x2e
je 0x40bb10
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov word [esp + eax*2 + 0x678], cx
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x67c]
push eax
call esi
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [esp + eax*2 + 0x268], cx
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x26c]
push eax
call esi
test byte [esp + 0x18], 0x10
lea eax, [esp + 0x268]
je 0x40baff
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40baea
push eax
lea eax, [esp + 0x26c]
push eax
call ebx
lea edx, [esp + 0x268]
lea ecx, [esp + 0x678]
call fcn.0040b970
jmp 0x40bb10
push 0
push eax
lea eax, [esp + 0x680]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40ba80
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bb90
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x86c
push ebx
push esi
push edi
mov esi, ecx
push esi
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x40bbc2
push ecx
mov edx, edi
mov ecx, esi
call fcn.0040bde0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x1a]
push eax
call fcn.0043da70
add esp, 0xc
lea eax, [esp + 0x10]
push 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esp + eax*2 + 0xe], 0x5c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x40bc12
push 0x458470
lea eax, [esp + 0x14]
push eax
call ebx
mov esi, dword [ebp + 8]
test esi, esi
jne 0x40bc28
push ecx
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.0040bde0
add esp, 4
xor eax, eax
push 0x206
push eax
mov word [esp + 0x678], ax
lea eax, [esp + 0x67a]
push eax
call fcn.0043da70
add esp, 0xc
lea eax, [esp + 0x10]
push 0x104
push eax
lea eax, [esp + 0x678]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x458c1c
lea eax, [esp + 0x674]
push eax
call ebx
push 0x24c
lea eax, [esp + 0x220]
push 0
push eax
mov dword [esp + 0x224], 0
call fcn.0043da70
add esp, 0xc
lea eax, [esp + 0x218]
push eax
lea eax, [esp + 0x674]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40bdc2
mov eax, dword [esp + 0x218]
test eax, 0x4100
jne 0x40bda4
test al, 4
jne 0x40bda4
push 0x4586cc
lea eax, [esp + 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40bda4
push 0x4586d0
lea eax, [esp + 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40bda4
xor eax, eax
push 0x206
push eax
mov word [esp + 0x470], ax
lea eax, [esp + 0x472]
push eax
call fcn.0043da70
add esp, 0xc
lea eax, [esp + 0x10]
push 0x104
push eax
lea eax, [esp + 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [esp + 0x244]
push eax
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
test byte [esp + 0x218], 0x10
je 0x40bd6b
push esi
mov edx, edi
lea ecx, [esp + 0x46c]
call fcn.0040bb90
jmp 0x40bda1
test esi, esi
je 0x40bd92
push 0x80
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40bda4
push ecx
mov edx, edi
lea ecx, [esp + 0x46c]
call fcn.0040bde0
add esp, 4
lea eax, [esp + 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40bcb2
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
je 0x40bdd1
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cea0
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x664
push ebx
push esi
mov esi, ecx
push edi
mov byte [esp + 0xf], dl
test esi, esi
je 0x40cf9f
cmp word [esi], 0
je 0x40cf9f
xor eax, eax
push 0x206
push eax
mov word [esp + 0x268], ax
lea eax, [esp + 0x26a]
push eax
call fcn.0043da70
add esp, 0xc
lea eax, [esp + 0x260]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x458848
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40cf9f
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea esp, [esp]
cmp word [esp + 0x3c], 0x2e
je 0x40cf7a
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
push eax
push esi
lea eax, [esp + 0x470]
push str._s_s
push eax
je 0x40cf67
call edi
add esp, 0x10
mov dl, 1
lea ecx, [esp + 0x468]
call fcn.0040cea0
jmp 0x40cf7a
call edi
push 1
lea ecx, [esp + 0x47c]
call fcn.0040e560
add esp, 0x14
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40cf30
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [esp + 0xf], 0
je 0x40cf9f
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret