joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001c7cb
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xff4
mov eax, dword [0x10037018]
xor eax, esp
mov dword [esp + 0xff0], eax
cmp byte [0x10039f73], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
jne 0x1001c96e
mov byte [0x10039f73], 1
test esi, esi
jne 0x1001c80e
mov esi, str._null_
test edi, edi
jne 0x1001c817
mov edi, str._null_
push 0x207
lea ecx, [esp + 0x34]
xor eax, eax
push ecx
push eax
mov word [esp + 0x3c], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [ebp + 0x10]
push ebx
push edx
push edi
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.10018157
add esp, 0x14
cmp byte [0x10037028], 0
je 0x1001c967
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.10018360
add esp, 4
test al, al
jne 0x1001c967
xor edx, edx
mov word [esp + 0x238], dx
test ebx, ebx
je 0x1001c893
push ebx
push 0xc8
push str.Status:___.s._n
lea eax, [esp + 0x244]
push 0xe9
push eax
call dword [sym.imp.MSVCR100.dll_swprintf_s]
add esp, 0x14
mov ebx, dword [ebp + 0x10]
push ebx
push edi
push 0x104
lea ecx, [esp + 0x3c]
push ecx
push 0x104
lea edx, [esp + 0x24c]
push edx
push esi
push 0x190
push str.Failed:___.s._n_sModule:___.s._nFile:___.s_.__Line:__d.
lea eax, [esp + 0x434]
push 0x5f1
push eax
call dword [sym.imp.MSVCR100.dll_swprintf_s]
lea ecx, [esp + 0x43c]
add esp, 0x2c
push ecx
call sym.Ac1st19.dll_void___cdecl_PerfLog_WriteAssertEvent_wchar_t_const__
add esp, 4
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
test esi, esi
je 0x1001c8f5
push esi
call dword [sym.imp.USER32.dll_GetLastActivePopup]
mov esi, eax
lea edx, [esp + 0x10]
push edx
call fcn.100183a6
push 0x2012
push str.ASSERT_Error.__Shift_Ignore_to_suppress
lea eax, [esp + 0x418]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x10
mov esi, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
lea ecx, [esp + 0x10]
test ax, ax
push ecx
sets byte [esp + 0x13]
call fcn.10018388
cmp esi, 5
jne 0x1001c94b
cmp byte [esp + 0xf], 0
je 0x1001c967
push ebx
call fcn.10019fd5
add esp, 4
jmp 0x1001c967
cmp esi, 4
jne 0x1001c958
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x1001c967
push ebx
push edi
push str.User_aborted_during_ASSERT_file__s__line__d
call sym.Ac1st19.dll_acrx_abort
add esp, 0xc
mov byte [0x10039f73], 0
mov ecx, dword [esp + 0xffc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001032e
mov esp, ebp
pop ebp
ret
Function at 0x1001eedb
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100112ca
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x10037018]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x20]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0xffffffff
call fcn.1000bae0
test al, al
je 0x1001ef7b
lea ecx, [esp + 0xc]
push ecx
call fcn.10017a86
lea edx, [esp + 0xc]
mov esi, eax
push edx
push esi
lea eax, [esp + 0x1c]
push eax
call fcn.10019c8c
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
mov dword [esp + 0x28], 0
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
push ecx
push edi
mov ecx, esi
call edx
mov esi, eax
lea eax, [esp + 0x14]
push eax
call fcn.10019c7d
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 8
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [edi]
mov edx, dword [edx + 0x2c]
push eax
push ecx
mov ecx, edi
call edx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 8
Function at 0x1001f360
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1001132a
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x10037018]
xor eax, esp
mov dword [esp + 0x30], eax
push ebp
push esi
push edi
mov eax, dword [0x10037018]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, dword [esp + 0x54]
cmp dword [esi + 0x44], 0
je 0x1001f4cc
cmp byte [esi + 0x4a], 0
je 0x1001f4cc
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
push 0xffff
mov ecx, esi
call edx
lea ecx, [esp + 0x10]
movzx eax, ax
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0xffff
call fcn.10018577
add esp, 8
test al, al
jne 0x1001f4be
lea eax, [esp + 0x24]
push eax
call fcn.1001cb46
mov dword [esp + 0x4c], 0
lea ebp, [esi + 0x4c]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.1001a224
mov edi, dword [eax]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.1001a224
mov ecx, dword [esp + 0x34]
mov eax, dword [eax]
lea edx, [esp + 0x18]
push edx
add ecx, edi
push ecx
mov ecx, dword [esi + 0x44]
push eax
push ebp
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_wchar_t__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x1001f44c
dec eax
je 0x1001f450
sub eax, 2
je 0x1001f4ad
lea eax, [esp + 0x24]
push eax
call fcn.1001a4ed
xor al, al
jmp 0x1001f4ce
mov byte [esi + 0x4a], 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.1001a224
mov edi, dword [esp + 0x18]
sub edi, dword [eax]
je 0x1001f48d
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.1001a224
mov ecx, dword [esi + 0x54]
mov eax, dword [eax]
push ecx
push edi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1001f4b4
cmp byte [esi + 0x4a], 0
je 0x1001f4c2
test edi, edi
jne 0x1001f3f5
push edi
push 8
lea edx, [esp + 0x2c]
push edx
call fcn.1001caf9
jmp 0x1001f3f5
lea ecx, [esp + 0x24]
push ecx
jmp 0x1001f4c7
lea edx, [esp + 0x24]
push edx
call fcn.1001a4ed
xor al, al
jmp 0x1001f4ce
lea eax, [esp + 0x24]
push eax
call fcn.1001a4ed
mov al, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1001032e
add esp, 0x40
ret 4
Function at 0x100191a
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x10100
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001957
push esi
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtDeleteKey]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 8

Function at 0x1001b8b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.01003f20
mov eax, dword [0x1005004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x400
push esi
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
push dword [0x100522c]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1001c9c
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x1004]
push eax
push esi
lea eax, [ebp - 0x804]
push eax
call fcn.010019f4
test eax, eax
jl 0x1001c9c
push ebx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
xor esi, esi
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1001bff
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1008], eax
cmp ebx, esi
je 0x1001c9b
push ebx
call fcn.01001879
test eax, eax
je 0x1001c43
push esi
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 0x1008]
lea eax, [ebp - 0x804]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x1001c9b
mov eax, dword [ebp - 0x1008]
push edi
add eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, esi
je 0x1001c9a
mov eax, dword [ebp - 0x1008]
push esi
push esi
lea ecx, [eax + eax]
push ecx
push edi
push eax
lea eax, [ebp - 0x804]
push eax
push esi
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1008], eax
cmp eax, esi
je 0x1001c93
push esi
lea ecx, [ebp - 0x1008]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01003f01
leave
ret
Function at 0x1001e6e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x1005004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x42c], ebx
cmp eax, ebx
je 0x1001fc8
cmp edi, ebx
je 0x1001fc8
lea ecx, [ebp - 0x424]
push ecx
push eax
call fcn.01001dd2
test eax, eax
je 0x1001fb4
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.ntdll.dll_RtlStringFromGUID]
test eax, eax
jl 0x1001fb4
push esi
push dword [ebp - 0x438]
mov esi, 0x104
push 0x1001218
push 0x1001208
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.01001a30
add esp, 0x14
test eax, eax
jl 0x1001fb3
lea eax, [ebp - 0x428]
push eax
push 0x101
push ebx
lea eax, [ebp - 0x414]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001fa6
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x434]
push eax
push ebx
push 0x10011ec
push dword [ebp - 0x428]
mov dword [ebp - 0x430], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001fa6
cmp dword [ebp - 0x434], 1
jne 0x1001fa6
mov eax, dword [ebp - 0x430]
shr eax, 1
cmp eax, esi
jae 0x1001fa6
cmp word [ebp - 0x20c], bx
je 0x1001fb3
xor ecx, ecx
mov word [ebp + eax*2 - 0x20c], cx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
push edi
call fcn.01001960
test eax, eax
jl 0x1001fb3
mov dword [ebp - 0x42c], 1
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
pop esi
cmp dword [ebp - 0x428], ebx
je 0x1001fc8
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x42c]
pop edi
xor ecx, ebp
pop ebx
call fcn.01003f01
leave
ret 0xc
Function at 0x10020eb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1005004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 0x10]
push eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01001960
test eax, eax
jl 0x10021ca
push 0x10012c0
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.0100199a
test eax, eax
jl 0x10021ca
push 0x1005020
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01001960
test eax, eax
jl 0x10021ca
cmp dword [ebp + 0xc], 0
je 0x1002173
push 0x10012ac
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100199a
test eax, eax
jl 0x10021ca
lea eax, [ebp - 0x414]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100199a
test eax, eax
jl 0x10021ca
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10021ca
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0x14]
push edi
call fcn.01001960
test eax, eax
jl 0x10021ca
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x1c]
push ebx
call fcn.01001960
test eax, eax
jl 0x10021ca
xor eax, eax
inc eax
jmp 0x10021cc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01003f01
leave
ret 0x18

