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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x41b5f7
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x41b473
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x41b4b6
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x41b4b6
mov ecx, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], ecx
jbe 0x41b49d
mov dword [esi + 0x6afa0], ecx
push dword [ebp - 4]
mov edx, esi
call fcn.0041b1a4
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
cmp ebx, eax
jbe 0x41b4b6
mov ebx, eax
cmp ebx, 3
jb 0x41b577
mov edx, dword [esi + 0x6af84]
sub edx, dword [esi + 0x6af88]
lea ecx, [ebx - 3]
mov eax, esi
call fcn.0041ab66
sub dword [esi + 0x6af90], ebx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x41b544
cmp eax, 3
jb 0x41b544
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x41b4f2
jmp 0x41b597
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [esi + 0x6af7c], edx
jmp 0x41b59d
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
xor edx, edx
mov eax, esi
call fcn.0041ab66
dec dword [esi + 0x6af90]
mov dword [ebp - 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp - 8], 0
je 0x41b5d8
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x41b5b6
lea edx, [ecx + esi + 0x1af70]
jmp 0x41b5b8
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 0
sub eax, ecx
push edx
mov ecx, esi
call fcn.0041a998
mov eax, dword [esi + 0x6af84]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x41b5e9
call fcn.0041b2e5
cmp dword [esi + 0x6af90], 0
jne 0x41b423
pop edi
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x41b60a
lea edx, [ecx + esi + 0x1af70]
jmp 0x41b60c
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push edx
mov ecx, esi
call fcn.0041a998
pop ecx
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x41c1b4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x41c1bf
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x41c273
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43bf68]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43bf68]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43bf68]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43bf68]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43bf68]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43bf68]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43bf68]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43bf68]
add ecx, 8
sub edi, 8
dec esi
jne 0x41c1d6
pop ebx
test edi, edi
je 0x41c28c
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x43bf68]
inc ecx
dec edi
jne 0x41c277
pop esi
not eax
pop edi
ret

Function at 0x41c291
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x43bf68]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x43bf68]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x41c436
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x443674]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x38]
mov esi, ecx
push eax
push esi
mov ebx, edx
call dword [0x44643c]
test eax, eax
jne 0x41c478
mov eax, 0x200
jmp 0x41c5fc
mov ecx, dword [ebp - 0x38]
xor eax, eax
xor edi, edi
inc eax
mov dword [ebp - 0x40], ecx
and dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edi
je 0x41c48e
mov dword [ebp - 0x3c], eax
test cl, 2
je 0x41c497
or dword [ebp - 0x3c], 2
test cl, 4
je 0x41c4a0
or dword [ebp - 0x3c], 4
mov eax, ecx
and eax, 0x10
je 0x41c4ab
or dword [ebp - 0x3c], 0x10
test cl, 0x20
je 0x41c4b4
or dword [ebp - 0x3c], 0x20
cmp eax, edi
je 0x41c4c1
or dword [ebp - 0x3c], 0x40000000
jmp 0x41c4c8
or dword [ebp - 0x3c], 0x80000000
or dword [ebp - 0x3c], 0x1000000
cmp dword [ebp - 0x40], edi
jne 0x41c4db
or dword [ebp - 0x3c], 0x800000
push edi
push esi
call dword [0x44651c]
mov dword [ebp - 0x48], eax
cmp eax, 0x28
jbe 0x41c580
push edi
push edi
push edi
push esi
call dword [0x44635c]
push edi
lea eax, [ebp - 0x44]
push eax
push 2
lea eax, [ebp - 0x40]
push eax
push esi
call dword [0x446468]
push edi
push edi
push 0x24
push esi
call dword [0x44635c]
push edi
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [0x446468]
mov eax, 0x54ad
cmp word [ebp - 0x40], ax
jne 0x41c580
mov eax, dword [ebp - 0x4c]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x48], ecx
jbe 0x41c580
push edi
push edi
push eax
push esi
call dword [0x44635c]
push edi
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [0x446468]
mov eax, dword [ebp - 0x5c]
cmp eax, 0x5a4d
je 0x41c579
cmp eax, 0x454e
je 0x41c579
cmp eax, 0x454c
je 0x41c579
cmp eax, 0x4550
jne 0x41c580
or dword [ebp - 0x3c], 0x400000
mov eax, dword [ebp - 0x58]
cmp eax, edi
je 0x41c58c
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x50]
cmp eax, edi
je 0x41c598
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
cmp ebx, edi
je 0x41c5d1
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0041c3ad
push dword [ebp - 0x20]
mov dword [ebx], eax
push dword [ebp - 0x24]
mov dword [ebx + 4], edx
call fcn.0041c3ad
push dword [ebp - 0x30]
mov dword [ebx + 8], eax
push dword [ebp - 0x34]
mov dword [ebx + 0xc], edx
call fcn.0041c3ad
add esp, 0x18
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
mov ebx, dword [ebp - 0x54]
cmp ebx, edi
je 0x41c5fa
push dword [ebp - 0x20]
lea edi, [ebp - 0x3c]
push dword [ebp - 0x24]
lea esi, [ebp - 0x40]
call fcn.0041c3cf
movzx eax, word [ebp - 0x40]
pop ecx
pop ecx
movzx ecx, word [ebp - 0x3c]
shl eax, 0x10
or eax, ecx
mov dword [ebx], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e0c6
leave
ret

Function at 0x41e0c6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x443674]
jne 0x41e0d0
repz ret
jmp fcn.00423047
Function at 0x42bf7f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x443674]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00425245
and dword [ebp - 0x14], 0
cmp dword [0x4459d8], 0
mov dword [ebp - 0x18], eax
jne 0x42c032
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42c0da
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x42c0da
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4459d8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4459dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4459e0], eax
call edi
push eax
call esi
mov dword [0x4459e8], eax
test eax, eax
je 0x42c032
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4459e4], eax
mov eax, dword [0x4459e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42c08b
cmp dword [0x4459e8], ecx
je 0x42c08b
push eax
call esi
push dword [0x4459e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42c08b
test ebx, ebx
je 0x42c08b
call edi
test eax, eax
je 0x42c082
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42c082
test byte [ebp - 8], 1
jne 0x42c08b
or dword [ebp + 0x10], 0x200000
jmp 0x42c0be
mov eax, dword [0x4459dc]
cmp eax, dword [ebp - 0x18]
je 0x42c0be
push eax
call esi
test eax, eax
je 0x42c0be
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42c0be
mov eax, dword [0x4459e0]
cmp eax, dword [ebp - 0x18]
je 0x42c0be
push eax
call esi
test eax, eax
je 0x42c0be
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4459d8]
call esi
test eax, eax
je 0x42c0da
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42c0dc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e0c6
leave
ret
Function at 0x404678
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.00406d88
test esi, esi
jne 0x4046b0
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.00406ec4
jmp 0x4046ce
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040455c
mov edi, eax
test esi, esi
je 0x4046ce
cmp dword [ebx], 0
je 0x4046ce
dec esi
jmp 0x4046b7
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x405f94
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5a9054], 0
je 0x405ff5
cmp word [0x5a9330], 0xd7b2
jne 0x405fbd
cmp dword [0x5a9338], 0
jbe 0x405fbd
mov eax, 0x5a932c
call dword [0x5a9348]
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 0x406020
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x59e030], 0
jne 0x406011
push 0
push 0x59e794
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406180
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 [0x59e034], 0
je 0x4061a6
mov edx, esi
mov eax, ebx
call dword [0x59e034]
jmp 0x4061b5
mov eax, 8
call fcn.0040426c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x5a9055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406148
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 0x40782c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x40786e
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x40788e
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00406f88
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x408fa4
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 0x40910b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406d88
cmp si, word [0x59e7dc]
jb 0x40903e
cmp si, word [0x59e9dc]
ja 0x40903e
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40903e
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x59e7dc]
jae 0x409018
mov edi, ebx
dec edi
jmp 0x409039
cmp si, word [ebx*8 + 0x59e7dc]
jbe 0x409028
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x409039
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x59e7e0]
call fcn.00408eb4
jmp 0x40903e
cmp edi, dword [ebp - 0xc]
jae 0x409002
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4090ed
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4090ed
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.00406f88
push dword [ebp - 0x164]
push 0x409128
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406f88
push dword [ebp - 0x168]
push 0x409138
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406f88
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407340
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409112
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406d80
ret
Function at 0x4092c4
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 0x4093c9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5abb5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5abb74]
jne 0x409310
mov eax, esi
mov edx, 0x5abb78
mov ecx, 0x55
call fcn.00406f88
push 0x5abb5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4093b3
push 0x5abb5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406d88
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409381
cmp byte [0x5abb58], 0
je 0x409346
mov edx, esi
mov eax, ebx
call fcn.004091a4
jmp 0x409381
mov edx, esi
mov eax, ebx
call fcn.00408fa4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409381
cmp dword [esi], 0
je 0x40936a
mov eax, esi
mov edx, 0x4093e4
call fcn.0040719c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408fa4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040719c
push 0x5abb5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5abb74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406e14
push eax
push 0x5abb78
call sub.kernel32.dll_lstrcpynW
push 0x5abb5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4093d0
lea eax, [ebp - 4]
call fcn.00406d78
ret
Function at 0x409608
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.00406d70
xor eax, eax
push ebp
push 0x4097ed
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409648
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409662
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406e14
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4097d7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4097fc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4096f1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4097fc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4096f1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409830
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4096f1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409864
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4097d7
xor eax, eax
push ebp
push 0x4097d0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040940c
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 0x409760
mov eax, dword [ebp - 0x10]
call fcn.0040426c
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.00406f34
jmp 0x4097ab
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4098a4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4097ab
mov eax, dword [ebp - 0x10]
call fcn.0040426c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4098a4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406f34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097d7
cmp dword [ebp - 8], 0
je 0x4097c6
mov eax, dword [ebp - 8]
call fcn.00404288
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 0x4097f4
lea eax, [ebp - 4]
call fcn.00406d78
ret
Function at 0x409ab8
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.00406d70
mov eax, dword [ebp - 0x21c]
call fcn.00406d70
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409c57
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406d88
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406e14
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 0x409b58
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409b6a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409b55
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409c23
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 0x409b93
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.00409608
cmp dword [ebp - 0x220], 0
je 0x409bcb
push ebp
mov eax, dword [ebp - 0x220]
call fcn.004099ac
pop ecx
mov ebx, eax
jmp 0x409c23
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004092c4
mov eax, dword [ebp - 0x224]
call fcn.004099ac
pop ecx
mov ebx, eax
test bl, bl
jne 0x409c16
cmp byte [0x5abb58], 0
jne 0x409c16
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004092c4
mov eax, dword [ebp - 0x228]
call fcn.004099ac
pop ecx
mov ebx, eax
test bl, bl
jne 0x409c23
push ebp
call fcn.00409a5c
pop ecx
mov ebx, eax
test bl, bl
je 0x409c39
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406f88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409c5e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406d80
ret

Function at 0x40a4fc
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