joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001a70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1000f020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x40
push 0x3000
push 0x54c
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea edi, [eax + 0x10]
mov ecx, edi
call fcn.10001980
mov eax, dword [ebp + 8]
push 0x1000d330
lea ebx, [edi + 0x51c]
push str.kernel32.dll
mov dword [ebp - 0x20], vtable.CAdHookApi.0
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10001b26
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push 4
push 8
push esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], esi
mov byte [ebp - 0xc], 0xb8
mov dword [ebp - 0xb], edi
mov word [ebp - 7], 0xe0ff
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x24]
push eax
push ecx
push 8
push esi
mov dword [esi + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ebx + 0xc], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], edx
xor eax, eax
cmp dword [eax + edi], 0xaabbaacc
je 0x10001b59
inc eax
cmp eax, 0x64
jl 0x10001b37
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002641
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov dword [eax + edi], ebx
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.10002641
mov esp, ebp
pop ebp
ret

Function at 0x10001b70
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10001bc4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0
lea ecx, [ebp - 4]
push ecx
push ebx
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x10001bcd
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov eax, dword [edx]
test eax, eax
je 0x10001bdd
push ebx
push edi
call eax
add esp, 8
push edi
call fcn.10001a70
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001bf0
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
xor esi, esi
push 1
push esi
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateProcessesA]
test eax, eax
je 0x10001c44
cmp dword [ebp - 8], esi
jbe 0x10001c44
xor edi, edi
lea ecx, [ecx]
mov edx, dword [0x10011054]
mov eax, dword [ebp - 4]
mov ecx, dword [edi + eax + 8]
push edx
push ecx
call fcn.10002dfc
add esp, 8
test eax, eax
je 0x10001c56
inc esi
add edi, 0x10
cmp esi, dword [ebp - 8]
jb 0x10001c20
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10001c70
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x1000f020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.10004740
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x103
lea edx, [ebp - 0x20b]
push 0
push edx
mov byte [ebp - 0x20c], 0
call fcn.10004740
lea eax, [ebp - 0x108]
push 0x2f5c
push eax
call fcn.10002e50
lea ecx, [ebp - 0x108]
sub eax, ecx
inc eax
push eax
mov edx, ecx
push edx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10002967
mov ecx, dword [0x10011054]
push ecx
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.10002bf7
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x30
xor esi, esi
lea esp, [esp]
lea eax, [ebp - 0x20c]
push eax
add esi, 0x3e8
call ebx
cmp eax, 0xffffffff
je 0x10001d92
test al, 0x10
jne 0x10001d92
push 0x38
lea ecx, [ebp - 0x244]
push 0
push ecx
call fcn.10004740
add esp, 0xc
lea eax, [ebp - 0x248]
lea edx, [ebp - 0x20c]
push eax
mov dword [ebp - 0x248], 0x3c
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x23c], str.open
mov dword [ebp - 0x22c], 0
call edi
test eax, eax
jne 0x10001db4
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x1388
jle 0x10001d30
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002641
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.10002641
mov esp, ebp
pop ebp
ret

