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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
lea eax, [ebp + 0xc]
push eax
push 1
xor esi, esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100bba4
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0x10]
mov dword [ebp + 8], 0x104
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0xc]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x100c21a
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1026bb8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
call fcn.010183b1
test eax, eax
je 0x100c24d
mov ecx, dword [esp + 4]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 8]
mov word [eax + 2], 6
mov dword [eax + 0xc], ecx
mov dword [eax + 4], 1
ret 8

Function at 0x100c250
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1026bb8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
call fcn.010183b1
test eax, eax
je 0x100c283
mov ecx, dword [esp + 4]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 8]
mov word [eax + 2], 7
mov dword [eax + 0xc], ecx
mov dword [eax + 4], 1
ret 8

Function at 0x100c2ce
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1026bb8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
call fcn.010183b1
test eax, eax
je 0x100c2fe
mov ecx, dword [esp + 4]
mov word [eax + 2], 9
mov byte [eax + 8], 2
mov dword [eax + 0xc], ecx
mov dword [eax + 4], 1
ret 4

Function at 0x100c301
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1026bb8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
call fcn.010183b1
test eax, eax
je 0x100c33b
mov cl, byte [esp + 0xc]
mov byte [eax + 8], cl
mov ecx, dword [esp + 4]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 8]
mov word [eax + 2], 9
mov dword [eax + 0x10], ecx
mov dword [eax + 4], 1
ret 0xc

Function at 0x100c33e
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1026bb8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
call fcn.010183b1
test eax, eax
je 0x100c37f
mov cl, byte [esp + 0x10]
mov byte [eax + 8], cl
mov ecx, dword [esp + 4]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 8]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0xc]
mov word [eax + 2], 9
mov dword [eax + 0x14], ecx
mov dword [eax + 4], 1
ret 0x10

Function at 0x100c382
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1026bb8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
call fcn.010183b1
test eax, eax
je 0x100c3b9
mov ecx, dword [esp + 4]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 8]
mov word [eax + 2], 9
mov byte [eax + 8], 5
mov dword [eax + 0x10], ecx
mov dword [eax + 4], 1
ret 8

