joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ace8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x47af18
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x47ad6b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x47af18
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x47ad6b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x47af34
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x47adf4
xor eax, eax
push ebp
push 0x47aded
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0047ab30
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x47add2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x47af54
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x47add2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47adf4
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x47af0e
cmp byte [ebp - 0xd], 0
jne 0x47ae3b
cmp byte [ebp - 0x12], 0
je 0x47af0e
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x47ae54
dec ebx
cmp byte [ebx], 0x2e
je 0x47ae63
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x47ae53
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x47af0e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x47aea0
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x47af0e
cmp byte [ebp - 0xd], 0
je 0x47af0e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x47af0e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47b68c
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x48e1f8], 1
jae 0x47b712
mov byte [0x489dd0], 2
mov dword [0x48dc48], 0x4869d2
mov dword [0x48dc4c], 0x4869e4
mov byte [0x48dc86], 2
mov dword [0x48dc34], 0x47a318
call fcn.0047869c
test al, al
je 0x47b6cf
call fcn.004786cc
call fcn.00478790
mov word [0x48dc8c], 0xd7b0
mov word [0x48de58], 0xd7b0
mov word [0x48e024], 0xd7b0
call fcn.0047a1f8
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x48dc78], eax
call fcn.00476634
mov dword [0x48dc74], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x48dc6c], eax
ret

