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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4afeac]
cmp byte [eax + 0xc], 0
je 0x44440d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x444406
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4b3544], 0
jne 0x4442f4
push 0x444414
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44441c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b3544], eax
cmp dword [0x45f578], 0
jne 0x4443ef
push 0x44442c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45f578], eax
cmp dword [0x45f578], 0
je 0x4443ef
push 0x444438
mov eax, dword [0x45f578]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b3548], eax
push 0x444448
mov eax, dword [0x45f578]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b354c], eax
push 0x44445c
mov eax, dword [0x45f578]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b3550], eax
push 0x444474
mov eax, dword [0x45f578]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b3554], eax
push 0x44448c
mov eax, dword [0x45f578]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b3558], eax
push 0x4444a0
mov eax, dword [0x45f578]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b355c], eax
push 0x4444b8
mov eax, dword [0x45f578]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b3560], eax
push 0x4444d0
mov eax, dword [0x45f578]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b3564], eax
push 0x4444ec
mov eax, dword [0x45f578]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b3568], eax
push 0x4444f8
mov eax, dword [0x45f578]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b356c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44440d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x449f0c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x449f60]
test si, 4
je 0x449f21
or bl, 1
test si, 8
je 0x449f2b
or bl, 4
test si, 1
je 0x449f35
or bl, 8
test si, 2
je 0x449f3f
or bl, 0x10
test si, 0x10
je 0x449f49
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449f58
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x449f64
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x449fa0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449f7e
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449f8d
or bl, 4
test esi, 0x20000000
je 0x449f98
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x451654
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x451666
add esp, 0xfffffff0
call fcn.00403bf0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a2d4
mov eax, dword [0x4afb5c]
mov dword [eax + 4], ebx
mov dword [eax], 0x4519f8
mov eax, dword [0x4afb68]
mov dword [eax + 4], ebx
mov dword [eax], 0x451a04
mov eax, ebx
call fcn.00451a10
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411ef8]
call fcn.0040389c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411ef8]
call fcn.0040389c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411ef8]
call fcn.0040389c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411ef8]
call fcn.0040389c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411ef8]
call fcn.0040389c
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, 0x44d4a8
push eax
push 0
push 0
mov eax, dword [0x4afcbc]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41de68]
call fcn.0041f6bc
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41de68]
call fcn.0041f6bc
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41de68]
call fcn.0041f6bc
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00451e40
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451d10
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451d10
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451d10
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4517a3
call fcn.00403c48
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x451af4
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 0x451c9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x451c80
mov dl, 1
mov eax, dword [0x41231c]
call fcn.0040389c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004046f8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x451c6f
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.004445fc
test al, al
je 0x451c62
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, 0x451cb0
lea eax, [ebp - 0x254]
call fcn.00409310
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x451c62
xor eax, eax
push ebp
push 0x451c5b
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 0x451ce8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x451c44
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404968
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 0x451c44
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404968
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451c62
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x451b65
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041609c
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 0x451ca6
lea eax, [ebp - 0x260]
call fcn.004046f8
ret

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

