joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40be18
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
cmp dword [0x4177f0], 2
push esi
push edi
jne 0x40bf17
lea eax, [ebp - 0x100]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x100]
push eax
call esi
cmp byte [ebp + eax - 0x101], 0x5c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x40be6f
lea eax, [ebp - 0x100]
push 0x4140ec
push eax
call edi
lea eax, [ebp - 0x100]
push str.WININIT.INI
push eax
call edi
lea eax, [ebp - 0x100]
push 1
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x40bed7
push dword [ebp + 8]
lea eax, [ebp - 0x300]
push str.NUL_s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
lea eax, [ebp - 0x300]
push eax
call esi
push eax
lea eax, [ebp - 0x300]
push eax
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x40bf24
lea eax, [ebp - 0x100]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov edi, eax
cmp edi, 0xffffffff
je 0x40bf24
push dword [ebp + 8]
lea eax, [ebp - 0x300]
push str._rename__r_nNUL_s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x300]
push eax
call esi
push eax
lea eax, [ebp - 0x300]
jmp 0x40bec6
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop edi
pop esi
leave
ret

Function at 0x40c47b
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x40c48d
or eax, 0xffffffff
mov dword [0x417820], eax
jmp 0x40c4c6
mov edx, dword [esp + 8]
mov eax, dword [0x417820]
push esi
mov esi, edx
dec edx
test esi, esi
je 0x40c4c0
push edi
inc edx
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
mov edi, dword [0x417828]
shr eax, 8
mov esi, dword [edi + esi*4]
xor eax, esi
inc ecx
dec edx
jne 0x40c4a0
pop edi
mov dword [0x417820], eax
pop esi
not eax
ret

Function at 0x40c4c9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push esi
xor esi, esi
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.0040ce50
push dword [ebp + 0xc]
lea eax, [ebp - 0x254]
mov dword [ebp - 0x54], 0x44
push dword [ebp + 8]
push str.__s___s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x254]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop esi
je 0x40c52f
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
leave
ret
Function at 0x40c531
Capabilities:
Create directory

Disassembly:
push esi
push 0x5c
push dword [esp + 0xc]
call fcn.0040c57a
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x40c578
mov al, byte [esi]
test al, al
je 0x40c578
cmp al, 0x5c
je 0x40c55e
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x40c54b
cmp byte [esi], 0x5c
jne 0x40c545
and byte [esi], 0
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
inc esi
jmp 0x40c545
pop esi
ret

Function at 0x40c72a
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
push ebx
lea eax, [ebp - 0x318]
push dword [0x4177d4]
push str.Icons_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20019
lea eax, [ebp - 0x318]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c88a
push esi
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x214]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.Path
mov edi, 0x104
push dword [ebp - 4]
mov dword [ebp + 8], edi
call esi
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.Arguments
push dword [ebp - 4]
call esi
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.WorkingDir
push dword [ebp - 4]
call esi
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.ShowWindow
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x110]
lea ecx, [ebp - 0x110]
neg al
sbb eax, eax
and eax, ecx
mov esi, eax
lea eax, [ebp - 0x41c]
push eax
call fcn.0040d026
pop ecx
push eax
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x214]
push esi
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
cmp eax, 0x20
pop esi
ja 0x40c88a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
lea ecx, [ebp - 0xc]
push ebx
push ecx
push 0x400
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp - 0xc]
lea eax, [ebp - 0x51c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x214]
push ebx
push eax
lea eax, [ebp - 0x51c]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
leave
ret
Function at 0x40cb94
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ecx
mov eax, dword [0x4177f0]
push ebx
dec eax
push esi
neg eax
sbb eax, eax
push 0x12c
add eax, 0x75fa
movzx eax, ax
push eax
push dword [0x417bd4]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40cc68
push esi
push dword [0x417bd4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov dword [esp + 0xc], eax
push dword [0x417bd4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40cc68
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x40cc60
mov esi, dword [esp + 0x14]
push edi
push 0x100
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x5c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x40cc24
push 0x4140ec
push esi
call edi
cmp dword [0x4177f0], 0
jne 0x40cc34
push str._MSSETUP.EXE
jmp 0x40cc39
push str._MSRSTRT.EXE
push esi
call edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll__lcreat]
mov esi, eax
pop edi
cmp esi, 0xffffffff
je 0x40cc60
push dword [esp + 0xc]
push ebp
push esi
call dword [sym.imp.KERNEL32.dll__lwrite]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
pop esi
pop ebx
pop ecx
ret
Function at 0x4049b0
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x450700], 2
push esi
push edi
mov edi, eax
mov esi, ecx
jl 0x4049c4
call fcn.0040383d
mov ecx, esi
call fcn.0040498d
xor eax, eax
mov edx, dword [eax + 0x42b340]
mov ecx, dword [esi + 0xf4]
mov dword [eax + ecx], edx
add eax, 4
cmp eax, 0x20
jl 0x4049cd
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov eax, dword [esi + 0xf4]
mov ecx, dword [esp + 0xc]
xor dword [eax + 8], ecx
mov esi, dword [esi + 0xf4]
or edi, 0x2000
shl edi, 0x10
xor dword [esi + 0xc], edi
pop edi
pop esi
ret 4
Function at 0x405699
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
jbe 0x4056c6
test cl, 7
je 0x4056c6
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x432720]
dec esi
inc ecx
jmp 0x4056a7
cmp esi, 8
jb 0x405769
mov edx, esi
shr edx, 3
mov dword [ebp + 8], edx
push ebx
mov edx, dword [ecx + 4]
xor eax, dword [ecx]
mov ebx, edx
shr ebx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x432b20]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x432720]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x432f20]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x433720]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x433b20]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x433f20]
movzx edx, dl
xor edi, dword [edx*4 + 0x433320]
movzx eax, al
xor edi, dword [eax*4 + 0x434320]
sub esi, 8
add ecx, 8
dec dword [ebp + 8]
mov eax, edi
jne 0x4056d8
pop ebx
jmp 0x405769
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x432720]
dec esi
inc ecx
test esi, esi
ja 0x405755
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x405a2a
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 0x40
pop ebx
cmp esi, ebx
jbe 0x405a74
lea eax, [ebp - 0x1d0]
push eax
call fcn.004106c6
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1d0]
push eax
call fcn.004109c8
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.00410a41
lea eax, [ebp - 0x80]
push 0x20
mov dword [ebp + 8], eax
pop esi
xor ecx, ecx
push edi
test esi, esi
jbe 0x405a94
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
sub edi, eax
lea eax, [ebp + ecx - 0x40]
mov dl, byte [edi + eax]
xor dl, 0x36
inc ecx
mov byte [eax], dl
cmp ecx, esi
jb 0x405a83
cmp esi, ebx
jae 0x405aac
mov ecx, ebx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x40]
push 0x36
push eax
call fcn.0041b170
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
call fcn.004106c6
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.004109c8
push dword [ebp + 0x14]
lea eax, [ebp - 0xf0]
push dword [ebp + 0x10]
push eax
call fcn.004109c8
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.00410a41
lea eax, [ebp - 0x160]
push eax
call fcn.004106c6
xor ecx, ecx
test esi, esi
jbe 0x405b16
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
sub edi, eax
lea eax, [ebp + ecx - 0x40]
mov dl, byte [edi + eax]
xor dl, 0x5c
inc ecx
mov byte [eax], dl
cmp ecx, esi
jb 0x405b05
pop edi
cmp esi, ebx
jae 0x405b2f
mov ecx, ebx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x40]
push 0x5c
push eax
call fcn.0041b170
add esp, 0xc
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.004109c8
push 0x20
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.004109c8
push dword [ebp + 0x18]
lea eax, [ebp - 0x160]
push eax
call fcn.00410a41
pop esi
pop ebx
leave
ret 0x14
Function at 0x405b67
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0xbc
push esi
mov esi, dword [ebp + 0x6c]
push edi
push 0x40
pop eax
cmp esi, eax
jae 0x405b80
mov eax, esi
push eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x44]
push eax
call fcn.0041cbe0
add esp, 0xc
lea eax, [ebp + 0x20]
push eax
mov byte [ebp + esi - 0x44], 0
mov byte [ebp + esi - 0x43], 0
mov byte [ebp + esi - 0x42], 0
mov byte [ebp + esi - 0x41], 1
add esi, 4
push esi
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.00405a2a
push 0x20
pop esi
push esi
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp]
push eax
call fcn.0041cbe0
mov eax, dword [ebp + 0x7c]
add esp, 0xc
dec eax
mov dword [ebp + 0x4c], eax
push 0x10
pop eax
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp + 0x44], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x48], eax
xor edi, edi
mov eax, dword [ebp + edi + 0x4c]
test eax, eax
jbe 0x405c37
mov dword [ebp + 0x6c], eax
lea eax, [ebp - 0x64]
push eax
push esi
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.00405a2a
push esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.0041cbe0
add esp, 0xc
xor eax, eax
mov cl, byte [ebp + eax + 0x20]
xor byte [ebp + eax], cl
inc eax
cmp eax, esi
jb 0x405c25
dec dword [ebp + 0x6c]
jne 0x405bfe
push esi
lea eax, [ebp]
push eax
push dword [ebp + edi + 0x40]
call fcn.0041cbe0
add edi, 4
add esp, 0xc
cmp edi, 0xc
jb 0x405bf3
push 0x44
lea eax, [ebp - 0x44]
push eax
call fcn.0040cfca
push esi
lea eax, [ebp]
push eax
call fcn.0040cfca
push esi
lea eax, [ebp + 0x20]
push eax
call fcn.0040cfca
push esi
lea eax, [ebp - 0x64]
push eax
call fcn.0040cfca
pop edi
pop esi
add ebp, 0x58
leave
ret 0x20
Function at 0x405c82
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
cmp dword [ebp + 0x1c], 0x18
push edi
mov edi, ecx
mov dword [ebp - 8], edi
ja 0x405e3c
and dword [ebp - 4], 0
push ebx
push esi
lea ebx, [edi + 0x4b4]
mov eax, dword [ebp + 0x1c]
lea esi, [ebx + 0x102]
cmp dword [esi + 0x32], eax
jne 0x405cd9
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.0040d0a5
test al, al
je 0x405cd9
push 0x10
push dword [ebp + 0x14]
push esi
call fcn.0041b554
add esp, 0xc
test eax, eax
je 0x405e41
inc dword [ebp - 4]
add ebx, 0x178
cmp dword [ebp - 4], 4
jb 0x405ca7
mov esi, 0x200
push esi
lea eax, [ebp - 0x268]
push eax
push dword [ebp + 0x10]
call fcn.00411f17
mov ecx, dword [ebp + 0x1c]
xor eax, eax
inc eax
shl eax, cl
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x48]
push eax
push 0x10
push dword [ebp + 0x14]
lea eax, [ebp - 0x268]
push eax
call fcn.0041b3b0
pop ecx
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.00405b67
push esi
lea eax, [ebp - 0x268]
push eax
call fcn.0040cfca
mov esi, dword [ebp + 0xc]
lea eax, [edi + 0xa94]
mov ecx, dword [eax]
mov edx, ecx
and edx, 3
imul edx, edx, 0x178
lea ebx, [edx + edi + 0x4b4]
inc ecx
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
push 0x40
pop ecx
mov dword [ebx + 0x134], eax
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push 0x10
push dword [ebp + 0x14]
lea eax, [ebx + 0x102]
push eax
movsw word es:[edi], word [esi]
call fcn.0041cbe0
push 0x20
pop esi
push esi
lea eax, [ebp - 0x48]
push eax
lea edi, [ebx + 0x112]
push edi
call fcn.0041cbe0
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.0041cbe0
push esi
lea eax, [ebp - 0x68]
push eax
add ebx, 0x158
push ebx
call fcn.0041cbe0
add esp, 0x30
push 0
push 1
push esi
push edi
call fcn.0040cf1c
mov edi, dword [ebp - 8]
cmp dword [ebp + 0x20], 0
je 0x405dde
push esi
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0x20]
call fcn.0041cbe0
add esp, 0xc
mov ebx, dword [ebp + 0x24]
test ebx, ebx
je 0x405e10
push 8
push 0
push ebx
call fcn.0041b170
add esp, 0xc
xor ecx, ecx
mov dl, byte [ebp + ecx - 0x28]
mov eax, ecx
and eax, 7
add eax, ebx
xor byte [eax], dl
inc ecx
cmp ecx, esi
jb 0x405df4
push esi
lea eax, [ebp - 0x28]
push eax
call fcn.0040cfca
cmp dword [ebp + 0x18], 0
je 0x405e30
push dword [ebp + 0x18]
lea eax, [ebp - 0x48]
push 0x100
push eax
push dword [ebp + 8]
lea ecx, [edi + 0xa9c]
call fcn.0040ca7a
push esi
lea eax, [ebp - 0x48]
push eax
call fcn.0040cfca
pop esi
pop ebx
pop edi
leave
ret 0x20
push 0
push 0
push 0x20
pop esi
lea eax, [ebx + 0x112]
push esi
push eax
call fcn.0040cf1c
push esi
lea eax, [ebx + 0x112]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0041cbe0
add esp, 0xc
push 0
push 1
push esi
lea eax, [ebx + 0x112]
push eax
call fcn.0040cf1c
push esi
lea eax, [ebx + 0x138]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041cbe0
push esi
add ebx, 0x158
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.0041cbe0
add esp, 0x18
jmp 0x405dc8
Function at 0x405f4c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 2
jne 0x405f98
mov eax, dword [esi + 4]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp + 8]
push eax
push 0x20
push dword [ebp + 0xc]
call fcn.00405a2a
xor edx, edx
mov dword [esi + 4], edx
xor eax, eax
push ebx
movzx ebx, byte [ebp + eax - 0x20]
mov ecx, eax
and ecx, 3
shl ecx, 3
shl ebx, cl
xor edx, ebx
inc eax
cmp eax, 0x20
jb 0x405f7d
mov dword [esi + 4], edx
pop ebx
cmp dword [esi], 3
jne 0x405fc0
lea eax, [ebp - 0x20]
push eax
push 0x20
add esi, 4
push esi
push 0x20
push dword [ebp + 0xc]
call fcn.00405a2a
push 0x20
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.0041cbe0
add esp, 0xc
pop esi
leave
ret 8
Function at 0x408532
Capabilities:
Move file

