joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x10]
sub esp, 0xc
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
test eax, eax
jg 0x403abb
jl 0x403aae
test ecx, ecx
jne 0x403abb
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
mov edi, ecx
je 0x403b94
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov ecx, ebx
call fcn.004055c0
mov ecx, edx
mov esi, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
jl 0x403b2b
jg 0x403aeb
test esi, esi
je 0x403b2b
mov eax, dword [esp + 0xc]
cmp eax, ecx
jg 0x403aff
jl 0x403af9
cmp edi, esi
jae 0x403aff
mov esi, edi
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push dword [esp + 0x18]
call fcn.004257e0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0xc]
sub edi, esi
sbb ecx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x10]
jmp 0x403b4e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x403b7d
mov eax, dword [esp + 0x10]
add edi, 0xffffffff
mov esi, 1
mov byte [eax], cl
mov ecx, dword [esp + 0xc]
adc ecx, 0xffffffff
add eax, esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
test ecx, ecx
jg 0x403ad2
jl 0x403b81
test edi, edi
jne 0x403ad2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
sbb edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0xc]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
sbb edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
test eax, eax
je 0x403be3
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [esp + 0x14], edx
mov eax, dword [eax]
test eax, eax
je 0x403bea
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [esp + 0x14]
push dword [ebp + 8]
call fcn.004257e0
mov eax, dword [ebp + 8]
sub edi, esi
add eax, esi
add esp, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x10]
jmp 0x403bed
lea eax, [ebx + 0x2c]
mov dword [esp + 0x14], eax
mov esi, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
je 0x403c57
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x403c17
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [eax], edx
cmp edi, 0xfff
jbe 0x403c42
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0042e023
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x403c57
cmp edi, eax
ja 0x403c20
test edi, edi
je 0x403c57
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0042e023
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4067e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00424d70
mov eax, dword [0x45f094]
xor eax, ebp
mov dword [ebp - 4], eax
push ecx
lea eax, [ebp - 0x2004]
push 0x1000
push eax
call fcn.0042e741
lea ecx, [ebp - 0x2004]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406815
push ebx
sub ecx, edx
lea eax, [ebp - 0x2004]
sar ecx, 1
lea ebx, [ebp - 0x2004]
push 0x5c
push eax
lea ebx, [ebx + ecx*2]
call fcn.00425464
add esp, 8
test eax, eax
je 0x4068ee
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x2004]
push 0x5c
push eax
call fcn.00425464
add esp, 8
test eax, eax
je 0x40687b
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x2004]
push 0x5c
push eax
call fcn.00425464
add esp, 8
test eax, eax
jne 0x406861
lea ecx, [ebp - 0x2004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406884
sub ecx, edx
sar ecx, 1
push esi
lea esi, [ebp - 0x2004]
lea esi, [esi + ecx*2]
cmp esi, ebx
je 0x4068ed
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [eax + eax]
push 0
lea eax, [ebp - 0x2004]
push eax
call edi
test esi, esi
je 0x4068ec
mov eax, 0x5c
mov word [esi], ax
lea eax, [ebp - 0x2004]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4068d0
sub eax, edx
lea esi, [ebp - 0x2004]
sar eax, 1
lea esi, [esi + eax*2]
cmp esi, ebx
jne 0x4068b0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00423d11
mov esp, ebp
pop ebp
ret

Function at 0x406900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*2 - 2], 0x5c
jne 0x406921
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x8000080
push 2
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40694c
pop esi
mov eax, 0x52
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406978
cmp dword [ebp - 4], edi
jne 0x406978
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 0x1d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8a40
call fcn.00424d70
mov eax, dword [0x45f094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, edx
push 0
push eax
mov ebx, ecx
call fcn.00425d60
add esp, 0xc
mov dword [ebp - 0x8a18], 0x104
lea eax, [ebp - 0x8a40]
mov dword [ebp - 0x8a14], 0
mov dword [ebp - 0x8a10], 0
push eax
lea eax, [ebp - 0x8a28]
push eax
lea eax, [ebp - 0x8a2c]
push eax
lea eax, [ebp - 0x8a30]
push eax
lea eax, [ebp - 0x8a10]
push eax
lea eax, [ebp - 0x8a34]
push eax
lea eax, [ebp - 0x8a38]
push eax
lea eax, [ebp - 0x8a14]
push eax
push 0
lea eax, [ebp - 0x8a18]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x8a10]
test eax, eax
je 0x4078dc
xor esi, esi
test eax, eax
je 0x4078dc
nop dword [eax]
xor eax, eax
mov dword [ebp - 0x8a1c], 0x3fff
push eax
push eax
push eax
push eax
mov word [ebp - 0x8a0c], ax
lea eax, [ebp - 0x8a1c]
push eax
lea eax, [ebp - 0x8a0c]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4078cf
lea eax, [ebp - 0x8a0c]
push edi
push eax
call fcn.00425505
add esp, 8
test eax, eax
jne 0x4078ef
push 0x800
push eax
lea eax, [ebp - 0xa0c]
push eax
call fcn.00425d60
add esp, 0xc
mov dword [ebp - 0x8a20], 0x400
lea eax, [ebp - 0x8a20]
mov dword [ebp - 0x8a24], 1
push eax
lea eax, [ebp - 0xa0c]
push eax
lea eax, [ebp - 0x8a24]
push eax
push 0
lea eax, [ebp - 0x8a0c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4078cf
lea eax, [ebp - 0xa0c]
push edi
push eax
call fcn.00425505
add esp, 8
test eax, eax
jne 0x4078ef
inc esi
cmp esi, dword [ebp - 0x8a10]
jb 0x407820
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423d11
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423d11
mov esp, ebp
pop ebp
ret
Function at 0x407910
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x45f094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.IsWow64Process
mov esi, ecx
mov dword [ebp - 0x80c], 0
push str.kernel32
mov dword [ebp - 0x814], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x407965
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x808]
push eax
mov eax, dword [ebp - 0x80c]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x407a1e
push 0x800
lea eax, [ebp - 0x804]
mov dword [ebp - 0x818], 7
push 0
push eax
call fcn.00425d60
add esp, 0xc
mov dword [ebp - 0x810], 0x400
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x818]
push eax
push 0
push str.PendingFileRenameOperations
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x808]
mov esi, eax
call edi
test esi, esi
mov esi, dword [ebp - 0x814]
jne 0x407a1e
mov edx, dword [ebp - 0x810]
lea ecx, [ebp - 0x804]
push esi
call fcn.004076e0
add esp, 4
test al, al
jne 0x407a65
lea eax, [ebp - 0x808]
push eax
mov eax, dword [ebp - 0x80c]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call ebx
test eax, eax
jne 0x407a7a
mov ecx, dword [ebp - 0x808]
mov edx, esi
call fcn.00407760
push dword [ebp - 0x808]
test al, al
je 0x407a78
call edi
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423d11
mov esp, ebp
pop ebp
ret
call edi
lea eax, [ebp - 0x808]
push eax
mov eax, dword [ebp - 0x80c]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000001
call ebx
test eax, eax
jne 0x407ac1
mov ecx, dword [ebp - 0x808]
mov edx, esi
call fcn.00407760
push dword [ebp - 0x808]
test al, al
jne 0x407a63
call edi
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423d11
mov esp, ebp
pop ebp
ret
Function at 0x407ae0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x407af7
sub edi, ecx
sar edi, 1
cmp word [ebx + edi*2 - 2], 0x5c
je 0x407b1e
mov eax, 0x5c
mov word [ebx + edi*2], ax
inc edi
xor eax, eax
mov word [ebx + edi*2], ax
push 0x458f40
push ebx
mov esi, edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp + 8]
add edi, 3
mov ebx, 1
lea ecx, [eax + edi*2]
mov edi, eax
mov dword [ebp - 4], ecx
lea eax, [edi + esi*2]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp + 8], eax
nop dword [eax + eax]
push ebx
push str._04X.tmp
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp + 8]
add esp, 0xc
inc ebx
call fcn.00407910
test al, al
jne 0x407b83
push 0
push edi
call esi
test eax, eax
jne 0x407b90
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407b9c
cmp ebx, 0xffff
jge 0x407b9c
mov ecx, dword [ebp - 4]
jmp 0x407b50
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407bb0
Capabilities:
Create directory

Disassembly:
push ebx
push edi
push str.shell32.dll
mov edi, edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407c3e
cmp ebx, 0xffffffff
je 0x407c3e
push str.SHGetSpecialFolderPathW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407c37
push 0
push 0x1c
push edi
push 0
call eax
test eax, eax
je 0x407c37
push str.GoToAssist_Remote_Support
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Applet
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407c19
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407c37
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x407c23
sub edi, ecx
sar edi, 1
mov eax, edi
pop edi
pop ebx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor eax, eax
pop ebx
ret
Function at 0x407c50
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x45f094]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea ecx, [ebx - 1]
cmp ecx, 0x100
ja 0x407dd7
cmp word [esi + ebx*2 - 2], 0x5c
je 0x407c9d
mov eax, 0x5c
mov word [esi + ebx*2], ax
inc ebx
lea eax, [esi + ebx*2]
xor ecx, ecx
mov dword [eax], 0x2a
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x407d34
test byte [esp + 0x18], 0x10
je 0x407d19
push 0x458ef0
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x407d15
push 0x458ef4
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x407d15
mov eax, 0x104
sub eax, ebx
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esi + ebx*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
push esi
mov dl, 1
xor cl, cl
call fcn.00407c50
add esp, 8
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x407cc1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esi + ebx*2]
mov dword [eax], 0x2a
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x407db8
test byte [esp + 0x18], 0x10
jne 0x407d9b
mov eax, 0x104
sub eax, ebx
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esi + ebx*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407d8d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
je 0x407d9b
test eax, eax
jne 0x407d9b
push 4
push eax
push esi
call edi
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407d52
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
xor ecx, ecx
push esi
mov word [eax - 2], cx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x407dd7
test edi, edi
je 0x407dd7
push 4
push eax
push esi
call edi
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00423d11
mov esp, ebp
pop ebp
ret
Function at 0x408130
Capabilities:
Set current directory

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, edx
xor eax, eax
sub esp, 8
mov edx, edi
mov word [edi], ax
mov word [esi], ax
call fcn.00407bb0
add esp, 8
test eax, eax
je 0x408195
cmp eax, 0x103
ja 0x408195
push esi
mov ecx, edi
call fcn.00407ae0
add esp, 4
test eax, eax
jne 0x40816d
pop edi
mov eax, 2
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x408190
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call fcn.00407df0
add esp, 4
mov eax, 3
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
pop edi
mov eax, 1
pop esi
ret

Function at 0x408b10
Capabilities:
Create directory

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x28]
test edi, edi
je 0x408b32
mov dword [edi], 0
mov byte [edi + 4], 0
mov dword [edi + 8], 0x44c380
mov eax, dword [esp + 0x24]
test eax, eax
je 0x408b58
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x408b44
mov ecx, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x408b4c
mov eax, dword [eax]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
jmp 0x408b6b
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x408b62
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x408b77
pop edi
mov al, 1
pop esi
add esp, 0x14
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esp + 0x14], 0
lea eax, [esp + 0x14]
mov byte [esp + 0x18], 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x20], 0x44c380
push esi
push eax
call fcn.00409410
add esp, 0xc
cmp dword [esp + 0xc], 3
je 0x408bbf
push str.boost::filesystem::create_directory
push edi
push esi
push ebx
call fcn.0040a510
add esp, 0x10
pop ebx
pop edi
xor al, al
pop esi
add esp, 0x14
ret
Function at 0x409410
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a145
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x45f094]
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 esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x68], esi
test esi, esi
je 0x40945c
mov dword [esi], 0
mov byte [esi + 4], 0
mov dword [esi + 8], 0x44c380
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x409466
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x60], eax
cmp eax, 0xffffffff
jne 0x409485
push esi
push ebx
push edi
call fcn.004091e0
add esp, 0xc
jmp 0x4095a6
push eax
push ebx
call fcn.00408e60
add esp, 8
mov esi, eax
test dword [ebp - 0x60], 0x400
mov dword [ebp - 0x64], esi
je 0x409580
push ebx
call fcn.00408d50
add esp, 4
test al, al
jne 0x4094b9
mov dword [edi], 9
jmp 0x4095a3
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x4094c3
mov eax, dword [ebx]
push eax
lea ecx, [ebp - 0x28]
call fcn.004084c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2000000
push 3
push 0
push 7
push 0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x60], esi
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp eax, 8
jb 0x409512
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004057a0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
jne 0x40953e
push dword [ebp - 0x68]
push ebx
push edi
call fcn.004091e0
add esp, 0xc
jmp 0x4095a6
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x40956a
push dword [ebp - 0x68]
push ebx
push edi
call fcn.004091e0
add esp, 0xc
push esi
mov dword [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4095a6
mov ebx, dword [ebp - 0x5c]
push esi
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x64]
jmp 0x409583
mov ebx, dword [ebp - 0x60]
and ebx, 0x10
je 0x40958d
mov ecx, dword [ebp - 0x64]
jmp 0x409592
mov ecx, esi
mov esi, dword [ebp - 0x64]
xor eax, eax
test ebx, ebx
setne al
add eax, 2
test ebx, ebx
mov dword [edi], eax
cmove esi, ecx
mov dword [edi + 4], esi
mov eax, edi
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.00423d11
mov esp, ebp
pop ebp
ret

