joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4493e0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x10]
push 2
push ecx
push esi
mov dword [esp + 0x1c], 0
call edi
test eax, eax
jne 0x449410
pop edi
pop esi
pop ecx
ret 8
cmp dword [esp + 0x10], 2
je 0x44941f
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], 1
call edi
test eax, eax
jne 0x449442
pop edi
pop esi
pop ecx
ret 8
cmp dword [esp + 0x10], 2
je 0x449451
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], ecx
call edi
test eax, eax
jne 0x449474
pop edi
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 2
pop edi
sete al
pop esi
pop ecx
ret 8
Function at 0x4494c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
mov eax, dword [esp + 0x24]
push ebp
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
mov esi, ecx
push 0x40000000
push eax
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], ebx
je 0x449637
mov edi, dword [esp + 0x2c]
mov ecx, dword [edi + 0x20c]
push ecx
push ebx
mov ecx, esi
call fcn.004493e0
test eax, eax
jne 0x449523
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 8
mov eax, dword [edi + 0x20c]
xor ebp, ebp
test eax, eax
jbe 0x4495d2
lea esi, [edi + 0x224]
mov al, byte [esi - 0x10]
mov dl, byte [esi - 0x14]
mov byte [esp + 0x19], al
mov eax, dword [esi]
mov byte [esp + 0x18], dl
mov byte [esp + 0x1b], 0
mov cx, word [eax + 0xc]
mov word [esp + 0x1c], cx
mov dx, word [eax + 0xe]
mov word [esp + 0x1e], dx
mov ecx, dword [esp + 0x1e]
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
and eax, 0xffff
imul ecx, eax
cmp ecx, 8
jl 0x449582
mov byte [esp + 0x1a], 0
jmp 0x44958a
mov dl, 1
shl dl, cl
mov byte [esp + 0x1a], dl
mov eax, dword [esi - 4]
mov ecx, dword [esp + 0x14]
push ebp
push edi
mov dword [esp + 0x28], eax
call fcn.00449490
lea ecx, [esp + 0x30]
push 0
push ecx
lea edx, [esp + 0x20]
push 0x10
push edx
push ebx
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x449637
cmp dword [esp + 0x30], 0x10
jne 0x449637
mov eax, dword [edi + 0x20c]
inc ebp
add esi, 0x20
cmp ebp, eax
jb 0x449539
mov eax, dword [edi + 0x20c]
xor ebx, ebx
test eax, eax
jbe 0x44962c
lea esi, [edi + 0x224]
mov eax, dword [esi]
push 0
mov ebp, dword [eax + 0x14]
mov dword [eax + 0x14], 0
mov ecx, dword [esi - 4]
mov edx, dword [esi - 8]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x449637
mov ecx, dword [esp + 0x30]
mov eax, dword [esi - 4]
cmp ecx, eax
jne 0x449637
mov edx, dword [esi]
inc ebx
add esi, 0x20
mov dword [edx + 0x14], ebp
mov eax, dword [edi + 0x20c]
cmp ebx, eax
jb 0x4495e4
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 8
Function at 0x449650
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4496cf
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x4496cf
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4496cf
push ebx
push ebp
push edi
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esi + 0x10]
mov esi, dword [esi + 0xc]
mov ebp, eax
mov eax, ecx
mov edi, ebp
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 8]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 8
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
ret 4
xor eax, eax
pop esi
ret 4