Disassembly:
mov eax, 0x42a043
call fcn.0041ae34
mov eax, 0x5028
call fcn.0041b440
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x800
push esi
lea eax, [ebp - 0x5034]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x4086ef
cmp eax, esi
jae 0x4086ef
push esi
lea eax, [ebp - 0x4034]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x4086ef
cmp eax, esi
jae 0x4086ef
lea eax, [ebp - 0x5034]
push eax
call fcn.0040a61f
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x4034]
push eax
call fcn.0040a61f
mov edi, eax
cmp word [edi], 0
je 0x4086ef
push edi
push dword [ebp - 0x10]
call fcn.00412190
test eax, eax
je 0x4086ef
push edi
push ebx
call fcn.0040a61f
push eax
call fcn.00412190
test eax, eax
jne 0x4086ef
mov word [ebp - 0x1010], ax
xor edi, edi
cmp word [ebp - 0x1010], 0
jne 0x40864b
push esi
push ebx
lea eax, [ebp - 0x1010]
push eax
call fcn.00410bc5
push edi
push str.rtmp_d
push esi
lea eax, [ebp - 0x1010]
push eax
call fcn.0040a61f
push eax
call fcn.00411ca1
add esp, 0x10
lea eax, [ebp - 0x1010]
push eax
call fcn.004092e9
test al, al
je 0x408632
xor eax, eax
mov word [ebp - 0x1010], ax
add edi, 0x7b
cmp edi, 0x2710
jl 0x4085e5
cmp word [ebp - 0x1010], 0
je 0x4086ef
push esi
push ebx
lea eax, [ebp - 0x3034]
push eax
call fcn.00410bc5
push esi
push dword [ebp - 0x10]
lea eax, [ebp - 0x3034]
push eax
call fcn.0040a789
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x3034]
push eax
call esi
test eax, eax
je 0x4086ef
lea ecx, [ebp - 0x2034]
call fcn.004087ca
push dword [ebp + 8]
and dword [ebp - 4], 0
xor bl, bl
call fcn.004092e9
test al, al
jne 0x4086b2
push 0x12
push dword [ebp + 8]
lea ecx, [ebp - 0x2034]
call fcn.00408967
mov bl, al
lea eax, [ebp - 0x3034]
push eax
lea eax, [ebp - 0x1010]
push eax
call esi
test bl, bl
je 0x4086dc
lea ecx, [ebp - 0x2034]
call fcn.00408a76
lea ecx, [ebp - 0x2034]
call fcn.00408ac4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2034]
call fcn.00408cc1
mov al, 1
jmp 0x4086f1
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4090d1
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0041b440
push ebx
push esi
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call esi
test eax, eax
setne bl
test bl, bl
jne 0x409120
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.0040a420
test al, al
je 0x409120
push dword [ebp + 0xc]
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
setne bl
pop esi
mov al, bl
pop ebx
leave
ret 8

