joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5481b8
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404da0
xor eax, eax
push ebp
push 0x5482f7
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 0x10], 0
jne 0x5482dc
mov eax, dword [ebp - 4]
call fcn.0040a03c
test al, al
jne 0x5482dc
lea eax, [ebp - 0xc]
mov ecx, 0x548310
mov edx, dword [ebp - 4]
call fcn.00404bfc
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 8]
mov eax, ebx
call fcn.00545dd0
cmp dword [ebp - 8], 0
je 0x54825f
push 0x54831c
push dword [ebp - 8]
push 0x54832c
push 0x548338
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.00409a48
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 5
call fcn.00404c70
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x84]
call fcn.004204bc
mov eax, dword [ebp - 4]
call fcn.0040a060
mov eax, dword [ebp - 4]
call fcn.0040a03c
test al, al
jne 0x5482b6
mov al, byte [0x54834c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x548358
mov edx, 0x54837c
mov eax, ebx
call fcn.0054bb78
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, 0x548398
call fcn.0040f36c
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x40868c]
call fcn.0040dd30
call fcn.00404248
mov ebx, 0x10
cmp byte [ebp + 0xc], 0
je 0x5482c4
or ebx, 1
cmp byte [ebp + 8], 0
je 0x5482cd
or ebx, 2
push ebx
mov eax, dword [ebp - 4]
call fcn.00404db0
push eax
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5482fe
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.004048f8
ret

Function at 0x54a814
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x54a8a5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
push 0xf01ff
push 0x54a8b0
push eax
call sub.advapi32.dll_OpenServiceA
xor edx, edx
mov dword [ebp - 4], edx
test eax, eax
je 0x54a862
lea edx, [ebp - 4]
push edx
push 0
push eax
call sub.advapi32.dll_StartServiceA
jmp 0x54a88f
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, 0x54a8c4
mov edx, 0x54a8e4
call fcn.0054bb78
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x40868c]
call fcn.0040dd30
call fcn.00404248
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54a8ac
lea eax, [ebp - 8]
call fcn.004048d4
ret
Function at 0x54e620
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
xor eax, eax
push ebp
push 0x54e6e9
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [0x579280]
push 0x54e700
lea eax, [ebp - 0xc]
call fcn.0054637c
push dword [ebp - 0xc]
push 0x54e70c
lea eax, [ebp - 4]
mov edx, 4
call fcn.00404c70
push 0
mov eax, dword [ebp - 4]
call fcn.00404db0
mov ebx, eax
push ebx
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00403028
mov eax, dword [ebp - 0x10]
call fcn.00404db0
push eax
call sub.kernel32.dll_CopyFileA
mov edx, 0x54e71c
mov eax, dword [ebp - 4]
call fcn.0055114c
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x14]
call fcn.00409b34
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 0x54e728
call fcn.00404bfc
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00404db0
push eax
push ebx
push 0x54e72c
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54e6f0
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004048f8
ret

