joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405871
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x7c
mov eax, 0x442cde
call fcn.0042bcc0
mov ebx, edx
mov esi, ecx
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x6c]
rep stosd dword es:[edi], eax
push ecx
push ecx
lea ecx, [ebp - 0x6c]
call fcn.004061c2
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push ecx
push eax
push ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x71696a61
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x20], 0x6c686b69
mov dword [ebp - 0x1c], 0x66646b73
mov dword [ebp - 0x18], 0x69696568
mov dword [ebp - 0x34], 0x6e6c656e
mov dword [ebp - 0x30], 0x6a6b6166
mov dword [ebp - 0x2c], 0x65617066
mov dword [ebp - 0x28], 0x696e6669
call fcn.0040635c
xor eax, eax
mov dword [ebp - 0x3c], 0xf
lea edi, [ebp - 0x24]
xor ecx, ecx
stosd dword es:[edi], eax
mov dword [ebp - 0x40], ecx
mov byte [ebp - 0x50], cl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [esi + 0x10]
inc edi
mov eax, edi
mov byte [ebp - 4], 1
shr eax, 4
inc eax
shl eax, 4
push ecx
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x70], eax
call fcn.00405b01
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
cmp dword [esi + 0x14], 0x10
jb 0x40592c
mov esi, dword [esi]
lea ecx, [ebp - 0x70]
push ecx
push eax
push edi
push esi
lea ecx, [ebp - 0x6c]
call fcn.00406cff
cmp dword [ebp - 0x3c], 0x10
lea edx, [ebp - 0x50]
push dword [ebp - 0x70]
cmovae edx, dword [ebp - 0x50]
lea ecx, [ebp - 0x88]
call fcn.0040545f
pop ecx
push eax
mov ecx, ebx
call fcn.004027be
xor esi, esi
lea ecx, [ebp - 0x88]
push esi
push 1
call fcn.00402d99
push 1
push esi
lea eax, [ebp - 0x38]
mov byte [ebp - 0x38], 0x3d
push eax
mov ecx, ebx
call fcn.00402ca2
cmp eax, 0xffffffff
je 0x40598c
push eax
mov ecx, ebx
call fcn.004027ed
push esi
push 1
lea ecx, [ebp - 0x50]
call fcn.00402d99
lea ecx, [ebp - 0x6c]
call fcn.00406220
call fcn.0042bc6f
ret
Function at 0x4059a5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x5c
mov eax, 0x442d16
call fcn.0042bcc0
mov esi, edx
mov edx, ecx
lea ecx, [ebp - 0x48]
call fcn.004055fd
push 7
pop ecx
xor ebx, ebx
lea edi, [ebp - 0x64]
xor eax, eax
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
push ecx
push ecx
lea ecx, [ebp - 0x64]
call fcn.004061c2
push ecx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x30]
push eax
push ecx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x71696a61
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x1c], 0x6c686b69
mov dword [ebp - 0x18], 0x66646b73
mov dword [ebp - 0x14], 0x69696568
mov dword [ebp - 0x30], 0x6e6c656e
mov dword [ebp - 0x2c], 0x6a6b6166
mov dword [ebp - 0x28], 0x65617066
mov dword [ebp - 0x24], 0x696e6669
call fcn.0040635c
xor eax, eax
mov dword [ebp - 0x68], ebx
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 edi, dword [ebp - 0x38]
test edi, 0xf
jne 0x405a47
push ebx
push edi
mov ecx, esi
mov dword [ebp - 0x68], edi
call fcn.00405b01
cmp dword [esi + 0x14], 0x10
jb 0x405a4f
mov esi, dword [esi]
cmp dword [ebp - 0x34], 0x10
lea ecx, [ebp - 0x68]
push ecx
push esi
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x64]
push edi
push eax
call fcn.00406f92
lea ecx, [ebp - 0x64]
mov bl, al
call fcn.00406220
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00402d99
mov al, bl
call fcn.0042bc6f
ret
Function at 0x4105c9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor edx, edx
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor ecx, eax
dec esi
jne 0x4105d1
mov dword [edx*4 + 0x45e120], ecx
inc edx
cmp edx, 0x100
jb 0x4105cc
mov esi, 0x800
jmp 0x410618
mov ecx, dword [edx*4 + 0x45dd20]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x45e120]
mov dword [edx*4 + 0x45e120], ecx
inc edx
cmp edx, esi
jb 0x4105fc
mov dword [0x45cfe0], 0x410643
call fcn.00413444
mov ecx, dword [0x45cfe0]
test eax, eax
mov edx, 0x4106e0
cmove ecx, edx
mov dword [0x45cfe0], ecx
pop esi
ret

Function at 0x4131f4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 8], ecx
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x413215
xor eax, eax
jmp 0x413362
add dword [ebp + 8], 5
lea eax, [edx - 4]
push ebx
or ebx, 0xffffffff
add eax, ecx
mov dword [ebp - 4], eax
lea edx, [edi + ecx]
mov dword [ebp - 0xc], edx
cmp edx, eax
jae 0x413248
mov ecx, dword [ebp - 4]
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x41323f
inc edx
cmp edx, ecx
jb 0x413232
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov edi, edx
sub edi, ecx
cmp edx, eax
jae 0x413346
mov ecx, edi
sub ecx, ebx
cmp ecx, 3
jbe 0x41329d
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [ebp - 0x14], ebx
test al, al
je 0x41326f
cmp al, 0xff
jne 0x4132c6
movzx ecx, al
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
mov edx, dword [ebp + 8]
shl ecx, 8
or ecx, eax
cmp dword [ebp + 0x10], 0
je 0x4132da
lea ebx, [ecx + edi]
add ebx, edx
jmp 0x4132e0
dec ecx
shl esi, cl
and esi, 7
je 0x41325f
movzx eax, byte [esi + 0x44dd68]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x44dd60], 0
mov al, byte [ecx + 4]
je 0x4132c4
test al, al
je 0x4132c4
cmp al, 0xff
jne 0x41325f
mov ebx, edi
and esi, 3
add esi, esi
or esi, 1
inc edi
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
jmp 0x413225
mov ebx, ecx
sub ebx, edi
sub ebx, edx
test esi, esi
je 0x41331a
movzx eax, byte [esi + 0x44dd68]
shl eax, 3
push 0x18
pop ecx
sub ecx, eax
mov dword [ebp - 0x10], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x413302
cmp al, 0xff
jne 0x41331a
xor eax, eax
push 0x20
pop ecx
sub ecx, dword [ebp - 0x10]
inc eax
shl eax, cl
mov ecx, eax
mov dword [ebp - 0x10], eax
dec ecx
xor ecx, ebx
jmp 0x413290
mov edx, dword [ebp - 0xc]
mov eax, ebx
shr eax, 0x18
and al, 1
dec al
not al
mov byte [edx + 1], bl
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
mov ebx, dword [ebp - 0x14]
shr eax, 8
add edi, 5
mov byte [edx + 2], al
jmp 0x4132cf
mov edx, edi
xor eax, eax
sub edx, ebx
pop ebx
lea ecx, [edx - 1]
shl esi, cl
and esi, 7
cmp edx, 3
cmova esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41ae2d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ecx + 0x14], 0x10
mov dword [ebp - 4], edx
jb 0x41ae3c
mov ecx, dword [ecx]
push esi
push 0x452db0
push ecx
call fcn.00429241
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41aea0
push ebx
push edi
push 2
push 0
push esi
call fcn.00429b2d
push esi
call fcn.00429a32
push esi
mov ebx, eax
call fcn.00428fb4
push ebx
call fcn.00428948
mov edi, eax
add esp, 0x18
test edi, edi
je 0x41ae9e
push esi
push ebx
push 1
push edi
call fcn.0042941b
mov ecx, dword [ebp - 4]
add esp, 0x10
push ebx
push edi
call fcn.00403538
push esi
call fcn.00429c1c
push edi
call fcn.0042846e
pop ecx
pop ecx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41aea5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, edx
cmp dword [eax + 0x14], 0x10
jb 0x41aeb7
mov eax, dword [eax]
cmp dword [ecx + 0x14], 0x10
jb 0x41aebf
mov ecx, dword [ecx]
push eax
push ecx
call fcn.00429241
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41aeec
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x41aed9
mov esi, dword [esi]
push edi
push eax
push 1
push esi
call fcn.00429620
push edi
call fcn.00429c1c
add esp, 0x14
pop edi
pop esi
pop ebp
ret
Function at 0x8a3058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8a31a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x8a307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8a306a
add dl, dl
jne 0x8a3089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8a30dc
xor eax, eax
add dl, dl
jne 0x8a3096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8a317d
add dl, dl
jne 0x8a30a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8a30b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8a30bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8a30c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8a30d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8a3075
mov eax, 1
add dl, dl
jne 0x8a30ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8a30f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8a30e1
sub eax, ebx
mov ebx, 1
jne 0x8a3128
mov ecx, 1
add dl, dl
jne 0x8a310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8a3119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8a3105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8a3075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8a313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8a314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8a3136
cmp eax, 0x7d00
jae 0x8a316d
cmp eax, 0x500
jb 0x8a3168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8a3075
cmp eax, 0x7f
ja 0x8a3170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8a3075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8a319e
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 0x8a3075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1001915
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
add eax, eax
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100194a
cmp dword [ebp + 0x10], 1
je 0x100194a
mov eax, 0x3f7
pop ebp
ret 0x10

