joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ca4c
Capabilities:
Query environment variable

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp + 4], 0x4316cc
mov dword [esp], eax
call sym._strtok
mov dword [esp + 4], 0x4316cc
mov dword [esp], 0
call sym._strtok
mov dword [esp + 4], 0x4316cc
mov dword [esp], 0
mov ebx, eax
call sym._strtok
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], eax
mov dword [esp], 0x445600
call sym._strncpy
mov dword [esp + 4], 0x435535
mov dword [esp], ebx
call sym._strcmp
test eax, eax
jne 0x42cabf
add esp, 0x18
pop ebx
jmp dbg.executePowerShellTask
mov dword [esp + 4], 0x435539
mov dword [esp], ebx
call sym._strcmp
test eax, eax
jne 0x42cadc
add esp, 0x18
pop ebx
jmp dbg.executeVisualBasicScriptTask
add esp, 0x18
pop ebx
jmp dbg.executeBatchTask

Function at 0x42cc84
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
mov edi, edx
push ebx
mov esi, eax
mov eax, 0x431a38
sub esp, 0x10
dec ecx
jne 0x42cc9b
mov eax, 0x4313ab
mov dword [esp + 4], eax
mov dword [esp], 0x446c60
call sym._fopen
test eax, eax
mov ebx, eax
je 0x42ccd1
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 1
mov dword [esp], esi
call sym._fwrite
mov dword [esp], ebx
call sym._fclose
add esp, 0x10
pop ebx
pop esi
pop edi
ret
Function at 0x42ccd8
Capabilities:
Delete file
Move file
Open clipboard
Write clipboard data

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, eax
mov ebx, edx
sub esp, 0x25c
lea ebp, [esp + 0x34]
call dbg.currentTempDirectoryPathname
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s_s
mov dword [esp + 4], 0x104
mov dword [esp], ebp
call sym.___mingw_snprintf
mov dword [esp], ebp
call sym._DeleteFileA_4
push eax
mov dword [esp + 4], ebp
mov dword [esp], 0x446c60
call sym._MoveFileA_8
test eax, eax
push edx
push edx
je 0x42ce91
test ebx, ebx
jne 0x42cd47
mov dword [esp], str.Invalid_window_handle_r_n
call dbg.logEvent
jmp 0x42ce9d
lea edx, [esp + 0x14c]
xor eax, eax
mov ecx, 0x41
mov dword [esp + 0x138], 0x14
mov dword [esp + 0x13c], 0
lea esi, [esp + 0x138]
mov edi, edx
mov dword [esp + 0x140], 0
mov dword [esp + 0x144], 1
rep stosd dword es:[edi], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], 0x104
mov dword [esp], edx
mov dword [esp + 0x148], 0
call sym._strncpy
mov dword [esp + 4], 0x118
mov dword [esp], 0x2000
call sym._GlobalAlloc_8
test eax, eax
push edi
mov ebp, eax
push edi
jne 0x42cdd8
mov dword [esp], str.Call_to_GlobalAlloc_failed_in_renameFileAndSimulateDragOntoDestinationWindow_r_n
call dbg.logEvent
jmp 0x42ce9d
mov dword [esp], eax
call sym._GlobalLock_4
test eax, eax
push ecx
jne 0x42cdf6
mov dword [esp], str.Call_to_GlobalLock_failed_in_renameFileAndSimulateDragOntoDestinationWindow_r_n
call dbg.logEvent
jmp 0x42ce9d
mov edi, eax
mov ecx, 0x46
mov dword [esp + 0x2c], eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp], 0
call sym._OpenClipboard_4
push esi
call sym._EmptyClipboard_0
mov edx, dword [esp + 0x2c]
mov dword [esp], 0xf
mov dword [esp + 4], edx
call sym._SetClipboardData_8
push edi
push edi
mov dword [esp], ebp
call sym._GlobalUnlock_4
push ebp
call sym._CloseClipboard_0
mov dword [esp], ebx
call sym._IsWindowVisible_4
test eax, eax
push edx
jne 0x42ce5a
call sym._GetDesktopWindow_0
mov dword [esp], eax
call sym._SetForegroundWindow_4
test eax, eax
push ecx
je 0x42ce9d
jmp 0x42ce67
mov dword [esp], ebx
call sym._SetForegroundWindow_4
test eax, eax
push edx
je 0x42ce46
mov eax, 0x11
call dbg.keyPress
mov eax, 0x56
call dbg.keyPress
mov eax, 0x11
call dbg.keyRelease
mov eax, 0x56
call dbg.keyRelease
jmp 0x42ce9d
mov dword [esp], str.Unable_to_rename_received_file_r_n
call dbg.logEvent
add esp, 0x25c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42cea8
Capabilities:
Delete file
Move file

