joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100af1ec
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101db2d8]
jne 0x100af1f6
repz ret
jmp fcn.100b0c5b

Function at 0x100b1daf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100af26d
and dword [ebp - 4], 0
cmp dword [0x101dcfe8], 0
mov ebx, eax
jne 0x100b1e60
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100b1f11
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100b1f11
push eax
call fcn.100af1fb
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101dcfe8], eax
call esi
push eax
call fcn.100af1fb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101dcfec], eax
call esi
push eax
call fcn.100af1fb
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x101dcff0], eax
call esi
push eax
call fcn.100af1fb
pop ecx
mov dword [0x101dcff8], eax
test eax, eax
je 0x100b1e60
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100af1fb
pop ecx
mov dword [0x101dcff4], eax
mov eax, dword [0x101dcff4]
cmp eax, ebx
je 0x100b1eb8
cmp dword [0x101dcff8], ebx
je 0x100b1eb8
push eax
call fcn.100af276
push dword [0x101dcff8]
mov esi, eax
call fcn.100af276
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100b1eb8
test edi, edi
je 0x100b1eb8
call esi
test eax, eax
je 0x100b1eaf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100b1eaf
test byte [ebp - 0xc], 1
jne 0x100b1eb8
or dword [ebp + 0x10], 0x200000
jmp 0x100b1ef1
mov eax, dword [0x101dcfec]
cmp eax, ebx
je 0x100b1ef1
push eax
call fcn.100af276
pop ecx
test eax, eax
je 0x100b1ef1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100b1ef1
mov eax, dword [0x101dcff0]
cmp eax, ebx
je 0x100b1ef1
push eax
call fcn.100af276
pop ecx
test eax, eax
je 0x100b1ef1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101dcfe8]
call fcn.100af276
pop ecx
test eax, eax
je 0x100b1f11
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100b1f13
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100b38ce
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x101dad60], 0
mov byte [0x101dad64], 0
mov edi, dword [0x101dad54]
add edi, 0xe84
mov dword [0x101dad58], edi
mov dword [0x101dad5c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov dword [0x101dad58], 0x8b8
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x101dad5c]
add eax, 1
mov dword [0x101dad5c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x100b391b
xor eax, eax
mov dword [0x101dad5c], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x101dad68], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x101dad60]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x101dad68], esi
mov dword [0x101dad54], 0x233b
mov eax, esi
cdq
idiv ecx
mov dword [0x101dad60], edx
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x101dad64], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x101dad64]
mov esi, dword [0x101dad60]
mov byte [ebx + esi], cl
mov esi, dword [0x101dad5c]
add esi, 1
mov dword [0x101dad5c], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x100b395a
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100b3bbe
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x101c7cad]
mov esi, 0xe
lea edi, [ebp - 0x28]
mov dword [0x101dad54], 0x1540
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0xe
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
call fcn.100b3833
mov dword [0x101dad54], 0x1b9e
call fcn.100b3e5f
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.100b370f
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
je 0x100b3ce9
mov eax, dword [ebp - 0x3c]
mov dword [0x101dad54], 0x505
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x101dad54], 0x1847
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x44], eax
call fcn.100b3a92
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [0x101dad54], 0x14d0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x44]
mov dword [edx + 0x54], ecx
mov dword [0x101dad58], 0xc82
cmp ecx, 0
mov dword [ebp - 0x40], eax
je 0x100b3ce9
mov eax, dword [ebp - 0x44]
add eax, 0x1ca2
mov ecx, dword [0x101dad54]
add ecx, 0x2182
mov dword [0x101dad54], ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x4c
pop esi
pop edi
pop ebp
ret
Function at 0x100b44fe
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.100b4810
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, dword [0x101dad54]
add edi, 0x20f3
mov dword [0x101dad54], edi
mov esi, dword [eax + esi + 0x78]
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x101dad58], 0x1487
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
je 0x100b4630
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edx
jmp 0x100b45b1
xor eax, eax
mov ecx, dword [ebp - 0x34]
add ecx, 2
mov edx, dword [ebp - 0x30]
add edx, 1
mov esi, dword [ebp - 0x18]
cmp edx, esi
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
jb 0x100b456f
jmp 0x100b4630
mov eax, dword [ebp - 0x3c]
mov ecx, eax
mov edx, dword [ebp - 0x38]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x41], bh
mov byte [ebp - 0x42], cl
je 0x100b4602
mov eax, dword [ebp - 0x40]
add eax, 1
mov cl, byte [ebp - 0x41]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x42]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x3c], eax
jne 0x100b45b1
mov al, byte [ebp - 0x42]
test al, 1
jne 0x100b460b
jmp 0x100b458b
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x101dad54], 0x954
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100b463b
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x2c
mov dword [ebp - 0xc], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov edx, dword [0x101dad58]
add edx, 0xffffd94f
mov dword [0x101dad54], edx
mov esi, dword [ebp - 0xc]
mov esi, dword [esi + 0x10]
mov esi, dword [esi + 0x3c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
jmp 0x100b46b8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x100b4762
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x100b4787
mov eax, dword [ebp - 0x28]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x30], eax
jge 0x100b46df
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov edx, eax
add edx, 0xffffe3e9
mov esi, dword [ebp - 0x14]
cmp word [esi + ecx*2], 0
mov edi, ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], edi
jne 0x100b469b
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [0x101dad54], ecx
mov edx, dword [ebp - 0x14]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
jne 0x100b4691
mov dword [0x101dad58], 0x7a0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x100b4691
mov eax, dword [ebp - 0x34]
add eax, 0xffffe7d7
mov dword [0x101dad54], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x100b4691
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x100b4691
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x100b467e
jmp 0x100b4691
mov eax, 1
mov dword [0x101dad54], 0xb63
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x24], eax
jne 0x100b4691
mov eax, dword [ebp - 0x24]
add esp, 0x2c
pop esi
pop edi
pop ebp
ret
Function at 0x100b49cc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x101dad5c], 0
mov dword [0x101dad60], 0
mov dword [0x101dad6c], 0
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
jne 0x100b4a29
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov edi, ecx
add edi, 1
mov dword [0x101dad54], 0x581
add eax, 1
mov dword [ebp - 0x2c], edx
cdq
idiv esi
mov dword [0x101dad5c], edx
mov dword [0x101dad58], 0x20ec
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x2c]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101dad60], edx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x101dad64], cl
mov dword [0x101dad58], 0x1c17
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x101dad64]
mov edx, dword [0x101dad60]
mov byte [ebx + edx], cl
mov edx, dword [0x101dad5c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x101dad60]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x101dad6c], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
mov ch, byte [edx + esi]
mov dword [0x101dad58], 0x2239
mov edx, dword [0x101dad54]
add edx, 0x97e
mov dword [0x101dad54], edx
xor ch, cl
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x38], edi
je 0x100b4a21
mov eax, dword [0x101dad5c]
mov ecx, dword [0x101dad60]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x100b4a29
Function at 0x100b4b2e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov dword [0x101dad54], 0x895
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.100b3fb1
lea ecx, [0x100b3cf3]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], 0x15b400
mov edx, dword [0x101dad40]
mov dword [esp + 0x48], edx
mov edx, dword [0x101dad44]
mov dword [esp + 0x7c], edx
mov edx, dword [0x101dad48]
mov dword [esp + 0x50], edx
mov edx, dword [0x101dad4c]
mov dword [esp + 0x28], edx
mov edx, dword [0x101dad50]
mov dword [esp + 0x60], edx
mov dword [0x101dad58], 0x1d3f
mov dword [0x101dad54], 0x2324
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x100b4be5
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x100b4bf9
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x100b4bc2
mov eax, dword [esp + 0x10]
mov dword [esp + 0x6c], eax
mov dword [0x101dad54], 0x4417
mov dword [0x101dad58], 0x94b
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x40], edx
call fcn.100b463b
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
jne 0x100b4c60
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.100b3bbe
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x40458c
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.004068ec
test esi, esi
jne 0x4045c4
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.00406a28
jmp 0x4045e2
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044d0
mov edi, eax
test esi, esi
je 0x4045e2
cmp dword [ebx], 0
je 0x4045e2
dec esi
jmp 0x4045cb
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x405e7c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4cf054], 0
je 0x405edd
cmp word [0x4cf330], 0xd7b2
jne 0x405ea5
cmp dword [0x4cf338], 0
jbe 0x405ea5
mov eax, 0x4cf32c
call dword [0x4cf348]
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 0x405f08
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4cc030], 0
jne 0x405ef9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406068
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 [0x4cc034], 0
je 0x40608e
mov edx, esi
mov eax, ebx
call dword [0x4cc034]
jmp 0x40609d
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4cf055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406030
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 0x408738
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 0x40889f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004068ec
cmp si, word [0x4cc7d0]
jb 0x4087d2
cmp si, word [0x4cc9d0]
ja 0x4087d2
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4087d2
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4cc7d0]
jae 0x4087ac
mov edi, ebx
dec edi
jmp 0x4087cd
cmp si, word [ebx*8 + 0x4cc7d0]
jbe 0x4087bc
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4087cd
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4cc7d4]
call fcn.00408648
jmp 0x4087d2
cmp edi, dword [ebp - 0xc]
jae 0x408796
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408881
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408881
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.00406ad4
push dword [ebp - 0x164]
push 0x4088bc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406ad4
push dword [ebp - 0x168]
push 0x4088cc
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406ad4
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406e8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4088a6
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004068e4
ret
Function at 0x4088d0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x408ab6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4d1b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x4d1b74]
cmp ax, word [ebp - 2]
jne 0x408928
mov eax, dword [ebp - 6]
mov edx, 0x4d1b78
mov ecx, 0x55
call fcn.00406ad4
push 0x4d1b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408aa0
push 0x4d1b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.004068ec
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408a68
cmp byte [0x4d1b58], 0
je 0x408a1e
call dword [0x4d1b50]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x4d1b54]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x408a17
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x4d1b4c]
test al, al
je 0x4089f0
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.004041d4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x4d1b4c]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x4089e5
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x4089e1
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x4089ce
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00406a98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a68
movzx eax, word [ebp - 0x16]
push eax
call dword [0x4d1b54]
cmp dword [ebp - 0x10], 0
je 0x408a16
mov eax, dword [ebp - 0x10]
call fcn.004041f0
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.00408738
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x408a68
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x408a4d
mov eax, dword [ebp - 6]
mov edx, 0x408ad0
call fcn.00406ce8
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.00408738
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00406ce8
mov eax, dword [ebp - 6]
push 0x4d1b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x4d1b74], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00406978
push eax
push 0x4d1b78
call sub.kernel32.dll_lstrcpynW
push 0x4d1b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408abd
lea eax, [ebp - 0x1c]
call fcn.004068dc
ret
Function at 0x408cf4
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.004068d4
xor eax, eax
push ebp
push 0x408ed9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408d34
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408d4e
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406978
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408ec3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408ee8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408ddd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408ee8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408ddd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408f1c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408ddd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408f50
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408ec3
xor eax, eax
push ebp
push 0x408ebc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408af8
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 0x408e4c
mov eax, dword [ebp - 0x10]
call fcn.004041d4
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.00406a98
jmp 0x408e97
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408f90
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408e97
mov eax, dword [ebp - 0x10]
call fcn.004041d4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408f90
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406a98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ec3
cmp dword [ebp - 8], 0
je 0x408eb2
mov eax, dword [ebp - 8]
call fcn.004041f0
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 0x408ee0
lea eax, [ebp - 4]
call fcn.004068dc
ret