Function at 0x10002641
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000f020]
jne 0x1000264b
repz ret
jmp fcn.100030fa
Function at 0x10006f8b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1000f020]
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.1000553e
and dword [ebp - 0x14], 0
cmp dword [0x10010a80], 0
mov dword [ebp - 0x18], eax
jne 0x1000703e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100070e6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x100070e6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10010a80], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10010a84], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10010a88], eax
call edi
push eax
call esi
mov dword [0x10010a90], eax
test eax, eax
je 0x1000703e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10010a8c], eax
mov eax, dword [0x10010a8c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10007097
cmp dword [0x10010a90], ecx
je 0x10007097
push eax
call esi
push dword [0x10010a90]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10007097
test ebx, ebx
je 0x10007097
call edi
test eax, eax
je 0x1000708e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000708e
test byte [ebp - 8], 1
jne 0x10007097
or dword [ebp + 0x10], 0x200000
jmp 0x100070ca
mov eax, dword [0x10010a84]
cmp eax, dword [ebp - 0x18]
je 0x100070ca
push eax
call esi
test eax, eax
je 0x100070ca
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100070ca
mov eax, dword [0x10010a88]
cmp eax, dword [ebp - 0x18]
je 0x100070ca
push eax
call esi
test eax, eax
je 0x100070ca
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10010a80]
call esi
test eax, eax
je 0x100070e6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100070e8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002641
leave
ret
Function at 0x72641e80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push esi
xor esi, esi
push edi
sub edx, ecx
xor edi, edi
xor eax, eax
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
cmp edx, 2
jl 0x72641eea
mov esi, dword [esp + 0x14]
mov esi, dword [esi]
push ebx
push ebp
jmp 0x72641eb0
movzx ebp, byte [ecx + eax]
movzx ebx, byte [esi + eax]
xor ebx, ebp
movzx ebx, byte [ebx + 0x72659858]
movzx ebp, byte [ecx + eax + 1]
add edi, ebx
movzx ebx, byte [esi + eax + 1]
xor ebx, ebp
movzx ebx, byte [ebx + 0x72659858]
add dword [esp + 0x10], ebx
add eax, 2
lea ebx, [edx - 1]
cmp eax, ebx
jb 0x72641eb0
mov esi, dword [esp + 0x14]
pop ebp
pop ebx
cmp eax, edx
jae 0x72641f05
mov edx, dword [esp + 0x14]
movzx ecx, byte [ecx + eax]
mov edx, dword [edx]
movzx eax, byte [edx + eax]
xor ecx, eax
movzx esi, byte [ecx + 0x72659858]
mov eax, dword [esp + 8]
add eax, edi
pop edi
add eax, esi
pop esi
add esp, 8
ret
Function at 0x7267e71f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x8c948235
push 0x94b74d27
mov dword [esp + 8], esi
rcr al, 1
bsr ax, sp
cwde
shrd eax, ecx, 0x13
mov dword [esp + 4], edi
shrd ax, cx, 3
cwde
rol ah, cl
ror al, 6
mov dword [esp], ebx
cmc
btr ax, cx
movzx ax, cl
cmc
push edx
cmc
aaa
btr ax, bx
mov eax, dword [ebp + 8]
jmp 0x7268198f
test eax, eax
jmp 0x726a6381