Disassembly:
push esi
push ebx
sub esp, 0x224
lea ebx, [esp + 0x18]
mov dword [esp + 8], 0x104
mov dword [esp], 0
mov dword [esp + 4], ebx
call sym._GetModuleFileNameA_12
sub esp, 0xc
test eax, eax
jne 0x42cedf
mov eax, str.ERROR_UPGRADE_FAILED
call dbg.sendMessage
jmp 0x42cf31
lea esi, [esp + 0x11c]
mov eax, ebx
mov edx, esi
call sym._pathnameOfDifferentFileInSameFolder.constprop.7
mov dword [esp], esi
call sym._DeleteFileA_4
push ecx
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._MoveFileA_8
test eax, eax
push esi
push esi
je 0x42ced3
mov dword [esp + 4], ebx
mov dword [esp], 0x446c60
call sym._MoveFileA_8
test eax, eax
push edx
push edx
mov edx, str.ERROR_UPGRADE_FAILED
je 0x42cf2a
mov edx, str.UPGRADED
mov eax, edx
call dbg.sendMessage
add esp, 0x224
pop ebx
pop esi
ret

Function at 0x42d411
Capabilities:
Create directory
Delete file
Move file
Query environment variable

Disassembly:
push edi
push esi
mov ecx, 0x41
push ebx
mov esi, eax
xor eax, eax
sub esp, 0x220
lea edi, [esp + 0x18]
lea ebx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], esi
call sym._ExpandEnvironmentStringsA_12
sub esp, 0xc
test eax, eax
jne 0x42d45c
mov dword [esp + 8], 0x104
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._strncpy
mov dword [esp], ebx
call sym._DeleteFileA_4
push ecx
lea esi, [esp + 0x11c]
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], esi
call sym._strncpy
xor ecx, ecx
xor eax, eax
mov dl, byte [esi + eax]
test dl, dl
je 0x42d4a3
cmp dl, 0x5c
je 0x42d495
cmp dl, 0x2f
jne 0x42d49b
mov byte [esi + eax], 0x5c
mov ecx, eax
inc eax
cmp eax, 0x104
jne 0x42d484
mov byte [esp + ecx + 0x11c], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0
call sym._SHCreateDirectoryExA_12
sub esp, 0xc
test eax, eax
mov dword [esp + 4], esi
jne 0x42d4dc
mov dword [esp], str.Successfully_created_directory_structure__s_r_n
call dbg.logEvent
jmp 0x42d4e8
mov dword [esp], str.Unable_to_create_directory_structure__s_r_n
call dbg.logEvent
mov dword [esp + 4], ebx
mov dword [esp], 0x446c60
call sym._MoveFileA_8
test eax, eax
push edx
push edx
jne 0x42d518
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x446c60
mov dword [esp], str.Unable_to_move_received_file__s_to_requested_destination_of__s_r_n
call dbg.logEvent
jmp 0x42d561
mov dword [esp + 4], ebx
mov dword [esp], str.Success__File__s_received_r_n
call dbg.logEvent
mov dword [esp + 4], 0x180
mov dword [esp], ebx
call sym.__chmod
test eax, eax
mov dword [esp + 4], ebx
jne 0x42d555
mov dword [esp], str.File_permissions_for__s_successfully_set._r_n
call dbg.logEvent
mov eax, ebx
call dbg.TakeOwnership
jmp 0x42d561
mov dword [esp], str.File_permissions_could_NOT_be_set_for__s_r_n
call dbg.logEvent
add esp, 0x220
pop ebx
pop esi
pop edi
ret
Function at 0x42df70
Capabilities:
Acquire debug privileges

