joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42080c
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 0x4209b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4344c0]
call fcn.00444cc4
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00445684
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x420987
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.00433430
test al, al
je 0x42097a
lea eax, [ebp - 0xc]
push eax
push 0xf003f
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, 0x4209c0
lea eax, [ebp - 0x254]
call fcn.0043e86c
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x42097a
xor eax, eax
push ebp
push 0x420973
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4209f8
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x42095c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.004458b0
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x42095c
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.004458b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42097a
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x42087d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0043785c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4209b8
lea eax, [ebp - 0x260]
call fcn.00445684
ret

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

Disassembly:
push ecx
mov eax, dword [0x45c440]
cmp byte [eax + 0x8d], 0
jne 0x4211c5
cmp dword [0x45c484], 0
jne 0x421186
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x421110
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x45c484], eax
cmp dword [0x45c480], 0
jne 0x4211a1
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x45c480], eax
cmp dword [0x45c488], 0
jne 0x4211c5
push esp
push 0
push 0
push 0x4210b4
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x45c488], eax
pop edx
ret
Function at 0x4212bc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4212d3
add esp, 0xfffffff0
call fcn.00444fc8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043a6a0
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x434184]
call fcn.00444cc4
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x434184]
call fcn.00444cc4
mov dword [ebx + 0x90], eax
xor eax, eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x44], 0x80000018
mov dword [ebx + 0x60], 0x1f4
mov byte [ebx + 0x64], 1
xor eax, eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x5c], 0x9c4
mov byte [ebx + 0x70], 0
mov byte [ebx + 0x85], 1
mov dl, 1
mov eax, dword [0x411274]
call fcn.00416b14
mov esi, eax
mov dword [ebx + 0x80], esi
push 0x421444
mov eax, dword [0x45c34c]
mov eax, dword [eax]
push eax
call sub.USER32.DLL_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00416eb8
mov eax, dword [ebx + 0x80]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x422d24
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45c34c]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
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.004415b4
test eax, eax
je 0x4213c3
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0043e1f4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.004415dc
test eax, eax
je 0x4213d7
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.USER32.DLL_CharLowerA
lea eax, [ebx + 0x74]
lea edx, [ebp - 0x101]
mov ecx, 0x100
call fcn.004458b0
mov eax, dword [0x45c350]
cmp byte [eax], 0
jne 0x421408
mov eax, ebx
call fcn.00421530
mov byte [ebx + 0x41], 1
mov byte [ebx + 0x42], 1
mov byte [ebx + 0x43], 1
mov byte [ebx + 0x86], 1
xor eax, eax
mov dword [ebx + 0x88], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x42143a
call fcn.00445020
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x421788
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45c440]
cmp dword [eax + 0x24], 0
je 0x421818
cmp dword [ebx + 0x7c], 0
jne 0x421815
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x42171c
call sub.USER32.DLL_EnumWindows
mov eax, dword [ebx + 0x78]
cmp dword [eax + 8], 0
je 0x421815
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 0x4217e4
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x78]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x421815
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x78]
call fcn.00435730
push eax
call sub.USER32.DLL_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4217f0
inc dword [ebx + 0x7c]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x422168
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x8c], 0
je 0x42219d
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.USER32.DLL_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00445768
jmp 0x4221a7
mov eax, esi
mov edx, dword [ebx + 0x74]
call fcn.0044571c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x423054
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x42308c
mov eax, esi
call fcn.0042f340
test al, al
je 0x42308c
mov eax, dword [ebx + 0x6c]
call fcn.0042ef18
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x42308c
push 0
mov eax, dword [ebx + 0x6c]
call fcn.0042ef18
push eax
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
ret

