joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453fe8
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 0x454193
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x454174
mov dl, 1
mov eax, dword [0x412314]
call fcn.004034f8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404338
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x454163
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.00441a70
test al, al
je 0x454156
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, 0x4541a4
lea eax, [ebp - 0x254]
call fcn.004090d8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x454156
xor eax, eax
push ebp
push 0x45414f
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 0x4541dc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x454138
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004045a8
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 0x454138
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004045a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454156
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x454059
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415e64
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 0x45419a
lea eax, [ebp - 0x260]
call fcn.00404338
ret

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

Disassembly:
push ecx
mov eax, dword [0x45dbe0]
cmp byte [eax + 0xa5], 0
jne 0x454b4d
cmp dword [0x45dbf8], 0
jne 0x454b0e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x454a98
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45dbf8], eax
cmp dword [0x45dbf4], 0
jne 0x454b29
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45dbf4], eax
cmp dword [0x45dbfc], 0
jne 0x454b4d
push esp
push 0
push 0
push 0x454a3c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x45dbfc], eax
pop edx
ret
Function at 0x4551e0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45dbe0]
cmp dword [eax + 0x30], 0
je 0x45528a
cmp dword [ebx + 0x94], 0
jne 0x455284
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x455170
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x455284
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 0x45524a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x455284
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.004142bc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x455259
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x455de8
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 0x455e1d
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.00404428
jmp 0x455e2a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040438c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x456fe4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x457025
mov eax, esi
call fcn.0043d0ec
test al, al
je 0x457025
mov eax, dword [ebx + 0x84]
call fcn.0043cde8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x457025
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043cde8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45886c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x458942
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
push 0x45895c
push esi
lea eax, [ebp - 4]
mov edx, 3
call fcn.004046b8
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402f40
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], di
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
call fcn.004088e8
mov eax, dword [ebp - 0x5c]
call fcn.004047f8
push eax
push 0
push 0x30
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004047f8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
je 0x458924
push 0xffffffffffffffff
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458949
lea eax, [ebp - 0x5c]
call fcn.00404338
lea eax, [ebp - 4]
call fcn.00404338
ret

