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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], 0xa438
mov eax, dword [ebp - 0x34]
xor eax, 0x64
mov word [ebp - 0x30], ax
mov eax, dword [ebp - 0x34]
inc eax
xor eax, 0x62
mov word [ebp - 0x2e], ax
mov eax, dword [ebp - 0x34]
add eax, 2
xor eax, 0x67
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x34]
add eax, 3
xor eax, 0x68
mov word [ebp - 0x2a], ax
mov eax, dword [ebp - 0x34]
add eax, 4
xor eax, 0x65
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x34]
add eax, 5
xor eax, 0x6c
mov word [ebp - 0x26], ax
mov eax, dword [ebp - 0x34]
add eax, 6
xor eax, 0x70
mov word [ebp - 0x24], ax
mov eax, dword [ebp - 0x34]
add eax, 7
xor eax, 0x2e
mov word [ebp - 0x22], ax
mov eax, dword [ebp - 0x34]
add eax, 8
xor eax, 0x64
mov word [ebp - 0x20], ax
mov eax, dword [ebp - 0x34]
add eax, 9
xor eax, 0x6c
mov word [ebp - 0x1e], ax
mov eax, dword [ebp - 0x34]
add eax, 0xa
xor eax, 0x6c
mov word [ebp - 0x1c], ax
xor eax, eax
mov word [ebp - 0x1a], ax
xor edx, edx
mov ax, word [ebp - 0x30]
mov ax, word [ebp + edx*2 - 0x30]
mov ecx, dword [ebp - 0x34]
add ecx, edx
movzx eax, ax
xor ecx, eax
mov word [ebp + edx*2 - 0x30], cx
inc edx
cmp edx, 0xb
jb 0x12d8b53
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [edi + 0x69c]
call eax
mov esi, eax
test esi, esi
jne 0x12d8b95
pop edi
mov eax, 0xe0d00721
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x18], 0x63
xor edx, edx
mov byte [ebp - 0x14], 0x2e
mov byte [ebp - 0x13], 0xa
mov byte [ebp - 0x12], 0xd
mov byte [ebp - 0x11], 0xa
mov byte [ebp - 0x10], 0x27
mov byte [ebp - 0xf], 0x16
mov byte [ebp - 0xe], 0xe
mov byte [ebp - 0xd], 0x13
mov byte [ebp - 0xc], 0x34
mov byte [ebp - 0xb], 0x11
mov byte [ebp - 0xa], 0xa
mov byte [ebp - 9], 0x17
mov byte [ebp - 8], 6
mov byte [ebp - 7], 0x27
mov byte [ebp - 6], 0x16
mov byte [ebp - 5], 0xe
mov byte [ebp - 4], 0x13
mov al, byte [ebp - 0x14]
mov byte [ebp - 3], 0
nop dword [eax]
mov al, byte [ebp + edx - 0x14]
movsx ecx, byte [ebp - 0x18]
movsx eax, al
xor eax, ecx
mov byte [ebp + edx - 0x14], al
inc edx
cmp edx, 0x11
jb 0x12d8bf0
lea eax, [ebp - 0x14]
mov byte [ebp - 3], 0
push eax
mov eax, dword [edi + 0x6a4]
push esi
call eax
mov ecx, eax
test ecx, ecx
jne 0x12d8c29
pop edi
mov eax, 0xe0d00728
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
pop edi
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
pop esi
mov dword [eax], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x12daba0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x20]
mov word [edi], cx
test eax, eax
je 0x12dadac
push ebx
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x12dadab
mov ecx, 0xd962
mov edx, 0xd977
nop word [eax + eax]
mov dword [ebp - 0x2c], 0xd947
mov eax, 0xd975
mov word [ebp - 0x28], cx
mov word [ebp - 0x26], dx
mov word [ebp - 0x24], ax
mov eax, 0xd91f
mov word [ebp - 0x22], ax
xor eax, eax
mov word [ebp - 0x20], ax
xor edx, edx
mov ax, word [ebp - 0x28]
nop dword [eax]
mov ax, word [ebp + edx*2 - 0x28]
movzx ecx, ax
movzx eax, word [ebp - 0x2c]
xor ecx, eax
mov word [ebp + edx*2 - 0x28], cx
inc edx
cmp edx, 4
jb 0x12dac10
xor eax, eax
mov word [ebp - 0x20], ax
movsx eax, byte [esi + ebx + 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x54]
push eax
mov eax, dword [esi + 0x768]
call eax
add esp, 0xc
cmp word [edi], 0
jne 0x12daca4
mov dword [ebp - 0x1c], 0x9ee5
mov eax, 0x9ec0
mov word [ebp - 0x18], ax
mov eax, 0x9e89
mov word [ebp - 0x16], ax
mov eax, 0x9e96
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
xor edx, edx
mov ax, word [ebp - 0x18]
nop dword [eax]
mov ax, word [ebp + edx*2 - 0x18]
movzx ecx, ax
movzx eax, word [ebp - 0x1c]
xor ecx, eax
mov word [ebp + edx*2 - 0x18], cx
inc edx
cmp edx, 3
jb 0x12dac80
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x18]
jmp 0x12dad09
mov dword [ebp - 0x10], 0xe6d3
mov eax, dword [ebp - 0x10]
xor eax, 0x25
mov word [ebp - 0xc], ax
mov eax, dword [ebp - 0x10]
inc eax
xor eax, 0x6c
mov word [ebp - 0xa], ax
mov eax, dword [ebp - 0x10]
add eax, 2
xor eax, 0x73
mov word [ebp - 8], ax
mov eax, dword [ebp - 0x10]
add eax, 3
xor eax, 0x2d
mov word [ebp - 6], ax
xor eax, eax
mov word [ebp - 4], ax
mov ax, word [ebp - 0xc]
xor eax, eax
mov cx, word [ebp + eax*2 - 0xc]
mov edx, dword [ebp - 0x10]
add edx, eax
movzx ecx, cx
xor edx, ecx
mov word [ebp + eax*2 - 0xc], dx
inc eax
cmp eax, 4
jb 0x12dace6
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 0x454]
push eax
mov eax, dword [esi + 0x768]
call eax
mov dword [ebp - 0x40], 0xfde4
mov eax, 0xfdc1
mov word [ebp - 0x3c], ax
mov ecx, 0xfd88
mov word [ebp - 0x3a], cx
mov edx, 0xfd97
mov word [ebp - 0x38], dx
add esp, 0xc
mov word [ebp - 0x36], ax
xor eax, eax
mov word [ebp - 0x34], cx
mov word [ebp - 0x32], dx
xor edx, edx
mov word [ebp - 0x30], ax
mov ax, word [ebp - 0x3c]
nop word [eax + eax]
mov ax, word [ebp + edx*2 - 0x3c]
movzx ecx, ax
movzx eax, word [ebp - 0x40]
xor ecx, eax
mov word [ebp + edx*2 - 0x3c], cx
inc edx
cmp edx, 6
jb 0x12dad60
xor eax, eax
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [esi + 0x768]
push edi
call eax
mov ecx, 0xd962
add esp, 0x10
lea edx, [ecx + 0x15]
sub ebx, 1
jne 0x12dabe0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401a02
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov edi, dword [0x47879c]
mov esi, edx
push 0x4140bc
push 0x4140c0
push esi
call fcn.00401034
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401a2b
push 0
sub ecx, edx
push ecx
push esi
push edi
call dword [sym.imp.WS2_32.dll_send]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
leave
ret

