joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46cc80
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 0x46ce2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46ce0c
mov dl, 1
mov eax, dword [0x41c42c]
call fcn.00403f74
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404dd0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46cdfb
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.00459ad0
test al, al
je 0x46cdee
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, 0x46ce3c
lea eax, [ebp - 0x254]
call fcn.0040c230
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46cdee
xor eax, eax
push ebp
push 0x46cde7
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 0x46ce74
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46cdd0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405048
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 0x46cdd0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405048
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46cdee
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46ccf1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00421120
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 0x46ce32
lea eax, [ebp - 0x260]
call fcn.00404dd0
ret

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

Disassembly:
push ecx
mov eax, dword [0x718e5c]
cmp byte [eax + 0xa5], 0
jne 0x46d819
cmp dword [0x718e74], 0
jne 0x46d7da
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46d764
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x718e74], eax
cmp dword [0x718e70], 0
jne 0x46d7f5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x718e70], eax
cmp dword [0x718e78], 0
jne 0x46d819
push esp
push 0
push 0
push 0x46d708
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x718e78], eax
pop edx
ret
Function at 0x46d970
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46d987
add esp, 0xfffffff0
call fcn.00404308
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004271d8
mov eax, dword [0x7157a8]
cmp word [eax + 2], 0
jne 0x46d9af
mov eax, dword [0x7157a8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046f04c
mov eax, dword [0x7158e4]
cmp word [eax + 2], 0
jne 0x46d9c9
mov eax, dword [0x7158e4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046f244
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41bdc8]
call fcn.00403f74
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41bdc8]
call fcn.00403f74
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], 0x80000018
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 [0x429724]
call fcn.00431310
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x46db50
mov eax, dword [0x715648]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004316e0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46f7c4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x715648]
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.004105d8
test eax, eax
je 0x46dabe
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040bb78
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00410600
test eax, eax
je 0x46dad2
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.00405048
mov eax, dword [0x715440]
cmp byte [eax], 0
jne 0x46db06
mov eax, ebx
call fcn.0046dc78
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.0046f9a0
mov eax, ebx
call fcn.004703a0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46db46
call fcn.00404360
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46deec
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x718e5c]
cmp dword [eax + 0x30], 0
je 0x46df96
cmp dword [ebx + 0x94], 0
jne 0x46df90
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46de7c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46df90
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 0x46df56
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46df90
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.0041e790
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46df65
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46ea74
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 0x46eaa9
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.00404ec0
jmp 0x46eab6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404e24
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46fb7c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46fbbd
mov eax, esi
call fcn.004551c8
test al, al
je 0x46fbbd
mov eax, dword [ebx + 0x84]
call fcn.00454ec4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46fbbd
push 0
mov eax, dword [ebx + 0x84]
call fcn.00454ec4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4759e4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x475b4d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404e68
mov eax, dword [ebp - 0x10]
call fcn.004755c4
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x475a36
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.0040534c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00475d38
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x475b0b
xor eax, eax
push ebp
push 0x475b04
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00475704
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00475b5c
test al, al
je 0x475ae2
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404ec0
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x475ae2
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004052ac
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x475adc
mov eax, dword [ebp - 0x14]
call fcn.004052ac
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404fd0
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.004759e4
dec ebx
cmp ebx, 0xffffffff
jne 0x475a95
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475b0b
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00475704
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.004052ac
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.004756f0
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475b54
lea eax, [ebp - 0x3c]
call fcn.00404dd0
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404df4
ret

Function at 0x475b5c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.0040376c
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x715b70]
cmp byte [edx + 0xc], 0
je 0x475bc0
mov edx, dword [0x715b68]
cmp dword [edx], 2
jne 0x475bc0
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x475cb4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004052ac
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x475d0c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x715b7c]
mov dl, 1
mov eax, dword [0x4754d0]
call fcn.0040f920
call fcn.00404770
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004755d8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x475eb8
Capabilities:
Query or enumerate registry value

