joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50b540
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90c
mov eax, dword [0x56b0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x90c], edi
mov ebx, dword [edi]
mov dword [ebp - 0x908], ebx
mov esi, dword [ebx + 0x8664]
mov eax, dword [esi + 0x1ab0]
sub eax, dword [esi + 0x1aac]
add eax, 2
push eax
lea eax, [esi + 0x18ac]
push eax
push 0x3c
push ebx
call fcn.0050ad50
mov eax, dword [esi + 0x1aac]
add esp, 0x10
movzx ecx, byte [eax]
inc eax
mov dword [esi + 0x1aac], eax
cmp ecx, 0x18
je 0x50b6f8
cmp ecx, 0x23
je 0x50b6d4
cmp ecx, 0x27
jne 0x50b786
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.004e8970
mov esi, dword [esi + 0x18a8]
add esp, 0x1c
mov edi, 4
mov eax, 0x800
test esi, esi
je 0x50b673
mov edx, dword [esi]
mov ecx, edx
lea ebx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50b600
sub ecx, ebx
lea ebx, [edi + 1]
add ebx, ecx
cmp ebx, 0x7fa
jae 0x50b661
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
push str._127_____127s
push edx
call fcn.004aa910
lea eax, [ebp - 0x84]
push eax
push 1
lea eax, [ebp - 0x104]
push eax
push 0
mov eax, 0x800
sub eax, edi
push str._c_s_c_s
push eax
lea eax, [ebp - 0x904]
add eax, edi
push eax
call fcn.004e8970
add esp, 0x2c
mov edi, ebx
mov esi, dword [esi + 4]
test esi, esi
jne 0x50b5f4
mov ebx, dword [ebp - 0x908]
mov eax, 0x800
push 0xf0
push 0xff
sub eax, edi
push 0x52abdc
push eax
lea eax, [ebp - 0x904]
add eax, edi
push eax
call fcn.004e8970
add esp, 0x14
lea eax, [edi + 2]
push 0
push eax
lea eax, [ebp - 0x904]
push eax
mov eax, dword [ebp - 0x90c]
push dword [eax + 0x130]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x50b6ce
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.004e8210
add esp, 0xc
push edi
jmp 0x50b774
lea edx, [esi + 0x1828]
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50b6e0
push 0xf0
push 0xff
push edx
push 0
push 0x23
jmp 0x50b719
lea edx, [esi + 0x1808]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50b703
push 0xf0
push 0xff
push edx
push 0
push 0x18
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
sub ecx, esi
lea eax, [ebp - 0x904]
push 0x800
push eax
lea esi, [ecx + 6]
call fcn.004e8970
add esp, 0x28
lea eax, [ebp - 0x904]
push 0
push esi
push eax
push dword [edi + 0x130]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x50b770
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.004e8210
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [ebp - 0x902]
push eax
push 0x3e
push ebx
call fcn.0050ad50
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004add49
mov esp, ebp
pop ebp
ret
Function at 0x50c680
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x56b0f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [eax + 0x3f0]
mov edi, dword [eax]
lea ebx, [esi + 0x15c]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [ebx]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x50c713
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.004c3bb0
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x50c746
push str.Received_too_short_packet
push edi
call fcn.004e8210
add esp, 8
mov dword [esi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004add49
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0050bfa0
movzx eax, ax
add esp, 4
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x50c761
jmp dword [eax*4 + 0x50c878]
cmp edx, 4
jle case.0x50c761.4
push ebx
call fcn.0050bf80
movzx ecx, word [esi + 0x40]
add esp, 4
inc ecx
cmp cx, ax
jne case.0x50c761.4
lea eax, [edx - 4]
push eax
mov eax, dword [ebx]
add eax, 4
push eax
push 1
push dword [ebp - 0x8c]
call fcn.004e7fd0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x50c7c6
push 5
push esi
call fcn.0050cf70
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004add49
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x38], eax
adc dword [edi + 0x3c], edx
push dword [edi + 0x3c]
push dword [edi + 0x38]
push edi
call fcn.004ff230
jmp 0x50c83e
push ebx
call fcn.0050bf80
movzx eax, ax
mov dword [esi + 8], eax
mov eax, dword [ebx]
add eax, 4
push eax
push 0x52532c
push edi
call fcn.004e82b0
add esp, 0x10
jmp case.0x50c761.4
lea eax, [edx - 2]
push eax
mov eax, dword [ebx]
add eax, 2
push eax
push esi
call fcn.0050c400
add esp, 0xc
test eax, eax
je case.0x50c761.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004add49
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x5186e4
push edi
call fcn.004e8210
add esp, 0xc
push dword [ebp - 0x8c]
call fcn.004ff460
add esp, 4
test eax, eax
je 0x50c733
push 5
push esi
call fcn.0050cf70
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.004add49
mov esp, ebp
pop ebp
ret
Function at 0x50c890
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffd
cmp eax, 4
ja case.0x50c8ad.4
jmp dword [eax*4 + 0x50caac]
lea eax, [edi + 0x15c]
push eax
call fcn.0050bf80
movzx ecx, ax
add esp, 4
movzx eax, word [edi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
je 0x50c8e9
push eax
push ecx
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push ebx
call fcn.004e82b0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
lea esi, [edi + 0x160]
mov word [edi + 0x40], cx
push 4
push esi
mov dword [edi + 0x18], 0
call fcn.0050bfe0
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.0050bfc0
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x50ca1f
mov eax, dword [edi + 0x154]
xor ecx, ecx
add eax, 4
cmp dword [edi + 0x14c], eax
lea eax, [edi + 0x38]
push eax
setl cl
lea ecx, [ecx*2 + 1]
mov dword [edi], ecx
call fcn.004c9d16
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
lea esi, [edi + 0x160]
push 4
push esi
mov word [edi + 0x40], ax
mov dword [edi + 0x18], eax
call fcn.0050bfe0
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.0050bfc0
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x50ca1f
lea eax, [edi + 0x38]
mov dword [edi], 1
push eax
call fcn.004c9d16
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
movzx eax, word [edi + 0x40]
inc dword [edi + 0x18]
inc eax
push dword [edi + 0x18]
movzx eax, ax
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebx
call fcn.004e82b0
mov eax, dword [edi + 0x18]
add esp, 0x10
cmp eax, dword [edi + 0x20]
jle 0x50c9fb
mov dword [edi + 8], 0xffffff9d
xor eax, eax
mov dword [edi], 3
pop edi
pop esi
pop ebx
pop ebp
ret
push dword [edi + 0x148]
lea eax, [edi + 0xc8]
push eax
push 0
push 4
push dword [edi + 0x160]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x50ca85
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [edi + 0x10]
call fcn.004f6570
push eax
push 0x5186e4
push ebx
call fcn.004e8210
add esp, 0x14
mov eax, 0x37
pop edi
pop esi
pop ebx
pop ebp
ret
lea esi, [edi + 0x160]
push 5
push esi
call fcn.0050bfe0
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.0050bfc0
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [edi], 3
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push str.tftp_rx:_internal_error
push 0x5186e4
push ebx
call fcn.004e8210
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x50cf70
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax]
cmp edx, 3
ja case.default.0x50cf82
jmp dword [edx*4 + 0x50cfd8]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0050cac0
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0050c890
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0050d180
push str.TFTP_finished
push 0x52532c
push eax
call fcn.004e82b0
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x5186e4
push eax
call fcn.004e8210
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x50d430
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x56b0f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.004e4a84
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x50d494
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [ebp - 0x108], 0
je 0x50d494
lea eax, [ebp - 0x108]
push eax
call dword [0x56ba9c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004add49
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004add49
mov esp, ebp
pop ebp
ret

Function at 0x50d4b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0050d430
Function at 0x510a40
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x56ba90]
mov edi, eax
add esp, 4
test edi, edi
jne 0x510a6d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x510ab4
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x510aba
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x510b1b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x510ae0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x510b47
mov eax, dword [esi + 4]
push 1
push 0x52c1f4
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x52c1f5
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x510b20
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x510b70
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x510ba3
push 0x2e
push edi
call fcn.004c4130
add esp, 8
test eax, eax
je 0x510ba1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x100060f3
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
not eax
mov dword [ebp - 4], eax
mov word [ebp - 8], 0
jmp 0x10006115
mov cx, word [ebp - 8]
add cx, 1
mov word [ebp - 8], cx
mov edx, dword [ebp - 8]
and edx, 0xffff
mov eax, dword [ebp + 0xc]
and eax, 0xffff
cmp edx, eax
jge 0x1000615a
mov ecx, dword [ebp - 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + ecx]
mov ecx, dword [ebp - 4]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp - 4]
shr edx, 8
mov eax, dword [ecx*4 + 0x1003e260]
xor eax, edx
mov dword [ebp - 4], eax
jmp 0x10006109
mov eax, dword [ebp - 4]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x100071b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp + 0xc]
push ecx
push 0x10041238
call fcn.10029550
add esp, 8
lea edx, [ebp - 0x314]
push edx
push 1
push 0x1000641c
push fcn.100063d7
push 0x10006376
push 0x10006327
push fcn.100062ce
push 0x10006289
push 0x10006267
call fcn.10014730
add esp, 0x24
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
jne 0x10007224
mov eax, dword [ebp - 0x314]
jmp 0x100073d3
push 0
push 0x8020
mov eax, dword [ebp + 8]
push eax
call fcn.100062ce
add esp, 0xc
mov dword [ebp - 0x318], eax
cmp dword [ebp - 0x318], 0xffffffff
jne 0x1000725f
mov ecx, dword [ebp - 0x308]
push ecx
call fcn.100147d0
add esp, 4
mov eax, 1
jmp 0x100073d3
lea edx, [ebp - 0x330]
push edx
mov eax, dword [ebp - 0x318]
push eax
mov ecx, dword [ebp - 0x308]
push ecx
call fcn.10014840
add esp, 0xc
test eax, eax
jne 0x100072a8
mov edx, dword [ebp - 0x318]
push edx
call fcn.1002932c
add esp, 4
mov eax, dword [ebp - 0x308]
push eax
call fcn.100147d0
add esp, 4
mov eax, 2
jmp 0x100073d3
mov ecx, dword [ebp - 0x318]
push ecx
call fcn.1002932c
add esp, 4
push 0x5c
mov edx, dword [ebp + 8]
push edx
call fcn.10029c50
add esp, 8
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 0
jne 0x100072fd
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x304]
push ecx
call fcn.10029550
add esp, 8
push 0x10051c08
lea edx, [ebp - 0x100]
push edx
call fcn.10029550
add esp, 8
jmp 0x10007347
mov eax, dword [ebp - 0x104]
add eax, 1
push eax
lea ecx, [ebp - 0x304]
push ecx
call fcn.10029550
add esp, 8
mov edx, dword [ebp - 0x104]
sub edx, dword [ebp + 8]
add edx, 1
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x100]
push ecx
call fcn.10029d00
add esp, 0xc
mov edx, dword [ebp - 0x104]
sub edx, dword [ebp + 8]
mov byte [ebp + edx - 0xff], 0
cmp dword [0x10041348], 0
jne 0x10007359
cmp dword [0x10040d48], 0
je 0x1000736c
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x204]
push ecx
call fcn.10029550
add esp, 8
lea edx, [ebp - 0x204]
push edx
push 0
push 0x10006ca9
push 0
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x304]
push ecx
mov edx, dword [ebp - 0x308]
push edx
call fcn.10014910
add esp, 0x1c
cmp eax, 1
je 0x100073b5
mov eax, dword [ebp - 0x308]
push eax
call fcn.100147d0
add esp, 4
mov eax, dword [ebp - 0x314]
jmp 0x100073d3
mov ecx, dword [ebp - 0x308]
push ecx
call fcn.100147d0
add esp, 4
cmp eax, 1
je 0x100073d1
mov eax, dword [ebp - 0x314]
jmp 0x100073d3
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000eecc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x1000ef13
cmp edx, 0x10
jl 0x1000eeff
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x1000eeec
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x1000ef13
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x1000ef0b
and edx, 3
cmp edx, 3
jne 0x1000ef27
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x1000ef2c
cmp edx, 2
jne 0x1000ef38
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x1000ef3d
cmp edx, 1
jne 0x1000ef43
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x1000fb70
Capabilities:
Encode data using xor

Disassembly:
push esi
mov eax, 0x8000
xor cx, cx
push edi
mov edi, dword [esp + 0xc]
mov word [edi + 0x3c], ax
mov esi, dword [edi + 0x14]
mov dword [edi + 0x20], 0
mov dword [edi + 0x34], eax
movzx eax, cx
inc cx
xor edx, edx
mov dl, byte [eax + esi + 0x8000]
mov eax, dword [edi + 0x20]
shl eax, 5
xor edx, eax
and edx, 0x7fff
cmp cx, 2
mov dword [edi + 0x20], edx
jb 0x1000fb8f
pop edi
pop esi
ret

Function at 0x10012480
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [ecx + 0x40fffffc], esi
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
Function at 0x1002f9e1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1002fa01
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10028b93
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x1002fa24
test byte [esp + 8], 2
je 0x1002fa24
call fcn.10028c06
mov dword [eax], 0xd
call fcn.10028c0f
mov dword [eax], 5
jmp 0x1002f9fd
xor eax, eax
ret

Function at 0x100308f5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10040048
cmp edx, dword [eax]
je 0x10030917
add eax, 8
inc ecx
cmp eax, 0x100400d8
jl 0x10030908
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10040048]
jne 0x10030a45
mov eax, dword [0x10053340]
cmp eax, 1
je 0x10030a1f
test eax, eax
jne 0x10030948
cmp dword [0x10053344], 1
je 0x10030a1f
cmp edx, 0xfc
je 0x10030a45
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1003097f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10029550
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10028150
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x100309c2
lea eax, [ebp - 0x1a4]
push eax
call fcn.10028150
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x100384bc
push edi
call fcn.10029d00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10029550
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10029560
lea eax, [ebp - 0xa0]
push 0x1003849c
push eax
call fcn.10029560
push dword [esi + 0x1004004c]
lea eax, [ebp - 0xa0]
push eax
call fcn.10029560
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.10033677
add esp, 0x2c
pop edi
jmp 0x10030a45
lea eax, [ebp + 8]
lea esi, [esi + 0x1004004c]
push 0
push eax
push dword [esi]
call fcn.10028150
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4010d5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.0040c8b0
mov ebx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x94]
push eax
push esi
push esi
push 0x4000020
push esi
push esi
mov dword [ebp - 0x94], edi
mov edi, dword [ebp + 0xc]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401161
push 0x3c
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.0040c8b0
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x401166
mov eax, dword [ebp - 8]
jmp 0x401168
mov eax, dword [ebp - 0x50]
jmp 0x401168
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40116d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREIntelTvWizard_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4011cd
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.IsTvWizardInstalled
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 4], esi
je 0x4011cd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 8], 1
pop esi
sete al
leave
ret

Function at 0x4011d9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREIntelDisplayigfxcuihkcmd
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40123e
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.ExpansionAllDisplay
push dword [ebp - 4]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401235
cmp dword [ebp - 8], 1
jne 0x401235
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret