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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10030d88
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1003a470]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x1000fabc
xor eax, eax
jmp 0x1000fc41
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x1000fae5
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x1000fae5
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x1000fc41
cmp dword [edi + 0x54], 0
je 0x1000fc3e
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x1000fb0d
mov edx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
mov dword [ecx], edx
mov ecx, dword [edi + 0x20]
mov dword [ecx], eax
mov edx, dword [edi + 0x30]
sub eax, eax
mov dword [edx], eax
cmp dword [edi + 0x44], 0
jne 0x1000fb33
mov edi, dword [edi + 0x54]
movsx eax, bl
push edi
push eax
call fcn.1001660d
add esp, 8
cmp eax, 0xffffffff
je 0x1000fc3e
mov eax, ebx
jmp 0x1000fc41
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.10010620
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
jmp 0x1000fb50
mov edx, eax
cmp ebx, 0x10
jae 0x1000fb5c
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push edx
push eax
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x2d]
push edx
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x14]
call eax
test eax, eax
js 0x1000fc36
cmp eax, 1
jg 0x1000fbf0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x1000fb9c
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x1000fbc5
cmp ebx, 0x10
jae 0x1000fbab
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.10018566
add esp, 0x10
cmp esi, eax
jne 0x1000fc36
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x2d]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x38], edx
jne 0x1000fc29
test esi, esi
jne 0x1000fb50
cmp dword [ebp - 0x1c], 0x20
jae 0x1000fc36
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.10010680
jmp 0x1000fb45
cmp eax, 3
jne 0x1000fc36
mov edi, dword [edi + 0x54]
movsx eax, byte [ebp - 0x2d]
push edi
push eax
call fcn.1001660d
add esp, 8
cmp eax, 0xffffffff
je 0x1000fc1a
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.1000efa0
mov eax, esi
jmp 0x1000fc41
lea ecx, [ebp - 0x2c]
or esi, 0xffffffff
call fcn.1000efa0
mov eax, esi
jmp 0x1000fc41
lea ecx, [ebp - 0x2c]
call fcn.1000efa0
mov eax, dword [ebp + 8]
jmp 0x1000fc41
lea ecx, [ebp - 0x2c]
call fcn.1000efa0
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100164f9
mov esp, ebp
pop ebp
ret 4
Function at 0x10010df0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10030e48
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1003a470]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x10010ef8
cmp byte [edi + 0x49], 0
je 0x10010ef8
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x10010eec
lea esi, [ebp - 0x2c]
call fcn.10010620
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x10010e63
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x10010e8c
dec eax
je 0x10010e90
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x10010ee7
jmp 0x10010ef3
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x10010ea0
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x10010ec9
cmp ebx, 0x10
jae 0x10010eaf
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.10018566
add esp, 0x10
cmp esi, eax
jne 0x10010ee4
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x10010ef0
test esi, esi
jne 0x10010e57
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.10010680
jmp 0x10010e51
lea ecx, [ebp - 0x2c]
call fcn.1000efa0
xor al, al
jmp 0x10010efa
lea ecx, [ebp - 0x2c]
call fcn.1000efa0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100164f9
mov esp, ebp
pop ebp
ret
Function at 0x100112c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10030cfb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1003a470]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100160ad
push 4
mov dword [ebp - 4], 0
call fcn.1001888b
mov edi, eax
add esp, 4
test edi, edi
je 0x1001133c
call fcn.10015ea8
mov dword [edi], eax
call fcn.10015c67
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.1001606e
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x10011332
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.10016096
jmp 0x1001133e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10012e50
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0xdd
xor ecx, ecx
jmp 0x10012e60
mov al, byte [edi + ecx - 0x6db8ad5e]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0x16
jb 0x10012e60
mov byte [esi + 0x16], 0
mov eax, esi
ret

Function at 0x10013130
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4c
xor ecx, ecx
jmp 0x10013140
mov al, byte [edi + ecx - 0x50313068]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0x1a
jb 0x10013140
mov byte [esi + 0x1a], 0
mov eax, esi
ret