Function at 0x54e7a4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404da0
mov eax, dword [ebp + 0xc]
call fcn.00404da0
xor eax, eax
push ebp
push 0x54e8c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
cmp word [eax + 0x42], 0
je 0x54e81d
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov ecx, 0x54e8d8
mov edx, 0x54e8ec
call fcn.00550afc
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404bb8
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax - 4]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov ecx, dword [eax + 0x38]
mov eax, dword [ebx + 0x44]
call dword [ebx + 0x40]
cmp byte [ebp + 8], 0
je 0x54e827
xor ebx, ebx
jmp 0x54e82c
mov ebx, 1
sub esi, 1
jb 0x54e838
je 0x54e86d
dec esi
je 0x54e895
jmp 0x54e89d
push ebx
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a39c
mov eax, dword [ebp - 0xc]
call fcn.00404db0
push eax
mov eax, dword [ebp + 0xc]
call fcn.00404db0
push eax
mov eax, dword [ebp - 4]
call fcn.00404db0
push eax
push 0x54e8f8
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x54e89d
push 0
push dword [ebp - 4]
push 0x54e908
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404c70
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, ebx
call fcn.00547064
jmp 0x54e89d
mov eax, dword [ebp - 4]
call fcn.0040a2fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54e8c7
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004048f8
lea eax, [ebp + 0xc]
call fcn.004048d4
ret
Function at 0x54fc7c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
xor ebx, ebx
mov dword [ebp - 0x194], ebx
mov dword [ebp - 0x190], ebx
mov dword [ebp - 0x18c], ebx
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x15c], ebx
mov ebx, ecx
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x158]
mov edx, dword [0x40866c]
call fcn.004053d4
xor eax, eax
push ebp
push 0x54ff1a
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x54fd96
mov eax, dword [ebp - 0x160]
cmp word [eax + 0x42], 0
je 0x54fd30
lea eax, [ebp - 0x188]
push eax
mov ecx, 0x54ff30
mov edx, 0x54ff48
mov eax, dword [ebp - 0x160]
call fcn.00550afc
lea eax, [ebp - 0x188]
mov edx, dword [ebp - 0x164]
call fcn.00404bb8
mov edx, dword [ebp - 0x188]
mov eax, dword [ebp - 0x160]
mov ecx, dword [eax + 0x38]
mov ebx, dword [ebp - 0x160]
mov eax, dword [ebx + 0x44]
call dword [ebx + 0x40]
xor eax, eax
mov dword [ebp - 0x182], eax
xor eax, eax
mov dword [ebp - 0x182], eax
mov dword [ebp - 0x17e], 3
lea eax, [ebp - 0x18c]
mov ecx, 0x54ff60
mov edx, dword [ebp - 0x164]
call fcn.00404bfc
mov eax, dword [ebp - 0x18c]
call fcn.00404db0
mov dword [ebp - 0x17a], eax
mov eax, 0x54ff64
mov dword [ebp - 0x176], eax
mov word [ebp - 0x172], 0x414
lea eax, [ebp - 0x182]
push eax
call sub.shell32.dll_SHFileOperationA
jmp 0x54fed0
lea eax, [ebp - 0x15c]
mov edx, dword [ebp - 0x164]
call fcn.0040496c
mov eax, dword [ebp - 0x160]
cmp word [eax + 0x42], 0
je 0x54fdfc
lea eax, [ebp - 0x190]
push eax
mov ecx, 0x54ff30
mov edx, 0x54ff48
mov eax, dword [ebp - 0x160]
call fcn.00550afc
lea eax, [ebp - 0x190]
mov edx, dword [ebp - 0x15c]
call fcn.00404bb8
mov edx, dword [ebp - 0x190]
mov eax, dword [ebp - 0x160]
mov ecx, dword [eax + 0x38]
mov ebx, dword [ebp - 0x160]
mov eax, dword [ebx + 0x44]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x15c]
call fcn.00404bb0
mov edx, dword [ebp - 0x15c]
cmp byte [edx + eax - 1], 0x5c
jne 0x54fe31
mov eax, dword [ebp - 0x15c]
call fcn.00404bb0
mov edx, eax
lea eax, [ebp - 0x15c]
mov ecx, 1
call fcn.00404e50
lea eax, [ebp - 0x194]
mov ecx, 0x54ff70
mov edx, dword [ebp - 0x15c]
call fcn.00404bfc
mov eax, dword [ebp - 0x194]
lea ecx, [ebp - 0x158]
mov edx, 0x3f
call fcn.0040a26c
test eax, eax
jne 0x54feae
xor eax, eax
push ebp
push 0x54fea7
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
call fcn.0054fb74
pop ecx
jmp 0x54fe7f
push ebp
call fcn.0054fb74
pop ecx
lea eax, [ebp - 0x158]
call fcn.0040a2bc
test eax, eax
je 0x54fe78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54feae
lea eax, [ebp - 0x158]
call fcn.0040a2e0
ret
mov eax, dword [ebp - 0x164]
call fcn.0054fa3c
test al, al
je 0x54fed0
mov cl, 1
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp - 0x160]
call fcn.0054fc7c
mov eax, dword [ebp - 0x164]
call fcn.0040a03c
mov ebx, eax
xor bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54ff21
lea eax, [ebp - 0x194]
mov edx, 4
call fcn.004048f8
lea eax, [ebp - 0x15c]
call fcn.004048d4
lea eax, [ebp - 0x158]
mov edx, dword [0x40866c]
call fcn.004054a4
ret
Function at 0x550b40
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x550c17
push dword fs:[eax]
mov dword fs:[eax], esp
cmp word [esi + 0x42], 0
je 0x550b94
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x550c30
mov edx, 0x550c48
mov eax, esi
call fcn.00550afc
lea eax, [ebp - 0x24]
mov edx, ebx
call fcn.00404bb8
mov edx, dword [ebp - 0x24]
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x44]
call dword [esi + 0x40]
xor edx, edx
mov eax, ebx
call fcn.0040a1d8
xor eax, eax
mov dword [ebp - 0x1f], eax
xor eax, eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], 3
lea eax, [ebp - 0x28]
mov ecx, 0x550c60
mov edx, ebx
call fcn.00404bfc
mov eax, dword [ebp - 0x28]
call fcn.00404db0
mov dword [ebp - 0x17], eax
mov eax, 0x550c64
mov dword [ebp - 0x13], eax
mov word [ebp - 0xf], 0x14
lea eax, [ebp - 0x1f]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete byte [ebp - 1]
mov eax, ebx
call fcn.0040a02c
test al, al
je 0x550bfc
mov edx, 0x550c70
mov eax, ebx
call fcn.0055114c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x550c1e
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004048f8
ret

