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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x100a7084]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x38], 0
je 0x1002d937
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x1002d93e
mov al, 1
jmp 0x1002da45
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x40], 0xffffffff
mov ecx, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x30]
call dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], 0xffffffff
mov edx, dword [ebp - 0x54]
cmp edx, dword [ebp - 0x58]
jne 0x1002d97b
mov dword [ebp - 0x44], 1
jmp 0x1002d982
mov dword [ebp - 0x44], 0
mov al, byte [ebp - 0x44]
mov byte [ebp - 0x31], al
movzx ecx, byte [ebp - 0x31]
test ecx, ecx
je 0x1002d997
xor al, al
jmp 0x1002da45
mov dword [ebp - 0x64], 0x20
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x40
push ecx
mov ecx, dword [ebp - 0x48]
call dword [ebp - 0x5c]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x1002d9e2
cmp dword [ebp - 0x38], 1
je 0x1002d9e9
cmp dword [ebp - 0x38], 3
je 0x1002da38
jmp 0x1002da43
mov edx, dword [ebp - 0x30]
mov byte [edx + 0x3d], 0
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
sub eax, ecx
mov dword [ebp - 0x3c], eax
je 0x1002da18
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
push 1
lea edx, [ebp - 0x28]
push edx
call fcn.10050a93
add esp, 0x10
cmp dword [ebp - 0x3c], eax
je 0x1002da18
xor al, al
jmp 0x1002da45
mov eax, dword [ebp - 0x30]
movzx ecx, byte [eax + 0x3d]
test ecx, ecx
jne 0x1002da2c
mov dword [ebp - 0x4c], 1
jmp 0x1002da33
mov dword [ebp - 0x4c], 0
mov al, byte [ebp - 0x4c]
jmp 0x1002da45
mov edx, dword [ebp - 0x30]
mov byte [edx + 0x3d], 0
mov al, 1
jmp 0x1002da45
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10044f41
mov esp, ebp
pop ebp
ret
Function at 0x10032a20
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x100a7084]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x23c], 2
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
jne 0x10032a6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10032aee
push 0x22c
push 0
lea eax, [ebp - 0x230]
push eax
call fcn.10047f50
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10032acf
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov ecx, dword [ebp + 8]
call fcn.1002fa80
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10032aa1
jmp 0x10032adb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x238], eax
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10044f41
mov esp, ebp
pop ebp
ret

Function at 0x100355c0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x100355de
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 4
jae 0x100355ff
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 8]
movzx eax, byte [edx]
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
imul ecx, dword [ebp - 4], 0x1000193
mov dword [ebp - 4], ecx
jmp 0x100355d5
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x1003ea90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
lea eax, [edx + edx + 2]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
call fcn.100228f0
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
call fcn.100228f0
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 1
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1003eb0c
push str.Cannot_write_string_value:_RegSetValueExW_failed.
mov ecx, dword [ebp - 4]
push ecx
lea ecx, [ebp - 0x30]
call fcn.1003e220
push 0x100a4c3c
lea edx, [ebp - 0x30]
push edx
call fcn.100465e7
mov esp, ebp
pop ebp
ret 8
Function at 0x10042a10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 8
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x10042830
push 0
push 0
call fcn.10052fe3
add esp, 0x18
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esp, ebp
pop ebp
ret

Function at 0x10043030
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x28], 0
mov edx, dword [ebp - 8]
add edx, 0x28
push edx
push 0
mov eax, dword [ebp - 8]
push eax
push 0x10042c90
push 0
push 0
call fcn.10052fe3
add esp, 0x18
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x24], 0
je 0x100430be
mov eax, dword [ebp - 8]
cmp dword [eax + 0x28], 0
je 0x100430be
mov dword [ebp - 0xc], 0
jmp 0x10043099
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0xa
jae 0x100430be
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 8]
call fcn.10042d60
mov byte [ebp - 1], al
movzx edx, byte [ebp - 1]
test edx, edx
je 0x100430bc
jmp 0x100430be
jmp 0x10043090
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x1005a0cf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10059d80

Function at 0x1005a0da
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10059f0a

Function at 0x10061983
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10061600

Function at 0x1006f2ba
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x100ac03c], 0
je 0x1006f31b
cmp word [0x100ac210], 0xd7b2
jne 0x1006f2e3
cmp dword [0x100ac218], 0
jbe 0x1006f2e3
mov eax, 0x100ac20c
call dword [0x100ac228]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x100aa05c
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x1006f342
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0x100aa020], 0
jne 0x1006f337
push 0
push 0x100aa054
push 0x100aa05c
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret

Function at 0x1007071a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x10070780
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.1006f65e
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.1006e71e
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x1007076a
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10070787
lea eax, [ebp - 0x10]
call fcn.1006f436
ret
Function at 0x10072b16
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.1006f48a
mov eax, ebx
call fcn.1006f8da
mov eax, dword [ebx]
call fcn.1006f68a
test eax, eax
jle 0x10072b47
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x10072b3c
pop esi
pop ebx
ret

Function at 0x10072e66
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x10072eb2
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 2
mov edi, esi
mov eax, edi
call fcn.10073efa
test al, al
jne 0x10072ea8
cmp word [edi], 0x5a4d
jne 0x10072ea8
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x10072ea8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x10072ebe
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1007305e
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [0x100aa230], 0
jne 0x1007313f
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x100730b1
push 0x10000
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x8000
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileW
mov esi, eax
jmp 0x100730e2
push 0x105
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x104
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
push ebx
call sub.KERNEL32.dll_LocalFree
cmp esi, 0xffffffff
je 0x1007313f
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x1007310d
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x1007311f
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x10073139
push 0
push 0
push 0
push 4
push ebx
call sub.KERNEL32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.KERNEL32.dll_CloseHandle
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x1007338a
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x10073485
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x100733ce
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileW
mov ebx, eax
jmp 0x10073402
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.1006fb32
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.1006f676
mov eax, dword [ebp - 8]
call fcn.1006f88a
push eax
call sub.KERNEL32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10073467
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x10073461
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1007345b
mov eax, dword [ebp - 4]
call fcn.10072e66
test eax, eax
je 0x10073448
cmp word [eax + 0x18], 0x20b
je 0x1007344c
xor eax, eax
jmp 0x1007344e
mov al, 1
neg al
sbb edi, edi
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
push esi
call sub.KERNEL32.dll_CloseHandle
push ebx
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1007348c
lea eax, [ebp - 0xc]
call fcn.1006fa0a
lea eax, [ebp - 8]
call fcn.1006f436
ret

Function at 0x1007349a
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_CreateFileW
mov edi, eax
cmp edi, 0xffffffff
je 0x10073573
push 0
push 0
push 0
push 2
push 0
push edi
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x1007356d
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10073567
mov eax, dword [ebp - 4]
call fcn.10072e66
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1007355e
mov eax, dword [ebp - 8]
cmp word [eax + 0x18], 0x20b
jne 0x10073523
mov eax, dword [ebp - 8]
add eax, 0x18
mov eax, dword [eax + 0x70]
mov dword [ebp - 0xc], eax
jmp 0x1007352c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x78]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1007355e
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.10072fe6
add eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jne 0x1007354c
cmp dword [eax + 0x14], 1
jg 0x1007355c
cmp dword [eax + 0x10], 1
jne 0x10073558
cmp dword [eax + 0x14], 0
jg 0x1007355c
xor ebx, ebx
jmp 0x1007355e
mov bl, 1
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
push esi
call sub.KERNEL32.dll_CloseHandle
push edi
call sub.KERNEL32.dll_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10076c1a
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffedc
mov ebp, ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 4]
push eax
push edi
call sub.KERNEL32.dll_VirtualQuery
cmp eax, 0x1c
jne 0x10076c96
cmp dword [esp + 0x10], 0x1000
jne 0x10076c96
cmp dword [esp + 4], 0
je 0x10076c96
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
test eax, eax
je 0x10076c96
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x10076c96
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x10076c96
mov edx, dword [esi]
add edx, dword [eax + 0x78]
mov dword [ebp], edx
cmp dword [ebp], 0
setne bl
mov eax, ebx
add esp, 0x124
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x10078b46
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push ecx
mov ebx, dword [0x100aaba8]
mov esi, dword [0x100aabb0]
xor eax, eax
mov dword [0x100aaba8], eax
xor eax, eax
mov dword [0x100aabb0], eax
test ebx, ebx
je 0x10078b8b
push esp
push 0x40
push 4
push ebx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10078b8b
mov eax, dword [0x100aabac]
mov dword [ebx], eax
push esp
mov eax, dword [esp + 4]
push eax
push 4
push ebx
call sub.KERNEL32.dll_VirtualProtect
test esi, esi
je 0x10078bb3
push esp
push 0x40
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10078bb3
mov eax, dword [0x100aabb4]
mov dword [esi], eax
push esp
mov eax, dword [esp + 4]
push eax
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
mov byte [0x100aabb8], 0
pop edx
pop esi
pop ebx
ret
Function at 0x1007a19e
Capabilities:
Hash data using sha1

Disassembly:
push 0xcc
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov edx, eax
mov eax, edx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov eax, edx
ret

Function at 0x1007e4ce
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x1007e575
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 8]
mov eax, dword [0x100aad68]
call fcn.10072b16
push dword [ebp - 8]
push 0x1007e58e
lea ecx, [ebp - 0xc]
mov edx, dword [esi]
mov eax, dword [0x100aad6c]
call fcn.1007e3d6
push dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 3
call fcn.1006f74a
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.1006f88a
push eax
call fcn.1007e106
mov edi, eax
test edi, edi
je 0x1007e55a
push 0
push 0
push 0
push 4
push edi
call sub.KERNEL32.dll_MapViewOfFile
test eax, eax
je 0x1007e554
mov edx, dword [eax]
mov dword [esi], edx
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
mov bl, 1
push edi
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1007e57c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.1006f45a
ret