Function at 0x10013160
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x82
xor ecx, ecx
jmp 0x10013170
mov al, byte [edi + ecx + 0x2e62e9b2]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0x19
jb 0x10013170
mov byte [esi + 0x19], 0
mov eax, esi
ret

Function at 0x10013190
Capabilities:
Encode data using xor

Disassembly:
mov edx, 9
xor ecx, ecx
jmp 0x100131a0
mov al, byte [edi + ecx - 0x7bd60ae8]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0x1a
jb 0x100131a0
mov byte [esi + 0x1a], 0
mov eax, esi
ret

Function at 0x10013290
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0xf3
xor ecx, ecx
jmp 0x100132a0
mov al, byte [edi + ecx - 0x2b8b1aec]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0xc
jb 0x100132a0
mov byte [esi + 0xc], 0
mov eax, esi
ret
Function at 0x100132c0
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0xae
xor ecx, ecx
jmp 0x100132d0
mov al, byte [edi + ecx - 0x37b821da]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0xe
jb 0x100132d0
mov byte [esi + 0xe], 0
mov eax, esi
ret

Function at 0x100132f0
Capabilities:
Encode data using xor

Disassembly:
mov edx, 6
xor ecx, ecx
jmp 0x10013300
mov al, byte [edi + ecx - 0x58ac7a1c]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0xf
jb 0x10013300
mov byte [esi + 0xf], 0
mov eax, esi
ret

Function at 0x10013320
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x34
xor ecx, ecx
jmp 0x10013330
mov al, byte [edi + ecx + 0x32593faf]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0xf
jb 0x10013330
mov byte [esi + 0xf], 0
mov eax, esi
ret

Function at 0x10013350
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x15
xor ecx, ecx
jmp 0x10013360
mov al, byte [edi + ecx + 0x43f2140e]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0xf
jb 0x10013360
mov byte [esi + 0xf], 0
mov eax, esi
ret

Function at 0x10013700
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0xd9
xor ecx, ecx
jmp 0x10013710
mov al, byte [edi + ecx - 0x1a2e1036]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0xd
jb 0x10013710
mov byte [esi + 0xd], 0
mov eax, esi
ret

Function at 0x10013730
Capabilities:
Encode data using xor

Disassembly:
mov edx, 1
xor ecx, ecx
jmp 0x10013740
mov al, byte [edi + ecx + 0x3ed419b4]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0xb
jb 0x10013740
mov byte [esi + 0xb], 0
mov eax, esi
ret

Function at 0x100137f0
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0xe8
xor ecx, ecx
jmp 0x10013800
mov al, byte [edi + ecx + 0x3566316e]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0x2a
jb 0x10013800
mov byte [esi + 0x2a], 0
mov eax, esi
ret

Function at 0x100139b0
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x54
xor ecx, ecx
jmp 0x100139c0
mov al, byte [edi + ecx + 0x6479c1c1]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0x40
jb 0x100139c0
mov byte [esi + 0x40], 0
mov eax, esi
ret

Function at 0x10013aa0
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x1c
xor ecx, ecx
jmp 0x10013ab0
mov al, byte [edi + ecx - 0x39c505e0]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0xd
jb 0x10013ab0
mov byte [esi + 0xd], 0
mov eax, esi
ret

Function at 0x10013ad0
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0xeb
xor ecx, ecx
jmp 0x10013ae0
mov al, byte [edi + ecx + 0x42f8c73d]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0x17
jb 0x10013ae0
mov byte [esi + 0x17], 0
mov eax, esi
ret

Function at 0x10013b00
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0xde
xor ecx, ecx
jmp 0x10013b10
mov al, byte [edi + ecx - 0x33d363a2]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0x2e
jb 0x10013b10
mov byte [esi + 0x2e], 0
mov eax, esi
ret
Function at 0x10013cd0
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x1b
xor ecx, ecx
jmp 0x10013ce0
mov al, byte [edi + ecx - 0x56714f1a]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0x1b
jb 0x10013ce0
mov byte [esi + 0x1b], 0
mov eax, esi
ret

Function at 0x100146f0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x1014281c]
push esi
xor esi, esi
cmp eax, esi
je 0x1001470b
lea esp, [esp]
cmp dword [eax + 4], esi
jne 0x10014753
mov eax, dword [eax]
cmp eax, esi
jne 0x10014700
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp eax, esi
je 0x10014753
lea ecx, [eax + 0x20]
mov edx, ecx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
sub edx, eax
nop
mov esi, dword [eax + 4]
mov dword [ecx], esi
mov dword [eax + 4], ecx
add edx, 0x20
add ecx, 0x20
cmp edx, 0xfe0
jbe 0x10014730
mov ecx, dword [0x1014281c]
mov dword [eax], ecx
mov dword [0x1014281c], eax
pop esi
ret
Function at 0x100150f0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1003a470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100151d4
lea eax, [ebp - 0x20]
push eax
push ebx
mov dword [ebp - 0x20], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x100151cd
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp dword [ebp - 0x20], 0x10
jb 0x100151b2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x100151b2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x100151b2
mov eax, dword [esi]
test eax, eax
jne 0x10015177
mov ecx, dword [0x101411d8]
push 0x200
push eax
push ecx
mov dword [esi + 4], 0x80
call edi
mov dword [esi], eax
test eax, eax
je 0x100151cc
jmp 0x100151a4
mov ecx, dword [esi + 4]
cmp dword [esi + 8], ecx
jb 0x100151a4
lea edx, [ecx*8]
push edx
push eax
mov eax, dword [0x101411d8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x100151cc
mov ecx, dword [esi + 4]
add ecx, ecx
mov dword [esi + 4], ecx
mov dword [esi], eax
mov edx, dword [esi + 8]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x18]
mov dword [eax + edx*4], ecx
inc dword [esi + 8]
lea edx, [ebp - 0x20]
push edx
push ebx
mov dword [ebp - 0x20], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10015137
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100164f9
mov esp, ebp
pop ebp
ret

Function at 0x100151f0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.100150f0
cmp dword [esi], ebx
je 0x1001524b
cmp dword [esi + 8], ebx
jbe 0x1001524b
push edi
mov eax, dword [esi]
mov ecx, dword [eax + ebx*4]
push ecx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10015244
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
push edi
call fcn.10014f90
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [esi + 8]
jb 0x10015210
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10015250
Capabilities:
Resume thread

Disassembly:
cmp dword [ebx], 0
je 0x1001529d
push edi
xor edi, edi
cmp dword [ebx + 8], edi
jbe 0x1001528b
push esi
mov edi, edi
mov eax, dword [ebx]
mov ecx, dword [eax + edi*4]
push ecx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x10015284
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebx + 8]
jb 0x10015260
pop esi
mov edx, dword [ebx]
mov eax, dword [0x101411d8]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
ret
Function at 0x100152a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
imul esi, esi, 0x2c
add esi, dword [0x10142810]
push edi
test byte [esi + 0x14], 1
mov edi, dword [esi]
mov ebx, 5
je 0x100152c6
sub edi, ebx
mov ebx, 7
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100152e4
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [edi], 0xe9
mov ecx, dword [esi + 4]
sub ecx, edi
sub ecx, 5
mov dword [edi + 1], ecx
test byte [esi + 0x14], 1
je 0x100152ff
mov eax, dword [esi]
mov word [eax], 0xf9eb
mov eax, dword [ebp - 4]
lea edx, [ebp - 4]
push edx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10015330
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [0x10142818]
push esi
xor edx, edx
xor esi, esi
mov dword [ebp - 4], edx
test ecx, ecx
je 0x10015405
mov eax, dword [0x10142810]
push ebx
add eax, 0x14
mov bl, 2
test byte [eax], bl
je 0x1001536b
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x10015357
pop ebx
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x10015363
push edi
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
call fcn.100151f0
add esp, 8
cmp esi, dword [0x10142818]
jae 0x100153b5
mov edi, esi
imul edi, edi, 0x2c
lea ecx, [ecx]
mov eax, dword [0x10142810]
test byte [edi + eax + 0x14], bl
jne 0x100153a9
mov eax, esi
call fcn.100152a0
mov dword [ebp - 4], eax
test eax, eax
jne 0x100153b5
inc esi
add edi, 0x2c
cmp esi, dword [0x10142818]
jb 0x10015390
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x100153fb
xor edi, edi
cmp dword [ebp - 8], edi
jbe 0x100153eb
mov ecx, dword [ebx + edi*4]
push ecx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x100153e5
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebp - 8]
jb 0x100153c3
mov edx, dword [0x101411d8]
push ebx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100164f9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1003a470]
jne 0x10016503
repz ret
jmp fcn.1001bb28