Function at 0x1002123
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1003630
call fcn.010022d4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x10045bc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1001f38
cmp eax, esi
jne 0x1001f2b
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1001f3b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001f12
xor esi, esi
inc esi
mov eax, dword [0x10045b8]
cmp eax, esi
jne 0x1001f4e
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001f89
mov eax, dword [0x10045b8]
test eax, eax
jne 0x1001f83
mov dword [0x10045b8], esi
push 0x1001110
push 0x1001104
call fcn.01001e8f
pop ecx
pop ecx
test eax, eax
je 0x1001f89
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1002053
mov dword [0x100405c], esi
mov eax, dword [0x10045b8]
cmp eax, esi
jne 0x1001fad
push 0x1001100
push 0x10010f8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10045b8], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1001fba
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10045c0], ebx
je 0x1001fdb
push 0x10045c0
call fcn.01002249
pop ecx
test eax, eax
je 0x1001fdb
push ebx
push 2
push ebx
call dword [0x10045c0]
push dword [0x1004044]
push dword [0x1004048]
push dword [0x1004040]
call fcn.01001e21
add esp, 0xc
mov dword [0x1004058], eax
cmp dword [0x100404c], ebx
jne 0x1002039
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x100405c], ebx
jne 0x1002047
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004058]
call fcn.01002319
ret
call fcn.01002421
jmp 0x1001ef0

Function at 0x1002675
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x10026b3
push esi
push dword [ebp + 0xc]
push 0x1001518
call fcn.01003301
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10026b6
xor eax, eax
inc eax
pop esi
pop ebp
ret 0xc
Function at 0x10026c0
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
cmp eax, 0xffffffff
jne 0x10026ef
cmp dword [ebp + 0x14], 0
je 0x10026ed
mov eax, dword [ebp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10026d9
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
jmp 0x10026ef
xor eax, eax
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100271d
push eax
push dword [ebp + 0x10]
push 0x1001518
call fcn.01003301
add esp, 0xc
xor eax, eax
jmp 0x1002720
xor eax, eax
inc eax
pop ebp
ret 0x14

Function at 0x1002749
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], 4
mov dword [ebp - 8], esi
mov eax, dword [0x1004014]
mov edi, 0x1004014
cmp eax, edi
je 0x100278b
test byte [eax + 0x1c], 2
je 0x100278b
cmp byte [eax + 0x19], 5
jb 0x100278b
push 0x1001440
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010025a9
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call esi
mov ebx, eax
test ebx, ebx
je 0x10027d4
mov eax, dword [0x1004014]
cmp eax, edi
je 0x100284b
test byte [eax + 0x1c], 2
je 0x100284b
cmp byte [eax + 0x19], 2
jb 0x100284b
push ebx
push 0x1001440
push 0xf
jmp 0x1002840
cmp dword [ebp - 4], 4
je 0x1002808
mov eax, dword [0x1004014]
cmp eax, edi
je 0x1002801
test byte [eax + 0x1c], 2
je 0x1002801
cmp byte [eax + 0x19], 2
jb 0x1002801
push 0x1001440
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010025a9
mov ebx, 0x3f1
jmp 0x100284b
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov ebx, eax
test ebx, ebx
je 0x100284b
mov eax, dword [0x1004014]
cmp eax, edi
je 0x100284b
test byte [eax + 0x1c], 2
je 0x100284b
cmp byte [eax + 0x19], 2
jb 0x100284b
push ebx
push 0x1001440
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002859
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x1002e41
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x120], 0
push ebx
push esi
push edi
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [0x1004014]
mov esi, 0x1004014
push 2
mov edi, 0x10015a4
pop ebx
cmp eax, esi
je 0x1002ea5
test byte [eax + 0x1c], bl
je 0x1002ea5
cmp byte [eax + 0x19], 5
jb 0x1002ea5
push edi
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010025a9
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1002ef4
mov eax, dword [0x1004014]
cmp eax, esi
je 0x1002eed
test byte [eax + 0x1c], bl
je 0x1002eed
cmp byte [eax + 0x19], bl
jb 0x1002eed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1004014]
push edi
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002859
xor eax, eax
jmp 0x1002fa1
cmp dword [ebp - 0x110], ebx
je 0x1002f20
mov eax, dword [0x1004014]
cmp eax, esi
je 0x1002eed
test byte [eax + 0x1c], bl
je 0x1002eed
cmp byte [eax + 0x19], 3
jb 0x1002eed
push edi
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010025a9
jmp 0x1002eed
cmp dword [ebp - 0x11c], 5
jae 0x1002f42
mov eax, dword [0x1004014]
cmp eax, esi
je 0x1002eed
test byte [eax + 0x1c], bl
je 0x1002eed
cmp byte [eax + 0x19], 3
jb 0x1002eed
push edi
push 0xe
jmp 0x1002f13
mov eax, dword [ebp - 8]
test al, 0x40
je 0x1002f5b
xor eax, eax
cmp byte [ebp - 6], 1
setne al
dec eax
and eax, 0xffffffe0
add eax, 0x40
jmp 0x1002fa1
test eax, 0x200
je 0x1002f67
xor eax, eax
inc eax
jmp 0x1002fa1
test bl, al
je 0x1002f6f
push 8
jmp 0x1002fa0
test al, al
jns 0x1002f77
push 0x10
jmp 0x1002fa0
test eax, 0x400
je 0x1002f85
mov eax, 0x80
jmp 0x1002fa1
cmp byte [ebp - 6], 1
jne 0x1002f8f
mov eax, ebx
jmp 0x1002fa1
cmp byte [ebp - 6], 3
je 0x1002f9e
cmp byte [ebp - 6], bl
jne 0x1002eed
push 4
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01002132
leave
ret

