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

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
test esi, esi
jne 0x40b34c
xor eax, eax
jmp 0x40b444
call fcn.0040b330
xor ebx, 0xffffffff
cmp edi, 8
jb 0x40b421
xor edx, edx
sub edi, 8
mov dl, byte [esi]
inc esi
xor edx, ebx
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
cmp edi, 8
mov ebx, ecx
jae 0x40b35d
test edi, edi
je 0x40b43f
xor edx, edx
mov dl, byte [esi]
inc esi
xor edx, ebx
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
dec edi
mov ebx, ecx
jne 0x40b425
mov eax, ebx
xor eax, 0xffffffff
pop edi
pop esi
pop ebx
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x474726f4
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..text
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x21df6077
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x43b66b
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x43b3c1
push 0x68e712b2
pop edx
and edx, ecx
call fcn.0043b6a1
and edx, ecx
or edx, edx
xor dword [edi], esi
sub ecx, 0x369f35df
push edx
pop edx
inc edi
mov edx, 0xefbd2bca
inc ecx
or ecx, edx
cmp edi, eax
jne fcn.0043b66b
add ecx, ecx
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401d3a
Capabilities:
Enumerate pe sections

Disassembly:
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
jmp 0x401d6f
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x401d6c
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x401d78
add edx, 0x28
cmp edx, esi
jne 0x401d5a
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x401d75

Function at 0x4026bd
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4026fc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4026fc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4026fc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4026fc
cmp dword [ecx + 0x74], 0xe
jbe 0x4026fc
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0xb8a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00b8a1a8
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 0xb8a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb8a06a
add dl, dl
jne 0xb8a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb8a0dc
xor eax, eax
add dl, dl
jne 0xb8a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb8a17d
add dl, dl
jne 0xb8a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb8a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb8a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb8a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb8a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb8a075
mov eax, 1
add dl, dl
jne 0xb8a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb8a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb8a0e1
sub eax, ebx
mov ebx, 1
jne 0xb8a128
mov ecx, 1
add dl, dl
jne 0xb8a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb8a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb8a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb8a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb8a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb8a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb8a136
cmp eax, 0x7d00
jae 0xb8a16d
cmp eax, 0x500
jb 0xb8a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb8a075
cmp eax, 0x7f
ja 0xb8a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb8a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb8a19e
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 0xb8a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x5c9a63
Capabilities:
Encode data using xor

Disassembly:
pop edi
xchg ecx, eax
fcomp qword [0x9d62062d]
cmp eax, 0x30787b62
sbb ebp, 0xe245e275
lds esp, [esi]
adc eax, 0xf1e9dce9
sbb ah, bh
invalid

