joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d92bd
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.005d9239
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5d942c
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5d942c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5d93e1
jg 0x5d9319
test eax, eax
je 0x5d93d7
push 1
push 0x1000
call fcn.005c99a4
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5d933c
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5d93ce
push 0x8000
push ebx
call fcn.005bcaed
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5d9365
jg 0x5d9360
cmp ecx, 0x1000
jb 0x5d9365
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005ccffc
add esp, 0x10
cmp eax, 0xffffffff
je 0x5d93aa
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x5d9360
jl 0x5d9391
test ecx, ecx
jne 0x5d9352
push dword [ebp - 0xc]
push ebx
call fcn.005bcaed
push esi
call fcn.005c9a01
add esp, 0xc
xor ebx, ebx
jmp 0x5d943a
cmp byte [edi + 0x24], 0
je 0x5d93c1
cmp dword [edi + 0x20], 5
jne 0x5d93c1
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5d93cc
mov ebx, dword [edi + 0x18]
jmp 0x5d93ce
xor ebx, ebx
push esi
call fcn.005c9a01
pop ecx
jmp 0x5d943a
test ecx, ecx
jg 0x5d93a3
jl 0x5d93e1
test eax, eax
jae 0x5d93a3
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005ce9cc
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5d9401
cmp byte [edi + 0x1c], 0
je 0x5d93a3
jmp 0x5d9432
push ebx
call fcn.005cedf4
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5d93a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5d943a
cmp byte [edi + 0x1c], 0
je 0x5d9437
mov ebx, dword [edi + 0x18]
jmp 0x5d943a
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005ce9cc
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5da520
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5da54d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5da54d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40d21d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419c98]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040a511
mov dword [ebp - 0x14], eax
cmp dword [0x4354c4], esi
jne 0x40d310
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d29d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d3f0
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d3f0
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d3f0
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4354c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4354c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4354cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4354d4], eax
test eax, eax
je 0x40d30d
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4354d0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d335
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d328
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d34a
push 4
pop eax
jmp 0x40d3f2
cmp dword [ebp - 0x14], esi
je 0x40d34a
push dword [0x4354c4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d32f
mov eax, dword [0x4354d0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d3a8
cmp dword [0x4354d4], edi
je 0x40d3a8
push eax
call ebx
push dword [0x4354d4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d3a8
test eax, eax
je 0x40d3a8
call ecx
test eax, eax
je 0x40d39d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d39d
test byte [ebp - 8], 1
jne 0x40d3a8
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d3d8
mov eax, dword [0x4354c8]
cmp eax, edi
je 0x40d3d5
push eax
call ebx
test eax, eax
je 0x40d3d5
call eax
mov esi, eax
test esi, esi
je 0x40d3d5
mov eax, dword [0x4354cc]
cmp eax, edi
je 0x40d3d5
push eax
call ebx
test eax, eax
je 0x40d3d5
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4354c4]
call ebx
test eax, eax
je 0x40d3f0
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d3f2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004045d8
mov esp, ebp
pop ebp
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0xec55add
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x6e783b15
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x401443
pop dword [ebp - 0x34]
mov eax, 0xd780d0b2
sub eax, 0xd740bc6f
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xadad0926
sub dword [ebp - 0x44], 0x5f5ac3db
mov dword [ebp - 0x40], 0xbd797768
sub dword [ebp - 0x40], 0x8b462b23
mov dword [ebp - 0x3c], 0x4dc3262e
sub dword [ebp - 0x3c], 0x176e200
mov dword [ebp - 0x38], 0x51fc0e94
add dword [ebp - 0x38], 0xae03f16c
lea eax, [ebp - 0x44]
push eax
mov eax, 0x38ae6d03
add eax, 0xc7921401
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x369e644c
add dword [ebp - 0x44], 0x3dd4050a
mov dword [ebp - 0x40], 0x549b534f
sub dword [ebp - 0x40], 0x132ef1da
mov dword [ebp - 0x3c], 0xaf90f1fb
add dword [ebp - 0x3c], 0xb3de7a71
mov dword [ebp - 0x38], 0x194b35bd
add dword [ebp - 0x38], 0xe6b4ca43
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x737efc13
sub eax, 0x733e7b13
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x37fca
push 0
call eax
mov ecx, 0xd1092df2
sub ecx, 0xd108e729
xor ebx, ebx
add ebx, eax
mov esi, 0x46e400
add esi, dword [ebp - 0x34]
mov edx, 0x13a4751e
sub edx, 0x27cc3415
add dword [ebp - 0x10], ecx
mov edi, dword [esi]
xor edi, edx
add dword [ebp - 0x24], 0x839b1c31
mov dword [ebx], edi
xor dword [ebp - 0x18], 0x70aa154c
add ebx, 4
add esi, 0x7c30cf29
sub esi, 0x7c30cf25
loop 0x401561
add eax, 0xd1cf42
sub eax, 0xd0c14b
xor ebx, ebx
add ebx, eax
add eax, 0x4c3b3f29
sub eax, 0x4c3b3f24
mov ecx, 0x400000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x30003c25
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3000231c]
jne 0x3000404d
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x300098c8], eax
mov dword [0x300098c4], ecx
mov dword [0x300098c0], edx
mov dword [0x300098bc], ebx
mov dword [0x300098b8], esi
mov dword [0x300098b4], edi
mov word [0x300098e0], ss
mov word [0x300098d4], cs
mov word [0x300098b0], ds
mov word [0x300098ac], es
mov word [0x300098a8], fs
mov word [0x300098a4], gs
pushfd
pop dword [0x300098d8]
mov eax, dword [ebp]
mov dword [0x300098cc], eax
mov eax, dword [ebp + 4]
mov dword [0x300098d0], eax
lea eax, [ebp + 8]
mov dword [0x300098dc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x30009818], 0x10001
mov eax, dword [0x300098d0]
mov dword [0x300097cc], eax
mov dword [0x300097c0], 0xc0000409
mov dword [0x300097c4], 1
mov eax, dword [0x3000231c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x300091dc]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x30009810], eax
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x30002358
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x30009810], 0
jne 0x3000413d
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x30003f49
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x30007ff0
call fcn.30004288
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x3000a288
push 0
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
test eax, eax
je 0x30003ce8
cmp eax, esi
jne 0x30003cdb
xor esi, esi
inc esi
mov ebx, esi
jmp 0x30003ceb
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x30003cc2
xor esi, esi
inc esi
mov eax, dword [0x3000a284]
cmp eax, esi
jne 0x30003cfe
push 0x1f
call sub.msvcr80.dll__amsg_exit
pop ecx
jmp 0x30003d2d
mov eax, dword [0x3000a284]
test eax, eax
jne 0x30003d27
mov dword [0x3000a284], esi
push 0x300011a4
push 0x3000119c
call sub.msvcr80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x30003d2d
jmp 0x30003e55
mov dword [0x300097bc], esi
mov eax, dword [0x3000a284]
cmp eax, esi
jne 0x30003d51
push 0x30001198
push 0x30001180
call sub.msvcr80.dll__initterm
pop ecx
pop ecx
mov dword [0x3000a284], 2
test ebx, ebx
jne 0x30003d5d
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x3000a294], 0
je 0x30003d81
push 0x3000a294
call fcn.30004210
pop ecx
test eax, eax
je 0x30003d81
push 0
push 2
push 0
call dword [0x3000a294]
mov eax, dword [sym.imp.msvcr80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x30003ddd
test al, al
je 0x30003d9b
cmp dword [ebp - 0x1c], 0
jne 0x30003ddd
mov al, byte [esi]
test al, al
je 0x30003dab
cmp al, 0x20
ja 0x30003dab
inc esi
mov dword [ebp - 0x20], esi
jmp 0x30003d9b
test byte [ebp - 0x3c], 1
je 0x30003db7
movzx eax, word [ebp - 0x38]
jmp 0x30003dba
push 0xa
pop eax
push eax
push esi
push 0
push 0x30000000
call main
mov dword [0x300097b8], eax
cmp dword [0x300097ac], 0
jne 0x30003e31
push eax
call dword [sym.imp.msvcr80.dll_exit]
cmp al, 0x22
jne 0x30003dec
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcr80.dll__ismbblead]
pop ecx
test eax, eax
je 0x30003dff
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x30003d88
cmp dword [0x300097bc], 0
jne 0x30003e40
call dword [sym.imp.msvcr80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x300097b8]
jmp 0x30003e61
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.300042cd
ret
call main
jmp 0x30003c88
Function at 0x10002bd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10026b70
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x10034100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
xorps xmm0, xmm0
mov byte [ebp - 0x470], 0
mov dword [ebp - 0x46c], 6
mov dword [ebp - 0x468], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x18], xmm0
mov eax, dword [esi + 0x10]
xor ecx, ecx
inc eax
mov dword [ebp - 4], 0
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001d8ad
add esp, 4
mov ecx, eax
cmp dword [esi + 0x14], 7
mov dword [ebp - 0x20], ecx
jbe 0x10002c62
mov esi, dword [esi]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10002c62
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x474]
push eax
push 0x460
lea eax, [ebp - 0x470]
mov dword [ebp - 0x14], ecx
push eax
push dword [0x100353a4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001d8b6
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100031e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
pop ebp
jmp fcn.10002af0

Function at 0x10003210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
pop ebp
jmp fcn.10002cc0

Function at 0x10003220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
pop ebp
jmp fcn.10002d80

Function at 0x10003230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
pop ebp
jmp fcn.10002e40

Function at 0x100032a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
pop ebp
jmp fcn.10002f70
Function at 0x100032b0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10026bf0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc48
mov eax, dword [0x10034100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc2c], ecx
mov eax, dword [ebx + 0xc]
lea edi, [ebp - 0xc28]
mov esi, dword [ebx + 8]
mov ecx, 0x182
rep movsd dword es:[edi], dword [esi]
xor edx, edx
lea esi, [ebp - 0xc28]
movups xmm0, xmmword [eax]
mov ecx, 0x182
lea edi, [ebp - 0x61c]
rep movsd dword es:[edi], dword [esi]
movups xmmword [ebp - 0xc58], xmm0
movups xmmword [ebp - 0xc48], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xc38], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], dx
lea eax, [ebp - 0x410]
mov dword [ebp - 4], edx
push eax
lea eax, [ebp - 0xa10]
mov dword [ebp - 0x628], edx
push 0x1f4
push eax
call fcn.1001ed90
mov eax, dword [ebp - 0xc38]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001d8ad
mov esi, dword [ebp - 0xc58]
lea ecx, [ebp - 0xc48]
add esp, 0x10
mov edx, eax
cmp dword [ebp - 0xc34], 7
mov dword [ebp - 0x628], edx
cmova ecx, esi
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x100033b0
mov edi, dword [ebp - 0xc2c]
push 0
push 0
push 0x3ec
mov eax, dword [edi + 4]
inc dword [eax]
lea eax, [ebp - 0xa10]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100033f2
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc34]
cmp eax, 7
jbe 0x10003428
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x1000341e
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003448
push ecx
push esi
call fcn.1001d89f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1001d8b6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.1001ec00
int3