Function at 0x1003256
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x10017a8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1003281
xor eax, eax
leave
ret
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1001790
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10032ae
cmp dword [ebp - 0x10], 4
je 0x10032b2
and dword [ebp - 8], 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret
Function at 0x1003301
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [0x100459c], 0
jne 0x1003351
call fcn.01003256
mov dword [0x1004018], eax
mov dword [0x100459c], 1
cmp dword [0x1004018], 0
jle 0x10033ef
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.010032c5
test eax, eax
jl 0x10033ef
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1003383
sub eax, edx
sar eax, 1
mov ecx, 0x3fd
cmp eax, ecx
jae 0x10033b3
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10033a3
sub eax, edx
sar eax, 1
jmp 0x10033b5
mov eax, ecx
add eax, eax
cmp word [ebp + eax - 0x806], 0xa
je 0x10033e2
push 0xd
pop ecx
mov word [ebp + eax - 0x804], cx
push 0xa
pop ecx
mov word [ebp + eax - 0x802], cx
xor ecx, ecx
mov word [ebp + eax - 0x800], cx
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01002132
leave
ret

Function at 0x10034ef
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, dword [0x1004014]
mov esi, 0x1004014
mov edi, 0x100183c
cmp eax, esi
je 0x1003533
test byte [eax + 0x1c], 2
je 0x1003533
cmp byte [eax + 0x19], 5
jb 0x1003533
push edi
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010025a9
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1003597
mov eax, dword [0x1004014]
cmp eax, esi
je 0x1003593
test byte [eax + 0x1c], 2
je 0x1003593
cmp byte [eax + 0x19], 2
jb 0x1003593
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1004014]
push edi
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002859
xor eax, eax
jmp 0x10035a1
cmp dword [ebp - 0x114], 6
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01002132
leave
ret
Function at 0x10a4e058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x10a4e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10a4e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10a4e06a
add dl, dl
jne 0x10a4e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10a4e0dc
xor eax, eax
add dl, dl
jne 0x10a4e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10a4e17d
add dl, dl
jne 0x10a4e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10a4e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10a4e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10a4e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10a4e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10a4e075
mov eax, 1
add dl, dl
jne 0x10a4e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10a4e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10a4e0e1
sub eax, ebx
mov ebx, 1
jne 0x10a4e128
mov ecx, 1
add dl, dl
jne 0x10a4e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10a4e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10a4e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10a4e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10a4e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10a4e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10a4e136
cmp eax, 0x7d00
jae 0x10a4e16d
cmp eax, 0x500
jb 0x10a4e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10a4e075
cmp eax, 0x7f
ja 0x10a4e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10a4e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10a4e19e
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 0x10a4e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10