joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455620
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579bc5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov edi, dword [eax - 0xc]
test edi, edi
je 0x45583e
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], 0
je 0x45583e
lea esi, [edi + 1]
test esi, esi
js 0x4557f0
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x455690
push esi
lea ecx, [ebp + 8]
call fcn.0042f9f0
mov eax, dword [ebp + 8]
mov ecx, 0x5c
mov word [eax + edi*2], cx
mov eax, dword [ebp + 8]
cmp esi, dword [eax - 8]
jg 0x4557f0
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp + 8]
mov word [eax + esi*2], cx
lea ecx, [ebp + 8]
mov eax, dword [ebx]
push dword [eax - 0xc]
push eax
call fcn.0042e200
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4556e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x4557fa
mov esi, dword [ebp + 8]
or eax, 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4556fd
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0042fa70
push str.cWxz8RjIehFicF8CTcvOAwkQ5Mh4eaChkXxDRoqnFAg
lea ecx, [ebp - 0x18]
call fcn.0042fba0
push esi
push ecx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
mov ecx, esp
push eax
call fcn.0042eed0
lea ecx, [ebp - 0x14]
call fcn.00445a80
add esp, 4
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
call fcn.00446df0
push 0x5bb6b4
lea eax, [ebp - 0x38]
push eax
call fcn.0054b9da
push str.eTVD3VBBbYNTUVUXCcL5CVQx2NRRQeNzELDRg
lea ecx, [ebp - 0x18]
call fcn.0042fba0
push 2
push ecx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
mov ecx, esp
push eax
call fcn.0042eed0
lea ecx, [ebp - 0x14]
call fcn.00445a80
add esp, 4
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00446df0
push 0x5bb6b4
lea eax, [ebp - 0x44]
push eax
call fcn.0054b9da
int3
Function at 0x462630
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ae75
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x248
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.0042f4e0
mov ecx, eax
test ecx, ecx
je 0x462807
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.R1VkveDI72DxYohIgo
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.0042f750
test al, al
jne 0x462695
push 0x13
push str.R1VkveDI72DxYohIgo
lea ecx, [ebp - 0x14]
call fcn.0042fa90
mov dword [ebp - 4], 1
call fcn.0042f4e0
mov ecx, eax
test ecx, ecx
je 0x462811
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x5911fc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0042f750
test al, al
jne 0x4626da
push 0
push 0x5911fc
lea ecx, [ebp - 0x10]
call fcn.0042fa90
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x46275d
push 0x228
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x250], 0x22c
push 0
push eax
call fcn.0054b880
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x462756
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
cmp dword [ebp - 0x248], edi
je 0x462748
lea eax, [ebp - 0x250]
push eax
push esi
call ebx
test eax, eax
jne 0x462730
jmp 0x462756
mov ecx, dword [ebp - 0x238]
lea edx, [ebp - 0x10]
call fcn.004624d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jne 0x4627b2
mov ebx, dword [ebp - 0x14]
push ecx
add ebx, 0xfffffff0
mov edi, esp
mov ecx, ebx
mov dword [ebp - 0x1c], edi
call fcn.0042ee10
mov ecx, dword [ebp - 0x18]
add eax, 0x10
mov dword [edi], eax
call fcn.00445a80
lea edx, [esi - 0x10]
add esp, 4
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4627a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lock xadd dword [ebx + 0xc], esi
dec esi
test esi, esi
jg 0x4627f3
mov ecx, dword [ebx]
push ebx
jmp 0x4627ee
lea edi, [esi - 0x10]
mov ecx, edi
call fcn.0042ee10
mov ecx, dword [ebp - 0x18]
add eax, 0x10
or esi, 0xffffffff
mov dword [ecx], eax
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4627db
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4627f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0042fa70
push 0x80004005
call fcn.0042fa70
int3
Function at 0x10015d4
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edi, edi
cmp eax, edi
je 0x100174a
mov dword [0x10174f4], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
lea eax, [esp + 0x20]
call fcn.0100156b
mov esi, eax
cmp esi, edi
jne 0x100174d
mov eax, dword [esp + 0x20]
mov esi, 0x1004020
cmp eax, edi
je 0x1001623
push esi
call fcn.010017f9
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [0x100401c]
push esi
call fcn.010014fd
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, eax
cmp esi, edi
jne 0x100173b
push dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
call fcn.010013d0
and eax, 0xffff
cmp eax, 0x1000
jne 0x1001738
mov eax, dword [0x1005028]
cmp eax, 0x60519d17
je 0x1001738
mov eax, dword [0x1008038]
cmp eax, 0x6e589d17
je 0x1001738
lea eax, [esp + 0x10]
push eax
push dword [0x100803c]
push 0x1008040
call fcn.010018ec
mov esi, eax
cmp esi, edi
jne 0x100173b
mov ecx, dword [esp + 0x10]
push 1
call fcn.01001880
cmp eax, edi
je 0x1001726
mov eax, dword [eax]
add eax, dword [esp + 0x10]
push edi
push dword [esp + 0x34]
push dword [esp + 0x2c]
push dword [esp + 0x34]
push dword [esp + 0x3c]
push dword [esp + 0x28]
push dword [esp + 0x30]
push dword [0x100502c]
push 0x1005030
call eax
mov esi, eax
cmp esi, edi
jne 0x1001726
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
cmp esi, edi
jne 0x1001726
mov ecx, dword [esp + 0x10]
push 2
call fcn.01001880
cmp eax, edi
je 0x1001719
mov eax, dword [eax]
push dword [esp + 0x1c]
add eax, dword [esp + 0x14]
call eax
push dword [esp + 0x1c]
push edi
push dword [0x10174f4]
call ebx
push 0x8000
push edi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x100173b
push 0xb
pop esi
push dword [esp + 0x34]
push edi
push dword [0x10174f4]
call ebx
jmp 0x100174d
push 8
pop esi
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10018ec
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0xc
push ebx
push esi
push edi
jb 0x10019a9
mov ecx, dword [ebp + 8]
call fcn.010013e4
mov esi, eax
test esi, esi
je 0x10019a9
push 0x40
push 0x1000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x100199f
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push ebx
call section..text
mov edx, eax
test edx, edx
je 0x1001988
mov esi, dword [ebx + 0x3c]
add esi, ebx
lea ecx, [esi + 0x80]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
add eax, ebx
push edx
call fcn.0100140a
mov edi, eax
test edi, edi
jne 0x100198f
lea eax, [esi + 0xa0]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add ecx, ebx
push ebx
call fcn.010012fc
mov esi, dword [esi + 0x28]
push edi
push 1
add esi, ebx
push ebx
call esi
test eax, eax
je 0x100197e
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
jmp 0x10019ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100198b
push 0xb
pop edi
test edi, edi
je 0x10019ac
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x10019ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10019ac
push 0xb
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x10019c0
Capabilities:
Encrypt data using rc6