Disassembly:
push ecx
mov eax, dword [0x4b357c]
cmp byte [eax + 0xad], 0
jne 0x452689
cmp dword [0x4b3594], 0
jne 0x45264a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4525d4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4b3594], eax
cmp dword [0x4b3590], 0
jne 0x452665
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4b3590], eax
cmp dword [0x4b3598], 0
jne 0x452689
push esp
push 0
push 0
push 0x452578
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4b3598], eax
pop edx
ret
Function at 0x45285c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x452873
add esp, 0xfffffff0
call fcn.00403bf0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a2d4
mov eax, dword [0x4afca8]
cmp word [eax + 2], 0
jne 0x45289b
mov eax, dword [0x4afca8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045430c
mov eax, dword [0x4afd50]
cmp word [eax + 2], 0
jne 0x4528b5
mov eax, dword [0x4afd50]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00454518
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411ef8]
call fcn.0040389c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411ef8]
call fcn.0040389c
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411ef8]
call fcn.0040389c
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41e978]
call fcn.00426094
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x452a6c
mov eax, dword [0x4afbc4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426468
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x454bd8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4afbc4]
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.0040cab4
test eax, eax
je 0x4529bc
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408cc8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cae8
test eax, eax
je 0x4529d0
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404968
mov byte [ebx + 0xd4], 0
push ebx
push 0x453e6c
call fcn.0041b450
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4afaac]
cmp byte [eax], 0
jne 0x452a21
mov eax, ebx
call fcn.00452bb0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00454db4
mov eax, ebx
call fcn.00455914
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x452a61
call fcn.00403c48
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452e30
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4b357c]
cmp dword [eax + 0x30], 0
je 0x452eda
cmp dword [ebx + 0x94], 0
jne 0x452ed4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x452dc0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x452ed4
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 0x452e9a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x452ed4
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.0041432c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x452ea9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x453bf4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x453c29
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.004047e8
jmp 0x453c36
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040474c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x454f98
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x455006
mov eax, esi
call fcn.0043f32c
test al, al
je 0x455006
mov eax, dword [ebx + 0x84]
call fcn.0043f030
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x455006
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x454ffa
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043f030
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004374c8
jmp 0x455006
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00454dd4
pop esi
pop ebx
ret
Function at 0x403e71
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4d3094]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x400
lea eax, [ebp - 0x404]
mov esi, ecx
push 0
push eax
call fcn.004416c0
add esp, 0xc
lea eax, [ebp - 0x404]
push 0x200
push eax
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x404]
push eax
call fcn.0040283a
pop ecx
push eax
lea eax, [ebp - 0x404]
push eax
lea ecx, [esi + 0x80]
call fcn.004027c1
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0042746a
mov esp, ebp
pop ebp
ret 0x10

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

Disassembly:
push ebx
xor ebx, ebx
test ecx, ecx
je 0x40cef2
cmp word [ecx], bx
je 0x40cef2
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40cef2
push 1
test al, 0x10
movzx ebx, bl
pop ecx
cmove ebx, ecx
mov al, bl
pop ebx
ret

Function at 0x40cfd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4d3094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
push 0xa
pop ecx
push dword [ebp + 8]
lea edi, [ebp - 0x2c]
mov esi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push 0x4be960
push eax
call fcn.00407598
add esp, 0xc
lea eax, [ebp - 0x2c]
push esi
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40d083
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40d083
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x40d083
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40d083
lea eax, [edi + 1]
cmp eax, dword [ebx + 0x10]
ja 0x40d05f
mov dword [ebx + 0x10], eax
cmp dword [ebx + 0x14], 0x10
jb 0x40d057
mov ecx, dword [ebx]
jmp 0x40d059
mov ecx, ebx
mov byte [ecx + eax], 0
jmp 0x40d06c
sub eax, dword [ebx + 0x10]
mov ecx, ebx
push 0
push eax
call fcn.0040d5cd
push 0
mov ecx, ebx
call fcn.0040715b
push edi
push dword [ebp - 0x30]
mov ecx, ebx
call fcn.00407412
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042746a
mov esp, ebp
pop ebp
ret
Function at 0x40d096
Capabilities:
Get file version info

Disassembly:
push 0x1c
mov eax, 0x49e9ca
call fcn.0042801f
mov edi, edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
push eax
mov dword [ebp - 0x1c], eax
call fcn.00427769
pop ecx
mov esi, eax
xor eax, eax
push esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push eax
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40d11a
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4be750
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40d11a
mov ax, word [ecx + 0xa]
mov word [edi], ax
mov ax, word [ecx + 8]
mov word [edi + 2], ax
mov ax, word [ecx + 0xe]
mov word [edi + 4], ax
mov ax, word [ecx + 0xc]
mov word [edi + 6], ax
xor edi, edi
inc edi
jmp 0x40d12a
test esi, esi
je 0x40d135
push esi
call fcn.00427764
pop ecx
mov eax, edi
call fcn.00427f7c
ret

