joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4018a8
Capabilities:
Encode data using xor

Disassembly:
push 0x42261c
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
inc eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ecx + 0x34], dh
inc edx
push eax
dec edx
jp 0x4018b6
inc edi
adc ebp, 0xa7d82db
xor eax, 0xad
add byte [eax], al
add byte [ecx], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax + 0x72], dl
outsd dx, dword [esi]
jns 0x40194e
arpl word [edi + ebp*2 + 0x31], si
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add bh, bh
int3
add byte [eax], al
add byte [ecx - 0xcfffdf4], cl
les eax, [ecx]
add byte [eax], al
add eax, 0x726f4600
insd dword es:[edi], dx
inc esi
outsd dx, dword [esi]
jb 0x4019cd
xor dword [eax], eax
or eax, 0x4c003801
inc ebp
inc ebx
push esp
push ebp
push edx
inc ecx
and byte [ebp + eax*2 + 0x20], al
inc esi
inc ecx
inc ebx
push esp
push ebp
push edx
inc ecx
push ebx
and byte [ebp + eax*2 + 0x20], al
push ebx
push ebp
dec ebp
dec ecx
dec esi
dec ecx
push ebx
push esp
push edx
dec edi
push ebx
and byte [esi + 0x33], dh
xor byte cs:[eax], ah
and byte [edx + 0x59], al
and byte [esi + 0x45], cl
push edi
inc edx
dec ecx
push esp
aaa
cmp byte [eax], ch
inc ebx
sub dword [eax], esp
add byte [ebx], al
adc al, byte [eax]
add byte [eax + 0xe04], al
sbb byte [ecx], 0
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax - 0x5fffffbf], ah
inc ecx
inc ebx
add byte [ecx], ah
jae 0x40195c
add dword [eax], eax
insb byte es:[edi], dx
je 0x4019c6
add byte [ebx - 0x65], ch
add dword [eax], eax
invalid
jmp eax
Function at 0x403e57
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp byte [edi], 0x25
jne 0x403ed4
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
call fcn.00403093
lea eax, [ebp + eax - 0x105]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x25
jne 0x403ebc
and byte [eax], 0
push dword [ebp + 0x1c]
lea eax, [ebp - 0x104]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push eax
push 0x4016ec
call esi
pop edi
pop esi
leave
ret 0x18

Function at 0x4041d7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0xc]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40422c
push esi
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
push esi
lea eax, [ebp + 8]
push esi
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x404223
cmp dword [ebp + 8], esi
jne 0x404223
cmp dword [ebp - 4], esi
jne 0x404223
push 1
pop esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 8

Function at 0x401300
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push str.TeenyWiny
push str.Balaklava
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401338
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0xbc], eax
push str.Times_New
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov eax, dword [ebp + 8]
push eax
call fcn.00401600
add esp, 4
push str.Roman
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x3c], 0xe
mov dword [ebp - 0x4c], 0xa
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call section..text
add esp, 8
test eax, eax
jne 0x40139c
xor eax, eax
jmp 0x4013d5
push 0
push 0
push 0
lea ecx, [ebp - 0xb8]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4013cf
lea edx, [ebp - 0xb8]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40139c
mov eax, dword [ebp - 0xb0]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x415037
Capabilities:
Packed with generic packer

Disassembly:
pushal
call 0x41503d
pop eax
sub eax, 0x3d
push eax
lea edi, [eax - 0x14000]
push edi
add word [edi + 0x13a8c], 1
lea esi, [eax + 0x1ec]
or ebp, 0xffffffff
xor ebx, ebx
jmp 0x415066
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x415071
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x415060
mov eax, 1
add ebx, ebx
jne 0x415083
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
ja 0x415078
jne 0x415094
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x415078
xor ecx, ecx
sub eax, 3
jb 0x415102
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41511e
mov ebp, eax
add ebx, ebx
jne 0x4150b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4150c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4150e4
inc ecx
add ebx, ebx
jne 0x4150d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
ja 0x4150c5
jne 0x4150e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4150c5
add ecx, 2
cmp eax, 0xfffff300
adc ecx, 1
lea edx, [edi + eax]
cmp eax, 0xfffffffc
jle 0x415108
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4150f4
jmp 0x415066
mov eax, ebp
jmp 0x4150a8
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x415108
add edi, ecx
jmp 0x415066
pop esi
pop ebp
sub edi, dword [edi - 4]
push edi
lea edi, [esi]
mov ecx, 0x1f5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41512f
cmp byte [edi], 1
jne 0x41512f
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x415134
pop edi
mov eax, dword [edi]
or eax, eax
je 0x415199
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x13000]
add ebx, esi
push eax
add edi, 8
call dword [ebp]
xchg edx, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41515c
push edx
mov ecx, edi
jns 0x415189
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push edx
call dword [ebp + 4]
pop edx
mov dword [ebx], eax
add ebx, 4
jmp 0x415176
lea ebx, [esi - 4]
add edi, 4
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4151ca
cmp al, 0xef
ja 0x4151bd
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x41519f
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4151ac
popal
jmp 0x407808
Function at 0xa7df50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x55c000]
push edi
or ebp, 0xffffffff
jmp 0xa7df72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xa7df79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa7df68
mov eax, 1
add ebx, ebx
jne 0xa7df8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xa7df9c
jne 0xa7dfbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa7dfbb
dec eax
add ebx, ebx
jne 0xa7dfa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xa7df80
add ebx, ebx
jne 0xa7dfb7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xa7e00d
xor ecx, ecx
sub eax, 3
jb 0xa7dfd3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xa7e042
sar eax, 1
mov ebp, eax
jmp 0xa7dfde
add ebx, ebx
jne 0xa7dfde
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa7dfac
inc ecx
add ebx, ebx
jne 0xa7dfec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa7dfac
add ebx, ebx
jne 0xa7dff9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xa7dfee
jne 0xa7e00a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xa7dfee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xa7e02c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xa7e01e
jmp 0xa7df6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xa7e02c
add edi, ecx
jmp 0xa7df6e
pop esi
mov edi, esi
mov ecx, 0xb5b7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xa7e04a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xa7e04f
lea edi, [esi + 0x67b000]
mov eax, dword [edi]
or eax, eax
je 0xa7e0c0
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6807c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x680800]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xa7e075
mov ecx, edi
jns 0xa7e0a4
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x680804]
or eax, eax
je 0xa7e0ba
mov dword [ebx], eax
add ebx, 4
jmp 0xa7e092
call dword [esi + 0x680814]
mov ebp, dword [esi + 0x680808]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xa7e0f4
sub esp, 0xffffff80
jmp 0x425448
Function at 0x438400
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43842d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43842d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x532e5347
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x59d04e05
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x406a60
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.004091c4
test esi, esi
jne 0x406a96
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.0040934c
jmp 0x406ab4
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004069a4
mov edi, eax
test esi, esi
je 0x406ab4
cmp dword [ebx], 0
je 0x406ab4
dec esi
jmp 0x406a9d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x407f38
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408310
mov byte [esp], al
cmp byte [esp], 0
jne 0x4080b8
test edi, edi
je 0x4080b8
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407ff8
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x407fd3
cmp edi, 0xffffffff
je 0x407f97
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407f97
mov byte [esp], 0
jmp 0x4080b8
mov ebx, dword [esi]
cmp ebx, 1
jg 0x407fd3
test ebx, ebx
jne 0x407fc9
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x407fc9
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4080b8
call 0x408430
dec ebp
test ebp, ebp
jg 0x407f7c
cmp edi, 0xffffffff
je 0x407ff8
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407ff6
mov byte [esp], 0
jmp 0x4080b8
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407f46
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407ff8
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408124
mov edx, eax
mov ebx, dword [0x5dd8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40805c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40805a
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40805c
xor edi, edi
cmp byte [esp], 0
je 0x408082
mov ebx, dword [esi]
test bl, 1
jne 0x408098
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408062
mov byte [esp + 1], 1
jmp 0x408098
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408082
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40800f
cmp byte [esp], 0
je 0x4080b8
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x408e60
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5dd058], 0
je 0x408ec7
cmp word [0x5dd344], 0xd7b2
jne 0x408e89
cmp dword [0x5dd34c], 0
jbe 0x408e89
mov eax, 0x5dd340
call dword [0x5dd35c]
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, 0x408ef4
call fcn.00409a08
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5d7032], 0
jne 0x408ee3
push 0
push 0x5d79c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409084
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 [0x5d7034], 0
je 0x4090af
mov edx, edi
mov eax, esi
call dword [0x5d7034]
mov ebx, eax
jmp 0x4090c0
mov eax, 8
call fcn.004066e0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5dd059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40904c
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 0x4090f0
mov eax, ebx
call fcn.004066fc
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40b878
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 0x40b9dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004091c4
cmp si, word [0x5d7a00]
jb 0x40b910
cmp si, word [0x5d7c00]
ja 0x40b910
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40b910
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5d7a00]
jae 0x40b8ea
mov edi, ebx
dec edi
jmp 0x40b90b
cmp si, word [ebx*8 + 0x5d7a00]
jbe 0x40b8fa
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40b90b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5d7a04]
call fcn.0040b798
jmp 0x40b910
cmp edi, dword [ebp - 8]
jae 0x40b8d4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40b9bf
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40b9bf
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.00409dac
push dword [ebp - 0x160]
push 0x40b9f8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409dac
push dword [ebp - 0x164]
push 0x40ba08
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409dac
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00409fe4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b9e4
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409224
ret
Function at 0x40bb90
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 0x40bc94
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5dfb88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5dfba0]
jne 0x40bbdc
mov eax, esi
mov edx, 0x5dfba2
mov ecx, 0x55
call fcn.00409dac
push 0x5dfb88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40bc7e
push 0x5dfb88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004091c4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bc4b
cmp byte [0x5dfb84], 0
je 0x40bc10
mov edx, esi
mov eax, ebx
call fcn.0040ba74
jmp 0x40bc4b
mov edx, esi
mov eax, ebx
call fcn.0040b878
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40bc4b
cmp dword [esi], 0
je 0x40bc34
mov eax, esi
mov edx, 0x40bcac
call fcn.00409f04
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040b878
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00409f04
push 0x5dfb88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5dfba0], bx
mov eax, dword [esi]
call fcn.00409d08
mov ecx, eax
mov eax, 0x5dfba2
mov edx, 0xaa
call fcn.0040b6f8
push 0x5dfb88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc9b
lea eax, [ebp - 4]
call fcn.004091c4
ret
Function at 0x40bec4
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.004092a8
xor eax, eax
push ebp
push 0x40c0e9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40bf04
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40bf1e
mov eax, dword [ebp - 4]
call fcn.00409d08
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040b6f8
cmp word [ebp - 0x21a], 0
je 0x40c0d3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c0f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bfed
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c0f8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bfed
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c134
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bfed
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c134
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bfed
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c168
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bfed
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c19c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c0d3
xor eax, eax
push ebp
push 0x40c0cc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040bcd4
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 0x40c05c
mov eax, dword [ebp - 0x10]
call fcn.004066e0
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.00409d70
jmp 0x40c0a7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c1dc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c0a7
mov eax, dword [ebp - 0x10]
call fcn.004066e0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c1dc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409d70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c0d3
cmp dword [ebp - 8], 0
je 0x40c0c2
mov eax, dword [ebp - 8]
call fcn.004066fc
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 0x40c0f0
lea eax, [ebp - 4]
call fcn.004091c4
ret