joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458c10
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 0x458dbb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x458d9c
mov dl, 1
mov eax, dword [0x416790]
call fcn.00403304
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004041e8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x458d8b
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.00446c1c
test al, al
je 0x458d7e
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, 0x458dcc
lea eax, [ebp - 0x254]
call fcn.00409528
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x458d7e
xor eax, eax
push ebp
push 0x458d77
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 0x458e04
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x458d60
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404458
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 0x458d60
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404458
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458d7e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x458c81
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041a998
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 0x458dc2
lea eax, [ebp - 0x260]
call fcn.004041e8
ret

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

Disassembly:
push ecx
mov eax, dword [0x474bec]
cmp byte [eax + 0xa5], 0
jne 0x459761
cmp dword [0x474c04], 0
jne 0x459722
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4596ac
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x474c04], eax
cmp dword [0x474c00], 0
jne 0x45973d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x474c00], eax
cmp dword [0x474c08], 0
jne 0x459761
push esp
push 0
push 0
push 0x459650
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x474c08], eax
pop edx
ret
Function at 0x459858
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45986f
add esp, 0xfffffff0
call fcn.00403658
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ede0
mov eax, dword [0x473398]
cmp word [eax + 2], 0
jne 0x459897
mov eax, dword [0x473398]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045af48
mov eax, dword [0x473478]
cmp word [eax + 2], 0
jne 0x4598b1
mov eax, dword [0x473478]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b140
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4161c8]
call fcn.00403304
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4161c8]
call fcn.00403304
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 [0x42132c]
call fcn.004286dc
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x459a38
mov eax, dword [0x473284]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00428aac
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45b6f0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x473284]
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.0040cd78
test eax, eax
je 0x4599a6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408f1c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cda0
test eax, eax
je 0x4599ba
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.00404458
mov eax, dword [0x47311c]
cmp byte [eax], 0
jne 0x4599ee
mov eax, ebx
call fcn.00459b60
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.0045b8cc
mov eax, ebx
call fcn.0045c290
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x459a2e
call fcn.004036b0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459de0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x474bec]
cmp dword [eax + 0x30], 0
je 0x459e8a
cmp dword [ebx + 0x94], 0
jne 0x459e84
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x459d70
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x459e84
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 0x459e4a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x459e84
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.00418810
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x459e59
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45a9ec
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 0x45aa21
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.004042d8
jmp 0x45aa2e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040423c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45baa8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45bae9
mov eax, esi
call fcn.00442248
test al, al
je 0x45bae9
mov eax, dword [ebx + 0x84]
call fcn.00441f44
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45bae9
push 0
mov eax, dword [ebx + 0x84]
call fcn.00441f44
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45c360
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404698
xor eax, eax
push ebp
push 0x45c417
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004044a8
mov dword [ebp - 8], eax
xor esi, esi
xor edi, edi
lea eax, [ebp - 0xc]
call fcn.004041e8
cmp esi, dword [ebp - 8]
jge 0x45c3f4
inc esi
mov eax, dword [ebp - 4]
mov bl, byte [eax + esi - 1]
cmp bl, 0x5c
je 0x45c3b8
cmp bl, 0x2f
jne 0x45c3da
inc edi
cmp edi, 1
jle 0x45c3da
mov eax, dword [ebp - 0xc]
call fcn.00408cb8
test al, al
jne 0x45c3da
push 0
mov eax, dword [ebp - 0xc]
call fcn.004046a8
push eax
call sub.kernel32.dll_CreateDirectoryA
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004043d0
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.004044b0
cmp esi, dword [ebp - 8]
jl 0x45c3a6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c41e
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040420c
lea eax, [ebp - 4]
call fcn.004041e8
ret
Function at 0x45c6b4
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404698
mov eax, dword [ebp - 8]
call fcn.00404698
xor eax, eax
push ebp
push 0x45c82c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004046a8
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x45c71f
mov ebx, dword [ebp - 0x10]
jmp 0x45c811
push 0
push esi
call sub.kernel32.dll_GetFileSize
mov edi, eax
push 0
push 0x80
push 2
push 0
push 3
push 0x10000000
mov eax, dword [ebp - 8]
call fcn.004046a8
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x14], eax
xor ebx, ebx
cmp edi, ebx
jbe 0x45c7ff
lea eax, [ebx + 4]
cmp edi, eax
jb 0x45c7ff
push 0
push 0
push ebx
push esi
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push esi
call sub.kernel32.dll_ReadFile
add ebx, 5
mov eax, dword [ebp - 0x18]
add eax, ebx
cmp edi, eax
jb 0x45c7f0
push 0
push 0
push ebx
push esi
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [0x474cc4]
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
add dword [eax], edx
add ebx, dword [ebp - 0x18]
mov dword [ebp - 0x10], 0xffffffff
jmp 0x45c7f7
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x45c7ff
cmp edi, ebx
ja 0x45c756
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
push esi
call sub.kernel32.dll_CloseHandle
mov ebx, dword [ebp - 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c833
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040420c
ret
Function at 0x43b649
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x43b3c1
or ebx, edx
call fcn.0043b692
sub esp, 4
mov dword [esp], 0xa5d995d3
mov edx, dword [esp]
add esp, 4
or edx, edx
xor dword [esi], ecx
or edx, ebx
dec edx
mov edx, ebx
inc esi
add edx, 0x84300930
add edx, 1
sub edx, 0x14663c06
cmp esi, eax
jne fcn.0043b649
mov ebx, ebx
inc edx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40557c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4055be
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x4055de
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040860c
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x406694
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00406b3c
mov byte [esp], al
cmp byte [esp], 0
jne 0x40681d
test edi, edi
je 0x40681d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40675d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x406738
cmp edi, 0xffffffff
je 0x4066f9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4066f9
mov byte [esp], 0
jmp 0x40681d
cmp dword [esi], 1
jg 0x406738
cmp dword [esi], 0
jne 0x40672a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40672a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40681d
lea eax, [esp + 0xc]
call fcn.00406374
dec ebp
test ebp, ebp
jg 0x4066de
cmp edi, 0xffffffff
je 0x40675d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40675b
mov byte [esp], 0
jmp 0x40681d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4066a2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40675d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00406898
mov edx, eax
mov ebx, dword [0x4b28f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4067c1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4067bf
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4067c1
xor edi, edi
cmp byte [esp], 0
je 0x4067e7
mov ebx, dword [esi]
test bl, 1
jne 0x4067fd
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4067c7
mov byte [esp + 1], 1
jmp 0x4067fd
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4067e7
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x406774
cmp byte [esp], 0
je 0x40681d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4076c4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b2058], 0
je 0x40772b
cmp word [0x4b2344], 0xd7b2
jne 0x4076ed
cmp dword [0x4b234c], 0
jbe 0x4076ed
mov eax, 0x4b2340
call dword [0x4b235c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x407758
call fcn.00408220
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ae02e], 0
jne 0x407747
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4078ec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4ae030], 0
je 0x407917
mov edx, edi
mov eax, esi
call dword [0x4ae030]
mov ebx, eax
jmp 0x407928
mov eax, 8
call fcn.004053f8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4b2059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4078b4
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x407958
mov eax, ebx
call fcn.00405414
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40a978
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40aadd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407a2c
cmp si, word [0x4aea00]
jb 0x40aa10
cmp si, word [0x4aec00]
ja 0x40aa10
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40aa10
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4aea00]
jae 0x40a9ea
mov edi, ebx
dec edi
jmp 0x40aa0b
cmp si, word [ebx*8 + 0x4aea00]
jbe 0x40a9fa
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40aa0b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4aea04]
call fcn.0040a898
jmp 0x40aa10
cmp edi, dword [ebp - 8]
jae 0x40a9d4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40aabf
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40aabf
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040860c
push dword [ebp - 0x160]
push 0x40aaf8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040860c
push dword [ebp - 0x164]
push 0x40ab08
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040860c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00408844
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aae4
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407a8c
ret
Function at 0x40ac90
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ad94
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b4c10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4b4c28]
jne 0x40acdc
mov eax, esi
mov edx, 0x4b4c2a
mov ecx, 0x55
call fcn.0040860c
push 0x4b4c10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40ad7e
push 0x4b4c10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00407a2c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ad4b
cmp byte [0x4b4c0c], 0
je 0x40ad10
mov edx, esi
mov eax, ebx
call fcn.0040ab74
jmp 0x40ad4b
mov edx, esi
mov eax, ebx
call fcn.0040a978
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40ad4b
cmp dword [esi], 0
je 0x40ad34
mov eax, esi
mov edx, 0x40adac
call fcn.00408764
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040a978
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00408764
push 0x4b4c10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4b4c28], bx
mov eax, dword [esi]
call fcn.00408568
mov ecx, eax
mov eax, 0x4b4c2a
mov edx, 0xaa
call fcn.0040a7f8
push 0x4b4c10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ad9b
lea eax, [ebp - 4]
call fcn.00407a2c
ret
Function at 0x40afc4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407b10
xor eax, eax
push ebp
push 0x40b1e9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40b004
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40b01e
mov eax, dword [ebp - 4]
call fcn.00408568
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040a7f8
cmp word [ebp - 0x21a], 0
je 0x40b1d3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b1f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b0ed
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b1f8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b0ed
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b234
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b0ed
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b234
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b0ed
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b268
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b0ed
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b29c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40b1d3
xor eax, eax
push ebp
push 0x40b1cc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040add4
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40b15c
mov eax, dword [ebp - 0x10]
call fcn.004053f8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004085d0
jmp 0x40b1a7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40b2dc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40b1a7
mov eax, dword [ebp - 0x10]
call fcn.004053f8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40b2dc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004085d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b1d3
cmp dword [ebp - 8], 0
je 0x40b1c2
mov eax, dword [ebp - 8]
call fcn.00405414
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b1f0
lea eax, [ebp - 4]
call fcn.00407a2c
ret