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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push str._tSET_NOCOUNT_ON_n_tDECLARE__cmd_nvarchar_255__n_tDECLARE__proc_nvarchar_255__n_tDECLARE__name_sysname_n_tDECLARE__retcode_int_n_n____SELECT__cmd___n____SELECT__cmd___cmd__DECLARE_hCreplupd_CURSOR_FOR__n____SELECT__cmd___cmd__SELECT_name_FROM_master..sysdatabases__n____SELECT__cmd___cmd__WHERE__category__1_____0_n____EXECUTE___cmd__n_tIF___ERROR____0__n_tBEGIN_n_t_tGOTO_DONE_n_tEND_n____OPEN_hCreplupd_n____FETCH_hCreplupd_INTO__name_n____WHILE____fetch_status_____1__n____BEGIN_n_t_tSELECT__proc___name__.dbo.sp_changesubstatus_n_n________EXEC__retcode___proc__status__active_n_t_t__n_t_t_Note_retcode_is_not_set_by_this_ex_sp___n_t_t__n_t_tIF___ERROR____0_OR__retcode____0_n_t_tBEGIN_n_t_t_tCLOSE_hCreplupd_n_t_t_tDEALLOCATE_hCreplupd_n_t_t_tGOTO_DONE_n_t_tEND_n_n________FETCH_hCreplupd_INTO__name_n____END_n____CLOSE_hCreplupd_n____DEALLOCATE_hCreplupd_n_t_n_t___Fix_6x_jobs._n_texec_sp_MSfix_6x_tasks_n_nDONE:_n
mov edi, ecx
call fcn.00401010
add esp, 4
push 0
mov esi, eax
mov eax, dword [edi + 0xa20]
mov ecx, dword [eax]
push 0
push esi
push eax
call dword [ecx + 0x16c]
mov ebx, eax
test ebx, ebx
setl byte [ebp - 1]
test esi, esi
je 0x403cd3
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, byte [ebp - 1]
test al, al
je 0x403cec
push ebx
mov ecx, edi
call fcn.00403310
mov dword [edi + 0xa0c], 0xc
mov eax, dword [edi + 0xa0c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404a41
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x40a9c8
call fcn.00404e1c
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x404a7c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404a7c
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x404a94
cmp eax, 0x20b
je 0x404a81
mov dword [ebp - 0x1c], edi
jmp 0x404aa8
cmp dword [ecx + 0x84], 0xe
jbe 0x404a7c
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x404aa2
cmp dword [ecx + 0x74], 0xe
jbe 0x404a7c
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x4103e4], 0xffffffff
or dword [0x4103e8], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x4103dc]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x4103d8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4103e0], eax
call fcn.00404d5f
call fcn.00404e14
cmp dword [0x40c030], edi
jne 0x404b08
push fcn.00404e14
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00404dfd
push 0x40c014
push 0x40c010
call sub.MSVCR71.dll__initterm
push 0x404da8
call fcn.00404d24
mov eax, dword [0x4103d4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x4103d0]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x34], eax
cmp eax, edi
jge 0x404b5c
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x40c00c
push section..data
call sub.MSVCR71.dll__initterm
call dword [sym.imp.MSVCR71.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.00403100
add esp, 0x14
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x404b98
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x404bcd
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00404e57
ret
Function at 0x10026440
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x100264b1
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x100264b1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.DLL_FlushInstructionCache]
test eax, eax
jne 0x1002649a
jmp 0x100264b1
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4071e0
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.0040a4c8
test esi, esi
jne 0x407216
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.0040a650
jmp 0x407234
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407124
mov edi, eax
test esi, esi
je 0x407234
cmp dword [ebx], 0
je 0x407234
dec esi
jmp 0x40721d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x409118
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.004095d8
mov byte [esp], al
cmp byte [esp], 0
jne 0x4092a1
test edi, edi
je 0x4092a1
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4091e1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4091bc
cmp edi, 0xffffffff
je 0x40917d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40917d
mov byte [esp], 0
jmp 0x4092a1
cmp dword [esi], 1
jg 0x4091bc
cmp dword [esi], 0
jne 0x4091ae
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4091ae
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4092a1
lea eax, [esp + 0xc]
call fcn.00408dd4
dec ebp
test ebp, ebp
jg 0x409162
cmp edi, 0xffffffff
je 0x4091e1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4091df
mov byte [esp], 0
jmp 0x4092a1
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x409126
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4091e1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040931c
mov edx, eax
mov ebx, dword [0x4fb8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409245
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x409243
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409245
xor edi, edi
cmp byte [esp], 0
je 0x40926b
mov ebx, dword [esi]
test bl, 1
jne 0x409281
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40924b
mov byte [esp + 1], 1
jmp 0x409281
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40926b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4091f8
cmp byte [esp], 0
je 0x4092a1
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 0x40a160
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4fb058], 0
je 0x40a1c7
cmp word [0x4fb344], 0xd7b2
jne 0x40a189
cmp dword [0x4fb34c], 0
jbe 0x40a189
mov eax, 0x4fb340
call dword [0x4fb35c]
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, 0x40a1f4
call fcn.0040acf4
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4f7032], 0
jne 0x40a1e3
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a388
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 [0x4f7034], 0
je 0x40a3b3
mov edx, edi
mov eax, esi
call dword [0x4f7034]
mov ebx, eax
jmp 0x40a3c4
mov eax, 8
call fcn.00406e60
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4fb059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a350
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 0x40a3f4
mov eax, ebx
call fcn.00406e7c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40cef0
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 0x40d055
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a4c8
cmp si, word [0x4f7a10]
jb 0x40cf88
cmp si, word [0x4f7c10]
ja 0x40cf88
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40cf88
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4f7a10]
jae 0x40cf62
mov edi, ebx
dec edi
jmp 0x40cf83
cmp si, word [ebx*8 + 0x4f7a10]
jbe 0x40cf72
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40cf83
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4f7a14]
call fcn.0040ce10
jmp 0x40cf88
cmp edi, dword [ebp - 8]
jae 0x40cf4c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d037
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d037
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.0040b040
push dword [ebp - 0x160]
push 0x40d070
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b040
push dword [ebp - 0x164]
push 0x40d080
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b040
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b278
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d05c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a528
ret
Function at 0x40d208
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 0x40d30c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4fdc10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4fdc28]
jne 0x40d254
mov eax, esi
mov edx, 0x4fdc2a
mov ecx, 0x55
call fcn.0040b040
push 0x4fdc10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40d2f6
push 0x4fdc10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a4c8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d2c3
cmp byte [0x4fdc0c], 0
je 0x40d288
mov edx, esi
mov eax, ebx
call fcn.0040d0ec
jmp 0x40d2c3
mov edx, esi
mov eax, ebx
call fcn.0040cef0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40d2c3
cmp dword [esi], 0
je 0x40d2ac
mov eax, esi
mov edx, 0x40d324
call fcn.0040b198
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040cef0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b198
push 0x4fdc10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4fdc28], bx
mov eax, dword [esi]
call fcn.0040afa0
mov ecx, eax
mov eax, 0x4fdc2a
mov edx, 0xaa
call fcn.0040cd70
push 0x4fdc10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d313
lea eax, [ebp - 4]
call fcn.0040a4c8
ret
Function at 0x40d53c
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.0040a5ac
xor eax, eax
push ebp
push 0x40d761
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40d57c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40d596
mov eax, dword [ebp - 4]
call fcn.0040afa0
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040cd70
cmp word [ebp - 0x21a], 0
je 0x40d74b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d770
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d665
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d770
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d665
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d7ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d665
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d7ac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d665
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d7e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d665
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d814
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40d74b
xor eax, eax
push ebp
push 0x40d744
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d34c
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 0x40d6d4
mov eax, dword [ebp - 0x10]
call fcn.00406e60
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.0040b004
jmp 0x40d71f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40d854
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40d71f
mov eax, dword [ebp - 0x10]
call fcn.00406e60
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40d854
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040b004
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d74b
cmp dword [ebp - 8], 0
je 0x40d73a
mov eax, dword [ebp - 8]
call fcn.00406e7c
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 0x40d768
lea eax, [ebp - 4]
call fcn.0040a4c8
ret
Function at 0x40da68
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.0040a5ac
xor eax, eax
push ebp
push 0x40db28
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.0040b040
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b1f0
mov eax, dword [ebx]
call fcn.0040d918
test al, al
jne 0x40db05
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040b040
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b1f0
mov eax, dword [ebx]
call fcn.0040d918
test al, al
jne 0x40db05
mov eax, ebx
call fcn.0040a4c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40db2f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a528
lea eax, [ebp - 4]
call fcn.0040a4c8
ret