Function at 0x42708c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], edx
xor eax, eax
mov dword [ebp - 0x14], eax
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x45c4c8], 0
sete dl
or al, dl
jne 0x4271d0
mov eax, dword [0x45c4cc]
mov bx, 0xffff
call fcn.00444ed0
mov eax, dword [0x45c4c8]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x42719f
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x45c4c8]
call fcn.00435730
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x427197
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x16c], 0
je 0x427197
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x427197
mov eax, dword [ebp - 0x10]
call fcn.0042ef18
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x427197
push ebp
call fcn.00427048
pop ecx
test al, al
jne 0x427197
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x8c]
cmp eax, dword [ebp - 0x10]
jne 0x427153
mov eax, dword [ebp - 0x10]
call fcn.0042d85c
dec eax
jle 0x427197
mov byte [ebp - 0x15], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x15]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov bx, 0xffc2
call fcn.00444ed0
cmp byte [ebp - 0x15], 0
je 0x427197
push dword [ebp - 4]
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x427197
mov edx, dword [ebp - 0x10]
mov eax, dword [0x45c4cc]
call fcn.004268f8
inc edi
dec esi
jne 0x4270e6
mov eax, dword [0x45c4cc]
cmp dword [eax + 8], 0
jle 0x4271b7
mov eax, dword [0x45c4cc]
call fcn.00426988
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4271d0
push ebp
mov eax, dword [ebp - 0x14]
call fcn.00426f00
pop ecx
test al, al
jne 0x4271d0
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c9e8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x42ca19
je 0x42ca73
sub eax, 7
je 0x42ca3a
dec eax
je 0x42ca64
sub eax, 0x17
je 0x42caf4
jmp 0x42cb32
add eax, 0xffffff00
sub eax, 9
jb 0x42cae0
add eax, 0xffffff09
sub eax, 0xb
jb 0x42caca
jmp 0x42cb32
mov eax, ebx
call fcn.0041a25c
mov edi, eax
test edi, edi
je 0x42cb92
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xc8]
test al, al
je 0x42cb9b
jmp 0x42cb92
test byte [ebx + 0x44], 0x20
jne 0x42cb9b
jmp 0x42cb92
mov edx, esi
mov eax, ebx
call fcn.0042a2dc
cmp dword [esi + 0xc], 0xffffffff
jne 0x42cb9b
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.0043c1ec
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.00428d84
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.0042c898
test eax, eax
je 0x42cb9b
mov dword [esi + 0xc], 1
jmp 0x42cb9b
mov edx, esi
mov eax, ebx
call fcn.0042c95c
test al, al
jne 0x42cb9b
jmp 0x42cb92
mov eax, ebx
call fcn.00429954
test al, al
jne 0x42cb9b
jmp 0x42cb92
mov eax, ebx
call fcn.0042ef18
mov edi, eax
call sub.USER32.DLL_GetCapture
cmp edi, eax
jne 0x42cb92
cmp dword [0x45885c], 0
je 0x42cb92
mov eax, dword [0x45885c]
cmp ebx, dword [eax + 0x24]
jne 0x42cb92
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x45885c]
call fcn.0042a1f8
jmp 0x42cb92
mov eax, dword [0x45c490]
cmp byte [eax + 0x20], 0
je 0x42cb92
mov eax, dword [0x45c490]
cmp dword [eax + 0x1c], 0
je 0x42cb92
mov eax, dword [esi]
mov edx, dword [0x45c490]
cmp eax, dword [edx + 0x1c]
jne 0x42cb92
lea eax, [ebp - 0x110]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.0041a170
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb9
call fcn.00444ed0
jmp 0x42cb9b
mov edx, esi
mov eax, ebx
call fcn.0042a2dc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d02c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x42d048
cmp dword [esi + 4], 0
je 0x42d075
test byte [ebx + 0x45], 1
jne 0x42d067
mov eax, ebx
call fcn.0042c0a4
test eax, eax
jne 0x42d067
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x42d185
mov edx, esi
mov eax, ebx
call fcn.0042cca4
jmp 0x42d185
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x42d17e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0042ef18
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0042a1f8
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0042d02c
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0042ef18
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d185
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43e164
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00445768
add esp, 0x104
pop ebx
ret