Function at 0x401b25
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x479308], 0
push ebx
mov ebx, dword [0x47879c]
push esi
push edi
jne 0x401bc9
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
push 0x4140f4
push 0x479108
call fcn.00401034
pop ecx
pop ecx
mov ecx, 0x479108
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401b60
sub ecx, edx
je 0x401bae
push 0
push ecx
push 0x479108
push ebx
call dword [sym.imp.WS2_32.dll_send]
push 0x4b
call edi
push 0
push 0x200
push 0x479108
push ebx
call dword [sym.imp.WS2_32.dll_recv]
push 0xc8
call edi
push 1
mov edx, 0x41410c
mov ecx, 0x479108
call fcn.00402c88
pop ecx
test eax, eax
jne 0x401bbf
push 0x2bc
call edi
inc esi
cmp esi, 0x32
jl 0x401b47
xor eax, eax
jmp 0x401bcc
xor eax, eax
inc eax
mov dword [0x479308], eax
jmp 0x401bcc
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401bd1
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov esi, edi
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x401be1
sub esi, edx
je 0x401c28
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401bf1
push 0
sub ecx, edx
push ecx
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x4b
call esi
push 0
push 0x200
push edi
push ebx
call dword [sym.imp.WS2_32.dll_recv]
push 0xc8
call esi
mov byte [edi], 0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c52f
Capabilities:
Enumerate processes

