joyce8/EMBER2024-capa huggingface dataset:
Function at 0x665c7070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
mov eax, 4
push esi
push ebx
sub esp, 0x1c
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
movzx ebx, byte [esi + 0x49]
test bl, bl
jne 0x665c70a0
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp bl, 2
jbe 0x665c70b1
cmp bl, 4
jne 0x665c70d0
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x665c7094
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], 0
add esp, 0x1c
pop ebx
mov ecx, ebp
mov edx, edi
mov eax, esi
pop esi
pop edi
pop ebp
jmp sym._accessPayload
mov eax, esi
mov dword [esp + 0xc], edx
call sym._btreeRestoreCursorPosition.part.470
mov edx, dword [esp + 0xc]
jmp 0x665c70ad

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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
movsx esi, word [eax + 0x4c]
mov edi, dword [eax + 0x20]
mov ebx, dword [esp + 0x44]
mov esi, dword [eax + esi*4 + 0x78]
mov ebp, dword [esi + 0x3c]
mov esi, dword [esp + 0x40]
test esi, esi
je 0x665c71a0
movzx esi, word [eax + 0x28]
sub ebp, edi
cmp ebp, esi
cmova ebp, esi
lea esi, [edx + ecx]
cmp esi, ebp
jbe 0x665c71b8
mov esi, ecx
mov edi, edx
mov ecx, 1
lea edx, [esi + 2]
cmp edx, dword [ebx + 0x18]
mov ebp, eax
mov word [ebx + 8], cx
jg 0x665c7220
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x10], eax
mov edx, dword [esp + 0x40]
test edx, edx
jne 0x665c71d5
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], ebp
call sym._sqlite3BtreeData
mov edx, eax
test edx, edx
je 0x665c71f5
test word [ebx + 8], 0x2460
jne 0x665c7185
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x665c71cb
mov eax, ebx
mov dword [esp + 0x1c], edx
call sym._vdbeMemClear
mov edx, dword [esp + 0x1c]
add esp, 0x2c
pop ebx
pop esi
mov eax, edx
pop edi
pop ebp
ret
mov esi, ebp
movzx ebp, word [eax + 0x28]
sub esi, edi
cmp esi, ebp
cmovbe ebp, esi
lea esi, [edx + ecx]
cmp esi, ebp
ja 0x665c712b
add edi, edx
mov esi, 0x1010
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], edi
mov word [ebx + 8], si
xor edx, edx
add esp, 0x2c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
mov edx, edi
mov dword [esp + 4], 0
mov ecx, esi
mov eax, ebp
call sym._accessPayload
mov edx, eax
test edx, edx
jne 0x665c7176
mov eax, dword [ebx + 0x10]
mov ecx, 0x210
mov byte [eax + esi], 0
mov eax, dword [ebx + 0x10]
mov byte [eax + esi + 1], 0
mov word [ebx + 8], cx
mov eax, edx
mov dword [ebx + 0xc], esi
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
call sym._sqlite3VdbeMemClearAndResize.part.357
test eax, eax
mov edx, eax
jne 0x665c71cb
mov eax, dword [ebx + 0x10]
jmp 0x665c714c
Function at 0x665c7240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xc
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
movzx edx, byte [ebx + 0x49]
cmp dl, 2
jbe 0x665c7274
cmp dl, 4
je 0x665c7290
mov eax, ebx
call sym._btreeRestoreCursorPosition.part.470
test eax, eax
jne 0x665c727e
movzx edx, byte [ebx + 0x49]
cmp dl, 1
mov eax, 4
je 0x665c7295
add esp, 0xc
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x44]
jmp 0x665c726c
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 0x3c]
mov ecx, ebx
mov eax, dword [eax + 8]
call sym._saveAllCursors.isra.469
test byte [ebx + 0x48], 1
mov eax, 8
je 0x665c727e
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], 1
add esp, 0xc
mov ecx, edi
mov edx, esi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp sym._accessPayload
Function at 0x66614d50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, 6
mov dword [esp + 4], 0
jmp sym._openDatabase

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

Disassembly:
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov dword [esp + 4], edx
mov edx, dword [esp + 8]
jmp sym._openDatabase

Function at 0x66615370
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], 0x6662678c
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp sym._mark_section_writable

Function at 0x666153d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x6663c918]
test esi, esi
jle 0x666154bd
mov edi, dword [0x6663c91c]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x66615404
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x666154b6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x666153f0
mov dword [esp], eax
mov ebx, eax
call sym.___mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x666154fa
lea ebx, [esi + esi*2]
mov esi, dword [0x6663c91c]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call sym.__GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x6663c91c]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x666154da
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x666154af
sub eax, 0x40
and eax, 0xffffffbf
je 0x666154af
mov eax, dword [esp + 0x20]
add ebx, dword [0x6663c91c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x666154c4
add dword [0x6663c918], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x6661540e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
mov eax, dword [0x6663c91c]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]
Function at 0x66615a80
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x66615ab8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x66615aae
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x66615aba
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x66615aa0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x404654
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.004069ec
test esi, esi
jne 0x40468c
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.00406b28
jmp 0x4046aa
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404538
mov edi, eax
test esi, esi
je 0x4046aa
cmp dword [ebx], 0
je 0x4046aa
dec esi
jmp 0x404693
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405f18
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x542054], 0
je 0x405f79
cmp word [0x542330], 0xd7b2
jne 0x405f41
cmp dword [0x542338], 0
jbe 0x405f41
mov eax, 0x54232c
call dword [0x542348]
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 0x405fa4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x539030], 0
jne 0x405f95
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406124
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 [0x539034], 0
je 0x40614a
mov edx, esi
mov eax, ebx
call dword [0x539034]
jmp 0x406159
mov eax, 8
call fcn.00404280
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x542055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4060ec
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 0x408924
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 0x408a8b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004069ec
cmp si, word [0x5397dc]
jb 0x4089be
cmp si, word [0x5399dc]
ja 0x4089be
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4089be
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5397dc]
jae 0x408998
mov edi, ebx
dec edi
jmp 0x4089b9
cmp si, word [ebx*8 + 0x5397dc]
jbe 0x4089a8
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4089b9
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5397e0]
call fcn.00408834
jmp 0x4089be
cmp edi, dword [ebp - 0xc]
jae 0x408982
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408a6d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408a6d
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.00406bec
push dword [ebp - 0x164]
push 0x408aa8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406bec
push dword [ebp - 0x168]
push 0x408ab8
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406bec
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406fa4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a92
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004069e4
ret
Function at 0x408c44
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 0x408d49
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x544b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x544b74]
jne 0x408c90
mov eax, esi
mov edx, 0x544b78
mov ecx, 0x55
call fcn.00406bec
push 0x544b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408d33
push 0x544b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.004069ec
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408d01
cmp byte [0x544b58], 0
je 0x408cc6
mov edx, esi
mov eax, ebx
call fcn.00408b24
jmp 0x408d01
mov edx, esi
mov eax, ebx
call fcn.00408924
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408d01
cmp dword [esi], 0
je 0x408cea
mov eax, esi
mov edx, 0x408d64
call fcn.00406e00
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408924
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406e00
push 0x544b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x544b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406a78
push eax
push 0x544b78
call sub.kernel32.dll_lstrcpynW
push 0x544b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d50
lea eax, [ebp - 4]
call fcn.004069dc
ret
Function at 0x408f88
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.004069d4
xor eax, eax
push ebp
push 0x40916d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408fc8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408fe2
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406a78
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409157
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40917c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409071
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40917c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409071
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4091b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409071
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4091e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409157
xor eax, eax
push ebp
push 0x409150
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408d8c
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 0x4090e0
mov eax, dword [ebp - 0x10]
call fcn.00404280
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.00406b98
jmp 0x40912b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409224
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40912b
mov eax, dword [ebp - 0x10]
call fcn.00404280
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409224
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406b98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409157
cmp dword [ebp - 8], 0
je 0x409146
mov eax, dword [ebp - 8]
call fcn.0040429c
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 0x409174
lea eax, [ebp - 4]
call fcn.004069dc
ret
Function at 0x409438
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.004069d4
mov eax, dword [ebp - 0x21c]
call fcn.004069d4
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x4095d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.004069ec
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406a78
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 0x4094d8
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4094ea
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4094d5
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x4095a3
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 0x409513
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.00408f88
cmp dword [ebp - 0x220], 0
je 0x40954b
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0040932c
pop ecx
mov ebx, eax
jmp 0x4095a3
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408c44
mov eax, dword [ebp - 0x224]
call fcn.0040932c
pop ecx
mov ebx, eax
test bl, bl
jne 0x409596
cmp byte [0x544b58], 0
jne 0x409596
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408c44
mov eax, dword [ebp - 0x228]
call fcn.0040932c
pop ecx
mov ebx, eax
test bl, bl
jne 0x4095a3
push ebp
call fcn.004093dc
pop ecx
mov ebx, eax
test bl, bl
je 0x4095b9
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406bec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4095de
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.004069e4
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x544c5c
push 0xa
push 0x40d9c8
mov eax, dword [0x544c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40d958
call fcn.00419304
push ebx
mov eax, dword [0x544c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40d96f
call fcn.00419304
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d981
call fcn.00419304
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x544c60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x544c64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x544c68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x544c6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x544c70], ecx
add edx, dword [eax + 0x14]
mov dword [0x544c74], edx
pop esi
pop ebx
ret

Function at 0x411488
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x411531
test eax, edx
je 0x411534
push 0
push 0
cmp word [eax - 0xa], 2
je 0x4114b1
push edx
mov edx, eax
mov eax, esp
call fcn.00406c08
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x4114c7
push eax
lea eax, [esp + 8]
call fcn.00406c08
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4114d6
movzx eax, word [eax]
sub eax, ecx
jmp 0x4114fd
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 0x411517
add ecx, 4
js 0x4114ee
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x411514
push eax
mov eax, ecx
mov edx, 2
call fcn.004061c4
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4114fb
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4114fd
xor eax, eax
ret
test eax, eax
je 0x411544
test edx, edx
jne 0x411498
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406a78
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41279a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x4127bb
cmp ebx, 3
je 0x4127bb
cmp ebx, 0x7b
je 0x4127bb
mov eax, esi
call fcn.0041273c
test al, al
jne 0x4127bf
xor eax, eax
jmp 0x4127c1
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406a78
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4127dd
test al, 0x10
jne 0x4127e1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x416798
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 0x4167d1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406b28
jmp 0x4167da
mov eax, ebx
mov edx, esi
call fcn.004069ec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4167e4
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 0x416806
movzx eax, word [esp]
jmp 0x416808
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x416f98
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 0x4170bd
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00416da8
mov esi, eax
mov eax, dword [0x541634]
cmp byte [eax], 0
je 0x417065
mov eax, dword [0x541248]
call fcn.004047bc
call fcn.004043e8
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 [0x416f70]
call fcn.00408320
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 0x4170d8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4170a1
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5411c8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x544c40]
call fcn.00408414
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 0x4170c4
lea eax, [ebp - 4]
mov edx, dword [0x416f70]
call fcn.0040832c
ret