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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
mov dword [ebp - 8], ecx
call fcn.100106d0
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.10010730
add esp, 8
movzx edx, al
test edx, edx
je 0x1000dc6a
lea eax, [ebp + 8]
push eax
call fcn.100106e0
add esp, 4
jmp 0x1000ddff
mov ecx, dword [ebp - 8]
call fcn.10011360
test eax, eax
je 0x1000dcb0
mov ecx, dword [ebp - 8]
call fcn.10011360
mov esi, eax
mov ecx, dword [ebp - 8]
call fcn.10011df0
cmp esi, eax
jae 0x1000dcb0
lea ecx, [ebp + 8]
push ecx
call fcn.1000de10
add esp, 4
mov byte [ebp - 1], al
mov ecx, dword [ebp - 8]
call fcn.10011c90
mov dl, byte [ebp - 1]
mov byte [eax], dl
mov eax, dword [ebp + 8]
jmp 0x1000ddff
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
jne 0x1000dcc3
call fcn.100106d0
jmp 0x1000ddff
mov ecx, dword [ebp - 8]
call fcn.100115f0
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x38], 0
jne 0x1000dd1c
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
mov dword [ebp - 0x20], eax
lea ecx, [ebp + 8]
push ecx
call fcn.1000de10
add esp, 4
mov byte [ebp - 2], al
mov edx, dword [ebp - 0x20]
push edx
movzx eax, byte [ebp - 2]
push eax
call fcn.100043b0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x1000dd0c
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], edx
jmp 0x1000dd14
call fcn.100106d0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x1000ddff
mov dword [ebp - 0x30], 0x20
lea eax, [ebp + 8]
push eax
call fcn.1000de10
add esp, 4
mov byte [ebp - 4], al
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 3]
push ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 8]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x24]
call fcn.100029b0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x1000ddfa
cmp dword [ebp - 0xc], 1
jle 0x1000dd7d
cmp dword [ebp - 0xc], 3
je 0x1000ddca
jmp 0x1000ddfa
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x54]
sub ecx, edx
mov dword [ebp - 0x10], ecx
je 0x1000ddaf
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 1
lea eax, [ebp - 0x54]
push eax
call fcn.1006bb58
add esp, 0x10
cmp dword [ebp - 0x10], eax
je 0x1000ddaf
call fcn.100106d0
jmp 0x1000ddff
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x3d], 1
lea edx, [ebp - 4]
cmp dword [ebp - 0x2c], edx
je 0x1000ddc3
mov eax, dword [ebp + 8]
jmp 0x1000ddff
call fcn.100106d0
jmp 0x1000ddff
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 4]
push edx
call fcn.100043b0
add esp, 8
movzx eax, al
test eax, eax
je 0x1000dded
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
jmp 0x1000ddf5
call fcn.100106d0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
jmp 0x1000ddff
call fcn.100106d0
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10010bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x10010bdd
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0x3e]
test edx, edx
jne 0x10010be4
mov al, 1
jmp 0x10010cd3
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x1c], edx
call fcn.10010800
mov word [ebp - 2], ax
movzx eax, word [ebp - 2]
push eax
mov ecx, dword [ebp - 0xc]
call dword [ebp - 0x1c]
mov word [ebp - 4], ax
call fcn.10010800
mov word [ebp - 6], ax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 6]
push edx
call fcn.10010870
add esp, 8
movzx eax, al
test eax, eax
je 0x10010c2e
xor al, al
jmp 0x10010cd3
mov dword [ebp - 0x28], 0x20
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0xc]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x20]
call fcn.100029f0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10010c70
cmp dword [ebp - 0x10], 1
je 0x10010c77
cmp dword [ebp - 0x10], 3
je 0x10010cc6
jmp 0x10010cd1
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x3e], 0
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
sub edx, eax
mov dword [ebp - 0x14], edx
je 0x10010ca6
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 1
lea ecx, [ebp - 0x4c]
push ecx
call fcn.1006bb58
add esp, 0x10
cmp dword [ebp - 0x14], eax
je 0x10010ca6
xor al, al
jmp 0x10010cd3
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 0x3e]
test eax, eax
jne 0x10010cba
mov dword [ebp - 0x18], 1
jmp 0x10010cc1
mov dword [ebp - 0x18], 0
mov al, byte [ebp - 0x18]
jmp 0x10010cd3
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x3e], 0
mov al, 1
jmp 0x10010cd3
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x10011680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x1001169d
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x100116a4
mov al, 1
jmp 0x1001178f
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x18], edx
call fcn.100106d0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
call dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
call fcn.100106d0
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.10010730
add esp, 8
movzx eax, al
test eax, eax
je 0x100116ea
xor al, al
jmp 0x1001178f
mov dword [ebp - 0x2c], 0x20
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x50]
push edx
mov eax, dword [ebp - 4]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x24]
call fcn.100029f0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1001172c
cmp dword [ebp - 8], 1
je 0x10011733
cmp dword [ebp - 8], 3
je 0x10011782
jmp 0x1001178d
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x3d], 0
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x50]
sub edx, eax
mov dword [ebp - 0xc], edx
je 0x10011762
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 1
lea ecx, [ebp - 0x50]
push ecx
call fcn.1006bb58
add esp, 0x10
cmp dword [ebp - 0xc], eax
je 0x10011762
xor al, al
jmp 0x1001178f
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x3d]
test eax, eax
jne 0x10011776
mov dword [ebp - 0x10], 1
jmp 0x1001177d
mov dword [ebp - 0x10], 0
mov al, byte [ebp - 0x10]
jmp 0x1001178f
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x3d], 0
mov al, 1
jmp 0x1001178f
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x100137d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 4]
push eax
push 0x40
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [0x100afbdc]
mov dword [ebp - 8], eax
push 0
push 1
lea ecx, [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
push edx
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001b5e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 4]
push eax
push 0x40
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [0x100afbdc]
mov dword [ebp - 8], ecx
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 8]
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1001b760
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
push 0x40
push 0x103000
push 0x20000
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4
Function at 0x100452c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [0x100afbdc]
mov dword [ebp - 8], eax
push 0
push 4
lea ecx, [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
push edx
push 4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1004ad00
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x9c4
mov esi, edx
call fcn.10061c92
add esp, 4
mov edi, eax
mov dword [ebp - 4], edi
push 0
push 0x9c4
push edi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov esi, edi
xor ebx, ebx
lea eax, [ebp + 8]
mov edx, esi
push eax
call fcn.1004aaa0
mov edx, dword [ebp + 8]
mov ecx, eax
cmp ecx, 2
jne 0x1004ad74
mov al, byte [edx]
cmp al, 0x70
jb 0x1004ad5e
cmp al, 0x7f
ja 0x1004ad5e
movzx eax, byte [esi + 1]
cmp eax, 0x7f
ja 0x1004ad9b
add eax, 2
jmp 0x1004ad93
cmp al, 0xeb
jne 0x1004ad9b
cmp esi, edi
jb 0x1004ad9b
movzx eax, byte [esi + 1]
cmp eax, 0x7f
ja 0x1004ad9b
lea ecx, [eax + 2]
jmp 0x1004ad9b
cmp ecx, 6
jne 0x1004ad9b
cmp byte [edx], 0xf
jne 0x1004ad9b
mov al, byte [esi + 1]
add al, 0x80
cmp al, 0xf
ja 0x1004ad9b
mov eax, dword [esi + 2]
cmp eax, 0xaf
ja 0x1004ad9b
add eax, ecx
add eax, esi
cmp eax, edi
jbe 0x1004ad9b
mov edi, eax
add ebx, ecx
cmp esi, edi
jb 0x1004ade3
cmp ecx, 1
jne 0x1004adb2
mov al, byte [edx]
cmp al, 0xcc
je 0x1004aded
cmp al, 0xc3
je 0x1004aded
jmp 0x1004ade3
cmp ecx, 3
jne 0x1004adbe
cmp byte [edx], 0xc2
je 0x1004aded
jmp 0x1004ade3
cmp ecx, 5
jne 0x1004ade3
cmp byte [edx], 0xe9
jne 0x1004ade3
mov edx, dword [esi + 1]
lea eax, [esi + 0x1500]
add edx, ecx
add edx, esi
cmp edx, eax
ja 0x1004aded
lea eax, [esi - 0x1500]
cmp edx, eax
jb 0x1004aded
add esi, ecx
test ecx, ecx
jne 0x1004ad31
push dword [ebp - 4]
call fcn.10061814
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10052a00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0x10052810
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x10057810
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 4]
push eax
push 0x40
push 2
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [0x100afbdc]
mov dword [ebp - 8], eax
push 0
push 2
lea ecx, [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
push edx
push 2
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10059530
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10088ab0
push eax
mov dword fs:[0], esp
sub esp, 0x290
push ebx
push esi
push edi
push dword [ebp + 8]
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x10059642
lea eax, [ebp - 0x298]
mov dword [ebp - 0x298], 0x224
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x1005963b
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x3c]
call fcn.1000b5b0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.1000b5b0
lea edx, [ebp - 0x3c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.100594b0
lea ecx, [ebp - 0x24]
mov bl, al
call fcn.1000b430
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.1000b430
test bl, bl
jne 0x10059657
mov edi, dword [sym.imp.KERNEL32.dll_Module32Next]
nop
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x6c]
call fcn.1000b5b0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 2
call fcn.1000b5b0
lea edx, [ebp - 0x6c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.100594b0
lea ecx, [ebp - 0x54]
mov bl, al
call fcn.1000b430
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 0xffffffff
call fcn.1000b430
test bl, bl
jne 0x10059657
lea eax, [ebp - 0x298]
push eax
push esi
call edi
test eax, eax
jne 0x100595e0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x284]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10059680
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
push ebx
push esi
push edi
push 0
push 2
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x100596f8
mov ecx, dword [esp + 0x18]
mov edi, dword [ebp + 8]
cmp ecx, edi
jne 0x100596dc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x1c]
call fcn.10059530
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
cmp ecx, edi
je 0x100596be
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
je 0x100596f8
mov ecx, dword [esp + 0x18]
jmp 0x100596e2
cmp esi, 0xffffffff
je 0x10059704
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10059710
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088ad0
mov eax, dword fs:[0]
push eax
mov eax, 0x1260
mov dword fs:[0], esp
call fcn.10062960
push ebx
push esi
push edi
push ecx
push 0
mov edi, edx
push 0x410
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
jne 0x10059765
lea eax, [ebx + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push 0x1000
lea eax, [ebp - 0x1268]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x10059875
xor esi, esi
test dword [ebp - 0x10], 0xfffffffc
jbe 0x10059875
push 0x200
lea eax, [ebp - 0x268]
push eax
push dword [ebp + esi*4 - 0x1268]
push ebx
call dword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
test eax, eax
je 0x10059866
push edi
lea ecx, [ebp - 0x68]
call fcn.1000b5b0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x268]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x38]
call fcn.1000b5b0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.10001690
push 0x100a1330
mov edi, eax
call fcn.100107c0
add esp, 4
mov ebx, eax
mov eax, dword [edi + 0x10]
mov ecx, edi
mov dword [ebp - 0x18], eax
call fcn.1000f670
push dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push ebx
push 0x100a1330
push ecx
mov ecx, eax
call fcn.100520d0
add esp, 0x10
mov byte [ebp - 4], 1
inc eax
lea ecx, [ebp - 0x38]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.1000af10
push dword [ebp - 0x1c]
lea eax, [ebp - 0x50]
push eax
call fcn.10044c60
add esp, 8
lea ecx, [ebp - 0x50]
mov bl, al
call fcn.1000b430
lea ecx, [ebp - 0x38]
call fcn.1000b430
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 0xffffffff
call fcn.1000b430
test bl, bl
jne 0x1005988f
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
inc esi
shr eax, 2
cmp esi, eax
jb 0x10059793
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + esi*4 - 0x1268]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100598b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10059937
push 0
push 2
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1005992b
mov eax, dword [esp + 0x18]
cmp eax, edi
jne 0x1005990f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x34]
call fcn.10059710
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, edi
je 0x100598f2
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
je 0x1005992b
mov eax, dword [esp + 0x18]
jmp 0x10059915
cmp esi, 0xffffffff
je 0x10059937
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10059a50
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
lea eax, [esp + 4]
push eax
push 0x20
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [esp + 8]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 8]
push 0
push 0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
push 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push eax
push 0
push dword [esp + 0x18]
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10059ad0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
push ebx
push esi
push edi
push 0
push 2
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10059b3e
mov ecx, dword [esp + 0x18]
mov edi, dword [ebp + 0xc]
cmp ecx, edi
je 0x10059b2a
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
cmp ecx, edi
je 0x10059b2a
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
je 0x10059b3e
mov ecx, dword [esp + 0x18]
jmp 0x10059b14
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x34]
mov dword [eax], ecx
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp esi, 0xffffffff
je 0x10059b4a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10059ce0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push 0x7d0
push 0
lea eax, [edi + 0x20]
mov dword [edi + 0x7f0], 0
push eax
call fcn.10063ea0
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [edi + 0x14], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], eax
push 0x40
push 0x103000
push 0x20000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [edi + 8], eax
test eax, eax
jne 0x10059d3a
xor al, al
pop edi
pop ebp
ret 4
push esi
call fcn.1000a100
mov esi, dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp + 8]
push ecx
push 0x40
push 0x20000
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, edi
call fcn.1005a200
pop esi
pop edi
pop ebp
ret 4
Function at 0x1005d990
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088d43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x18], ebx
push dword [ebp + 8]
call fcn.100017c0
push eax
call fcn.1001b250
add esp, 8
mov ecx, ebx
push eax
call fcn.1000b6b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
add ebx, 0x18
mov dword [ebp - 0x24], ebx
push dword [ebp + 8]
push dword [ebp + 8]
call fcn.100442f0
mov eax, dword [eax]
mov dword [ebx], eax
add ebx, 4
mov ecx, ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.10001690
mov edi, eax
lea ecx, [ebp + 0xb]
push edi
lea eax, [ebp - 0xe]
push eax
call fcn.10001880
mov ecx, ebx
call fcn.1000eef0
push 0x38
call fcn.10016280
mov esi, eax
push esi
call fcn.100017c0
push eax
push 4
call fcn.10001530
mov dword [eax], esi
lea eax, [esi + 4]
push eax
call fcn.100017c0
push eax
push 4
call fcn.10001530
add esp, 0x1c
lea ecx, [ebp + 0xb]
mov dword [eax], esi
mov dword [edi], esi
call fcn.10001860
mov byte [ebp - 4], 1
mov ecx, ebx
mov edi, dword [ebp - 0x18]
lea esi, [edi + 0x24]
call fcn.10001690
push 0
lea ecx, [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
call fcn.10001870
push esi
lea eax, [ebp - 0xf]
mov dword [esi], 0
push eax
lea ecx, [ebp - 0xd]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.10001880
mov dword [ebp - 0x1c], 0x3fffffff
call fcn.100017b0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1000d790
add esp, 8
cmp dword [eax], 0x10
jb 0x1005db23
mov ecx, esi
call fcn.1000eef0
push 0x10
call fcn.10019530
push eax
call fcn.10016280
mov dword [esi], eax
add esp, 8
mov dword [esi + 4], eax
mov ecx, esi
add eax, 0x40
mov dword [esi + 8], eax
lea eax, [ebp - 0x14]
push eax
push 0x10
push dword [esi]
call fcn.1005c580
lea ecx, [ebp - 0xd]
mov dword [esi + 4], eax
call fcn.10001860
lea ecx, [edi + 0x18]
mov dword [edi + 0x30], 7
mov dword [edi + 0x34], 8
call fcn.10001690
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0x3f800000
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
call fcn.1004bf80
int3