joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004bd04
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x10051067
call fcn.1002a0dc
sub esp, 0x124
mov eax, dword [0x10084ca0]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], eax
mov esi, ecx
mov dword [ebp - 0x120], edi
call fcn.100463dd
cmp eax, edi
mov dword [ebp - 0x128], eax
je 0x1004bd5e
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
lea edx, [ebp - 0x128]
push edx
call dword [eax + 0x14]
cmp eax, edi
je 0x1004bd56
mov edx, dword [eax]
push edi
push edi
push 0xfffffffffffffffc
push edi
mov ecx, eax
call dword [edx + 0xc]
cmp dword [ebp - 0x128], edi
jne 0x1004bd37
cmp dword [esi + 0x50], edi
je 0x1004be5e
push 0x10067904
lea ecx, [ebp - 0x11c]
call fcn.10002860
push dword [esi + 0x50]
lea ecx, [ebp - 0x11c]
mov dword [ebp - 4], edi
call fcn.10002e50
push 0x10064b68
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.100463ee
push dword [esi + 0x64]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.100463ee
add esp, 0x18
mov ecx, dword [ebp - 0x12c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.10001020
lea eax, [ebp - 0x124]
push eax
mov esi, SysReAllocString
push esi
call fcn.1004bbf0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1004be2c
push 0x104
lea eax, [ebp - 0x118]
push eax
push edi
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
jne 0x1004be20
lea eax, [ebp - 0x11c]
push eax
push esi
call fcn.1004bbf0
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x124]
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x118]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea ecx, [edi - 0x10]
call fcn.10001020
mov ecx, dword [ebp - 0x11c]
add ecx, 0xfffffff0
call fcn.10001020
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
inc eax
pop esi
call fcn.10027973
leave
ret

Function at 0x1004c1b1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x1004c1e6
cmp edi, dword [esi + 0xc]
jge 0x1004c1e6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1004c1e6
cmp edi, dword [eax + 8]
jge 0x1004c1e6
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x1004c1e8
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
Function at 0x1004c345
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x1004c379
jmp fcn.100396fc
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x1004c3ea
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x1004c4e3
cmp eax, dword [edi + 0xc]
jge 0x1004c4e3
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x1004c43b
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x1004c4cc
cmp dword [ebp + 0xc], ebx
je 0x1004c4cc
jmp 0x1004c465
push 0x10
call fcn.1004c07d
cmp eax, ebx
je 0x1004c451
mov ecx, eax
call fcn.1004c33c
mov esi, eax
jmp 0x1004c453
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x1004c47c
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x1004c48c
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x1004c49e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.100396fc
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.1002a1a0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x1004c4de
cmp ecx, dword [esi + 8]
jge 0x1004c4de
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x1004c4e4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1004f2e8
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x100510d6
call fcn.1002a0dc
sub esp, 0x198
mov eax, dword [0x10084ca0]
push ebx
push esi
push edi
push 0x1004bf5a
mov ecx, 0x1008934c
mov dword [ebp - 0x10], eax
call fcn.1004c251
mov edi, eax
xor ebx, ebx
cmp dword [edi + 0xc], ebx
jne 0x1004f34a
mov esi, dword [ebp + 8]
cmp esi, ebx
jne 0x1004f328
lea esi, [ebp - 0x1a0]
push esi
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
jne 0x1004f37c
cmp byte [esi], 1
jne 0x1004f376
cmp byte [esi + 1], 1
jne 0x1004f376
mov dword [edi + 0xc], 0x1004f2b5
call fcn.1004aafb
mov esi, eax
cmp dword [esi + 0x30], ebx
jne 0x1004f389
push 0x1c
call fcn.1003abdf
pop ecx
mov ecx, eax
mov dword [ebp - 0x1a4], ecx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x1004f380
push 0xa
call fcn.1003a4a4
jmp 0x1004f382
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x1004f3ec
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x30], eax
cmp dword [esi + 0x34], ebx
jne 0x1004f3bb
push 0x1c
call fcn.1003abdf
pop ecx
mov ecx, eax
mov dword [ebp - 0x1a4], ecx
cmp ecx, ebx
mov dword [ebp - 4], 1
je 0x1004f3b2
push 0xa
call fcn.1003a4a4
jmp 0x1004f3b4
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x34], eax
cmp dword [esi + 0x38], ebx
jne 0x1004f3e9
push 0x1c
call fcn.1003abdf
pop ecx
mov ecx, eax
mov dword [ebp - 0x1a4], ecx
cmp ecx, ebx
mov dword [ebp - 4], 2
je 0x1004f3e4
push 0xa
call fcn.10039fcc
jmp 0x1004f3e6
xor eax, eax
mov dword [esi + 0x38], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.10027973
leave
ret 4
Function at 0x4af150
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4af181
call fcn.0047eabf
mov dword [eax], esi
call fcn.0047eaac
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004766f1
add esp, 0x14
push 0x16
pop eax
jmp 0x4af1d6
test dword [ebp + 0xc], 0xfffffff9
jne 0x4af15d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4af1ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047ead2
pop ecx
call fcn.0047eaac
mov eax, dword [eax]
jmp 0x4af1d6
test al, 0x10
jne 0x4af1d4
test al, 1
je 0x4af1d4
test byte [ebp + 0xc], 2
je 0x4af1d4
call fcn.0047eabf
mov dword [eax], 5
call fcn.0047eaac
mov dword [eax], 0xd
jmp 0x4af1a5
xor eax, eax
pop esi
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0xe1931b9
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x5bc2737b
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x40130e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
lea eax, [ebp - 4]
push eax
push 0
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x401333
xor eax, eax
jmp 0x4013c2
push esi
push dword [ebp + 8]
mov esi, 0x20a
mov edx, esi
lea ecx, [ebp - 0x31c]
call section..text
push str.ShellOpenCommand
mov edx, esi
lea ecx, [ebp - 0x31c]
call fcn.004012df
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x31c]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0x105
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x401390
xor eax, eax
jmp 0x4013c1
cmp byte [ebp - 0x110], 0
lea esi, [ebp - 0x110]
je 0x4013b4
movsx eax, byte [esi]
push eax
call dword [sym.imp.MSVCR70.dll_isspace]
test eax, eax
pop ecx
je 0x4013b4
inc esi
cmp byte [esi], 0
jne 0x40139f
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
inc eax
pop esi
leave
ret 8