Disassembly:
push esi
push ebx
mov esi, eax
sub esp, 0x44
call sym._GetCurrentProcess_0
lea edx, [esp + 0x2c]
mov dword [esp + 4], 0x28
mov dword [esp], eax
mov dword [esp + 8], edx
call sym._OpenProcessToken_12
sub esp, 0xc
test eax, eax
jne 0x42dfb7
mov ebx, eax
call sym._GetLastError_0
mov dword [esp], str.Failed_on_call_to_OpenProcessToken_in_enableDebugNamePrivilegeForAccessToken___with_error__d_r_n
mov dword [esp + 4], eax
call dbg.logEvent
jmp 0x42e07a
lea eax, [esp + 0x34]
mov dword [esp + 4], str.SeDebugPrivilege
mov dword [esp], 0
mov dword [esp + 8], eax
call sym._LookupPrivilegeValueA_12
sub esp, 0xc
test eax, eax
mov ebx, eax
mov edx, dword [esp + 0x2c]
jne 0x42e000
mov dword [esp], edx
call sym._CloseHandle_4
push edx
call sym._GetLastError_0
mov dword [esp], str.Failed_on_call_to_LookupPrivilegeValue_in_enableDebugNamePrivilegeForAccessToken___with_error__d_r_n
mov dword [esp + 4], eax
call dbg.logEvent
jmp 0x42e07a
xor eax, eax
test esi, esi
mov dword [esp + 0x14], 0
setne al
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
add eax, eax
mov dword [esp + 4], 0
mov dword [esp], edx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 1
mov dword [esp + 8], eax
call sym._AdjustTokenPrivileges_24
sub esp, 0x18
test eax, eax
jne 0x42e061
call sym._GetLastError_0
mov dword [esp], str.Failed_on_call_to_AdjustTokenPrivileges_in_enableDebugNamePrivilegeForAccessToken___with_error__d_r_n
mov dword [esp + 4], eax
call dbg.logEvent
mov eax, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp], eax
call sym._CloseHandle_4
push eax
call sym._GetLastError_0
test eax, eax
sete bl
add esp, 0x44
mov eax, ebx
pop ebx
pop esi
ret

Function at 0x42e082
Capabilities:
Enumerate process modules

Disassembly:
push ebp
push edi
mov eax, 0x113c
push esi
push ebx
call fcn.00421710
xor ebp, ebp
sub esp, eax
mov eax, 1
call sym._enablePrivilegeForAccessToken.constprop.13
test eax, eax
je 0x42e142
lea eax, [esp + 0x28]
mov dword [esp + 4], 0x1000
mov dword [esp + 8], eax
lea eax, [esp + 0x130]
mov dword [esp], eax
call sym._EnumProcesses_12
sub esp, 0xc
test eax, eax
jne 0x42e0d0
xor ebp, ebp
jmp 0x42e13b
mov eax, dword [esp + 0x28]
lea esi, [esp + 0x2c]
xor ebx, ebx
shr eax, 2
mov dword [esp + 0x1c], eax
cmp ebx, dword [esp + 0x1c]
je 0x42e0cc
mov ebp, dword [esp + ebx*4 + 0x130]
test ebp, ebp
je 0x42e138
lea edi, [esp + 0x2c]
xor eax, eax
mov ecx, 0x41
mov edx, esi
rep stosd dword es:[edi], eax
mov eax, ebp
call dbg.nameOfProcess
test eax, eax
mov ebp, eax
je 0x42e138
mov eax, esi
call sym._stringEndsWith.constprop.12
test eax, eax
je 0x42e12f
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esp], str.explorer.exe_process_found___s__d_r_n
call dbg.logEvent
jmp 0x42e13b
mov dword [esp], ebp
call sym._CloseHandle_4
push eax
inc ebx
jmp 0x42e0e1
xor eax, eax
call sym._enablePrivilegeForAccessToken.constprop.13
add esp, 0x113c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42e60d
Capabilities:
Delete registry value

