joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000bc29
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
push ebx
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 0x26c]
push 0x208
push eax
call fcn.10002af1
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x26c]
push eax
push str.CustomActionData
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
call sub.msi.dll_MsiGetSummaryInformationW
push str.Stopped
mov edi, str.AI_SERVICE_STATE
push edi
push dword [ebp + 8]
call sub.msi.dll_MsiSummaryInfoGetPropertyCount
lea eax, [ebp - 0x26c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
push 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x48]
push 0x80000000
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], esi
push eax
lea esi, [ebp - 4]
mov dword [ebp - 0x14], 0x1000e2b0
mov dword [ebp - 0x10], 0x1000e2c8
mov byte [ebp - 0x18], 0
mov dword [0x10015260], eax
call fcn.10001116
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
test ebx, ebx
jne 0x1000bcd7
mov eax, dword [ebp - 4]
jmp 0x1000bcf9
lea eax, [ebp - 0x64]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1000bcf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [ebp - 4], eax
call esi
jmp 0x1000bcd2
push ebx
call esi
xor eax, eax
test eax, eax
jne 0x1000bd10
cmp dword [ebp - 0x60], 4
je 0x1000bd09
cmp dword [ebp - 0x60], 2
jne 0x1000bd25
push str.Started
jmp 0x1000bd1c
cmp eax, 0x424
jne 0x1000bd25
push str.Not_Found
push edi
push dword [ebp + 8]
call sub.msi.dll_MsiSummaryInfoGetPropertyCount
cmp dword [ebp - 0x48], 0
je 0x1000bd30
push dword [ebp - 0x48]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4

Function at 0x1000bd39
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
push 4
push str.ServicesActive
xor ebx, ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebx
je 0x1000be05
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 1
push 0x30
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call esi
push dword [ebp - 8]
call fcn.10002ad2
pop ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 8]
mov dword [ebp - 0x18], eax
push eax
push 1
push 0x30
push edi
call esi
mov edi, dword [ebp - 4]
imul edi, edi, 0x101
lea esi, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.100021c4
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 4], ebx
jbe 0x1000bde6
mov esi, dword [ebp - 0x18]
push dword [esi]
mov eax, edi
call fcn.10002c93
mov eax, edi
mov dword [esp], 0x1000edc8
call fcn.10002c93
inc ebx
add esi, 0x24
pop ecx
cmp ebx, dword [ebp - 4]
jb 0x1000bdc5
push edi
push str.AI_SERVICES_LIST
push dword [ebp + 8]
call sub.msi.dll_MsiSummaryInfoGetPropertyCount
push edi
call fcn.10002adf
push dword [ebp - 0x18]
call fcn.10002adf
pop ecx
pop ecx
pop esi
pop edi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x1000c17a
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x1000c1a8
xor al, al
jmp 0x1000c1fa
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 0xc], eax
push eax
jmp 0x1000c1d8
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push dword [esi + 4]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push dword [esi + 4]
push dword [ebp - 8]
call edi
cmp dword [ebp - 4], ebx
jne 0x1000c1bc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
pop edi
pop ebx
leave
ret
Function at 0x1000c1fd
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
push esi
push edi
push str.CustomActionData
push dword [ebp + 8]
xor ebx, ebx
lea eax, [esp + 0x48]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.10003a20
mov eax, dword [esp + 0x4c]
movzx edi, word [eax]
add eax, 2
push edi
lea esi, [esp + 0x1c]
mov dword [esp + 0x40], edi
mov dword [esp + 0x1c], eax
call fcn.1000c156
mov ecx, eax
mov dword [esp + 0x38], eax
call fcn.10002c82
push edi
mov dword [esp + 0x34], eax
call fcn.1000c156
or dword [esp + 0x30], 0xffffffff
mov esi, eax
push 0xa
lea eax, [esp + 0x34]
call fcn.10003186
push edi
lea esi, [esp + 0x28]
mov dword [esp + 0x38], eax
call fcn.1000c156
or dword [esp + 0x34], 0xffffffff
mov esi, eax
push 0xa
lea eax, [esp + 0x38]
call fcn.10003186
add esp, 0x1c
mov esi, 0x19000
push esi
push 0x40
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x48], esi
push edi
lea esi, [esp + 0x14]
mov dword [esp + 0x50], eax
call fcn.1000c156
jmp 0x1000c3b7
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
sar eax, 1
lea edi, [eax + ecx + 3]
lea esi, [esp + 0x38]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.100021c4
push dword [esp + 0x18]
mov eax, dword [esp + 0x40]
call fcn.10002c93
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
pop ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push dword [esp + 0x2c]
xor ecx, ecx
mov word [eax], cx
call fcn.10002c93
mov edi, dword [esp + 0x20]
push eax
call fcn.10002481
pop ecx
pop ecx
cmp edi, dword [esp + 0x20]
jne 0x1000c36e
push dword [esp + 0x3c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1000c38e
push ebx
push 0x80
push 3
push ebx
push eax
push 0x40000000
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000c34d
mov dword [esp + 0x14], ebx
jmp 0x1000c36e
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push dword [esp + 0x38]
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 2
push ebx
push ebx
push esi
call edi
mov dword [esp + 0x14], esi
push dword [esp + 0x14]
lea esi, [esp + 0x4c]
push dword [esp + 0x40]
call fcn.1000c17a
pop ecx
pop ecx
test al, al
je 0x1000c38e
inc dword [esp + 0x1c]
jmp 0x1000c2f4
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x3c]
call fcn.10002adf
push dword [esp + 0x38]
lea esi, [esp + 0x18]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
call fcn.1000c156
pop ecx
mov dword [esp + 0x1c], eax
pop ecx
cmp eax, ebx
jne 0x1000c2b3
push dword [esp + 0x4c]
call fcn.10002adf
push dword [esp + 0x48]
call fcn.10002adf
pop ecx
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000c8a4
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push str..cab
push dword [eax + 4]
lea eax, [ebp - 0x210]
push str.SELECT__Cabinet__FROM__Media__WHERE__Media_._Cabinet_
call fcn.1000c86e
push dword [ebp + 8]
xor esi, esi
lea ebx, [ebp - 4]
lea eax, [ebp - 0x210]
mov dword [ebp - 4], esi
call fcn.10003d2e
add esp, 0x10
test eax, eax
jge 0x1000c8f5
cmp dword [ebp - 4], esi
je 0x1000c8f1
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
xor al, al
jmp 0x1000c928
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
cmp dword [ebp - 8], esi
je 0x1000c919
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 4], esi
je 0x1000c926
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov al, bl
pop esi
pop ebx
leave
ret

