joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bbf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40bc25
lea eax, [ebp - 0x42]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_fread]
cmp eax, 1
je 0x40bc38
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
movzx ecx, byte [ebp - 0x41]
movzx eax, byte [ebp - 0x42]
xor esi, esi
mov byte [ebp - 0x45], cl
mov ecx, 0x40aa00
cmp al, 0xff
jne 0x40bc61
xor edx, edx
mov edi, 0x40a430
cmp byte [ebp - 0x45], 0xfe
sete dl
cmove ecx, edi
mov esi, edx
movzx edx, byte [ebp - 0x45]
mov dword [ebp - 0x40], ebx
lea ebx, [ebp - 0x40]
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x3c]
mov word [ebp - 0x3a], dx
mov edx, 0xffffffff
mov word [ebp - 0x34], dx
mov edx, 0x40a320
mov dword [ebp - 0x38], esi
mov dword [0x416de0], ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
jmp 0x40bcda
mov edx, dword [ebp - 0x10]
mov edx, dword [edx*4 + 0x412d80]
mov dword [esp + 4], eax
mov dword [esp], ebx
call edx
test eax, eax
jne 0x40bcd0
movzx eax, word [ebp - 0x34]
lea edx, [eax - 3]
cmp dx, 1
jbe 0x40bd40
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov ebx, 1
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40bc27
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
cmp ax, 3
sete bl
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40df90
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov edx, dword [0x416df0]
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test edx, edx
jne 0x40dfc8
mov edx, 1
test byte [eax + 0x40], 0x40
je 0x40dfb8
mov eax, edx
pop ebp
ret
mov edx, dword [eax + 0x3c]
pop ebp
mov eax, ecx
jmp fcn.0040c7f0
xor edx, edx
pop ebp
mov eax, edx
ret

Function at 0x40ed90
Capabilities:
Accept command line arguments
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x40ee00
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40ee8b
cmp ax, 9
je 0x40ee78
cmp ax, 0x20
je 0x40ee78
mov dword [ebp - 0x54], 0
xor esi, esi
nop
cmp ax, 0x5c
je 0x40eee0
cmp ax, 0x22
je 0x40eef0
mov dword [ebp - 0x54], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40ee8b
cmp ax, 9
sete dl
cmp ax, 0x20
sete cl
or dl, cl
je 0x40ee30
test esi, 1
jne 0x40ee30
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x40ee78
cmp ax, 0x20
je 0x40ee78
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x40ef08
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00408c10
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x54], 1
jmp 0x40ee4b
and dword [ebp - 0x54], 1
jne 0x40ee44
xor esi, 1
jmp 0x40ee4b
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x40eea4
Function at 0x40ee00
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x40ee00
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40ee8b
cmp ax, 9
je 0x40ee78
cmp ax, 0x20
je 0x40ee78
mov dword [ebp - 0x54], 0
xor esi, esi
nop
cmp ax, 0x5c
je 0x40eee0
cmp ax, 0x22
je 0x40eef0
mov dword [ebp - 0x54], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40ee8b
cmp ax, 9
sete dl
cmp ax, 0x20
sete cl
or dl, cl
je 0x40ee30
test esi, 1
jne 0x40ee30
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x40ee78
cmp ax, 0x20
je 0x40ee78
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x40ef08
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00408c10
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x54], 1
jmp 0x40ee4b
and dword [ebp - 0x54], 1
jne 0x40ee44
xor esi, 1
jmp 0x40ee4b
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x40eea4
Function at 0x438c96
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x438a14
add edx, 0x4de59ea4
dec ebx
call fcn.00438cd9
sub edx, ebx
sub edx, 0xa5a2db
xor dword [esi], ecx
sub ebx, 0x2c0d2980
push ebx
pop edx
inc edx
inc esi
push edx
mov ebx, dword [esp]
add esp, 4
mov edx, 0x3927187d
add ebx, ebx
cmp esi, edi
jne fcn.00438c96
and edx, edx
and edx, edx
ret
Function at 0x401cd5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43f07c]
jne 0x401cdf
repz ret
jmp fcn.00402908

Function at 0x40837a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43f07c]
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.00405b1d
and dword [ebp - 0x14], 0
cmp dword [0x441e64], 0
mov dword [ebp - 0x18], eax
jne 0x40842d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4084d5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4084d5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x441e64], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x441e68], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x441e6c], eax
call edi
push eax
call esi
mov dword [0x441e74], eax
test eax, eax
je 0x40842d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x441e70], eax
mov eax, dword [0x441e70]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408486
cmp dword [0x441e74], ecx
je 0x408486
push eax
call esi
push dword [0x441e74]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408486
test ebx, ebx
je 0x408486
call edi
test eax, eax
je 0x40847d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40847d
test byte [ebp - 8], 1
jne 0x408486
or dword [ebp + 0x10], 0x200000
jmp 0x4084b9
mov eax, dword [0x441e68]
cmp eax, dword [ebp - 0x18]
je 0x4084b9
push eax
call esi
test eax, eax
je 0x4084b9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4084b9
mov eax, dword [0x441e6c]
cmp eax, dword [ebp - 0x18]
je 0x4084b9
push eax
call esi
test eax, eax
je 0x4084b9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x441e64]
call esi
test eax, eax
je 0x4084d5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4084d7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401cd5
leave
ret
Function at 0x405b94
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004082a4
test esi, esi
jne 0x405bca
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.0040843c
jmp 0x405be8
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00405ad8
mov edi, eax
test esi, esi
je 0x405be8
cmp dword [ebx], 0
je 0x405be8
dec esi
jmp 0x405bd1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406e5c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.0040731c
mov byte [esp], al
cmp byte [esp], 0
jne 0x406fe5
test edi, edi
je 0x406fe5
mov byte [esp + 1], 0
test ebp, ebp
jle 0x406f25
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x406f00
cmp edi, 0xffffffff
je 0x406ec1
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406ec1
mov byte [esp], 0
jmp 0x406fe5
cmp dword [esi], 1
jg 0x406f00
cmp dword [esi], 0
jne 0x406ef2
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x406ef2
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406fe5
lea eax, [esp + 0xc]
call fcn.00406b18
dec ebp
test ebp, ebp
jg 0x406ea6
cmp edi, 0xffffffff
je 0x406f25
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406f23
mov byte [esp], 0
jmp 0x406fe5
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x406e6a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406f25
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00407060
mov edx, eax
mov ebx, dword [0x5cd900]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x406f89
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x406f87
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x406f89
xor edi, edi
cmp byte [esp], 0
je 0x406faf
mov ebx, dword [esi]
test bl, 1
jne 0x406fc5
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406f8f
mov byte [esp + 1], 1
jmp 0x406fc5
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406faf
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x406f3c
cmp byte [esp], 0
je 0x406fe5
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x407c74
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x5cfba0
cmp dword [ebp + 0xc], 2
jl 0x407c88
mov ebx, 0x5cfbd0
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x407cc0
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x4038b4
mov dword [0x5cd01c], eax
mov eax, 0x4038bc
mov dword [0x5cd020], eax
mov eax, ebx
call fcn.00407b58
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x407cf5
cmp al, 3
jge 0x407cf5
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x407d06
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x407d11
call dword [ecx + eax*4]
cmp dword [0x5cd040], 0
jne 0x407d27
mov byte [0x5cd048], 1
fnstcw word [0x5c202c]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00407fd4
call fcn.00407c08
ret 4

Function at 0x407f3c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5cd05c], 0
je 0x407fa3
cmp word [0x5cd34c], 0xd7b2
jne 0x407f65
cmp dword [0x5cd354], 0
jbe 0x407f65
mov eax, 0x5cd348
call dword [0x5cd364]
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
mov eax, 0x407fd0
call fcn.00408ab8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5c2036], 0
jne 0x407fbf
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40bde4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40bf4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004082a4
cmp si, word [0x5c2a18]
jb 0x40be7c
cmp si, word [0x5c2c18]
ja 0x40be7c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40be7c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5c2a18]
jae 0x40be56
mov edi, ebx
dec edi
jmp 0x40be77
cmp si, word [ebx*8 + 0x5c2a18]
jbe 0x40be66
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40be77
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5c2a1c]
call fcn.0040bd04
jmp 0x40be7c
cmp edi, dword [ebp - 8]
jae 0x40be40
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bf2b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bf2b
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00408da0
push dword [ebp - 0x160]
push 0x40bf68
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00408da0
push dword [ebp - 0x164]
push 0x40bf78
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00408da0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00408fd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf52
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00408304
pop eax
jmp eax
Function at 0x40c100
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 0x40c206
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5cfc18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5cfc30]
jne 0x40c14c
mov eax, esi
mov edx, 0x5cfc32
mov ecx, 0x55
call fcn.00408da0
push 0x5cfc18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c1ee
push 0x5cfc18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004082a4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c1bb
cmp byte [0x5cfc14], 0
je 0x40c180
mov edx, esi
mov eax, ebx
call fcn.0040bfe4
jmp 0x40c1bb
mov edx, esi
mov eax, ebx
call fcn.0040bde4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c1bb
cmp dword [esi], 0
je 0x40c1a4
mov eax, esi
mov edx, 0x40c220
call fcn.00408ef8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040bde4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00408ef8
push 0x5cfc18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5cfc30], bx
mov eax, dword [esi]
call fcn.00408d04
mov ecx, eax
mov eax, 0x5cfc32
mov edx, 0xaa
call fcn.0040bc64
push 0x5cfc18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c20d
lea eax, [ebp - 4]
call fcn.004082a4
pop eax
jmp eax
Function at 0x40c448
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00408398
xor eax, eax
push ebp
push 0x40c670
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c48e
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c4a8
mov eax, dword [ebp - 4]
call fcn.00408d04
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040bc64
cmp word [ebp - 0x21e], 0
je 0x40c653
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40c680
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c577
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40c680
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c577
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40c6bc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c577
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40c6bc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c577
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40c6f0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c577
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40c724
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c653
xor eax, eax
push ebp
push 0x40c64c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040c248
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c5da
mov eax, dword [ebp - 0x14]
call fcn.00405494
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.00408d64
jmp 0x40c625
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40c764
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c625
mov eax, dword [ebp - 0x14]
call fcn.00405494
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40c764
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.00408d64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c653
cmp dword [ebp - 0xc], 0
je 0x40c640
mov eax, dword [ebp - 0xc]
call fcn.004054b0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c677
lea eax, [ebp - 8]
mov edx, 2
call fcn.00408304
pop eax
jmp eax
Function at 0x40c980
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00408398
xor eax, eax
push ebp
push 0x40ca42
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00408da0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408f50
mov eax, dword [ebx]
call fcn.0040c82c
test al, al
jne 0x40ca1d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00408da0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408f50
mov eax, dword [ebx]
call fcn.0040c82c
test al, al
jne 0x40ca1d
mov eax, ebx
call fcn.004082a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca49
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00408304
lea eax, [ebp - 4]
call fcn.004082a4
pop eax
jmp eax

Function at 0x42054c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x420678
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetLogicalDriveStringsW
mov esi, eax
test esi, esi
jle 0x420650
lea ebx, [ebp - 0x218]
lea eax, [ebx + 4]
mov word [eax], 0
push 0x104
lea eax, [ebp - 0x424]
push eax
push ebx
call sub.kernel32.dll_QueryDosDeviceW
mov esi, eax
test esi, esi
jle 0x420639
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.00408da0
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00409214
test eax, eax
jle 0x420639
mov eax, dword [ebp - 4]
test eax, eax
je 0x4205ef
mov eax, dword [eax - 4]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x4205fb
mov edi, dword [edi - 4]
lea eax, [ebp - 0x428]
push eax
mov ecx, edi
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.004090c0
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.00408d64
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.00408f50
jmp 0x420650
add ebx, 2
cmp word [ebx], 0
jne 0x420636
add ebx, 4
test ebx, ebx
je 0x42064a
cmp word [ebx], 0
jne 0x42059e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42067f
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.00408304
lea eax, [ebp - 4]
call fcn.004082a4
pop eax
jmp eax