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

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x497d4c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00495d8f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00495d67
jmp 0x497d58
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49950f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x499551
call fcn.0049fc37
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x499551
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x499548
xor eax, eax
jmp 0x499559
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049955f
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a0167
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a0195
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a01b3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a00cd
jmp 0x4a01b3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a01b3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a00cd
test edi, edi
mov eax, edi
jne 0x4a019d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.sakanagl.dll_initializeSakanaGL]
call dword [sym.imp.sakanagl.dll_getSakanaEnv]
push eax
call dword [sym.imp.sakanagl.dll_createSakanaGL]
add esp, 4
mov dword [ebp - 0x20], eax
mov edi, 0x14
push 0x402128
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp eax, 0xb7
jne 0x40108e
dec edi
test edi, edi
jle 0x4010f1
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x402128
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401055
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
push 6
push edi
mov dword [ebp - 0x1c], str._main
mov dword [ebp - 0x18], str.pkg_DrenchedGirls
mov dword [ebp - 0x14], str._region
mov dword [ebp - 0x10], str.steam
mov dword [ebp - 0xc], str._steam
mov dword [ebp - 8], str._keyboard
call dword [sym.imp.sakanagl.dll_sakanaMain]
push edi
call dword [sym.imp.sakanagl.dll_sakanaKill]
add esp, 0x10
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401118
mov esp, ebp
pop ebp
ret 0x10
push 0
push str.Error
push str.double_run
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x2ee2121c
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x2ee2122e
mov eax, dword [0x2ee5b09f]
shl eax, 2
mov dword [0x2ee5b0a3], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.2ee4de48
pop edx
call fcn.2ee4da48
call fcn.2ee4e3d4
push 0
call fcn.2ee4f6f8
pop ecx
push 0x2ee5b048
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x2ee5b0a7], eax
push 0
jmp fcn.2ee57404

Function at 0x2ee21600
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
mov eax, 0x2ee5b37c
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
call fcn.2ee4eaf8
mov edx, dword [0x2ee5b1b8]
mov ecx, dword [0x2ee5b1c0]
mov dword [ebp - 0x30], edx
mov edx, dword [0x2ee5b1bc]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x40], ecx
mov ecx, dword [0x2ee5b1c4]
lea eax, [ebp - 0x248]
mov dword [ebp - 0x3c], ecx
push 0x208
push eax
push 0
mov dword [0x2ee62b18], 1
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
lea edx, [ebp - 0x248]
push edx
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x2ee21783
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov edi, eax
push 2
push 0
push 0xfffffffffffffff8
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea eax, [ebp - 0x28]
push 0
push eax
lea edx, [ebp - 0x38]
push 8
push edx
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x2ee216c3
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x2ee2178f
push 8
lea ecx, [ebp - 0x38]
push ecx
lea eax, [ebp - 0x40]
push eax
call fcn.2ee4e910
add esp, 0xc
test eax, eax
je 0x2ee216ea
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x2ee2178f
push 2
push 0
push 0xfffffffffffffff4
push ebx
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea ecx, [ebp - 0x28]
push ecx
push 4
push esi
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x2ee2171d
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x2ee2178f
push 4
push 0x1000
mov ecx, dword [esi]
push ecx
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [0x2ee5b1b4], eax
mov eax, edi
sub eax, dword [esi]
sub eax, 0xc
push 0
push 0
push eax
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea edx, [ebp - 0x28]
push 0
push edx
mov eax, dword [0x2ee5b1b4]
mov ecx, dword [esi]
push ecx
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x2ee21772
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x2ee2178f
mov eax, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x2ee2178f
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x2ee21798
Capabilities:
Extract resource via kernel32 functions
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcdc
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov eax, 0x2ee5b3a0
call fcn.2ee4eaf8
push 0x2350
push 0x69
push esi
call sub.KERNEL32.DLL_FindResourceA
mov ebx, eax
test ebx, ebx
jne 0x2ee217e3
mov eax, dword [ebp + 0x14]
push eax
call fcn.2ee21600
pop ecx
test eax, eax
jne 0x2ee21837
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x2ee21935
push ebx
push esi
call sub.KERNEL32.DLL_LoadResource
mov edi, eax
test edi, edi
jne 0x2ee21801
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x2ee21935
je 0x2ee21806
jne 0x2ee21806
jmp 0x2ee2185e
push edi
call sub.KERNEL32.DLL_LockResource
mov dword [0x2ee5b1b4], eax
cmp dword [0x2ee5b1b4], 0
jne 0x2ee2182b
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x2ee21935
push ebx
push esi
call sub.KERNEL32.DLL_SizeofResource
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x2ee21935
in eax, 0x2e
push eax
push ebx
call fcn.2ee4e470
add esp, 0xc
mov edx, sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x28], edx
mov esi, dword [ebp - 0x28]
mov al, byte [esi]
cmp al, 0xcc
je 0x2ee218ee
mov ecx, 0x2ee5a144
mov dword [ebp - 0x2c], ecx
mov esi, dword [ebp - 0x2c]
mov al, byte [esi]
cmp al, 0xcc
je 0x2ee218ee
mov eax, sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x30], eax
mov esi, dword [ebp - 0x30]
mov al, byte [esi]
cmp al, 0xcc
je 0x2ee218ee
mov edx, sub.KERNEL32.DLL_FindResourceA
mov dword [ebp - 0x34], edx
mov esi, dword [ebp - 0x34]
mov al, byte [esi]
cmp al, 0xcc
je 0x2ee218ee
mov ecx, sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 0x38], ecx
mov esi, dword [ebp - 0x38]
mov al, byte [esi]
cmp al, 0xcc
je 0x2ee218ee
lea edi, [ebp - 0x220]
mov esi, 0x2ee5b1ca
mov ecx, 8
lea eax, [ebp - 0x220]
rep movsd dword es:[edi], dword [esi]
push 0x124
push eax
lea edx, [ebx + 0xa4]
push 0x64
push edx
call fcn.2ee22080
add esp, 0x10
mov ecx, dword [ebx + 0x1bc]
push ecx
lea eax, [ebx + 0xa4]
push eax
add ebx, 0xb8
push ebx
push 0
call sub.USER32.DLL_MessageBoxA
call sub.KERNEL32.DLL_GetCurrentProcessId
push eax
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
mov ebx, eax
push 0
push ebx
call sub.KERNEL32.DLL_TerminateProcess
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x2ee220d0
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.2ee21958
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x2ee22186
mov eax, fcn.2ee21798
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x2ee22186
mov eax, fcn.2ee22080
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x2ee22186
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, 0xc6ef3720
mov edx, dword [edx + 4]
mov ecx, dword [ecx]
mov eax, dword [eax]
mov edi, 0x20
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x2ee22186
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x2ee2214e
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x2ee221a4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp + 8]
cmp ecx, edx
jbe 0x2ee221bc
xor byte [eax], 0xf5
inc edx
inc eax
cmp ecx, edx
ja 0x2ee221b3
pop ebp
ret

Function at 0x2ee28e80
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x2ee28eb9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.2ee36378
jmp 0x2ee28ec2
mov eax, ebx
mov edx, esi
call fcn.2ee3623c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x2ee28ecc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x2ee28eee
movzx eax, word [esp]
jmp 0x2ee28ef0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x2ee29680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x2ee297a5
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.2ee29490
mov esi, eax
mov eax, dword [0x2ee62364]
cmp byte [eax], 0
je 0x2ee2974d
mov eax, dword [0x2ee623a0]
call fcn.2ee347c0
call fcn.2ee3460c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x2ee29658]
call fcn.2ee3703c
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x2ee297c0
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x2ee29789
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x2ee62424]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x2ee62578]
call fcn.2ee37128
push eax
call sub.USER32.DLL_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.USER32.DLL_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2ee297ac
lea eax, [ebp - 4]
mov edx, dword [0x2ee29658]
call fcn.2ee37048
ret

Function at 0x2ee2b754
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.2ee35e90
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar
mov edi, eax
cmp edi, 0x104
jbe 0x2ee2b6fe
mov eax, edi
add eax, eax
call fcn.2ee3443c
mov esi, eax
jmp 0x2ee2b700
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar
push edi
push esi
call sub.USER32.DLL_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x2ee2b739
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x2ee2b723
mov eax, esp
cmp esi, eax
je 0x2ee2b746
mov eax, esi
call fcn.2ee34458
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x2ee2b780
cmp bl, 0
je 0x2ee2b77c
cmp bl, 0x41
jl 0x2ee2b777
cmp bl, 0x5a
jg 0x2ee2b777
or bl, 0x20
xor al, bl
inc esi
jmp 0x2ee2b75b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x2ee2b6c0
Function at 0x2ee35a20
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x2ee64ebc], 0
je 0x2ee35a81
cmp word [0x2ee65198], 0xd7b2
jne 0x2ee35a49
cmp dword [0x2ee651a0], 0
jbe 0x2ee35a49
mov eax, 0x2ee65194
call dword [0x2ee651b0]
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 0x2ee35aac
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x2ee5b74c], 0
jne 0x2ee35a9d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x2ee3760c
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 0x2ee37773
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.2ee3623c
cmp si, word [0x2ee5bef0]
jb 0x2ee376a6
cmp si, word [0x2ee5c0f0]
ja 0x2ee376a6
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x2ee376a6
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x2ee5bef0]
jae 0x2ee37680
mov edi, ebx
dec edi
jmp 0x2ee376a1
cmp si, word [ebx*8 + 0x2ee5bef0]
jbe 0x2ee37690
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x2ee376a1
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x2ee5bef4]
call fcn.2ee3751c
jmp 0x2ee376a6
cmp edi, dword [ebp - 0xc]
jae 0x2ee3766a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x2ee37755
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x2ee37755
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.2ee36424
push dword [ebp - 0x164]
push 0x2ee37790
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.2ee36424
push dword [ebp - 0x168]
push 0x2ee377a0
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.2ee36424
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.2ee36710
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2ee3777a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.2ee36234
ret
Function at 0x2ee377a4
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x2ee3798a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x2ee679d0
call sub.KERNEL32.DLL_EnterCriticalSection
movzx eax, word [0x2ee679e8]
cmp ax, word [ebp - 2]
jne 0x2ee377fc
mov eax, dword [ebp - 6]
mov edx, 0x2ee679ec
mov ecx, 0x55
call fcn.2ee36424
push 0x2ee679d0
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x2ee37974
push 0x2ee679d0
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.2ee3623c
push 2
movzx eax, word [ebp - 2]
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x2ee3793c
cmp byte [0x2ee679cc], 0
je 0x2ee378f2
call dword [0x2ee679c4]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x2ee679c8]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x2ee378eb
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x2ee679c0]
test al, al
je 0x2ee378c4
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.2ee3443c
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x2ee679c0]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x2ee378b9
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x2ee378b5
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x2ee378a2
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.2ee363e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2ee3793c
movzx eax, word [ebp - 0x16]
push eax
call dword [0x2ee679c8]
cmp dword [ebp - 0x10], 0
je 0x2ee378ea
mov eax, dword [ebp - 0x10]
call fcn.2ee34458
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.2ee3760c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x2ee3793c
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x2ee37921
mov eax, dword [ebp - 6]
mov edx, 0x2ee379a4
call fcn.2ee3656c
mov eax, dword [ebp - 6]
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.2ee3760c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.2ee3656c
mov eax, dword [ebp - 6]
push 0x2ee679d0
call sub.KERNEL32.DLL_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x2ee679e8], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.2ee362c8
push eax
push 0x2ee679ec
call sub.KERNEL32.DLL_lstrcpynW
push 0x2ee679d0
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2ee37991
lea eax, [ebp - 0x1c]
call fcn.2ee3622c
ret
Function at 0x2ee37bc8
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.2ee36224
xor eax, eax
push ebp
push 0x2ee37dad
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x2ee37c08
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x2ee37c22
push 0x105
mov eax, dword [ebp - 4]
call fcn.2ee362c8
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x2ee37d97
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x2ee37dbc
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x2ee37cb1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x2ee37dbc
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x2ee37cb1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x2ee37df0
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x2ee37cb1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x2ee37e24
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x2ee37d97
xor eax, eax
push ebp
push 0x2ee37d90
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.2ee379cc
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 0x2ee37d20
mov eax, dword [ebp - 0x10]
call fcn.2ee3443c
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.2ee363e8
jmp 0x2ee37d6b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x2ee37e64
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x2ee37d6b
mov eax, dword [ebp - 0x10]
call fcn.2ee3443c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x2ee37e64
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.2ee363e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2ee37d97
cmp dword [ebp - 8], 0
je 0x2ee37d86
mov eax, dword [ebp - 8]
call fcn.2ee34458
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 0x2ee37db4
lea eax, [ebp - 4]
call fcn.2ee3622c
ret