Function at 0x100035e0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 4
call fcn.1001d86f
mov esi, eax
add esp, 4
test esi, esi
je 0x100035fe
mov dword [esi], 0
jmp 0x10003600
xor esi, esi
mov eax, dword [ebp + 0x288]
push 0
push 0
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x284]
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov ecx, dword [ebp - 4]
sub esp, 0x28
mov eax, esp
sub esp, 0x278
mov edi, esp
push dword [ebp + 8]
mov dword [eax + 4], esi
lea esi, [ebp + 0xc]
mov dword [eax + 8], ecx
mov ecx, 0x9e
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_d5100133af80b12a3e3dd44c7bcb0575___void__struct_HookParam__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___.0
mov dword [eax + 0x24], eax
rep movsd dword es:[edi], dword [esi]
call fcn.10014840
add esp, 0x2a4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10003770
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0
push 0x100353a4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreatePipe]
sub esp, 0x28
mov eax, esp
sub esp, 0x28
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_c2ef93eccb59abfad8aae9687a608b10___void__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____struct_ThreadParam__.0
mov dword [eax + 0x24], eax
mov eax, esp
sub esp, 0x28
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_497b18fe317f7d4c8395f5d607e8cf4e___void__unsigned_long_long_unsigned___int64___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____.0
mov dword [eax + 0x24], eax
mov eax, esp
sub esp, 0x28
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_477f48146a8e4ba93f4a44024a2ab751___void__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____.0
mov dword [eax + 0x24], eax
mov eax, esp
sub esp, 0x28
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_80cf92de41470ca1e458c6e6fcf8331c___bool__class_TextThread___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____.0
mov dword [eax + 0x24], eax
mov eax, esp
sub esp, 0x28
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_749db9615ff5af5479f91f9be945bff5___void__class_TextThread__.0
mov dword [eax + 0x24], eax
mov eax, esp
sub esp, 0x28
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_504a63602a52f752bfc55c1819df4492___void__class_TextThread__.0
mov dword [eax + 0x24], eax
mov eax, esp
sub esp, 0x28
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_45c0fe9e88262ad828d8e6e2ab17fb1e___void__unsigned_long_int_.0
mov dword [eax + 0x24], eax
mov eax, esp
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_9e5f018547949660351f28be45fd5ed1___void__unsigned_long_int_.0
mov dword [eax + 0x24], eax
call fcn.10017150
add esp, 0x140
mov esp, ebp
pop ebp
ret
Function at 0x100038b0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f4
mov eax, dword [0x10034100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push eax
mov dword [ebp - 0x3f4], eax
call fcn.10014a70
add esp, 4
test eax, eax
je 0x1000398c
push esi
add eax, 0x158
push 0x3e8
push eax
call fcn.1001ed90
mov eax, ebx
add esp, 0xc
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003900
sub eax, edx
mov esi, 0x1505
push edi
sar eax, 1
xor edi, edi
add eax, eax
je 0x1000394c
nop dword [eax + eax]
dec eax
lea ebx, [ebx + 1]
mov dword [ebp - 0x3f0], eax
mov ecx, edi
mov eax, esi
shld edi, esi, 5
shl esi, 5
add esi, eax
movzx eax, byte [ebx - 1]
cdq
adc edi, ecx
add esi, eax
mov eax, dword [ebp - 0x3f0]
adc edi, edx
test eax, eax
jne 0x10003920
push edi
push esi
push dword [ebp - 0x3f4]
lea eax, [ebp - 0x3ec]
push str.LUNA_NOTIFY._d._llu
push eax
call fcn.10003fb0
add esp, 0x14
lea eax, [ebp - 0x3ec]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1001d8b6
mov esp, ebp
pop ebp
ret
Function at 0x10006d80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10026e53
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10034100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
mov byte [ebp - 4], 2
je 0x10006e7a
test dl, 0x10
jne 0x10006e7a
mov al, 1
jmp 0x10006e7c
xor al, al
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
mov ebx, dword [ecx + 4]
mov edx, ebx
mov esi, dword [esi + 0x18]
sar edx, 3
cmp esi, edx
jae 0x10006ea0
lea eax, [esi*8]
mov dword [ecx + 4], eax
jmp 0x10006ed3
jbe 0x10006ed3
mov eax, dword [ecx + 8]
sar eax, 3
cmp esi, eax
jbe 0x10006eb8
lea eax, [ebp + 0x17]
push eax
push esi
call fcn.10005f70
jmp 0x10006ed3
sub esi, edx
je 0x10006ed0
shl esi, 3
push esi
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [edi + 0x40]
add ebx, esi
mov dword [ecx + 4], ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c