joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009f10
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
push edi
push 0x100
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esi + 0x104]
push 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [esp + 0x10]
mov ecx, esi
push edi
call fcn.1000a0d0
test eax, eax
jne 0x10009f59
mov ecx, dword [esp + 0xc]
cmp ecx, 1
je 0x10009f59
cmp ecx, 2
push edi
mov ecx, esi
call fcn.10009880
pop edi
pop esi
ret 8

Function at 0x10009f60
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1001dc40
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
push edi
push 0x100
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esi + 0x104]
push 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [esp + 0x1c]
mov ecx, esi
push edi
call fcn.1000a0d0
test eax, eax
jne 0x1000a0bb
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x10009fd2
push edi
mov ecx, esi
call fcn.1000ad10
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 8
cmp eax, 2
jne 0x1000a014
call fcn.1000c360
cmp eax, 1
jne 0x10009ffc
push edi
mov ecx, esi
call fcn.1000a370
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 8
mov eax, 0xbc9
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 8
call fcn.1000c360
cmp eax, 1
jne 0x1000a043
push edi
mov ecx, esi
call fcn.1000a370
push edi
mov ecx, esi
test eax, eax
call fcn.1000ad10
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 8
mov eax, dword [0x10027140]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], eax
push 0x89
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 1
call fcn.10018b1d
push 0x97
lea ecx, [esp + 0x20]
call fcn.10018b1d
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push 0x40030
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
mov ecx, esi
call fcn.1000ad10
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x10], 0
call fcn.10018754
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.10018754
mov eax, esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 8
Function at 0x1000b780
Capabilities:
Delete file
Delete registry value
Get common file path
Persist via run registry key
Set file attributes

Disassembly:
sub esp, 0x224
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 4]
push ebx
push esi
push edi
mov edi, 0x10026d14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [str.RCMHDOG.VXD]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call esi
test eax, eax
jne 0x1000b811
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1000b811
lea ecx, [esp + 0x10]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x10]
push edx
call esi
push ebp
lea eax, [esp + 0x130]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x130]
lea edx, [esp + 0x2c]
push ecx
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x2c]
push eax
call ebp
mov cl, byte [esp + eax + 0x2b]
mov bl, 0x5c
cmp cl, bl
je 0x1000b85a
mov byte [esp + eax + 0x2c], bl
mov byte [esp + eax + 0x2d], 0
mov ecx, dword [str.RCMHDOG.VXD]
lea edx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x2c]
push eax
call esi
test eax, eax
jne 0x1000b899
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1000b899
lea ecx, [esp + 0x2c]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x2c]
push edx
call esi
lea eax, [esp + 0x130]
lea ecx, [esp + 0x2c]
push eax
push ecx
call edi
lea edx, [esp + 0x2c]
push edx
call ebp
mov cl, byte [esp + eax + 0x2b]
pop ebp
cmp cl, bl
je 0x1000b8c1
mov byte [esp + eax + 0x28], bl
mov byte [esp + eax + 0x29], 0
mov eax, dword [0x10026884]
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x28]
push edx
call esi
test eax, eax
jne 0x1000b8ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1000b8ff
lea eax, [esp + 0x28]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x28]
push ecx
call esi
lea edx, [esp + 0xc]
push edx
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [str.MHDOGStart]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x224
ret 4
Function at 0x1000bce0
Capabilities:
Delete file
Delete service
Get common file path
Query service status
Stop service

Disassembly:
sub esp, 0x120
lea eax, [esp + 0x1c]
push ebp
push esi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x24]
push str.drivers_
push ecx
call esi
mov edx, dword [esp + 0x12c]
lea eax, [esp + 0x24]
push edx
push eax
call esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
jne 0x1000bd3e
pop esi
mov eax, 1
pop ebp
add esp, 0x120
ret 8
mov ecx, dword [esp + 0x130]
push 0xf01ff
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x1000bd69
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebp
add esp, 0x120
ret 8
push ebx
lea edx, [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_ControlService]
push edx
push 1
push esi
call edi
test eax, eax
jne 0x1000bd8d
lea eax, [esp + 0x10]
push eax
push 1
push esi
call edi
test eax, eax
je 0x1000bdbf
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
je 0x1000bdbf
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x14], 3
jne 0x1000bdbf
push 0x3e8
call ebx
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x1000bda5
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop ebx
test eax, eax
jne 0x1000bde8
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebp
add esp, 0x120
ret 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
pop esi
xor eax, eax
pop ebp
add esp, 0x120
ret 8
Function at 0x1000be10
Capabilities:
Get common file path
Query service status
Stop service

Disassembly:
sub esp, 0x120
lea eax, [esp + 0x1c]
push ebp
push esi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x24]
push str.drivers_
push ecx
call esi
mov edx, dword [esp + 0x12c]
lea eax, [esp + 0x24]
push edx
push eax
call esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
jne 0x1000be6e
pop esi
mov eax, 1
pop ebp
add esp, 0x120
ret 8
mov ecx, dword [esp + 0x130]
push 0xf01ff
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x1000be99
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebp
add esp, 0x120
ret 8
push ebx
lea edx, [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_ControlService]
push edx
push 1
push esi
call edi
test eax, eax
jne 0x1000bebd
lea eax, [esp + 0x10]
push eax
push 1
push esi
call edi
test eax, eax
je 0x1000beef
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
je 0x1000beef
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x14], 3
jne 0x1000beef
push 0x3e8
call ebx
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x1000bed5
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x120
ret 8
Function at 0x1000bf10
Capabilities:
Extract resource via kernel32 functions
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x108
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x118]
push 0x10026d4c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x1000bf5c
pop edi
pop esi
add esp, 0x108
ret 8
mov ecx, dword [esp + 0x114]
push ebx
push ebp
push str.RT_RCDATA
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 2
push 0
push 0
lea edx, [esp + 0x2c]
push 0xc0000000
push edx
mov dword [esp + 0x2c], eax
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000bfe3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1000bfe3
lea eax, [esp + 0x18]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x80
push 2
push 0
push 0
lea ecx, [esp + 0x2c]
push 0xc0000000
push ecx
call ebp
mov esi, eax
mov ebp, dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
call ebp
lea edx, [esp + 0x14]
push 0
push edx
push ebx
push edi
mov dword [esp + 0x24], eax
call ebp
push eax
mov eax, dword [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov eax, edi
pop ebx
pop edi
pop esi
add esp, 0x108
ret 8
Function at 0x1000c3f0
Capabilities:
Delete registry key

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.EnumUSB
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000c42c
mov ecx, dword [esp]
push str.VID_08E2PID_0002
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret

Function at 0x100118a9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10027850
cmp edx, dword [eax]
je 0x100118cb
add eax, 8
inc ecx
cmp eax, 0x100278e0
jl 0x100118bc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10027850]
jne 0x100119f9
mov eax, dword [0x1002a664]
cmp eax, 1
je 0x100119d3
test eax, eax
jne 0x100118fc
cmp dword [0x1002a668], 1
je 0x100119d3
cmp edx, 0xfc
je 0x100119f9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10011933
lea eax, [ebp - 0x1a4]
push 0x10021868
push eax
call fcn.100120f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.1000f5a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10011976
lea eax, [ebp - 0x1a4]
push eax
call fcn.1000f5a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10021864
push edi
call fcn.1000f4a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x10021848
push eax
call fcn.100120f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10012100
lea eax, [ebp - 0xa0]
push 0x10021844
push eax
call fcn.10012100
push dword [esi + 0x10027854]
lea eax, [ebp - 0xa0]
push eax
call fcn.10012100
push 0x12010
lea eax, [ebp - 0xa0]
push 0x1002181c
push eax
call fcn.10013203
add esp, 0x2c
pop edi
jmp 0x100119f9
lea eax, [ebp + 8]
lea esi, [esi + 0x10027854]
push 0
push eax
push dword [esi]
call fcn.1000f5a0
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 0x100160f4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1001612c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.10018afd
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.10018ad5
jmp 0x10016138
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x10017678
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x100176ba
call fcn.1001be20
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x100176ba
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x100176b1
xor eax, eax
jmp 0x100176c2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.100176c8
pop edi
pop esi
pop ebx
ret 4

Function at 0x1001907d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x1001df74
call fcn.1000d6f8
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.1001be20
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x100190bc
call fcn.1001be20
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x100190ca
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x100190d8
or eax, 0xffffffff
jmp 0x100191c0
mov ecx, esi
call fcn.10018ff3
mov dword [ebp - 0x14], eax
call fcn.10015c44
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x1001910f
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x1001910f
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.10015bf8
push dword [ebp - 0x14]
call fcn.10015746
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.10018d80
cmp eax, edi
je 0x10019182
test byte [esi + 0x24], 0x10
je 0x10019150
push 4
mov ecx, esi
pop ebx
call fcn.10017e05
test ah, 1
je 0x10019148
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.100177ca
cmp dword [esi + 0x1c], edi
je 0x10019182
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.10017e91
jmp 0x10019182
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x10019196
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x100191af
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x100191af
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.1001902d
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x885c30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2bb000]
push edi
jmp 0x885c4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x885c51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x885c40
mov eax, 1
add ebx, ebx
jne 0x885c63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x885c74
jne 0x885c93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x885c93
dec eax
add ebx, ebx
jne 0x885c80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x885c58
add ebx, ebx
jne 0x885c8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x885ce5
xor ecx, ecx
sub eax, 3
jb 0x885cab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x885d1a
sar eax, 1
mov ebp, eax
jmp 0x885cb6
add ebx, ebx
jne 0x885cb6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x885c84
inc ecx
add ebx, ebx
jne 0x885cc4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x885c84
add ebx, ebx
jne 0x885cd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x885cc6
jne 0x885ce2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x885cc6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x885d04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x885cf6
jmp 0x885c46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x885d04
add edi, ecx
jmp 0x885c46
pop esi
mov edi, esi
mov ecx, 0xb158
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x885d22
cmp byte [edi], 0x22
jne 0x885d22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x885d27
lea edi, [esi + 0x477000]
mov eax, dword [edi]
or eax, eax
je 0x885d9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x490264]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x490390]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x885d54
mov ecx, edi
jns 0x885d83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x490394]
or eax, eax
je 0x885d99
mov dword [ebx], eax
add ebx, 4
jmp 0x885d71
call dword [esi + 0x4903a4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x885dd0
cmp al, 0xef
ja 0x885dc3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x885da5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x885db2
mov ebp, dword [esi + 0x490398]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x267]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x885e04
sub esp, 0xffffff80
jmp 0x568571
Function at 0x401119
Capabilities:
Encode data using xor

Disassembly:
push 1
pop ecx
cmp dword [esp + 8], ecx
jl 0x401139
mov eax, dword [esp + 4]
mov edx, ecx
and edx, 3
mov dl, byte [esp + edx + 0xc]
xor byte [eax], dl
inc ecx
inc eax
cmp ecx, dword [esp + 8]
jle 0x401126
ret

Function at 0x404db5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408688
cmp edx, dword [eax]
je 0x404dd7
add eax, 8
inc ecx
cmp eax, 0x408718
jl 0x404dc8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408688]
jne 0x404f05
mov eax, dword [0x408a48]
cmp eax, 1
je 0x404edf
test eax, eax
jne 0x404e08
cmp dword [0x4085d4], 1
je 0x404edf
cmp edx, 0xfc
je 0x404f05
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404e3f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004032c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004033b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404e82
lea eax, [ebp - 0x1a4]
push eax
call fcn.004033b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4065d0
push edi
call fcn.004056f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004032c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004032d0
lea eax, [ebp - 0xa0]
push 0x4065b0
push eax
call fcn.004032d0
push dword [esi + 0x40868c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004032d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405667
add esp, 0x2c
pop edi
jmp 0x404f05
lea eax, [ebp + 8]
lea esi, [esi + 0x40868c]
push 0
push eax
push dword [esi]
call fcn.004033b0
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 0xd36058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00d361a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xd3607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd3606a
add dl, dl
jne 0xd36089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd360dc
xor eax, eax
add dl, dl
jne 0xd36096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd3617d
add dl, dl
jne 0xd360a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd360b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd360bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd360c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xd360d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xd36075
mov eax, 1
add dl, dl
jne 0xd360ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd360f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd360e1
sub eax, ebx
mov ebx, 1
jne 0xd36128
mov ecx, 1
add dl, dl
jne 0xd3610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd36119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd36105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd36075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd3613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd3614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd36136
cmp eax, 0x7d00
jae 0xd3616d
cmp eax, 0x500
jb 0xd36168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd36075
cmp eax, 0x7f
ja 0xd36170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd36075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xd3619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xd36075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10