joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a1bc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x465a50]
cmp byte [eax + 0xc], 0
je 0x43a329
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43a322
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x466b64], 0
jne 0x43a210
push 0x43a330
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43a338
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b64], eax
cmp dword [0x464b08], 0
jne 0x43a30b
push 0x43a348
call sub.kernel32.dll_LoadLibraryA
mov dword [0x464b08], eax
cmp dword [0x464b08], 0
je 0x43a30b
push 0x43a354
mov eax, dword [0x464b08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b68], eax
push 0x43a364
mov eax, dword [0x464b08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b6c], eax
push 0x43a378
mov eax, dword [0x464b08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b70], eax
push 0x43a390
mov eax, dword [0x464b08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b74], eax
push 0x43a3a8
mov eax, dword [0x464b08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b78], eax
push 0x43a3bc
mov eax, dword [0x464b08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b7c], eax
push 0x43a3d4
mov eax, dword [0x464b08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b80], eax
push 0x43a3ec
mov eax, dword [0x464b08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b84], eax
push 0x43a408
mov eax, dword [0x464b08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b88], eax
push 0x43a414
mov eax, dword [0x464b08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a329
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43e1b4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.0040421c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43e203
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040448c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4459ac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4459fc]
test si, 4
je 0x4459c0
or bl, 1
test si, 8
je 0x4459ca
or bl, 4
test si, 1
je 0x4459d4
or bl, 8
test si, 2
je 0x4459de
or bl, 0x10
test si, 0x10
je 0x4459e8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4459f7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x445a00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x445a38]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x445a19
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x445a28
or bl, 4
test esi, 0x20000000
je 0x445a33
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44c0fc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44c10e
add esp, 0xfffffff0
call fcn.004037c8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041976c
mov eax, dword [0x465718]
mov dword [eax + 4], ebx
mov dword [eax], 0x44c4a0
mov eax, dword [0x465724]
mov dword [eax + 4], ebx
mov dword [eax], 0x44c4ac
mov eax, ebx
call fcn.0044c4b8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411a64]
call fcn.00403460
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411a64]
call fcn.00403460
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411a64]
call fcn.00403460
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411a64]
call fcn.00403460
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411a64]
call fcn.00403460
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x4488d0
push eax
push 0
push 0
mov eax, dword [0x465868]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b1c8]
call fcn.0041c960
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b1c8]
call fcn.0041c960
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b1c8]
call fcn.0041c960
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044c908
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44c7d0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44c7d0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44c7d0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44c24b
call fcn.00403820
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44c5b4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44c75f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44c740
mov dl, 1
mov eax, dword [0x411e80]
call fcn.00403460
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040421c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44c72f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043a51c
test al, al
je 0x44c722
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44c770
lea eax, [ebp - 0x254]
call fcn.00408e40
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44c722
xor eax, eax
push ebp
push 0x44c71b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44c7a8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44c704
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040448c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44c704
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040448c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c722
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44c625
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041595c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c766
lea eax, [ebp - 0x260]
call fcn.0040421c
ret

Function at 0x44d0a8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x466bb0]
cmp byte [eax + 0xa5], 0
jne 0x44d119
cmp dword [0x466bc8], 0
jne 0x44d0da
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44d064
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x466bc8], eax
cmp dword [0x466bc4], 0
jne 0x44d0f5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x466bc4], eax
cmp dword [0x466bcc], 0
jne 0x44d119
push esp
push 0
push 0
push 0x44d008
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x466bcc], eax
pop edx
ret
Function at 0x44d7ac
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x466bb0]
cmp dword [eax + 0x30], 0
je 0x44d856
cmp dword [ebx + 0x94], 0
jne 0x44d850
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44d73c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44d850
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44d816
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44d850
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413dcc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44d825
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44e3b4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44e3e9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040430c
jmp 0x44e3f6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404270
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44f598
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44f5d9
mov eax, esi
call fcn.00435bdc
test al, al
je 0x44f5d9
mov eax, dword [ebx + 0x84]
call fcn.0043597c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44f5d9
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043597c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x452cc4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x452cf2
mov eax, ebx
call fcn.00453778
cmp dword [ebx + 0x40], 0
je 0x452ceb
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x452d63
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x452d55
cmp dword [ebx + 8], 0
je 0x452d14
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x452d26
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x452d55
cmp dword [ebx + 8], 0
je 0x452d07
cmp eax, 3
je 0x452d39
dec eax
jne 0x452d07
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x452d07
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x452d07
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x452d81
cmp dword [ebx + 0x14], 0xcc
je 0x452d81
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00452d8c
pop ebx
ret
Function at 0x40320d
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x419600
call fcn.00403d90
push 1
call fcn.004038ba
pop ecx
test al, al
jne 0x4030c4
push 7
call fcn.00403bcc
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00403868
mov byte [ebp - 0x24], al
mov eax, dword [0x41ac88]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4030bd
test eax, eax
jne 0x40312e
mov dword [0x41ac88], ecx
push 0x418c28
push 0x418c10
call fcn.004073f8
pop ecx
pop ecx
test eax, eax
je 0x403111
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x403207
push 0x418c0c
push 0x418c04
call fcn.004073b1
pop ecx
pop ecx
mov dword [0x41ac88], 2
jmp 0x403133
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0040389d
pop ecx
call fcn.00403b35
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x403163
push esi
call fcn.004037de
pop ecx
test al, al
je 0x403163
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00403d7f
call esi
call fcn.00403b3b
mov esi, eax
cmp dword [esi], edi
je 0x403181
push esi
call fcn.004037de
pop ecx
test al, al
je 0x403181
push dword [esi]
call fcn.00406650
pop ecx
call fcn.00403b49
movzx eax, ax
push eax
call fcn.00407140
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00403b7c
test al, al
jne 0x4031ac
push esi
call fcn.00406606
test bl, bl
jne 0x4031b5
call fcn.00406632
push edi
push 1
call fcn.004038f3
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x403207
call fcn.00403dd6
ret
call fcn.00403a26
jmp 0x4030a5

Function at 0x407e66
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x413eb8
push 0x413eb0
push 0x413eb8
push 0
call fcn.0040808f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407e98
push dword [ebp + 8]
mov ecx, esi
call fcn.00403d7f
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsAlloc]

Function at 0x407eda
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x413ee8
push 0x413ee0
push 0x413ee8
push 3
call fcn.0040808f
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x407f0e
mov ecx, esi
call fcn.00403d7f
call esi
jmp 0x407f14
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x403b52
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x46a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x208
push 0
push eax
call fcn.0042f820
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x403bba
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x403c27
mov esi, 0x80004005
jmp 0x403c27
push 0x5c
pop ecx
cmp cx, word [ebp + eax*2 - 0x20e]
je 0x403be6
push 1
push 0x44b790
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00403970
mov esi, eax
test esi, esi
js 0x403c27
mov esi, 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004039bf
mov esi, eax
test esi, esi
js 0x403c27
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
je 0x403b9b
test edi, edi
je 0x403c27
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.004024b5
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042df6e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40436e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x404435
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40439e
xor esi, esi
jmp 0x404435
cmp eax, 3
je 0x4043af
push 0
push edi
call fcn.0040443d
test eax, eax
jne 0x404397
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x404422
push 0x5c
pop edx
cmp ax, dx
cmove ebx, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x4043bf
test ebx, ebx
je 0x404422
push dword [ebp + 0xc]
xor eax, eax
push edi
mov word [ebx], ax
call fcn.0040436e
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x404434
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40441e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40440e
xor esi, esi
inc esi
jmp 0x404434
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x404434
xor esi, esi
jmp 0x404434
mov esi, 0x80070003
push esi
push 0x72
push str.dirutil.cpp
call fcn.00403b3b
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x40443d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404461
test al, 0x10
je 0x404461
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40445e
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x409cbc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push eax
push dword [ebx + 0x14]
push dword [ebp + 0xc]
call fcn.004074f2
mov esi, eax
test esi, esi
jns 0x409ce9
push str.Failed_to_format_variable_string.
jmp 0x409d5d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409d1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070002
je 0x409d1b
cmp esi, 0x80070003
jne 0x409d27
xor esi, esi
jmp 0x409d27
test al, 0x10
push 1
pop eax
cmovne edi, eax
test esi, esi
jns 0x409d40
push dword [ebp - 4]
push dword [ebx]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.00440564
add esp, 0x10
jmp 0x409d65
push 0
mov eax, edi
cdq
push edx
push eax
push dword [ebx + 4]
push dword [ebp + 0xc]
call fcn.00408475
mov esi, eax
test esi, esi
jns 0x409d65
push str.Failed_to_set_variable.
push esi
call fcn.00440564
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.00402a9c
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x409d78
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push eax
push dword [edi + 0x14]
push dword [ebp + 0xc]
call fcn.004074f2
mov esi, eax
test esi, esi
jns 0x409dae
push str.Failed_to_format_variable_string.
push esi
call fcn.00440564
pop ecx
pop ecx
jmp 0x409e38
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409dd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x409df8
test al, 0x10
je 0x409df3
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00408419
mov esi, eax
test esi, esi
jns 0x409df8
push str.Failed_to_set_directory_search_path_variable.
jmp 0x409da1
mov esi, 0x80070003
cmp esi, 0x80070002
je 0x409e21
cmp esi, 0x80070003
je 0x409e21
test esi, esi
jns 0x409e38
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.00440564
add esp, 0x10
jmp 0x409e38
push esi
push dword [ebp - 4]
push dword [edi]
push str.Directory_search:__ls__did_not_find_path:__ls__reason:_0x_x
push 2
call fcn.00440a4f
add esp, 0x14
xor esi, esi
push dword [ebp - 4]
call fcn.00402a9c
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x409e4a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push eax
push dword [ebx + 0x14]
push dword [ebp + 0xc]
call fcn.004074f2
mov esi, eax
test esi, esi
jns 0x409e7a
push str.Failed_to_format_variable_string.
jmp 0x409f12
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409eed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x409ed7
cmp eax, 3
je 0x409ed7
test eax, eax
je 0x409ef5
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x28b
push str.search.cpp
call fcn.00403b3b
push dword [ebx + 0x14]
push str.Failed_get_to_file_attributes.__ls
push esi
call fcn.00440564
add esp, 0xc
jmp 0x409f1a
push dword [ebp - 4]
push dword [ebx]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.00440a4f
add esp, 0x10
jmp 0x409ef5
test al, 0x10
push 1
pop eax
cmove edi, eax
push 0
mov eax, edi
cdq
push edx
push eax
push dword [ebx + 4]
push dword [ebp + 0xc]
call fcn.00408475
mov esi, eax
test esi, esi
jns 0x409f1a
push str.Failed_to_set_variable.
push esi
call fcn.00440564
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.00402a9c
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x409f2d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push eax
push dword [edi + 0x14]
push dword [ebp + 0xc]
call fcn.004074f2
mov esi, eax
test esi, esi
jns 0x409f63
push str.Failed_to_format_variable_string.
push esi
call fcn.00440564
pop ecx
pop ecx
jmp 0x409fe5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409fae
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070002
je 0x409fcf
cmp esi, 0x80070003
je 0x409fcf
test esi, esi
jns 0x409fe5
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_file_search:__ls__for_path:__ls
push esi
call fcn.00440564
add esp, 0x10
jmp 0x409fe5
test al, 0x10
jne 0x409fcf
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00408419
mov esi, eax
test esi, esi
jns 0x409f85
push str.Failed_to_set_variable_to_file_search_path.
jmp 0x409f56
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.00440a4f
add esp, 0x10
xor esi, esi
push dword [ebp - 4]
call fcn.00402a9c
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8