Function at 0x550cb8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, edx
push esp
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404b44
add esp, 0x10c
pop ebx
ret

Function at 0x550cf4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, eax
push 0x100
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x100
call fcn.00404b44
mov eax, dword [ebx]
call fcn.00404bb0
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
jne 0x550d3f
mov eax, dword [ebx]
call fcn.00404bb0
mov edx, eax
mov eax, ebx
mov ecx, 1
call fcn.00404e50
add esp, 0x100
pop ebx
ret

Function at 0x550d48
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
test eax, eax
je 0x550d99
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00404b44
mov eax, dword [ebx]
call fcn.00404bb0
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
jne 0x550daf
mov eax, dword [ebx]
call fcn.00404bb0
mov edx, eax
mov eax, ebx
mov ecx, 1
call fcn.00404e50
jmp 0x550daf
mov ecx, 0x550dc0
mov dl, 1
mov eax, dword [0x40868c]
call fcn.0040dd30
call fcn.00404248
add esp, 0x108
pop ebx
ret
Function at 0x550e64
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, eax
push esp
push 0x100
call sub.kernel32.dll_GetTempPathA
mov eax, ebx
mov edx, esp
mov ecx, 0x100
call fcn.00404b44
mov eax, dword [ebx]
call fcn.00404bb0
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
jne 0x550eab
mov eax, dword [ebx]
call fcn.00404bb0
mov edx, eax
mov eax, ebx
mov ecx, 1
call fcn.00404e50
add esp, 0x100
pop ebx
ret