Function at 0x481394
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4813f6
call fcn.00481344
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0047c338
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0047c338
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x481474
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x48baa8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x48154e
cmp dword [0x48baa4], 0
jne 0x48154e
cmp dword [0x48bc88], 0
je 0x481508
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00481244
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4814ee
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00481244
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4814ee
lea ebx, [ebp - 0x84]
jmp 0x4814ef
inc ebx
call fcn.00481430
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x481589
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x48baac
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0047c338
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x48baaf
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x481589
cmp dword [0x48baa4], 0
je 0x481568
cmp dword [0x48baa4], 0xffffffff
je 0x481589
push esi
call dword [0x48baa4]
pop ecx
mov eax, dword [0x48baa8]
test eax, eax
je 0x481589
cmp dword [0x48baa8], 0xffffffff
je 0x481589
cmp byte [eax], 0
je 0x481589
push esi
push eax
call fcn.00481394
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405454
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405712
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405493
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a2788], eax
jmp 0x40561d
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4054ad
test eax, eax
je 0x4055cb
test bl, 2
je 0x4055cb
mov esi, 0x79fd00
push edi
push esi
call fcn.00405b77
cmp dword [ebp + 8], 0
je 0x4054cc
push 0x409360
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4054d2
push edi
call fcn.0040566b
cmp byte [edi], 0
jne 0x4054e0
cmp byte [0x79fd00], 0x5c
jne 0x4054eb
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4055c1
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.0040564f
cmp byte [eax], 0
je 0x405531
cmp byte [ebp - 0x1c], 0
je 0x405531
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405547
mov al, byte [esi + 1]
test al, al
je 0x4055a0
cmp al, 0x2e
jne 0x405547
cmp byte [esi + 2], 0
je 0x4055a0
push esi
push ebx
call fcn.00405b77
test byte [ebp - 0x14c], 0x10
je 0x40556c
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055a0
push dword [ebp + 0xc]
push edi
call fcn.00405454
jmp 0x4055a0
push dword [ebp - 4]
push edi
call fcn.0040540c
test eax, eax
jne 0x405598
cmp dword [ebp - 4], eax
je 0x405590
push edi
push 0xfffffffffffffff1
call fcn.00404e84
push 0
push edi
call fcn.00405a2b
jmp 0x4055a0
inc dword [0x7a2788]
jmp 0x4055a0
push edi
push 0xfffffffffffffff2
call fcn.00404e84
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40550f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4055cb
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40561d
cmp dword [ebp - 0xc], esi
jne 0x4055df
inc dword [0x7a2788]
jmp 0x40561d
push edi
call fcn.00405e7b
test eax, eax
je 0x40561d
push edi
call fcn.00405624
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.0040540c
test eax, eax
jne 0x405615
cmp dword [ebp - 4], esi
je 0x4055d7
push edi
push 0xfffffffffffffff1
call fcn.00404e84
push esi
push edi
call fcn.00405a2b
jmp 0x40561d
push edi
push 0xffffffffffffffe5
call fcn.00404e84
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4022c0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x40230b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402304
test esi, esi
je 0x402304
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4022e0
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4024f0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402540
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402618
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40257e
cmp eax, 4
jne 0x4025a0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40258e
cmp edx, 4
je 0x40258e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004024f0
Function at 0x1463c
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.00016c5c
test esi, esi
jne 0x14674
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.00016d98
jmp 0x14692
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00014580
mov edi, eax
test esi, esi
je 0x14692
cmp dword [ebx], 0
je 0x14692
dec esi
jmp 0x1467b
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x15f48
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x227054], 0
je 0x15fa9
cmp word [0x227330], 0xd7b2
jne 0x15f71
cmp dword [0x227338], 0
jbe 0x15f71
mov eax, 0x22732c
call dword [0x227348]
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 0x15fd4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x21e034], 0
jne 0x15fc5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x16154
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 [0x21e038], 0
je 0x1617a
mov edx, esi
mov eax, ebx
call dword [0x21e038]
jmp 0x16189
mov eax, 8
call fcn.000142c8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x227055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x1611c
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 0x177a0
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 0x177e2
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 0x17802
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00016e5c
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x18f90
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 0x190f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00016c5c
cmp si, word [0x21e7e0]
jb 0x1902a
cmp si, word [0x21e9e0]
ja 0x1902a
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x1902a
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x21e7e0]
jae 0x19004
mov edi, ebx
dec edi
jmp 0x19025
cmp si, word [ebx*8 + 0x21e7e0]
jbe 0x19014
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x19025
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x21e7e4]
call fcn.00018ea0
jmp 0x1902a
cmp edi, dword [ebp - 0xc]
jae 0x18fee
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x190d9
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x190d9
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.00016e5c
push dword [ebp - 0x164]
push 0x19114
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00016e5c
push dword [ebp - 0x168]
push 0x19124
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00016e5c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00017214
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x190fe
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00016c54
ret
Function at 0x192b0
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 0x193b5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x229b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x229b74]
jne 0x192fc
mov eax, esi
mov edx, 0x229b78
mov ecx, 0x55
call fcn.00016e5c
push 0x229b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x1939f
push 0x229b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00016c5c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x1936d
cmp byte [0x229b58], 0
je 0x19332
mov edx, esi
mov eax, ebx
call fcn.00019190
jmp 0x1936d
mov edx, esi
mov eax, ebx
call fcn.00018f90
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x1936d
cmp dword [esi], 0
je 0x19356
mov eax, esi
mov edx, 0x193d0
call fcn.00017070
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00018f90
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00017070
push 0x229b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x229b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00016ce8
push eax
push 0x229b78
call sub.kernel32.dll_lstrcpynW
push 0x229b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x193bc
lea eax, [ebp - 4]
call fcn.00016c4c
ret
Function at 0x195f4
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.00016c44
xor eax, eax
push ebp
push 0x197d9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x19634
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x1964e
push 0x105
mov eax, dword [ebp - 4]
call fcn.00016ce8
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x197c3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x197e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x196dd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x197e8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x196dd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x1981c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x196dd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x19850
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x197c3
xor eax, eax
push ebp
push 0x197bc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.000193f8
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 0x1974c
mov eax, dword [ebp - 0x10]
call fcn.000142c8
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.00016e08
jmp 0x19797
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x19890
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x19797
mov eax, dword [ebp - 0x10]
call fcn.000142c8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x19890
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00016e08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x197c3
cmp dword [ebp - 8], 0
je 0x197b2
mov eax, dword [ebp - 8]
call fcn.000142e4
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 0x197e0
lea eax, [ebp - 4]
call fcn.00016c4c
ret
Function at 0x19aa4
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.00016c44
mov eax, dword [ebp - 0x21c]
call fcn.00016c44
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x19c43
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00016c5c
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00016ce8
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 0x19b44
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x19b56
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x19b41
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x19c0f
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 0x19b7f
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.000195f4
cmp dword [ebp - 0x220], 0
je 0x19bb7
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00019998
pop ecx
mov ebx, eax
jmp 0x19c0f
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.000192b0
mov eax, dword [ebp - 0x224]
call fcn.00019998
pop ecx
mov ebx, eax
test bl, bl
jne 0x19c02
cmp byte [0x229b58], 0
jne 0x19c02
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.000192b0
mov eax, dword [ebp - 0x228]
call fcn.00019998
pop ecx
mov ebx, eax
test bl, bl
jne 0x19c0f
push ebp
call fcn.00019a48
pop ecx
mov ebx, eax
test bl, bl
je 0x19c25
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00016e5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x19c4a
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00016c54
ret

Function at 0x1e284
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x229c5c
push 0xa
push 0x1e318
mov eax, dword [0x229c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x1e2a8
call fcn.0002cc18
push ebx
mov eax, dword [0x229c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x1e2bf
call fcn.0002cc18
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x1e2d1
call fcn.0002cc18
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x229c60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x229c64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x229c68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x229c6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x229c70], ecx
add edx, dword [eax + 0x14]
mov dword [0x229c74], edx
pop esi
pop ebx
ret