joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10021640
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004f3a0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10088054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp edx, eax
je 0x100217a4
mov eax, dword [ebx + 4]
mov esi, edx
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x14], eax
movzx eax, byte [edx + 8]
xor eax, 0x811c9dc5
mov edi, dword [ebx + 0xc]
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 9]
mov dword [ebp - 0x24], edi
xor ecx, eax
movzx eax, byte [edx + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [edi + eax*8]
mov dword [ebp - 0x10], ecx
lea eax, [edi + eax*8]
mov dword [ebp - 0x18], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov edi, esi
mov eax, esi
mov esi, dword [esi]
push 0x10
push eax
call fcn.10028575
dec dword [ebx + 8]
add esp, 8
cmp edi, dword [ebp - 0x1c]
je 0x1002170c
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x100216d6
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 8]
jne 0x1002179c
mov edx, dword [ebp - 0x18]
mov dword [edx], esi
jmp 0x1002179c
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
cmp ecx, dword [ebp + 8]
jne 0x10021720
mov eax, dword [ebp - 0x20]
mov ecx, eax
mov dword [edx], eax
jmp 0x10021723
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
mov dword [edx + 4], ecx
cmp esi, eax
je 0x1002179c
nop dword [eax]
movzx eax, byte [esi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 9]
xor ecx, eax
movzx eax, byte [esi + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
mov eax, dword [ebp - 0x24]
lea eax, [eax + ecx*8]
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov edi, esi
mov eax, esi
mov esi, dword [esi]
push 0x10
push eax
call fcn.10028575
dec dword [ebx + 8]
add esp, 8
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp - 0x1c]
je 0x100217b8
cmp esi, eax
jne 0x10021777
mov ecx, dword [ebp - 0x10]
mov dword [ecx], esi
mov ecx, dword [ebp - 0x14]
mov dword [ecx], esi
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
mov dword [ecx + 4], edx
cmp esi, eax
jne 0x10021730
jmp 0x1002179c
Function at 0x10021970
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [esi + 0x18]
and ecx, eax
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 4]
lea edx, [eax + ecx*8]
mov eax, dword [edx + 4]
cmp eax, esi
je 0x100219ee
mov ecx, dword [edi]
mov edx, dword [edx]
cmp ecx, dword [eax + 8]
je 0x100219f0
nop word [eax + eax]
cmp eax, edx
je 0x100219ee
mov eax, dword [eax + 4]
cmp ecx, dword [eax + 8]
jne 0x100219d0
mov ecx, dword [ebp + 8]
test eax, eax
pop edi
cmove eax, esi
pop esi
mov dword [ecx], eax
mov eax, ecx
pop ebp
ret 8
xor eax, eax
mov ecx, dword [ebp + 8]
test eax, eax
pop edi
cmove eax, esi
pop esi
mov dword [ecx], eax
mov eax, ecx
pop ebp
ret 8
Function at 0x10021e60
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0x10], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x10021fc3
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, edi
mov dword [ebp - 0xc], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.100217e0
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x10021f96
movzx eax, byte [ecx + 8]
xor eax, 0x811c9dc5
mov edx, dword [edx]
imul edi, eax, 0x1000193
movzx eax, byte [ecx + 9]
xor edi, eax
movzx eax, byte [ecx + 0xa]
imul edi, edi, 0x1000193
xor edi, eax
movzx eax, byte [ecx + 0xb]
imul edi, edi, 0x1000193
xor edi, eax
imul eax, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, eax
mov eax, dword [ebx + 0xc]
mov ebx, dword [eax + edi*8]
mov dword [ebp - 4], ebx
lea eax, [eax + edi*8]
mov dword [ebp - 8], eax
cmp ebx, esi
jne 0x10021f16
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x10021f89
mov eax, dword [eax + 4]
mov ebx, dword [ecx + 8]
cmp ebx, dword [eax + 8]
jne 0x10021f50
mov eax, dword [eax]
mov dword [ebp - 4], eax
cmp eax, ecx
je 0x10021f48
mov ebx, dword [ecx + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
jmp 0x10021f89
mov edi, eax
cmp dword [ebp - 4], eax
je 0x10021f66
mov eax, dword [eax + 4]
mov edi, eax
cmp ebx, dword [eax + 8]
je 0x10021f9f
cmp dword [ebp - 4], eax
jne 0x10021f57
mov eax, dword [ecx + 4]
mov dword [ebp - 4], eax
mov dword [eax], edx
mov ebx, dword [edx + 4]
mov dword [ebx], edi
mov eax, dword [edi + 4]
mov dword [eax], ecx
mov dword [edi + 4], ebx
mov edi, dword [ebp - 4]
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
mov eax, dword [ebp - 8]
mov dword [eax], ecx
mov ebx, dword [ebp - 0x10]
mov ecx, edx
cmp edx, esi
jne 0x10021ec2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov esi, eax
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
jmp 0x10021f89
push str.invalid_hash_bucket_count
call fcn.10026d8a
int3
Function at 0x10022480
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0x14
cmp dword [edx + 0x14], 8
mov eax, dword [edx + 0x10]
push esi
lea esi, [eax*2 + 2]
jb 0x1002249c
mov edx, dword [edx]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x100224a7
mov eax, dword [eax]
push esi
push edx
push 1
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x100224c1
pop esi
mov esp, ebp
pop ebp
ret 8
push str.Cannot_write_string_value:_RegSetValueExW_failed.
push eax
lea ecx, [ebp - 0x14]
call fcn.100224e0
push 0x10086bcc
lea eax, [ebp - 0x14]
push eax
call fcn.10029cdd
int3
Function at 0x1003d9bc
Capabilities:
Read file on windows

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

Function at 0x1003d9c7
Capabilities:
Read file on windows

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

Function at 0x10043e93
Capabilities:
Set environment variable

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

Function at 0x100532ba
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x1008d03c], 0
je 0x1005331b
cmp word [0x1008d210], 0xd7b2
jne 0x100532e3
cmp dword [0x1008d218], 0
jbe 0x100532e3
mov eax, 0x1008d20c
call dword [0x1008d228]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x1008b05c
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 0x10053342
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0x1008b020], 0
jne 0x10053337
push 0
push 0x1008b054
push 0x1008b05c
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret

Function at 0x1005471a
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 0x10054780
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.1005365e
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.1005271e
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x1005476a
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10054787
lea eax, [ebp - 0x10]
call fcn.10053436
ret

Function at 0x10056b16
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.1005348a
mov eax, ebx
call fcn.100538da
mov eax, dword [ebx]
call fcn.1005368a
test eax, eax
jle 0x10056b47
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x10056b3c
pop esi
pop ebx
ret

Function at 0x10056e66
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 0x10056eb2
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 2
mov edi, esi
mov eax, edi
call fcn.10057efa
test al, al
jne 0x10056ea8
cmp word [edi], 0x5a4d
jne 0x10056ea8
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x10056ea8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x10056ebe
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1005705e
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [0x1008b230], 0
jne 0x1005713f
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x100570b1
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 0x100570e2
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 0x1005713f
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x1005710d
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x1005711f
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x10057139
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 0x1005738a
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 0x10057485
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x100573ce
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileW
mov ebx, eax
jmp 0x10057402
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.10053b32
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.10053676
mov eax, dword [ebp - 8]
call fcn.1005388a
push eax
call sub.KERNEL32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10057467
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x10057461
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 0x1005745b
mov eax, dword [ebp - 4]
call fcn.10056e66
test eax, eax
je 0x10057448
cmp word [eax + 0x18], 0x20b
je 0x1005744c
xor eax, eax
jmp 0x1005744e
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 0x1005748c
lea eax, [ebp - 0xc]
call fcn.10053a0a
lea eax, [ebp - 8]
call fcn.10053436
ret
Function at 0x1005749a
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 0x10057573
push 0
push 0
push 0
push 2
push 0
push edi
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x1005756d
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 0x10057567
mov eax, dword [ebp - 4]
call fcn.10056e66
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1005755e
mov eax, dword [ebp - 8]
cmp word [eax + 0x18], 0x20b
jne 0x10057523
mov eax, dword [ebp - 8]
add eax, 0x18
mov eax, dword [eax + 0x70]
mov dword [ebp - 0xc], eax
jmp 0x1005752c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x78]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1005755e
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.10056fe6
add eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jne 0x1005754c
cmp dword [eax + 0x14], 1
jg 0x1005755c
cmp dword [eax + 0x10], 1
jne 0x10057558
cmp dword [eax + 0x14], 0
jg 0x1005755c
xor ebx, ebx
jmp 0x1005755e
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 0x1005ac1a
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 0x1005ac96
cmp dword [esp + 0x10], 0x1000
jne 0x1005ac96
cmp dword [esp + 4], 0
je 0x1005ac96
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
test eax, eax
je 0x1005ac96
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x1005ac96
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x1005ac96
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 0x1005cb46
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push ecx
mov ebx, dword [0x1008bba8]
mov esi, dword [0x1008bbb0]
xor eax, eax
mov dword [0x1008bba8], eax
xor eax, eax
mov dword [0x1008bbb0], eax
test ebx, ebx
je 0x1005cb8b
push esp
push 0x40
push 4
push ebx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x1005cb8b
mov eax, dword [0x1008bbac]
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 0x1005cbb3
push esp
push 0x40
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x1005cbb3
mov eax, dword [0x1008bbb4]
mov dword [esi], eax
push esp
mov eax, dword [esp + 4]
push eax
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
mov byte [0x1008bbb8], 0
pop edx
pop esi
pop ebx
ret
Function at 0x1005e19e
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 0x100624ce
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 0x10062575
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 8]
mov eax, dword [0x1008bd68]
call fcn.10056b16
push dword [ebp - 8]
push 0x1006258e
lea ecx, [ebp - 0xc]
mov edx, dword [esi]
mov eax, dword [0x1008bd6c]
call fcn.100623d6
push dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 3
call fcn.1005374a
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.1005388a
push eax
call fcn.10062106
mov edi, eax
test edi, edi
je 0x1006255a
push 0
push 0
push 0
push 4
push edi
call sub.KERNEL32.dll_MapViewOfFile
test eax, eax
je 0x10062554
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 0x1006257c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.1005345a
ret