Disassembly:
push 0x4b8
push 0x419ca0
call fcn.004114e0
xor ebx, ebx
mov dword [ebp - 0x4c0], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x4bc], eax
mov esi, ebx
mov dword [ebp - 0x4b8], esi
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x4c8], edi
mov dword [ebp - 4], ebx
cmp edi, 0xffffffff
je 0x40c6e4
push 0x22c
push ebx
lea eax, [ebp - 0x288]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x288], 0x22c
lea eax, [ebp - 0x288]
push eax
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_Process32FirstW]
call ebx
test eax, eax
je 0x40c6e4
mov eax, dword [ebp - 0x4bc]
cmp dword [ebp - 0x280], eax
je 0x40c5d0
lea eax, [ebp - 0x288]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40c5ae
jmp 0x40c5dc
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x4c0], eax
push 0x22c
push 0
lea eax, [ebp - 0x4b4]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x4b4], 0x22c
lea eax, [ebp - 0x4b4]
push eax
push edi
call ebx
jmp 0x40c6dc
lea eax, [ebp - 0x490]
push eax
push 0x418008
lea eax, [ebp - 0x5c]
push eax
call fcn.00401034
lea eax, [ebp - 0x5c]
push eax
push 0x41800c
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 0x14
test eax, eax
jne 0x40c644
xor esi, esi
inc esi
mov dword [ebp - 0x4b8], esi
jmp 0x40c6e4
mov eax, dword [ebp - 0x4c0]
cmp dword [ebp - 0x4ac], eax
jne 0x40c6ce
cmp dword [0x4789ec], 0
je 0x40c67e
push 0xa
pop edx
mov ecx, 0x418020
call fcn.00402d26
push 0xa
pop edx
lea ecx, [ebp - 0x5c]
call fcn.00402d26
push 0x4121fc
call fcn.00401006
pop ecx
mov ecx, 0x43cc3c
xor ebx, ebx
inc ebx
xor esi, esi
mov dword [ebp - 0x4b8], esi
mov dword [ebp - 0x4c4], ebx
test ecx, ecx
je 0x40c6ce
mov edx, ecx
lea eax, [edx + 1]
mov dword [ebp - 0x4bc], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x40c6a3
sub edx, dword [ebp - 0x4bc]
je 0x40c6ce
push edx
push ecx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
xor esi, esi
test eax, eax
jne 0x40c702
inc esi
mov dword [ebp - 0x4b8], esi
lea eax, [ebp - 0x4b4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40c60b
mov dword [ebp - 4], 0xfffffffe
call fcn.0040c71f
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
mov ecx, ebx
shl ecx, 4
add ecx, 0x43cc3c
inc ebx
jmp 0x40c688
Function at 0x40c765
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov eax, edx
xor esi, esi
push edi
mov dword [ebp - 4], eax
mov ebx, ecx
inc esi
mov cl, byte [0x44df68]
mov edi, 0x44df68
test cl, cl
je 0x40c7ae
mov eax, dword [eax + esi*4]
mov dword [ebp - 8], eax
mov edx, eax
mov ecx, edi
call fcn.0040c72b
test eax, eax
jne 0x40c7c0
add edi, 0x20
je 0x40c7a5
cmp byte [edi], al
mov eax, dword [ebp - 8]
jne 0x40c78c
mov cl, byte [0x44df68]
mov eax, dword [ebp - 4]
mov eax, dword [eax + esi*4]
cmp byte [eax], 0x2d
je 0x40c7d0
inc esi
cmp esi, ebx
jge 0x40c7c8
mov eax, dword [ebp - 4]
jmp 0x40c77d
mov eax, dword [ebp - 4]
inc esi
cmp esi, ebx
jl 0x40c777
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
push eax
push 0x418044
mov esi, 0x479108
push esi
call fcn.00401034
add esp, 0xc
mov ecx, esi
push 0xc
pop edx
call fcn.00402d26
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x41107d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4110bc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4110bc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4110bc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4110bc
cmp dword [ecx + 0x74], 0xe
jbe 0x4110bc
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4045b8
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.00406c84
test esi, esi
jne 0x4045f0
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.00406dc0
jmp 0x40460e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040449c
mov edi, eax
test esi, esi
je 0x40460e
cmp dword [ebx], 0
je 0x40460e
dec esi
jmp 0x4045f7
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x406108
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5a5054], 0
je 0x406169
cmp word [0x5a5330], 0xd7b2
jne 0x406131
cmp dword [0x5a5338], 0
jbe 0x406131
mov eax, 0x5a532c
call dword [0x5a5348]
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 0x406194
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x59b030], 0
jne 0x406185
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4062f4
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 [0x59b034], 0
je 0x40631a
mov edx, esi
mov eax, ebx
call dword [0x59b034]
jmp 0x406329
mov eax, 8
call fcn.004041e4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x5a5055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4062bc
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 0x408bfc
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 0x408d63
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406c84
cmp si, word [0x59b7d0]
jb 0x408c96
cmp si, word [0x59b9d0]
ja 0x408c96
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408c96
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x59b7d0]
jae 0x408c70
mov edi, ebx
dec edi
jmp 0x408c91
cmp si, word [ebx*8 + 0x59b7d0]
jbe 0x408c80
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408c91
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x59b7d4]
call fcn.00408b0c
jmp 0x408c96
cmp edi, dword [ebp - 0xc]
jae 0x408c5a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408d45
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408d45
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.00406e84
push dword [ebp - 0x164]
push 0x408d80
lea eax, [ebp - 0x168]
dec dword [ebp - 0x15f6b]
invalid
mov ecx, 0x55
call fcn.00406e84
push dword [ebp - 0x168]
push 0x408d90
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406e84
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.0040723c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d6a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406c7c
ret
Function at 0x408d94
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 0x408f7a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5a7b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x5a7b74]
cmp ax, word [ebp - 2]
jne 0x408dec
mov eax, dword [ebp - 6]
mov edx, 0x5a7b78
mov ecx, 0x55
call fcn.00406e84
push 0x5a7b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408f64
push 0x5a7b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.00406c84
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408f2c
cmp byte [0x5a7b58], 0
je 0x408ee2
call dword [0x5a7b50]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x5a7b54]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x408edb
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 [0x5a7b4c]
test al, al
je 0x408eb4
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.004041e4
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 [0x5a7b4c]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x408ea9
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x408ea5
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x408e92
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00406e30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f2c
movzx eax, word [ebp - 0x16]
push eax
call dword [0x5a7b54]
cmp dword [ebp - 0x10], 0
je 0x408eda
mov eax, dword [ebp - 0x10]
call fcn.00404200
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.00408bfc
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x408f2c
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x408f11
mov eax, dword [ebp - 6]
mov edx, 0x408f94
call fcn.00407098
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.00408bfc
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00407098
mov eax, dword [ebp - 6]
push 0x5a7b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x5a7b74], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00406d10
push eax
push 0x5a7b78
call sub.kernel32.dll_lstrcpynW
push 0x5a7b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f81
lea eax, [ebp - 0x1c]
call fcn.00406c74
ret
Function at 0x4091b8
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.00406c6c
xor eax, eax
push ebp
push 0x40939d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4091f8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409212
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406d10
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409387
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4093ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4092a1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4093ac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4092a1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4093e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4092a1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409414
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409387
xor eax, eax
push ebp
push 0x409380
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408fbc
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 0x409310
mov eax, dword [ebp - 0x10]
call fcn.004041e4
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.00406e30
jmp 0x40935b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409454
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40935b
mov eax, dword [ebp - 0x10]
call fcn.004041e4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409454
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406e30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409387
cmp dword [ebp - 8], 0
je 0x409376
mov eax, dword [ebp - 8]
call fcn.00404200
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 0x4093a4
lea eax, [ebp - 4]
call fcn.00406c74
ret
Function at 0x409668
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.00406c6c
mov eax, dword [ebp - 0x21c]
call fcn.00406c6c
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409807
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406c84
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406d10
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 0x409708
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40971a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409705
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x4097d3
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 0x409743
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.004091b8
cmp dword [ebp - 0x220], 0
je 0x40977b
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0040955c
pop ecx
mov ebx, eax
jmp 0x4097d3
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408d94
mov eax, dword [ebp - 0x224]
call fcn.0040955c
pop ecx
mov ebx, eax
test bl, bl
jne 0x4097c6
cmp byte [0x5a7b58], 0
jne 0x4097c6
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408d94
mov eax, dword [ebp - 0x228]
call fcn.0040955c
pop ecx
mov ebx, eax
test bl, bl
jne 0x4097d3
push ebp
call fcn.0040960c
pop ecx
mov ebx, eax
test bl, bl
je 0x4097e9
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406e84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40980e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406c7c
ret

Function at 0x40dbe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x5a7c5c
push 0xa
push 0x40dc74
mov eax, dword [0x5a7c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40dc04
call fcn.0041a3f4
push ebx
mov eax, dword [0x5a7c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40dc1b
call fcn.0041a3f4
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40dc2d
call fcn.0041a3f4
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x5a7c60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x5a7c64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x5a7c68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x5a7c6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x5a7c70], ecx
add edx, dword [eax + 0x14]
mov dword [0x5a7c74], edx
pop esi
pop ebx
ret