Function at 0x100c3bc
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1026bb8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
call fcn.010183b1
test eax, eax
je 0x100c3fa
mov ecx, dword [esp + 4]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 8]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0xc]
mov word [eax + 2], 9
mov byte [eax + 8], 6
mov dword [eax + 0x14], ecx
mov dword [eax + 4], 1
ret 0xc
Function at 0x100c42c
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push dword [0x1026bb8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov bl, byte [ebp + 0xc]
cmp bl, 2
mov esi, dword [eax + 8]
je 0x100c451
cmp bl, 7
jne 0x100c466
push dword [ebp + 8]
call fcn.010140d7
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x100c469
mov edi, dword [ebp + 8]
test edi, edi
jne 0x100c474
xor eax, eax
jmp 0x100c567
mov ecx, esi
call fcn.010183b1
mov esi, eax
test esi, esi
je 0x100c565
mov al, byte [ebp + 0x18]
mov cl, byte [ebp + 0x14]
and dword [esi + 0xc], 0
or al, 0xfe
shl al, 1
and cl, 1
or al, cl
mov cl, byte [esi + 0x14]
shl al, 5
and cl, 0x1c
or al, cl
mov byte [esi + 0x14], al
lea eax, [ebp - 0x18]
push eax
push 0x18
push edi
mov word [esi + 2], 0xb
mov dword [esi + 8], edi
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ax, word [ebp - 0x14]
mov word [esi + 0x10], ax
mov ax, word [ebp - 0x10]
mov word [esi + 0x12], ax
mov al, bl
shl al, 2
xor al, byte [esi + 0x14]
and al, 0x1c
xor byte [esi + 0x14], al
test bl, bl
je 0x100c55a
jbe 0x100c55e
cmp bl, 2
jbe 0x100c4f3
cmp bl, 3
je 0x100c4fb
cmp bl, 6
je 0x100c549
cmp bl, 7
jne 0x100c55e
mov al, byte [ebp + 0x10]
mov byte [esi + 0x15], al
jmp 0x100c55e
mov ebx, dword [ebp + 0x10]
cmp ebx, 0xffffffff
jne 0x100c54c
cmp dword [esi + 8], 0
je 0x100c54c
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x100c54c
push dword [esi + 8]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
call edi
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp + 0x18], eax
call dword [sym.imp.GDI32.dll_GetPixel]
push dword [ebp + 0x18]
mov ebx, eax
push dword [ebp + 0xc]
call edi
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x100c54c
mov ebx, dword [ebp + 0x10]
mov byte [esi + 0x15], bl
mov byte [esi + 0x16], bh
shr ebx, 0x10
mov byte [esi + 0x17], bl
jmp 0x100c55e
and byte [esi + 0x15], 0
mov dword [esi + 4], 1
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x100c56e
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push dword [0x1026bb8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
call fcn.010183b1
mov esi, eax
test esi, esi
je 0x100c617
mov cl, byte [esi + 0x14]
mov eax, dword [ebp + 8]
and dword [esi + 0xc], 0
and cl, 0xfd
or cl, 1
test eax, eax
mov word [esi + 2], 0xb
mov dword [esi + 8], eax
mov byte [esi + 0x14], cl
je 0x100c5ef
push edi
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetIconInfo]
lea eax, [ebp - 0x2c]
push eax
push 0x18
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ax, word [ebp - 0x28]
push dword [ebp - 8]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
mov word [esi + 0x10], ax
mov ax, word [ebp - 0x24]
mov word [esi + 0x12], ax
call edi
push dword [ebp - 4]
call edi
pop edi
mov al, byte [ebp + 0x10]
mov cl, byte [ebp + 0xc]
and byte [esi + 0x15], 0
or al, 0xfe
and cl, 1
shl al, 1
or al, cl
mov cl, byte [esi + 0x14]
shl al, 5
and cl, 3
or al, cl
mov byte [esi + 0x14], al
mov dword [esi + 4], 1
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x100c69e
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x1026bb8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
call fcn.010183b1
mov esi, eax
test esi, esi
je 0x100c6da
push edi
mov edi, dword [esp + 0xc]
test edi, edi
mov word [esi + 2], 0xc
je 0x100c6cf
mov ecx, edi
call fcn.01018718
mov dword [esi + 8], edi
mov dword [esi + 4], 1
pop edi
mov eax, esi
pop esi
ret 4

Function at 0x100d001
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1026bb8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x100d012
ret
mov eax, dword [eax + 0xc]
ret
Function at 0x100e854
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [0x1026bb8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp byte [ebp + 0xc], 0
mov ebx, dword [eax + 0xc]
je 0x100e90f
test byte [ebp + 0xa], 1
je 0x100e8f7
test byte [esi + 0x65], 4
je 0x100e8a8
mov ecx, esi
call fcn.0100dfdd
mov ebx, eax
mov edi, 0xf000
test edi, ebx
je 0x100e8a8
call fcn.0100cfe3
test al, al
je 0x100e8a8
push edi
push ebx
mov ecx, esi
call fcn.01010843
jmp 0x100e8f7
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.010070f6
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.01007111
mov ecx, dword [edi]
mov edx, dword [eax]
lea ebx, [edx + ecx]
cmp ebx, ecx
jl 0x100e8e7
mov ebx, dword [eax + 4]
mov eax, dword [edi + 4]
lea edi, [eax + ebx]
cmp edi, eax
jl 0x100e8e7
push 0xb
push ebx
push edx
push eax
push ecx
push dword [esi + 4]
call dword [sym.imp.DUSER.dll_SetGadgetRect]
mov ecx, dword [ebp + 0xc]
call fcn.010070e0
mov ecx, dword [ebp - 4]
call fcn.010070e0
test byte [ebp + 0xa], 2
je 0x100e9b5
push dword [esi + 4]
call dword [sym.imp.DUSER.dll_InvalidateGadget]
jmp 0x100e9b5
test byte [ebp + 8], 5
je 0x100e95c
mov eax, esi
mov edi, eax
mov eax, dword [eax + 0x20]
test eax, eax
je 0x100e926
cmp dword [edi + 0x44], 0xfffffffe
jne 0x100e917
test byte [ebp + 8], 1
je 0x100e93d
or byte [esi + 0x66], 2
mov ecx, dword [ebx + 0x14]
push 1
push 1
push edi
call fcn.0100d0a3
test byte [ebp + 8], 4
je 0x100e95c
mov eax, dword [esi + 0x68]
and eax, 0xfffffffd
push 1
or eax, 1
push 1
mov dword [esi + 0x68], eax
mov ecx, dword [ebx + 0x10]
push edi
call fcn.0100d0a3
test byte [ebp + 8], 0xa
je 0x100e9b5
mov eax, esi
xor edi, edi
mov esi, eax
mov eax, dword [eax + 0x20]
test eax, eax
je 0x100e97b
test edi, edi
jne 0x100e975
mov edi, eax
cmp dword [esi + 0x44], 0xfffffffe
jne 0x100e966
test edi, edi
je 0x100e9b5
test byte [ebp + 8], 2
je 0x100e996
or byte [edi + 0x66], 2
mov ecx, dword [ebx + 0x14]
push 1
push 1
push esi
call fcn.0100d0a3
test byte [ebp + 8], 8
je 0x100e9b5
mov eax, dword [edi + 0x68]
and eax, 0xfffffffd
push 1
or eax, 1
push 1
mov dword [edi + 0x68], eax
mov ecx, dword [ebx + 0x10]
push esi
call fcn.0100d0a3
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x101439b
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xcc
push esi
push dword [ebp + 0x7c]
lea eax, [ebp - 0x60]
push dword [ebp + 0x78]
mov esi, ecx
push dword [ebp + 0x74]
push 0x1003cdc
push 0x65
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
and word [ebp + 0x68], 0
add esp, 0x18
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esi + 0x10]
test eax, eax
pop esi
je 0x10143e8
push dword [ebp + 0x7c]
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call eax
add ebp, 0x6c
leave
ret 0xc

Function at 0x10158cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
xor ecx, ecx
cmp eax, ecx
push edi
mov dword [esi + 0x43c], eax
mov word [esi + 0x2c], cx
mov word [esi + 0x234], cx
jne 0x10158ff
lea eax, [esi + 0x440]
mov dword [eax], ecx
mov dword [esi + 0x43c], eax
mov eax, dword [ebp + 0x10]
push dword [ebp + 8]
and byte [esi + 0xc], 0
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x54]
push 0x1003f08
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
mov eax, dword [esi + 0x43c]
mov edi, dword [eax]
add esp, 0xc
push 0x1003ef8
lea eax, [ebp - 0x54]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x1015969
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1015969
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0101553b
test eax, eax
jl 0x101596b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1015edb
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x18], 5
pop edi
jb 0x1015f11
xor eax, eax
inc eax
cmp dword [ebp - 0x14], eax
jae 0x1015f13
xor eax, eax
add ebp, 0x78
leave
ret
Function at 0x101603a
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1026bb8]
cmp eax, 0xffffffff
push ebx
push esi
push edi
jne 0x1016057
mov edi, 0x80004005
jmp 0x101615f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
cmp eax, ebx
je 0x101606e
inc dword [eax + 4]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push 0x1c
push 8
push dword [0x102c110]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
jne 0x101608e
mov edi, 0x8007000e
jmp 0x1016122
push esi
push dword [0x1026bb8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [esi + 8]
push eax
push ebx
push 0x30
push 0x18
call fcn.0101843e
mov edi, eax
cmp edi, ebx
jl 0x1016122
lea eax, [esi + 0xc]
push eax
call fcn.0100eeee
mov edi, eax
cmp edi, ebx
jl 0x1016122
lea eax, [esi + 0x10]
push eax
push 8
call fcn.0101a63f
mov edi, eax
cmp edi, ebx
jl 0x1016122
mov dword [esi + 4], 1
mov byte [esi + 0x14], bl
mov dword [esi + 0x18], ebx
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ecx, ecx
cmp dword [0x102c160], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
setne cl
push 2
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x14
mov dword [ebp - 8], ebx
add ecx, eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0xc], ecx
call dword [sym.imp.DUSER.dll_InitGadgets]
cmp eax, ebx
mov dword [esi], eax
jne 0x1016067
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp esi, ebx
je 0x101615f
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
je 0x1016132
call fcn.01018437
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x101613f
push eax
call fcn.01014ab6
mov eax, dword [esi]
cmp eax, ebx
je 0x101614c
push eax
call dword [sym.imp.DUSER.dll_DeleteHandle]
push esi
call fcn.01007e4e
push ebx
push dword [0x1026bb8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, edi
jmp 0x1016069

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

Disassembly:
mov eax, dword [0x1026bb8]
cmp eax, 0xffffffff
jne 0x1016176
mov eax, 0x80004005
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x101618b
mov eax, 0x8004000a
pop esi
ret
dec dword [esi + 4]
cmp dword [esi + 4], 0
jg 0x10161d4
push dword [esi]
call dword [sym.imp.DUSER.dll_DeleteHandle]
cmp byte [esi + 0x14], 0
je 0x10161a8
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esi + 0x10]
call fcn.01018437
push dword [esi + 0xc]
call fcn.01014ab6
mov ecx, dword [esi + 8]
call fcn.01018437
push esi
call fcn.01007e4e
push 0
push dword [0x1026bb8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
pop esi
ret
Function at 0x403f68
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405dc0
test esi, esi
jne 0x403f9e
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.00405efc
jmp 0x403fbc
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403e4c
mov edi, eax
test esi, esi
je 0x403fbc
cmp dword [ebx], 0
je 0x403fbc
dec esi
jmp 0x403fa5
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405af4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41504c], 0
je 0x405b55
cmp word [0x415328], 0xd7b2
jne 0x405b1d
cmp dword [0x415330], 0
jbe 0x405b1d
mov eax, 0x415324
call dword [0x415340]
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 0x405b80
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41401c], 0
jne 0x405b71
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x407428
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 0x40758d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405dc0
cmp si, word [0x4147e8]
jb 0x4074c0
cmp si, word [0x4149e8]
ja 0x4074c0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4074c0
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4147e8]
jae 0x40749a
mov edi, ebx
dec edi
jmp 0x4074bb
cmp si, word [ebx*8 + 0x4147e8]
jbe 0x4074aa
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4074bb
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4147ec]
call fcn.00407338
jmp 0x4074c0
cmp edi, dword [ebp - 8]
jae 0x407484
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40756f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40756f
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.004064d4
push dword [ebp - 0x160]
push 0x4075a8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004064d4
push dword [ebp - 0x164]
push 0x4075b8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004064d4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00406674
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407594
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00405e20
ret
Function at 0x407740
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 0x407843
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x417b4d
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x417b66]
jne 0x40778c
mov eax, esi
mov edx, 0x417b68
mov ecx, 0x55
call fcn.004064d4
push 0x417b4d
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40782d
push 0x417b4d
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00405dc0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4077fb
cmp byte [0x417b4c], 0
je 0x4077c0
mov edx, esi
mov eax, ebx
call fcn.00407624
jmp 0x4077fb
mov edx, esi
mov eax, ebx
call fcn.00407428
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4077fb
cmp dword [esi], 0
je 0x4077e4
mov eax, esi
mov edx, 0x40785c
call fcn.00406594
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00407428
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406594
push 0x417b4d
call sub.kernel32.dll_EnterCriticalSection
mov word [0x417b66], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406448
push eax
push 0x417b68
call sub.kernel32.dll_lstrcpynW
push 0x417b4d
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40784a
lea eax, [ebp - 4]
call fcn.00405dc0
ret
Function at 0x407a78
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.00405ea4
xor eax, eax
push ebp
push 0x407c9d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x407ab8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x407ad2
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406448
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x407c87
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407cac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407ba1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407cac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407ba1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407ce8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407ba1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407ce8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407ba1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407d1c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407ba1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407d50
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x407c87
xor eax, eax
push ebp
push 0x407c80
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00407884
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 0x407c10
mov eax, dword [ebp - 0x10]
call fcn.00403b94
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.00406498
jmp 0x407c5b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x407d90
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x407c5b
mov eax, dword [ebp - 0x10]
call fcn.00403b94
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x407d90
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406498
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407c87
cmp dword [ebp - 8], 0
je 0x407c76
mov eax, dword [ebp - 8]
call fcn.00403bb0
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 0x407ca4
lea eax, [ebp - 4]
call fcn.00405dc0
ret