joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e1230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10136e48
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10186bd0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x70], eax
call fcn.100e0ff0
push 0
push 0x10146070
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.1001d600
push 0x104
mov dword [ebp - 4], 0
call fcn.100ebc5f
add esp, 4
mov dword [ebp - 0x6c], 0x104
lea edx, [ebp - 0x2c]
mov ecx, esi
mov ebx, eax
call fcn.100e1150
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
add eax, ecx
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x5c]
call fcn.10046f70
mov byte [ebp - 4], 1
lea eax, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
mov edx, dword [edi + 0x14]
cmovae eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], eax
cmp edx, 0x10
jb 0x100e12f9
mov ecx, dword [edi]
jmp 0x100e12fb
mov ecx, edi
mov eax, dword [edi + 0x10]
add eax, ecx
cmp edx, 0x10
jb 0x100e1307
mov edi, dword [edi]
push ecx
push eax
push edi
lea ecx, [ebp - 0x44]
call fcn.10046f70
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x30], 8
lea esi, [ebp - 0x44]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmovae esi, dword [ebp - 0x44]
push eax
push 0x20119
push 0
push dword [ebp - 0x64]
push dword [ebp - 0x68]
call edi
test eax, eax
je 0x100e1355
lea eax, [ebp - 0x60]
push eax
push 0x20219
push 0
push dword [ebp - 0x64]
push dword [ebp - 0x68]
call edi
test eax, eax
jne 0x100e1388
lea eax, [ebp - 0x6c]
push eax
push ebx
push 0
push 0
push esi
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100e1388
cmp byte [ebx], al
je 0x100e137e
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100e1375
sub eax, edx
mov ecx, dword [ebp - 0x70]
push eax
push ebx
call fcn.1001d600
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.100eb37a
mov eax, dword [ebp - 0x30]
add esp, 4
cmp eax, 8
jb 0x100e13af
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.10028060
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
cmp eax, 8
jb 0x100e13d8
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.10028060
xor eax, eax
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4c], 0
cmp eax, 0x10
jb 0x100e1401
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.1001dd10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100eb369
mov esp, ebp
pop ebp
ret
Function at 0x100e72b0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10137438
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10186bd0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x100e72ea
mov byte [esi + 0xc], 1
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea ebx, [esi + 8]
push ebx
push 0x101396ec
push 1
push 0
push 0x101397bc
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
js 0x100e7395
cmp dword [ebx], 0
je 0x100e736f
push str.ROOTCIMV2
lea ecx, [ebp - 0x10]
call fcn.1002bbd0
mov eax, dword [eax]
mov dword [ebp - 4], 0
test eax, eax
je 0x100e7343
mov edi, dword [eax]
jmp 0x100e7345
xor edi, edi
mov ecx, dword [ebx]
lea eax, [esi + 4]
push eax
push 0
push 0
mov edx, dword [ecx]
push 0
push 0
push 0
push 0
push edi
push ecx
call dword [edx + 0xc]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
mov edi, eax
call fcn.1002bc70
test edi, edi
js 0x100e7395
mov eax, dword [esi + 4]
test eax, eax
je 0x100e7391
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov edi, eax
test edi, edi
jns 0x100e73cb
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100e73a2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebx]
test ecx, ecx
je 0x100e73ae
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
cmp byte [esi + 0xc], 0
je 0x100e73ba
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esi + 4], 0
mov dword [ebx], 0
mov byte [esi + 0xc], 0
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 0x100e7940
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0
pop ebp
ret
Function at 0x100ee61b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x10122b40
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101229bf

Function at 0x1012738e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1012704e
Function at 0x417c10
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 8
push esi
push edi
push str.Shell32.lib
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.SetCurrentProcessExplicitAppUserModelID
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call sub.MPR.dll_WNetCloseEnum
mov dword [esp + 8], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea ecx, [esp + 0xc]
mov edi, eax
push ecx
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetACP]
test edi, edi
mov dword [0x4c6cdc], eax
je 0x417c92
test esi, esi
je 0x417c81
mov edx, dword [0x4c5abc]
push 0x4c57ac
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [0x4c6cdc]
pop edi
pop esi
add esp, 8
ret

Function at 0x47e8de
Capabilities:
Encode data using xor

Disassembly:
call 0xd15c79f1
inc ebx
or eax, 0xe54d4528
shr edi, 1
adc dh, bl
sbb eax, dword [eax + 0x1e1f5f90]
pop es
push ds
pop eax
lea edx, [edx - 0x1c0bab0f]
inc eax
insb byte es:[edi], dx
push 0x74af6fe3
sub edx, dword [esi - 0x22]
adc esp, eax
in eax, dx
adc esi, dword [esi + edx + 0x6b14fca3]
cwde
jnp 0x47e988
push edx
insd dword es:[edi], dx
popal
add eax, 0xc4d62362
inc ecx
invalid
add byte [ebx + 0xfd35026], bh
clc
add ecx, dword [esi]
adc ebx, dword [esi - 0x2d]
push cs
mov bl, 0x1f
movsb byte es:[edi], byte [esi]
xor eax, 0x59b3ffd1
xchg ebx, eax
invalid
Function at 0x4ba3a5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c2378
cmp edx, dword [eax]
je 0x4ba3c7
add eax, 8
inc ecx
cmp eax, 0x4c2408
jl 0x4ba3b8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c2378]
jne 0x4ba4f5
mov eax, dword [0x4c6cfc]
cmp eax, 1
je 0x4ba4cf
test eax, eax
jne 0x4ba3f8
cmp dword [0x4c22a4], 1
je 0x4ba4cf
cmp edx, 0xfc
je 0x4ba4f5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba42f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bad90
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb220
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba472
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb220
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bf904
push edi
call fcn.004bd0f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bad90
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bada0
lea eax, [ebp - 0xa0]
push 0x4bf8e4
push eax
call fcn.004bada0
push dword [esi + 0x4c237c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bada0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bd064
add esp, 0x2c
pop edi
jmp 0x4ba4f5
lea eax, [ebp + 8]
lea esi, [esi + 0x4c237c]
push 0
push eax
push dword [esi]
call fcn.004bb220
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x409d30
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
mov dword [esi], 0
mov word [esi + 4], 0
call fcn.00406c20
test al, al
jne 0x409d53
call fcn.00406c30
jmp 0x409d55
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x409d7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, esi
jne 0x409d7f
mov byte [esi + 5], 1
pop esi
ret 4
mov eax, esi
pop esi
ret 4

Function at 0x409de0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423398
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x430038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x409e26
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0040c350
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x409e4f
lea ebx, [esi + 8]
jmp 0x409e51
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.00406c20
test al, al
jne 0x409e64
call fcn.00406c30
jmp 0x409e66
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x409e87
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409e87
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x409eb0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x409ec5
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004212e0
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004210a4
mov esp, ebp
pop ebp
ret 4

Function at 0x40a290
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x430038]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.004212b0
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x40a2ec
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.004210a4
add esp, 0x120
ret
Function at 0x40c4a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x42af78
push 0x4217e7
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x430038]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x40c509
xor eax, eax
jmp 0x40c67f
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c64a
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x40c64a
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c64a
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x40c64a
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c64a
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x40c64a
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c64a
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x40c64a
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c64a
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x40c64a
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x40c64a
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x40c633
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x40c620
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x40c630
jmp 0x40c64a
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.0040c6a6
test ebx, ebx
jne 0x40c67d
test esi, esi
je 0x40c66f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40c67d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004210a4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e1f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423c08
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x430038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.00406c20
test al, al
je 0x40e22e
xor al, al
jmp 0x40e35f
push ecx
lea ecx, [ebp - 0x28]
call fcn.00406d70
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push 4
push eax
call fcn.0040de30
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.00406c30
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e34c
lea ecx, [ebp - 0x40]
call fcn.00406d50
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040dd70
test al, al
je 0x40e290
lea ecx, [ebp - 0x40]
call fcn.00406c30
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00406c60
cmp esi, 0xffffffff
jne 0x40e34c
lea ecx, [ebp - 0x28]
call fcn.00407a90
cmp eax, 2
jbe 0x40e348
call fcn.00407a90
mov esi, eax
call fcn.004079f0
mov edx, eax
mov ecx, edx
mov ebx, dword [edx + 0x14]
cmp ebx, 8
jb 0x40e2d0
mov ecx, dword [edx]
cmp word [ecx + esi*2 - 2], 0x5c
je 0x40e2ef
lea ecx, [ebp - 0x28]
call fcn.00407a90
cmp ebx, 8
jb 0x40e2e7
mov edx, dword [edx]
cmp word [edx + eax*2 - 2], 0x2f
jne 0x40e348
lea eax, [ebp - 0x28]
push 0x20
push eax
call fcn.0040de30
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.00406c30
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e34c
lea ecx, [ebp - 0x40]
call fcn.00406d50
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040dd70
test al, al
je 0x40e337
lea ecx, [ebp - 0x40]
call fcn.00406c30
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00406c60
cmp esi, 0xffffffff
jne 0x40e34c
xor bl, bl
jmp 0x40e34e
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406c60
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004210a4
mov esp, ebp
pop ebp
ret
Function at 0x40e380
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423c08
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x430038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.00406c20
test al, al
je 0x40e3be
xor al, al
jmp 0x40e4f5
push ecx
lea ecx, [ebp - 0x28]
call fcn.00406d70
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push 4
push eax
call fcn.0040de30
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.00406c30
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40e42d
lea ecx, [ebp - 0x40]
call fcn.00406d50
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040dd70
test al, al
je 0x40e41c
lea ecx, [ebp - 0x40]
call fcn.00406c30
push eax
call esi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00406c60
cmp ebx, 0xffffffff
je 0x40e436
test bl, 0x10
je 0x40e4e2
lea ecx, [ebp - 0x28]
call fcn.00407a90
cmp eax, 2
jbe 0x40e4de
call fcn.00407a90
mov edi, eax
call fcn.004079f0
mov edx, eax
mov ecx, edx
mov ebx, dword [edx + 0x14]
cmp ebx, 8
jb 0x40e461
mov ecx, dword [edx]
cmp word [ecx + edi*2 - 2], 0x5c
je 0x40e480
lea ecx, [ebp - 0x28]
call fcn.00407a90
cmp ebx, 8
jb 0x40e478
mov edx, dword [edx]
cmp word [edx + eax*2 - 2], 0x2f
jne 0x40e4de
lea eax, [ebp - 0x28]
push 0x20
push eax
call fcn.0040de30
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.00406c30
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40e4d9
lea ecx, [ebp - 0x40]
call fcn.00406d50
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040dd70
test al, al
je 0x40e4c8
lea ecx, [ebp - 0x40]
call fcn.00406c30
push eax
call esi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00406c60
cmp ebx, 0xffffffff
je 0x40e4de
test bl, 0x10
je 0x40e4e2
xor bl, bl
jmp 0x40e4e4
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406c60
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004210a4
mov esp, ebp
pop ebp
ret
Function at 0x40e520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423c40
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x430038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.00406c20
test al, al
je 0x40e55c
xor al, al
jmp 0x40e5e9
push ecx
lea ecx, [ebp - 0x28]
call fcn.00406d70
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push 4
push eax
call fcn.0040de30
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.00406c30
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40e5cd
lea ecx, [ebp - 0x40]
call fcn.00406d50
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040dd70
test al, al
je 0x40e5bc
lea ecx, [ebp - 0x40]
call fcn.00406c30
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00406c60
cmp ebx, 0xffffffff
je 0x40e5d6
test bl, 0x10
je 0x40e5d6
mov bl, 1
jmp 0x40e5d8
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406c60
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004210a4
mov esp, ebp
pop ebp
ret
Function at 0x40e610
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423c90
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x430038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00406c20
test al, al
je 0x40e64d
xor al, al
jmp 0x40e802
push edi
call fcn.0040e520
add esp, 4
test al, al
je 0x40e661
mov al, 1
jmp 0x40e802
push 0
mov ecx, edi
call fcn.00406c30
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x40e6b0
lea ecx, [ebp - 0x28]
call fcn.00406d50
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.0040dd70
test al, al
je 0x40e6a1
push 0
lea ecx, [ebp - 0x28]
call fcn.00406c30
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406c60
push edi
call fcn.0040e520
add esp, 4
test al, al
jne 0x40e65a
mov ecx, edi
call fcn.00407a90
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x40e7a3
call fcn.004079f0
mov ebx, eax
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x40e6e4
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x40e707
mov eax, ebx
cmp ecx, 8
jb 0x40e6fd
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x40e793
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00406bc0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00406c20
test al, al
jne 0x40e784
mov eax, ecx
push eax
call fcn.0040e1f0
add esp, 4
test al, al
jne 0x40e784
push 0
lea ecx, [ebp - 0x28]
call fcn.00406c30
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e784
lea ecx, [ebp - 0x40]
call fcn.00406d50
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040dd70
test al, al
je 0x40e778
push 0
lea ecx, [ebp - 0x40]
call fcn.00406c30
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00406c60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406c60
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x40e6d8
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call fcn.0040e1f0
add esp, 4
test al, al
jne 0x40e7f9
push 0
mov ecx, edi
call fcn.00406c30
push eax
call ebx
test eax, eax
jne 0x40e7f9
lea ecx, [ebp - 0x40]
call fcn.00406d50
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.0040dd70
test al, al
je 0x40e7ea
push 0
lea ecx, [ebp - 0x40]
call fcn.00406c30
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00406c60
push edi
call fcn.0040e520
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004210a4
mov esp, ebp
pop ebp
ret