Function at 0x424c03
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x424c42
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x424c42
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x424c42
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x424c42
cmp dword [ecx + 0x74], 0xe
jbe 0x424c42
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x43ada6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x451008
push 0x451000
push str.FlsAlloc
push 0x1f
call fcn.0043ac11
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43adda
push dword [ebp + 8]
mov ecx, esi
call dword [0x44c21c]
call esi
jmp 0x43ade0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43ae24
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x451018
push 0x451010
push str.FlsGetValue
push 0x21
call fcn.0043ac11
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43ae5b
push dword [ebp + 8]
mov ecx, esi
call dword [0x44c21c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x43ae63
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x451020
push 0x451018
push str.FlsSetValue
push 0x22
call fcn.0043ac11
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43ae9d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44c21c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x43c5c0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00424d70
mov eax, dword [0x45f094]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00438b42
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x43c602
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x43c75e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00449640
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4614f8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0043d3c1
mov ecx, dword [esi*4 + 0x4614f8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x43c757
cmp eax, dword [ecx + edi + 0x24]
jne 0x43c757
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43c757
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043d3c1
add esp, 0x14
test edx, edx
jl 0x43c757
jg 0x43c6cd
test eax, eax
jb 0x43c757
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x43c757
jl 0x43c6e7
cmp dword [ebp - 0x1008], eax
ja 0x43c757
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x43c705
test ebx, ebx
je 0x43c73e
cmp ecx, edi
jae 0x43c73e
mov al, byte [ecx]
cmp al, 0xd
jne 0x43c71f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x43c72b
cmp byte [ecx + 1], 0xa
jne 0x43c72b
inc ecx
jmp 0x43c72b
movzx eax, al
movsx eax, byte [eax + 0x45f318]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x43c705
cmp edx, ebx
jne 0x43c705
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x43c75c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00423d11
leave
ret