joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005480
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002da9b
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x100ff120]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, edx
mov dword [eax], 0
mov dword [ebp - 0x438], eax
mov eax, dword [ebx + 4]
push eax
mov edi, ecx
mov ecx, dword [ebx]
push ecx
lea eax, [ebp - 0x434]
push eax
push ebx
mov dword [ebp - 0x430], edi
call fcn.10006150
push 0x3ff
lea ecx, [ebp - 0x40f]
push 0
push ecx
mov byte [ebp - 0x410], 0
call fcn.100174f0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x410]
push str.SELECT_name_FROM_sqlite_master_WHERE_name_LIKE_u__u__U_____ORDER_BY_name
push eax
call fcn.10015d26
mov edx, dword [edi + 0x44]
mov eax, dword [edx + 0x14]
lea esi, [edi + 0x44]
add esp, 0x18
mov ecx, esi
call eax
mov eax, dword [edi + 0x3c]
lea ecx, [edi + 0x40]
push ecx
mov ecx, dword [edi + 0x14]
push esi
push 0x10007620
lea edx, [ebp - 0x410]
push edx
push eax
call ecx
add esp, 0x14
test eax, eax
jne 0x10005650
mov edx, dword [edi + 0x44]
mov eax, dword [edx]
lea esi, [edi + 0x44]
mov ecx, esi
mov dword [ebp - 0x434], esi
call eax
test eax, eax
je 0x10005600
mov esi, dword [eax]
mov ecx, esi
mov dword [ebp - 0x418], 0xf
mov dword [ebp - 0x41c], 0
mov byte [ebp - 0x42c], 0
lea edx, [ecx + 1]
jmp 0x10005580
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005580
sub ecx, edx
mov eax, esi
mov edi, ecx
lea esi, [ebp - 0x42c]
call fcn.100062c0
xor esi, esi
lea ecx, [ebp - 0x42c]
mov edi, ebx
mov dword [ebp - 4], esi
call fcn.10006020
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x418], 0x10
jb 0x100055c9
mov ecx, dword [ebp - 0x42c]
push ecx
call fcn.100157f1
add esp, 4
mov ecx, dword [ebp - 0x434]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0x418], 0xf
mov dword [ebp - 0x41c], esi
mov byte [ebp - 0x42c], 0
call eax
cmp eax, esi
jne 0x10005559
mov edi, dword [ebp - 0x430]
mov esi, dword [ebp - 0x434]
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x10005650
lea ecx, [edi + 0x8c]
lea ebx, [ebp + 8]
lea eax, [ebp - 0x430]
call fcn.100060f0
mov eax, dword [ebp - 0x430]
cmp eax, dword [edi + 0x90]
je 0x10005650
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 0x438]
mov dword [eax], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10015100
mov esp, ebp
pop ebp
ret 8
Function at 0x100071f0
Capabilities:
Link many functions at runtime

Disassembly:
push edi
push str.sqlite3.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
jne 0x10007217
push str.sqlite3.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x10007314
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.sqlite3_open
push edi
call ebx
push str.sqlite3_close
push edi
mov dword [esi], eax
call ebx
push str.sqlite3_key
push edi
mov dword [esi + 0xc], eax
call ebx
push str.sqlite3_exec
push edi
mov dword [esi + 8], eax
call ebx
push str.sqlite3_prepare
push edi
mov dword [esi + 0x10], eax
call ebx
push str.sqlite3_step
push edi
mov dword [esi + 0x14], eax
call ebx
push str.sqlite3_finalize
push edi
mov dword [esi + 0x2c], eax
call ebx
push str.sqlite3_column_count
push edi
mov dword [esi + 0x30], eax
call ebx
push str.sqlite3_column_int64
push edi
mov dword [esi + 0x18], eax
call ebx
push str.sqlite3_column_name16
push edi
mov dword [esi + 0x24], eax
call ebx
push str.sqlite3_column_text16
push edi
mov dword [esi + 0x1c], eax
call ebx
push str.sqlite3_column_type
push edi
mov dword [esi + 0x28], eax
call ebx
push str.sqlite3_free
push edi
mov dword [esi + 0x20], eax
call ebx
push str.sqlite3_open16
push edi
mov dword [esi + 0x34], eax
call ebx
cmp dword [esi], 0
mov dword [esi + 4], eax
mov dword [esi + 0x38], 0
pop ebx
je 0x10007314
cmp dword [esi + 0xc], 0
je 0x10007314
cmp dword [esi + 8], 0
je 0x10007314
cmp dword [esi + 0x10], 0
je 0x10007314
cmp dword [esi + 0x14], 0
je 0x10007314
cmp dword [esi + 0x2c], 0
je 0x10007314
cmp dword [esi + 0x30], 0
je 0x10007314
cmp dword [esi + 0x20], 0
je 0x10007314
cmp dword [esi + 0x18], 0
je 0x10007314
cmp dword [esi + 0x24], 0
je 0x10007314
cmp dword [esi + 0x1c], 0
je 0x10007314
cmp dword [esi + 0x28], 0
je 0x10007314
cmp dword [esi + 0x34], 0
je 0x10007314
test eax, eax
je 0x10007314
xor eax, eax
pop edi
ret
or eax, 0xffffffff
pop edi
ret

Function at 0x10007fd1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
test eax, eax
setne cl
mov edi, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10007ffd
mov dword [ecx], eax
jmp 0x1000800d
cmp eax, 0xffffffff
je 0x1000800d
test eax, eax
je 0x1000800d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100084e2
test al, 0x10
jne 0x100084e2
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1000854b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push esi
push edi
mov esi, ecx
je 0x100085b6
mov eax, dword [esi + 4]
test eax, eax
je 0x100085b6
push eax
call fcn.1001ac81
pop ecx
test eax, eax
jne 0x100085b6
cmp dword [ebp + 8], eax
je 0x100085b6
push dword [esi + 4]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.1001af1b
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1000859a
push dword [esi + 4]
call fcn.1001ac81
pop ecx
test eax, eax
jne 0x1000859a
or eax, 0xffffffff
jmp 0x100085b8
push dword [esi + 4]
call fcn.1001aca9
pop ecx
test eax, eax
je 0x100085b2
push dword [esi + 4]
call fcn.1001ac76
pop ecx
jmp 0x10008595
mov eax, edi
jmp 0x100085b8
xor eax, eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x10015100
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100ff120]
jne 0x1001510a
repz ret
jmp fcn.1001bde8
Function at 0x10028011
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100ff120]
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.1001fabe
and dword [ebp - 0x14], 0
cmp dword [0x101023d4], 0
mov dword [ebp - 0x18], eax
jne 0x100280c4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1002816c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1002816c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x101023d4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x101023d8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x101023dc], eax
call edi
push eax
call esi
mov dword [0x101023e4], eax
test eax, eax
je 0x100280c4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x101023e0], eax
mov eax, dword [0x101023e0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1002811d
cmp dword [0x101023e4], ecx
je 0x1002811d
push eax
call esi
push dword [0x101023e4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1002811d
test ebx, ebx
je 0x1002811d
call edi
test eax, eax
je 0x10028114
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10028114
test byte [ebp - 8], 1
jne 0x1002811d
or dword [ebp + 0x10], 0x200000
jmp 0x10028150
mov eax, dword [0x101023d8]
cmp eax, dword [ebp - 0x18]
je 0x10028150
push eax
call esi
test eax, eax
je 0x10028150
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10028150
mov eax, dword [0x101023dc]
cmp eax, dword [ebp - 0x18]
je 0x10028150
push eax
call esi
test eax, eax
je 0x10028150
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x101023d4]
call esi
test eax, eax
je 0x1002816c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1002816e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10015100
leave
ret
Function at 0x4045a4
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.004068f4
test esi, esi
jne 0x4045dc
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.00406a30
jmp 0x4045fa
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044e8
mov edi, eax
test esi, esi
je 0x4045fa
cmp dword [ebx], 0
je 0x4045fa
dec esi
jmp 0x4045e3
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405e3c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x537054], 0
je 0x405e9d
cmp word [0x537330], 0xd7b2
jne 0x405e65
cmp dword [0x537338], 0
jbe 0x405e65
mov eax, 0x53732c
call dword [0x537348]
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 0x405ec8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x533030], 0
jne 0x405eb9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406048
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 [0x533034], 0
je 0x40606e
mov edx, esi
mov eax, ebx
call dword [0x533034]
jmp 0x40607d
mov eax, 8
call fcn.00404230
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x537055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406010
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 0x408838
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 0x40899f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004068f4
cmp si, word [0x5337dc]
jb 0x4088d2
cmp si, word [0x5339dc]
ja 0x4088d2
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4088d2
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5337dc]
jae 0x4088ac
mov edi, ebx
dec edi
jmp 0x4088cd
cmp si, word [ebx*8 + 0x5337dc]
jbe 0x4088bc
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4088cd
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5337e0]
call fcn.00408748
jmp 0x4088d2
cmp edi, dword [ebp - 0xc]
jae 0x408896
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408981
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408981
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.00406af4
push dword [ebp - 0x164]
push 0x4089bc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406af4
push dword [ebp - 0x168]
push 0x4089cc
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406af4
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406eac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4089a6
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004068ec
ret
Function at 0x408b58
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 0x408c5d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x539b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x539b74]
jne 0x408ba4
mov eax, esi
mov edx, 0x539b78
mov ecx, 0x55
call fcn.00406af4
push 0x539b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408c47
push 0x539b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.004068f4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408c15
cmp byte [0x539b58], 0
je 0x408bda
mov edx, esi
mov eax, ebx
call fcn.00408a38
jmp 0x408c15
mov edx, esi
mov eax, ebx
call fcn.00408838
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408c15
cmp dword [esi], 0
je 0x408bfe
mov eax, esi
mov edx, 0x408c78
call fcn.00406d08
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408838
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406d08
push 0x539b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x539b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406980
push eax
push 0x539b78
call sub.kernel32.dll_lstrcpynW
push 0x539b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c64
lea eax, [ebp - 4]
call fcn.004068e4
ret
Function at 0x408e9c
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.004068dc
xor eax, eax
push ebp
push 0x409081
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408edc
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408ef6
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406980
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40906b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409090
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408f85
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409090
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408f85
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4090c4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408f85
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4090f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40906b
xor eax, eax
push ebp
push 0x409064
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408ca0
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 0x408ff4
mov eax, dword [ebp - 0x10]
call fcn.00404230
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.00406aa0
jmp 0x40903f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409138
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40903f
mov eax, dword [ebp - 0x10]
call fcn.00404230
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409138
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406aa0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40906b
cmp dword [ebp - 8], 0
je 0x40905a
mov eax, dword [ebp - 8]
call fcn.0040424c
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 0x409088
lea eax, [ebp - 4]
call fcn.004068e4
ret
Function at 0x40934c
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.004068dc
mov eax, dword [ebp - 0x21c]
call fcn.004068dc
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x4094eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.004068f4
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406980
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 0x4093ec
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4093fe
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4093e9
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x4094b7
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 0x409427
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.00408e9c
cmp dword [ebp - 0x220], 0
je 0x40945f
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409240
pop ecx
mov ebx, eax
jmp 0x4094b7
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408b58
mov eax, dword [ebp - 0x224]
call fcn.00409240
pop ecx
mov ebx, eax
test bl, bl
jne 0x4094aa
cmp byte [0x539b58], 0
jne 0x4094aa
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408b58
mov eax, dword [ebp - 0x228]
call fcn.00409240
pop ecx
mov ebx, eax
test bl, bl
jne 0x4094b7
push ebp
call fcn.004092f0
pop ecx
mov ebx, eax
test bl, bl
je 0x4094cd
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406af4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4094f2
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.004068ec
ret

Function at 0x409c80
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 0x40d690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x539c5c
push 0xa
push 0x40d724
mov eax, dword [0x539c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40d6b4
call fcn.0041a774
push ebx
mov eax, dword [0x539c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40d6cb
call fcn.0041a774
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d6dd
call fcn.0041a774
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x539c60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x539c64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x539c68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x539c6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x539c70], ecx
add edx, dword [eax + 0x14]
mov dword [0x539c74], edx
pop esi
pop ebx
ret

Function at 0x412580
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x412629
test eax, edx
je 0x41262c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x4125a9
push edx
mov edx, eax
mov eax, esp
call fcn.00406b10
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x4125bf
push eax
lea eax, [esp + 8]
call fcn.00406b10
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4125ce
movzx eax, word [eax]
sub eax, ecx
jmp 0x4125f5
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41260f
add ecx, 4
js 0x4125e6
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x41260c
push eax
mov eax, ecx
mov edx, 2
call fcn.004060e8
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4125f3
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4125f5
xor eax, eax
ret
test eax, eax
je 0x41263c
test edx, edx
jne 0x412590
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406980
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x413a1a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x413a3b
cmp ebx, 3
je 0x413a3b
cmp ebx, 0x7b
je 0x413a3b
mov eax, esi
call fcn.004139bc
test al, al
jne 0x413a3f
xor eax, eax
jmp 0x413a41
mov al, 1
pop esi
pop ebx
ret

Function at 0x417934
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41796d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406a30
jmp 0x417976
mov eax, ebx
mov edx, esi
call fcn.004068f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x417980
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4179a2
movzx eax, word [esp]
jmp 0x4179a4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x418134
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x418259
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00417f44
mov esi, eax
mov eax, dword [0x5366a0]
cmp byte [eax], 0
je 0x418201
mov eax, dword [0x536298]
call fcn.004046d8
call fcn.00404398
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41810c]
call fcn.00408234
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x418274
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x41823d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x53620c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x539c40]
call fcn.00408328
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418260
lea eax, [ebp - 4]
mov edx, dword [0x41810c]
call fcn.00408240
ret