joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101787b3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov ecx, dword [0x102c3a18]
add ecx, 0x205c
mov dword [0x102c3a14], ecx
mov dword [0x102c3a18], 0x879
mov dword [ebp - 0x10], eax
call fcn.10179b64
xor ecx, ecx
mov edx, eax
mov dword [0x102c3a14], 0xfffff7a8
mov esi, dword [eax + 0x3c]
mov dword [0x102c3a18], 0x2416
mov dword [0x102c3a14], 0x1348
mov esi, dword [eax + esi + 0x78]
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov ebx, dword [eax + esi + 0x24]
mov dword [0x102c3a14], 0x254a
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ecx
je 0x10178926
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov esi, dword [ebp - 0x24]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov ecx, eax
mov edx, dword [ebp - 0x3c]
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 - 0x44], eax
mov byte [ebp - 0x45], bh
mov byte [ebp - 0x46], cl
je 0x101788bc
mov eax, dword [ebp - 0x44]
add eax, 1
mov cl, byte [ebp - 0x45]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x46]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x40], eax
jne 0x1017886b
mov al, byte [ebp - 0x46]
test al, 1
jne 0x101788f9
jmp 0x101788c5
xor eax, eax
mov dword [0x102c3a14], 0x150d
mov ecx, dword [ebp - 0x38]
add ecx, 2
mov edx, dword [ebp - 0x34]
add edx, 1
mov esi, dword [ebp - 0x18]
cmp edx, esi
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
jb 0x10178851
jmp 0x10178926
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
mov dword [0x102c3a18], 0x2552
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x102c3a14], 0xfffff15b
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x28]
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101789ce
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x102c3a14], 0x204b
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov cl, byte [eax + 0x10289696]
mov dl, byte [eax + 0x10289667]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x30], eax
jne 0x101789f0
lea eax, [ebp - 0x24]
mov dword [0x102c3a18], 0x1bbe
mov dword [0x102c3a14], 0x14
mov dword [ebp - 0x34], eax
call fcn.10179133
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.10178dba
mov dword [0x102c3a14], 0xeeb
mov dword [0x102c3a18], 0xfffffe15
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x10178b16
mov eax, dword [ebp - 0x38]
mov dword [0x102c3a14], 0x2578
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 [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.10178b1e
xor eax, eax
mov dword [0x102c3a18], 0x145b
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x38], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x44], ecx
mov esi, dword [0x102c3a18]
add esi, 0xffffec67
mov dword [0x102c3a14], esi
add ecx, 0x275a
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x10178b0d
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x10178c34
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x102c3a20], 0
mov byte [0x102c3a24], 0
mov dword [0x102c3a18], 0x2449
mov dword [0x102c3a14], 0x109e
mov dword [0x102c3a1c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x10178ca2
xor eax, eax
mov dword [0x102c3a1c], 0
mov ecx, dword [ebp - 0x20]
add ecx, 0x1d78
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x10178cee
mov eax, dword [ebp - 0x1c]
mov dword [0x102c3a18], 0x206
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x102c3a14]
mov esi, eax
add esi, 0xfffff9d0
mov dword [0x102c3a14], esi
mov esi, dword [0x102c3a1c]
add esi, 1
mov dword [0x102c3a1c], esi
cmp esi, 0x100
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
jl 0x10178ca2
jmp 0x10178c85
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, 0x3a46
mov esi, 0x100
mov dword [0x102c3a28], 0
mov edi, dword [0x102c3a20]
mov ebx, dword [ebp - 0x18]
movzx ebx, byte [ebx + eax]
add ebx, edi
mov dword [ebp - 0x2c], eax
xor edi, edi
mov dword [ebp - 0x30], edx
mov edx, edi
mov edi, dword [ebp - 0x10]
div edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add ebx, edx
mov dword [0x102c3a28], ebx
mov dword [0x102c3a18], ecx
mov dword [0x102c3a14], 0xe04
mov eax, ebx
cdq
idiv esi
mov dword [0x102c3a20], edx
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov cl, byte [ecx + esi]
mov byte [0x102c3a24], cl
mov dword [0x102c3a18], 0x18fd
mov ebx, dword [ebp - 0x18]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x102c3a24]
mov edx, dword [0x102c3a20]
mov byte [ebx + edx], cl
mov dword [0x102c3a14], 0x169e
mov edx, dword [0x102c3a1c]
add edx, 1
mov dword [0x102c3a1c], edx
cmp edx, 0x100
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
jl 0x10178cee
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101797eb
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [0x102c3a18], 0x2455
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [0x102c3a18], 0x15ac
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
je 0x10179856
mov eax, dword [ebp - 0x14]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
jl 0x10179829
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov edx, dword [0x102c3a14]
add edx, 0xffffed2c
mov dword [0x102c3a14], edx
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
jne 0x10179947
xor eax, eax
mov dword [0x102c3a14], 0x2d1a
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x20], eax
jne 0x10179947
xor eax, eax
mov dword [0x102c3a14], 0x6a7
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x20], eax
jne 0x10179947
xor eax, eax
mov dword [0x102c3a14], 0x468
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x20], eax
jne 0x10179947
xor eax, eax
mov dword [0x102c3a14], 0xffffe829
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x20], eax
jne 0x10179947
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x20], eax
jne 0x10179947
xor eax, eax
mov dword [0x102c3a18], 0x401
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
jne 0x10179947
mov eax, 1
mov dword [0x102c3a14], 0x2389
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add esp, 0x20
pop ebp
ret
Function at 0x10179ccf
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x102c3a1c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, 0xffffff79
xor ecx, ecx
mov edx, 0xfffff00e
mov dword [0x102c3a20], 0
mov dword [0x102c3a2c], 0
mov esi, dword [0x102c3a14]
add esi, 0xffffda0d
mov dword [0x102c3a18], esi
mov dword [0x102c3a14], 0x4ad
mov edi, dword [ebp - 0x10]
cmp edi, 0
mov ebx, ecx
mov edi, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], eax
je 0x10179ea8
jmp 0x10179d86
mov eax, 0xfffff74b
mov ecx, dword [0x102c3a1c]
mov edx, dword [0x102c3a20]
mov esi, dword [0x102c3a18]
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x30]
mov ebx, 0x6b6
mov dword [ebp - 0x3c], eax
mov eax, 0x100
mov dword [0x102c3a14], ecx
add edx, 1
mov dword [ebp - 0x40], eax
mov eax, edx
cdq
mov ecx, dword [ebp - 0x40]
idiv ecx
mov dword [0x102c3a1c], edx
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + edx]
add ecx, esi
mov eax, ecx
mov dword [ebp - 0x44], edx
cdq
mov ecx, dword [ebp - 0x40]
idiv ecx
mov dword [0x102c3a20], edx
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x44]
mov cl, byte [esi + ecx]
mov byte [0x102c3a24], cl
add edi, 0x1ab1
mov dword [0x102c3a14], edi
mov cl, byte [esi + edx]
mov edx, dword [ebp - 0x44]
mov byte [esi + edx], cl
mov edi, dword [0x102c3a18]
add edi, 0xffffe8ac
mov dword [0x102c3a18], edi
mov cl, byte [0x102c3a24]
mov edi, dword [0x102c3a20]
mov byte [esi + edi], cl
mov edi, dword [0x102c3a1c]
movzx edi, byte [esi + edi]
mov ecx, dword [0x102c3a20]
movzx ecx, byte [esi + ecx]
add ecx, edi
and ecx, 0xff
mov dword [0x102c3a2c], ecx
mov dword [0x102c3a18], 0x3cd
mov dword [0x102c3a14], 0x2296
mov cl, byte [esi + ecx]
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x3c]
mov ch, byte [edi + edx]
mov dword [0x102c3a18], 0x31f
mov byte [0x102c3a31], ch
mov byte [0x102c3a32], cl
xor ch, cl
mov byte [0x102c3a30], ch
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x3c]
mov byte [edx + esi], ch
mov dword [0x102c3a14], 0xbea
add esi, 1
mov edx, dword [ebp - 0x10]
cmp esi, edx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], ebx
jne 0x10179d5d
mov eax, dword [ebp - 0x34]
mov dword [0x102c3a14], eax
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10179eb8
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
mov dword [0x102c3a14], 0x870
call fcn.10001070
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
je 0x10179ef2
jmp 0x10179eea
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [0x102c3a18], 0xa27
mov dword [0x102c3a14], 0x18d4
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.101794ff
lea ecx, [0x101790d0]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x48], edx
mov dword [esp + 0x68], 0x117600
mov edx, dword [0x102c3a00]
mov dword [esp + 0x54], edx
mov edx, dword [0x102c3a04]
mov dword [esp + 0x94], edx
mov edx, dword [0x102c3a08]
mov dword [esp + 0x64], edx
mov edx, dword [0x102c3a0c]
mov dword [esp + 0x84], edx
mov edx, dword [0x102c3a10]
mov dword [esp + 0x40], edx
mov dword [0x102c3a14], 0x352
mov dword [0x102c3a18], 0x139f
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 0x10179fa7
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x10179fbb
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x10179f84
mov eax, dword [esp + 0x10]
mov dword [esp + 0x60], eax
mov dword [0x102c3a18], 0x2416
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x78], edx
mov dword [0x102c3a14], 0x64f
call fcn.101797eb
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x20], ecx
jne 0x10179ee2
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.101789ce
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x20], eax
jmp 0x10179ee2
Function at 0x40455c
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.00406ca0
test esi, esi
jne 0x404594
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.00406ddc
jmp 0x4045b2
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044a0
mov edi, eax
test esi, esi
je 0x4045b2
cmp dword [ebx], 0
je 0x4045b2
dec esi
jmp 0x40459b
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x405e14
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x52d050], 0
je 0x405e75
cmp word [0x52d32c], 0xd7b2
jne 0x405e3d
cmp dword [0x52d334], 0
jbe 0x405e3d
mov eax, 0x52d328
call dword [0x52d344]
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 0x405ea0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x528030], 0
jne 0x405e91
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406020
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 [0x528034], 0
je 0x406046
mov edx, esi
mov eax, ebx
call dword [0x528034]
jmp 0x406055
mov eax, 8
call fcn.004041e8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x52d051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405fe8
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 0x408aa4
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 0x408c0b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406ca0
cmp si, word [0x5287dc]
jb 0x408b3e
cmp si, word [0x5289dc]
ja 0x408b3e
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408b3e
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5287dc]
jae 0x408b18
mov edi, ebx
dec edi
jmp 0x408b39
cmp si, word [ebx*8 + 0x5287dc]
jbe 0x408b28
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408b39
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5287e0]
call fcn.004089b4
jmp 0x408b3e
cmp edi, dword [ebp - 0xc]
jae 0x408b02
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408bed
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408bed
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.00406e98
push dword [ebp - 0x164]
push 0x408c28
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406e98
push dword [ebp - 0x168]
push 0x408c38
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406e98
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407250
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c12
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406c98
ret
Function at 0x408dc4
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 0x408ec9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x52fb58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x52fb70]
jne 0x408e10
mov eax, esi
mov edx, 0x52fb74
mov ecx, 0x55
call fcn.00406e98
push 0x52fb58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408eb3
push 0x52fb58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406ca0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408e81
cmp byte [0x52fb54], 0
je 0x408e46
mov edx, esi
mov eax, ebx
call fcn.00408ca4
jmp 0x408e81
mov edx, esi
mov eax, ebx
call fcn.00408aa4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408e81
cmp dword [esi], 0
je 0x408e6a
mov eax, esi
mov edx, 0x408ee4
call fcn.004070ac
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408aa4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004070ac
push 0x52fb58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x52fb70], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406d2c
push eax
push 0x52fb74
call sub.kernel32.dll_lstrcpynW
push 0x52fb58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ed0
lea eax, [ebp - 4]
call fcn.00406c90
ret
Function at 0x409108
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.00406c88
xor eax, eax
push ebp
push 0x4092ed
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409148
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409162
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406d2c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4092d7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4092fc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4091f1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4092fc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4091f1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409330
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4091f1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409364
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4092d7
xor eax, eax
push ebp
push 0x4092d0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408f0c
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 0x409260
mov eax, dword [ebp - 0x10]
call fcn.004041e8
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.00406e5c
jmp 0x4092ab
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4093a4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4092ab
mov eax, dword [ebp - 0x10]
call fcn.004041e8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4093a4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406e5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4092d7
cmp dword [ebp - 8], 0
je 0x4092c6
mov eax, dword [ebp - 8]
call fcn.00404204
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 0x4092f4
lea eax, [ebp - 4]
call fcn.00406c90
ret
Function at 0x4095b8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00406c88
mov eax, dword [ebp - 0x21c]
call fcn.00406c88
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409757
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406ca0
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406d2c
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x409658
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40966a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409655
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409723
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x409693
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00409108
cmp dword [ebp - 0x220], 0
je 0x4096cb
push ebp
mov eax, dword [ebp - 0x220]
call fcn.004094ac
pop ecx
mov ebx, eax
jmp 0x409723
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408dc4
mov eax, dword [ebp - 0x224]
call fcn.004094ac
pop ecx
mov ebx, eax
test bl, bl
jne 0x409716
cmp byte [0x52fb54], 0
jne 0x409716
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408dc4
mov eax, dword [ebp - 0x228]
call fcn.004094ac
pop ecx
mov ebx, eax
test bl, bl
jne 0x409723
push ebp
call fcn.0040955c
pop ecx
mov ebx, eax
test bl, bl
je 0x409739
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406e98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40975e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406c98
ret

Function at 0x409ed0
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret