joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50cc70
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
xor edi, edi
cmp byte [ecx + 0x20], 0
je 0x50cc89
mov eax, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, edx
mov ebx, ecx
nop dword [eax]
mov eax, dword [ebx + 0x1c]
mov ebp, dword [esi]
xor eax, dword [ebp + 0x24]
mov ecx, dword [ebx + 0x18]
xor ecx, dword [ebp + 0x20]
or ecx, eax
jne 0x50cc7f
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x50ccbf
mov edx, esi
call fcn.0050cc70
test eax, eax
jne 0x50ccd7
mov ebx, dword [ebx + 0x10]
cmp byte [ebx + 0x20], 0
je 0x50cc90
jmp 0x50cc7f
mov eax, dword [ebx + 0x14]
mov dword [esp + 8], eax
mov edx, dword [eax + 0x1c]
cmp byte [esi + 0x18], 0x79
mov eax, dword [esi + 4]
jne 0x50ccdb
mov dword [esp], eax
jmp 0x50ccee
mov edi, eax
jmp 0x50cc7f
mov ecx, eax
add eax, 0x1f
add ecx, 0x3e
test eax, eax
cmovns ecx, eax
sar ecx, 5
mov dword [esp], ecx
test edx, edx
je 0x50cc7f
mov eax, dword [ebp]
mov dword [esp + 4], eax
mov eax, dword [esp]
imul eax, dword [ebx + 0x24]
mov dword [esp], eax
xor eax, eax
jmp 0x50cd29
mov edi, 1
mov eax, ecx
add ebx, edi
mov edi, 0x10b
mov edx, ebx
cmp eax, dword [esi + 4]
jge 0x50cc7f
movzx ebx, byte [edx]
xor edi, edi
cmp ebx, 2
jb 0x50cd60
nop word cs:[eax + eax]
and ebx, 0x80
mov ecx, ebx
shr ecx, 7
xor ecx, 1
add edi, ecx
movzx ebp, byte [edx + 1]
inc edx
mov ecx, ebp
and ecx, 0xfffffffe
or ecx, ebx
mov ebx, ebp
jne 0x50cd40
mov ecx, dword [esp + 8]
mov ecx, dword [ecx + 0x44]
mov ebx, dword [esp + 4]
cmp ecx, dword [ebx + 0x18]
jge 0x50cd74
cmp ecx, eax
jne 0x50cdc0
cmp byte [esi + 0x18], 0x79
jne 0x50cd90
mov ecx, dword [esi + 0x1c]
add eax, dword [esp]
mov dword [ecx + eax*4], edi
jmp 0x50cdc0
test edi, edi
je 0x50cdc0
mov edi, 1
mov ecx, eax
shl edi, cl
mov ecx, dword [esi + 0x1c]
lea ebx, [eax + 1]
add eax, 0x20
test ebx, ebx
cmovns eax, ebx
sar eax, 5
add eax, dword [esp]
or dword [ecx + eax*4], edi
nop word cs:[eax + eax]
cmp byte [edx], 1
jne 0x50ce56
lea ebx, [edx + 1]
movzx ecx, byte [edx + 1]
test cl, cl
jns 0x50cd10
and ecx, 0x7f
movzx edi, byte [edx + 2]
mov eax, edi
mov ebp, edi
shl eax, 7
or eax, ecx
mov edi, 2
mov ecx, ebp
test cl, cl
jns 0x50cd17
mov ecx, eax
and ecx, 0x3fff
movzx ebp, byte [edx + 3]
mov eax, ebp
shl eax, 0xe
or eax, ecx
mov edi, 3
mov ecx, ebp
test cl, cl
jns 0x50cd17
mov ecx, eax
and ecx, 0x1fffff
movzx ebp, byte [edx + 4]
mov eax, ebp
shl eax, 0x15
or eax, ecx
mov edi, 4
mov ecx, ebp
test cl, cl
jns 0x50cd17
and eax, 0xfffffff
movzx ecx, byte [edx + 5]
and ecx, 7
shl ecx, 0x1c
or eax, ecx
mov edi, 5
jmp 0x50cd17
xor edi, edi
jmp 0x50cc7f
Function at 0x50efe0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
mov dword [esp + 0xc], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00513780
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
lea esi, [esi]

Function at 0x50f040
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov eax, dword [0x53e580]
test eax, eax
jle 0x50f150
mov edx, dword [0x53e584]
xor ebx, ebx
mov ecx, dword [edx + 0xc]
cmp ecx, esi
ja 0x50f071
mov edi, dword [edx + 0x10]
add ecx, dword [edi + 8]
cmp esi, ecx
jb 0x50f0ea
add ebx, 1
add edx, 0x14
cmp ebx, eax
jne 0x50f060
mov dword [esp], esi
call fcn.005138e0
test eax, eax
mov edi, eax
je 0x50f177
lea esi, [ebx + ebx*4]
mov ebx, dword [0x53e584]
shl esi, 2
add ebx, esi
mov dword [ebx + 0x10], eax
mov dword [ebx], 0
call fcn.005139d0
add eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [0x53e584]
mov dword [esp + 8], 0x1c
mov eax, dword [eax + esi + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x50f157
mov eax, dword [ebp - 0x20]
cmp eax, 0x40
jne 0x50f0f2
add dword [0x53e580], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
je 0x50f0e3
cmp eax, 0x80
je 0x50f0e3
cmp eax, 8
je 0x50f0e3
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
add esi, dword [0x53e584]
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x50f0e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0050efe0
nop
lea esi, [esi]
xor ebx, ebx
jmp 0x50f07b
mov eax, dword [0x53e584]
mov eax, dword [eax + esi + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0050efe0
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0050efe0
mov esi, esi
lea edi, [edi]
Function at 0x50f980
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x12c
mov ebx, dword [ebp + 8]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
test ebx, ebx
mov dword [eax], 0
je 0x50fb2e
cmp byte [ebx], 0
je 0x50faf8
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
je 0x50fb10
test al, 0x10
je 0x50faf8
lea edi, [ebp - 0x11c]
mov dword [esp + 4], ebx
mov ebx, edi
mov dword [esp + 8], 0x104
mov dword [esp], edi
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__fullpath
mov edx, dword [ebx]
add ebx, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x50f9e4
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [ebx + 2]
cmove ebx, edx
add al, al
sbb ebx, 3
sub ebx, edi
lea eax, [ebx + 0x233]
mov dword [esp], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test eax, eax
mov esi, eax
je 0x50fb1f
lea edx, [eax + 0x22c]
lea eax, [ebx + 1]
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [ebp - 0x12c], edx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov edx, dword [ebp - 0x12c]
cmp byte [esi + 0x22c], 0
je 0x50fa73
movzx eax, byte [esi + ebx + 0x22b]
cmp al, 0x2f
je 0x50fa73
cmp al, 0x5c
je 0x50fa73
mov edi, 0x5c
mov word [edx + ebx], di
mov eax, edx
mov ecx, dword [eax]
add eax, 4
lea edx, [ecx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x50fa75
mov ecx, edx
shr ecx, 0x10
test edx, 0x8080
cmove edx, ecx
lea ecx, [eax + 2]
cmove eax, ecx
add dl, dl
sbb eax, 3
mov edx, 0x2a
mov word [eax], dx
xor ecx, ecx
xor eax, eax
lea edx, [esi + 0x120]
xor ebx, ebx
mov word [esi + 0x11c], cx
mov edi, edx
mov ecx, 0x41
mov dword [esi + 0x224], 0xffffffff
mov dword [esi + 0x228], 0
mov dword [esi + 0x118], 0
mov word [esi + 0x11e], bx
rep stosd dword es:[edi], eax
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 0x14
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 2
xor eax, eax
jmp 0x50faf0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 0xc
xor eax, eax
jmp 0x50faf0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 0xe
xor eax, eax
jmp 0x50faf0

Function at 0x513800
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x513838
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x51382e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x51383a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x513820
xor eax, eax
pop ebx
pop esi
ret
Function at 0x5c5360
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x588015
lea edi, [esi - 0x187015]
push edi
or ebp, 0xffffffff
jmp 0x5c5382
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5c5389
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5c5378
mov eax, 1
add ebx, ebx
jne 0x5c539b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5c53ac
jne 0x5c53cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5c53cb
dec eax
add ebx, ebx
jne 0x5c53b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5c5390
add ebx, ebx
jne 0x5c53c7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5c541d
xor ecx, ecx
sub eax, 3
jb 0x5c53e3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5c5452
sar eax, 1
mov ebp, eax
jmp 0x5c53ee
add ebx, ebx
jne 0x5c53ee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5c53bc
inc ecx
add ebx, ebx
jne 0x5c53fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5c53bc
add ebx, ebx
jne 0x5c5409
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5c53fe
jne 0x5c541a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5c53fe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5c543c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5c542e
jmp 0x5c537e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5c543c
add edi, ecx
jmp 0x5c537e
pop esi
mov edi, esi
mov ecx, 0x81e3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5c545a
cmp byte [edi], 5
jne 0x5c545a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5c545f
lea edi, [esi + 0x1c3000]
mov eax, dword [edi]
or eax, eax
je 0x5c54d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1c554c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1c5588]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5c548c
mov ecx, edi
jns 0x5c54bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1c5590]
or eax, eax
je 0x5c54d1
mov dword [ebx], eax
add ebx, 4
jmp 0x5c54a9
call dword [esi + 0x1c558c]
mov ebp, dword [esi + 0x1c5594]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5c550b
sub esp, 0xffffff80
jmp 0x403204
Function at 0x41acc2
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x41acff
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x41acf8
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x41ad04
add edx, 0x28
cmp edx, esi
jne 0x41ace9
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x41ad01

Function at 0x428000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x428175
cmp dword [esp + 0x54], 0x40
jne 0x428175
cmp word [esp + 0x10], 0x5a4d
jne 0x428175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x428175
lea eax, [esp + 0x54]
push 0
push eax
push 0xf8
push 0x42e960
push esi
call ebx
test eax, eax
je 0x428175
cmp dword [esp + 0x54], 0xf8
jne 0x428175
cmp dword [0x42e960], 0x4550
jne 0x428175
mov eax, dword [0x42e976]
test ah, 0x20
jne 0x428175
mov edx, dword [0x42ea80]
xor eax, eax
mov ax, word [0x42e966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x42ea58], eax
je 0x428175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x42ea6c], eax
xor eax, eax
mov ax, word [0x42e966]
mov edx, dword [0x42ea58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x428175
cmp dword [esp + 0x54], edi
jne 0x428175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x42ea80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x42e9b4]
cmp edx, eax
ja 0x428175
mov edi, dword [0x42ea58]
mov ecx, dword [0x42e988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x428175
xor eax, eax
push 2
mov ax, word [0x42e966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x428175
cmp dword [edi - 0x20], ebx
ja 0x428175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x42a769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42e190
cmp edx, dword [eax]
je 0x42a78b
add eax, 8
inc ecx
cmp eax, 0x42e220
jl 0x42a77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42e190]
jne 0x42a8b9
mov eax, dword [0x42ebb0]
cmp eax, 1
je 0x42a893
test eax, eax
jne 0x42a7bc
cmp dword [0x42e0e4], 1
je 0x42a893
cmp edx, 0xfc
je 0x42a8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42a7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0042b670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0042b490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42a836
lea eax, [ebp - 0x1a4]
push eax
call fcn.0042b490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42d45c
push edi
call fcn.0042bf00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0042b670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0042b680
lea eax, [ebp - 0xa0]
push 0x42d43c
push eax
call fcn.0042b680
push dword [esi + 0x42e194]
lea eax, [ebp - 0xa0]
push eax
call fcn.0042b680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042be75
add esp, 0x2c
pop edi
jmp 0x42a8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x42e194]
push 0
push eax
push dword [esi]
call fcn.0042b490
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 0x10001551
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1000156a
cmp dword [esi], 2
jae 0x1000156a
push 0x7a
pop eax
jmp 0x100015c8
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100015c8
cmp dword [ebp + 0x10], 7
je 0x10001598
push 0xd
jmp 0x10001567
mov ecx, dword [ebp + 0xc]
test edi, edi
je 0x100015c2
test cl, 1
jne 0x10001594
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x10001594
cmp word [edi + eax*2 - 2], 0
jne 0x10001594
cmp eax, 1
jbe 0x100015c2
cmp word [edi + eax*2 - 4], 0
jne 0x10001594
shr ecx, 1
mov dword [esi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x100015ce
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x1000161f
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x10001630
push 0xd
pop eax
jmp 0x1000165d
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x10001633
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x100022c2
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.10001510
mov ebx, eax
cmp ebx, esi
je 0x10002332
lea ecx, [ebp - 0x70]
call fcn.1000149b
mov eax, ebx
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000ef75
add ebp, 0x19c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1000234a
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.100022c2
cmp eax, esi
jne 0x1000237c
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call ebx
test eax, eax
je 0x1000233a
lea ecx, [ebp - 0x70]
call fcn.1000149b
push dword [ebp - 0x78]
mov ecx, edi
call fcn.10001440
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.1000149b
mov eax, esi
jmp 0x10002318
Function at 0x1000d9b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000da19
cmp dword [ebp + 0x10], 1
je 0x1000d9f1
cmp dword [ebp + 0x10], 2
je 0x1000d9f1
push 0xd
pop eax
jmp 0x1000da19
mov eax, dword [ebp - 4]
test edi, edi
je 0x1000da13
test eax, eax
je 0x1000da0e
test al, 1
jne 0x1000d9ec
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x1000da13
jmp 0x1000d9ec
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x1000ef75
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10030010]
jne 0x1000ef7f
repz ret
jmp fcn.10015978

