joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a8acc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4a8ae3
add esp, 0xfffffff0
call fcn.00405338
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043f024
mov eax, dword [0x4c307c]
cmp byte [eax], 0
jne 0x4a8b10
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x4c3304]
cmp word [eax + 2], 0
jne 0x4a8b2a
mov eax, dword [0x4c3304]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004aabc4
mov eax, dword [0x4c33f0]
cmp word [eax + 2], 0
jne 0x4a8b44
mov eax, dword [0x4c33f0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004aadd4
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x449948]
call fcn.0044fe84
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4ab384
mov dl, 1
mov eax, dword [0x4286a4]
call fcn.00404dd4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4286a4]
call fcn.00404dd4
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 [0x44e048]
call fcn.00459694
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4a8d24
mov eax, dword [0x4c31f0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00459b28
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4ab66c
mov dl, 1
mov eax, dword [0x4286a4]
call fcn.00404dd4
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x4c31f0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.004134e0
test eax, eax
je 0x4a8c55
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.004132c4
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.004134c4
test eax, eax
je 0x4a8c6d
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00406a88
push ebx
push 0x4aa594
call fcn.0049e7dc
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x4c307c]
cmp byte [eax], 0
jne 0x4a8cbe
mov eax, ebx
call fcn.004a8e98
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004ab898
mov eax, ebx
call fcn.004ac4cc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4a8d1b
call fcn.00405390
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a916c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4a920e
cmp dword [ebx + 0x94], 0
jne 0x4a9208
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4a90b8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4a9208
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_GetWindowLongW
test al, 8
je 0x4a91ce
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4a9208
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.00433478
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4a91dd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4a942c
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4c9284]
cmp dword [eax + 0x170], 0
je 0x4a9591
test bl, bl
jne 0x4a94df
cmp dword [esi + 0x9c], 0
jne 0x4a94d4
mov eax, esi
call fcn.004ac31c
push eax
push 0x4a9338
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4a94a5
mov eax, dword [0x4c9284]
cmp byte [eax + 0xd3], 0
je 0x4a94a5
mov eax, dword [esi + 0xd8]
call fcn.00408008
mov edi, eax
cmp edi, 0
jl 0x4a94a5
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4a948e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4a94d4
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00433478
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4a94b4
inc dword [esi + 0x9c]
jmp 0x4a9591
cmp dword [esi + 0x9c], 0
jle 0x4a9591
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4a9591
cmp dword [esi + 0x44], 0
je 0x4a953c
mov eax, dword [0x4c9284]
cmp byte [eax + 0xd3], 0
je 0x4a953c
mov eax, dword [esi + 0xd8]
call fcn.00408008
mov edi, eax
cmp edi, 0
jl 0x4a953c
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4a9525
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4a956b
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00433478
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4a954b
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x49c6b4]
call fcn.004081c8
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4aa1e0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4aa24b
cmp byte [ebx + 0xd3], 0
jne 0x4aa24b
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004069dc
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4aa238
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4aa258
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004068a0
jmp 0x4aa258
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004068a0
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4aba80
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4abaee
mov eax, esi
call fcn.004842dc
test al, al
je 0x4abaee
mov eax, dword [ebx + 0x84]
call fcn.00483f5c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4abaee
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4abae2
push 0
mov eax, dword [ebx + 0x84]
call fcn.00483f5c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0047aef8
jmp 0x4abaee
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004ab8b8
pop esi
pop ebx
ret
Function at 0x4ad1fc
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x40c284]
call fcn.00407518
xor eax, eax
push ebp
push 0x4ad346
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4c2ee4], 0
jne 0x4ad250
mov ecx, dword [0x4c3098]
mov dl, 1
mov eax, dword [0x40d3e4]
call fcn.00416f14
call fcn.004058dc
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.004047c8
mov eax, ebx
call fcn.00406724
mov dword [ebp - 0x20], eax
push esi
mov esi, 0x4ad354
lea edi, [ebp - 0x34]
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 esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00409634
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
test eax, eax
je 0x4ad297
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x4ad2ec
mov dword [ebp - 0x14], 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4ad2e5
lea eax, [ebp - 0x58]
mov edx, ebx
call fcn.00406af0
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x54]
mov ecx, 0x10
call fcn.00406a88
mov eax, dword [ebp - 0x5c]
pop edx
call fcn.00412078
test eax, eax
jne 0x4ad2e5
mov ebx, 0x15
jmp 0x4ad2f1
mov ebx, 0x10
jmp 0x4ad2f1
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push ebx
push 0
push esi
call dword [0x4c2ee4]
call fcn.004ad068
mov eax, dword [ebp - 4]
call fcn.004ad068
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.0040964c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ad34d
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00406898
lea eax, [ebp - 0xc]
mov edx, dword [0x40c284]
call fcn.004075f0
ret
Function at 0x4b158c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
test dl, dl
je 0x4b15a4
add esp, 0xfffffff0
call fcn.00405338
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4b16be
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
call fcn.00404218
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
dec ebx
test ebx, ebx
jl 0x4b16a8
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.004ad068
xor eax, eax
push ebp
push 0x4b1695
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.004ad068
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
lea ebx, [eax + edx*8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.00406af0
jmp 0x4b1666
lea eax, [ebx + 4]
mov ecx, 1
mov edx, 1
call fcn.00407098
mov eax, dword [ebx + 4]
call fcn.00406bf8
dec eax
jle 0x4b167a
mov eax, dword [ebx + 4]
cmp word [eax], 0x5f
je 0x4b1654
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b169c
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b16c5
lea eax, [ebp - 4]
call fcn.00406558
ret
Function at 0x404aa0
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 0x404ae2
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 0x404b02
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00408c70
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x404d58
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00407b30
test esi, esi
jne 0x404d8e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00407cb8
jmp 0x404dac
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404c3c
mov edi, eax
test esi, esi
je 0x404dac
cmp dword [ebx], 0
je 0x404dac
dec esi
jmp 0x404d95
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x404de0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x65f008], 0x8088405
inc edx
mov dword [ebx + 0x65f008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x4067ac
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00406ba4
mov byte [esp], al
cmp byte [esp], 0
jne 0x406938
test edi, edi
je 0x406938
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40686f
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40684a
cmp edi, 0xffffffff
je 0x40680b
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40680b
mov byte [esp], 0
jmp 0x406938
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40684a
test ebx, ebx
jne 0x406840
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402ad0
test eax, eax
jne 0x406840
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406938
call 0x406cc8
dec ebp
test ebp, ebp
jg 0x4067f0
cmp edi, 0xffffffff
je 0x40686f
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40686d
mov byte [esp], 0
jmp 0x406938
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4067ba
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402ad0
cmp ebx, eax
jne 0x40686f
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004069a8
mov edx, eax
mov ebx, dword [0x66b8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4068d6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4068d4
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4068d6
xor edi, edi
cmp byte [esp], 0
je 0x4068ff
mov ebx, dword [esi]
test bl, 1
jne 0x406918
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402ad0
cmp ebx, eax
jne 0x4068dc
mov byte [esp + 1], 1
jmp 0x406918
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402ad0
cmp ebx, eax
jne 0x4068ff
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x406889
cmp byte [esp], 0
je 0x406938
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40778c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x66b058], 0
je 0x4077f3
cmp word [0x66b344], 0xd7b2
jne 0x4077b5
cmp dword [0x66b34c], 0
jbe 0x4077b5
mov eax, 0x66b340
call dword [0x66b35c]
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, 0x407820
call fcn.0040858c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x65f034], 0
jne 0x40780f
push 0
push 0x65f9ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4079ec
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 [0x65f038], 0
je 0x407a17
mov edx, edi
mov eax, esi
call dword [0x65f038]
mov ebx, eax
jmp 0x407a28
mov eax, 8
call fcn.004048c8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x66b059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4079b4
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 0x407a5d
mov edx, 8
mov eax, ebx
call fcn.004048e4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40a888
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 0x40a9ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407b30
cmp si, word [0x65fa08]
jb 0x40a920
cmp si, word [0x65fc08]
ja 0x40a920
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40a920
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x65fa08]
jae 0x40a8fa
mov edi, ebx
dec edi
jmp 0x40a91b
cmp si, word [ebx*8 + 0x65fa08]
jbe 0x40a90a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40a91b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x65fa0c]
call fcn.0040a798
jmp 0x40a920
cmp edi, dword [ebp - 8]
jae 0x40a8e4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40a9cf
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a9cf
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.00408c70
push dword [ebp - 0x160]
push 0x40aa08
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00408c70
push dword [ebp - 0x164]
push 0x40aa18
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00408c70
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00408ea8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a9f4
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407b90
ret
Function at 0x40aba0
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 0x40aca3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x66db88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x66dba0]
jne 0x40abec
mov eax, esi
mov edx, 0x66dba2
mov ecx, 0x55
call fcn.00408c70
push 0x66db88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40ac8d
push 0x66db88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00407b30
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ac5b
cmp byte [0x66db84], 0
je 0x40ac20
mov edx, esi
mov eax, ebx
call fcn.0040aa84
jmp 0x40ac5b
mov edx, esi
mov eax, ebx
call fcn.0040a888
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40ac5b
cmp dword [esi], 0
je 0x40ac44
mov eax, esi
mov edx, 0x40acbc
call fcn.00408dc8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040a888
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00408dc8
push 0x66db88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x66dba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.00408bc4
push eax
push 0x66dba2
call sub.kernel32.dll_lstrcpynW
push 0x66db88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40acaa
lea eax, [ebp - 4]
call fcn.00407b30
ret
Function at 0x40aed8
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.00407c14
xor eax, eax
push ebp
push 0x40b0fd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40af18
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40af32
push 0x105
mov eax, dword [ebp - 4]
call fcn.00408bc4
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40b0e7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b10c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b001
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b10c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b001
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b148
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b001
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b148
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b001
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b17c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b001
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b1b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40b0e7
xor eax, eax
push ebp
push 0x40b0e0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040ace4
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 0x40b070
mov eax, dword [ebp - 0x10]
call fcn.004048c8
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.00408c1c
jmp 0x40b0bb
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40b1f0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40b0bb
mov eax, dword [ebp - 0x10]
call fcn.004048c8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40b1f0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00408c1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b0e7
cmp dword [ebp - 8], 0
je 0x40b0d6
mov eax, dword [ebp - 8]
call fcn.004048e4
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 0x40b104
lea eax, [ebp - 4]
call fcn.00407b30
ret