Function at 0x1000c92c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
xor eax, eax
push edi
mov word [ebp - 0x214], ax
push str.SELECT__FROM__Condition__WHERE__Condition_._Feature__
lea eax, [ebp - 0x214]
call fcn.10002c93
push dword [ebp + 0xc]
call fcn.10002c93
push 0x10012fd4
call fcn.10002c93
add esp, 0xc
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 8], edi
call sub.msi.dll_MsiGetFeatureCostA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], edi
je 0x1000c983
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 8], edi
call sub.msi.dll_MsiEnumClientsA
push edi
push dword [ebp - 8]
call sub.msi.dll_MsiViewModify
mov dword [ebp - 4], edi
cmp dword [ebp - 4], edi
je 0x1000c9b2
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], edi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x1000c9d4
push dword [ebp - 4]
push 6
push dword [ebp - 8]
call sub.msi.dll_MsiRecordClearData
jmp 0x1000c9a5
push 3
call sub.msi.dll_MsiDatabaseExportA
mov esi, eax
cmp dword [ebp - 4], edi
je 0x1000c9ea
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push 1
push esi
call sub.msi.dll_MsiReinstallFeatureW
push edi
push 2
push dword [ebp - 4]
call sub.msi.dll_MsiRecordSetStringW
push 0x1000fabc
push 3
push dword [ebp - 4]
call sub.msi.dll_MsiReinstallFeatureW
push dword [ebp - 4]
push 7
push dword [ebp - 8]
call sub.msi.dll_MsiRecordClearData
push dword [ebp - 0xc]
call sub.msi.dll_MsiDatabaseGenerateTransformW
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
cmp dword [ebp - 4], edi
je 0x1000ca3c
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0xc], edi
je 0x1000ca49
push dword [ebp - 0xc]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 8], edi
je 0x1000ca56
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x402a10
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.004043e0
test esi, esi
jne 0x402a46
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.004044d0
jmp 0x402a64
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402924
mov edi, eax
test esi, esi
je 0x402a64
cmp dword [ebx], 0
je 0x402a64
dec esi
jmp 0x402a4d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4034ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x47b00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403584
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403564
xor eax, eax
push ebp
push 0x40355d
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 0x4035a0
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 0x403564
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x47b00c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x47b00c], ax
mov esp, ebp
pop ebp
ret