Function at 0x1001a3b2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10015b60
and dword [ebp - 4], 0
cmp dword [0x10031ecc], 0
mov ebx, eax
jne 0x1001a463
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1001a514
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1001a514
push eax
call fcn.10015aee
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10031ecc], eax
call esi
push eax
call fcn.10015aee
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10031ed0], eax
call esi
push eax
call fcn.10015aee
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10031ed4], eax
call esi
push eax
call fcn.10015aee
pop ecx
mov dword [0x10031edc], eax
test eax, eax
je 0x1001a463
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10015aee
pop ecx
mov dword [0x10031ed8], eax
mov eax, dword [0x10031ed8]
cmp eax, ebx
je 0x1001a4bb
cmp dword [0x10031edc], ebx
je 0x1001a4bb
push eax
call fcn.10015b69
push dword [0x10031edc]
mov esi, eax
call fcn.10015b69
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1001a4bb
test edi, edi
je 0x1001a4bb
call esi
test eax, eax
je 0x1001a4b2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001a4b2
test byte [ebp - 0xc], 1
jne 0x1001a4bb
or dword [ebp + 0x10], 0x200000
jmp 0x1001a4f4
mov eax, dword [0x10031ed0]
cmp eax, ebx
je 0x1001a4f4
push eax
call fcn.10015b69
pop ecx
test eax, eax
je 0x1001a4f4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1001a4f4
mov eax, dword [0x10031ed4]
cmp eax, ebx
je 0x1001a4f4
push eax
call fcn.10015b69
pop ecx
test eax, eax
je 0x1001a4f4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10031ecc]
call fcn.10015b69
pop ecx
test eax, eax
je 0x1001a514
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001a516
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x9a8058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x9a81a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9a807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9a806a
add dl, dl
jne 0x9a8089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9a80dc
xor eax, eax
add dl, dl
jne 0x9a8096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9a817d
add dl, dl
jne 0x9a80a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9a80b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9a80bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9a80c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9a80d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9a8075
mov eax, 1
add dl, dl
jne 0x9a80ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9a80f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9a80e1
sub eax, ebx
mov ebx, 1
jne 0x9a8128
mov ecx, 1
add dl, dl
jne 0x9a810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9a8119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9a8105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9a8075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9a813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9a814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9a8136
cmp eax, 0x7d00
jae 0x9a816d
cmp eax, 0x500
jb 0x9a8168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9a8075
cmp eax, 0x7f
ja 0x9a8170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9a8075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9a819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9a8075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10