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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], eax
lea ebx, [edi + 0x34]
push ebx
call eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x4c]
call fcn.1001c460
mov esi, dword [ebp - 4]
cmp esi, dword [edi + 0x50]
je 0x10019ee2
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x10019e61
mov ecx, ebx
call fcn.10012450
push 0x190
push ebx
call fcn.10022487
add esp, 8
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 [edi + 0x64]
and ecx, eax
mov eax, dword [edi + 0x58]
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], esi
jne 0x10019ebc
cmp eax, esi
jne 0x10019eb4
mov eax, dword [edi + 0x50]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x10019ec4
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x10019ec4
cmp eax, esi
jne 0x10019ec4
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
dec dword [edi + 0x54]
mov eax, dword [esi + 4]
push 0x10
push esi
mov dword [eax], ecx
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
call fcn.10022487
add esp, 8
lea ebx, [edi + 0x34]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x6c]
call fcn.1001c460
mov esi, dword [ebp - 4]
cmp esi, dword [edi + 0x70]
je 0x10019f88
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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 [edi + 0x84]
and ecx, eax
mov eax, dword [edi + 0x78]
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], esi
jne 0x10019f65
cmp eax, esi
jne 0x10019f5d
mov eax, dword [edi + 0x70]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x10019f6d
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x10019f6d
cmp eax, esi
jne 0x10019f6d
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
dec dword [edi + 0x74]
mov eax, dword [esi + 4]
push 0x10
push esi
mov dword [eax], ecx
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
call fcn.10022487
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call edi
call fcn.1001cc80
mov esi, eax
lea ebx, [esi + 4]
push ebx
call dword [ebp - 8]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10019faf
push 0
push 3
push dword [ebp + 8]
call eax
push ebx
call edi
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1001c460
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 0x1001c4de
mov ecx, dword [edi]
mov edx, dword [edx]
cmp ecx, dword [eax + 8]
je 0x1001c4e0
nop word [eax + eax]
cmp eax, edx
je 0x1001c4de
mov eax, dword [eax + 4]
cmp ecx, dword [eax + 8]
jne 0x1001c4c0
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 0x1001c780
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0xc], ebx
mov eax, edi
shl eax, cl
cmp edx, eax
ja 0x1001c8da
mov esi, dword [ebx + 4]
lea eax, [edx - 1]
or eax, edi
mov dword [ebp - 8], 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.1001c310
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 0x1001c8ac
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]
lea eax, [eax + edi*8]
mov dword [ebp + 8], eax
cmp ebx, esi
jne 0x1001c833
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x1001c89f
mov eax, dword [eax + 4]
mov edi, dword [ecx + 8]
cmp edi, dword [eax + 8]
jne 0x1001c86a
mov eax, dword [eax]
cmp eax, ecx
je 0x1001c862
mov ebx, dword [ecx + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 4]
mov dword [edx + 4], eax
mov dword [ecx + 4], edi
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
jmp 0x1001c89f
cmp ebx, eax
je 0x1001c87c
nop
mov eax, dword [eax + 4]
cmp edi, dword [eax + 8]
je 0x1001c8b5
cmp ebx, eax
jne 0x1001c870
mov ebx, dword [ecx + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 4], edi
mov dword [eax], ecx
mov ebx, dword [ebp - 0xc]
mov ecx, edx
cmp edx, esi
jne 0x1001c7e2
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, dword [ebp + 8]
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 - 8]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
jmp 0x1001c89f
push str.invalid_hash_bucket_count
call fcn.10020dd8
int3
Function at 0x1001cb70
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 0x1001cb8c
mov edx, dword [edx]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x1001cb97
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 0x1001cbb1
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.1001cbd0
push 0x10079174
lea eax, [ebp - 0x14]
push eax
call fcn.1002357d
int3
Function at 0x100377bc
Capabilities:
Read file on windows

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

Function at 0x100377c7
Capabilities:
Read file on windows

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

Function at 0x1003dc83
Capabilities:
Set environment variable

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

Function at 0x100492ba
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x1008003c], 0
je 0x1004931b
cmp word [0x10080210], 0xd7b2
jne 0x100492e3
cmp dword [0x10080218], 0
jbe 0x100492e3
mov eax, 0x1008020c
call dword [0x10080228]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x1007e05c
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 0x10049342
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0x1007e020], 0
jne 0x10049337
push 0
push 0x1007e054
push 0x1007e05c
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret

Function at 0x1004a71a
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 0x1004a780
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.1004965e
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.1004871e
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x1004a76a
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1004a787
lea eax, [ebp - 0x10]
call fcn.10049436
ret

Function at 0x1004cb16
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.1004948a
mov eax, ebx
call fcn.100498da
mov eax, dword [ebx]
call fcn.1004968a
test eax, eax
jle 0x1004cb47
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x1004cb3c
pop esi
pop ebx
ret

Function at 0x1004ce66
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 0x1004ceb2
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 2
mov edi, esi
mov eax, edi
call fcn.1004defa
test al, al
jne 0x1004cea8
cmp word [edi], 0x5a4d
jne 0x1004cea8
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x1004cea8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x1004cebe
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1004d05e
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [0x1007e230], 0
jne 0x1004d13f
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x1004d0b1
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 0x1004d0e2
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 0x1004d13f
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x1004d10d
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x1004d11f
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x1004d139
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 0x1004d38a
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 0x1004d485
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x1004d3ce
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileW
mov ebx, eax
jmp 0x1004d402
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.10049b32
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.10049676
mov eax, dword [ebp - 8]
call fcn.1004988a
push eax
call sub.KERNEL32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1004d467
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x1004d461
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 0x1004d45b
mov eax, dword [ebp - 4]
call fcn.1004ce66
test eax, eax
je 0x1004d448
cmp word [eax + 0x18], 0x20b
je 0x1004d44c
xor eax, eax
jmp 0x1004d44e
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 0x1004d48c
lea eax, [ebp - 0xc]
call fcn.10049a0a
lea eax, [ebp - 8]
call fcn.10049436
ret
Function at 0x1004d49a
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 0x1004d573
push 0
push 0
push 0
push 2
push 0
push edi
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x1004d56d
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 0x1004d567
mov eax, dword [ebp - 4]
call fcn.1004ce66
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1004d55e
mov eax, dword [ebp - 8]
cmp word [eax + 0x18], 0x20b
jne 0x1004d523
mov eax, dword [ebp - 8]
add eax, 0x18
mov eax, dword [eax + 0x70]
mov dword [ebp - 0xc], eax
jmp 0x1004d52c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x78]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1004d55e
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.1004cfe6
add eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jne 0x1004d54c
cmp dword [eax + 0x14], 1
jg 0x1004d55c
cmp dword [eax + 0x10], 1
jne 0x1004d558
cmp dword [eax + 0x14], 0
jg 0x1004d55c
xor ebx, ebx
jmp 0x1004d55e
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 0x10050c1a
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 0x10050c96
cmp dword [esp + 0x10], 0x1000
jne 0x10050c96
cmp dword [esp + 4], 0
je 0x10050c96
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
test eax, eax
je 0x10050c96
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x10050c96
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x10050c96
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 0x10052b46
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push ecx
mov ebx, dword [0x1007eba8]
mov esi, dword [0x1007ebb0]
xor eax, eax
mov dword [0x1007eba8], eax
xor eax, eax
mov dword [0x1007ebb0], eax
test ebx, ebx
je 0x10052b8b
push esp
push 0x40
push 4
push ebx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10052b8b
mov eax, dword [0x1007ebac]
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 0x10052bb3
push esp
push 0x40
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10052bb3
mov eax, dword [0x1007ebb4]
mov dword [esi], eax
push esp
mov eax, dword [esp + 4]
push eax
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
mov byte [0x1007ebb8], 0
pop edx
pop esi
pop ebx
ret
Function at 0x1005419e
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 0x100584ce
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 0x10058575
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 8]
mov eax, dword [0x1007ed68]
call fcn.1004cb16
push dword [ebp - 8]
push 0x1005858e
lea ecx, [ebp - 0xc]
mov edx, dword [esi]
mov eax, dword [0x1007ed6c]
call fcn.100583d6
push dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 3
call fcn.1004974a
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.1004988a
push eax
call fcn.10058106
mov edi, eax
test edi, edi
je 0x1005855a
push 0
push 0
push 0
push 4
push edi
call sub.KERNEL32.dll_MapViewOfFile
test eax, eax
je 0x10058554
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 0x1005857c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.1004945a
ret

Function at 0x1005883a
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 0x10058892
xor ebx, ebx
jmp 0x1005888b
cmp edx, edi
jne 0x1005888a
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push edi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10058892
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 0x10058892
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x10058858
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005889e
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 0x100589bf
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor eax, eax
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x10058921
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 4], 0
je 0x10058917
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x10058917
mov eax, dword [ebp - 4]
add eax, 0x3c
mov eax, dword [eax]
add eax, dword [ebp - 4]
cmp dword [eax], 0x4550
jne 0x10058917
cmp word [eax + 0x18], 0x20b
jne 0x1005890e
add eax, 0x18
mov eax, dword [eax + 0x70]
add eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
jmp 0x10058917
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 0x1005892b
cmp dword [ebp - 0x14], 0
je 0x100589b5
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x14]
dec eax
test eax, eax
jl 0x100589b5
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 0x100589b1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.1005883a
test al, al
je 0x100589b5
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 0x100589a1
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 0x100589b5
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.1005883a
jmp 0x100589b5
inc ebx
dec eax
jne 0x10058943
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x100589c9
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100589d6
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.1004ce66
mov edi, eax
test edi, edi
je 0x10058a6d
cmp dword [edi + 0x80], 0
je 0x10058a6d
mov eax, dword [edi + 0x80]
cmp eax, dword [edi + 0x50]
jae 0x10058a6d
mov esi, dword [edi + 0x80]
add esi, dword [esp]
test esi, esi
je 0x10058a6d
jmp 0x10058a59
mov ebx, dword [esp]
add ebx, dword [esi + 0x10]
jmp 0x10058a51
cmp ebp, dword [ebx]
jne 0x10058a4e
lea eax, [esp + 8]
push eax
push 0x40
push 4
push ebx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10058a4e
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 0x10058a1f
add esi, 0x14
cmp dword [esi + 0xc], 0
je 0x10058a6d
cmp dword [esi + 0x10], 0
je 0x10058a6d
mov eax, dword [edi + 0x50]
cmp eax, dword [esi + 0x10]
ja 0x10058a17
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret