joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10044b6e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10080280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1003863b
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1003863b
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10044be5
cmp word [ecx], dx
je 0x10044be5
mov eax, dword [0x10075c2c]
push edi
dec eax
push eax
push 0x10075b18
call fcn.10044b0d
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10044c58
cmp word [eax], dx
je 0x10044c58
mov eax, dword [edi]
test eax, eax
je 0x10044c09
cmp word [eax], dx
je 0x10044c09
lea eax, [ebp - 0x10]
push eax
call fcn.100444f0
jmp 0x10044c12
lea eax, [ebp - 0x10]
push eax
call fcn.1004458b
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10044c82
mov eax, dword [0x10075b14]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10075808
call fcn.10044b0d
add esp, 0xc
test al, al
je 0x10044c82
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10044c4d
cmp word [eax], di
je 0x10044c4d
lea eax, [ebp - 0x10]
push eax
call fcn.100444f0
pop ecx
jmp 0x10044c84
lea eax, [ebp - 0x10]
push eax
call fcn.1004458b
jmp 0x10044c4a
mov eax, dword [edi]
test eax, eax
je 0x10044c6f
cmp word [eax], dx
je 0x10044c6f
lea eax, [ebp - 0x10]
push eax
call fcn.100444a5
pop ecx
jmp 0x10044c82
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10044d4d
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10044992
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10044d4d
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10044d4d
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10044d4d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10044cda
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1003e205
test ebx, ebx
je 0x10044d48
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1003e205
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10044d4d
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10044d4d
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10048991
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10044d4f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100268d0
leave
ret
Function at 0x10049121
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1004909d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10049290
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10049290
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10049245
jg 0x1004917d
test eax, eax
je 0x1004923b
push 1
push 0x1000
call fcn.10039feb
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100491a0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10049232
push 0x8000
push ebx
call fcn.10048fce
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100491c9
jg 0x100491c4
cmp ecx, 0x1000
jb 0x100491c9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1003d03a
add esp, 0x10
cmp eax, 0xffffffff
je 0x1004920e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100491c4
jl 0x100491f5
test ecx, ecx
jne 0x100491b6
push dword [ebp - 0xc]
push ebx
call fcn.10048fce
push esi
call fcn.1003a048
add esp, 0xc
xor ebx, ebx
jmp 0x1004929e
cmp byte [edi + 0x24], 0
je 0x10049225
cmp dword [edi + 0x20], 5
jne 0x10049225
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10049230
mov ebx, dword [edi + 0x18]
jmp 0x10049232
xor ebx, ebx
push esi
call fcn.1003a048
pop ecx
jmp 0x1004929e
test ecx, ecx
jg 0x10049207
jl 0x10049245
test eax, eax
jae 0x10049207
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1003da94
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10049265
cmp byte [edi + 0x1c], 0
je 0x10049207
jmp 0x10049296
push ebx
call fcn.100470e4
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10049207
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1004929e
cmp byte [edi + 0x1c], 0
je 0x1004929b
mov ebx, dword [edi + 0x18]
jmp 0x1004929e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1003da94
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1004a510
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1004a53d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004a53d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100502ba
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x1008503c], 0
je 0x1005031b
cmp word [0x10085210], 0xd7b2
jne 0x100502e3
cmp dword [0x10085218], 0
jbe 0x100502e3
mov eax, 0x1008520c
call dword [0x10085228]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x1008305c
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 0x10050342
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0x10083020], 0
jne 0x10050337
push 0
push 0x10083054
push 0x1008305c
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret

Function at 0x1005171a
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 0x10051780
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.1005065e
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.1004f71e
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x1005176a
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10051787
lea eax, [ebp - 0x10]
call fcn.10050436
ret