Function at 0x40f75c
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 0x41feb8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41ff11
test eax, edx
je 0x41ff14
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41fecf
movzx eax, word [eax]
sub eax, ecx
jmp 0x41fef6
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 0x41fef7
add ecx, 4
js 0x41fee7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41fef4
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41fef6
xor eax, eax
ret
test eax, eax
je 0x41ff20
test edx, edx
jne 0x41fec0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4212c8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x4212f5
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040afa0
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x421432
test ah, 4
je 0x42142b
test bl, bl
jne 0x4213f0
mov al, 1
jmp 0x421459
test al, 0x10
je 0x4213f8
xor eax, eax
jmp 0x421459
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42141c
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x421459
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x421459
test al, 0x10
sete al
jmp 0x421459
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x421453
cmp ebx, 3
je 0x421453
cmp ebx, 0x7b
je 0x421453
mov eax, esi
call fcn.00421388
test al, al
jne 0x421457
xor eax, eax
jmp 0x421459
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x421460
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040afa0
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x421507
test esi, 0x400
jne 0x42149c
test esi, 0x10
setne bl
jmp 0x421537
cmp byte [esp], 0
je 0x4214d0
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x421537
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x421537
test esi, 0x10
je 0x4214dc
mov bl, 1
jmp 0x421537
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x421503
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x421537
mov bl, 1
jmp 0x421537
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x421531
cmp eax, 3
je 0x421531
cmp eax, 0xa1
je 0x421531
cmp eax, 0x7b
je 0x421531
cmp eax, 0x35
je 0x421531
cmp eax, 0x15
je 0x421531
cmp eax, 0x43
jne 0x421535
xor ebx, ebx
jmp 0x421537
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4254c4
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
test eax, eax
jle 0x4254fd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a650
jmp 0x425506
mov eax, ebx
mov edx, esi
call fcn.0040a8a8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x425510
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
test eax, eax
jle 0x425532
movzx eax, word [esp]
jmp 0x425534
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42686c
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 0x426991
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00426674
mov esi, eax
mov eax, dword [0x4fabd4]
cmp byte [eax], 0
je 0x426939
mov eax, dword [0x4faa1c]
call fcn.00407b38
call fcn.00406fd4
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
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x42683c]
call fcn.0040c624
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
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4269ac
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x426975
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4fa9dc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4fe634]
call fcn.0040ca14
push eax
call sub.user32.dll_LoadStringW
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 0x426998
lea eax, [ebp - 4]
mov edx, dword [0x42683c]
call fcn.0040c748
ret