Disassembly:
add esp, 0xffffff54
cmp byte [0x704808], 0
jne 0x475f8a
mov byte [0x704808], 1
xor eax, eax
mov dword [0x7047f0], eax
mov dword [esp + 0x18], 0x94
lea eax, [esp + 0x18]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x1c], 3
ja 0x475f00
cmp dword [esp + 0x1c], 3
jne 0x475f60
cmp dword [esp + 0x20], 0x33
jbe 0x475f60
mov dword [esp + 4], 9
push esp
push 0x20019
push 0
push 0x475f94
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x475f8a
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0x475fc4
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x475f8a
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp byte [esp + 8], 0x31
jne 0x475f8a
cmp byte [esp + 9], 0
jne 0x475f8a
jmp 0x475f75
push 0
push 0x475fc4
push 0x475fcc
call sub.kernel32.dll_GetProfileIntA
test eax, eax
je 0x475f8a
mov eax, dword [0x7047ec]
call fcn.004052ac
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x7047f0], eax
add esp, 0xac
ret
Function at 0x47e254
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47e32c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x718ee8], 0
jne 0x47e310
lea eax, [ebp - 4]
mov edx, 0x47e344
call fcn.00404e68
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004052ac
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x47e310
mov eax, ebx
call fcn.00402a9c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x47e309
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x47e2f3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x47e354
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47e2f3
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x718ee8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e310
mov eax, dword [ebp - 0xc]
call fcn.00402abc
ret
mov ebx, dword [0x718ee8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e333
lea eax, [ebp - 4]
call fcn.00404dd0
ret

Function at 0x495990
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4959be
mov eax, ebx
call fcn.00496448
cmp dword [ebx + 0x3c], 0
je 0x4959b7
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x495a2f
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x495a21
cmp dword [ebx + 8], 0
je 0x4959e0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x4959f2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x495a21
cmp dword [ebx + 8], 0
je 0x4959d3
cmp eax, 3
je 0x495a05
dec eax
jne 0x4959d3
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 0x4959d3
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x4959d3
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x495a4d
cmp dword [ebx + 0x10], 0xcc
je 0x495a4d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00495a58
pop ebx
ret
Function at 0x4a5df8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x41b494]
call fcn.00405b4c
xor eax, eax
push ebp
push 0x4a5f3c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x705318], 0
jne 0x4a5e4b
mov ecx, dword [0x715464]
mov dl, 1
mov eax, dword [0x409fd8]
call fcn.0040f8e4
call fcn.00404770
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.0040376c
mov eax, ebx
call fcn.00405774
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4a5f4c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406fe4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00405784
test eax, eax
jle 0x4a5ee3
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4a5edc
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.0040507c
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00405048
mov eax, dword [ebp - 0x48]
pop edx
call fcn.0040ae6c
test eax, eax
jne 0x4a5edc
mov ebx, 0x15
jmp 0x4a5ee8
mov ebx, 0x10
jmp 0x4a5ee8
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x705318]
call fcn.004a5d50
mov eax, dword [ebp - 8]
call fcn.004a5d50
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406ffc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5f43
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404df4
lea eax, [ebp - 0x10]
mov edx, dword [0x41b494]
call fcn.00405c1c
ret

Function at 0x4a7020
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a707a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x715514]
cmp byte [eax], 0
je 0x4a704a
push ebx
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
jmp 0x4a7064
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405000
mov eax, dword [ebp - 4]
call fcn.004052ac
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7081
lea eax, [ebp - 4]
call fcn.00404dd0
ret

Function at 0x4a7088
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a70e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x715514]
cmp byte [eax], 0
je 0x4a70b6
push esi
push ebx
call sub.kernel32.dll_SetFileAttributesW
mov ebx, eax
jmp 0x4a70d1
push esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405000
mov eax, dword [ebp - 4]
call fcn.004052ac
push eax
call sub.kernel32.dll_SetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a70ee
lea eax, [ebp - 4]
call fcn.00404dd0
ret
Function at 0x4a70f8
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a7175
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x715514]
cmp byte [eax], 0
je 0x4a712c
push edi
push esi
push ebx
call sub.kernel32.dll_CopyFileW
mov ebx, eax
jmp 0x4a715a
push edi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00405000
mov eax, dword [ebp - 4]
call fcn.004052ac
push eax
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00405000
mov eax, dword [ebp - 8]
call fcn.004052ac
push eax
call sub.kernel32.dll_CopyFileA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a717c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404df4
ret

Function at 0x4a7430
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
xor esi, esi
mov eax, ebx
call fcn.00408880
cmp ax, 0xffff
jne 0x4a7451
neg ebx
mov eax, ebx
shr eax, 4
and eax, 0xffff
inc eax
and ebx, 0xf
mov dword [ebp - 8], ebx
push 6
push eax
push edi
call sub.kernel32.dll_FindResourceA
test eax, eax
je 0x4a74d2
push eax
push edi
call sub.kernel32.dll_LoadResource
test eax, eax
je 0x4a74d2
push eax
call sub.kernel32.dll_LockResource
mov ebx, eax
mov eax, dword [ebp - 8]
dec eax
test eax, eax
jl 0x4a7498
inc eax
movzx edx, word [ebx]
add edx, edx
add ebx, edx
add ebx, 2
dec eax
jne 0x4a748b
movzx esi, word [ebx]
add ebx, 2
cmp dword [ebp - 4], 0
je 0x4a74d2
cmp dword [ebp + 8], 0
jle 0x4a74d2
mov eax, dword [ebp + 8]
dec eax
mov edx, esi
call fcn.00431e18
mov esi, eax
test esi, esi
jle 0x4a74c9
mov ecx, esi
add ecx, ecx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00408894
mov eax, dword [ebp - 4]
mov word [eax + esi*2], 0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x4a8134
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4a8198
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00405048
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040b438
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a819f
lea eax, [ebp - 0xc]
call fcn.00404dd0
ret
Function at 0x4a823c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x4a8298
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x4a8267
call fcn.00410d54
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.00402d78
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x4a8298
call fcn.00410d54
add esp, 0x14
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004052ac
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4b5c76
test byte [ebp - 0xc], 0x10
jne 0x4b5c7a
xor eax, eax
jmp 0x4b5c7c
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x4b8430
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, 0x105
call fcn.004b61a0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
test eax, eax
je 0x4b8463
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00404fd0
mov eax, dword [ebp - 8]
call fcn.004b61c4
pop ecx
pop ecx
pop ebp
ret

Function at 0x4b94e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004052ac
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4b9542
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
call fcn.004b8da0
mov edx, dword [ebp + 0xc]
mov byte [edx], al
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret 0xc