Function at 0x449850
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44993d
mov esi, dword [esp + 0x28]
mov ecx, edi
push esi
mov word [esp + 0x14], 0x4d42
mov word [esp + 0x1a], bp
mov word [esp + 0x1c], bp
call fcn.00449810
and eax, 0xffff
push esi
add eax, 0x36
mov ecx, edi
mov dword [esp + 0x1e], eax
call fcn.00449820
imul eax, dword [esi + 8]
mov edx, dword [esp + 0x1a]
lea ecx, [esp + 0x24]
add eax, edx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push ecx
lea edx, [esp + 0x18]
push 0xe
shr eax, 2
push edx
push ebx
mov dword [esp + 0x26], eax
call ebp
test eax, eax
je 0x449936
cmp dword [esp + 0x24], 0xe
jne 0x449936
mov eax, dword [esi + 8]
push esi
cdq
sub eax, edx
mov ecx, edi
sar eax, 1
mov dword [esi + 8], eax
call fcn.00449820
mov edi, eax
mov ecx, dword [esp + 0x1a]
imul edi, dword [esi + 8]
lea eax, [esp + 0x24]
add edi, ecx
push 0
push eax
push edi
push esi
push ebx
call ebp
test eax, eax
je 0x449936
cmp dword [esp + 0x24], edi
jne 0x449936
mov ecx, dword [esi + 8]
push ebx
shl ecx, 1
mov dword [esi + 8], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 8

Function at 0x45e89c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45e8d4
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045c941
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045c919
jmp 0x45e8e0
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x45ff8d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45ffcf
call fcn.00465a41
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45ffcf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45ffc6
xor eax, eax
jmp 0x45ffd7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045ffdd
pop edi
pop esi
pop ebx
ret 4

