joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003181
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x100031da
push esi
mov esi, dword [ebx + 0x3c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp + 8]
push eax
push 4
push 0x40
push ebx
add esi, ebx
call edi
test eax, eax
je 0x100031b5
push 0x40
push 0
push ebx
call fcn.10007b70
add esp, 0xc
test esi, esi
je 0x100031d8
lea eax, [ebp + 8]
push eax
push 4
mov ebx, 0xf8
push ebx
push esi
call edi
test eax, eax
je 0x100031d8
push ebx
push 0
push esi
call fcn.10007b70
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100031dd
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0xc]
jmp 0x10003200
cmp eax, dword [ebp + 8]
je 0x10003207
mov esi, dword [esi]
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x100031f9
cmp dword [esi + 0x18], 0
jne 0x10003211
xor eax, eax
jmp 0x10003272
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov dword [eax], ecx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
mov dword [eax], ecx
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
mov dword [eax + 4], ecx
movzx eax, word [esi + 0x24]
push eax
push 0
push dword [esi + 0x28]
call fcn.10007b70
push 0x48
push 0
push esi
call fcn.10007b70
xor eax, eax
add esp, 0x18
inc eax
pop esi
leave
ret

Function at 0x10003275
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
pushal
pushfd
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp + 8]
jne 0x100032ab
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x100032af
cmp edx, esi
jne 0x10003294
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jne 0x100032cf
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x100032d3
cmp edx, esi
jne 0x100032b8
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp + 8]
jne 0x100032f3
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x100032f7
cmp edx, esi
jne 0x100032dc
popfd
popal
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100032fe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
cmp dword [ebp + 0xc], 1
jne 0x100033af
push esi
mov esi, dword [ebp + 8]
push esi
mov dword [0x100268c8], esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push esi
call fcn.100031dd
push esi
call fcn.10003181
push esi
call fcn.10003275
add esp, 0xc
push 0
push str.DjR_Cheat
push 0x1001cb88
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push str.start_http:__cheat30.blogspot.com___Version_1.0_______n_By_AsiM_for_DjRCheater___________n_Turk_Versiyonu
call fcn.10007deb
mov dword [esp], 0x200
push 0x10026788
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x140
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x1001cb5c
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x1001cb4c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10023c20], eax
mov al, 1
pop esi
jmp 0x100033b1
xor al, al
leave
ret 0xc

Function at 0x10004a52
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1001aee5
call fcn.100078f0
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x10004b47
cmp byte [esi + 0x49], bl
je 0x10004b47
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x10004a8a
xor al, al
jmp 0x10004b49
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.10004569
mov dword [ebp - 4], ebx
push edi
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x10004aea
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x10]
push ebx
mov ebx, dword [ebp - 0x1c]
add ebx, eax
push ebx
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x10004aef
dec eax
je 0x10004af3
dec eax
dec eax
je 0x10004b43
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10003c6e
mov al, bl
pop edi
jmp 0x10004b49
mov edx, dword [ebp - 0x2c]
jmp 0x10004ab4
mov byte [esi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x10004aff
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
sub edi, eax
je 0x10004b25
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x10004b12
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.10008c75
add esp, 0x10
cmp edi, eax
jne 0x10004ad7
cmp byte [esi + 0x49], 0
je 0x10004b43
test edi, edi
jne 0x10004aa6
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.100044cc
jmp 0x10004aa6
mov bl, 1
jmp 0x10004ad9
mov al, 1
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x10004c10
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1001aead
call fcn.100078f0
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10004c2d
xor eax, eax
jmp 0x10004c55
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
push edi
xor edi, edi
cmp ecx, edi
je 0x10004c65
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x10004c65
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
cmp dword [esi + 0x54], edi
je 0x10004c85
mov ecx, esi
call fcn.10003a23
cmp dword [esi + 0x44], edi
jne 0x10004c8a
push dword [esi + 0x54]
push ebx
call fcn.10003f78
pop ecx
pop ecx
test al, al
jne 0x10004c52
or eax, 0xffffffff
jmp 0x10004c54
push edi
push 8
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x10], bl
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x34], 0
call fcn.10004569
mov dword [ebp - 4], edi
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x10004d3d
lea eax, [ebp - 0x34]
mov edx, eax
add eax, dword [ebp - 0x24]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x14]
push ebx
push eax
push edx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xf]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
test eax, eax
js 0x10004d5b
cmp eax, 1
jg 0x10004d45
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x10004cf1
lea eax, [ebp - 0x34]
mov edi, dword [ebp - 0x14]
sub edi, eax
je 0x10004d17
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x10004d04
lea eax, [ebp - 0x34]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.10008c75
add esp, 0x10
cmp edi, eax
jne 0x10004d5b
lea eax, [ebp - 0x10]
mov byte [esi + 0x49], 1
cmp dword [ebp - 0x18], eax
jne 0x10004d71
test edi, edi
jne 0x10004ca9
cmp dword [ebp - 0x24], 0x20
jae 0x10004d5b
push edi
push 8
lea ecx, [ebp - 0x34]
call fcn.100044cc
jmp 0x10004ca9
mov edx, dword [ebp - 0x34]
jmp 0x10004cbb
cmp eax, 3
jne 0x10004d5b
push dword [esi + 0x54]
push dword [ebp - 0x10]
call fcn.10003f78
pop ecx
pop ecx
test al, al
jne 0x10004d71
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.10003c6e
mov eax, esi
jmp 0x10004c54
mov esi, dword [ebp + 8]
jmp 0x10004d5e
Function at 0x1000b3f6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10023320]
jne 0x1000b400
repz ret
jmp fcn.100127ff

