joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d318
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 0x45d4c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45d4a4
mov dl, 1
mov eax, dword [0x419d00]
call fcn.00403264
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404068
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45d493
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.0044b324
test al, al
je 0x45d486
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, 0x45d4d4
lea eax, [ebp - 0x254]
call fcn.004095b0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45d486
xor eax, eax
push ebp
push 0x45d47f
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 0x45d50c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45d468
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042d8
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 0x45d468
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d486
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45d389
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041e3a4
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 0x45d4ca
lea eax, [ebp - 0x260]
call fcn.00404068
ret

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

Disassembly:
push ecx
mov eax, dword [0x4a7be4]
cmp byte [eax + 0xa5], 0
jne 0x45de69
cmp dword [0x4a7bfc], 0
jne 0x45de2a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45ddb4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4a7bfc], eax
cmp dword [0x4a7bf8], 0
jne 0x45de45
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4a7bf8], eax
cmp dword [0x4a7c00], 0
jne 0x45de69
push esp
push 0
push 0
push 0x45dd58
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4a7c00], eax
pop edx
ret
Function at 0x45df60
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45df77
add esp, 0xfffffff0
call fcn.004035b8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004227ec
mov eax, dword [0x4a6284]
cmp word [eax + 2], 0
jne 0x45df9f
mov eax, dword [0x4a6284]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045f6e0
mov eax, dword [0x4a6428]
cmp word [eax + 2], 0
jne 0x45dfb9
mov eax, dword [0x4a6428]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045f8d8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41969c]
call fcn.00403264
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41969c]
call fcn.00403264
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x425340]
call fcn.0042c72c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45e140
mov eax, dword [0x4a6068]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042cafc
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45fe78
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4a6068]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d4a4
test eax, eax
je 0x45e0ae
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408f90
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d4cc
test eax, eax
je 0x45e0c2
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004042d8
mov eax, dword [0x4a5d90]
cmp byte [eax], 0
jne 0x45e0f6
mov eax, ebx
call fcn.0045e268
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00460054
mov eax, ebx
call fcn.00460a18
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45e136
call fcn.00403610
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e4e8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4a7be4]
cmp dword [eax + 0x30], 0
je 0x45e592
cmp dword [ebx + 0x94], 0
jne 0x45e58c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45e478
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45e58c
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 0x45e552
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45e58c
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.0041be90
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45e561
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45f0f4
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 0x45f129
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.00404158
jmp 0x45f136
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004040bc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x460230
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x460271
mov eax, esi
call fcn.0044690c
test al, al
je 0x460271
mov eax, dword [ebx + 0x84]
call fcn.00446608
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x460271
push 0
mov eax, dword [ebx + 0x84]
call fcn.00446608
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x46ad44
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46ae7e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0041cb58
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 2
jne 0x46adc0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x46adc0
lea ecx, [ebp - 0x18]
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.0040845c
mov edx, dword [ebp - 0x14]
mov ebx, dword [0x4a5e68]
mov ebx, dword [ebx]
mov eax, 0x46ae94
call ebx
dec eax
jne 0x46adc0
mov ebx, 1
jmp 0x46adc2
xor ebx, ebx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
sub eax, ebx
jl 0x46ae63
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.0046a854
test al, al
jne 0x46ae57
mov eax, dword [ebp - 4]
call fcn.0046ad38
mov ebx, eax
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x20]
lea eax, [ebx + 0x1c]
call fcn.004040bc
xor edx, edx
push ebp
push 0x46ae45
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x30]
test al, al
je 0x46ae3b
mov edx, eax
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.0046b158
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46ae57
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
jne 0x46adda
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ae85
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.0040408c
ret
Function at 0x40b8d5
Capabilities:
Execute syscall