Function at 0x726a51cc
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 0x2c]
jl 0x726a2d01
push eax
pushal
jmp 0x726a9ab2
dec al
call fcn.726a535a
lodsb al, byte [esi]
pushfd
jmp 0x726a9325
Function at 0x404888
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.00406bb8
test esi, esi
jne 0x4048be
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.00406d10
jmp 0x4048dc
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040476c
mov edi, eax
test esi, esi
je 0x4048dc
cmp dword [ebx], 0
je 0x4048dc
dec esi
jmp 0x4048c5
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x405934
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.00405dc0
mov byte [esp], al
cmp byte [esp], 0
jne 0x405abd
test edi, edi
je 0x405abd
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4059fd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4059d8
cmp edi, 0xffffffff
je 0x405999
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405999
mov byte [esp], 0
jmp 0x405abd
cmp dword [esi], 1
jg 0x4059d8
cmp dword [esi], 0
jne 0x4059ca
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4059ca
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405abd
lea eax, [esp + 0xc]
call fcn.004055f0
dec ebp
test ebp, ebp
jg 0x40597e
cmp edi, 0xffffffff
je 0x4059fd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4059fb
mov byte [esp], 0
jmp 0x405abd
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405942
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4059fd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405b2c
mov edx, eax
mov ebx, dword [0x4278f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405a61
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405a5f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405a61
xor edi, edi
cmp byte [esp], 0
je 0x405a87
mov ebx, dword [esi]
test bl, 1
jne 0x405a9d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405a67
mov byte [esp + 1], 1
jmp 0x405a9d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405a87
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405a14
cmp byte [esp], 0
je 0x405abd
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 0x406934
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x427054], 0
je 0x40699b
cmp word [0x427340], 0xd7b2
jne 0x40695d
cmp dword [0x427348], 0
jbe 0x40695d
mov eax, 0x42733c
call dword [0x427358]
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, 0x4069c8
call fcn.0040711c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x425026], 0
jne 0x4069b7
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408a1c
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 0x408b81
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406bb8
cmp si, word [0x4259f0]
jb 0x408ab4
cmp si, word [0x425bf0]
ja 0x408ab4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408ab4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4259f0]
jae 0x408a8e
mov edi, ebx
dec edi
jmp 0x408aaf
cmp si, word [ebx*8 + 0x4259f0]
jbe 0x408a9e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408aaf
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4259f4]
call fcn.0040893c
jmp 0x408ab4
cmp edi, dword [ebp - 8]
jae 0x408a78
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408b63
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408b63
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.004072b4
push dword [ebp - 0x160]
push 0x408b9c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004072b4
push dword [ebp - 0x164]
push 0x408bac
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004072b4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040746c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b88
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406c18
ret
Function at 0x408d34
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 0x408e38
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x429c0c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x429c24]
jne 0x408d80
mov eax, esi
mov edx, 0x429c26
mov ecx, 0x55
call fcn.004072b4
push 0x429c0c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408e22
push 0x429c0c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406bb8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408def
cmp byte [0x429c08], 0
je 0x408db4
mov edx, esi
mov eax, ebx
call fcn.00408c18
jmp 0x408def
mov edx, esi
mov eax, ebx
call fcn.00408a1c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408def
cmp dword [esi], 0
je 0x408dd8
mov eax, esi
mov edx, 0x408e50
call fcn.0040738c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408a1c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040738c
push 0x429c0c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x429c24], bx
mov eax, dword [esi]
call fcn.00407220
mov ecx, eax
mov eax, 0x429c26
mov edx, 0xaa
call fcn.0040889c
push 0x429c0c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e3f
lea eax, [ebp - 4]
call fcn.00406bb8
ret
Function at 0x409068
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.00406c9c
xor eax, eax
push ebp
push 0x40928d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4090a8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4090c2
mov eax, dword [ebp - 4]
call fcn.00407220
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040889c
cmp word [ebp - 0x21a], 0
je 0x409277
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40929c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409191
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40929c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409191
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4092d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409191
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4092d8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409191
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40930c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409191
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409340
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409277
xor eax, eax
push ebp
push 0x409270
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408e78
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 0x409200
mov eax, dword [ebp - 0x10]
call fcn.004044c8
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.00407278
jmp 0x40924b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409380
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40924b
mov eax, dword [ebp - 0x10]
call fcn.004044c8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409380
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407278
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409277
cmp dword [ebp - 8], 0
je 0x409266
mov eax, dword [ebp - 8]
call fcn.004044e4
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 0x409294
lea eax, [ebp - 4]
call fcn.00406bb8
ret
Function at 0x40957c
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.00406c9c
xor eax, eax
push ebp
push 0x40963c
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.004072b4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004073e4
mov eax, dword [ebx]
call fcn.00409444
test al, al
jne 0x409619
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004072b4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004073e4
mov eax, dword [ebx]
call fcn.00409444
test al, al
jne 0x409619
mov eax, ebx
call fcn.00406bb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409643
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406c18
lea eax, [ebp - 4]
call fcn.00406bb8
ret

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

Function at 0x414790
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 0x4148be
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 0x414898
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 0x414881
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.004072b4
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00407650
test eax, eax
jle 0x414881
mov eax, dword [ebp - 4]
test eax, eax
je 0x414835
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x414843
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x428]
push eax
mov ecx, edi
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.00407554
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.00407278
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.004073e4
jmp 0x414898
add ebx, 2
cmp word [ebx], 0
jne 0x41487e
add ebx, 4
test ebx, ebx
je 0x414892
cmp word [ebx], 0
jne 0x4147e2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4148c5
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.00406c18
lea eax, [ebp - 4]
call fcn.00406bb8
ret