joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40541d
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x818
mov eax, dword [0x439740]
xor eax, esp
mov dword [esp + 0x814], eax
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov esi, edx
push ebx
call dword [sym.imp.USER32.dll_GetDC]
xor edi, edi
mov ebp, eax
push edi
push edi
push 0x31
push ebx
mov dword [esp + 0x20], edi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40545f
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x400
lea eax, [esp + 0x28]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [esp + 0x840], 8
mov eax, dword [esp + 0x82c]
jae 0x405488
lea eax, [esp + 0x82c]
lea ecx, [esp + 0x1c]
push ecx
push dword [esp + 0x840]
push eax
push ebp
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x40551b
lea ecx, [esp + 0x24]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x10]
jne 0x4054a7
sub ecx, edx
lea eax, [esp + 0x14]
push eax
sar ecx, 1
lea eax, [esp + 0x28]
push ecx
push eax
push ebp
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x40551b
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x14]
js 0x40551b
mov eax, dword [esp + 0x848]
test eax, eax
jne 0x4054ec
mov eax, dword [esi + 8]
sub eax, dword [esi]
sub eax, dword [esp + 0x14]
cmp byte [esp + 0x844], 0
lea edi, [eax + ecx]
je 0x4054fd
sub dword [esi], edi
jmp 0x405500
add dword [esi + 8], edi
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
push 1
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
push eax
push dword [esi + 4]
push dword [esi]
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
xor eax, eax
lea ecx, [esp + 0x82c]
push eax
push 1
call fcn.004098d4
mov ecx, dword [esp + 0x824]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00410549
add esp, 0x818
ret

Function at 0x40569e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
cmp byte [0x43bad0], 0
mov eax, edx
push esi
mov dword [esp + 4], eax
je 0x40572c
push ebx
push ebp
push edi
push 5
movzx eax, cx
xor ebp, ebp
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov edi, eax
push ebx
push edi
call fcn.00414210
or dword [edi + 8], 0x400000
add esp, 0xc
push 0
push dword [esp + 0x1c]
push dword [esp + 0x18]
push edi
push 0
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop ebp
pop ebx
jmp 0x405741
push 0
push dword [esp + 0x10]
push eax
movzx eax, cx
push eax
push 0
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov esi, eax
mov eax, esi
pop esi
pop ecx
ret
Function at 0x406c16
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x250
mov eax, dword [0x439740]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x50]
xor ebp, ebp
push eax
push ebp
push ebp
push 0x1a
push ebp
mov ebx, edx
mov edi, ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x406cb1
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebp
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x406c6e
xor al, al
jmp 0x406d62
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x24]
push eax
push ebp
push str.AppData
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x406c67
cmp dword [esp + 0x1c], 1
jne 0x406c67
cmp dword [esp + 0x18], ebp
je 0x406c67
test byte [esp + 0x18], 1
jne 0x406c67
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [edi + 0x10], ebp
je 0x406ce5
push ecx
mov edx, edi
lea ecx, [esp + 0x24]
call fcn.004064ca
pop ecx
cmp dword [eax + 0x14], 8
jb 0x406cd1
mov eax, dword [eax]
push eax
lea eax, [esp + 0x54]
push eax
call esi
push ebp
push 1
lea ecx, [esp + 0x28]
call fcn.004098d4
push ecx
mov edx, ebx
lea ecx, [esp + 0x24]
call fcn.004064ca
pop ecx
cmp dword [eax + 0x14], 8
jb 0x406cfa
mov eax, dword [eax]
push eax
lea eax, [esp + 0x54]
push eax
call esi
push ebp
push 1
lea ecx, [esp + 0x28]
call fcn.004098d4
push str.Crash_Reports
lea eax, [esp + 0x54]
push eax
call esi
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x24]
call fcn.0040784b
push ecx
push ecx
lea edx, [esp + 0x28]
lea ecx, [esp + 0x40]
call fcn.00406589
pop ecx
pop ecx
lea eax, [esp + 0x38]
mov ecx, 0x43a624
push eax
call fcn.004072e2
push ebp
push 1
lea ecx, [esp + 0x40]
call fcn.004094bf
push ebp
push 1
lea ecx, [esp + 0x28]
call fcn.004098d4
mov al, 1
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00410549
add esp, 0x250
ret

Function at 0x406d7b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x439740]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push ecx
mov edx, ecx
lea ecx, [ebp - 0x1c]
call fcn.004064ca
pop ecx
cmp dword [eax + 0x14], 8
jb 0x406da0
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
lea ecx, [ebp - 0x1c]
push 0
neg ebx
push 1
sbb bl, bl
call fcn.004098d4
inc bl
je 0x406dd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x406dd0
xor al, al
jmp 0x406dd2
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00410549
mov esp, ebp
pop ebp
ret
Function at 0x406de1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x439740]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push ecx
mov edx, ecx
lea ecx, [ebp - 0x1c]
call fcn.004064ca
pop ecx
cmp dword [eax + 0x14], 8
jb 0x406e06
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
push 1
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.004098d4
mov ecx, dword [ebp - 4]
xor eax, eax
cmp esi, 0xffffffff
pop esi
setne al
xor ecx, ebp
call fcn.00410549
mov esp, ebp
pop ebp
ret

