joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Wow64EnableWow64FsRedirection]
push 0x104
push 0
lea eax, [ebp - 0x114]
push eax
call fcn.00402990
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [ebp - 0x114]
add edx, 0xffffffff
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov cl, byte [eax + 1]
mov byte [ebp - 1], cl
add dword [ebp - 8], 1
cmp byte [ebp - 1], 0
jne 0x4016ee
mov edi, dword [ebp - 8]
mov edx, dword [str.mns.dat]
mov dword [edi], edx
mov eax, dword [0x419a50]
mov dword [edi + 4], eax
mov cl, byte [0x419a54]
mov byte [edi + 8], cl
push 0x41c330
push 0x41c338
lea edx, [ebp - 0x114]
push edx
call fcn.00401950
add esp, 0xc
push 1
call dword [sym.imp.KERNEL32.dll_Wow64EnableWow64FsRedirection]
push 0x401880
push 0
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov dword [ebp - 0xc], 0x4015c0
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0xc], 0x7fffffff
jbe 0x401766
jmp 0x40176e
xor ecx, ecx
mov eax, dword [ebp - 0xc]
div ecx
ret
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x401780
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x18], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x18]
lea eax, [edx + ecx + 0x78]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
add edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], 0
jmp 0x4017c7
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx + 0x18]
jae 0x401878
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx*4]
add eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
test edx, edx
je 0x401824
mov eax, dword [ebp - 4]
shl eax, 0x19
mov ecx, dword [ebp - 4]
shr ecx, 7
or eax, ecx
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
movsx eax, byte [edx]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x4017f2
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 4]
jne 0x401873
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx*4]
add eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov dword [0x41c328], 0
mov dword [0x41c324], 0
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov cl, byte [eax + 1]
mov dword [0x41c328], ecx
mov ecx, dword [eax + 6]
mov dword [0x41c324], ecx
mov eax, 1
jmp 0x40187a
jmp 0x4017be
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401920
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40198c
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x401a26
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call fcn.00406d8f
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.00402990
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 0
jne 0x4019f7
jmp 0x401a0f
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
ja 0x4019d7
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40b0fe
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 0x40b19b
push ebx
push esi
call fcn.0040b0c7
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.0040b010
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b148
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b19a
push edi
push eax
call fcn.004083b5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b168
call fcn.0040837b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b199
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040b010
add esp, 0x20
test eax, eax
jne 0x40b187
push edi
call fcn.0040837b
jmp 0x40b18f
push ebx
call fcn.0040837b
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 0x40be42
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416158
push 0x416150
push str.FlsAlloc
push 0x1e
call fcn.0040bd60
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40be76
push dword [ebp + 8]
mov ecx, esi
call dword [0x41416c]
call esi
jmp 0x40be7c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40bec0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416168
push 0x416160
push str.FlsGetValue
push 0x20
call fcn.0040bd60
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40bef7
push dword [ebp + 8]
mov ecx, esi
call dword [0x41416c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x13b38bc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x13b38c6
pushal
call 0x13b38cc
pop ebp
sub ebp, 0x10
sub ebp, 0xfb38bc
jmp 0x13b38e2
mov eax, 0xfb38bc
add eax, ebp
add eax, 0x4c
mov ecx, 0x5cd
mov edx, 0x6f8931
xor byte [eax], dl
inc eax
dec ecx
jne 0x13b38f9
jmp 0x13b390c
mov edx, 0xdb8bafc
xor dword [ecx], esi
xor dword [eax + 0x3131c9f0], esi
xor dword [edx], esi
cld
mov dword [edi], esi
xor dword [ecx], esi
xor dword [ebx + 0x31313119], ecx
invalid

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x4db3374c
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..text
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x5c162b09
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4046e8
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 0x40472a
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 0x40474a
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040875c
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x4049a0
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.00407b74
test esi, esi
jne 0x4049d6
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.00407cfc
jmp 0x4049f4
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404884
mov edi, eax
test esi, esi
je 0x4049f4
cmp dword [ebx], 0
je 0x4049f4
dec esi
jmp 0x4049dd
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x4068f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00406ce8
mov byte [esp], al
cmp byte [esp], 0
jne 0x406a7c
test edi, edi
je 0x406a7c
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4069b3
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40698e
cmp edi, 0xffffffff
je 0x40694f
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40694f
mov byte [esp], 0
jmp 0x406a7c
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40698e
test ebx, ebx
jne 0x406984
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402770
test eax, eax
jne 0x406984
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406a7c
call 0x406e0c
dec ebp
test ebp, ebp
jg 0x406934
cmp edi, 0xffffffff
je 0x4069b3
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4069b1
mov byte [esp], 0
jmp 0x406a7c
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4068fe
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x4069b3
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00406aec
mov edx, eax
mov ebx, dword [0x52a8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x406a1a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x406a18
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x406a1a
xor edi, edi
cmp byte [esp], 0
je 0x406a43
mov ebx, dword [esi]
test bl, 1
jne 0x406a5c
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x406a20
mov byte [esp + 1], 1
jmp 0x406a5c
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x406a43
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4069cd
cmp byte [esp], 0
je 0x406a7c
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40780c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x52a058], 0
je 0x407873
cmp word [0x52a344], 0xd7b2
jne 0x407835
cmp dword [0x52a34c], 0
jbe 0x407835
mov eax, 0x52a340
call dword [0x52a35c]
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, 0x4078a0
call fcn.004083e8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x525032], 0
jne 0x40788f
push 0
push 0x5259ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x407a30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x525034], 0
je 0x407a5b
mov edx, edi
mov eax, esi
call dword [0x525034]
mov ebx, eax
jmp 0x407a6c
mov eax, 8
call fcn.00404544
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x52a059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4079f8
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x407aa1
mov edx, 8
mov eax, ebx
call fcn.00404560
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x409f94
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 0x40a0f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407b74
cmp si, word [0x525a08]
jb 0x40a02c
cmp si, word [0x525c08]
ja 0x40a02c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40a02c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x525a08]
jae 0x40a006
mov edi, ebx
dec edi
jmp 0x40a027
cmp si, word [ebx*8 + 0x525a08]
jbe 0x40a016
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40a027
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x525a0c]
call fcn.00409ea4
jmp 0x40a02c
cmp edi, dword [ebp - 8]
jae 0x409ff0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40a0db
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a0db
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.0040875c
push dword [ebp - 0x160]
push 0x40a114
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040875c
push dword [ebp - 0x164]
push 0x40a124
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040875c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00408994
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a100
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407bd4
ret
Function at 0x40a2ac
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 0x40a3af
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x52cb88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x52cba0]
jne 0x40a2f8
mov eax, esi
mov edx, 0x52cba2
mov ecx, 0x55
call fcn.0040875c
push 0x52cb88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40a399
push 0x52cb88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00407b74
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a367
cmp byte [0x52cb84], 0
je 0x40a32c
mov edx, esi
mov eax, ebx
call fcn.0040a190
jmp 0x40a367
mov edx, esi
mov eax, ebx
call fcn.00409f94
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40a367
cmp dword [esi], 0
je 0x40a350
mov eax, esi
mov edx, 0x40a3c8
call fcn.004088b4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409f94
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004088b4
push 0x52cb88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x52cba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.004086c8
push eax
push 0x52cba2
call sub.kernel32.dll_lstrcpynW
push 0x52cb88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a3b6
lea eax, [ebp - 4]
call fcn.00407b74
ret
Function at 0x40a5e4
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.00407c58
xor eax, eax
push ebp
push 0x40a809
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40a624
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40a63e
push 0x105
mov eax, dword [ebp - 4]
call fcn.004086c8
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40a7f3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a818
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a70d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a818
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a70d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a854
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a70d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a854
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a70d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a888
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a70d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a8bc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40a7f3
xor eax, eax
push ebp
push 0x40a7ec
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040a3f0
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 0x40a77c
mov eax, dword [ebp - 0x10]
call fcn.00404544
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.00408720
jmp 0x40a7c7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40a8fc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a7c7
mov eax, dword [ebp - 0x10]
call fcn.00404544
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40a8fc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00408720
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a7f3
cmp dword [ebp - 8], 0
je 0x40a7e2
mov eax, dword [ebp - 8]
call fcn.00404560
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 0x40a810
lea eax, [ebp - 4]
call fcn.00407b74
ret
Function at 0x40aaec
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.00407c58
xor eax, eax
push ebp
push 0x40abac
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.0040875c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040890c
mov eax, dword [ebx]
call fcn.0040a9b4
test al, al
jne 0x40ab89
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040875c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040890c
mov eax, dword [ebx]
call fcn.0040a9b4
test al, al
jne 0x40ab89
mov eax, ebx
call fcn.00407b74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40abb3
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407bd4
lea eax, [ebp - 4]
call fcn.00407b74
ret

Function at 0x40b570
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 0x41ee30
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 0x41ef59
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 0x41ef33
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 0x41ef1c
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040875c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00408c28
test eax, eax
jle 0x41ef1c
mov eax, dword [ebp - 4]
test eax, eax
je 0x41eed0
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x41eede
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.00408a7c
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.00408720
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040890c
jmp 0x41ef33
add ebx, 2
cmp word [ebx], 0
jne 0x41ef19
add ebx, 4
test ebx, ebx
je 0x41ef2d
cmp word [ebx], 0
jne 0x41ee82
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ef60
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.00407bd4
lea eax, [ebp - 4]
call fcn.00407b74
ret