Function at 0x458e78
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x458f4e
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
push 0x458f68
push esi
lea eax, [ebp - 4]
mov edx, 3
call fcn.004046b8
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402f40
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], di
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
call fcn.004088e8
mov eax, dword [ebp - 0x5c]
call fcn.004047f8
push eax
push 0
push 0x30
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004047f8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
je 0x458f30
push 0xffffffffffffffff
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458f55
lea eax, [ebp - 0x5c]
call fcn.00404338
lea eax, [ebp - 4]
call fcn.00404338
ret
Function at 0x405520
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x14], 8
push esi
jb 0x405533
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x40554a
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 1
push esi
call fcn.0049e7f9
mov edi, eax
add esp, 8
test edi, edi
je 0x4055c1
mov ecx, dword [ebp - 4]
push edi
push esi
push ecx
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4055b8
lea edx, [ebp - 8]
push edx
lea eax, [ebp + 8]
push eax
push 0x59754c
push edi
mov dword [ebp + 8], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4055b8
cmp dword [ebp + 8], 0
je 0x4055b8
push 0x14
call fcn.0049d431
mov esi, eax
add esp, 4
test esi, esi
je 0x4055c1
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
call fcn.00405360
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.0049d8ca
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405810
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x59ece0]
xor eax, ebp
mov dword [ebp - 4], eax
movzx ecx, word [edi + 8]
mov eax, dword [ebp + 0xc]
mov dx, word [edi + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [ebp - 0x224], eax
mov word [ebp - 0x14], cx
mov word [ebp - 0x12], dx
call esi
movzx ecx, word [edi + 8]
mov word [ebp - 0x10], ax
mov ax, word [edi + 0xc]
mov edx, 0x4e4
mov word [ebp - 0xe], ax
mov word [ebp - 0xc], cx
mov word [ebp - 0xa], dx
call esi
mov word [ebp - 8], ax
mov eax, 0x4e4
mov word [ebp - 6], ax
xor esi, esi
jmp 0x405880
movzx ecx, word [ebp + esi*2 - 0x12]
movzx edx, word [ebp + esi*2 - 0x14]
push ebx
push ecx
push edx
push 0x597758
push 0x104
lea eax, [ebp - 0x21c]
push 0x104
push eax
add esi, 2
call fcn.0049e857
mov eax, dword [edi + 4]
add esp, 0x1c
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x220]
push edx
lea ecx, [ebp - 0x21c]
push ecx
push eax
mov dword [ebp - 0x220], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4058e5
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x4058fe
cmp esi, 8
jb 0x405880
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret 8
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405903
mov ecx, dword [ebp - 0x224]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.00405c50
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret 8
Function at 0x406d40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x59ece0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
push edi
je 0x406eeb
cmp byte [0x623c2c], 0
je 0x406eeb
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x210]
push 0x5c
push ecx
call fcn.0049f1a3
add esp, 8
test eax, eax
je 0x406d9d
xor edx, edx
mov word [eax + 2], dx
push str.debug_message.exe
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0049f2dd
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x406dc0
mov edi, dword [esi]
jmp 0x406dc2
mov edi, esi
mov esi, dword [esi + 0x10]
xor ecx, ecx
mov word [ebp - 0x22c], cx
push edi
lea ecx, [ebp - 0x22c]
mov eax, esi
mov dword [ebp - 0x218], 7
mov dword [ebp - 0x21c], 0
call fcn.0041e070
push esi
push edi
lea edi, [ebp - 0x22c]
call fcn.00412440
add esp, 0xc
cmp dword [ebp - 0x21c], 0
jne 0x406e22
cmp dword [ebp - 0x218], 8
jb 0x406eeb
mov edx, dword [ebp - 0x22c]
push edx
jmp 0x406ee3
push 0x44
lea eax, [ebp - 0x288]
push 0
push eax
call fcn.0049d850
mov eax, dword [ebp - 0x22c]
mov edi, 8
add esp, 0xc
mov dword [ebp - 0x288], 0x44
cmp dword [ebp - 0x218], edi
jae 0x406e58
lea eax, [ebp - 0x22c]
lea ecx, [ebp - 0x23c]
push ecx
lea edx, [ebp - 0x288]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406ead
mov ecx, dword [ebp - 0x23c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x238]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x23c]
push eax
call esi
jmp 0x406ed4
mov eax, dword [ebp - 0x22c]
cmp dword [ebp - 0x218], edi
jae 0x406ec1
lea eax, [ebp - 0x22c]
push 0x40010
push str.Fatal_error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [ebp - 0x218], edi
jb 0x406eeb
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.0049d0c3
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret
Function at 0x40a060
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40a06e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x40a080
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x59ece0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x210]
push ecx
push 0x104
mov dword [ebp - 0x268], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x40a1fb
push ebx
push esi
push edi
xor edi, edi
xor edx, edx
mov ebx, 7
lea eax, [ebp - 0x210]
mov word [ebp - 0x264], dx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x254], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40a0e2
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x264]
call fcn.00405c50
push 0xffffffffffffffff
xor ecx, ecx
push edi
lea edx, [ebp - 0x264]
mov word [ebp - 0x248], cx
push edx
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x238], edi
call fcn.00405b50
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x248]
xor eax, eax
push ecx
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x21c], edi
mov word [ebp - 0x22c], ax
call fcn.00405b50
lea esi, [ebp - 0x22c]
call fcn.00408b70
mov ecx, dword [ebp - 0x268]
push 0xffffffffffffffff
push edi
mov edx, esi
push edx
call fcn.00405b50
mov esi, 8
cmp dword [ebp - 0x218], esi
jb 0x40a190
mov eax, dword [ebp - 0x22c]
push eax
call fcn.0049d0c3
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x21c], edi
mov word [ebp - 0x22c], cx
cmp dword [ebp - 0x234], esi
jb 0x40a1bc
mov edx, dword [ebp - 0x248]
push edx
call fcn.0049d0c3
add esp, 4
mov dword [ebp - 0x238], edi
xor eax, eax
cmp dword [ebp - 0x250], esi
pop edi
pop esi
mov dword [ebp - 0x234], ebx
mov word [ebp - 0x248], ax
pop ebx
jb 0x40a1eb
mov ecx, dword [ebp - 0x264]
push ecx
call fcn.0049d0c3
add esp, 4
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret
Function at 0x40a420
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [ebp + 8]
push esi
mov dword [esp + 8], 0
cmp dword [eax + 0x14], 8
push edi
jb 0x40a43e
mov eax, dword [eax]
push 0
push 0x8000000
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x40a4c2
cmp esi, 0xffffffff
je 0x40a4c2
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push 0
lea eax, [esp + 0xc]
push eax
push edi
push ecx
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a49b
mov eax, dword [esp + 8]
cmp eax, edi
jne 0x40a49b
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.0040adc0
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40a4c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], eax
call fcn.00415b00
add esp, 4
call fcn.00415ae0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40a4d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov dword [esp + 8], 0
cmp dword [eax + 0x14], 8
push esi
jb 0x40a4ea
mov eax, dword [eax]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x40a567
cmp esi, 0xffffffff
je 0x40a567
mov ecx, dword [ebp + 8]
push 0
lea eax, [esp + 0xc]
push eax
push edi
push ecx
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a540
mov eax, dword [esp + 8]
cmp eax, edi
jne 0x40a540
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.0040adc0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40a567
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], eax
call fcn.00415b00
add esp, 4
call fcn.00415ae0
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a570
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x59ece0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
lea edx, [ebp - 0x20c]
push edx
xor ecx, ecx
push 0x104
mov dword [ebp - 0x264], eax
mov word [ebp - 0x20c], cx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor edi, edi
cmp eax, edi
je 0x40a6e6
cmp eax, 0x104
ja 0x40a6e6
xor eax, eax
push ebx
mov word [ebp - 0x260], ax
mov ebx, 7
lea eax, [ebp - 0x20c]
push esi
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x250], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40a5e2
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x260]
call fcn.00405c50
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x260]
xor edx, edx
push eax
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], edi
mov word [ebp - 0x244], dx
call fcn.00405b50
push 0xffffffffffffffff
xor ecx, ecx
push edi
lea edx, [ebp - 0x244]
mov word [ebp - 0x228], cx
push edx
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x218], edi
call fcn.00405b50
lea esi, [ebp - 0x228]
call fcn.00408b70
mov ecx, dword [ebp - 0x264]
push 0xffffffffffffffff
push edi
mov eax, esi
push eax
call fcn.00405b50
mov esi, 8
cmp dword [ebp - 0x214], esi
jb 0x40a690
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.0049d0c3
add esp, 4
xor edx, edx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x218], edi
mov word [ebp - 0x228], dx
cmp dword [ebp - 0x230], esi
jb 0x40a6bc
mov eax, dword [ebp - 0x244]
push eax
call fcn.0049d0c3
add esp, 4
cmp dword [ebp - 0x24c], esi
pop esi
pop ebx
jb 0x40a6d5
mov ecx, dword [ebp - 0x260]
push ecx
call fcn.0049d0c3
add esp, 4
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop edi
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret
Function at 0x40b7b0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
push eax
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esp, ebp
pop ebp
ret 4

Function at 0x40b7e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
lea eax, [esp + 8]
push eax
lea edx, [esp + 0x10]
push edx
mov edx, dword [ebp + 8]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x18], 0
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x1c], 4
mov dword [esp + 0x20], 4
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b854
mov ecx, dword [esp + 4]
cmp ecx, 4
je 0x40b839
cmp ecx, 3
jne 0x40b84f
cmp dword [esp + 8], 4
jne 0x40b84f
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0xc]
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov esp, ebp
pop ebp
ret 8

Function at 0x40b860
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1010
call fcn.004a2a90
mov eax, dword [0x59ece0]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea edx, [esp + 8]
push edx
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x14]
push edx
push 0
mov dword [esp + 0x18], 0
push eax
mov eax, dword [ecx]
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40b97a
mov eax, dword [esp + 0xc]
cmp eax, 1
jne 0x40b907
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b8d3
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.00405c50
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret 8
cmp eax, 2
jne 0x40b975
push 0x400
lea edx, [esp + 0x814]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], eax
test eax, eax
je 0x40b95a
cmp eax, 0x400
ja 0x40b95a
lea ecx, [esp + 0x810]
push ecx
mov ecx, edi
call fcn.00405a60
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
xor ecx, esp
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret 8