Function at 0x406e32
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x439740]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
cmp dword [esi + 0x14], 0x10
jb 0x406e53
mov eax, dword [esi]
jmp 0x406e55
mov eax, esi
push dword [esi + 0x10]
push eax
push dword [edi + 0x10]
push ecx
call fcn.00409472
test eax, eax
jne 0x406e6a
mov al, 1
jmp 0x406ebf
push ecx
mov edx, esi
lea ecx, [ebp - 0x34]
call fcn.004064ca
mov esi, eax
pop ecx
cmp dword [esi + 0x14], 8
jb 0x406e80
mov esi, dword [esi]
push ecx
mov edx, edi
lea ecx, [ebp - 0x1c]
call fcn.004064ca
pop ecx
cmp dword [eax + 0x14], 8
jb 0x406e94
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0
push 1
lea ecx, [ebp - 0x1c]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.004098d4
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.004098d4
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410549
mov esp, ebp
pop ebp
ret

Function at 0x406ed0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x439740]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push ecx
mov edx, ecx
lea ecx, [ebp - 0x1c]
call fcn.004064ca
pop ecx
cmp dword [eax + 0x14], 8
jb 0x406ef5
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x1c]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.004098d4
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00410549
mov esp, ebp
pop ebp
ret
Function at 0x409afb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x439740]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x40], ebx
je 0x409c0a
cmp byte [esi + 0x45], bl
je 0x409c0a
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x409b3b
xor al, al
jmp 0x409c0c
push ebx
push 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.0040a9a1
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov ebx, edi
cmp eax, 0x10
jae 0x409b6c
lea ebx, [esp + 0x14]
mov edi, ebx
mov ecx, dword [esi + 0x40]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x28]
add eax, ebx
mov edx, dword [ecx]
push eax
push edi
lea eax, [esi + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x409b95
dec eax
je 0x409b99
dec eax
dec eax
je 0x409bf7
xor bl, bl
jmp 0x409bf9
mov byte [esi + 0x45], 0
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
mov ecx, edi
cmp eax, 0x10
jae 0x409bac
lea ecx, [esp + 0x14]
mov ebx, dword [esp + 0x10]
sub ebx, ecx
je 0x409bd8
cmp eax, 0x10
jae 0x409bbd
lea edi, [esp + 0x14]
push dword [esi + 0x50]
push ebx
push 1
push edi
call fcn.004126e1
add esp, 0x10
cmp ebx, eax
jne 0x409b91
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
cmp byte [esi + 0x45], 0
je 0x409bf7
test ebx, ebx
jne 0x409b5f
push ebx
push 8
lea ecx, [esp + 0x1c]
call fcn.0040905d
jmp 0x409b57
mov bl, 1
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.004094bf
mov al, bl
jmp 0x409c0c
mov al, 1
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00410549
mov esp, ebp
pop ebp
ret
Function at 0x40ef5d
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
sub esp, 0x94
mov eax, dword [0x439740]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
push esi
xor eax, eax
mov dword [esp + 0x20], edx
push edi
push eax
mov byte [esp + 0x17], al
mov ebx, eax
mov dword [esp + 0x54], eax
mov esi, ecx
mov byte [esp + 0x44], al
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x60]
mov dword [esp + 0x20], esi
push eax
push 5
push esi
mov dword [esp + 0x34], 0x40
mov dword [esp + 0x68], 0xf
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x40efd8
push 0xa
lea eax, [esp + 0x5c]
mov byte [esp + 0x17], 1
push ebx
push eax
call fcn.004135da
add esp, 0xc
lea ecx, [esp + 0x40]
mov ebx, eax
push ebx
call fcn.0040d281
xor ebp, ebp
lea eax, [esp + 0x14]
push ebp
push ebp
push eax
push esi
jmp 0x40f057
cmp dword [esp + 0x14], 0
jbe 0x40f098
push dword [esp + 0x14]
lea ecx, [esp + 0x2c]
call fcn.0040f99e
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, eax
test edi, edi
je 0x40f08d
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40f08d
push eax
push esi
lea ecx, [esp + 0x48]
add ebp, eax
call fcn.00408fc0
test esi, esi
je 0x40f04a
push esi
call fcn.00411e25
xor eax, eax
pop ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
jmp 0x40f04c
xor eax, eax
push eax
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x24]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov edi, eax
test edi, edi
jne 0x40efe4
xor bl, bl
push 0
push 1
lea ecx, [esp + 0x48]
call fcn.004094bf
mov ecx, dword [esp + 0x9c]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00410549
add esp, 0x94
ret
test esi, esi
je 0x40f098
push esi
call fcn.00411e25
pop ecx
test edi, edi
je 0x40f063
cmp byte [esp + 0x13], 0
je 0x40f0a7
cmp ebp, ebx
jne 0x40f063
mov esi, dword [esp + 0x24]
mov bl, 1
test esi, esi
je 0x40f065
lea edx, [esp + 0x40]
lea ecx, [esp + 0x28]
call fcn.0040f670
push eax
mov ecx, esi
call fcn.0040789c
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.004098d4
jmp 0x40f065
Function at 0x424e34
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x439740]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00415c8b
mov dword [ebp - 0x14], eax
cmp dword [0x43ba68], esi
jne 0x424f27
push 0x800
push esi
push 0x4343c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x424eb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x425007
push esi
push esi
push 0x4343c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x425007
push 0x4343dc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x425007
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43ba68], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43ba6c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43ba70], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43ba78], eax
test eax, eax
je 0x424f24
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43ba74], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x424f4c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x424f3f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x424f61
push 4
pop eax
jmp 0x425009
cmp dword [ebp - 0x14], esi
je 0x424f61
push dword [0x43ba68]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x424f46
mov eax, dword [0x43ba74]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x424fbf
cmp dword [0x43ba78], edi
je 0x424fbf
push eax
call ebx
push dword [0x43ba78]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x424fbf
test eax, eax
je 0x424fbf
call ecx
test eax, eax
je 0x424fb4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x424fb4
test byte [ebp - 8], 1
jne 0x424fbf
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x424fef
mov eax, dword [0x43ba6c]
cmp eax, edi
je 0x424fec
push eax
call ebx
test eax, eax
je 0x424fec
call eax
mov esi, eax
test esi, esi
je 0x424fec
mov eax, dword [0x43ba70]
cmp eax, edi
je 0x424fec
push eax
call ebx
test eax, eax
je 0x424fec
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43ba68]
call ebx
test eax, eax
je 0x425007
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x425009
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410549
mov esp, ebp
pop ebp
ret
Function at 0x4049c0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00407e3c
test esi, esi
jne 0x4049f8
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.00407f78
jmp 0x404a16
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004048a4
mov edi, eax
test esi, esi
je 0x404a16
cmp dword [ebx], 0
je 0x404a16
dec esi
jmp 0x4049ff
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x657008], 0x8088405
inc edx
mov dword [ebx + 0x657008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x406a28
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x669054], 0
je 0x406a89
cmp word [0x669330], 0xd7b2
jne 0x406a51
cmp dword [0x669338], 0
jbe 0x406a51
mov eax, 0x66932c
call dword [0x669348]
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
push 0x406ab4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x657030], 0
jne 0x406aa5
push 0
push 0x6577a0
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406c34
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x657038], 0
je 0x406c5a
mov edx, esi
mov eax, ebx
call dword [0x657038]
jmp 0x406c69
mov eax, 8
call fcn.004045b4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x669055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406bfc
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc

Function at 0x4089e8
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 0x408a2a
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 0x408a4a
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040804c
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x40a434
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40a59b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00407e3c
cmp si, word [0x6577e8]
jb 0x40a4ce
cmp si, word [0x6579e8]
ja 0x40a4ce
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40a4ce
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x6577e8]
jae 0x40a4a8
mov edi, ebx
dec edi
jmp 0x40a4c9
cmp si, word [ebx*8 + 0x6577e8]
jbe 0x40a4b8
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x40a4c9
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x6577ec]
call fcn.0040a344
jmp 0x40a4ce
cmp edi, dword [ebp - 0xc]
jae 0x40a492
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x40a57d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a57d
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.0040804c
push dword [ebp - 0x164]
push 0x40a5b8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.0040804c
push dword [ebp - 0x168]
push 0x40a5c8
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.0040804c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00408404
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a5a2
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00407e34
ret
Function at 0x40a754
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 0x40a859
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x66bb5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x66bb74]
jne 0x40a7a0
mov eax, esi
mov edx, 0x66bb78
mov ecx, 0x55
call fcn.0040804c
push 0x66bb5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40a843
push 0x66bb5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00407e3c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a811
cmp byte [0x66bb58], 0
je 0x40a7d6
mov edx, esi
mov eax, ebx
call fcn.0040a634
jmp 0x40a811
mov edx, esi
mov eax, ebx
call fcn.0040a434
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40a811
cmp dword [esi], 0
je 0x40a7fa
mov eax, esi
mov edx, 0x40a874
call fcn.00408260
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040a434
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00408260
push 0x66bb5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x66bb74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407ec8
push eax
push 0x66bb78
call sub.kernel32.dll_lstrcpynW
push 0x66bb5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a860
lea eax, [ebp - 4]
call fcn.00407e2c
ret
Function at 0x40aa98
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.00407e24
xor eax, eax
push ebp
push 0x40ac7d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40aad8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40aaf2
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407ec8
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40ac67
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ac8c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ab81
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ac8c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ab81
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40acc0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ab81
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40acf4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40ac67
xor eax, eax
push ebp
push 0x40ac60
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040a89c
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 0x40abf0
mov eax, dword [ebp - 0x10]
call fcn.004045b4
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.00407ff8
jmp 0x40ac3b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40ad34
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40ac3b
mov eax, dword [ebp - 0x10]
call fcn.004045b4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40ad34
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407ff8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ac67
cmp dword [ebp - 8], 0
je 0x40ac56
mov eax, dword [ebp - 8]
call fcn.004045d0
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 0x40ac84
lea eax, [ebp - 4]
call fcn.00407e2c
ret