Function at 0x404264
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47d04c], 0
je 0x4042c5
cmp word [0x47d220], 0xd7b2
jne 0x40428d
cmp dword [0x47d228], 0
jbe 0x40428d
mov eax, 0x47d21c
call dword [0x47d238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47b054
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 0x4042ec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47b01c], 0
jne 0x4042e1
push 0
push 0x47b074
push 0x47b054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405d6c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405f9c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405def
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405f9c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405def
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405fb8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405e78
xor eax, eax
push ebp
push 0x405e71
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405bb4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405e56
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405fd8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405e56
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e78
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405f92
cmp byte [ebp - 0xd], 0
jne 0x405ebf
cmp byte [ebp - 0x12], 0
je 0x405f92
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405ed8
dec ebx
cmp byte [ebx], 0x2e
je 0x405ee7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405ed7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405f92
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405f24
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405f92
cmp byte [ebp - 0xd], 0
je 0x405f92
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405f92
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b488
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 pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b4c1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004044d0
jmp 0x40b4ca
mov eax, ebx
mov edx, esi
call fcn.00404434
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b4d4
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 0x40b4f5
mov al, byte [esp]
jmp 0x40b4f7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bb7c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b9f4
mov eax, dword [0x47ca58]
cmp byte [eax], 0
je 0x40bbe4
mov eax, dword [0x47c888]
call fcn.00402dcc
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408c10
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bc2c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bc1a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47c838]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47d718]
call fcn.00405b78
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40c978
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c9dc
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404648
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004087e8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c9e3
lea eax, [ebp - 0xc]
call fcn.004043e0
ret
Function at 0x41e854
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47da24
cmp dword [edi], 0
jne 0x41e8d0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x47da20]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47b590
mov ecx, 2
call fcn.004028e4
mov edx, 0x41e82c
lea eax, [esi + 5]
call fcn.0041e84c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041e84c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41e8a5
mov dword [0x47da20], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41fdec
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41fdf2
ret

Function at 0x422374
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4223c5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4223ac
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42239c
jmp 0x4223c5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4223ad
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4341a8
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404880
xor eax, eax
push ebp
push 0x4342d6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4342a9
xor eax, eax
push ebp
push 0x4342a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404698
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x434277
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x434266
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404698
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404890
mov edx, ebx
pop ecx
call fcn.004028e4
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43426d
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x47c7d4]
mov dl, 1
mov eax, dword [0x407790]
call fcn.0040bcec
call fcn.00403e40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4342dd
lea eax, [ebp - 4]
call fcn.004043e0
ret
Function at 0x4342e4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x434495
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.00404a80
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x4344ac
call fcn.004046e4
mov eax, ebx
call fcn.0041ddf4
mov edi, eax
dec edi
test edi, edi
jl 0x43439c
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0041ddc8
mov edx, dword [0x42cf00]
call fcn.00403800
test al, al
je 0x434398
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.0041ddc8
lea edx, [ebp - 0x14]
call fcn.0043b84c
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.00404a80
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404758
inc esi
dec edi
jne 0x43434a
mov al, byte [0x4344b0]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x4344bc
mov eax, dword [ebp - 0xc]
call fcn.0040cf50
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00404478
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.0043b84c
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x4344ac
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f0]
call fcn.0043b84c
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x4344ac
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x4344ac
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x4344c8
call fcn.00409370
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43449c
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00404404
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404404
lea eax, [ebp - 0x14]
call fcn.004043e0
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404404
ret