Function at 0x10025bc
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x1005004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
xor ebx, ebx
push eax
mov dword [ebp - 0x624], ebx
mov dword [ebp - 0x620], ebx
call fcn.01001960
test eax, eax
jl 0x1002643
push 0x10012c0
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100199a
test eax, eax
jl 0x1002643
mov eax, 0x1001378
cmp dword [ebp + 0x18], ebx
jne 0x1002624
mov eax, 0x1001208
push edi
push 0x10012f0
push eax
lea eax, [ebp - 0x61c]
push 0x208
push eax
call fcn.01001a30
add esp, 0x14
test eax, eax
jge 0x100264f
push 0x409
call fcn.01001b8b
jmp 0x10026b6
push ebx
lea eax, [ebp - 0x620]
push eax
push ebx
push 0x102
push ebx
push ebx
push ebx
lea eax, [ebp - 0x61c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1002684
lea eax, [ebp - 0x61c]
push eax
push 0x3f1
jmp 0x10026b0
push 8
lea eax, [ebp + 0x10]
push eax
push 0xb
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10026b9
lea eax, [ebp - 0x61c]
push eax
push 0x3f4
call fcn.01001b8b
pop ecx
pop ecx
jmp 0x10026c3
mov dword [ebp - 0x624], 1
cmp dword [ebp - 0x620], ebx
pop edi
pop esi
pop ebx
je 0x10026da
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x624]
xor ecx, ebp
call fcn.01003f01
leave
ret 0x14
Function at 0x1002b24
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x640
mov eax, dword [0x1005004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push ebx
mov dword [ebp - 0x640], eax
mov eax, dword [ebp + 0x14]
mov esi, 0x1001438
push esi
push 0x10011d8
mov dword [ebp - 0x63c], eax
lea eax, [ebp - 0x20c]
push 0x104
xor edi, edi
push eax
mov dword [ebp - 0x634], 1
mov dword [ebp - 0x638], edi
call fcn.01001a30
add esp, 0x14
test eax, eax
jl 0x1002cab
push edi
push 0x100
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
cmp eax, edi
je 0x1002bc0
cmp eax, 2
je 0x1002bc0
push esi
push ebx
push 0x3f7
call fcn.01001b8b
add esp, 0xc
jmp 0x1002cab
cmp dword [ebp + 8], edi
jne 0x1002cb1
push dword [ebp - 0x640]
lea eax, [ebp - 0x630]
push 0x10013e8
push 0x212
push eax
call fcn.01001a30
add esp, 0x10
test eax, eax
jl 0x1002c98
push edi
lea eax, [ebp - 0x638]
push eax
push edi
push 0x102
push edi
push edi
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1002c25
lea eax, [ebp - 0x20c]
push eax
push 0x3f1
jmp 0x1002ca4
mov eax, dword [ebp - 0x63c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1002c2e
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x63c]
push 1
push edi
push 0x10013d0
push dword [ebp - 0x638]
call esi
test eax, eax
jne 0x1002c98
lea eax, [ebp - 0x630]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1002c6a
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x630]
push eax
push 2
push edi
push 0x10013b0
push dword [ebp - 0x638]
call esi
test eax, eax
je 0x1002cb1
lea eax, [ebp - 0x20c]
push eax
push 0x3f4
call fcn.01001b8b
pop ecx
pop ecx
mov dword [ebp - 0x634], edi
cmp dword [ebp - 0x638], edi
pop edi
pop esi
pop ebx
je 0x1002cc8
push dword [ebp - 0x638]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x634]
xor ecx, ebp
call fcn.01003f01
leave
ret 0x10
Function at 0x44f769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x453190
cmp edx, dword [eax]
je 0x44f78b
add eax, 8
inc ecx
cmp eax, 0x453220
jl 0x44f77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x453190]
jne 0x44f8b9
mov eax, dword [0x453bb0]
cmp eax, 1
je 0x44f893
test eax, eax
jne 0x44f7bc
cmp dword [0x4530e4], 1
je 0x44f893
cmp edx, 0xfc
je 0x44f8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44f7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00450670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00450490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x44f836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00450490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x45245c
push edi
call fcn.00450f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00450670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00450680
lea eax, [ebp - 0xa0]
push 0x45243c
push eax
call fcn.00450680
push dword [esi + 0x453194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00450680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00450e75
add esp, 0x2c
pop edi
jmp 0x44f8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x453194]
push 0
push eax
push dword [esi]
call fcn.00450490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x30c24666
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x128e0763
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x402acc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404124
test esi, esi
jne 0x402b02
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404214
jmp 0x402b20
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029e0
mov edi, eax
test esi, esi
je 0x402b20
cmp dword [ebx], 0
je 0x402b20
dec esi
jmp 0x402b09
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4031c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x48d020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403258
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403238
xor eax, eax
push ebp
push 0x403231
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403274
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403238
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x48d020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x48d020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403f24
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49004c], 0
je 0x403f85
cmp word [0x490220], 0xd7b2
jne 0x403f4d
cmp dword [0x490228], 0
jbe 0x403f4d
mov eax, 0x49021c
call dword [0x490238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48d06c
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 0x403fac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48d030], 0
jne 0x403fa1
push 0
push 0x48d064
push 0x48d06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4040d8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027a4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x49004d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4040a0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4060d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406136
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404394
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d78
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406120
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40613d
lea eax, [ebp - 0x10]
call fcn.00404124
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004045e4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408bc9
test al, 0x10
jne 0x408bcd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b8e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b919
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404214
jmp 0x40b922
mov eax, ebx
mov edx, esi
call fcn.00404178
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b92c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b94d
mov al, byte [esp]
jmp 0x40b94f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c940
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ca16
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004041bc
lea eax, [ebp - 8]
call fcn.00404634
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004045e4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ca00
mov eax, ebx
call fcn.004027a4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c9f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004045e4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c9e3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ca28
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c9e3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca00
mov eax, dword [ebp - 0x10]
call fcn.004027c4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca1d
lea eax, [ebp - 8]
call fcn.00404124
ret