Function at 0x1006283a
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 0x10062892
xor ebx, ebx
jmp 0x1006288b
cmp edx, edi
jne 0x1006288a
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push edi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10062892
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 0x10062892
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x10062858
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1006289e
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 0x100629bf
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor eax, eax
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x10062921
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 4], 0
je 0x10062917
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x10062917
mov eax, dword [ebp - 4]
add eax, 0x3c
mov eax, dword [eax]
add eax, dword [ebp - 4]
cmp dword [eax], 0x4550
jne 0x10062917
cmp word [eax + 0x18], 0x20b
jne 0x1006290e
add eax, 0x18
mov eax, dword [eax + 0x70]
add eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
jmp 0x10062917
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 0x1006292b
cmp dword [ebp - 0x14], 0
je 0x100629b5
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x14]
dec eax
test eax, eax
jl 0x100629b5
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 0x100629b1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.1006283a
test al, al
je 0x100629b5
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 0x100629a1
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 0x100629b5
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.1006283a
jmp 0x100629b5
inc ebx
dec eax
jne 0x10062943
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x100629c9
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100629d6
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.10056e66
mov edi, eax
test edi, edi
je 0x10062a6d
cmp dword [edi + 0x80], 0
je 0x10062a6d
mov eax, dword [edi + 0x80]
cmp eax, dword [edi + 0x50]
jae 0x10062a6d
mov esi, dword [edi + 0x80]
add esi, dword [esp]
test esi, esi
je 0x10062a6d
jmp 0x10062a59
mov ebx, dword [esp]
add ebx, dword [esi + 0x10]
jmp 0x10062a51
cmp ebp, dword [ebx]
jne 0x10062a4e
lea eax, [esp + 8]
push eax
push 0x40
push 4
push ebx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10062a4e
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 0x10062a1f
add esi, 0x14
cmp dword [esi + 0xc], 0
je 0x10062a6d
cmp dword [esi + 0x10], 0
je 0x10062a6d
mov eax, dword [edi + 0x50]
cmp eax, dword [esi + 0x10]
ja 0x10062a17
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x10064746
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 0x10064949
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 [0x1008bce0]
call fcn.1005aa8a
mov dword [0x1008d724], eax
xor edx, edx
mov eax, dword [0x1008bce4]
call fcn.1005aa8a
mov dword [0x1008d728], eax
lea eax, [ebp - 8]
mov edx, 5
call fcn.10053976
lea eax, [ebp - 8]
call fcn.100538e2
mov byte [eax], 0x72
lea eax, [ebp - 8]
call fcn.100538e2
mov byte [eax + 1], 0x64
lea eax, [ebp - 8]
call fcn.100538e2
mov byte [eax + 2], 0x65
lea eax, [ebp - 8]
call fcn.100538e2
mov byte [eax + 3], 0x63
lea eax, [ebp - 8]
call fcn.100538e2
mov byte [eax + 4], 0x20
lea edx, [ebp - 0x10]
mov eax, dword [0x1008bd54]
call fcn.10056b16
push dword [ebp - 0x10]
push 0x10064962
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.100566c2
push dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 4
call fcn.1005374a
mov eax, dword [ebp - 8]
call fcn.1005388a
push eax
push 0
push 0
call fcn.10054bb6
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x10064926
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
mov dword [0x1008d718], edi
mov eax, dword [ebp - 4]
mov dword [0x1008d71c], eax
cmp dword [0x1008d724], 0
je 0x1006486f
cmp dword [0x1008d728], 0
jne 0x100648f5
mov dl, 1
mov eax, dword [0x1008bc7c]
call fcn.1005ab96
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x1006490a
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x1006490a
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x1006490a
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x1006490a
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x1006490a
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 0x1006490a
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x1008d720], edx
mov edx, 0x100646f6
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 0x1006490a
push 0x100646a2
push 0xffffffffffffffff
call dword [0x1008d724]
mov dword [esi], eax
cmp dword [esi], 0
setne bl
test bl, bl
jne 0x10064926
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 0x10064950
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.1005345a
lea eax, [ebp - 8]
call fcn.10053436
ret