Function at 0x1007e83a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, eax
test esi, esi
sete byte [ebp - 5]
cmp byte [ebp - 5], 0
jne 0x1007e892
xor ebx, ebx
jmp 0x1007e88b
cmp edx, edi
jne 0x1007e88a
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push edi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x1007e892
mov eax, dword [ebp - 4]
mov dword [esi + ebx*4], eax
mov byte [ebp - 5], 1
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 0xc]
push edx
push 4
push eax
call sub.KERNEL32.dll_VirtualProtect
jmp 0x1007e892
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x1007e858
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1007e89e
Capabilities:
Allocate or change rwx memory
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
xor ecx, ecx
push ebp
push 0x1007e9bf
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor eax, eax
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x1007e921
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 4], 0
je 0x1007e917
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x1007e917
mov eax, dword [ebp - 4]
add eax, 0x3c
mov eax, dword [eax]
add eax, dword [ebp - 4]
cmp dword [eax], 0x4550
jne 0x1007e917
cmp word [eax + 0x18], 0x20b
jne 0x1007e90e
add eax, 0x18
mov eax, dword [eax + 0x70]
add eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
jmp 0x1007e917
mov eax, dword [eax + 0x78]
add eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x1007e92b
cmp dword [ebp - 0x14], 0
je 0x1007e9b5
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x14]
dec eax
test eax, eax
jl 0x1007e9b5
inc eax
xor ebx, ebx
mov edx, dword [esi + 0x1c]
add edx, dword [ebp - 4]
mov edx, dword [edx + ebx*4]
add edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jne 0x1007e9b1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.1007e83a
test al, al
je 0x1007e9b5
mov eax, dword [esi + 0x1c]
add eax, dword [ebp - 4]
lea eax, [eax + ebx*4]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push 0x40
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x1007e9a1
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
mov dword [esi], eax
mov byte [ebp - 0xd], 1
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
jmp 0x1007e9b5
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.1007e83a
jmp 0x1007e9b5
inc ebx
dec eax
jne 0x1007e943
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x1007e9c9
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1007e9d6
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], ecx
mov ebp, edx
mov dword [esp], eax
mov eax, dword [esp]
call fcn.10072e66
mov edi, eax
test edi, edi
je 0x1007ea6d
cmp dword [edi + 0x80], 0
je 0x1007ea6d
mov eax, dword [edi + 0x80]
cmp eax, dword [edi + 0x50]
jae 0x1007ea6d
mov esi, dword [edi + 0x80]
add esi, dword [esp]
test esi, esi
je 0x1007ea6d
jmp 0x1007ea59
mov ebx, dword [esp]
add ebx, dword [esi + 0x10]
jmp 0x1007ea51
cmp ebp, dword [ebx]
jne 0x1007ea4e
lea eax, [esp + 8]
push eax
push 0x40
push 4
push ebx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x1007ea4e
mov eax, dword [esp + 4]
mov dword [ebx], eax
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
push 4
push ebx
call sub.KERNEL32.dll_VirtualProtect
add ebx, 4
cmp dword [ebx], 0
jne 0x1007ea1f
add esi, 0x14
cmp dword [esi + 0xc], 0
je 0x1007ea6d
cmp dword [esi + 0x10], 0
je 0x1007ea6d
mov eax, dword [edi + 0x50]
cmp eax, dword [esi + 0x10]
ja 0x1007ea17
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x10080746
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x10080949
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [esi], eax
xor edx, edx
mov eax, dword [0x100aace0]
call fcn.10076a8a
mov dword [0x100ac724], eax
xor edx, edx
mov eax, dword [0x100aace4]
call fcn.10076a8a
mov dword [0x100ac728], eax
lea eax, [ebp - 8]
mov edx, 5
call fcn.1006f976
lea eax, [ebp - 8]
call fcn.1006f8e2
mov byte [eax], 0x72
lea eax, [ebp - 8]
call fcn.1006f8e2
mov byte [eax + 1], 0x64
lea eax, [ebp - 8]
call fcn.1006f8e2
mov byte [eax + 2], 0x65
lea eax, [ebp - 8]
call fcn.1006f8e2
mov byte [eax + 3], 0x63
lea eax, [ebp - 8]
call fcn.1006f8e2
mov byte [eax + 4], 0x20
lea edx, [ebp - 0x10]
mov eax, dword [0x100aad54]
call fcn.10072b16
push dword [ebp - 0x10]
push 0x10080962
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.100726c2
push dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 4
call fcn.1006f74a
mov eax, dword [ebp - 8]
call fcn.1006f88a
push eax
push 0
push 0
call fcn.10070bb6
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x10080926
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
mov dword [0x100ac718], edi
mov eax, dword [ebp - 4]
mov dword [0x100ac71c], eax
cmp dword [0x100ac724], 0
je 0x1008086f
cmp dword [0x100ac728], 0
jne 0x100808f5
mov dl, 1
mov eax, dword [0x100aac7c]
call fcn.10076b96
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x1008090a
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x1008090a
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x1008090a
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x1008090a
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x1008090a
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
lea eax, [esi + 0xa]
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x1008090a
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x100ac720], edx
mov edx, 0x100806f6
sub edx, esi
sub edx, 0xe
mov dword [eax], edx
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 0xc]
push edx
push 4
push eax
call sub.KERNEL32.dll_VirtualProtect
mov bl, 1
jmp 0x1008090a
push 0x100806a2
push 0xffffffffffffffff
call dword [0x100ac724]
mov dword [esi], eax
cmp dword [esi], 0
setne bl
test bl, bl
jne 0x10080926
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10080950
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.1006f45a
lea eax, [ebp - 8]
call fcn.1006f436
ret