Disassembly:
push ebp
push edi
add eax, 8
push esi
push ebx
sub esp, 0x5c
mov dword [esp + 4], 0x437f92
mov dword [esp], eax
call sym._strtok
mov dword [esp + 4], 0x437f92
mov ebx, eax
mov dword [esp], 0
call sym._strtok
test ebx, ebx
je 0x42e64c
test eax, eax
mov ebp, eax
sete byte [esp + 0x3f]
jne 0x42e65b
mov eax, str.ERROR_INVALID_REGDELV_COMMAND
call dbg.sendMessage
jmp 0x42e74a
mov dword [esp], ebx
mov dword [esp + 4], 0x437fb2
call sym._strtok
mov esi, eax
mov edi, eax
mov al, byte [esp + 0x3f]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov dword [esp + 0xc], ebp
mov dword [esp + 4], esi
not ecx
mov dword [esp], str.Request_to_delete_registry_value__s____s____s_r_n
add ebx, ecx
mov dword [esp + 8], ebx
call dbg.logEvent
mov eax, esi
call dbg.predefinedRegistryKeyHandleFromName
test eax, eax
jne 0x42e6ae
mov eax, str.ERROR_INVALID_PREDEFINED_REGISTRY_KEY
call dbg.sendMessage
jmp 0x42e74a
lea edx, [esp + 0x4c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf013f
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._RegCreateKeyExA_36
sub esp, 0x24
test eax, eax
jne 0x42e73a
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], ebp
mov dword [esp], eax
call sym._RegDeleteValueA_8
test eax, eax
push edx
push edx
jne 0x42e71b
mov eax, 0x434e55
call dbg.sendMessage
jmp 0x42e72b
mov dword [esp + 4], eax
mov dword [esp], str.RegDeleteValueA_failed_in_deleteRegistryKeyValue___with_error_code__d_r_n
call dbg.logEvent
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call sym._RegCloseKey_4
push eax
jmp 0x42e74a
mov dword [esp + 4], eax
mov dword [esp], str.RegDeleteValueA_failed_in_deleteRegistryKeyValue___with_error__d_r_n
call dbg.logEvent
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x42e752
Capabilities:
Delete registry key

Disassembly:
push ebp
push edi
push esi
lea esi, [eax + 8]
sub esp, 0x10
mov dword [esp], esi
mov dword [esp + 4], 0x437fb2
call sym._strtok
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
mov edi, ebp
repne scasb al, byte es:[edi]
mov dword [esp + 4], ebp
mov dword [esp], str.Request_to_delete_registry_key__s____s_r_n
mov eax, ecx
not eax
add esi, eax
mov dword [esp + 8], esi
call dbg.logEvent
mov eax, ebp
call dbg.predefinedRegistryKeyHandleFromName
test eax, eax
jne 0x42e7a2
mov eax, str.ERROR_INVALID_PREDEFINED_REGISTRY_KEY
jmp 0x42e7e1
mov edx, dword [0x44f36c]
test edx, edx
jne 0x42e7bc
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._RegDeleteKeyA_8
push edx
push edx
jmp 0x42e7d8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x100
mov dword [esp + 4], esi
mov dword [esp], eax
call edx
sub esp, 0x10
test eax, eax
jne 0x42e7ec
mov eax, 0x434e55
add esp, 0x10
pop esi
pop edi
pop ebp
jmp dbg.sendMessage
call sym._GetLastError_0
mov dword [esp], str._RegDeleteKeyExA_failed_in_deleteRegistryKey___with_error_code__d_r_n
mov dword [esp + 4], eax
call dbg.logEvent
add esp, 0x10
pop esi
pop edi
pop ebp
ret
Function at 0x40374c
Capabilities:
Query or enumerate registry value

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

Function at 0x404214
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x415044], 0
je 0x404275
cmp word [0x415218], 0xd7b2
jne 0x40423d
cmp dword [0x415220], 0
jbe 0x40423d
mov eax, 0x415214
call dword [0x415230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41406c
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 0x40429c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41402c], 0
jne 0x404291
push 0
push 0x414064
push 0x41406c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405e10
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 0x405e76
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.00404608
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004031d8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405e60
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e7d
lea eax, [ebp - 0x10]
call fcn.00404398
ret

Function at 0x40a0b8
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 0x40a0f1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404488
jmp 0x40a0fa
mov eax, ebx
mov edx, esi
call fcn.004043ec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40a7bc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a624
mov eax, dword [0x414500]
cmp byte [eax], 0
je 0x40a838
mov eax, dword [0x414420]
call fcn.00402f40
call main
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407a0c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40a880
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a86e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4143fc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x415660]
call fcn.004052b8
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 0x40b580
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 0x40b5e4
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.00404608
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407548
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b5eb
lea eax, [ebp - 0xc]
call fcn.00404398
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
mov ecx, 0xbce7763
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x3bd31796
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40b620
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
push 0x85fad7
push 0x85fae7
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call fcn.004061b0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40b653
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x40bc30
Capabilities:
Create directory
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a689d
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x8a0204]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
cmp dword [ebp + 8], 0
je 0x40bdba
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x56c]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x56c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x208]
mov dword [ebp - 0x64], edx
push 1
mov ecx, dword [ebp - 0x60]
call dword [ebp - 0x64]
push 0
push 0x64
push 0x3e8
mov ecx, dword [ebp - 0x5c]
call fcn.00402b80
push eax
call dword [sym.imp.USER32.dll_SetTimer]
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x5c]
call fcn.0040b6a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00403450
sub eax, 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00403490
movsx ecx, byte [eax]
cmp ecx, 0x5c
je 0x40bce1
push 0x85ffdc
lea ecx, [ebp - 0x28]
call fcn.0040e6e0
push 0
lea ecx, [ebp - 0x28]
call fcn.00403470
push eax
call fcn.0077dd55
add esp, 8
test eax, eax
je 0x40bd09
lea ecx, [ebp - 0x28]
call fcn.00403470
push eax
call fcn.0077e155
add esp, 4
mov ecx, dword [ebp - 0x5c]
call fcn.00405af0
push eax
lea ecx, [ebp - 0x40]
call fcn.00403610
mov byte [ebp - 4], 1
push 0x860038
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x58]
push eax
call fcn.00411c80
add esp, 0xc
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x6c]
push edx
lea ecx, [ebp - 0x28]
call fcn.0040e700
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00403560
push 0
lea ecx, [ebp - 0x28]
call fcn.00403470
push eax
call fcn.0077dd55
add esp, 8
test eax, eax
je 0x40bd80
lea ecx, [ebp - 0x28]
call fcn.00403470
push eax
call fcn.0077e155
add esp, 4
call fcn.004063c0
mov dword [ebp - 0x74], eax
lea ecx, [ebp - 0x28]
call fcn.00403470
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x74]
call fcn.0043e4d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00403560
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403560
cmp dword [0x8aa1b4], 0
jne 0x40bddf
push 0
push 0
mov ecx, dword [ebp - 0x5c]
push ecx
push 0x40b7b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x8aa1b4], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0075c173
mov esp, ebp
pop ebp
ret 4