Function at 0x4013c6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
imul eax, eax, 0x106
push ebx
lea ebx, [eax + 0x4032e0]
cmp byte [ebx], 0
jne 0x40147d
push esi
push edi
push 0x5c
mov edi, 0x4031c0
push edi
call dword [sym.imp.MSVCR70.dll__mbsrchr]
test eax, eax
pop ecx
pop ecx
mov esi, 0x118
jne 0x401414
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
jmp 0x40142b
sub eax, edi
inc eax
cmp eax, esi
jbe 0x40141d
mov eax, esi
push edi
mov edx, eax
lea ecx, [ebp - 0x118]
call section..text
push 0x403034
mov edx, esi
lea ecx, [ebp - 0x118]
call fcn.004012df
push dword [ebp + 8]
call fcn.0040103a
push eax
mov edx, esi
lea ecx, [ebp - 0x118]
call fcn.004012df
lea eax, [ebp - 0x118]
push 0
push eax
call dword [sym.imp.MSVCR70.dll__access]
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
jne 0x40147d
lea eax, [ebp - 0x118]
push eax
mov edx, 0x106
mov ecx, ebx
call section..text
pop ebx
leave
ret 4
Function at 0x401482
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push esi
xor esi, esi
inc esi
push esi
mov eax, esi
call fcn.004013c6
cmp byte [0x4033e6], 0
jne 0x40155d
push ebx
push edi
mov ebx, 0x4033e6
push ebx
push str.VisualFoxProRuntime.8
call fcn.0040130e
test eax, eax
mov edi, dword [sym.imp.MSVCR70.dll__access]
je 0x4014d7
push 0
push ebx
call edi
test eax, eax
pop ecx
pop ecx
je 0x4014d7
and byte [0x4033e6], 0
push esi
mov eax, esi
jmp 0x401556
cmp byte [0x4033e6], 0
jne 0x40155b
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x401549
add eax, 0xc
cmp eax, 0x105
jg 0x401549
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x403034
lea eax, [ebp - 0x118]
push eax
call esi
push 1
call fcn.0040103a
push eax
lea eax, [ebp - 0x118]
push eax
call esi
lea eax, [ebp - 0x118]
push 0
push eax
call edi
test eax, eax
pop ecx
pop ecx
jne 0x401549
lea eax, [ebp - 0x118]
push eax
mov edx, 0x106
mov ecx, ebx
call section..text
cmp byte [0x4033e6], 0
jne 0x40155b
xor eax, eax
inc eax
push eax
call fcn.004013c6
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x1a615fb2
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x431060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x5e76446c
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x408dc8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00409288
mov byte [esp], al
cmp byte [esp], 0
jne 0x408f51
test edi, edi
je 0x408f51
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408e91
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408e6c
cmp edi, 0xffffffff
je 0x408e2d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408e2d
mov byte [esp], 0
jmp 0x408f51
cmp dword [esi], 1
jg 0x408e6c
cmp dword [esi], 0
jne 0x408e5e
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408e5e
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408f51
lea eax, [esp + 0xc]
call fcn.00408a7c
dec ebp
test ebp, ebp
jg 0x408e12
cmp edi, 0xffffffff
je 0x408e91
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408e8f
mov byte [esp], 0
jmp 0x408f51
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408dd6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408e91
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408fcc
mov edx, eax
mov ebx, dword [0x55b8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408ef5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408ef3
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408ef5
xor edi, edi
cmp byte [esp], 0
je 0x408f1b
mov ebx, dword [esi]
test bl, 1
jne 0x408f31
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408efb
mov byte [esp + 1], 1
jmp 0x408f31
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408f1b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408ea8
cmp byte [esp], 0
je 0x408f51
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x409e18
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x55b058], 0
je 0x409e7f
cmp word [0x55b344], 0xd7b2
jne 0x409e41
cmp dword [0x55b34c], 0
jbe 0x409e41
mov eax, 0x55b340
call dword [0x55b35c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x409eac
call fcn.0040a998
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x542036], 0
jne 0x409e9b
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40a040
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x542038], 0
je 0x40a06b
mov edx, edi
mov eax, esi
call dword [0x542038]
mov ebx, eax
jmp 0x40a07c
mov eax, 8
call fcn.00406f68
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x55b059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a008
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40a0ac
mov eax, ebx
call fcn.00406f84
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40d8a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40da0b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a180
cmp si, word [0x542a18]
jb 0x40d93c
cmp si, word [0x542c18]
ja 0x40d93c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d93c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x542a18]
jae 0x40d916
mov edi, ebx
dec edi
jmp 0x40d937
cmp si, word [ebx*8 + 0x542a18]
jbe 0x40d926
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d937
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x542a1c]
call fcn.0040d7c0
jmp 0x40d93c
cmp edi, dword [ebp - 8]
jae 0x40d900
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d9eb
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d9eb
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040ac80
push dword [ebp - 0x160]
push 0x40da28
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040ac80
push dword [ebp - 0x164]
push 0x40da38
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040ac80
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040aeb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40da12
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a1e0
pop eax
jmp eax
Function at 0x40dbc0
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 0x40dcc6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x55dc14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x55dc2c]
jne 0x40dc0c
mov eax, esi
mov edx, 0x55dc2e
mov ecx, 0x55
call fcn.0040ac80
push 0x55dc14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40dcae
push 0x55dc14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a180
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dc7b
cmp byte [0x55dc10], 0
je 0x40dc40
mov edx, esi
mov eax, ebx
call fcn.0040daa4
jmp 0x40dc7b
mov edx, esi
mov eax, ebx
call fcn.0040d8a4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40dc7b
cmp dword [esi], 0
je 0x40dc64
mov eax, esi
mov edx, 0x40dce0
call fcn.0040add8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d8a4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040add8
push 0x55dc14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x55dc2c], bx
mov eax, dword [esi]
call fcn.0040abe4
mov ecx, eax
mov eax, 0x55dc2e
mov edx, 0xaa
call fcn.0040d720
push 0x55dc14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dccd
lea eax, [ebp - 4]
call fcn.0040a180
pop eax
jmp eax
Function at 0x40df08
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a274
xor eax, eax
push ebp
push 0x40e130
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40df4e
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40df68
mov eax, dword [ebp - 4]
call fcn.0040abe4
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040d720
cmp word [ebp - 0x21e], 0
je 0x40e113
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e140
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e037
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e140
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e037
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e17c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e037
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e17c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e037
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e1b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e037
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e1e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e113
xor eax, eax
push ebp
push 0x40e10c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040dd08
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e09a
mov eax, dword [ebp - 0x14]
call fcn.00406f68
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040ac44
jmp 0x40e0e5
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e224
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e0e5
mov eax, dword [ebp - 0x14]
call fcn.00406f68
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e224
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040ac44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e113
cmp dword [ebp - 0xc], 0
je 0x40e100
mov eax, dword [ebp - 0xc]
call fcn.00406f84
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e137
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a1e0
pop eax
jmp eax