Disassembly:
sub esp, 0x1d0
push ebx
push ebp
push esi
xor ebp, ebp
xor ecx, ecx
push edi
xor eax, eax
movzx esi, byte [ecx + edx]
shl eax, 8
inc ecx
or eax, esi
test cl, 3
jne 0x10019e9
mov dword [esp + ebp*4 + 0xe0], eax
inc ebp
xor eax, eax
cmp ecx, 0x10
jb 0x10019d0
mov dword [esp + 0x18], 0xb7e15163
mov eax, 1
jmp 0x1001a00
mov ecx, dword [esp + eax*4 + 0x14]
sub ecx, 0x61c88647
mov dword [esp + eax*4 + 0x18], ecx
inc eax
cmp eax, 0x2c
jb 0x1001a00
mov eax, 0x2c
cmp ebp, 0x2c
jb 0x1001a20
mov eax, ebp
lea ecx, [eax + eax*2]
xor eax, eax
xor edi, edi
xor esi, esi
xor edx, edx
xor ebx, ebx
cmp ecx, eax
jbe 0x1001a91
mov dword [esp + 0x10], ecx
jmp 0x1001a44
mov edx, dword [esp + 0x14]
mov eax, dword [esp + esi*4 + 0x18]
add eax, edx
add eax, ebx
rol eax, 3
mov dword [esp + esi*4 + 0x18], eax
mov ebx, eax
mov eax, dword [esp + edi*4 + 0xe0]
add eax, edx
add eax, ebx
mov cl, bl
add cl, dl
rol eax, cl
xor edx, edx
mov ecx, 0x2c
mov dword [esp + edi*4 + 0xe0], eax
mov dword [esp + 0x14], eax
lea eax, [esi + 1]
div ecx
lea eax, [edi + 1]
mov esi, edx
xor edx, edx
div ebp
sub dword [esp + 0x10], 1
mov edi, edx
jne 0x1001a40
xor eax, eax
mov edx, dword [esp + 0x1e4]
mov ecx, 0x2c
lea esi, [esp + 0x18]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
mov dword [edx + 0xb0], eax
mov dword [edx + 0xb4], eax
mov dword [edx + 0xb8], eax
mov dword [edx + 0xbc], eax
pop ebx
add esp, 0x1d0
ret 4
Function at 0x1001b50
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov ecx, dword [eax + 4]
push ebx
push ebp
mov ebp, dword [eax + 0xc]
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [eax]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], edi
sub edi, dword [eax + 0xa8]
mov dword [esp + 0x20], esi
sub esi, dword [eax + 0xac]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], ebp
add eax, 0xa0
mov dword [esp + 0x14], 4
nop
mov edx, ebp
mov ebp, esi
mov esi, ecx
sub esi, dword [eax + 4]
mov ecx, edi
mov edi, edx
sub edi, dword [eax]
lea edx, [ecx + ecx + 1]
imul edx, ecx
rol edx, 5
lea ebx, [ebp + ebp + 1]
imul ebx, ebp
rol ebx, 5
mov dword [esp + 0x10], ecx
mov cl, dl
ror esi, cl
mov cl, bl
xor esi, ebx
ror edi, cl
xor edi, edx
mov ecx, edi
mov edx, ebp
mov ebp, esi
mov esi, dword [esp + 0x10]
sub esi, dword [eax - 4]
mov edi, edx
sub edi, dword [eax - 8]
lea edx, [ecx + ecx + 1]
imul edx, ecx
rol edx, 5
lea ebx, [ebp + ebp + 1]
imul ebx, ebp
rol ebx, 5
mov dword [esp + 0x10], ecx
mov cl, dl
ror esi, cl
mov cl, bl
xor esi, ebx
ror edi, cl
xor edi, edx
mov ecx, edi
mov edx, ebp
mov ebp, esi
mov esi, dword [esp + 0x10]
sub esi, dword [eax - 0xc]
mov edi, edx
sub edi, dword [eax - 0x10]
lea edx, [ecx + ecx + 1]
imul edx, ecx
rol edx, 5
lea ebx, [ebp + ebp + 1]
imul ebx, ebp
rol ebx, 5
mov dword [esp + 0x10], ecx
mov cl, dl
ror esi, cl
mov cl, bl
xor esi, ebx
ror edi, cl
xor edi, edx
mov ecx, edi
mov edx, ebp
mov ebp, esi
mov esi, dword [esp + 0x10]
sub esi, dword [eax - 0x14]
mov edi, edx
sub edi, dword [eax - 0x18]
lea edx, [ecx + ecx + 1]
imul edx, ecx
lea ebx, [ebp + ebp + 1]
imul ebx, ebp
rol edx, 5
rol ebx, 5
mov dword [esp + 0x10], ecx
mov cl, dl
ror esi, cl
mov cl, bl
xor esi, ebx
ror edi, cl
xor edi, edx
mov edx, ebp
mov ecx, edi
mov ebp, esi
mov esi, dword [esp + 0x10]
sub esi, dword [eax - 0x1c]
mov edi, edx
sub edi, dword [eax - 0x20]
lea edx, [ecx + ecx + 1]
imul edx, ecx
lea ebx, [ebp + ebp + 1]
imul ebx, ebp
rol edx, 5
mov dword [esp + 0x10], ecx
rol ebx, 5
mov cl, dl
ror esi, cl
mov cl, bl
sub eax, 0x28
xor esi, ebx
ror edi, cl
mov ecx, dword [esp + 0x10]
xor edi, edx
sub dword [esp + 0x14], 1
jne 0x1001b90
mov eax, dword [esp + 0x2c]
xor edi, dword [eax + 0xb0]
sub ecx, dword [eax]
mov edx, dword [esp + 0x18]
xor ecx, dword [eax + 0xb4]
xor esi, dword [eax + 0xb8]
sub ebp, dword [eax + 4]
mov dword [eax + 0xb0], edx
mov edx, dword [esp + 0x1c]
xor ebp, dword [eax + 0xbc]
mov dword [eax + 0xb4], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 0xb8], edx
mov edx, dword [esp + 0x24]
mov dword [eax + 0xbc], edx
mov eax, dword [esp + 0x30]
mov dword [eax], edi
pop edi
mov dword [eax + 8], esi
pop esi
mov dword [eax + 0xc], ebp
pop ebp
mov dword [eax + 4], ecx
pop ebx
add esp, 0x18
ret 8
Function at 0x10002540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100deed4]
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 fcn.100861a0
push 0x1f3
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x1f8]
push 0x1f4
push eax
call fcn.100905a0
mov ecx, dword [ebp - 0x200]
add esp, 0x1c
cmp ecx, 0x10
jb 0x100025eb
mov edx, dword [ebp - 0x214]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100025e1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002643
push ecx
push edx
call fcn.10084296
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.10004540
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 2
push ecx
call fcn.100943b1
add esp, 0x1c
lea eax, [ebp - 0x1fc]
push 0
push 0x100e2e98
push 0x1f8
push eax
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100845be
mov esp, ebp
pop ebp
ret
call fcn.100903bf
int3
Function at 0x10002650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100deed4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100e2e8c]
mov ecx, 0x7e
push esi
push edi
lea esi, [ebp + 8]
inc eax
mov dword [0x100e2e8c], eax
lea edi, [ebp - 0x1fc]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x200]
cmp eax, 0x9c4
jl 0x100026ab
push dword [0x100deb60]
call fcn.10002540
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100845be
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x100026c5
cmp byte [ecx], 0
je 0x100026c5
push 0x3b
push ecx
lea eax, [ebp - 0x44]
push 0x3c
push eax
call fcn.100905a0
add esp, 0x10
lea eax, [ebp - 0x44]
push eax
push dword [0x100deb54]
call fcn.10002540
push 0
push dword [ebp - 0x1f8]
push dword [ebp - 0x1fc]
call fcn.10003b90
mov eax, dword [ebp - 0x74]
add esp, 0x14
test dword [ebp - 0x78], 0x100
mov ecx, 0xfde9
cmovne eax, ecx
mov dword [ebp - 0x74], eax
imul eax, dword [0x100e2e8c], 0x3e8
add eax, dword [0x100e2e88]
mov dword [ebp - 0x200], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
sub esp, 0x1f8
lea eax, [ebp - 0x218]
mov edi, esp
lea esi, [ebp - 0x1fc]
mov ecx, 0x7e
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.100711d0
mov edx, dword [ebp - 0x200]
lea eax, [ebp - 0x218]
add esp, 0x200
cmp dword [ebp - 0x204], 8
cmovae eax, dword [ebp - 0x218]
sub edx, eax
nop
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x10002760
mov ecx, dword [ebp - 0x204]
cmp ecx, 8
jb 0x100027b0
mov edx, dword [ebp - 0x218]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100027a6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002869
push ecx
push edx
call fcn.10084296
add esp, 8
mov eax, dword [0x100e2e8c]
lea esi, [ebp - 0x1fc]
push dword [ebp + 0x204]
mov ecx, 0x7e
sub esp, 0x1f8
lea eax, [eax + eax*8]
mov edi, esp
shl eax, 6
add eax, dword [0x100e2e84]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
call fcn.100047e0
test al, al
jne 0x1000281b
push dword [0x100deb5c]
call fcn.10002540
mov eax, dword [0x100e2e8c]
add esp, 4
lea ecx, [eax + eax*8]
shl ecx, 6
add ecx, dword [0x100e2e84]
call fcn.10004570
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100845be
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1fc]
mov ecx, dword [ebp - 0x1f8]
push 0
push 0x100e2e98
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x210]
push 0x10
push eax
push dword [section..data]
mov dword [ebp - 0x210], 4
mov dword [ebp - 0x204], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100845be
mov esp, ebp
pop ebp
ret
call fcn.100903bf
int3
Function at 0x10002870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbe4
mov eax, dword [0x100deed4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x200]
lea eax, [ebp - 0x404]
push esi
push edi
mov ecx, 0x7e
mov dword [ebp - 0x9ec], 2
lea esi, [ebp + 8]
lea edi, [ebp - 0xbe4]
rep movsd dword es:[edi], dword [esi]
push 0x3e8
mov ecx, 0x7e
lea esi, [ebp - 0xbe4]
lea edi, [ebp - 0x9e4]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.100861a0
push 0x1f3
push ebx
lea eax, [ebp - 0x404]
push 0x1f4
push eax
call fcn.100904de
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
sub esp, 0x1f8
lea eax, [ebp - 0x1c]
mov edi, esp
lea esi, [ebp - 0xbe4]
mov ecx, 0x7e
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.100711d0
add esp, 0x200
cmp dword [eax + 0x14], 8
jb 0x10002919
mov eax, dword [eax]
lea edx, [ebp - 0x7ec]
sub edx, eax
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x10002921
mov ecx, dword [ebp - 8]
cmp ecx, 8
jb 0x10002967
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000295d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002997
push ecx
push edx
call fcn.10084296
add esp, 8
push 0
push 0x100e2e98
push 0x9d0
lea eax, [ebp - 0x9ec]
push eax
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100845be
mov esp, ebp
pop ebp
ret
call fcn.100903bf
int3