Function at 0x1001ff85
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x1001ffac
call fcn.1001c209
mov dword [eax], esi
call fcn.1001c1f6
push 0x16
pop esi
mov dword [eax], esi
call fcn.1001c1a4
mov eax, esi
jmp 0x10020001
test dword [ebp + 0xc], 0xfffffff9
jne 0x1001ff92
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1001ffd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1001c21c
pop ecx
call fcn.1001c1f6
mov eax, dword [eax]
jmp 0x10020001
test al, 0x10
jne 0x1001ffff
test al, 1
je 0x1001ffff
test byte [ebp + 0xc], 2
je 0x1001ffff
call fcn.1001c209
mov dword [eax], 5
call fcn.1001c1f6
mov dword [eax], 0xd
jmp 0x1001ffd0
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10027a29
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1003a470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1001de10
and dword [ebp - 0x14], 0
cmp dword [0x101409c0], 0
mov dword [ebp - 0x18], eax
jne 0x10027adc
push 0x10034c2c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10027b84
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10027b84
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x101409c0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x101409c4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x101409c8], eax
call edi
push eax
call esi
mov dword [0x101409d0], eax
test eax, eax
je 0x10027adc
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x101409cc], eax
mov eax, dword [0x101409cc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10027b35
cmp dword [0x101409d0], ecx
je 0x10027b35
push eax
call esi
push dword [0x101409d0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10027b35
test ebx, ebx
je 0x10027b35
call edi
test eax, eax
je 0x10027b2c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10027b2c
test byte [ebp - 8], 1
jne 0x10027b35
or dword [ebp + 0x10], 0x200000
jmp 0x10027b68
mov eax, dword [0x101409c4]
cmp eax, dword [ebp - 0x18]
je 0x10027b68
push eax
call esi
test eax, eax
je 0x10027b68
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10027b68
mov eax, dword [0x101409c8]
cmp eax, dword [ebp - 0x18]
je 0x10027b68
push eax
call esi
test eax, eax
je 0x10027b68
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x101409c0]
call esi
test eax, eax
je 0x10027b84
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10027b86
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100164f9
leave
ret
Function at 0x1002e2f0
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.1002e4a0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1002e3bd
mov edx, dword [ebp - 4]
cmp edx, dword [0x1003a194]
jb 0x1002e33a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1003a198]
ja 0x1002e33a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1002e30a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1001b890
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 0x1002e360
jmp 0x1002e3bd
cmp dword [ebp - 0x14], 0x10000
jne 0x1002e3a3
cmp dword [ebp - 0x18], 0x10000
jb 0x1002e3a3
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 0x1002e396
mov eax, dword [ebp - 8]
jmp 0x1002e3bf
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1002e3b8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1002e4a0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1002e30a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1002e3d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1002e4d0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1002e495
mov edx, dword [ebp - 4]
cmp edx, dword [0x1003a194]
jb 0x1002e415
mov eax, dword [ebp - 4]
cmp eax, dword [0x1003a198]
ja 0x1002e415
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1002e3e5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1001b890
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 0x1002e43b
jmp 0x1002e495
cmp dword [ebp - 0x14], 0x10000
jne 0x1002e47e
cmp dword [ebp - 0x18], 0x10000
jb 0x1002e47e
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 0x1002e471
mov eax, dword [ebp - 8]
jmp 0x1002e497
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1002e490
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1002e4d0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1002e3e5
xor eax, eax
mov esp, ebp
pop ebp
ret