Function at 0x40930d
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0041b440
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0040a0ce
movzx eax, word [eax]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp ax, 0x2e
je 0x409343
cmp ax, 0x20
je 0x409343
push 0
push edi
call esi
test eax, eax
jne 0x409372
push edi
call fcn.004092e9
test al, al
jne 0x409385
push 0x800
lea eax, [ebp - 0x1000]
push eax
push edi
call fcn.0040a420
test al, al
je 0x409385
push 0
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
je 0x409385
cmp byte [ebp + 0xc], 0
je 0x409381
push dword [ebp + 0x10]
push edi
call fcn.004090d1
xor eax, eax
jmp 0x40939d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40939a
cmp eax, 3
je 0x40939a
xor eax, eax
inc eax
jmp 0x40939d
push 2
pop eax
pop edi
pop esi
leave
ret 0xc
Function at 0x4094ba
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1250
call fcn.0041b440
cmp dword [ebp + 8], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
lea eax, [ebp - 0x250]
mov edi, 0x800
push eax
jne 0x409549
push dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x409576
push edi
lea eax, [ebp - 0x1250]
push eax
push dword [ebp + 0xc]
call fcn.0040a420
test al, al
je 0x409522
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x1250]
push eax
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x409576
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40953c
cmp eax, 3
je 0x40953c
cmp eax, 0x12
je 0x40953c
xor eax, eax
inc eax
jmp 0x40953e
xor eax, eax
mov byte [esi + 0x1044], al
jmp 0x409641
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40956c
or dword [ebp + 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [esi + 0x1044], al
cmp dword [ebp + 8], 0xffffffff
je 0x409641
push edi
push dword [ebp + 0xc]
push esi
call fcn.00410bc5
push edi
lea eax, [ebp - 0x224]
push eax
push esi
call fcn.0040a789
push 1
push 0
push 0
push dword [ebp - 0x234]
call fcn.0041b520
mov ecx, dword [ebp - 0x230]
xor edi, edi
add eax, ecx
mov dword [esi + 0x1000], eax
mov eax, dword [ebp - 0x250]
mov dword [esi + 0x1008], eax
mov eax, dword [ebp - 0x24c]
mov dword [esi + 0x1028], eax
mov eax, dword [ebp - 0x248]
mov dword [esi + 0x102c], eax
mov eax, dword [ebp - 0x244]
mov dword [esi + 0x1030], eax
mov eax, dword [ebp - 0x240]
mov dword [esi + 0x1034], eax
mov eax, dword [ebp - 0x23c]
mov dword [esi + 0x1038], eax
mov eax, dword [ebp - 0x238]
mov dword [esi + 0x103c], eax
lea eax, [ebp - 0x23c]
adc edx, edi
push eax
lea ecx, [esi + 0x1010]
mov dword [esi + 0x1004], edx
call fcn.00411644
lea eax, [ebp - 0x24c]
push eax
lea ecx, [esi + 0x1018]
call fcn.00411644
lea eax, [ebp - 0x244]
push eax
lea ecx, [esi + 0x1020]
call fcn.00411644
and dword [esi + 0x1040], 0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40a420
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0041b440
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
jne 0x40a43e
xor al, al
jmp 0x40a5c8
push ebx
push edi
push esi
call fcn.0040a12e
push esi
call fcn.0041b107
pop ecx
push esi
mov ebx, eax
call fcn.0040a339
test al, al
je 0x40a4e8
push esi
call fcn.0040a12e
test al, al
je 0x40a495
add ebx, 4
cmp dword [ebp + 0x10], ebx
jbe 0x40a5c4
mov edi, dword [ebp + 0xc]
push 4
push 0x42b544
push edi
call fcn.0041d1a3
push esi
add edi, 8
push edi
call fcn.0041b14f
add esp, 0x14
jmp 0x40a5c0
cmp word [esi], 0x5c
jne 0x40a5c4
add esi, 2
cmp word [esi], 0x5c
jne 0x40a5c4
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x40a5c4
mov edi, dword [ebp + 0xc]
push 4
push 0x42b544
push edi
call fcn.0041d1a3
lea eax, [edi + 8]
push 0x42b53c
push eax
call fcn.0041b14f
push esi
add edi, 0xe
push edi
call fcn.0041b14f
add esp, 0x1c
jmp 0x40a5c0
lea eax, [ebp - 0x1000]
push eax
mov edi, 0x7ff
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40a5c4
cmp eax, edi
ja 0x40a5c4
movzx eax, word [esi]
push eax
call fcn.0040a109
test al, al
je 0x40a555
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x40a5c4
mov edi, dword [ebp + 0xc]
push 4
push 0x42b544
push edi
call fcn.0041d1a3
push 2
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0041d1a3
push esi
add edi, 0xc
push edi
call fcn.0041b14f
add esp, 0x20
jmp 0x40a5c0
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.0040a15a
lea eax, [ebp - 0x1000]
push eax
call fcn.0041b107
lea eax, [eax + ebx + 4]
pop ecx
cmp dword [ebp + 0x10], eax
jbe 0x40a5c4
mov edi, dword [ebp + 0xc]
push 4
push 0x42b544
push edi
call fcn.0041d1a3
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0041b14f
add esp, 0x14
cmp word [esi], 0x2e
jne 0x40a5b6
movzx eax, word [esi + 2]
push eax
call fcn.0040a109
test al, al
je 0x40a5b6
add esi, 4
push dword [ebp + 0x10]
push esi
push edi
call fcn.00410bf2
mov al, 1
jmp 0x40a5c6
xor al, al
pop edi
pop ebx
pop esi
leave
ret 0xc