Function at 0x465f71
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x465f9f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x465fbd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00465ed7
jmp 0x465fbd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x465fbd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00465ed7
test edi, edi
mov eax, edi
jne 0x465fa7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x104b0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x28], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x84]
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0
jge 0x1051d
jmp 0x105f6
mov eax, dword [ebp - 8]
add eax, 0x174
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc4]
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0
je 0x105bf
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov al, byte [edx]
mov byte [ebp - 0x31], al
mov ecx, dword [ebp - 0x2c]
cmp al, byte [ecx]
jne 0x10587
cmp byte [ebp - 0x31], 0
je 0x1057e
mov edx, dword [ebp - 0x30]
mov al, byte [edx + 1]
mov byte [ebp - 0x32], al
mov ecx, dword [ebp - 0x2c]
cmp al, byte [ecx + 1]
jne 0x10587
add dword [ebp - 0x30], 2
add dword [ebp - 0x2c], 2
cmp byte [ebp - 0x32], 0
jne 0x1054a
mov dword [ebp - 0x38], 0
jmp 0x1058f
sbb edx, edx
sbb edx, 0xffffffff
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jne 0x105bf
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x28]
push eax
push 0x110f0
call sub.ntoskrnl.exe_DbgPrint
add esp, 0xc
mov dword [ebp - 0x18], 1
jmp 0x105f6
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x88]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
sub ecx, 0x88
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x20]
jne 0x105ec
xor eax, eax
jmp 0x10603
cmp dword [ebp - 8], 0
jne 0x10506
cmp dword [ebp - 0x18], 0
jne 0x10600
xor eax, eax
jmp 0x10603
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x10a40
Capabilities:
Find process by pid

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp dword [ebp - 0x10], 0
jl 0x10add
push 0x11110
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov dword [sym.imp.ntoskrnl.exe_PsProcessType], eax
cmp dword [sym.imp.ntoskrnl.exe_PsProcessType], 0
je 0x10ad4
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [sym.imp.ntoskrnl.exe_PsProcessType]
mov eax, dword [edx]
push eax
push 0x1f0fff
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call sub.ntoskrnl.exe_ObOpenObjectByPointer
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x10ad4
mov ecx, dword [ebp - 0x14]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [ebp - 4]
jmp 0x10adf
mov ecx, dword [ebp - 0x14]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10af0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [0x11414]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push edx
push 0x11150
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [ebp - 4]
push eax
push 0x11130
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10b60
Capabilities:
Allocate or change rwx memory
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0x40404040
mov dword [ebp - 0xc], 0
push 0x40
push 0x1000
push 0x11404
push 0
push 0x1148c
mov eax, dword [ebp + 8]
push eax
call sub.ntoskrnl.exe_ZwAllocateVirtualMemory
mov dword [ebp - 8], eax
mov ecx, dword [0x1148c]
push ecx
push 0x11170
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x10bc0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0x7c800000
mov eax, dword [section..data]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xc]
mov al, byte [edx]
mov byte [ebp - 0x11], al
add dword [ebp - 0xc], 1
cmp byte [ebp - 0x11], 0
jne 0x10be7
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [section..data]
push ecx
push 0x11418
call fcn.000107e0
mov dword [0x11468], 0x7c801d7b
mov dword [0x11470], 0x77d19373
mov byte [0x11474], 0xc2
mov byte [0x11475], 4
mov byte [0x11476], 0
mov byte [0x11477], 0x90
mov byte [0x11478], 0x90
mov byte [0x11479], 0x90
mov byte [0x1147a], 0x90
mov edx, dword [0x11470]
mov dword [0x11484], edx
mov eax, dword [0x1148c]
mov dword [0x1147c], eax
mov ecx, dword [0x1148c]
add ecx, 0x200
mov dword [0x11480], ecx
mov byte [0x11990], 0xea
mov edx, dword [0x11480]
mov dword [0x11991], edx
mov byte [0x11995], 0x1b
mov byte [0x11996], 0
call fcn.00010840
mov eax, dword [0x11484]
push eax
push 0x111f0
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov ecx, dword [0x11488]
push ecx
push 0x111d0
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov edx, dword [0x1147c]
push edx
push 0x111b0
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [0x11480]
push eax
push 0x11190
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x10d10
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 7
mov dword [ebp - 0x10], 0
mov eax, dword [0x11484]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0xc]
push ecx
push 0x40
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [0x11410]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10d64
xor eax, eax
jmp 0x10de7
push 0x64
push 0x11418
mov edx, dword [0x1147c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00010af0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10d88
xor eax, eax
jmp 0x10de7
mov ecx, dword [0x11488]
push ecx
push 0x11490
mov edx, dword [0x11480]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00010af0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10db1
xor eax, eax
jmp 0x10de7
push 7
push 0x11990
mov ecx, dword [0x11484]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00010af0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10dd5
xor eax, eax
jmp 0x10de7
push 0x11210
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x10e80
Capabilities:
Find process by pid
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
add ecx, 2
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x38]
mov ax, word [edx]
mov word [ebp - 0x3e], ax
add dword [ebp - 0x38], 2
cmp word [ebp - 0x3e], 0
jne 0x10ec1
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x3c]
sar ecx, 1
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x30], edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov ecx, dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x1b0]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10f82
mov ecx, dword [ebp - 0xc]
push ecx
call sub.ntoskrnl.exe_KeAttachProcess
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
push 0x11220
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2c]
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00010e00
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10f6d
mov dword [ebp - 0x14], 1
jmp 0x10f7d
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x10]
jne 0x10f3b
call sub.ntoskrnl.exe_KeDetachProcess
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 8
Function at 0x10f90
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x18], 0x112e0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0x112b0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
sub eax, 0x14
mov dword [0x11414], eax
push 0x11290
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
sub eax, 0x14
mov dword [0x11410], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.000104b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1108c
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x84]
mov dword [ebp - 8], eax
push 0x11270
mov ecx, dword [ebp - 8]
push ecx
call fcn.00010e80
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x11054
push 0x11260
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, 1
jmp 0x1109e
mov edx, dword [ebp - 0x14]
push edx
call fcn.00010490
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
call fcn.00010a40
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00010b60
call fcn.00010bc0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00010d10
mov dword [ebp - 0xc], eax
jmp 0x11099
push 0x11240
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x11aff
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.00011ac6
pop ebp
jmp fcn.00011a90
Function at 0x4010b4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
xor eax, eax
push 8
mov ecx, eax
pop edx
test cl, 1
je 0x4010d3
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x4010d5
shr ecx, 1
dec edx
jne 0x4010c4
mov dword [ebp + eax*4 - 0x400], ecx
inc eax
cmp eax, 0x100
jl 0x4010bf
xor ecx, ecx
or eax, 0xffffffff
cmp dword [ebp + 0xc], ecx
jbe 0x401114
push esi
mov edx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
mov esi, eax
and esi, 0xff
xor edx, esi
shr eax, 8
xor eax, dword [ebp + edx*4 - 0x400]
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0x4010f2
pop esi
not eax
leave
ret