Function at 0x550f68
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffe8
call fcn.00550eb4
cmp al, 3
je 0x550f89
push esp
push 0xf00ff
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x550fdc
call fcn.00550eb4
cmp al, 3
je 0x550fd3
lea eax, [esp + 0xc]
push eax
push 0x550fe0
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0
push 2
call sub.user32.dll_ExitWindowsEx
add esp, 0x18
ret
Function at 0x55114c
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404da0
mov eax, dword [ebp - 8]
call fcn.00404da0
xor eax, eax
push ebp
push 0x5512d3
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion_1
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea edx, [ebp - 0xc]
mov eax, 8
call fcn.00409b84
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x30
jne 0x5511e4
mov eax, dword [ebp - 8]
mov edx, 0x5512e8
call fcn.00404cfc
jne 0x5511c6
push 4
push 0
mov eax, dword [ebp - 4]
call fcn.00404db0
push eax
call sub.kernel32.dll_MoveFileExA
jmp 0x5512ab
push 5
mov eax, dword [ebp - 8]
call fcn.00404db0
push eax
mov eax, dword [ebp - 4]
call fcn.00404db0
push eax
call sub.kernel32.dll_MoveFileExA
jmp 0x5512ab
mov dl, 1
mov eax, dword [0x41cc1c]
call fcn.00403974
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x5512a4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
mov ecx, 0x5512f4
mov edx, dword [0x5792d0]
call fcn.00404bfc
mov eax, dword [ebp - 0x14]
call fcn.0040a02c
test al, al
jne 0x55122f
mov edx, 0x55130c
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
jmp 0x55124d
lea eax, [ebp - 0x18]
mov ecx, 0x5512f4
mov edx, dword [0x5792d0]
call fcn.00404bfc
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x68]
push dword [ebp - 8]
push 0x551324
push dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404c70
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.004204bc
lea eax, [ebp - 0x20]
mov ecx, 0x5512f4
mov edx, dword [0x5792d0]
call fcn.00404bfc
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x74]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5512ab
mov eax, dword [ebp - 0x10]
call fcn.004039a4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5512da
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.004048f8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004048f8
ret
Function at 0x1001609
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1001a90
call fcn.010017b4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1002370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10013c4
cmp eax, esi
jne 0x10013b7
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10013c7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100139e
xor esi, esi
inc esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x10013da
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001409
mov eax, dword [0x100236c]
test eax, eax
jne 0x1001403
mov dword [0x100236c], esi
push 0x10010b8
push 0x10010ac
call fcn.01001300
pop ecx
pop ecx
test eax, eax
je 0x1001409
jmp 0x100152d
mov dword [0x1002034], esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x100142d
push 0x10010a8
push 0x10010a0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100236c], 2
cmp dword [ebp - 0x20], ebx
jne 0x100143a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1002374], ebx
je 0x100145b
push 0x1002374
call fcn.01001729
pop ecx
test eax, eax
je 0x100145b
push ebx
push 2
push ebx
call dword [0x1002374]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100152d
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x10014c5
cmp cx, bx
je 0x1001480
cmp dword [ebp - 0x1c], ebx
jne 0x10014c5
movzx ecx, word [eax]
cmp cx, bx
je 0x1001495
cmp cx, 0x20
ja 0x1001495
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1001480
test byte [ebp - 0x40], 1
je 0x10014a1
movzx ecx, word [ebp - 0x3c]
jmp 0x10014a4
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1002030], eax
cmp dword [0x1002024], ebx
jne 0x100150a
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x10014d6
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x100146a
cmp dword [0x1002034], ebx
jne 0x1001518
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1002030]
jmp 0x1001539
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010017f9
ret
call fcn.01001901
jmp 0x1001361

Function at 0x6ae51e
Capabilities:
Encode data using base64

Disassembly:
inc ecx
xor al, ch
sar edi, 0x6a
dec eax
inc edi
dec al
not al
bt di, di
inc eax
setae bh
adc di, di
xor al, 0x36
inc eax
neg bh
inc eax
sub al, bh
dec eax
mov dword [esp], edi
rol al, 1
sal edi, 0xfb
jbe 0x5d1d17
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
lea eax, [esp + 0x18]
mov dword [esp + 0x3c], 0
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], 0x400
push eax
xorps xmm0, xmm0
mov dword [esp + 0x20], 0x1ad0
movups xmmword [esp + 0x34], xmm0
push 0x1fffff
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x38], 0x18
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
call dword [sym.imp.ntdll.dll_NtOpenProcess]
push 0x40
push 0x3000
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0
push eax
push 0
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0x144
push 0x402028
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x20]
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push dword [esp + 0x20]
push 0
push 0x20000000
push eax
call dword [sym.imp.ntdll.dll_NtCreateThreadEx]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0xfa0a1f00
push eax
push 1
mov dword [esp + 0x2c], 0xffffffff
call dword [sym.imp.ntdll.dll_NtDelayExecution]
mov esp, ebp
pop ebp
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4f9008], 0x8088405
inc edx
mov dword [ebx + 0x4f9008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d254
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d285
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d26d
add dl, dl
jne 0x41d290
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2e1
xor eax, eax
add dl, dl
jne 0x41d29d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d37e
add dl, dl
jne 0x41d2ac
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2b7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2c2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2cd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d2d7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d27c
mov eax, 1
add dl, dl
jne 0x41d2ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2e6
sub eax, ebx
mov ebx, 1
jne 0x41d32d
mov ecx, 1
add dl, dl
jne 0x41d313
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d31e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d30a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d33b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d39f
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 0x41d27c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f3b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x4dc89e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f3ff
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
jmp 0x41f41e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f490
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f479
test esi, esi
jbe 0x41f490
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f46b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f490
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f448
jmp 0x41f490
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f490
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dc8a5
ret