joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001f21c
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.100150ea
and dword [ebp - 4], 0
cmp dword [0x10059aac], 0
mov ebx, eax
jne 0x1001f2cd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1001f37e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1001f37e
push eax
call fcn.10015078
mov dword [esp], 0x1002a99c
push edi
mov dword [0x10059aac], eax
call esi
push eax
call fcn.10015078
mov dword [esp], 0x1002a988
push edi
mov dword [0x10059ab0], eax
call esi
push eax
call fcn.10015078
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10059ab4], eax
call esi
push eax
call fcn.10015078
pop ecx
mov dword [0x10059abc], eax
test eax, eax
je 0x1001f2cd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10015078
pop ecx
mov dword [0x10059ab8], eax
mov eax, dword [0x10059ab8]
cmp eax, ebx
je 0x1001f325
cmp dword [0x10059abc], ebx
je 0x1001f325
push eax
call fcn.100150f3
push dword [0x10059abc]
mov esi, eax
call fcn.100150f3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1001f325
test edi, edi
je 0x1001f325
call esi
test eax, eax
je 0x1001f31c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001f31c
test byte [ebp - 0xc], 1
jne 0x1001f325
or dword [ebp + 0x10], 0x200000
jmp 0x1001f35e
mov eax, dword [0x10059ab0]
cmp eax, ebx
je 0x1001f35e
push eax
call fcn.100150f3
pop ecx
test eax, eax
je 0x1001f35e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1001f35e
mov eax, dword [0x10059ab4]
cmp eax, ebx
je 0x1001f35e
push eax
call fcn.100150f3
pop ecx
test eax, eax
je 0x1001f35e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10059aac]
call fcn.100150f3
pop ecx
test eax, eax
je 0x1001f37e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001f380
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10013293
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100132d2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100132d2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100132d2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100132d2
cmp dword [ecx + 0x74], 0xe
jbe 0x100132d2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10015f52
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10015fef
push ebx
push esi
call fcn.10015f1b
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10015eaf
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10015f9c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10015fee
push edi
push eax
call fcn.10016f0d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10015fbc
call fcn.100149f7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10015fed
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10015eaf
add esp, 0x20
test eax, eax
jne 0x10015fdb
push edi
call fcn.100149f7
jmp 0x10015fe3
push ebx
call fcn.100149f7
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001625c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d678
push 0x1001d670
push str.FlsAlloc
push 0x1f
call fcn.10016178
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016290
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c158]
call esi
jmp 0x10016296
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100162da
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d688
push 0x1001d680
push str.FlsGetValue
push 0x21
call fcn.10016178
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016311
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10016319
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d690
push 0x1001d688
push str.FlsSetValue
push 0x22
call fcn.10016178
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016353
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001c158]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001b9e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001ba0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001ba0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x409631
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a344]
jne 0x40963b
repz ret
jmp fcn.0040e01c