Disassembly:
and byte [ebx + 6], dh
dec esp
and al, 0x14
push ds
inc esp
and al, 0x10
insb byte es:[edi], dx
lcall 0x448b, 0xd88bf146
and al, 0xc
div ecx
mov ecx, dword [ecx - 0x15]
inc ecx
mov ecx, eax
mov ebx, dword [ebx + edi*2 + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
pop es
jmp 0xeb11f197
out dx, al
mov eax, dword [esp + 0x14]
mul esi
add edx, ecx
inc eax
push cs
cmp edi, esp
and al, 0x10
ja 0x40b8ee
jb 0x40b89b
cmp eax, dword [ecx + ecx + 0xc]
jbe 0x40b877
dec esi
xor ebp, dword [edx + 0x5b5ec68b]
mov cl, 0x10
add ah, cl
int3
Function at 0x40390c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x46b008]
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.0042f710
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 0x403975
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40396c
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4039e2
mov esi, 0x80004005
jmp 0x4039e2
push 0x5c
pop ecx
cmp cx, word [ebp + eax*2 - 0x20e]
je 0x4039a1
push 1
push 0x44b7fc
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00403779
mov esi, eax
test esi, esi
js 0x4039e2
mov esi, 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004037c6
mov esi, eax
test esi, esi
js 0x4039e2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
je 0x403955
test edi, edi
je 0x4039e2
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.004022c9
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042de30
leave
ret 0xc
Function at 0x40419a
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 0x40426b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4041ca
xor esi, esi
jmp 0x40426b
cmp eax, 3
je 0x4041db
push 0
push edi
call fcn.00404273
test eax, eax
jne 0x4041c3
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x404258
push 0x5c
mov edx, eax
pop edi
cmp dx, di
jne 0x4041f4
mov ebx, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4041ed
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x404258
push dword [ebp + 0xc]
xor eax, eax
push edi
mov word [ebx], ax
call fcn.0040419a
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x40426a
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x404254
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x404245
xor esi, esi
inc esi
jmp 0x40426a
test esi, esi
jle 0x40426a
movzx esi, si
or esi, 0x80070000
jmp 0x40426a
xor esi, esi
jmp 0x40426a
mov esi, 0x80070003
push esi
push 0x72
push str.c:_agent_work138_s_srclibsdutildirutil.cpp
call fcn.004038f5
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x404273
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 0x404297
test al, 0x10
je 0x404297
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x404294
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x40520d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x46b008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp + 0x18]
push 0x11c
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x120]
push ebx
push eax
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
call fcn.0042f710
push 0x4e8
lea eax, [ebp - 0x630]
mov dword [ebp - 0x124], ebx
push ebx
push eax
mov dword [ebp - 0x130], ebx
call fcn.0042f710
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.00440912
push ebx
push 3
call fcn.00440ac6
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x154]
push eax
push esi
call fcn.00401206
mov esi, eax
test esi, esi
jns 0x4052d1
push str.Failed_to_parse_command_line.
push esi
call fcn.00440657
pop ecx
pop ecx
mov edi, ebx
jmp 0x40554c
push edi
lea eax, [ebp - 0x630]
push eax
call fcn.00404361
mov esi, eax
test esi, esi
jns 0x4052eb
push str.Failed_to_initialize_engine_state.
jmp 0x4052c2
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x604], eax
call fcn.0040568e
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
test esi, esi
jns 0x405310
push str.Failed_to_initialize_COM.
jmp 0x4052c2
xor edi, edi
inc edi
call fcn.004400c9
mov esi, eax
test esi, esi
jns 0x405330
push str.Failed_to_initialize_Cryputil.
push esi
call fcn.00440657
pop ecx
pop ecx
jmp 0x40554c
mov dword [ebp - 0x144], edi
call fcn.004412d3
mov esi, eax
test esi, esi
jns 0x405348
push str.Failed_to_initialize_Regutil.
jmp 0x405323
mov dword [ebp - 0x140], edi
call fcn.00442f7b
mov esi, eax
test esi, esi
jns 0x405360
push str.Failed_to_initialize_Wiutil.
invalid

Function at 0x409b90
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.004073aa
mov esi, eax
test esi, esi
jns 0x409bbb
push str.Failed_to_format_variable_string.
jmp 0x409c35
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
cmp edx, 0xffffffff
jne 0x409bf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x409be0
movzx esi, si
or esi, 0x80070000
cmp esi, 0x80070002
je 0x409bf0
cmp esi, 0x80070003
jne 0x409bf2
xor esi, esi
xor eax, eax
jmp 0x409c00
xor eax, eax
xor ecx, ecx
test dl, 0x10
je 0x409c02
inc eax
xor ecx, ecx
test esi, esi
jns 0x409c1b
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.00440657
add esp, 0x10
jmp 0x409c3d
push 0
push ecx
push eax
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00408363
mov esi, eax
test esi, esi
jns 0x409c3d
push str.Failed_to_set_variable.
push esi
call fcn.00440657
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.004028a8
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x409c4d
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.004073aa
mov esi, eax
test esi, esi
jns 0x409c83
push str.Failed_to_format_variable_string.
push esi
call fcn.00440657
pop ecx
pop ecx
jmp 0x409d0e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409ca8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x409cce
movzx esi, si
or esi, 0x80070000
jmp 0x409cce
test al, 0x10
je 0x409cc9
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00408309
mov esi, eax
test esi, esi
jns 0x409cce
push str.Failed_to_set_directory_search_path_variable.
jmp 0x409c76
mov esi, 0x80070003
cmp esi, 0x80070002
je 0x409cf7
cmp esi, 0x80070003
je 0x409cf7
test esi, esi
jns 0x409d0e
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.00440657
add esp, 0x10
jmp 0x409d0e
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.00440b3e
add esp, 0x14
xor esi, esi
push dword [ebp - 4]
call fcn.004028a8
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x409d1e
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.004073aa
mov esi, eax
test esi, esi
jns 0x409d4c
push str.Failed_to_format_variable_string.
jmp 0x409dea
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
cmp edx, 0xffffffff
jne 0x409dc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x409da9
cmp esi, 3
je 0x409da9
test esi, esi
je 0x409dbd
jle 0x409d7f
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x409d86
mov esi, 0x80004005
push esi
push 0x28b
push str.c:_agent_work138_s_src_burnengine_search.cpp
call fcn.004038f5
push dword [edi + 0x14]
push str.Failed_get_to_file_attributes.__ls
push esi
call fcn.00440657
add esp, 0xc
jmp 0x409df2
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.00440b3e
add esp, 0x10
xor eax, eax
jmp 0x409dce
xor eax, eax
xor ecx, ecx
test edx, 0x10
jne 0x409dd0
inc eax
xor ecx, ecx
push 0
push ecx
push eax
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00408363
mov esi, eax
test esi, esi
jns 0x409df2
push str.Failed_to_set_variable.
push esi
call fcn.00440657
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.004028a8
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x409e02
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.004073aa
mov esi, eax
test esi, esi
jns 0x409e38
push str.Failed_to_format_variable_string.
push esi
call fcn.00440657
pop ecx
pop ecx
jmp 0x409ebb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409e84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x409e5b
movzx esi, si
or esi, 0x80070000
cmp esi, 0x80070002
je 0x409ea5
cmp esi, 0x80070003
je 0x409ea5
test esi, esi
jns 0x409ebb
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_file_search:__ls__for_path:__ls
push esi
call fcn.00440657
add esp, 0x10
jmp 0x409ebb
test al, 0x10
jne 0x409ea5
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00408309
mov esi, eax
test esi, esi
jns 0x409e5b
push str.Failed_to_set_variable_to_file_search_path.
jmp 0x409e2b
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.00440b3e
add esp, 0x10
xor esi, esi
push dword [ebp - 4]
call fcn.004028a8
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x40a33a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push eax
mov edi, dword [ebx + 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push dword [ebx + 0x1c]
push dword [ebp + 0xc]
call fcn.004073aa
mov esi, eax
test esi, esi
jns 0x40a377
push str.Failed_to_format_key_string.
jmp 0x40a47e
neg edi
lea eax, [ebp - 0xc]
push eax
sbb edi, edi
and edi, 0x100
inc edi
push edi
push dword [ebp - 4]
push dword [ebx + 0x18]
call fcn.00441436
mov esi, eax
test esi, esi
jns 0x40a3ca
push dword [ebp - 4]
cmp esi, 0x80070002
jne 0x40a3b7
push str.Registry_key_not_found._Key___ls
push 2
call fcn.00440b3e
add esp, 0xc
jmp 0x40a460
push str.Failed_to_open_registry_key._Key___ls
push esi
call fcn.00440657
add esp, 0xc
jmp 0x40a486
xor edi, edi
xor eax, eax
inc edi
cmp dword [ebx + 0x20], eax
je 0x40a464
push eax
lea eax, [ebp - 8]
push eax
push dword [ebx + 0x20]
push dword [ebp + 0xc]
call fcn.004073aa
mov esi, eax
test esi, esi
jns 0x40a3f8
push str.Failed_to_format_value_string.
jmp 0x40a47e
xor ecx, ecx
lea eax, [ebp - 0x10]
push ecx
push ecx
push eax
push ecx
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
sub eax, 0
je 0x40a462
dec eax
sub eax, 1
je 0x40a44b
xor eax, eax
test esi, esi
je 0x40a464
jle 0x40a42d
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x40a434
mov esi, 0x80004005
push esi
push 0x322
push str.c:_agent_work138_s_src_burnengine_search.cpp
call fcn.004038f5
push str.Failed_to_query_registry_key_value.
jmp 0x40a47e
push dword [ebp - 8]
push dword [ebp - 4]
push str.Registry_value_not_found._Key___ls__Value___ls
push 2
call fcn.00440b3e
add esp, 0x10
xor edi, edi
xor eax, eax
push 0
push eax
push edi
push dword [ebx + 4]
push dword [ebp + 0xc]
call fcn.00408363
mov esi, eax
test esi, esi
jns 0x40a49d
push str.Failed_to_set_variable.
push esi
call fcn.00440657
pop ecx
pop ecx
test esi, esi
jns 0x40a49d
push esi
push dword [ebp - 4]
push str.RegistrySearchExists_failed:_ID__ls__HRESULT_0x_x
push 2
call fcn.00440b3e
add esp, 0x10
push dword [ebp - 4]
call fcn.004028a8
push dword [ebp - 8]
call fcn.004028a8
cmp dword [ebp - 0xc], 0
je 0x40a4bc
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8