joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a50
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x40c058]
test eax, eax
je 0x401a8f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401a8f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401a8f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401a8f
cmp dword [ecx + 0x74], 0xe
jbe 0x401a8f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40b860
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40b88d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b88d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40a390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40a39f
pop dword [ebp - 0x40]
mov eax, 0xd87f0dba
add eax, 0x27c195e5
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x13846903
sub dword [ebp - 0x50], 0xc53223b8
mov dword [ebp - 0x4c], 0xea4c31d3
sub dword [ebp - 0x4c], 0xb818e58e
mov dword [ebp - 0x48], 0x646c8e5a
add dword [ebp - 0x48], 0xe7dfb5d4
mov dword [ebp - 0x44], 0x65ed4c00
add dword [ebp - 0x44], 0x9a12b400
lea eax, [ebp - 0x50]
push eax
mov eax, 0x288e0491
add eax, 0xd7b32bff
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x67a29f1d
sub dword [ebp - 0x50], 0xf33035c7
mov dword [ebp - 0x4c], 0x11c9a636
sub dword [ebp - 0x4c], 0xd05d44c1
mov dword [ebp - 0x48], 0x7bc8c902
add dword [ebp - 0x48], 0xe7a6a36a
mov dword [ebp - 0x44], 0x86675151
add dword [ebp - 0x44], 0x7998aeaf
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x6de57f33
sub eax, 0x6da44ef7
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x35d04
push 0
call eax
mov ecx, 0x164c4bc2
sub ecx, 0x164c16aa
xor esi, esi
add esi, eax
mov edi, 0xb1881edf
add edi, 0x4eb98121
add edi, dword [ebp - 0x40]
mov edx, 0x6e80533b
sub edx, 0xf7b15269
xor dword [ebp - 0x30], ecx
mov ebx, dword [edi]
mov dword [ebp - 0xc], 0xa5c30e59
add ebx, edx
add dword [ebp - 0x1c], edi
mov dword [esi], ebx
add dword [ebp - 0xc], edx
add esi, 0x7f29a946
sub esi, 0x7f29a942
add edi, 4
loop 0x40a4c3
add eax, 0x7d4e65da
sub eax, 0x7d4d9ea7
mov ebx, eax
add eax, 0xa8d4adea
add eax, 0x572b521b
mov ecx, 0x90adcacc
sub ecx, 0x906dcacc
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x410280
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 4
mov esi, ecx
call main
pop ecx
xor ecx, ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x41029c
mov dword [eax], ecx
jmp 0x41029e
mov eax, ecx
push ecx
push ecx
push esi
push 0x410310
push ecx
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
pop esi
mov dword [ecx], eax
leave
ret
Function at 0x5e71b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.005e7140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.005e7140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.005e7140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.005e7140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x5e7bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5e7c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x5f987c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5e7c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x5e7c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x402000
Capabilities:
Encode data using xor

Disassembly:
call dword [sym.imp.kernel32.dll_GetACP]
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
call fcn.0040142a
push 0x7eff
push 0
call fcn.00401451
call dword [0x40652a]
adc eax, 0x40652a
mov dword [0x403071], eax
mov ebx, 0x7f00
push ebx
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov ebx, 0x403059
mov dword [0x403069], 0x400000
mov dword [0x40306d], 0
push ebx
call dword [sym.imp.user32.dll_RegisterClassA]
call fcn.0040100f
push edi
sbb byte [eax], al
xor bh, byte [ecx - 0x19]
xchg esi, eax
push es
add byte [ebp + ebp + 0x7d9e3], cl
mov eax, 0xd29a9e8
add bh, dl
and cl, byte [eax]
daa
adc dword [eax], eax
in al, dx
dec edx
or eax, 0x9f00120d
jno 0x40201e
or dword [edi], ecx
add byte [edx + 0x50], ch
stosd dword es:[edi], eax
push cs
verw word [esi + 0x1040c48c]
add byte [ebx], ah
hlt
Function at 0x100027db
Capabilities:
Check os version

Disassembly:
mov eax, dword fs:[0x18]
sub esp, 0x74
mov eax, dword [eax + 0x30]
cmp dword [eax + 0xa4], 6
jae 0x100029b2
cmp dword [0x100d4af0], 0
jne 0x100029ab
push ebx
push ebp
push edi
call fcn.10002fe4
mov ebx, eax
test ebx, ebx
jne 0x1000281e
push eax
push eax
push 1
push 0xc0000264
call dword [sym.imp.KERNEL32.dll_RaiseException]
push 0x5c
pop edx
push 0x4b
pop eax
push 0x65
pop ecx
push 0x72
mov word [esp + 0x36], ax
pop eax
push 0x6e
mov word [esp + 0x3a], ax
pop eax
push 0x6c
mov word [esp + 0x3c], ax
pop eax
push 0x4f
pop edi
push 0x62
mov word [esp + 0x40], ax
pop eax
push 0x6a
mov word [esp + 0x44], ax
pop eax
push 0x63
mov word [esp + 0x46], ax
mov word [esp + 0x38], cx
mov word [esp + 0x3e], cx
mov word [esp + 0x48], cx
pop ecx
push 0x74
pop ebp
push 0x73
pop eax
push 0x43
mov word [esp + 0x4e], ax
pop eax
push 0x72
mov word [esp + 0x52], ax
mov word [esp + 0x34], dx
mov word [esp + 0x50], dx
pop edx
push 0x69
pop eax
push 0x53
mov word [esp + 0x56], ax
pop eax
push 0x65
mov word [esp + 0x5a], ax
pop eax
push 0x75
mov word [esp + 0x5c], ax
pop eax
push 0x66
mov word [esp + 0x62], ax
pop eax
push 0x4d
mov word [esp + 0x68], ax
pop eax
push 0x65
mov word [esp + 0x4a], cx
mov word [esp + 0x5e], cx
pop ecx
push 0x6d
mov word [esp + 0x6a], ax
pop eax
push 0x6f
mov word [esp + 0x6e], ax
pop eax
push 0x79
mov word [esp + 0x70], ax
pop eax
mov word [esp + 0x3e], di
mov word [esp + 0x48], bp
mov word [esp + 0x50], dx
mov word [esp + 0x54], bp
mov word [esp + 0x5c], di
mov word [esp + 0x60], bp
mov word [esp + 0x62], di
mov word [esp + 0x68], cx
mov word [esp + 0x6e], dx
mov word [esp + 0x70], ax
push 0x45
pop eax
mov word [esp + 0x72], ax
lea edi, [esp + 0x24]
push 0x76
pop eax
mov word [esp + 0x74], ax
push 0x6e
pop eax
mov word [esp + 0x78], ax
xor eax, eax
mov word [esp + 0x7c], ax
push 0x4c
pop eax
mov word [esp + 0x10], ax
mov word [esp + 0x12], ax
lea eax, [esp + 0x30]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x20], eax
xor eax, eax
mov word [esp + 0x7a], bp
xor ebp, ebp
mov dword [esp + 0x18], 0x18
mov dword [esp + 0x1c], ebp
stosd dword es:[edi], eax
mov word [esp + 0x76], cx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
push 0x2000000
lea eax, [esp + 0x14]
push eax
call ebx
test eax, eax
jns 0x1000298c
push ebp
push ebp
push 1
push 0xc0000264
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ecx, dword [esp + 0xc]
mov edx, 0x100d4af0
xor eax, eax
lock cmpxchg dword [edx], ecx
pop edi
pop ebp
pop ebx
test eax, eax
je 0x100029ab
push dword [esp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x100d4af0]
jmp 0x100029b4
xor eax, eax
add esp, 0x74
ret
Function at 0x100039b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100d0cc0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1f4
xorps xmm0, xmm0
mov dword [ebp - 0x204], 0
lea eax, [ebp - 0x1f8]
mov dword [ebp - 0x200], 0xf
push 0
movups xmmword [ebp - 0x214], xmm0
push eax
mov byte [ebp - 0x214], 0
mov dword [ebp - 0x1fc], 0
call sub.msvcrt.dll_memset
push 0x1f3
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x1f8]
push 0x1f4
push eax
call fcn.1009bc40
mov ecx, dword [ebp - 0x200]
add esp, 0x1c
cmp ecx, 0xf
jbe 0x10003a5b
mov edx, dword [ebp - 0x214]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003a51
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003ab3
push ecx
push edx
call fcn.1009a42f
add esp, 8
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1f8]
push 0x1f4
push eax
call fcn.10005820
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 2
push ecx
call fcn.1009ec90
add esp, 0x1c
lea eax, [ebp - 0x1fc]
push 0
push 0x100d4b30
push 0x1f8
push eax
push dword [0x100d0300]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009a43d
mov esp, ebp
pop ebp
ret
call fcn.1009b920
int3
Function at 0x10003ac0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100d0cc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [0x100d4b10]
push edi
push eax
push ecx
push esi
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10003b2b
xor ecx, ecx
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003b05
sub ecx, edx
push ecx
push 0
mov ecx, ebx
call fcn.10003320
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009a43d
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x10003b7c
xor ecx, ecx
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003b56
sub ecx, edx
push ecx
push 0
mov ecx, ebx
call fcn.10003320
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009a43d
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x20]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0x20]
mov esi, eax
push dword [ebp - 0x24]
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [ebp - 0xc], 0
xorps xmm0, xmm0
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x1c]
movups xmmword [ebp - 0x1c], xmm0
push dword [ebp - 0x20]
push esi
call fcn.10003320
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 4]
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
mov eax, ebx
movups xmm0, xmmword [ebp - 0x1c]
mov dword [ebx + 0x14], 0
xor ecx, ebp
pop edi
movups xmmword [ebx], xmm0
pop esi
movq xmm0, qword [ebp - 0xc]
movq qword [ebx + 0x10], xmm0
pop ebx
call fcn.1009a43d
mov esp, ebp
pop ebp
ret
Function at 0x10003c20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100aa2c5
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x100d0cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100d4b24]
mov ecx, dword [ebp + 0x608]
inc eax
mov dword [0x100d4b24], eax
cmp eax, 0x9c4
jl 0x10003c76
push str.too_many_hooks:_cant_insert
call fcn.100039b0
add esp, 4
xor al, al
jmp 0x10003def
test ecx, ecx
je 0x10003c93
cmp byte [ecx], 0
je 0x10003c93
push 0x3b
push ecx
lea eax, [ebp + 0x1e0]
push 0x3c
push eax
call fcn.1009bc40
add esp, 0x10
lea eax, [ebp + 0x1e0]
push eax
push str.inserting_hook:__s
call fcn.100039b0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10004fd0
mov eax, dword [ebp + 0x18c]
add esp, 0x14
test dword [ebp + 0x188], 0x100
mov ecx, 0xfde9
cmovne eax, ecx
mov dword [ebp + 0x18c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
sub esp, 0x600
lea eax, [ebp - 0x28]
mov edi, esp
lea esi, [ebp + 8]
mov ecx, 0x180
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.100767a0
add esp, 0x608
cmp dword [eax + 0x14], 7
jbe 0x10003d02
mov eax, dword [eax]
push eax
lea eax, [ebp + 0x21c]
push 0x1f4
push eax
call fcn.1009bab0
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.10003860
imul eax, dword [0x100d4b24], 0x6b8
lea esi, [ebp + 8]
sub esp, 0x600
mov ecx, 0x180
mov edi, esp
rep movsd dword es:[edi], dword [esi]
add eax, dword [0x100d4b20]
mov ecx, eax
call fcn.10005b40
test al, al
jne 0x10003dc1
lea eax, [ebp + 0x21c]
push eax
lea ecx, [ebp - 0x28]
call fcn.100033f0
push 0xfde9
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10075880
add esp, 0xc
cmp dword [eax + 0x14], 0xf
mov byte [ebp - 4], 1
jbe 0x10003d83
mov eax, dword [eax]
push eax
push str.failed_to_insert_hook__s
call fcn.100039b0
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.10003810
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.10003860
imul ecx, dword [0x100d4b24], 0x6b8
add ecx, dword [0x100d4b20]
call fcn.10005850
xor al, al
jmp 0x10003def
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push 0
push 0x100d4b30
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x50]
push 0x10
push eax
push dword [0x100d0300]
mov dword [ebp - 0x50], 4
mov dword [ebp - 0x44], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1009a43d
mov esp, ebp
pop ebp
ret
Function at 0x10003e10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x100d0cc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x608]
push esi
push edi
mov dword [ebp - 0xa10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
sub esp, 0x600
lea eax, [ebp - 0x1c]
mov edi, esp
lea esi, [ebp + 8]
mov ecx, 0x180
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.100767a0
add esp, 0x608
cmp dword [eax + 0x14], 7
jbe 0x10003e61
mov eax, dword [eax]
push eax
lea eax, [ebp + 0x21c]
push 0x1f4
push eax
call fcn.1009bab0
mov ecx, dword [ebp - 8]
add esp, 0xc
cmp ecx, 7
jbe 0x10003eb0
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10003ea6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003f2b
push ecx
push edx
call fcn.1009a42f
add esp, 8
push 0x3e8
lea eax, [ebp - 0x404]
mov dword [ebp - 0xa0c], 2
mov ecx, 0x180
lea esi, [ebp + 8]
lea edi, [ebp - 0xa04]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call sub.msvcrt.dll_memset
push 0x1f3
push dword [ebp - 0xa10]
lea eax, [ebp - 0x404]
push 0x1f4
push eax
call fcn.1009bb50
add esp, 0x1c
lea eax, [ebp - 0xa0c]
push 0
push 0x100d4b30
push 0x9f0
push eax
push dword [0x100d0300]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1009a43d
mov esp, ebp
pop ebp
ret
call fcn.1009b920
int3

Function at 0x10003f40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x10
test eax, eax
je 0x10003f5b
push eax
push str.removing_hook:__s
call fcn.100039b0
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push 0
push 0x100d4b30
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push 0x10
push eax
push dword [0x100d0300]
mov dword [ebp - 0x10], 3
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret
Function at 0x10005040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x2c]
test esi, esi
js 0x10005053
cmp esi, 0xc330
jbe 0x10005067
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push str.something_went_very_wrong__invalid_length__d_at_hook_address__I64d_
call fcn.100039b0
add esp, 0x10
mov ecx, dword [ebp + 0x28]
lea eax, [esi + 0x28]
movups xmm0, xmmword [ebp + 8]
push 0
push 0x100d4b30
movups xmmword [ecx], xmm0
push eax
movups xmm0, xmmword [ebp + 0x18]
push ecx
movups xmmword [ecx + 0x10], xmm0
push dword [0x100d0300]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebp
ret
Function at 0x10005620
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100aa3cd
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x100d0cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
sub eax, 0
je 0x100057d2
sub eax, 1
jne 0x100057f2
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x100d4b10], edi
call ebx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100054e0
add esp, 8
push 0x100d4b94
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
push eax
push str.LUNA_VNR_HOOKMAN_
push ecx
call fcn.100031b0
add esp, 0xc
lea ecx, [ebp - 0x78]
call fcn.10003670
mov ecx, dword [eax]
mov dword [eax], 0
mov eax, dword [0x100d4b1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
mov dword [0x100d4b1c], ecx
test eax, eax
je 0x100056cf
cmp eax, 0xffffffff
je 0x100056cf
push eax
call esi
mov eax, dword [ebp - 0x78]
mov byte [ebp - 4], 2
test eax, eax
je 0x100056e2
cmp eax, 0xffffffff
je 0x100056e2
push eax
call esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.10003860
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10005705
xor eax, eax
jmp 0x100057f7
push edi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call ebx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100054e0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 3
push str.LUNA_VNR_SECTION_
push eax
call fcn.100031b0
add esp, 0x14
push eax
push 0x419ce0
push 0x100d4b20
push 0x100d0304
lea ecx, [ebp - 0x71]
mov byte [ebp - 4], 4
call fcn.100038e0
lea ecx, [ebp - 0x28]
call fcn.10003860
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.10003860
call ebx
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.100054e0
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 5
push str.EMBED_SHARED_MEM
push eax
call fcn.100031b0
add esp, 0x14
push eax
push 0x9f8
push 0x100d4b14
push 0x100d0308
lea ecx, [ebp - 0x71]
mov byte [ebp - 4], 6
call fcn.100038e0
lea ecx, [ebp - 0x58]
call fcn.10003860
lea ecx, [ebp - 0x70]
call fcn.10003860
call fcn.100781c0
push 0
push 0
push 0
push fcn.10003f90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
jmp 0x100057f0
call fcn.10078470
call fcn.10071c60
push dword [0x100d4b20]
mov esi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call esi
push dword [0x100d4b14]
call esi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1009a43d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10005b40
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0xc350
mov ebx, ecx
call fcn.1009a46e
mov dword [ebx + 0x6b0], eax
add esp, 4
mov eax, dword [0x100d4b1c]
test eax, eax
je 0x10005b72
cmp eax, 0xffffffff
je 0x10005b72
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp + 0x188]
lea esi, [ebp + 8]
mov eax, dword [ebp + 0x18c]
test edx, 0x100
mov ecx, 0xfde9
cmovne eax, ecx
mov ecx, 0x180
push edi
mov dword [ebp + 0x18c], eax
mov edi, ebx
mov eax, dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 0x600], eax
mov dword [ebx + 0x604], ecx
mov eax, dword [0x100d4b1c]
pop edi
test eax, eax
je 0x10005bcd
cmp eax, 0xffffffff
je 0x10005bcd
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp + 0x188]
test edx, 0x1000
je 0x10005c0d
push 0
push 0
push ebx
push 0x10005830
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0
mov dword [ebx + 0x610], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 0x618], eax
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x600
mov eax, dword [ebx + 0x180]
test al, 0x40
je 0x10005c4c
lea ecx, [ebx + 0x18]
test al, al
jns 0x10005d31
lea eax, [ebx + 0x108]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10005d1a
add dword [ebx + 0x600], eax
adc dword [ebx + 0x604], 0
push 0x100d4b30
push 0x40
push 0xa
push dword [ebx + 0x600]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
lea esi, [ebx + 0x621]
push esi
push dword [ebx + 0x600]
call fcn.10077f70
test eax, eax
je 0x10005cb3
nop dword [eax + eax]
cmp eax, 3
jne 0x10005d65
push 9
push dword [ebx + 0x604]
push dword [ebx + 0x600]
call fcn.10004fd0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
push dword [ebx + 0x600]
call fcn.10077f70
test eax, eax
jne 0x10005c80
mov eax, dword [0x100d032c]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x100d030c], ebx
mov eax, dword [0x100d0330]
mov dword [eax + 0x100d030c], 0x10005f80
mov eax, dword [0x100d0334]
mov dword [eax + 0x100d030c], ecx
movups xmm0, xmmword [0x100d030c]
push dword [ebx + 0x600]
movups xmmword [esi], xmm0
movq xmm0, qword [0x100d031c]
movq qword [esi + 0x10], xmm0
mov eax, dword [0x100d0324]
mov dword [esi + 0x18], eax
mov al, byte [0x100d0328]
mov byte [esi + 0x1c], al
call fcn.100781a0
test eax, eax
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 0x600
push str.function_not_present
call fcn.100039b0
add esp, 4
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x600
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10005d4e
cdq
add dword [ebx + 0x600], eax
adc dword [ebx + 0x604], edx
jmp 0x10005c4c
push str.module_not_present
call fcn.100039b0
add esp, 4
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x600
push eax
call fcn.10078390
push eax
call fcn.100039b0
add esp, 4
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x600