Function at 0x1000db7e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x1000dba5
call fcn.1000b3c0
mov dword [eax], esi
call fcn.1000b3ad
push 0x16
pop esi
mov dword [eax], esi
call fcn.1000b35b
mov eax, esi
jmp 0x1000dbfa
test dword [ebp + 0xc], 0xfffffff9
jne 0x1000db8b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1000dbd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1000b3d3
pop ecx
call fcn.1000b3ad
mov eax, dword [eax]
jmp 0x1000dbfa
test al, 0x10
jne 0x1000dbf8
test al, 1
je 0x1000dbf8
test byte [ebp + 0xc], 2
je 0x1000dbf8
call fcn.1000b3c0
mov dword [eax], 5
call fcn.1000b3ad
mov dword [eax], 0xd
jmp 0x1000dbc9
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1001699c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10023320]
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.1000a0e1
and dword [ebp - 0x14], 0
cmp dword [0x100276ac], 0
mov dword [ebp - 0x18], eax
jne 0x10016a4f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10016af7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10016af7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x100276ac], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x100276b0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x100276b4], eax
call edi
push eax
call esi
mov dword [0x100276bc], eax
test eax, eax
je 0x10016a4f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x100276b8], eax
mov eax, dword [0x100276b8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10016aa8
cmp dword [0x100276bc], ecx
je 0x10016aa8
push eax
call esi
push dword [0x100276bc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10016aa8
test ebx, ebx
je 0x10016aa8
call edi
test eax, eax
je 0x10016a9f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10016a9f
test byte [ebp - 8], 1
jne 0x10016aa8
or dword [ebp + 0x10], 0x200000
jmp 0x10016adb
mov eax, dword [0x100276b0]
cmp eax, dword [ebp - 0x18]
je 0x10016adb
push eax
call esi
test eax, eax
je 0x10016adb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10016adb
mov eax, dword [0x100276b4]
cmp eax, dword [ebp - 0x18]
je 0x10016adb
push eax
call esi
test eax, eax
je 0x10016adb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x100276ac]
call esi
test eax, eax
je 0x10016af7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10016af9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000b3f6
leave
ret
Function at 0x407120
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x407178
cmp byte [esi + ebx - 1], 0xa
je 0x40714c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4082bc], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x407ce0
Capabilities:
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 sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__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
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop

Function at 0xb4eb7d
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00b4eb7d
ret
Function at 0x404b94
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.00406604
test esi, esi
jne 0x404bca
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.00406750
jmp 0x404be8
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404ad8
mov edi, eax
test esi, esi
je 0x404be8
cmp dword [ebx], 0
je 0x404be8
dec esi
jmp 0x404bd1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405630
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.00405908
mov byte [esp], al
cmp byte [esp], 0
jne 0x4057b9
test edi, edi
je 0x4057b9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4056f9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4056d4
cmp edi, 0xffffffff
je 0x405695
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405695
mov byte [esp], 0
jmp 0x4057b9
cmp dword [esi], 1
jg 0x4056d4
cmp dword [esi], 0
jne 0x4056c6
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4056c6
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4057b9
lea eax, [esp + 0xc]
call fcn.004053c0
dec ebp
test ebp, ebp
jg 0x40567a
cmp edi, 0xffffffff
je 0x4056f9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4056f7
mov byte [esp], 0
jmp 0x4057b9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40563e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4056f9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405834
mov edx, eax
mov ebx, dword [0x4218f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40575d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40575b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40575d
xor edi, edi
cmp byte [esp], 0
je 0x405783
mov ebx, dword [esi]
test bl, 1
jne 0x405799
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405763
mov byte [esp + 1], 1
jmp 0x405799
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405783
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405710
cmp byte [esp], 0
je 0x4057b9
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 0x406380
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x421054], 0
je 0x4063e7
cmp word [0x421340], 0xd7b2
jne 0x4063a9
cmp dword [0x421348], 0
jbe 0x4063a9
mov eax, 0x42133c
call dword [0x421358]
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, 0x406414
call fcn.00406b18
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41f026], 0
jne 0x406403
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408fd8
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 0x40913f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406604
cmp si, word [0x41f9f8]
jb 0x409070
cmp si, word [0x41fbf8]
ja 0x409070
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409070
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x41f9f8]
jae 0x40904a
mov edi, ebx
dec edi
jmp 0x40906b
cmp si, word [ebx*8 + 0x41f9f8]
jbe 0x40905a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40906b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x41f9fc]
call fcn.00408ef4
jmp 0x409070
cmp edi, dword [ebp - 8]
jae 0x409034
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40911f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40911f
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.00406c44
push dword [ebp - 0x160]
push 0x40915c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00406c44
push dword [ebp - 0x164]
push 0x40916c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00406c44
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00406dfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409146
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406664
pop eax
jmp eax
Function at 0x4092f4
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 0x4093fa
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x423c10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x423c28]
jne 0x409340
mov eax, esi
mov edx, 0x423c2a
mov ecx, 0x55
call fcn.00406c44
push 0x423c10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4093e2
push 0x423c10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406604
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4093af
cmp byte [0x423c0c], 0
je 0x409374
mov edx, esi
mov eax, ebx
call fcn.004091d8
jmp 0x4093af
mov edx, esi
mov eax, ebx
call fcn.00408fd8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4093af
cmp dword [esi], 0
je 0x409398
mov eax, esi
mov edx, 0x409414
call fcn.00406d1c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408fd8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406d1c
push 0x423c10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x423c28], bx
mov eax, dword [esi]
call fcn.00406bb8
mov ecx, eax
mov eax, 0x423c2a
mov edx, 0xaa
call fcn.00408e54
push 0x423c10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409401
lea eax, [ebp - 4]
call fcn.00406604
pop eax
jmp eax
Function at 0x40963c
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.004066f8
xor eax, eax
push ebp
push 0x409864
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409682
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40969c
mov eax, dword [ebp - 4]
call fcn.00406bb8
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.00408e54
cmp word [ebp - 0x21e], 0
je 0x409847
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x409874
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40976b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x409874
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40976b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x4098b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40976b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x4098b0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40976b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x4098e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40976b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x409918
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409847
xor eax, eax
push ebp
push 0x409840
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040943c
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 0x4097ce
mov eax, dword [ebp - 0x14]
call fcn.004044a8
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.00406c08
jmp 0x409819
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x409958
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409819
mov eax, dword [ebp - 0x14]
call fcn.004044a8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x409958
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.00406c08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409847
cmp dword [ebp - 0xc], 0
je 0x409834
mov eax, dword [ebp - 0xc]
call fcn.004044c4
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 0x40986b
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406664
pop eax
jmp eax