joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100021b0
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x1001ea40]
sub esp, 0x110
test eax, eax
je 0x100021d0
push 0
push 0
push 0x100026a0
call fcn.10008058
add esp, 0xc
xor eax, eax
push edi
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov dword [esp + 8], eax
push 0xc
push ecx
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetModuleInformation
push str.bind
push str.ws2_32.dll
mov ecx, 0x100177f8
call fcn.10001510
push str.getpeername
push str.ws2_32.dll
mov ecx, 0x100177f8
mov dword [0x1001ea50], eax
call fcn.10001510
push str.getpeername
push 0x10002800
push 0x1001ea48
mov ecx, 0x100177f8
mov dword [0x1001ea48], eax
call fcn.10001320
push str.getsockname
push str.ws2_32.dll
mov ecx, 0x100177f8
call fcn.10001510
push str.getsockname
push 0x100028d0
push 0x1001ea4c
mov ecx, 0x100177f8
mov dword [0x1001ea4c], eax
call fcn.10001320
push str.connect
push str.ws2_32.dll
mov ecx, 0x100177f8
call fcn.10001510
push str.connect
push 0x100029d0
push 0x1001ea44
mov ecx, 0x100177f8
mov dword [0x1001ea44], eax
call fcn.10001320
push str.GetProcAddress
push str.Kernel32.dll
mov ecx, 0x100177f8
call fcn.10001510
push str.GetProcAddress
push 0x10002cb0
push 0x1001ea70
mov ecx, 0x100177f8
mov dword [0x1001ea70], eax
call fcn.10001320
push str.WinExec
push str.Kernel32.dll
mov ecx, 0x100177f8
call fcn.10001510
push str.CreateProcessInternalW
push str.Kernel32.dll
mov ecx, 0x100177f8
mov dword [0x1001ea5c], eax
call fcn.10001510
push str.CreateProcessAsUserW
push str.advapi32.dll
mov ecx, 0x100177f8
mov dword [0x1001ea54], eax
call fcn.10001510
push str.CreateProcessAsUserW
push 0x10002f40
push 0x1001ea58
mov ecx, 0x100177f8
mov dword [0x1001ea58], eax
call fcn.10001320
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x10]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll__strlwr
add esp, 4
mov ecx, 0x100177f8
call fcn.100013a0
pop edi
add esp, 0x110
ret
Function at 0x10002940
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Terminate process

Disassembly:
sub esp, 0x10
push esi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x100029bb
mov cx, word [0x1001efb8]
xor eax, eax
mov dword [esp + 4], eax
push edi
mov dword [esp + 0xc], eax
push ecx
mov dword [esp + 0x14], eax
mov word [esp + 0xc], 2
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x100153c8
mov word [esp + 0xe], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
lea edx, [esp + 8]
push 0x10
push edx
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100029ae
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp edi, 0xffffffff
pop edi
jne 0x100029c3
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
add esp, 0x10
ret

Function at 0x10003050
Capabilities:
Resume thread

Disassembly:
sub esp, 0x208
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x210]
push 0x103
lea ecx, [esp + 8]
push eax
push ecx
call fcn.10007d60
lea edx, [esp + 0x10]
push edx
call sub.MSVCRT.dll__strlwr
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x118]
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 0x108]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x108]
push ecx
call sub.MSVCRT.dll__strlwr
mov edx, dword [esp + 0x21c]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
add esp, 0x208
ret

Function at 0x100036d0
Capabilities:
Create udp socket

Disassembly:
push esi
push 0
push 2
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_socket]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov eax, ecx
pop esi
ret