Function at 0x401206
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x406018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov esi, ecx
cmp dword [esi + 0x468], ebx
push edi
mov dword [ebp - 0x218], ebx
mov eax, 0x4042dc
jne 0x401248
add esi, 0x480
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
jmp 0x401343
cmp dword [esi + 4], ebx
je 0x401262
push eax
lea eax, [esi + 0x152]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x214], eax
je 0x4012ff
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x4012ff
push ebx
push edi
push ebx
push 2
push ebx
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [ebp - 0x218], eax
je 0x4012ff
push edi
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea ecx, [edi - 4]
push ecx
push eax
mov dword [ebp - 0x21c], eax
mov dword [esi + 0x470], eax
call fcn.004010b4
pop ecx
pop ecx
mov ecx, dword [ebp - 0x21c]
cmp eax, dword [ecx + edi - 4]
je 0x4012e9
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x401305
mov ecx, esi
call fcn.0040193c
test eax, eax
je 0x4012ff
mov eax, esi
call fcn.00401352
test eax, eax
jne 0x401305
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esi, 0x470
mov eax, dword [esi]
cmp eax, ebx
je 0x40131a
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi], ebx
cmp dword [ebp - 0x218], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x401330
push dword [ebp - 0x218]
call esi
cmp dword [ebp - 0x214], 0xffffffff
je 0x401341
push dword [ebp - 0x214]
call esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004032ae
leave
ret
Function at 0x4013a2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
push 0x50000080
push 3
push edi
push 3
push 0x80000000
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40148b
mov eax, dword [ebx + 0x290]
push dword [esi + 0x464]
mov dword [esi + 0x460], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [ebx + 0x290], edi
mov dword [ebp + 8], edi
jbe 0x40147a
lea edi, [ebx + 0x29c]
push 0x14
push 9
push dword [esi + 0x468]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x401447
mov ecx, dword [edi - 4]
push 0x401a43
mov dword [eax + 8], ecx
inc dword [esi]
push eax
mov dword [eax + 0x10], esi
push dword [edi]
push dword [esi + 0x47c]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x401447
dec dword [esi]
jne 0x401441
call fcn.00401a7d
dec dword [esi + 0x460]
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add edi, 0xc
cmp eax, dword [ebx + 0x290]
jb 0x4013fe
xor edi, edi
jmp 0x40147a
push 1
push 0x1388
push dword [esi + 0x464]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp eax, edi
je 0x401482
cmp eax, 0x102
je 0x401482
cmp dword [esi + 0x460], edi
jg 0x40145c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret 4

Function at 0x401491
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edi, edi
cmp dword [esi + 4], edi
mov ebx, eax
je 0x4014b7
lea eax, [esi + 0x35a]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 1
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x401559
mov esi, dword [esi + 0x478]
mov eax, esi
imul eax, eax, 0x64
push eax
lea eax, [esi + esi]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
test eax, eax
je 0x401550
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10c], edi
mov dword [ebp - 4], edi
jbe 0x401550
lea ecx, [eax + 0x120]
mov dword [ebp + 0xc], ecx
mov ebx, dword [ecx - 4]
cmp ebx, dword [ecx]
ja 0x40153c
mov ecx, ebx
imul ecx, ecx, 0xc
lea esi, [ecx + eax + 0x29c]
mov edi, dword [esi - 8]
push dword [esi]
add edi, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualLock]
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualUnlock]
mov eax, dword [ebp + 0xc]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jbe 0x401513
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
inc dword [ebp - 4]
mov edx, dword [ebp - 4]
add ecx, 0x18
cmp edx, dword [eax + 0x10c]
mov dword [ebp + 0xc], ecx
jb 0x401500
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
leave
ret 8