Function at 0x10053b16
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.1005048a
mov eax, ebx
call fcn.100508da
mov eax, dword [ebx]
call fcn.1005068a
test eax, eax
jle 0x10053b47
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x10053b3c
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [0x10083230], 0
jne 0x1005413f
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x100540b1
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 0x100540e2
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 0x1005413f
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x1005410d
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x1005411f
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x10054139
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 0x1005438a
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 0x10054485
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x100543ce
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileW
mov ebx, eax
jmp 0x10054402
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.10050b32
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.10050676
mov eax, dword [ebp - 8]
call fcn.1005088a
push eax
call sub.KERNEL32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10054467
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x10054461
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 0x1005445b
mov eax, dword [ebp - 4]
call fcn.10053e66
test eax, eax
je 0x10054448
cmp word [eax + 0x18], 0x20b
je 0x1005444c
xor eax, eax
jmp 0x1005444e
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 0x1005448c
lea eax, [ebp - 0xc]
call fcn.10050a0a
lea eax, [ebp - 8]
call fcn.10050436
ret
Function at 0x1005449a
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 0x10054573
push 0
push 0
push 0
push 2
push 0
push edi
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x1005456d
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 0x10054567
mov eax, dword [ebp - 4]
call fcn.10053e66
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1005455e
mov eax, dword [ebp - 8]
cmp word [eax + 0x18], 0x20b
jne 0x10054523
mov eax, dword [ebp - 8]
add eax, 0x18
mov eax, dword [eax + 0x70]
mov dword [ebp - 0xc], eax
jmp 0x1005452c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x78]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1005455e
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.10053fe6
add eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jne 0x1005454c
cmp dword [eax + 0x14], 1
jg 0x1005455c
cmp dword [eax + 0x10], 1
jne 0x10054558
cmp dword [eax + 0x14], 0
jg 0x1005455c
xor ebx, ebx
jmp 0x1005455e
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 0x10057c1a
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 0x10057c96
cmp dword [esp + 0x10], 0x1000
jne 0x10057c96
cmp dword [esp + 4], 0
je 0x10057c96
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
test eax, eax
je 0x10057c96
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x10057c96
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x10057c96
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 0x10059b46
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push ecx
mov ebx, dword [0x10083ba8]
mov esi, dword [0x10083bb0]
xor eax, eax
mov dword [0x10083ba8], eax
xor eax, eax
mov dword [0x10083bb0], eax
test ebx, ebx
je 0x10059b8b
push esp
push 0x40
push 4
push ebx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10059b8b
mov eax, dword [0x10083bac]
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 0x10059bb3
push esp
push 0x40
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10059bb3
mov eax, dword [0x10083bb4]
mov dword [esi], eax
push esp
mov eax, dword [esp + 4]
push eax
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
mov byte [0x10083bb8], 0
pop edx
pop esi
pop ebx
ret
Function at 0x1005b19e
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 0x1005f4ce
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 0x1005f575
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 8]
mov eax, dword [0x10083d68]
call fcn.10053b16
push dword [ebp - 8]
push 0x1005f58e
lea ecx, [ebp - 0xc]
mov edx, dword [esi]
mov eax, dword [0x10083d6c]
call fcn.1005f3d6
push dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 3
call fcn.1005074a
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.1005088a
push eax
call fcn.1005f106
mov edi, eax
test edi, edi
je 0x1005f55a
push 0
push 0
push 0
push 4
push edi
call sub.KERNEL32.dll_MapViewOfFile
test eax, eax
je 0x1005f554
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 0x1005f57c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.1005045a
ret