Function at 0x41224c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a344]
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.0040b6bf
and dword [ebp - 0x14], 0
cmp dword [0x437e8c], 0
mov dword [ebp - 0x18], eax
jne 0x4122ff
push 0x403774
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4123a7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403768
push ebx
call edi
test eax, eax
je 0x4123a7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403758
push ebx
mov dword [0x437e8c], eax
call edi
push eax
call esi
push 0x403744
push ebx
mov dword [0x437e90], eax
call edi
push eax
call esi
push 0x403728
push ebx
mov dword [0x437e94], eax
call edi
push eax
call esi
mov dword [0x437e9c], eax
test eax, eax
je 0x4122ff
push 0x403710
push ebx
call edi
push eax
call esi
mov dword [0x437e98], eax
mov eax, dword [0x437e98]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412358
cmp dword [0x437e9c], ecx
je 0x412358
push eax
call esi
push dword [0x437e9c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412358
test ebx, ebx
je 0x412358
call edi
test eax, eax
je 0x41234f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41234f
test byte [ebp - 8], 1
jne 0x412358
or dword [ebp + 0x10], 0x200000
jmp 0x41238b
mov eax, dword [0x437e90]
cmp eax, dword [ebp - 0x18]
je 0x41238b
push eax
call esi
test eax, eax
je 0x41238b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41238b
mov eax, dword [0x437e94]
cmp eax, dword [ebp - 0x18]
je 0x41238b
push eax
call esi
test eax, eax
je 0x41238b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x437e8c]
call esi
test eax, eax
je 0x4123a7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4123a9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409631
leave
ret
Function at 0x4141c0
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1400
call fcn.00413820
cmp dword [0x7d7fe4], 0x37
jne 0x414251
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0x403f68
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [esp + 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x403fc4
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapePosition]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
lea edx, [esp + 0xc04]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov eax, dword [0x7d8bc8]
mov edx, dword [0x7d5044]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1400
ret
Function at 0x10dd150
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8d3000]
push edi
or ebp, 0xffffffff
jmp 0x10dd172
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10dd179
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10dd168
mov eax, 1
add ebx, ebx
jne 0x10dd18b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10dd19c
jne 0x10dd1bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10dd1bb
dec eax
add ebx, ebx
jne 0x10dd1a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10dd180
add ebx, ebx
jne 0x10dd1b7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x10dd20d
xor ecx, ecx
sub eax, 3
jb 0x10dd1d3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10dd242
sar eax, 1
mov ebp, eax
jmp 0x10dd1de
add ebx, ebx
jne 0x10dd1de
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10dd1ac
inc ecx
add ebx, ebx
jne 0x10dd1ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10dd1ac
add ebx, ebx
jne 0x10dd1f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10dd1ee
jne 0x10dd20a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10dd1ee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10dd22c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10dd21e
jmp 0x10dd16e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10dd22c
add edi, ecx
jmp 0x10dd16e
pop esi
mov edi, esi
mov ecx, 0x15936
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10dd24a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10dd24f
lea edi, [esi + 0xcda000]
mov eax, dword [edi]
or eax, eax
je 0x10dd2c0
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xcdf80c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xcdf848]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10dd275
mov ecx, edi
jns 0x10dd2a4
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xcdf84c]
or eax, eax
je 0x10dd2ba
mov dword [ebx], eax
add ebx, 4
jmp 0x10dd292
call dword [esi + 0xcdf85c]
mov ebp, dword [esi + 0xcdf850]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x10dd2f4
sub esp, 0xffffff80
jmp 0x432550
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.00406aa8
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.00406be4
jmp 0x40460e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044fc
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 + 0x543008], 0x8088405
inc edx
mov dword [ebx + 0x543008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x405e94
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x548054], 0
je 0x405ef5
cmp word [0x548330], 0xd7b2
jne 0x405ebd
cmp dword [0x548338], 0
jbe 0x405ebd
mov eax, 0x54832c
call dword [0x548348]
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 0x405f20
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x543030], 0
jne 0x405f11
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4060a0
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 [0x543034], 0
je 0x4060c6
mov edx, esi
mov eax, ebx
call dword [0x543034]
jmp 0x4060d5
mov eax, 8
call fcn.00404244
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x548055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406068
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 0x4089f4
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 0x408b5b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406aa8
cmp si, word [0x5437d0]
jb 0x408a8e
cmp si, word [0x5439d0]
ja 0x408a8e
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408a8e
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5437d0]
jae 0x408a68
mov edi, ebx
dec edi
jmp 0x408a89
cmp si, word [ebx*8 + 0x5437d0]
jbe 0x408a78
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408a89
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5437d4]
call fcn.00408904
jmp 0x408a8e
cmp edi, dword [ebp - 0xc]
jae 0x408a52
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408b3d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408b3d
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.00406cb8
push dword [ebp - 0x164]
push 0x408b78
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406cb8
push dword [ebp - 0x168]
push 0x408b88
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406cb8
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407070
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b62
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406aa0
ret
Function at 0x408b8c
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 0x408d72
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x54ab5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x54ab74]
cmp ax, word [ebp - 2]
jne 0x408be4
mov eax, dword [ebp - 6]
mov edx, 0x54ab78
mov ecx, 0x55
call fcn.00406cb8
push 0x54ab5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408d5c
push 0x54ab5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.00406aa8
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408d24
cmp byte [0x54ab58], 0
je 0x408cda
call dword [0x54ab50]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x54ab54]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x408cd3
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 [0x54ab4c]
test al, al
je 0x408cac
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.00404244
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 [0x54ab4c]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x408ca1
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x408c9d
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x408c8a
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00406c64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d24
movzx eax, word [ebp - 0x16]
push eax
call dword [0x54ab54]
cmp dword [ebp - 0x10], 0
je 0x408cd2
mov eax, dword [ebp - 0x10]
call fcn.00404260
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.004089f4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x408d24
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x408d09
mov eax, dword [ebp - 6]
mov edx, 0x408d8c
call fcn.00406ecc
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.004089f4
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00406ecc
mov eax, dword [ebp - 6]
push 0x54ab5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x54ab74], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00406b34
push eax
push 0x54ab78
call sub.kernel32.dll_lstrcpynW
push 0x54ab5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d79
lea eax, [ebp - 0x1c]
call fcn.00406a98
ret
Function at 0x408fb0
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.00406a90
xor eax, eax
push ebp
push 0x409195
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408ff0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40900a
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406b34
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40917f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4091a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409099
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4091a4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409099
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4091d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409099
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40920c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40917f
xor eax, eax
push ebp
push 0x409178
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408db4
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 0x409108
mov eax, dword [ebp - 0x10]
call fcn.00404244
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.00406c64
jmp 0x409153
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40924c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409153
mov eax, dword [ebp - 0x10]
call fcn.00404244
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40924c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406c64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40917f
cmp dword [ebp - 8], 0
je 0x40916e
mov eax, dword [ebp - 8]
call fcn.00404260
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 0x40919c
lea eax, [ebp - 4]
call fcn.00406a98
ret
Function at 0x409460
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.00406a90
mov eax, dword [ebp - 0x21c]
call fcn.00406a90
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x4095ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406aa8
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406b34
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 0x409500
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409512
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4094fd
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x4095cb
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 0x40953b
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.00408fb0
cmp dword [ebp - 0x220], 0
je 0x409573
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409354
pop ecx
mov ebx, eax
jmp 0x4095cb
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408b8c
mov eax, dword [ebp - 0x224]
call fcn.00409354
pop ecx
mov ebx, eax
test bl, bl
jne 0x4095be
cmp byte [0x54ab58], 0
jne 0x4095be
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408b8c
mov eax, dword [ebp - 0x228]
call fcn.00409354
pop ecx
mov ebx, eax
test bl, bl
jne 0x4095cb
push ebp
call fcn.00409404
pop ecx
mov ebx, eax
test bl, bl
je 0x4095e1
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406cb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409606
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406aa0
ret

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