Function at 0x100036f0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x1000374a
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10003760
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.10003770
pop edi
pop esi
add esp, 0x10
ret 8
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x10003770
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
neg eax
sbb eax, eax
inc eax
ret 8
Function at 0x100037f0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
mov esi, dword [esp + 0x118]
mov eax, 0x10624dd3
mov dword [esp + 0xc], 1
mul esi
shr edx, 6
mov dword [esp + 4], edx
mov eax, esi
xor edx, edx
mov esi, 0x3e8
div esi
mov eax, dword [ecx]
lea ecx, [esp + 4]
push ecx
push 0
push 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
lea edx, [esp + 0x18]
push edx
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
pop esi
jne 0x10003850
xor eax, eax
add esp, 0x10c
ret 8
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 8

Function at 0x10003b00
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x1e8
lea eax, [esp + 0x58]
push esi
push edi
push eax
mov esi, ecx
push 0x202
xor edi, edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10003bb6
lea ecx, [esp + 0x20]
call fcn.100030e0
lea ecx, [esp + 0x28]
call fcn.100030e0
lea ecx, [esp + 0x30]
call fcn.100030e0
lea ecx, [esp + 0x38]
call fcn.100030e0
mov edx, dword [esp + 0x1f4]
lea ecx, [esp + 0x18]
push 0x7b
push ecx
push edx
mov ecx, esi
call fcn.10003890
mov esi, eax
test esi, esi
je 0x10003ba3
lea eax, [esp + 0x50]
lea ecx, [esp + 0x28]
push eax
call fcn.100034c0
mov ecx, dword [eax]
mov dword [esp + 8], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xc], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 8]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x1f8]
push eax
push ecx
push edi
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, esi
pop edi
pop esi
add esp, 0x1e8
ret 8
mov eax, edi
pop edi
pop esi
add esp, 0x1e8
ret 8
Function at 0x10004d60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov ecx, dword [esp + 0x2c]
push ebx
push ebp
push esi
lea eax, [ecx + 0x230]
push edi
mov ebx, dword [eax]
mov dword [esp + 0x14], ebx
mov edi, dword [eax + 4]
mov dword [esp + 0x18], edi
mov ebp, dword [eax + 8]
mov dword [esp + 0x1c], ebp
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x20], edx
mov edx, eax
shr edx, 4
test edx, edx
jle 0x10004e87
mov esi, dword [esp + 0x40]
mov dword [esp + 0x10], edx
jmp 0x10004dab
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 0x4c]
lea eax, [esp + 0x24]
push eax
push esi
add ecx, 0x50
push edx
push ecx
call fcn.10004660
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
xor ecx, ebx
mov ebx, dword [esp + 0x3c]
xor eax, edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x30]
xor ebx, ebp
mov edx, esi
mov dword [esp + 0x3c], ebx
xor edi, eax
mov ebx, dword [edx]
mov dword [esp + 0x40], edi
mov dword [esp + 0x34], ecx
add esp, 0x10
mov edi, dword [edx + 4]
add esi, 0x10
mov ebp, dword [edx + 8]
mov eax, dword [edx + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x48]
mov edx, eax
add eax, 0x10
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
mov dword [edx], ecx
mov ecx, dword [esp + 0x28]
dec eax
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x30]
mov dword [edx + 0xc], ecx
jne 0x10004da7
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov ecx, eax
and ecx, 0xf
je 0x10004e7f
xor edx, edx
test ecx, ecx
jle 0x10004e69
lea edi, [esp + 0x14]
sub esi, edi
lea edi, [esp + edx + 0x14]
mov bl, byte [esi + edi]
xor bl, byte [edi]
inc edx
cmp edx, ecx
mov byte [esp + edx + 0x23], bl
jl 0x10004e57
mov edi, dword [esp + 0x48]
mov edx, ecx
lea esi, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov esi, dword [esp + 0x40]
jmp 0x10004e44
Function at 0x10004ea7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012a20
push 0x10008a40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x10004f0d
mov byte [ebp - 0x3d], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3d]
jmp 0x10004f96
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx], 0x4550
je 0x10004f34
mov byte [ebp - 0x3e], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3e]
jmp 0x10004f96
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0xd8]
cmp dword [ebp + 0xc], eax
jb 0x10004f6f
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
add edx, dword [ecx + 0xd8]
mov eax, dword [ebp - 0x3c]
add edx, dword [eax + 0xdc]
cmp dword [ebp + 0xc], edx
jae 0x10004f6f
mov byte [ebp - 0x3f], 1
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3f]
jmp 0x10004f96
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x40]
jmp 0x10004f96
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10005023
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1001efbc]
mov dword [ebp - 4], eax
jmp 0x1000503c
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10005059
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10005033
mov esp, ebp
pop ebp
ret
Function at 0x1000505d
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1001efc8], eax
je 0x1000507b
mov eax, 0x10dd
jmp 0x1000515d
mov eax, dword [0x1001efd8]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100050fa
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
xor eax, eax
mov al, byte [edx + 0x17]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x100050d8
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x10], 0
je 0x100050d8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
push eax
call fcn.1000519b
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.10007cb6
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x10005083
mov dword [0x1001efd8], 0
call fcn.10005161
mov ecx, dword [0x1001efd4]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x10005147
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.10007cb6
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
jmp 0x10005112
mov dword [0x1001efd4], 0
mov dword [0x1001efc8], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100055c1
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1001efcc], 0
je 0x100055da
mov eax, dword [0x1001efcc]
jmp 0x1000567a
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x100055ec
xor eax, eax
jmp 0x1000567a
push 8
call fcn.10007cc1
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10005642
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1000562b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10007cb6
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1001efcc], eax
mov dword [0x1001efd0], 0
mov eax, dword [ebp - 8]
jmp 0x1000567a
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1000565c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1000560c
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1001efd4]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1001efd4], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10005d5e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012a30
push 0x10008a40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10005d9f
xor eax, eax
jmp 0x10005e45
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x10005dcf
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
jmp 0x10005e45
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx], 0x4550
je 0x10005df9
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x44]
jmp 0x10005e45
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov ax, word [edx + 0x14]
test eax, eax
jne 0x10005e19
mov dword [ebp - 0x48], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x48]
jmp 0x10005e45
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c]
jmp 0x10005e45
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005e56
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1001efc8], eax
je 0x10005e7b
mov eax, 0x10dd
jmp 0x1000600f
cmp dword [0x1001efcc], 0
je 0x10005e8e
mov eax, dword [0x1001efcc]
jmp 0x1000600f
cmp dword [ebp + 8], 0
jne 0x10005e9e
mov eax, 6
jmp 0x1000600f
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10005ec7
mov dword [ebp - 0x14], 6
mov ecx, dword [ebp - 0x14]
mov dword [0x1001efcc], ecx
mov edx, dword [ebp + 8]
mov dword [0x1001efd0], edx
mov eax, dword [ebp - 0x14]
jmp 0x1000600f
push 0x18
call fcn.10007cc1
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10005f20
mov dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x14]
mov dword [0x1001efcc], ecx
cmp dword [ebp - 0x18], 0
je 0x10005f0f
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.10007cb6
add esp, 4
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
mov dword [0x1001efd0], ecx
mov eax, dword [ebp - 0x14]
jmp 0x1000600f
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10004e90
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
xor eax, eax
mov al, byte [edx + 0x17]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
sub edx, eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + 0x17]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10005f60
cmp dword [ebp - 8], 0x17
jbe 0x10005f7a
mov dword [ebp - 0x14], 9
cmp dword [0x1001efc4], 0
je 0x10005f75
jmp 0x10005ef0
jmp 0x10005ee7
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x1c]
cmp eax, dword [ebp + 0xc]
je 0x10005f9f
mov dword [ebp - 0x14], 9
cmp dword [0x1001efc4], 0
je 0x10005f9a
jmp 0x10005ef0
jmp 0x10005ee7
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push 0x40
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10005fcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
jmp 0x10005ee7
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 4], 1
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [0x1001efd8]
mov dword [ecx], edx
mov eax, dword [ebp - 0x18]
mov dword [0x1001efd8], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10006240
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x1001f008], 0
je 0x10006256
xor eax, eax
jmp 0x10006470
cmp dword [0x1001f004], 0
je 0x10006269
mov eax, dword [0x1001f004]
jmp 0x10006470
push 0x24
push 0
push 0x1001efe0
call fcn.10008b20
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x1001efe0], eax
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1001efe4], eax
cmp dword [0x1001efe4], 0
jne 0x1000630a
mov dword [0x1001f008], 1
cmp dword [0x1001efe4], 0
je 0x100062bd
mov eax, dword [0x1001efe4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1001efe8], 0
mov dword [0x1001efec], 0
mov dword [0x1001eff0], 0
mov dword [0x1001eff4], 0
mov dword [0x1001eff8], 0
mov dword [0x1001effc], 0
mov dword [0x1001f000], 0
xor eax, eax
jmp 0x10006470
push str.ImagehlpApiVersionEx
mov ecx, dword [0x1001efe4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1001efe8], eax
push str.SymInitialize
mov edx, dword [0x1001efe4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1001efec], eax
push str.SymSetOptions
mov eax, dword [0x1001efe4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1001eff0], eax
push str.SymGetOptions
mov ecx, dword [0x1001efe4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1001eff4], eax
push str.SymLoadModule64
mov edx, dword [0x1001efe4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1001eff8], eax
push str.SymGetModuleInfo64
mov eax, dword [0x1001efe4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1001effc], eax
push str.SymFromName
mov ecx, dword [0x1001efe4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1001f000], eax
push 8
push 0
lea edx, [ebp - 8]
push edx
call fcn.10008b20
add esp, 0xc
mov word [ebp - 8], 9
cmp dword [0x1001efe8], 0
je 0x100063ec
cmp dword [0x1001efec], 0
je 0x100063ec
cmp dword [0x1001eff8], 0
je 0x100063ec
cmp dword [0x1001effc], 0
je 0x100063ec
cmp dword [0x1001f000], 0
jne 0x100063f1
jmp 0x1000629e
lea eax, [ebp - 8]
push eax
call dword [0x1001efe8]
mov ecx, dword [ebp - 8]
and ecx, 0xffff
cmp ecx, 9
jge 0x1000640e
jmp 0x1000629e
push 0
push 0
mov edx, dword [0x1001efe0]
push edx
call dword [0x1001efec]
test eax, eax
jne 0x10006428
jmp 0x1000629e
cmp dword [0x1001eff4], 0
je 0x10006461
cmp dword [0x1001eff0], 0
je 0x10006461
call dword [0x1001eff4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and al, 0xf8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
or ecx, 0x2704
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [0x1001eff0]
mov dword [0x1001f004], 0x1001efe0
mov eax, dword [0x1001f004]
mov esp, ebp
pop ebp
ret
Function at 0x10006763
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012a50
push 0x10008a40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
cmp dword [ebp + 8], 0
jne 0x10006798
mov dword [ebp - 0x1c], 0x10000
jmp 0x100067a3
mov eax, dword [ebp + 8]
add eax, 0x10000
mov dword [ebp - 0x1c], eax
push 0x1c
push 0
lea ecx, [ebp - 0x38]
push ecx
call fcn.10008b20
add esp, 0xc
jmp 0x100067be
mov edx, dword [ebp - 0x38]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], edx
push 0x1c
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
ja 0x100067d7
jmp 0x10006863
cmp dword [ebp - 0x28], 0x1000
jne 0x100067ed
mov edx, dword [ebp - 0x24]
and edx, 0x100
test edx, edx
je 0x100067ef
jmp 0x100067b5
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x5a4d
je 0x10006815
mov dword [ebp - 4], 0xffffffff
jmp 0x100067b5
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
cmp dword [edx], 0x4550
je 0x10006835
mov dword [ebp - 4], 0xffffffff
jmp 0x100067b5
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x44]
jmp 0x10006865
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4