joyce8/EMBER2024-capa huggingface dataset:
Function at 0x521640
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.005417a0
mov eax, dword [0x6121d4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x100c], 0
push eax
push 0x20008
mov word [ebp - 0x1008], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x52169a
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x1018]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push 2
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0x1010]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x5216fb
lea eax, [ebp - 0x1014]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x52170f
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret
push edi
xor esi, esi
xor edi, edi
cmp dword [ebp - 0x1004], esi
jbe 0x521747
nop dword [eax]
push dword [ebp + esi*8 - 0x1000]
push dword [ebp - 0x1014]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x521742
inc esi
cmp esi, dword [ebp - 0x1004]
jb 0x521720
jmp 0x521747
mov edi, 1
push dword [ebp - 0x1014]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00540c56
mov esp, ebp
pop ebp
ret

Function at 0x521770
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6121d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x14], 0x220
push edi
or edi, 0xffffffff
mov dword [ebp - 0x10], 0x223
mov dword [ebp - 0xc], 0x222
mov dword [ebp - 8], 0x221
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x18], 0x500
mov dword [esi], 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [esi]
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + eax*4 - 0x14]
lea eax, [ebp - 0x1c]
push 0x20
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x521806
lea eax, [ebp - 0x20]
xor edi, edi
push eax
push dword [ebp - 0x24]
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x24]
neg eax
sbb eax, eax
and dword [ebp - 0x20], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x20], edi
jne 0x52180d
inc dword [esi]
cmp dword [esi], 4
jl 0x5217b6
cmp dword [esi], 0
je 0x521833
call fcn.00521640
test eax, eax
je 0x521833
pop edi
mov dword [esi], 0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00540c56
mov esp, ebp
pop ebp
ret
Function at 0x521850
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6121d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
push 0
push 0x5f7740
mov esi, ecx
call fcn.004ab700
cmp eax, 0xffffffff
je 0x5218d1
cmp dword [esi + 0x14], 8
jb 0x521883
mov eax, dword [esi]
jmp 0x521885
mov eax, esi
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x5218d1
cmp word [ebp - 0x20c], 0
jne 0x5218aa
xor ecx, ecx
jmp 0x5218c2
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5218b3
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004ab820
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00540c56
mov esp, ebp
pop ebp
ret

Function at 0x5218f0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x6121d4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x11c
xorps xmm0, xmm0
mov dword [ebp - 0x124], 0
lea eax, [ebp - 0x120]
mov edi, ecx
push 0
push eax
movups xmmword [ebp - 0x144], xmm0
movups xmmword [ebp - 0x134], xmm0
call fcn.0056fec0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x521964
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret
push esi
push 0x5dd334
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
lea eax, [ebp - 0x144]
push eax
test esi, esi
je 0x521995
mov ecx, esi
call dword [0x5aa43c]
call esi
jmp 0x52199b
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x144]
pop esi
cmp ax, 9
je 0x5219c3
cmp ax, 6
je 0x5219c3
mov byte [edi], 0
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
mov byte [edi], 1
xor ecx, ebp
pop edi
call fcn.00540c56
mov esp, ebp
pop ebp
ret
Function at 0x5219e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x6121d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x11c
push eax
mov edi, edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, 1
jne 0x521b8f
movzx eax, word [ebp - 0xc]
mov dword [edi], eax
mov eax, dword [ebp - 0x11c]
cmp eax, 4
jne 0x521a6c
cmp dword [ebp - 0x118], 0
jne 0x521a54
cmp dword [ebp - 0x110], 2
jne 0x521a54
pop edi
mov dword [esi], 1
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi], 0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x521ad7
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x521a91
pop edi
mov dword [esi], 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x521aae
pop edi
mov dword [esi], 3
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x521b7d
xor eax, eax
cmp byte [ebp - 6], 1
pop edi
setne al
add eax, 3
mov dword [esi], eax
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x521b77
cmp byte [ebp - 6], 1
jne 0x521b31
mov ecx, dword [ebp - 0x118]
cmp ecx, 2
je 0x521b19
cmp ecx, 3
je 0x521b19
xor eax, eax
cmp ecx, 1
pop edi
sete al
lea eax, [eax*2 + 5]
mov dword [esi], eax
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi], 9
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x118]
cmp eax, 1
jne 0x521b5a
mov dword [esi], 8
pop edi
mov dword [esi], 6
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x521b42
pop edi
mov dword [esi], 0xa
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret
mov dword [esi], 0xffffffff
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffffe5
pop edi
xor ecx, ebp
pop esi
call fcn.00540c56
mov esp, ebp
pop ebp
ret
Function at 0x525360
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x6121d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x414]
mov esi, ecx
push 0
push eax
call fcn.0056fec0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0056fec0
add esp, 0x18
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0x104
test esi, esi
je 0x525494
lea eax, [ebp - 0x418]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsSCANNER.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x525494
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push str.Path
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x525494
push ecx
lea eax, [ebp - 0x20c]
mov edx, 0x104
push eax
push ecx
lea ecx, [ebp - 0x414]
call fcn.00523980
test eax, eax
js 0x525488
push str.SCANAPI.DLL
lea ecx, [ebp - 0x20c]
call fcn.00523860
test eax, eax
js 0x525488
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00584d07
add esp, 8
test eax, eax
jne 0x525488
lea eax, [ebp - 0x414]
mov edx, 0x104
push eax
mov ecx, esi
call fcn.00523820
push dword [ebp - 0x418]
test eax, eax
js 0x52548e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00540c56
mov esp, ebp
pop ebp
ret
Function at 0x53c7c0
Capabilities:
Check mutex on windows

Disassembly:
push esi
xor ecx, ecx
mov esi, 0x6199c8
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x53c7f0
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, eax
xor eax, eax
mov ecx, edx
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x53c7f0
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0xffffffffffffffff
push dword [0x6199c8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esp + 0xc]
mov esi, dword [edi - 8]
lea eax, [edi - 8]
sub dword [0x6199d4], esi
mov ecx, eax
sub ecx, dword [eax + 4]
cmp dword [ecx], 0
jne 0x53c827
add dword [ecx + 0x10], esi
lea edx, [ecx + 0x10]
mov eax, dword [edx]
mov dword [eax + ecx + 4], eax
jmp 0x53c84f
lea edx, [eax + 0x10]
mov ecx, eax
mov dword [edx], esi
mov esi, dword [0x6199d0]
mov dword [eax], 0
mov dword [edi], esi
mov dword [eax + 0xc], 0
test esi, esi
je 0x53c84a
mov dword [esi + 0xc], eax
mov dword [0x6199d0], eax
mov edi, dword [edx]
cmp dword [edi + ecx], 0
lea esi, [edi + ecx]
jne 0x53c88c
mov eax, dword [esi + 0x10]
add eax, edi
mov dword [edx], eax
mov edi, dword [esi + 8]
test edi, edi
je 0x53c871
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov edi, dword [esi + 8]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x53c87d
mov dword [eax + 8], edi
jmp 0x53c883
mov dword [0x6199d0], edi
mov eax, dword [edx]
mov dword [eax + ecx + 4], eax
lea esi, [eax + ecx]
cmp dword [ecx + 4], 0
pop edi
jne 0x53c8e4
cmp dword [esi], 1
jne 0x53c8e4
mov eax, dword [0x6199d4]
mov esi, dword [0x6199d8]
sub esi, dword [edx]
lea eax, [eax + eax*2]
shr eax, 1
cmp esi, eax
jbe 0x53c8e4
mov edx, dword [ecx + 8]
mov dword [0x6199d8], esi
test edx, edx
je 0x53c8c4
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x53c8d0
mov dword [eax + 8], edx
jmp 0x53c8d6
mov dword [0x6199d0], edx
push 0x8000
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [0x6199c8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret

Function at 0x55a2f4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x58c015
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0058bcc6

Function at 0x58c020
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0058be50

Function at 0x58e6c5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0058e218
Function at 0x4046d4
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.00406edc
test esi, esi
jne 0x40470c
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.00407018
jmp 0x40472a
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004045b8
mov edi, eax
test esi, esi
je 0x40472a
cmp dword [ebx], 0
je 0x40472a
dec esi
jmp 0x404713
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x406050
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x597054], 0
je 0x4060b1
cmp word [0x597330], 0xd7b2
jne 0x406079
cmp dword [0x597338], 0
jbe 0x406079
mov eax, 0x59732c
call dword [0x597348]
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 0x4060dc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x58f030], 0
jne 0x4060cd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40625c
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 [0x58f034], 0
je 0x406282
mov edx, esi
mov eax, ebx
call dword [0x58f034]
jmp 0x406291
mov eax, 8
call fcn.0040429c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x597055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406224
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 0x407990
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 0x4079d2
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 0x4079f2
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.004070ec
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x40900c
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 0x409173
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406edc
cmp si, word [0x58f7dc]
jb 0x4090a6
cmp si, word [0x58f9dc]
ja 0x4090a6
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4090a6
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x58f7dc]
jae 0x409080
mov edi, ebx
dec edi
jmp 0x4090a1
cmp si, word [ebx*8 + 0x58f7dc]
jbe 0x409090
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4090a1
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x58f7e0]
call fcn.00408f1c
jmp 0x4090a6
cmp edi, dword [ebp - 0xc]
jae 0x40906a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x409155
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409155
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.004070ec
push dword [ebp - 0x164]
push 0x409190
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.004070ec
push dword [ebp - 0x168]
push 0x4091a0
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004070ec
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004074a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40917a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406ed4
ret
Function at 0x40932c
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 0x409431
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x599b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x599b74]
jne 0x409378
mov eax, esi
mov edx, 0x599b78
mov ecx, 0x55
call fcn.004070ec
push 0x599b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40941b
push 0x599b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406edc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4093e9
cmp byte [0x599b58], 0
je 0x4093ae
mov edx, esi
mov eax, ebx
call fcn.0040920c
jmp 0x4093e9
mov edx, esi
mov eax, ebx
call fcn.0040900c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4093e9
cmp dword [esi], 0
je 0x4093d2
mov eax, esi
mov edx, 0x40944c
call fcn.00407300
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040900c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407300
push 0x599b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x599b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406f68
push eax
push 0x599b78
call sub.kernel32.dll_lstrcpynW
push 0x599b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409438
lea eax, [ebp - 4]
call fcn.00406ecc
ret
Function at 0x409670
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.00406ec4
xor eax, eax
push ebp
push 0x409855
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4096b0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4096ca
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406f68
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40983f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409864
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409759
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409864
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409759
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409898
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409759
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4098cc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40983f
xor eax, eax
push ebp
push 0x409838
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409474
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 0x4097c8
mov eax, dword [ebp - 0x10]
call fcn.0040429c
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.00407098
jmp 0x409813
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40990c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409813
mov eax, dword [ebp - 0x10]
call fcn.0040429c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40990c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407098
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40983f
cmp dword [ebp - 8], 0
je 0x40982e
mov eax, dword [ebp - 8]
call fcn.004042b8
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 0x40985c
lea eax, [ebp - 4]
call fcn.00406ecc
ret
Function at 0x409b20
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00406ec4
mov eax, dword [ebp - 0x21c]
call fcn.00406ec4
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409cbf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406edc
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406f68
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x409bc0
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409bd2
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409bbd
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409c8b
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x409bfb
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00409670
cmp dword [ebp - 0x220], 0
je 0x409c33
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409a14
pop ecx
mov ebx, eax
jmp 0x409c8b
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.0040932c
mov eax, dword [ebp - 0x224]
call fcn.00409a14
pop ecx
mov ebx, eax
test bl, bl
jne 0x409c7e
cmp byte [0x599b58], 0
jne 0x409c7e
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.0040932c
mov eax, dword [ebp - 0x228]
call fcn.00409a14
pop ecx
mov ebx, eax
test bl, bl
jne 0x409c8b
push ebp
call fcn.00409ac4
pop ecx
mov ebx, eax
test bl, bl
je 0x409ca1
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.004070ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409cc6
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406ed4
ret

Function at 0x40a638
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret