joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f590
Capabilities:
Create thread
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x100
push 0
push 0x1012c428
mov esi, eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov edi, edi
mov cl, byte [eax + 0x1001b060]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x1012c428], cl
inc eax
cmp eax, 0x100
jl 0x1000f5b0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push 1
push eax
push 0x1012c428
push 0
mov ecx, 0x10121080
call fcn.10007010
mov eax, dword [0x101261dc]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [sym.imp.USER32.dll_UnregisterClassA]
add esp, 0x14
test eax, eax
je 0x1000f620
push 0
push 0
push 0x10
push eax
call edi
mov ecx, dword [0x10126e7c]
mov edx, dword [str.SPLASH]
push ecx
push edx
mov dword [0x101261dc], 0
call ebx
mov eax, dword [0x10126304]
test eax, eax
je 0x1000f64b
push 0
push 0
push 0x10
push eax
call edi
mov eax, dword [0x10126e7c]
mov ecx, dword [str.SPLASH]
push eax
push ecx
mov dword [0x10126304], 0
call ebx
mov eax, dword [0x1012642c]
test eax, eax
je 0x1000f676
push 0
push 0
push 0x10
push eax
call edi
mov edx, dword [0x10126e7c]
mov eax, dword [str.SPLASH]
push edx
push eax
mov dword [0x1012642c], 0
call ebx
mov eax, dword [ebp + 8]
sub eax, 0
je 0x1000f69c
dec eax
je 0x1000f690
dec eax
jne 0x1000f6a8
mov eax, 0x6a
mov ecx, 0x2b39c0
jmp 0x1000f6ae
mov eax, 0x69
mov ecx, 0x227ee6
jmp 0x1000f6ae
mov eax, 0x67
mov ecx, 0xf1f0ec
jmp 0x1000f6ae
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
push ecx
push eax
mov eax, dword [ebp + 0xc]
call fcn.1000ed00
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push esi
push 0x1000f4f0
push 0
push 0
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x1000f72f
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 8], 0
je 0x1000f72f
mov eax, dword [esi + 4]
test eax, eax
je 0x1000f72a
push 0
push 0
push 0x10
push eax
call edi
mov eax, dword [0x10126e7c]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
mov dword [esi + 4], 0
call ebx
call fcn.1000f160
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1000f740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x100
push 0
push 0x1012c428
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp + 8]
add esp, 0xc
xor eax, eax
sub ecx, 0x1012c428
mov dl, byte [ecx + eax + 0x1012c428]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x1012c428], dl
inc eax
cmp eax, 0x100
jl 0x1000f762
mov eax, 0x1012c428
pop ebp
ret
Function at 0x1000f840
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x1001b018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.1000f790
mov esi, eax
lea eax, [ebp - 0x50]
push eax
push 0xf003f
push 0
push 0x10121386
mov ecx, 9
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
push getpeername
mov dword [ebp - 0x54], 0x24
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000f8cb
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x4c]
push edx
push eax
push eax
mov eax, dword [ebp - 0x50]
push str.WindowID
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x28]
test eax, eax
je 0x1000f8de
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
push ecx
push edx
push 1
push 0
push str.WindowID
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x28]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012844
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x4c]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1000f901
test al, al
je 0x1000f8fd
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1000f901
add ecx, 2
add edx, 2
test al, al
jne 0x1000f8e1
xor eax, eax
jmp 0x1000f906
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000f8c1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
lea eax, [ebp - 0x4c]
pop esi
call fcn.10012844
mov esp, ebp
pop ebp
ret

Function at 0x1000f920
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1001b018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.1000f790
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
push 0xf003f
push 0
push 0x10121386
mov ecx, 9
lea edi, [ebp - 0x28]
push getpeername
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000f984
mov edx, dword [ebp - 0x2c]
push 0x24
lea ecx, [ebp - 0x28]
push ecx
push 1
push eax
push str.WindowID
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10012844
mov esp, ebp
pop ebp
ret
Function at 0x1000f9a0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1001b018]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1000f9d7
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012844
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1000f9c7
mov edx, dword [ebp - 0x20]
push 0
push 0
xor eax, eax
push 0x10
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
push ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x18]
push 0
push edx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10012844
mov esp, ebp
pop ebp
ret

Function at 0x1000fa40
Capabilities:
Hide thread from debugger

Disassembly:
push esi
push str.NtSetInformationThread
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x1000fa62
xor al, al
pop esi
ret
push 0
push 0
push 0x11
test edi, edi
jne 0x1000fa7c
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
test eax, eax
sete al
pop esi
ret
push edi
call esi
test eax, eax
sete al
pop esi
ret

Function at 0x100104d0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [0x10121044]
push edi
cmp esi, dword [0x10121048]
je 0x1001059e
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
nop
cmp byte [esi], 2
jne 0x1001050e
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 1]
push ecx
xor ebx, ebx
push getpeername
mov dword [ebp - 4], ebx
call edi
cmp dword [ebp - 4], ebx
jne 0x10010523
add esi, 0x105
cmp esi, dword [0x10121048]
jne 0x100104f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x10121048]
mov esi, dword [0x10121044]
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10010586
xor edi, edi
cmp byte [edi + esi], 2
jne 0x10010562
lea ecx, [edi + esi + 1]
push ecx
push getpeername
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov esi, dword [0x10121044]
mov ecx, dword [0x10121048]
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
add edi, 0x105
cmp ebx, eax
jb 0x10010546
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 6
call fcn.10004680
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100105e0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x1001b018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10121054]
push ebx
push esi
push edi
mov dword [ebp - 0x138], eax
cmp eax, dword [0x10121058]
je 0x100107a7
mov edi, dword [ebp - 0x134]
lea esi, [eax + 1]
xor ebx, ebx
jmp 0x10010620
movzx eax, byte [eax]
cmp eax, 3
ja case.default.0x1001062c
jmp dword [eax*4 + 0x100107b8]
push esi
push ebx
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
cmp edi, ebx
je case.default.0x1001062c
lea ecx, [ebp - 0x134]
push ecx
push edi
mov dword [ebp - 0x134], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x138]
push edx
inc eax
push eax
jmp 0x1001079d
push ebx
push esi
push ebx
push ebx
call dword [sym.imp.USER32.dll_FindWindowExA]
mov edi, eax
cmp edi, ebx
jne 0x10010645
jmp case.default.0x1001062c
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x130]
push ecx
push eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10010746
mov ecx, esi
lea eax, [ebp - 0x10c]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100106e0
cmp dl, bl
je 0x100106dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100106e0
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x100106c0
xor eax, eax
jmp 0x100106e5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x1001072a
mov edx, dword [ebp - 0x128]
push edx
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x13c]
push eax
push edi
mov dword [ebp - 0x13c], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [ebp - 0x13c]
push ecx
push esi
push 8
call fcn.10004680
add esp, 0xc
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x100106b1
mov eax, dword [ebp - 0x134]
cmp eax, 0xffffffff
je case.default.0x1001062c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.default.0x1001062c
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x10010794
mov eax, dword [ebp - 0x138]
add eax, 0x41
add esi, 0x41
mov dword [ebp - 0x138], eax
cmp eax, dword [0x10121058]
jne 0x10010620
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012844
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x138]
push ebx
inc ecx
push ecx
push 8
call fcn.10004680
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10012844
mov esp, ebp
pop ebp
ret
Function at 0x10010870
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10010a10
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10010934
cmp dword [ebp - 4], 0x50000000
jb 0x100108b1
cmp dword [ebp - 4], 0x80000000
ja 0x100108b1
mov dword [ebp - 4], 0x4fff0000
jmp 0x1001088a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100108d7
jmp 0x10010934
cmp dword [ebp - 0x14], 0x10000
jne 0x1001091a
cmp dword [ebp - 0x18], 0x10000
jb 0x1001091a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1001090d
mov eax, dword [ebp - 8]
jmp 0x10010936
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1001092f
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10010a10
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1001088a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10010940
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10010a40
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x100109fc
cmp dword [ebp - 4], 0x50000000
jb 0x1001097c
cmp dword [ebp - 4], 0x80000000
ja 0x1001097c
mov dword [ebp - 4], 0x80010000
jmp 0x10010955
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100109a2
jmp 0x100109fc
cmp dword [ebp - 0x14], 0x10000
jne 0x100109e5
cmp dword [ebp - 0x18], 0x10000
jb 0x100109e5
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100109d8
mov eax, dword [ebp - 8]
jmp 0x100109fe
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100109f7
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10010a40
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10010955
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10011170
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x10011185
xor eax, eax
jmp 0x100111fa
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x10000
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x100111b2
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x38d
jae 0x100111f5
mov edx, dword [ebp - 4]
imul edx, edx, 0x48
mov eax, dword [ebp - 8]
cmp dword [eax + edx + 0x40], 0
je 0x100111f3
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0xc]
jb 0x100111ef
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0x10]
jb 0x100111f3
xor eax, eax
jmp 0x100111fa
jmp 0x100111a9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x100113c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10126aa0]
mov dword [ebp - 4], eax
jmp 0x100113d9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100113f6
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x100113d0
mov esp, ebp
pop ebp
ret
Function at 0x10011840
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10126ab0], eax
je 0x1001185e
mov eax, 0x10dd
jmp 0x1001193f
mov eax, dword [0x10126ac0]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100118dc
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x100118ba
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x100118ba
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10010ee0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10011866
mov dword [0x10126ac0], 0
call fcn.10011200
mov ecx, dword [0x10126abc]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10011929
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x100118f4
mov dword [0x10126abc], 0
mov dword [0x10126ab0], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10011e30
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10126ab4], 0
je 0x10011e49
mov eax, dword [0x10126ab4]
jmp 0x10011ee9
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x10011e5b
xor eax, eax
jmp 0x10011ee9
push 8
call fcn.10012964
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10011eb1
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x10011e9a
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10126ab4], eax
mov dword [0x10126ab8], 0
mov eax, dword [ebp - 8]
jmp 0x10011ee9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10011ecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x10011e7b
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10126abc]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10126abc], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10012844
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001b018]
jne 0x1001284e
repz ret
jmp fcn.10012d87
Function at 0x401bc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4267bc
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x43c648]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi], vtable.CChannelStream.2.0
mov dword [esi + 4], vtable.CChannelStream.1.0
mov dword [esi + 8], vtable.CChannelStream.0
mov dword [esp + 0x14], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
push eax
push eax
lea ecx, [esi + 0x40]
mov byte [esp + 0x1c], 3
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call fcn.00401420
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4030f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x426a9e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x43c648]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push 0x42c018
lea ebx, [esi + 0x54]
push ebx
push eax
push ecx
mov ecx, esi
call fcn.004173e0
push ebx
mov dword [esp + 0x20], 0
mov dword [esi], vtable.CDeviceHandleInputFilter.3.0
mov dword [esi + 0xc], vtable.CDeviceHandleInputFilter.2.0
mov dword [esi + 0x10], vtable.CDeviceHandleInputFilter.1.0
mov dword [esi + 0x50], vtable.CDeviceHandleInputFilter.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edx, dword [esp + 0x30]
push str.Input
push edx
push ebx
push esi
lea edi, [esi + 0x70]
push 0x42a9d0
mov ecx, edi
mov byte [esp + 0x30], 1
call fcn.00417640
mov eax, dword [esp + 0x24]
mov dword [edi], vtable.CDeviceHandleInputPin.3.0
mov dword [edi + 0xc], vtable.CDeviceHandleInputPin.2.0
mov dword [edi + 0x10], vtable.CDeviceHandleInputPin.1.0
mov dword [edi + 0x98], vtable.CDeviceHandleInputPin.0
mov dword [edi + 0xe0], eax
mov ecx, dword [0x43fda0]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov byte [esp + 0x1c], 2
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x10
Function at 0x405490
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
jne 0x4054a0
mov eax, 0x80070057
pop ebp
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4054c6
pop esi
pop ebx
mov eax, 0x80070057
pop ebp
ret
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40550d
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40550d
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40550d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x405531
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x405520
call esi
pop edi
pop esi
pop ebx
pop ebp
ret
call esi
pop edi
pop esi
and eax, 0xffff
pop ebx
or eax, 0x80070000
pop ebp
ret
push ebx
push edi
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
pop edi
pop esi
pop ebx
pop ebp
ret