joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000fa51
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc08
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
movzx eax, byte [edi]
mov dword [esi], eax
movzx eax, byte [edi + 1]
shr eax, 7
mov dword [esi + 4], eax
movzx eax, word [edi + 1]
mov ecx, eax
and ecx, 0xf
shl ecx, 8
shr eax, 8
or ecx, eax
mov dword [esi + 8], ecx
mov al, byte [edi + 5]
shr eax, 1
and eax, 0x1f
mov dword [esi + 0xc], eax
mov al, byte [edi + 5]
and eax, 1
push dword [esi + 0xc]
mov dword [esi + 0x10], eax
movzx eax, byte [edi + 6]
mov dword [esi + 0x14], eax
push str.pat_version____d_n
movzx eax, byte [edi + 7]
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x408]
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
movzx eax, word [edi + 3]
xor ecx, ecx
mov ch, al
shr eax, 8
or ecx, eax
lea eax, [ebp - 0x408]
push ecx
push str.transport_stream_id___d_n
push eax
mov dword [esi + 0x28], ecx
call ebx
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 8]
and dword [ebp - 4], 0
sub eax, 9
shr eax, 2
test eax, eax
mov dword [esi + 0x2c], eax
jle 0x1000fbc4
lea ecx, [esi + 0x34]
add edi, 0xa
mov dword [ebp + 8], ecx
mov dword [ebp - 8], edi
jmp 0x1000fb29
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 8]
movzx eax, word [edi - 2]
xor edx, edx
push dword [ebp - 4]
mov dh, al
shr eax, 8
or edx, eax
push str.____program_index_________________d_n
mov dword [ecx - 4], edx
movzx eax, word [edi]
mov edx, eax
and edx, 0x1f
shl edx, 8
shr eax, 8
or edx, eax
lea eax, [ebp - 0x408]
push eax
mov dword [ecx], edx
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
call edi
mov eax, dword [ebp + 8]
push dword [eax - 4]
lea eax, [ebp - 0x808]
push str.____program_number________________d_n
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call edi
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0xc08]
push str.____network_or_program_map_PID____d_n_n
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0xc08]
push eax
call edi
inc dword [ebp - 4]
add dword [ebp - 8], 4
mov eax, dword [ebp - 4]
add dword [ebp + 8], 8
cmp eax, dword [esi + 0x2c]
jl 0x1000fb23
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1000fe44
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
movzx eax, word [edi + 1]
mov ecx, eax
and ecx, 0xf
shl ecx, 8
shr eax, 8
or ecx, eax
cmp ecx, 0x3fd
jg 0x1000ff27
cmp ecx, 5
jl 0x1000ff27
mov al, byte [edi + 7]
cmp al, byte [edi + 6]
jb 0x1000ff27
mov al, byte [edi + 1]
and al, 0x80
cmp al, 0x80
jne 0x1000ff27
movzx eax, word [edi + 0xa]
mov edx, eax
and edx, 0xf
shl edx, 8
shr eax, 8
or edx, eax
add edx, 0xd
cmp ecx, edx
jl 0x1000ff27
cmp byte [edi], 2
jne 0x1000ff27
push dword [ebp + 0xc]
push edi
call fcn.10010346
test eax, eax
je 0x1000ff27
push edi
lea ecx, [ebp - 0x9b0]
call fcn.1000ff2f
test eax, eax
je 0x1000ff27
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x988]
push str.add__update_pmt_section_to_programs_n
mov dword [esi + eax*8 + 0x10], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x9a4]
mov dword [esi + eax*8 + 0x14], ecx
inc dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x9b0]
push eax
call fcn.10010096
mov ecx, dword [esi + 4]
mov byte [esi], 1
test ecx, ecx
je 0x1000ff13
lea eax, [ecx + 0xc]
jmp 0x1000ff15
xor eax, eax
push eax
push 0
push 0x8223
call fcn.10022c40
push 1
pop eax
jmp 0x1000ff29
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x1000ff2f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
movzx ecx, byte [eax]
mov dword [esi], ecx
and dword [ebp + 8], 0
movzx ecx, byte [eax + 1]
shr ecx, 7
mov dword [esi + 4], ecx
movzx ecx, word [eax + 1]
mov edx, ecx
and edx, 0xf
shl edx, 8
shr ecx, 8
or edx, ecx
mov dword [esi + 8], edx
mov cl, byte [eax + 5]
shr ecx, 1
and ecx, 0x1f
xor edx, edx
mov dword [esi + 0xc], ecx
mov cl, byte [eax + 5]
and ecx, 1
mov dword [esi + 0x10], ecx
movzx ecx, byte [eax + 6]
mov dword [esi + 0x14], ecx
movzx ecx, byte [eax + 7]
mov dword [esi + 0x18], ecx
movzx ecx, word [eax + 3]
mov dh, cl
shr ecx, 8
or edx, ecx
mov dword [esi + 0x28], edx
movzx ecx, word [eax + 8]
mov edx, ecx
and edx, 0x1f
shl edx, 8
shr ecx, 8
or edx, ecx
mov dword [esi + 0x2c], edx
movzx ecx, word [eax + 0xa]
mov edi, ecx
and edi, 0xf
shl edi, 8
shr ecx, 8
or edi, ecx
mov ecx, dword [esi + 8]
mov dword [esi + 0x30], edi
lea ecx, [ecx + eax - 1]
lea edi, [edi + eax + 0xc]
cmp edi, ecx
mov dword [ebp - 4], ecx
jae 0x10010086
push ebx
movzx eax, word [edi + 3]
movzx ebx, word [ebp + 8]
mov ecx, eax
and ecx, 0xf
shl ecx, 8
shr eax, 8
or ecx, eax
movzx eax, byte [edi]
add ecx, 5
push eax
mov dword [ebp - 0xc], ecx
lea ecx, [ebx + ebx*2]
push str.stream_type___x_n
lea ecx, [esi + ecx*4]
mov dword [ebp - 8], ecx
mov dword [ecx + 0x38], eax
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
movzx ecx, word [edi + 1]
mov eax, ecx
and eax, 0x1f
shl eax, 8
shr ecx, 8
or eax, ecx
lea ecx, [ebx + ebx*2 + 0xf]
push eax
push str.elementary_PID___x_n
mov dword [esi + ecx*4], eax
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
movzx eax, word [edi + 3]
add edi, dword [ebp - 0xc]
mov ecx, eax
and ecx, 0xf
shl ecx, 8
shr eax, 8
or ecx, eax
mov eax, dword [ebp - 8]
inc dword [ebp + 8]
cmp edi, dword [ebp - 4]
mov dword [eax + 0x40], ecx
jb 0x1000ffd7
pop ebx
movzx eax, word [ebp + 8]
push 1
mov dword [esi + 0x34], eax
pop eax
pop edi
pop esi
leave
ret 4
Function at 0x100101d7
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
jne 0x100101f4
mov eax, 0x80004003
jmp 0x10010301
mov ecx, dword [eax]
and dword [ebp - 4], 0
and dword [ebp + 8], 0
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x28]
test eax, eax
jl 0x10010301
mov eax, dword [ebp - 4]
lea edx, [ebp + 8]
push 0
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x100102f3
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
jl 0x10010308
cmp dword [ebp - 0x14], 1
jne 0x100102d1
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0xc]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
jl 0x100102a0
cmp dword [ebp - 0x10], 0
je 0x100102a0
mov esi, dword [ebp - 0xc]
push 4
pop ecx
mov edi, 0x10036bc0
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x10010313
mov esi, dword [ebp - 0xc]
push 4
pop ecx
mov edi, 0x10036bb0
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x10010313
jmp 0x10010259
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
lea eax, [ebp - 0x414]
push str.IEnumMediaTypes::Next___failed__Error_0x_lx_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
call ebx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
lea edx, [ebp + 8]
push 0
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x1001022d
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, 0x80004005
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x100102f3
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push eax
mov dword [ecx], eax
mov ecx, dword [eax]
call dword [ecx + 8]
push dword [ebp - 0xc]
call fcn.1002ad50
push str.AM_MEDIA_TYPE.majortype_matches
call ebx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
jmp 0x10010301

Function at 0x10010346
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
or ecx, 0xffffffff
test edx, edx
jbe 0x10010373
mov eax, dword [esp + 4]
push esi
push edi
movzx edi, byte [eax]
mov esi, ecx
shr esi, 0x18
xor esi, edi
shl ecx, 8
mov esi, dword [esi*4 + 0x10044c68]
xor ecx, esi
inc eax
dec edx
jne 0x10010357
pop edi
pop esi
xor eax, eax
test ecx, ecx
sete al
ret 8
Function at 0x10010b1c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
and dword [esi], 0
or dword [esi + 0x19c], 0xffffffff
and dword [esi + 0x1a4], 0
mov dword [esi + 0x1a0], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1a8], eax
lea eax, [esi + 0x1ac]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ebx, [esi + 4]
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esi + 0xc]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10010b78
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x80004005
jmp 0x10010bb9
xor edi, edi
mov dword [ebp + 8], edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [ebx], eax
je 0x10010b9c
inc dword [ebp + 8]
add ebx, 4
cmp dword [ebp + 8], 2
jb 0x10010b7d
jmp 0x10010bb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and eax, 0xffff
or eax, 0x80070000
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x10010c53
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
lea eax, [edi + 0x1ac]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x19c], 0xffffffff
je 0x10010cfe
lea ebx, [edi + 0x1a4]
cmp dword [ebx], 0xa
jge 0x10010cfe
push dword [ebp + 8]
mov ecx, dword [edi + 0x1a0]
push dword [edi + 8]
call fcn.1000e139
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x10010cfe
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], esi
mov ecx, dword [esi]
mov dword [esi + 0x14], edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 4], eax
lea eax, [esi + 0x20]
push 0x10010bf9
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push 1
push eax
push dword [edi + 0x19c]
mov dword [ebp - 0x14], ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x10010cee
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x10010cf7
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x10010c81
mov ecx, esi
call fcn.1000dfb3
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10010d0e
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x1ac]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
push 0x15
push eax
push eax
push eax
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 0x19c], eax
je 0x10010dc1
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 8]
push 4
push ecx
push 4
push 0xffff
push eax
mov dword [ebp - 8], 1
call ebx
cmp eax, 0xffffffff
je 0x10010dc1
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
and dword [ebp - 0x1c], 0
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x20]
push 0x10
push eax
push dword [esi + 0x19c]
mov word [ebp - 0x20], 2
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x10010dc1
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0xc], 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 8
push eax
push 0xc
push 0
push dword [esi + 0x19c]
call ebx
cmp eax, 0xffffffff
jne 0x10010def
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, esi
mov edi, eax
call fcn.10010e01
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
and edi, 0xffff
or edi, 0x80070000
neg eax
sbb eax, eax
and eax, edi
jmp 0x10010dfa
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10010e73
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1ac]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp + 0x10]
and dword [esi + 0x1a4], 0
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10010d0e
test eax, eax
jl 0x10010ed8
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x10010ee7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi], eax
jne 0x10010ed8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.10010e01
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
xor eax, eax
pop ebx
leave
ret 0xc
Function at 0x100110c8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
cmp eax, 0xf3d4e
jne 0x10011123
and byte [ebp - 0x28], 0
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 0x34], 0x6c
mov byte [ebp - 0x33], 0x76
mov byte [ebp - 0x32], 0x70
mov byte [ebp - 0x31], 0x72
mov byte [ebp - 0x30], 0x63
mov byte [ebp - 0x2f], 0x69
mov byte [ebp - 0x2e], 0x6e
mov byte [ebp - 0x2d], 0x6a
mov byte [ebp - 0x2c], 0x2e
mov byte [ebp - 0x2b], 0x64
mov byte [ebp - 0x2a], 0x6c
mov byte [ebp - 0x29], 0x6c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10011121
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
leave
ret 4

Function at 0x10011269
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0x10], 0
push esi
push 4
pop esi
mov dword [ebp - 4], esi
je 0x100112ba
lea edx, [ebp + 8]
mov eax, dword [ebp + 8]
push edx
lea edx, [ebp + 0x10]
push esi
mov ecx, dword [eax]
push edx
lea edx, [ebp + 0x10]
or dword [ebp + 0x10], 0xffffffff
push esi
push edx
push dword [ebp + 0x18]
push 0x10036be8
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x100112f8
lea eax, [ebp + 0x10]
push esi
push eax
push dword [ebp - 4]
push 0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x100112f8
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jl 0x100112f6
mov eax, dword [ebp + 8]
lea edx, [ebp + 0x10]
push esi
push edx
mov ecx, dword [eax]
lea edx, [ebp + 0x10]
push esi
push edx
push dword [ebp + 0x18]
push 0x10036be8
push eax
call dword [ecx + 0xc]
xor eax, eax
pop esi
leave
ret 0x14

Function at 0x100112fd
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x1c]
push edi
push esi
mov dword [ebp - 4], 3
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
xor ebx, ebx
mov edi, eax
cmp dword [ebp + 0x10], ebx
je 0x10011354
mov eax, dword [ebp + 8]
lea edx, [ebp + 8]
push edx
push esi
mov ecx, dword [eax]
push edi
push esi
push edi
push dword [ebp + 0x18]
push 0x10036be8
push eax
call dword [ecx + 0x10]
mov ebx, eax
test ebx, ebx
jl 0x10011388
push esi
push edi
push dword [ebp - 4]
push 0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
jmp 0x10011388
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x1c], esi
push eax
lea eax, [ebp - 4]
push edi
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jl 0x10011388
push dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push edi
push esi
push edi
push dword [ebp + 0x18]
push 0x10036be8
push eax
call dword [ecx + 0xc]
push edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0x18
Function at 0x10011f47
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
push 1
mov ebx, dword [ebp + 0xc]
pop edi
xor esi, esi
lea eax, [ebp - 0x10]
push esi
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], 0x80004005
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 8], edi
push ebx
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x10011ff2
push esi
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x10011ff2
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
lea edi, [ebp - 0x20]
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x38], 0x101
mov eax, dword [eax]
mov word [ebp - 0x34], si
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebx]
mov dword [ebp - 0x2c], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10011ff2
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], esi
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x10011ffc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xffffffffffffffff
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0x10]
call esi
push dword [ebp + 0xc]
call esi
push dword [ebp + 8]
call esi
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x10012037
Capabilities:
Read file on windows

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
ret 0x10
Function at 0x10017093
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x10033ffe
call fcn.10031d20
sub esp, 0x10
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp byte [edi + 0x1d], bl
jne 0x10017182
push esi
push 0x20
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x100170de
mov esi, dword [ebp + 8]
push 0x66747970
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
push edx
push eax
push esi
call fcn.10016a46
jmp 0x100170e0
xor eax, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
call fcn.1001fddc
mov ecx, dword [ebp - 0x1c]
push 4
pop esi
mov byte [ebp - 0x10], 0x6d
mov byte [ebp - 0xf], 0x70
mov byte [ebp - 0xe], 0x34
mov byte [ebp - 0xd], 0x32
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push esi
push edx
mov dword [ebp - 4], 1
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push esi
push edx
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 0x10], 0x6d
mov byte [ebp - 0xf], 0x70
mov byte [ebp - 0xe], 0x34
mov byte [ebp - 0xd], 0x32
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push esi
push edx
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 0x10], 0x69
mov byte [ebp - 0xf], 0x73
mov byte [ebp - 0xe], 0x6f
mov byte [ebp - 0xd], 0x6d
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push esi
push edx
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x1c]
call fcn.10016ba0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
mov byte [edi + 0x1d], 1
call fcn.1001fdfa
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1001a754
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1001a6e6
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1001a704
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1001a762
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1001a749
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1001a752
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1001a75c
adc byte [ebp + eax + 3], dh
enter 0x980, 4
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1001a73e
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1001a6c8
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1001a7af
dec eax
je 0x1001a7a6
sub eax, 3
je 0x1001a79d
mov dword [ebp - 4], 0x40
jmp 0x1001a7cc
mov dword [ebp - 4], 4
jmp 0x1001a7b2
mov dword [ebp - 4], 0x20
jmp 0x1001a7b2
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1001a7fe
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1001a77e
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1001a00f
aam 6
movsb byte es:[edi], byte [esi]
outsd dx, dword [esi]
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x1001a80a
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001e2f2
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x1001e31d
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x1001e356
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
pop esi
ret

Function at 0x1002b130
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1002b153
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
pop ecx
ret
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x1002b100
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x14], eax
push edi
jne 0x1002b17e
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, 1
pop esi
pop ecx
ret