Function at 0x100029a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x10
test eax, eax
je 0x100029bc
push eax
push dword [0x100deb58]
call fcn.10002540
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push 0
push 0x100e2e98
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push 0x10
push eax
push dword [section..data]
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 0x10003c00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x2c]
test esi, esi
js 0x10003c13
cmp esi, 0xc330
jbe 0x10003c27
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.10002540
add esp, 0x10
mov ecx, dword [ebp + 0x28]
lea eax, [esi + 0x20]
movups xmm0, xmmword [ebp + 8]
push 0
push 0x100e2e98
movups xmmword [ecx], xmm0
push eax
movups xmm0, xmmword [ebp + 0x18]
push ecx
movups xmmword [ecx + 0x10], xmm0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebp
ret
Function at 0x100042e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ac8fd
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x100deed4]
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 ebx, dword [ebp + 8]
sub eax, 0
je 0x100044eb
sub eax, 1
jne 0x10004513
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10004190
add esp, 8
push 0x100e2efc
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
push eax
push str.LUNA_VNR_HOOKMAN_
push ecx
call fcn.10001e40
add esp, 0xc
lea ecx, [ebp - 0x78]
call fcn.10002170
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0x100e2e80
je 0x10004390
mov ecx, dword [eax]
mov dword [eax], 0
mov eax, dword [0x100e2e80]
mov byte [ebp - 4], 1
mov dword [0x100e2e80], ecx
test eax, eax
je 0x10004390
cmp eax, 0xffffffff
je 0x10004390
push eax
call esi
mov eax, dword [ebp - 0x78]
mov byte [ebp - 4], 2
test eax, eax
je 0x100043a3
cmp eax, 0xffffffff
je 0x100043a3
push eax
call esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.100023c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100043c6
xor eax, eax
jmp 0x10004518
push ebx
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call edi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10004190
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 3
push str.LUNA_VNR_SECTION_
push eax
call fcn.10001e40
add esp, 0x14
push eax
push 0x15f900
push 0x100e2e84
push 0x100de004
lea ecx, [ebp - 0x71]
mov byte [ebp - 4], 4
call fcn.10002440
lea ecx, [ebp - 0x28]
call fcn.100023c0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.100023c0
call edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10004190
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 5
push str.LUNA_HOOKCODE_
push eax
call fcn.10001e40
add esp, 0x14
push eax
push 0x2625a0
push 0x100e2e88
push 0x100de008
lea ecx, [ebp - 0x71]
mov byte [ebp - 4], 6
call fcn.10002440
lea ecx, [ebp - 0x40]
call fcn.100023c0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.100023c0
call edi
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.10004190
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 7
push str.EMBED_SHARED_MEM
push eax
call fcn.10001e40
add esp, 0x14
push eax
push 0x9f8
push 0x100e2e78
push 0x100de00c
lea ecx, [ebp - 0x71]
mov byte [ebp - 4], 8
call fcn.10002440
lea ecx, [ebp - 0x58]
call fcn.100023c0
lea ecx, [ebp - 0x70]
call fcn.100023c0
call fcn.1007c140
push 0
push 0
push 0
push fcn.100029f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
jmp 0x10004511
call fcn.1007c3f0
call fcn.10075880
push dword [0x100e2e84]
mov esi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call esi
push dword [0x100e2e88]
call esi
push dword [0x100e2e78]
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.100845be
mov esp, ebp
pop ebp
ret 0xc