Function at 0x1005f83a
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 0x1005f892
xor ebx, ebx
jmp 0x1005f88b
cmp edx, edi
jne 0x1005f88a
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push edi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x1005f892
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 0x1005f892
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x1005f858
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005f89e
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 0x1005f9bf
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor eax, eax
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x1005f921
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 4], 0
je 0x1005f917
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x1005f917
mov eax, dword [ebp - 4]
add eax, 0x3c
mov eax, dword [eax]
add eax, dword [ebp - 4]
cmp dword [eax], 0x4550
jne 0x1005f917
cmp word [eax + 0x18], 0x20b
jne 0x1005f90e
add eax, 0x18
mov eax, dword [eax + 0x70]
add eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
jmp 0x1005f917
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 0x1005f92b
cmp dword [ebp - 0x14], 0
je 0x1005f9b5
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x14]
dec eax
test eax, eax
jl 0x1005f9b5
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 0x1005f9b1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.1005f83a
test al, al
je 0x1005f9b5
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 0x1005f9a1
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 0x1005f9b5
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.1005f83a
jmp 0x1005f9b5
inc ebx
dec eax
jne 0x1005f943
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x1005f9c9
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1005f9d6
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.10053e66
mov edi, eax
test edi, edi
je 0x1005fa6d
cmp dword [edi + 0x80], 0
je 0x1005fa6d
mov eax, dword [edi + 0x80]
cmp eax, dword [edi + 0x50]
jae 0x1005fa6d
mov esi, dword [edi + 0x80]
add esi, dword [esp]
test esi, esi
je 0x1005fa6d
jmp 0x1005fa59
mov ebx, dword [esp]
add ebx, dword [esi + 0x10]
jmp 0x1005fa51
cmp ebp, dword [ebx]
jne 0x1005fa4e
lea eax, [esp + 8]
push eax
push 0x40
push 4
push ebx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x1005fa4e
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 0x1005fa1f
add esi, 0x14
cmp dword [esi + 0xc], 0
je 0x1005fa6d
cmp dword [esi + 0x10], 0
je 0x1005fa6d
mov eax, dword [edi + 0x50]
cmp eax, dword [esi + 0x10]
ja 0x1005fa17
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x10061746
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 0x10061949
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 [0x10083ce0]
call fcn.10057a8a
mov dword [0x10085724], eax
xor edx, edx
mov eax, dword [0x10083ce4]
call fcn.10057a8a
mov dword [0x10085728], eax
lea eax, [ebp - 8]
mov edx, 5
call fcn.10050976
lea eax, [ebp - 8]
call fcn.100508e2
mov byte [eax], 0x72
lea eax, [ebp - 8]
call fcn.100508e2
mov byte [eax + 1], 0x64
lea eax, [ebp - 8]
call fcn.100508e2
mov byte [eax + 2], 0x65
lea eax, [ebp - 8]
call fcn.100508e2
mov byte [eax + 3], 0x63
lea eax, [ebp - 8]
call fcn.100508e2
mov byte [eax + 4], 0x20
lea edx, [ebp - 0x10]
mov eax, dword [0x10083d54]
call fcn.10053b16
push dword [ebp - 0x10]
push 0x10061962
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.100536c2
push dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 4
call fcn.1005074a
mov eax, dword [ebp - 8]
call fcn.1005088a
push eax
push 0
push 0
call fcn.10051bb6
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x10061926
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
mov dword [0x10085718], edi
mov eax, dword [ebp - 4]
mov dword [0x1008571c], eax
cmp dword [0x10085724], 0
je 0x1006186f
cmp dword [0x10085728], 0
jne 0x100618f5
mov dl, 1
mov eax, dword [0x10083c7c]
call fcn.10057b96
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x1006190a
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x1006190a
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x1006190a
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x1006190a
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x1006190a
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 0x1006190a
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x10085720], edx
mov edx, 0x100616f6
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 0x1006190a
push 0x100616a2
push 0xffffffffffffffff
call dword [0x10085724]
mov dword [esi], eax
cmp dword [esi], 0
setne bl
test bl, bl
jne 0x10061926
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 0x10061950
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.1005045a
lea eax, [ebp - 8]
call fcn.10050436
ret
Function at 0x10061966
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
cmp dword [0x10085724], 0
je 0x1006197e
cmp dword [0x10085728], 0
jne 0x100619bf
mov dl, 1
mov eax, dword [0x10083c7c]
call fcn.10057b96
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea esi, [ebx + 0xa]
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x100619c6
mov eax, dword [0x10085720]
sub eax, ebx
sub eax, 0xe
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
jmp 0x100619c6
push eax
call dword [0x10085728]
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
pop esi
pop ebx
pop ecx
pop ebp
ret