joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c2c
Capabilities:
Capture webcam image

Disassembly:
push esi
push edi
mov esi, section..ndata
mov edi, 0x423748
push esi
push edi
call fcn.00406183
push dword [esp + 0x10]
push esi
call fcn.004060ca
push dword [esp + 0xc]
jmp loc.0044d8b1

Function at 0x4057b1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083b0
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], 0x4083a0
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405802
xor eax, eax
jmp 0x405829
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405829
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x4057fe
call esi
pop esi
leave
ret 4

Function at 0x405863
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x426750], 0x44
push eax
xor eax, eax
push 0x426750
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 0x4058a2
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405d33
mov edi, eax
cmp edi, 0xffffffff
je 0x40596d
jmp loc.0044d770
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405eb2
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, 0x426de8
push 0x40a5c4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405f00
push 1
push 0
push esi
call fcn.00405d58
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x40601f
cmp eax, edi
jg 0x40601f
mov esi, 0x4275e8
push edi
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x40601f
cmp eax, edi
jg 0x40601f
push esi
push ebx
push str._ls_ls_r_n
push 0x4269e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42a270]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004061a5
push 4
push 0xc0000000
push esi
call fcn.00405d58
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x40601f
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406018
push edi
push esi
push ebp
call fcn.00405ddb
test eax, eax
je 0x406018
push str._Rename__r_n
push esi
call fcn.00405cbd
test eax, eax
jne 0x405fb6
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405feb
add eax, 0xa
push 0x40a5a8
push eax
call fcn.00405cbd
mov ebp, eax
test ebp, ebp
je 0x405fe7
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405fd8
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405fd2
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405fed
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4269e8
push eax
call fcn.00405d13
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405e0a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406024
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406047
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405eb2
pop ecx
pop ecx
jmp loc.0044d838
Function at 0x406050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4060c4
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4060b1
cmp dword [ebp + 0x14], 1
je 0x4060b4
cmp dword [ebp + 0x14], 2
je 0x4060b4
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
jmp 0x44c190
Function at 0x4064ed
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp loc.0044d6a8

Function at 0x40660a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406641
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40661b
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406616
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406672
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406654
pop edi
not eax
pop esi
ret 0xc
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40137f
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x401de1
Capabilities:
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431f7a
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x44a078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
xor esi, esi
cmp dword [eax - 0xc], esi
je 0x401f74
call fcn.00404409
push eax
lea ecx, [ebp - 0x10]
call fcn.0040385f
push 0x43ef24
lea ecx, [ebp - 0x14]
call fcn.00404200
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.00406d3a
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004045ed
push str..bat
lea ecx, [ebp - 0x10]
call fcn.004036da
mov edi, dword [ebp - 0x10]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x401e83
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401f6c
call fcn.00404409
push eax
lea ecx, [ebp - 0x14]
call fcn.0040385f
push edi
lea ecx, [ebp - 0x10]
call fcn.004033b4
push dword [ebp - 0x10]
cmp byte [ebx + 9], 0
mov ecx, 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 - 0x10]
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
push dword [ebx]
cmove eax, ecx
push dword [ebx]
push dword [ebx]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00403a50
add esp, 0x1c
lea eax, [ebp - 0x1c]
push esi
mov esi, dword [ebp - 0x14]
push eax
push dword [esi - 0xc]
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004045ed
lea ecx, [esi - 0x10]
call fcn.004045ed
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x401efa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebx + 4]
lea ecx, [ebp - 0x18]
call fcn.004069fe
cmp byte [ebx + 8], 0
jne 0x401f23
mov esi, dword [ebp - 0x18]
push 0
push esi
push 0
push edi
push 0x43f394
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x401f64
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.0041fe40
xor eax, eax
mov dword [ebp - 0x58], esi
mov esi, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x54], 0x500
mov dword [ebp - 0x4c], str.runas
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x40], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [esi - 0x10]
call fcn.004045ed
lea ecx, [edi - 0x10]
call fcn.004045ed
mov ecx, dword [ebx + 4]
sub ecx, 0x10
call fcn.004045ed
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.004045ed
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40224e
Capabilities:
Set current directory

Disassembly:
push 0x324
mov eax, 0x43200d
call fcn.0041e986
mov ebx, ecx
lea eax, [ebp - 0x264]
push eax
call fcn.00402633
lea esi, [ebx + 0x174]
xor edi, edi
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00403643
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.004045ed
mov edx, esi
lea ecx, [ebp - 0x264]
call fcn.004069fe
lea esi, [ebx + 0x17c]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00403643
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.004045ed
push esi
lea esi, [ebx + 0x178]
mov ecx, esi
call fcn.00403643
mov ecx, esi
call fcn.004067be
lea eax, [ebp - 0x264]
push eax
call fcn.0040269f
mov dword [ebp - 4], 2
mov ecx, esi
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00403d7b
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.004045ed
push str..ini
mov ecx, esi
call fcn.004036da
lea eax, [ebp - 0x260]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], edi
mov dword [ebp - 4], 3
cmp eax, 0xffffffff
je 0x402491
mov dword [ebp - 0x278], 0x441650
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x270], edi
mov dword [ebp - 0x26c], edi
mov byte [ebp - 4], 4
push dword [ebp - 0x240]
push ecx
push esi
lea ecx, [ebp - 0x278]
call fcn.0040b266
push ecx
lea ecx, [ebp - 0x330]
call fcn.00407ba5
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x330]
call fcn.004081cc
lea eax, [ebp - 0x278]
mov ecx, ebx
push eax
call fcn.00402d02
lea eax, [ebp - 0x278]
push eax
call fcn.00402f60
lea ecx, [ebp - 0x330]
call fcn.00407f75
test al, al
mov byte [ebx + 5], al
lea eax, [ebx + 0x174]
push eax
lea ecx, [ebx + 8]
sete byte [0x44a8c0]
call fcn.004093e2
lea ecx, [ebp - 0x330]
call fcn.0040811a
push eax
lea ecx, [ebx + 0x74]
call fcn.00403643
push ecx
push edi
lea esi, [ebx + 0x108]
mov byte [ebx + 0xc8], 1
mov dword [ebx + 0x98], 3
mov ecx, esi
mov dword [ebx + 0x4c], edi
or dword [ebx + 0x4c], 3
push 0xdc
call fcn.0040aa7b
lea edi, [ebx + 0x174]
mov ecx, esi
push edi
call fcn.00403643
push 1
mov ecx, esi
call fcn.0040aa0b
mov edx, edi
lea ecx, [ebp - 0x27c]
call fcn.004069fe
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 0x27c]
lea ecx, [ecx - 0x10]
call fcn.004045ed
call fcn.00403200
test eax, eax
je 0x40245f
xor edi, edi
inc edi
jmp 0x402471
lea eax, [ebp - 0x330]
mov ecx, ebx
push eax
call fcn.004028b9
mov edi, eax
mov dword [ebx], edi
lea ecx, [ebp - 0x330]
call fcn.004024b3
lea ecx, [ebp - 0x274]
call fcn.00403bb7
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x402498
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
call fcn.0041e941
ret
Function at 0x4030d7
Capabilities:
Delete file

Disassembly:
push 0xc
mov eax, 0x4321c4
call fcn.0041e952
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x16c], esi
jle 0x403140
lea ebx, [edi + 0x168]
push esi
mov ecx, ebx
call fcn.0040325c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
mov ecx, ebx
call fcn.0040325c
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.004069fe
and dword [ebp - 4], 0
lea edx, [edi + 0x180]
mov ecx, eax
call fcn.00406e01
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004045ed
inc esi
cmp esi, dword [edi + 0x16c]
jl 0x4030f5
xor ebx, ebx
cmp dword [edi + 0x160], ebx
jle 0x4031f8
lea esi, [edi + 0x15c]
push ebx
mov ecx, esi
call fcn.0040325c
push ebx
mov ecx, esi
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
call fcn.0040325c
mov eax, dword [eax]
add eax, 4
mov dword [ebp - 0x10], eax
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x403182
and dword [ebp - 0x10], eax
jmp 0x403197
push dword [edi + 0x17c]
mov ecx, dword [ebp - 0x10]
call fcn.00403621
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.00407408
cmp eax, dword [ebp - 0x10]
jle 0x4031c6
push ebx
mov ecx, esi
call fcn.0040325c
mov esi, dword [eax]
mov ecx, esi
call fcn.0040368e
lea ecx, [esi + 4]
call fcn.00404605
lea esi, [edi + 0x15c]
push ebx
mov ecx, esi
call fcn.0040325c
mov esi, dword [eax]
test esi, esi
je 0x4031e5
mov ecx, esi
call fcn.00401de1
push 0xc
push esi
call fcn.0041dfc0
pop ecx
pop ecx
inc ebx
lea esi, [edi + 0x15c]
cmp ebx, dword [edi + 0x160]
jl 0x403154
xor eax, eax
call fcn.0041e92c
ret

Function at 0x403200
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebx
push esi
push str.Global_MSIExecute
xor ebx, ebx
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
test esi, esi
jne 0x403229
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
setne bl
jmp 0x403239
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x403239
xor ebx, ebx
inc ebx
test esi, esi
je 0x403244
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x403e6e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403ec7
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403eb8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x403eb4
cmp esi, ecx
jae 0x403eb8
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x403ea2
cmp esi, ecx
jb 0x403ebc
xor eax, eax
jmp 0x403ec6
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4059e6
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x44a078]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
mov ebp, dword [esp + 0x228]
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [edi + 4]
or eax, 0x2001f
push eax
push ebp
push dword [edi]
call fcn.00405988
mov esi, eax
test esi, esi
jne 0x405abf
lea eax, [esp + 0x20]
mov dword [esp + 0x10], 0x100
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ebx
push dword [esp + 0x30]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
call ebx
test eax, eax
jne 0x405a9a
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
call fcn.004059e6
mov esi, eax
test esi, esi
jne 0x405abf
lea eax, [esp + 0x20]
mov dword [esp + 0x10], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x30]
call ebx
test eax, eax
je 0x405a5f
jmp 0x405a9c
xor esi, esi
cmp dword [esp + 0x14], 0
je 0x405ab1
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], esi
push ebp
mov ecx, edi
mov dword [esp + 0x1c], esi
call fcn.00405b8a
mov esi, eax
lea ecx, [esp + 0x14]
call fcn.00405b1c
mov ecx, dword [esp + 0x228]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041df7e
add esp, 0x21c
ret 4
Function at 0x4067e3
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x44a078]
xor eax, ebp
mov dword [ebp + 0x190], eax
and dword [ebp - 0x80], 0
lea eax, [ebp - 0x78]
push esi
push eax
mov esi, ecx
push 0x104
mov dword [ebp - 0x7c], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x406840
call fcn.00404409
push eax
mov ecx, esi
call fcn.0040385f
mov ecx, dword [ebp + 0x190]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041df7e
lea esp, [ebp + 0x194]
pop ebp
ret
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x7a], cx
je 0x406850
mov word [ebp + eax*2 - 0x78], cx
inc eax
add eax, eax
cmp eax, 0x208
jae 0x40686d
xor ecx, ecx
mov word [ebp + eax - 0x78], cx
lea eax, [ebp - 0x78]
push eax
mov ecx, esi
call fcn.00404200
jmp 0x406828
call fcn.0041e5ae
int3

Function at 0x406c34
Capabilities:
Delete directory

Disassembly:
push 4
mov eax, 0x43243b
call fcn.0041e952
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0x104
jl 0x406c94
call fcn.004070ac
test al, al
jne 0x406c94
push 0x43f274
lea ecx, [ebp - 0x10]
call fcn.00404200
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.00403d7b
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 0x10]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.004045ed
jmp 0x406ca5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
dec eax
neg eax
sbb al, al
inc al
mov bl, al
test bl, bl
jne 0x406caf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
call fcn.0041e92c
ret

Function at 0x406cb7
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x43243b
call fcn.0041e952
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0x104
jl 0x406d17
call fcn.004070ac
test al, al
jne 0x406d17
push 0x43f274
lea ecx, [ebp - 0x10]
call fcn.00404200
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.00403d7b
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x10]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.004045ed
jmp 0x406d28
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
dec eax
neg eax
sbb al, al
inc al
mov bl, al
test bl, bl
jne 0x406d32
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
call fcn.0041e92c
ret
Function at 0x4072a3
Capabilities:
Create directory

Disassembly:
push 0x20
mov eax, 0x43253d
call fcn.0041e952
mov bl, dl
mov esi, ecx
call fcn.00406faf
test al, al
je 0x4072c3
xor eax, eax
jmp 0x4073aa
mov ecx, esi
call fcn.00407069
xor edi, edi
mov byte [ebp - 0xd], al
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov edx, esi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x2c]
call fcn.00407103
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040325c
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00404554
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x20], eax
test bl, bl
je 0x407311
inc eax
mov dword [ebp - 0x20], eax
mov ebx, edi
xor edi, edi
inc edi
mov dword [ebp - 0x1c], edi
cmp eax, edi
jle 0x40738f
lea ecx, [esi - 0x10]
call fcn.00404554
add eax, 0x10
mov dword [ebp - 0x18], eax
push 0x440b30
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004036da
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040325c
lea ecx, [ebp - 0x18]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00403d7b
mov edi, dword [ebp - 0x18]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4073b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
je 0x4073c2
cmp byte [ebp - 0xd], 0
jne 0x4073c2
cmp dword [ebp - 0x1c], 1
jle 0x407387
lea ecx, [ebp - 0x14]
call fcn.00406c34
lea ecx, [edi - 0x10]
call fcn.004045ed
lea ecx, [esi - 0x10]
call fcn.004045ed
lea ecx, [ebp - 0x2c]
call fcn.00403283
xor eax, eax
cmp ebx, 0xb7
cmovne eax, ebx
call fcn.0041e92c
ret
cmp dword [ebp + 8], 0
je 0x4073c2
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.004032bc
push 0x440b30
lea ecx, [ebp - 0x14]
call fcn.004036da
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.0040325c
lea ecx, [ebp - 0x14]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00403d7b
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 1
call fcn.004045ed
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
inc edi
mov dword [ebp - 0x1c], edi
cmp edi, dword [ebp - 0x20]
jge 0x40738f
jmp 0x40731d

Function at 0x407408
Capabilities:
Enumerate files on windows

Disassembly:
push 0x25c
mov eax, 0x432563
call fcn.0041e986
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.00404554
add eax, 0x10
mov dword [ebp - 0x268], eax
xor edi, edi
lea ecx, [ebp - 0x268]
push 0x440b28
mov dword [ebp - 4], edi
call fcn.004036da
mov esi, dword [ebp - 0x268]
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407477
lea eax, [ebp - 0x264]
inc edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40745a
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
add edi, 0xfffffffe
lea ecx, [esi - 0x10]
call fcn.004045ed
mov eax, edi
call fcn.0041e941
ret