Function at 0x40d13d
Capabilities:
Get common file path

Disassembly:
push 0x84c
mov eax, 0x49e9fb
call fcn.00427fe8
mov esi, ecx
push 0x800
xor edi, edi
lea eax, [ebp - 0x810]
push edi
push eax
call fcn.004416c0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x840]
call fcn.00402861
mov dword [ebp - 4], edi
xor eax, eax
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], edi
mov word [ebp - 0x828], ax
mov byte [ebp - 4], 1
push edi
lea ecx, [ebp - 0x828]
call fcn.00402495
push 0xa
lea edx, [ebp - 0x828]
pop ecx
call fcn.0040b180
lea eax, [ebp - 0x828]
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x858]
call fcn.004088b8
pop ecx
cmp dword [eax + 0x14], 8
jb 0x40d1e4
mov eax, dword [eax]
push edi
push eax
call fcn.0044d4dd
pop ecx
pop ecx
mov ebx, eax
lea ecx, [ebp - 0x858]
push edi
neg ebx
push 1
sbb bl, bl
call fcn.00401656
add bl, 1
jne 0x40d1a9
lea eax, [ebp - 0x828]
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x858]
call fcn.004088b8
pop ecx
push eax
mov ecx, esi
call fcn.0040197a
push edi
push 1
lea ecx, [ebp - 0x858]
call fcn.00401656
cmp dword [esi + 0x14], 8
jb 0x40d23d
mov esi, dword [esi]
push edi
push 1
lea ecx, [ebp - 0x828]
call fcn.00401656
push edi
push 1
lea ecx, [ebp - 0x840]
call fcn.00401656
mov eax, esi
call fcn.00427f91
ret
Function at 0x40d261
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0x840
mov eax, 0x49ea5b
call fcn.00427fe8
mov edi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x844], ebx
call fcn.00402495
mov edx, str.JaqKKLKJSDKTn9NPjHsGku6Tny6RJL6TSDpRjHcSkm6NJLrSoarRj1IJXuMOcLbSSL_RrabSkuMRau6T
lea ecx, [ebp - 0x840]
call fcn.0040df73
mov edx, eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x828]
call fcn.0040b051
cmp dword [eax + 0x14], 8
jb 0x40d2a8
mov eax, dword [eax]
lea ecx, [ebp - 0x844]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00401656
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
push ebx
push 1
call fcn.00405e63
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.004416c0
add esp, 0xc
mov dword [ebp - 0x848], 0x400
cmp dword [ebp - 0x844], 0
je 0x40d3c0
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x84c]
push eax
push ebx
push str.TEMP
push dword [ebp - 0x844]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d3b4
lea eax, [ebp - 0x810]
push eax
call fcn.0040283a
pop ecx
push eax
lea eax, [ebp - 0x810]
mov ecx, edi
push eax
call fcn.004027c1
mov esi, dword [0x4ff2c4]
push esi
call fcn.0040283a
pop ecx
push eax
push ebx
push esi
mov ecx, edi
call fcn.00408242
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40d3b4
push 0x400
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x40d3b4
push dword [0x4ff2c4]
call fcn.0044f73d
mov esi, eax
lea eax, [ebp - 0x810]
push eax
call fcn.0040283a
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x810]
mov ecx, edi
push eax
push esi
push ebx
call fcn.00401bc1
push dword [ebp - 0x844]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00427f91
ret
Function at 0x40d42e
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x86c
mov eax, 0x49eae2
call fcn.00427fe8
mov esi, ecx
mov dword [ebp - 0x874], esi
xor ebx, ebx
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
mov dword [ebp - 0x878], ebx
call fcn.004416c0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x840]
call fcn.00402861
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x840]
cmp dword [ebp - 0x82c], 8
mov eax, dword [ebp - 0x830]
cmovae ecx, dword [ebp - 0x840]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x40d4c4
mov edi, 0x4be750
push edi
call fcn.0040283a
pop ecx
push eax
push edi
lea ecx, [ebp - 0x840]
call fcn.00402291
xor edi, edi
inc edi
xor eax, eax
mov dword [ebp - 0x844], 7
mov dword [ebp - 0x848], ebx
mov word [ebp - 0x858], ax
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], ebx
mov word [ebp - 0x828], ax
push 8
lea edx, [ebp - 0x858]
mov byte [ebp - 4], 2
pop ecx
call fcn.0040b180
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x870]
call fcn.004088b8
pop ecx
push eax
lea ecx, [ebp - 0x828]
call fcn.0040197a
push ebx
push edi
lea ecx, [ebp - 0x870]
call fcn.00401656
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
push ebx
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.0044d4dd
pop ecx
pop ecx
test eax, eax
jne 0x40d575
push ebx
push edi
lea ecx, [ebp - 0x828]
call fcn.00401656
push ebx
push edi
lea ecx, [ebp - 0x858]
call fcn.00401656
jmp 0x40d4c7
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.0044fa60
pop ecx
lea eax, [ebp - 0x828]
mov ecx, esi
push eax
call fcn.0040226c
push ebx
push edi
lea ecx, [ebp - 0x828]
call fcn.00401656
push ebx
push edi
lea ecx, [ebp - 0x858]
call fcn.00401656
push ebx
push edi
lea ecx, [ebp - 0x840]
call fcn.00401656
mov eax, esi
call fcn.00427f91
ret
Function at 0x40d97f
Capabilities:
Write file on windows

Disassembly:
push 0x450
mov eax, 0x49ebc2
call fcn.00427fe8
mov ebx, ecx
mov esi, dword [ebp + 8]
xor eax, eax
and dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
and dword [ebp - 4], eax
lea ecx, [ebp - 0x440]
call fcn.0040d13d
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
push 0x4be770
cmovae eax, dword [ebp - 0x440]
push eax
call fcn.0044e1fb
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x40da3d
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.004416c0
add esp, 0xc
lea eax, [ebp - 0x440]
cmp dword [ebp - 0x42c], 8
cmovae eax, dword [ebp - 0x440]
push eax
lea eax, [ebp - 0x410]
push str.Cannot_open_file___s_
push eax
call fcn.00407598
add esp, 0xc
lea eax, [ebp - 0x410]
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x45c]
push 0x4cf1e8
push eax
call fcn.004421c6
and dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0xf
mov byte [ebp - 0x428], 0
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x40da64
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x428]
call fcn.0040d6f8
test eax, eax
je 0x40db30
xor eax, eax
cmp dword [ebx + 0x2c], eax
je 0x40db0a
mov dword [ebp - 0x444], 0xf
mov dword [ebp - 0x448], eax
mov byte [ebp - 0x458], al
mov byte [ebp - 4], 2
lea edx, [ebp - 0x428]
cmp dword [ebp - 0x414], 0x10
lea ecx, [ebx + 0x1c]
cmovae edx, dword [ebp - 0x428]
cmp dword [ecx + 0x14], 0x10
jb 0x40dabd
mov ecx, dword [ecx]
lea eax, [ebp - 0x458]
push eax
push dword [ebp - 0x418]
call fcn.0040e33f
cmp dword [ebp - 0x444], 0x10
lea eax, [ebp - 0x458]
push edi
cmovae eax, dword [ebp - 0x458]
push 1
push dword [ebp - 0x448]
push eax
call fcn.0044de57
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x458]
push 0
push 1
call fcn.00407543
jmp 0x40db30
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
push edi
cmovae eax, dword [ebp - 0x428]
push 1
push dword [ebp - 0x418]
push eax
call fcn.0044de57
add esp, 0x10
push edi
call fcn.0044dad4
pop ecx
lea ecx, [ebx + 4]
lea eax, [ebp - 0x440]
cmp ecx, eax
je 0x40db4e
push 0xffffffffffffffff
push 0
push eax
call fcn.00402579
push 0
push 1
lea ecx, [ebp - 0x428]
call fcn.00407543
push 0
push 1
lea ecx, [ebp - 0x440]
call fcn.00401656
call fcn.00427f91
ret 4