Function at 0x65795d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x65f398
cmp edx, dword [eax]
je 0x65797f
add eax, 8
inc ecx
cmp eax, 0x65f428
jl 0x657970
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x65f398]
jne 0x657aad
mov eax, dword [0xa5bcf4]
cmp eax, 1
je 0x657a87
test eax, eax
jne 0x6579b0
cmp dword [0x65f2c4], 1
je 0x657a87
cmp edx, 0xfc
je 0x657aad
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x6579e7
lea eax, [ebp - 0x1a4]
push 0x65c9f0
push eax
call fcn.00658340
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.006587d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x657a2a
lea eax, [ebp - 0x1a4]
push eax
call fcn.006587d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65c9ec
push edi
call fcn.0065a6a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65c9d0
push eax
call fcn.00658340
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00658350
lea eax, [ebp - 0xa0]
push 0x65c9cc
push eax
call fcn.00658350
push dword [esi + 0x65f39c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00658350
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65c9a4
push eax
call fcn.0065a614
add esp, 0x2c
pop edi
jmp 0x657aad
lea eax, [ebp + 8]
lea esi, [esi + 0x65f39c]
push 0
push eax
push dword [esi]
call fcn.006587d0
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 0x40e20a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 4]
push edi
mov edi, ecx
test esi, esi
jns 0x40e238
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
and eax, 0xfffffffe
and esi, 0x7fffffff
push eax
add esi, edx
push esi
call fcn.0040e2b9
add esp, 0xc
jmp 0x40e2b5
push ebx
mov ecx, 0x7fffffff
and esi, ecx
add esi, edx
lea eax, [ebp + 8]
mov ebx, dword [esi]
and dword [ebp + 8], 0
push eax
push 4
push dword [esi + 4]
and ebx, ecx
add ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40e2b4
mov eax, dword [ebp + 0x10]
push 0xffffffffffffffff
mov ecx, dword [eax + 0x1c]
push 0
sub ecx, edi
test byte [ebp + 0xc], 0x40
pop eax
setne al
lea eax, [eax*2 - 1]
push eax
mov eax, dword [0x504d84]
imul eax, dword [esi]
push eax
mov eax, dword [0x504d8c]
imul eax, dword [esi]
push eax
mov eax, dword [0x504d80]
mov edx, dword [esi + 4]
xor eax, ecx
push eax
mov ecx, ebx
call fcn.0040e838
add esp, 0x14
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push dword [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x40e7e8
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push ebx
mov ebx, dword [ecx + 0x3c]
add ebx, ecx
push ebp
movzx eax, word [ebx + 0x14]
lea ebp, [ebx + 0x18]
add ebp, eax
push esi
xor eax, eax
xor esi, esi
push edi
mov dword [esp + 0x10], edx
cmp ax, word [ebx + 6]
jae 0x40e828
mov edi, ebp
push edi
push edx
call fcn.0041e466
pop ecx
pop ecx
test eax, eax
je 0x40e830
movzx eax, word [ebx + 6]
mov edx, dword [esp + 0x10]
inc esi
add edi, 0x28
cmp esi, eax
jb 0x40e80b
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
imul esi, esi, 0x28
lea eax, [esi + ebp]
jmp 0x40e82a
Function at 0x40f33a
Capabilities:
Parse pe header

Disassembly:
push 8
push 0x436970
call fcn.00428f40
mov esi, ecx
and dword [ebp - 4], 0
lea edi, [esi + 0x80]
push dword [ebp + 0xc]
push 0x40
push 0
push edi
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40f43b
or dword [ebp - 4], 0xffffffff
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x40f42a
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x40f42a
mov dword [ebp - 4], 1
lea edi, [esi + 0xc0]
push dword [ebp + 0xc]
push 0xf8
push eax
push edi
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40f43b
or dword [ebp - 4], 0xffffffff
cmp dword [edi], 0x4550
jne 0x40f42a
mov eax, 0x10b
cmp word [esi + 0xd8], ax
jne 0x40f42a
movzx eax, word [esi + 0xc6]
test ax, ax
je 0x40f42a
mov edi, eax
imul edi, edi, 0x28
movzx ecx, word [esi + 0xd4]
mov ebx, dword [esi + 0xbc]
add ecx, 0x18
add ebx, ecx
push edi
call fcn.0041e578
pop ecx
mov dword [esi + 0x1b8], eax
test eax, eax
jne 0x40f3ff
push 8
jmp 0x40f441
mov dword [ebp - 4], 2
push dword [ebp + 0xc]
push edi
push ebx
push eax
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40f43b
or dword [ebp - 4], 0xffffffff
lea eax, [ebx + edi]
mov dword [esi + 0x18], eax
xor eax, eax
jmp 0x40f442
push 0xb
jmp 0x40f441
or dword [ebp - 4], 0xffffffff
push 0x1e
pop eax
call fcn.00428f7b
ret 8

Function at 0x412128
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov ecx, 0xff077af4
test edi, edi
je 0x412161
movzx eax, byte [ebx]
cdq
push 0
xor esi, edx
push 0x1000193
xor ecx, eax
push esi
push ecx
inc ebx
call fcn.00428910
xor esi, esi
mov ecx, eax
dec edi
jne 0x412143
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41216a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [0x5082b8]
or eax, dword [0x5082bc]
push ebx
push esi
mov ebx, edx
push edi
mov dword [esp + 0xc], ebx
mov edi, ecx
jne 0x4121ca
xor esi, esi
mov eax, esi
push 8
cdq
pop ebx
mov ecx, eax
shrd eax, edx, 1
and ecx, 1
shr edx, 1
or ecx, 0
je 0x4121ac
xor eax, 0xd7870f42
xor edx, 0xc96c5795
dec ebx
jne 0x412191
mov dword [esi*8 + 0x507ac0], eax
mov dword [esi*8 + 0x507ac4], edx
inc esi
cmp esi, 0x100
jl 0x41218b
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
not ecx
not edx
test edi, edi
je 0x4121fb
movzx eax, byte [edi]
xor eax, ecx
shrd ecx, edx, 8
and eax, 0xff
shr edx, 8
xor ecx, dword [eax*8 + 0x507ac0]
xor edx, dword [eax*8 + 0x507ac4]
inc edi
dec ebx
jne 0x4121d8
pop edi
not ecx
pop esi
not edx
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417711
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42aa89
push eax
mov dword fs:[0], esp
sub esp, 0x38
cmp dword [0x507a90], 0
push esi
je 0x4177b0
mov esi, 0x507a80
push ecx
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00419939
mov ecx, eax
call fcn.00419b62
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x417761
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
push dword [eax + ecx*4]
lea ecx, [esp + 0x24]
call fcn.00411455
and dword [esp + 0x44], 0
mov ecx, esi
call fcn.004197ee
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x417792
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
or dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00402161
cmp dword [0x507a90], 0
jne 0x41773e
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4177c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x429979
call fcn.0041ecbc
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0x10
mov edi, edx
jb 0x4177de
mov eax, dword [esi]
jmp 0x4177e0
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41788e
push ecx
push ecx
mov ecx, esi
call fcn.00418e44
cmp eax, 0xffffffff
je 0x417833
push eax
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.004111c1
and dword [ebp - 4], 0
mov edx, edi
mov ecx, eax
call fcn.004177c0
mov bl, al
neg bl
sbb bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00402161
inc bl
je 0x417833
xor al, al
jmp 0x41789a
mov ecx, dword [0x5078bc]
test ecx, ecx
je 0x417850
cmp dword [esi + 0x14], 0x10
jb 0x417847
mov eax, dword [esi]
jmp 0x417849
mov eax, esi
push 0
push eax
call ecx
jmp 0x41787a
cmp dword [0x505c48], 0
je 0x417878
push 0x18
pop eax
call fcn.0041f0e0
push esp
push 0x435098
call fcn.0040e5be
push eax
call dword [0x505c48]
add esp, 0xc
jmp 0x41782f
xor eax, eax
test eax, eax
je 0x41782f
push esi
mov ecx, 0x507a80
call fcn.0041976b
mov byte [edi], 0
jmp 0x417898
test eax, 0x410
je 0x41782f
mov byte [edi], 1
mov al, 1
lea esp, [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4184f8
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x42aa6d
call fcn.0041ecbc
mov eax, 0x1030
call fcn.0041f0e0
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x1048], ebx
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
push 0x500b18
push 0x80000001
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0xf
pop edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov dword [esp + 0x1048], ebx
xor ebp, ebp
inc ebp
mov dword [esp + 0x1c], ebp
test eax, eax
jne 0x4185ee
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x20]
push eax
push ebx
push dword [esp + 0x1068]
mov dword [esp + 0x24], 0x1000
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x3c], bl
test eax, eax
jne 0x4185e4
mov eax, dword [esp + 0x18]
dec eax
cmp eax, 2
ja 0x4185e4
push ecx
lea eax, [esp + 0x40]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.004024bb
mov dword [esp + 0x1048], ebp
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.004110bd
mov byte [esp + 0x1048], bl
lea ecx, [esp + 0x20]
call fcn.00402161
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1040]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41ad58
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push esi
mov esi, dword [0x500120]
push edi
test edx, edx
je 0x41ad82
lea eax, [edx - 1]
shr eax, 2
inc eax
imul ecx, ecx, 0x4848c0c0
xor ecx, esi
sub edx, 4
dec eax
jne 0x41ad74
mov eax, dword [ebp + 8]
shr edx, 2
lea edi, [eax + edx*4]
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x41adb3
dec edx
shr edx, 2
inc edx
imul ecx, ecx, 0x4848c0c0
xor ecx, esi
mov eax, ecx
not eax
xor dword [edi], eax
lea edi, [edi + 4]
dec edx
je 0x41adb3
mov esi, dword [0x500120]
jmp 0x41ad97
pop edi
pop esi
pop ebp
ret
Function at 0x426692
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ffb10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [fcn.0041b64e]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0041fc5e
mov dword [ebp - 0x14], eax
cmp dword [0x505b78], edi
jne 0x426783
push 0x800
push edi
push 0x42d298
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x426710
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x426863
push 0x42d298
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x426863
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x426863
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x505b78], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x505b7c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x505b80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x505b88], eax
test eax, eax
je 0x426780
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x505b84], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4267a8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42679b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4267bd
push 4
pop eax
jmp 0x426865
cmp dword [ebp - 0x14], edi
je 0x4267bd
push dword [0x505b78]
call dword [fcn.0041b652]
push 3
jmp 0x4267a2
mov eax, dword [0x505b84]
mov ebx, dword [fcn.0041b652]
cmp eax, esi
je 0x42681b
cmp dword [0x505b88], esi
je 0x42681b
push eax
call ebx
push dword [0x505b88]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x42681b
test eax, eax
je 0x42681b
call ecx
test eax, eax
je 0x426810
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x426810
test byte [ebp - 8], 1
jne 0x42681b
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x42684b
mov eax, dword [0x505b7c]
cmp eax, esi
je 0x426848
push eax
call ebx
test eax, eax
je 0x426848
call eax
mov edi, eax
test edi, edi
je 0x426848
mov eax, dword [0x505b80]
cmp eax, esi
je 0x426848
push eax
call ebx
test eax, eax
je 0x426848
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x505b78]
call ebx
test eax, eax
je 0x426863
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x426865
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f9bf
leave
ret
Function at 0xc3e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00c3e1a8
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 0xc3e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc3e06a
add dl, dl
jne 0xc3e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc3e0dc
xor eax, eax
add dl, dl
jne 0xc3e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc3e17d
add dl, dl
jne 0xc3e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc3e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc3e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc3e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xc3e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xc3e075
mov eax, 1
add dl, dl
jne 0xc3e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc3e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc3e0e1
sub eax, ebx
mov ebx, 1
jne 0xc3e128
mov ecx, 1
add dl, dl
jne 0xc3e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc3e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc3e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc3e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc3e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc3e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc3e136
cmp eax, 0x7d00
jae 0xc3e16d
cmp eax, 0x500
jb 0xc3e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc3e075
cmp eax, 0x7f
ja 0xc3e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc3e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xc3e19e
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 0xc3e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10010bf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1008c400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [0x100ca0b0]
push esi
push eax
mov dword [edi + 0x154], 1
lea eax, [edi + 0x15c]
lea ebx, [edi + 0x154]
push eax
call fcn.10026bd0
add esp, 0xc
mov dword [edi + 0x158], esi
add esi, 8
je 0x10010cc2
mov eax, dword [edi]
test eax, eax
je 0x10010c71
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x10010c71
test ebx, ebx
je 0x10010c71
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x10010c71
cmp dword [ebp - 8], esi
je 0x10010cc2
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x10010c91
mov eax, dword [edi + 4]
cmp eax, 3
je 0x10010c85
cmp eax, 1
jne 0x10010c91
lea eax, [edi + 0x54]
push eax
push dword [edi + 0x50]
call ecx
add esp, 8
mov esi, dword [edi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
xor al, al
mov byte [esi], 0
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100245ad
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100245ad
mov esp, ebp
pop ebp
ret 8