Function at 0x44035c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x440395
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00445768
jmp 0x44039e
mov eax, ebx
mov edx, esi
call fcn.0044571c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4403a8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x4403c9
mov al, byte [esp]
jmp 0x4403cb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x444b6c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x458b8c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x444c04
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x444be4
xor eax, eax
push ebp
push 0x444bdd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x444c20
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x444be4
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x458b8c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x458b8c], ax
mov esp, ebp
pop ebp
ret
Function at 0x4469ac
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x446b64
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x446a0d
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x446b80
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x446a7a
xor eax, eax
push ebp
push 0x446a73
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x446a5c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x446ba0
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446a7a
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x446b5b
cmp byte [ebp - 0xd], 0
jne 0x446abc
cmp byte [ebp - 0x12], 0
je 0x446b5b
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x446ad5
dec ebx
cmp byte [ebx], 0x2e
je 0x446ae4
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x446ad4
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x446b5b
inc ebx
cmp byte [ebp - 0x12], 0
je 0x446b11
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x446b5b
cmp byte [ebp - 0xd], 0
je 0x446b5b
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x446b5b
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x446f24
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x44700c
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x45cb0c], 1
jae 0x446ffe
xor eax, eax
mov dword [0x45c718], eax
xor eax, eax
mov dword [0x45c720], eax
xor eax, eax
mov dword [0x45c724], eax
mov byte [0x45c72a], 2
mov byte [0x45c72b], 2
mov byte [0x45c72c], 3
mov word [0x45cad4], 0
mov word [0x45cae4], 1
mov word [0x45caf4], 0xa
mov dword [0x45cafc], 0x80020004
mov dword [0x45cac8], 0x446300
mov dword [0x45cacc], 0x4462f8
mov dword [0x45cad0], 0x446300
call fcn.00444b3c
test al, al
je 0x446fbd
call fcn.00444b6c
call fcn.00444c30
mov eax, 0x45c730
mov edx, 0x447018
call fcn.00442452
mov eax, 0x45c8fc
mov edx, 0x447018
call fcn.00442452
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x45c710], eax
call fcn.004433b8
mov dword [0x45c70c], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x45c704], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447013
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x448d00
call fcn.00449ec4
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x448d1c
test bl, 1
je 0x448d1c
call fcn.004500cc
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x448ee8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.00449a98
test byte [ebp + 0xd], 0xc0
jne 0x448f0c
mov eax, dword [0x459900]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x448f19
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x448f46
je 0x448f58
sub ecx, 0x100
je 0x448f66
sub ecx, 0x100
je 0x448f6d
sub ecx, 0x100
je 0x448f5f
jmp 0x448f74
sub ecx, 0x600
je 0x448f6d
sub ecx, 0x100
je 0x448f58
jmp 0x448f74
mov edi, 1
jmp 0x448f79
mov edi, 2
jmp 0x448f79
mov edi, 4
jmp 0x448f79
mov edi, 5
jmp 0x448f79
mov edi, 3
test byte [ebp + 0xd], 1
je 0x448fa0
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x45937c]
test al, 0x80
je 0x448f99
mov ebx, 0x80
jmp 0x448fb2
mov ebx, 1
jmp 0x448fb2
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x448fb2
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x448fc4
je 0x448fcd
dec eax
je 0x448fd6
jmp 0x448fdf
mov dword [ebp - 4], 0x80000000
jmp 0x448fee
mov dword [ebp - 4], 0x40000000
jmp 0x448fee
mov dword [ebp - 4], 0xc0000000
jmp 0x448fee
push 1
call fcn.00449e58
pop ecx
mov ebx, eax
jmp 0x4490da
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x44900a
sub eax, 0x10
je 0x449011
sub eax, 0x10
je 0x44901a
sub eax, 0x10
je 0x449023
jmp 0x449023
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x44902a
mov dword [ebp - 8], 1
jmp 0x44902a
mov dword [ebp - 8], 2
jmp 0x44902a
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x449093
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x449088
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x449088
add ebx, 0xffffffb2
push ebx
call fcn.00449e58
pop ecx
mov ebx, eax
jmp 0x4490da
mov edi, esi
push edi
call fcn.00448e4c
pop ecx
test eax, eax
je 0x4490a7
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4490b3
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00449b98
add esp, 8
mov ebx, eax
inc eax
jne 0x4490da
push 4
call fcn.00449e58
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.00449acc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret