joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41be00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f510
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x46b238]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x244], 0xffffffff
push eax
mov dword [ebp - 0x248], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x41c010
cmp dword [ebp - 0x248], 0xffffffff
je 0x41c010
xor esi, esi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], ebx
push ebx
push 2
mov dword [ebp - 4], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x240], eax
cmp eax, 0xffffffff
je 0x41bfd9
push 0x228
lea eax, [ebp - 0x238]
mov dword [ebp - 0x23c], 0x22c
push ebx
push eax
call fcn.00422080
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41bf50
jmp 0x41bee0
lea eax, [ebp - 0x218]
push str.explorer.exe
push eax
call fcn.00429ece
add esp, 8
test eax, eax
jne 0x41bf2e
cmp edi, ebx
je 0x41bf0f
mov eax, dword [ebp - 0x234]
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x258], edi
jmp 0x41bf2e
lea eax, [ebp - 0x234]
push eax
push edi
lea ecx, [ebp - 0x25c]
call fcn.00407260
mov ebx, dword [ebp - 0x254]
mov edi, dword [ebp - 0x258]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41bee0
mov esi, dword [ebp - 0x25c]
mov dword [ebp - 0x24c], esi
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x41bfd9
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0xffffffff
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x41bfc4
mov eax, dword [ebp - 0x240]
cmp eax, dword [ebp - 0x248]
jne 0x41bfc4
push dword [esi]
push 0
push 0x100400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x250], eax
test eax, eax
je 0x41bfc4
lea ecx, [ebp - 0x244]
push ecx
push 0xf
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push dword [ebp - 0x250]
test eax, eax
jne 0x41bfcd
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, edi
jne 0x41bf60
jmp 0x41bfd3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x24c]
mov edi, dword [ebp - 0x244]
test esi, esi
je 0x41c00c
sub ebx, esi
mov eax, esi
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x41c002
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c032
push ebx
push esi
call fcn.00420143
add esp, 8
mov eax, edi
jmp 0x41c016
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004203b0
mov esp, ebp
pop ebp
ret
call fcn.00424aaf
int3
Function at 0x41d850
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 0x10
je 0x41d86d
cmp edi, 0x18
je 0x41d86d
cmp edi, 0x20
jne 0x41da44
shr edi, 2
mov ecx, 4
cmp edi, ecx
mov eax, edi
push esi
mov esi, dword [ebp + 0x10]
cmovb eax, ecx
lea eax, [eax*4 + 0x1c]
mov dword [ebp - 8], eax
test esi, esi
je 0x41da43
mov dword [esi], 0x10
push ebx
mov dword [esi + 4], eax
xor ebx, ebx
add esi, 8
mov dword [ebp + 0x10], esi
test edi, edi
je 0x41d8dd
mov edx, dword [ebp + 8]
add edx, 2
mov edi, edi
movzx ecx, byte [edx - 2]
lea edx, [edx + 4]
movzx eax, byte [edx - 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
mov dword [esi + ebx*4], ecx
inc ebx
cmp ebx, edi
jl 0x41d8b0
mov eax, dword [ebp - 8]
mov ebx, dword [esi + ebx*4 - 4]
mov ecx, edi
cmp edi, eax
jge 0x41d9bf
mov dword [ebp + 0xc], 0
mov dword [ebp - 4], esi
mov eax, ecx
cdq
idiv edi
test edx, edx
jne 0x41d955
mov eax, dword [ebp + 0xc]
cdq
idiv edi
mov dl, byte [eax + 0x458850]
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx esi, byte [eax + 0x456650]
movzx eax, dl
xor esi, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl esi, 8
movzx eax, byte [eax + 0x456650]
xor esi, eax
movzx eax, bl
shl esi, 8
shr ebx, 0x18
movzx eax, byte [eax + 0x456650]
xor esi, eax
movzx ebx, byte [ebx + 0x456650]
shl esi, 8
xor ebx, esi
mov esi, dword [ebp + 0x10]
jmp 0x41d9a2
cmp edi, 6
jbe 0x41d9a2
cmp edx, 4
jne 0x41d9a2
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x456650]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x456650]
shl eax, 8
xor edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x456650]
xor edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + 0x456650]
xor ebx, edx
mov eax, dword [ebp - 4]
inc dword [ebp + 0xc]
xor ebx, dword [eax]
add eax, 4
mov dword [esi + ecx*4], ebx
inc ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp ecx, eax
jl 0x41d8f5
xor edi, edi
sub ecx, 1
js 0x41da42
lea eax, [esi + eax*4]
mov dword [ebp + 0xc], eax
mov ebx, dword [esi + ecx*4]
cmp edi, 4
jl 0x41da32
cmp ecx, 4
jb 0x41da32
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x456650]
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x457c50]
movzx eax, byte [eax + 0x456650]
xor edx, dword [eax*4 + 0x458050]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x456650]
xor edx, dword [eax*4 + 0x457850]
movzx eax, bl
movzx eax, byte [eax + 0x456650]
xor edx, dword [eax*4 + 0x458450]
mov eax, dword [ebp + 0xc]
jmp 0x41da34
mov edx, ebx
mov dword [eax], edx
inc edi
add eax, 4
sub ecx, 1
mov dword [ebp + 0xc], eax
jns 0x41d9d0
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41dd20
Capabilities:
Decode data using base64 via dword translation table
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
lea eax, [esi - 1]
add eax, ecx
cmp byte [eax], 0x3d
jne 0x41dd41
lea eax, [eax - 1]
dec esi
cmp byte [eax], 0x3d
je 0x41dd35
mov dword [ebp + 0xc], esi
xor eax, eax
test esi, esi
je 0x41ddf8
push ebx
mov edx, 1
mov dword [ebp + 8], 2
lea ebx, [esi - 1]
sub edx, ecx
shr ebx, 2
push edi
lea edi, [ecx + 2]
mov dword [ebp - 4], edx
inc ebx
jmp 0x41dd70
movsx ecx, byte [edi - 1]
mov dh, byte [ecx + 0x4588b8]
movsx ecx, byte [edi - 2]
mov dl, byte [ecx + 0x4588b8]
mov cl, dh
sar cl, 4
and cl, 3
shl dl, 2
or dl, cl
mov ecx, dword [ebp + 0x10]
mov byte [eax + ecx], dl
inc eax
mov ecx, dword [ebp + 8]
cmp ecx, esi
jae 0x41dde4
movsx ecx, byte [edi]
mov esi, dword [ebp + 0x10]
shl dh, 4
mov dl, byte [ecx + 0x4588b8]
mov cl, dl
sar cl, 2
and cl, 0xf
or cl, dh
mov byte [eax + esi], cl
inc eax
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
add ecx, edi
cmp ecx, esi
jae 0x41dde1
movsx ecx, byte [edi + 1]
shl dl, 6
mov cl, byte [ecx + 0x4588b8]
and cl, 0x3f
or cl, dl
mov edx, dword [ebp + 0x10]
mov byte [eax + edx], cl
inc eax
mov ecx, dword [ebp + 8]
add ecx, 4
add edi, 4
mov dword [ebp + 8], ecx
sub ebx, 1
jne 0x41dd70
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41de00
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x10
push esi
xor esi, esi
test ecx, ecx
je 0x41df01
mov eax, dword [ebp + 8]
mov edx, 1
push ebx
mov ebx, dword [ebp + 0x10]
sub edx, eax
dec ecx
mov dword [ebp - 0x10], edx
push edi
lea edi, [eax + 1]
mov dword [ebp - 4], 1
mov eax, 0xaaaaaaab
mul ecx
mov ecx, edx
shr ecx, 1
inc ecx
mov dword [ebp - 0xc], ecx
movzx eax, byte [edi - 1]
mov ecx, dword [ebp + 0xc]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx], al
lea eax, [esi + 2]
mov dl, byte [edi - 1]
and dl, 3
shl dl, 4
cmp dword [ebp - 4], ecx
jae 0x41ded5
movzx ecx, byte [edi]
shr cl, 4
add cl, dl
movzx ecx, cl
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx + 1], cl
lea ecx, [eax + ebx]
mov dh, byte [edi]
inc eax
mov dword [ebp - 8], ecx
and dh, 0xf
mov ecx, dword [ebp - 0x10]
add ecx, edi
shl dh, 2
cmp ecx, dword [ebp + 0xc]
jae 0x41dec0
mov dl, byte [edi + 1]
mov ebx, dword [ebp - 8]
mov cl, dl
shr cl, 6
add cl, dh
movzx ecx, cl
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], cl
mov ebx, dword [ebp + 0x10]
movzx ecx, dl
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx], cl
jmp 0x41deeb
movzx ecx, dh
mov edx, dword [ebp - 8]
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], cl
mov cl, 0x3d
mov byte [eax + ebx], cl
jmp 0x41deeb
movzx ecx, dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx + 1], cl
mov byte [eax + ebx], 0x3d
inc eax
mov byte [eax + ebx], 0x3d
add dword [ebp - 4], 3
lea esi, [eax + 1]
add edi, 3
sub dword [ebp - 0xc], 1
jne 0x41de40
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42f104
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042ec57

Function at 0x432376
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004321ec
Function at 0x44a050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
mov eax, dword [0x46b238]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x64]
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
mov ebp, dword [esp + 0x5c]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], ebp
push 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], eax
call fcn.0043d0b0
push 0xffffffffffffffff
push dword [0x46bb94]
xorps xmm0, xmm0
mov dword [esp + 0x34], vtable.CryptoPP::ByteQueue::Walker.0
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], vtable.CryptoPP::ByteQueue::Walker.1.0
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], 0
movlpd qword [esp + 0x4c], xmm0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
call fcn.0043da70
push dword [ebx + 4]
lea ecx, [esp + 0x30]
push dword [ebx]
call fcn.0043dc80
mov eax, dword [esp + 0x6c]
sub eax, dword [ebx]
mov ecx, dword [esp + 0x70]
mov edi, eax
sbb ecx, dword [ebx + 4]
mov ebx, ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x3c]
mov esi, ebx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x44a180
mov ebp, dword [esp + 0x4c]
nop word [eax + eax]
mov esi, dword [ecx + 0x18]
xor eax, eax
sub esi, dword [ecx + 0x14]
sub esi, ebp
sbb eax, eax
cmp eax, ebx
ja 0x44a126
jb 0x44a128
cmp esi, edi
jb 0x44a128
mov esi, edi
mov eax, dword [esp + 0x10]
push dword [esp + 0x78]
push 0
mov eax, dword [eax]
push esi
mov edx, dword [eax + 0x8c]
mov eax, dword [ecx + 0x10]
add eax, dword [ecx + 0x14]
mov ecx, dword [esp + 0x1c]
add eax, ebp
push eax
push dword [esp + 0x24]
call edx
mov edx, eax
test edx, edx
jne 0x44a1c0
add dword [esp + 0x44], esi
adc dword [esp + 0x48], eax
sub edi, esi
sbb ebx, eax
mov eax, edi
or eax, ebx
je 0x44a1c0
mov eax, dword [esp + 0x3c]
xor ebp, ebp
mov ecx, dword [eax]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x4c], ebp
test ecx, ecx
jne 0x44a110
mov ebp, dword [esp + 0x10]
jmp 0x44a186
xor edx, edx
or eax, esi
je 0x44a1c0
mov esi, dword [esp + 0x54]
test esi, esi
je 0x44a1c0
xor eax, eax
cmp eax, ebx
ja 0x44a19a
jb 0x44a19c
cmp esi, edi
jb 0x44a19c
mov esi, edi
push dword [esp + 0x78]
mov eax, dword [ebp]
mov ecx, ebp
push 0
push esi
push dword [esp + 0x5c]
push dword [esp + 0x24]
call dword [eax + 0x8c]
mov edx, eax
test edx, edx
jne 0x44a1c0
sub edi, esi
sbb ebx, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
sub ecx, edi
pop edi
sbb esi, ebx
add dword [eax], ecx
mov ecx, dword [esp + 0x58]
adc dword [eax + 4], esi
mov eax, edx
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004203b0
add esp, 0x50
ret 0x18
Function at 0x4067a0
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.00406c48
mov byte [esp], al
cmp byte [esp], 0
jne 0x406929
test edi, edi
je 0x406929
mov byte [esp + 1], 0
test ebp, ebp
jle 0x406869
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x406844
cmp edi, 0xffffffff
je 0x406805
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406805
mov byte [esp], 0
jmp 0x406929
cmp dword [esi], 1
jg 0x406844
cmp dword [esi], 0
jne 0x406836
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x406836
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406929
lea eax, [esp + 0xc]
call fcn.00406480
dec ebp
test ebp, ebp
jg 0x4067ea
cmp edi, 0xffffffff
je 0x406869
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406867
mov byte [esp], 0
jmp 0x406929
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4067ae
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406869
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004069a4
mov edx, eax
mov ebx, dword [0x4c08f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4068cd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4068cb
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4068cd
xor edi, edi
cmp byte [esp], 0
je 0x4068f3
mov ebx, dword [esi]
test bl, 1
jne 0x406909
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4068d3
mov byte [esp + 1], 1
jmp 0x406909
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4068f3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x406880
cmp byte [esp], 0
je 0x406929
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 0x4077d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c0058], 0
je 0x407837
cmp word [0x4c0344], 0xd7b2
jne 0x4077f9
cmp dword [0x4c034c], 0
jbe 0x4077f9
mov eax, 0x4c0340
call dword [0x4c035c]
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, 0x407864
call fcn.00408330
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4bc032], 0
jne 0x407853
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4079f8
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 [0x4bc034], 0
je 0x407a23
mov edx, edi
mov eax, esi
call dword [0x4bc034]
mov ebx, eax
jmp 0x407a34
mov eax, 8
call fcn.00405404
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4c0059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4079c0
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 0x407a64
mov eax, ebx
call fcn.00405420
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40ae18
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 0x40af7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407b38
cmp si, word [0x4bca10]
jb 0x40aeb0
cmp si, word [0x4bcc10]
ja 0x40aeb0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40aeb0
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4bca10]
jae 0x40ae8a
mov edi, ebx
dec edi
jmp 0x40aeab
cmp si, word [ebx*8 + 0x4bca10]
jbe 0x40ae9a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40aeab
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4bca14]
call fcn.0040ad38
jmp 0x40aeb0
cmp edi, dword [ebp - 8]
jae 0x40ae74
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40af5f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40af5f
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.00408620
push dword [ebp - 0x160]
push 0x40af98
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00408620
push dword [ebp - 0x164]
push 0x40afa8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00408620
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00408858
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40af84
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407b98
ret
Function at 0x40b130
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 0x40b234
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4c2c10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4c2c28]
jne 0x40b17c
mov eax, esi
mov edx, 0x4c2c2a
mov ecx, 0x55
call fcn.00408620
push 0x4c2c10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40b21e
push 0x4c2c10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00407b38
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40b1eb
cmp byte [0x4c2c0c], 0
je 0x40b1b0
mov edx, esi
mov eax, ebx
call fcn.0040b014
jmp 0x40b1eb
mov edx, esi
mov eax, ebx
call fcn.0040ae18
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40b1eb
cmp dword [esi], 0
je 0x40b1d4
mov eax, esi
mov edx, 0x40b24c
call fcn.00408778
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040ae18
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00408778
push 0x4c2c10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4c2c28], bx
mov eax, dword [esi]
call fcn.00408580
mov ecx, eax
mov eax, 0x4c2c2a
mov edx, 0xaa
call fcn.0040ac98
push 0x4c2c10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b23b
lea eax, [ebp - 4]
call fcn.00407b38
ret
Function at 0x40b464
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.00407c1c
xor eax, eax
push ebp
push 0x40b689
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40b4a4
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40b4be
mov eax, dword [ebp - 4]
call fcn.00408580
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040ac98
cmp word [ebp - 0x21a], 0
je 0x40b673
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b698
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b58d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b698
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b58d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b6d4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b58d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b6d4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b58d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b708
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b58d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b73c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40b673
xor eax, eax
push ebp
push 0x40b66c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040b274
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 0x40b5fc
mov eax, dword [ebp - 0x10]
call fcn.00405404
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.004085e4
jmp 0x40b647
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40b77c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40b647
mov eax, dword [ebp - 0x10]
call fcn.00405404
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40b77c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004085e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b673
cmp dword [ebp - 8], 0
je 0x40b662
mov eax, dword [ebp - 8]
call fcn.00405420
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 0x40b690
lea eax, [ebp - 4]
call fcn.00407b38
ret