joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10074280
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008da50
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x100b802c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100743ca
mov ebx, dword [ebp + 0x14]
cmp ebx, 1
jb 0x100743ca
xor esi, esi
mov dword [ebp - 0x10], 0
mov dword [ebp + 0x14], esi
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], esi
cmp ecx, 1
jne 0x1007431f
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 0x14]
push ecx
push ebx
push eax
mov ecx, edx
call fcn.100739b0
mov ebx, eax
test ebx, ebx
jne 0x1007433b
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x10]
mov dword [ebp + 0x10], esi
lea eax, [ebx + 0x20]
push eax
mov dword [ebp - 0x10], eax
call fcn.10001000
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
test edi, edi
jne 0x1007435d
lea ebx, [eax + 8]
jmp 0x100743a2
cmp ecx, 7
jne 0x100742fb
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 0x14]
push ecx
push ebx
push eax
mov ecx, edx
call fcn.100737f0
mov ebx, eax
test ebx, ebx
je 0x100742f2
mov esi, dword [ebp + 0x14]
push esi
call fcn.10001010
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0x14]
lea eax, [ebx + 0x20]
push eax
push edi
push dword [ebp + 0xc]
push ebx
push dword [ebp + 0x10]
call fcn.10073d60
mov ebx, eax
test ebx, ebx
jne 0x100743a2
push dword [ebp + 8]
lea ecx, [ebp + 0x10]
call fcn.10073440
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
push edi
push 3
push ebx
push dword [ebp + 0x10]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp + 0x10]
mov ebx, eax
call fcn.100735a0
push edi
call fcn.10001010
add esp, 4
push esi
call fcn.10001010
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x100779fc
xor ecx, ecx
cmp cx, word [eax]
je 0x100779fc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100779f8
test al, 0x10
je 0x100779f8
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
xor al, al
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x10077a2c
xor ecx, ecx
cmp cx, word [eax]
je 0x10077a2c
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10077a28
test al, 0x10
jne 0x10077a28
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x10077a30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x100b802c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
test eax, eax
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [ebp - 0x418]
cmovne edi, eax
test esi, esi
je 0x10077c1e
xor eax, eax
cmp ax, word [esi]
je 0x10077c1e
push esi
call fcn.100779d0
add esp, 4
test al, al
je 0x10077a8e
mov dword [edi], 0xb7
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10037f93
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.10050310
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x10077ad2
mov dword [edi], 3
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10037f93
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10050310
push 0x5c
push esi
call fcn.10087f97
add esp, 0x14
test eax, eax
je 0x10077b79
cmp eax, esi
jne 0x10077b72
movzx eax, word [ebp - 0x414]
mov ecx, 0x104
mov word [ebp - 0x20c], ax
movzx eax, word [ebp - 0x412]
mov word [ebp - 0x20a], ax
lea eax, [ebp - 0x20c]
cmp word [eax], 0
je 0x10077b31
add eax, 2
sub ecx, 1
jne 0x10077b23
xor eax, eax
mov edx, 0x104
push ebx
test ecx, ecx
mov ebx, 0x80070057
cmovne ebx, eax
je 0x10077b4b
mov eax, edx
sub eax, ecx
jmp 0x10077b4d
xor eax, eax
test ebx, ebx
pop ebx
js 0x10077bdb
push SysReAllocString
push esi
push 0
sub edx, eax
lea ecx, [ebp - 0x20c]
push edx
lea eax, [ecx + eax*2]
push eax
call fcn.10077d80
jmp 0x10077bdb
cmp word [esi + 2], 0x3a
je 0x10077b9c
push esi
lea eax, [ebp - 0x414]
push eax
push 0x100905b4
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10002b96
add esp, 0x14
jmp 0x10077bdb
lea ecx, [ebp - 0x20c]
mov edx, 0x104
mov eax, ecx
sub esi, eax
nop dword [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10077bce
movzx eax, word [esi + ecx]
test ax, ax
je 0x10077bce
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10077bb0
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
call fcn.10077df0
add esp, 4
test eax, eax
je 0x10077c06
mov dword [edi], 0x52
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10037f93
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10037f93
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
mov dword [edi], 0x57
xor ecx, ebp
pop edi
pop esi
call fcn.10037f93
mov esp, ebp
pop ebp
ret
Function at 0x10077c40
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100b802c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10077d62
xor eax, eax
cmp ax, word [esi]
je 0x10077d62
mov ecx, 0x10091bdc
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10077c97
test dx, dx
je 0x10077c93
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10077c97
add eax, 4
add ecx, 4
test dx, dx
jne 0x10077c71
xor eax, eax
jmp 0x10077c9c
sbb eax, eax
or eax, 1
test eax, eax
je 0x10077d62
mov ecx, 0x100a3e44
mov eax, esi
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10077cd6
test dx, dx
je 0x10077cd2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10077cd6
add eax, 4
add ecx, 4
test dx, dx
jne 0x10077cb0
xor eax, eax
jmp 0x10077cdb
sbb eax, eax
or eax, 1
test eax, eax
je 0x10077d62
push esi
call fcn.100779d0
add esp, 4
test al, al
je 0x10077d62
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10050310
push 0x100a3e4c
push esi
push 0x100905b4
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10002b96
lea eax, [ebp - 0x20c]
push 1
push eax
call fcn.100775b0
add esp, 0x28
test al, al
je 0x10077d62
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
pop esi
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10037f93
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.10037f93
mov esp, ebp
pop ebp
ret

Function at 0x10078120
Capabilities:
Delete registry key

Disassembly:
mov dword [ecx], vtable.CoreTech::internal::CRegKeyImpl.0
jmp fcn.10078180

Function at 0x10078180
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x100781b9
cmp byte [esi + 0xc], 0
je 0x100781a0
push 0x100905b0
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov byte [esi + 0xc], 0
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop esi
ret
xor eax, eax
mov dword [esi + 8], eax
pop esi
ret
Function at 0x10078e50
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100b802c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x118], ecx
push ebx
mov dword [ebp - 0x114], eax
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
cmp dword [ebp + 0x14], 0
je 0x10078f60
test eax, eax
jne 0x10078f60
push edi
xor edi, edi
push esi
nop word [eax + eax]
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.10050310
add esp, 0xc
mov dword [ebp - 0x110], 0x104
lea eax, [ebp - 0x110]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x108]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
test esi, esi
jne 0x10078f36
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
push 0xf003f
push esi
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10078f3e
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x118]
push dword [ebp - 0x114]
push dword [ebp + 0xc]
push dword [ebp - 0x10c]
call fcn.10078e50
push dword [ebp - 0x10c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10078f3e
cmp esi, 0x103
je 0x10078f5c
inc edi
test esi, esi
je 0x10078ea0
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10037f93
mov esp, ebp
pop ebp
ret 0x10
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10037f93
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10079760
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret
Function at 0x100813d0
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor cl, cl
cmp dword [esi + 0x4c], 0xffffffff
je 0x100815a1
push ebx
mov eax, dword [esi + 0x4c]
cmp eax, 0x7c
je 0x100815a0
cmp eax, 0x29
jne 0x10081408
cmp dword [esi + 0x10], 0
jne 0x100815a0
test dword [esi + 0x50], 0x10000000
je 0x100815a5
cmp eax, 0x2e
jne 0x10081465
push 5
lea ecx, [esi + 0x24]
call fcn.10026b20
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp eax, ecx
je 0x10081459
cmp word [eax], 0x5c
jne 0x10081456
add eax, 2
cmp eax, ecx
je 0x10081456
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x10081442
movzx edx, word [eax]
cmp edx, 0x28
je 0x10081454
cmp edx, 0x29
je 0x10081454
test cl, 0x10
jne 0x10081456
movzx ecx, word [eax]
cmp ecx, 0x7b
je 0x10081454
cmp ecx, 0x7d
jne 0x10081456
mov dword [esi], eax
add dword [esi], 2
mov ecx, esi
call fcn.10084050
jmp 0x1008158d
cmp eax, 0x5c
jne 0x100814cc
mov ecx, esi
call fcn.100838f0
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x10081498
cmp word [esi + 0x48], 0x62
jne 0x10081498
push 4
lea ecx, [esi + 0x24]
call fcn.10026b20
mov ecx, esi
call fcn.100838f0
jmp 0x10081594
test eax, eax
je 0x100814c0
cmp word [esi + 0x48], 0x42
jne 0x100814c0
push 4
lea ecx, [esi + 0x24]
call fcn.10026b20
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.100838f0
jmp 0x10081594
mov ecx, esi
call fcn.100815d0
jmp 0x1008158d
cmp eax, 0x5b
jne 0x100814ef
mov ecx, esi
call fcn.100838f0
mov ecx, esi
call fcn.100818e0
push 4
push 0x5d
mov ecx, esi
call fcn.100830a0
jmp 0x1008158d
cmp eax, 0x28
jne 0x10081519
mov ecx, esi
call fcn.100838f0
mov ecx, esi
call fcn.10084200
push 5
push 0x29
mov ecx, esi
mov bl, al
call fcn.100830a0
test bl, bl
je 0x10081594
jmp 0x1008158d
cmp eax, 0x5e
jne 0x10081531
push 2
lea ecx, [esi + 0x24]
call fcn.10026b20
mov ecx, esi
call fcn.100838f0
jmp 0x10081594
cmp eax, 0x24
jne 0x10081549
push 3
lea ecx, [esi + 0x24]
call fcn.10026b20
mov ecx, esi
call fcn.100838f0
jmp 0x10081594
cmp eax, 0x2a
je 0x100815ba
cmp eax, 0x2b
je 0x100815ba
cmp eax, 0x3f
je 0x100815ba
cmp eax, 0x7b
je 0x100815ba
cmp eax, 0x7d
jne 0x1008156b
test dword [esi + 0x50], 0x10000000
je 0x100815ac
cmp eax, 0x5d
jne 0x10081579
test dword [esi + 0x50], 0x10000000
je 0x100815b3
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.100244f0
mov ecx, esi
call fcn.100838f0
mov ecx, esi
call fcn.10083940
cmp dword [esi + 0x4c], 0xffffffff
mov cl, 1
jne 0x100813e0
pop ebx
mov al, cl
pop esi
ret
push 5
call fcn.10034f51
push 6
call fcn.10034f51
push 4
call fcn.10034f51
push 0xa
call fcn.10034f51
int3
Function at 0x100845a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100b802c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x1c], 8
lea edx, [edi + 8]
mov ebx, dword [edx + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
jb 0x100845cd
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add ebx, ebx
je 0x100845e9
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x100845d8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0xc]
and eax, esi
lea esi, [eax*8]
add ecx, esi
cmp dword [ecx + 4], edi
jne 0x1008461f
cmp dword [ecx], edi
jne 0x10084617
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 4]
mov dword [esi + ecx + 4], eax
jmp 0x10084627
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x10084627
cmp dword [ecx], edi
jne 0x1008462a
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 8]
dec dword [edx + 8]
call fcn.10080750
push edi
call fcn.10001010
mov eax, dword [ebp - 0xc]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
mov dword [eax], esi
pop esi
pop ebx
call fcn.10037f93
mov esp, ebp
pop ebp
ret 8

Function at 0x6fd577a0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x6fd577aa
pushal
call 0x6fd577b0
pop ebp
sub ebp, 0x10
sub ebp, 0x3a77a0
mov al, byte [esp + 0x28]
cmp al, 1
je 0x6fd577d4
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x6fd577dd
mov eax, 0x3a77a0
add eax, ebp
add eax, 0x63
mov ecx, 0x616
mov edx, 0xaeb98a4b
xor byte [eax], dl
inc eax
dec ecx
jne 0x6fd577f4
jmp 0x6fd57807
rol byte [esi + 0x4b77c2c0], 0x4b
dec ebx
retf 0xb38a
Function at 0x9ec058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x9ec1a8
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 0x9ec07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ec06a
add dl, dl
jne 0x9ec089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ec0dc
xor eax, eax
add dl, dl
jne 0x9ec096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ec17d
add dl, dl
jne 0x9ec0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ec0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ec0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ec0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9ec0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9ec075
mov eax, 1
add dl, dl
jne 0x9ec0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ec0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ec0e1
sub eax, ebx
mov ebx, 1
jne 0x9ec128
mov ecx, 1
add dl, dl
jne 0x9ec10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9ec119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ec105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ec075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9ec13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9ec14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ec136
cmp eax, 0x7d00
jae 0x9ec16d
cmp eax, 0x500
jb 0x9ec168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ec075
cmp eax, 0x7f
ja 0x9ec170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ec075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9ec19e
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 0x9ec075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x1002aaee
pop dword [ebp - 0x48]
mov eax, 0x1002aaee
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xea7c8dbe
add dword [ebp - 0x58], 0x63d5b78d
mov dword [ebp - 0x54], 0xd30e69fb
sub dword [ebp - 0x54], 0xa0db1db6
mov dword [ebp - 0x50], 0xe84b8c70
add dword [ebp - 0x50], 0x6400b7be
mov dword [ebp - 0x4c], 0xed928d0f
sub dword [ebp - 0x4c], 0xed928d0f
lea eax, [ebp - 0x58]
push eax
mov eax, 0x327ce415
add eax, 0xdd85dc23
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x1fb9bc9f
sub dword [ebp - 0x58], 0xab475349
mov dword [ebp - 0x54], 0x14e6498b
sub dword [ebp - 0x54], 0xd379e816
mov dword [ebp - 0x50], 0xd905cba4
sub dword [ebp - 0x50], 0x75965f38
mov dword [ebp - 0x4c], 0x23c1abbc
add dword [ebp - 0x4c], 0xdc3e5444
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x8c68cc17
add eax, 0x8399f411
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x38144
push 0
call eax
mov ecx, 0x398c9712
sub ecx, 0x398c48a0
xor edi, edi
add edi, eax
mov esi, 0xdbeea4c4
add esi, 0x3414f13c
add esi, dword [ebp - 0x48]
mov ebx, 0x7b5e8af7
add ebx, 0x86e8ca05
add dword [ebp - 0x3c], 0xe7fd49f2
mov edx, dword [esi]
add dword [ebp - 0x28], edi
xor edx, ebx
mov dword [ebp - 0x44], 0xa8fd5b58
mov dword [edi], edx
xor dword [ebp - 0x40], 0x3243cfdc
add edi, 0x2dfd62a7
add edi, 0xd2029d5d
add esi, 0x6c72a6fa
sub esi, 0x6c72a6f6
loop 0x1002ac0d
add eax, 0xc5464745
add eax, 0x3abae556
xor ebx, ebx
add ebx, eax
add eax, 0xc0bb3ea1
sub eax, 0xc0bb3e9c
mov ecx, 0x18098a5d
sub ecx, 0x8098a5d
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x18], 0xff676980
mov dword [ebp - 0x14], 0xffffffff
mov dword [esp + 4], str.Message_from_native_application.
lea eax, [ebp - 0x10]
mov dword [esp], eax
call sym._RtlInitUnicodeString_8
sub esp, 8
lea eax, [ebp - 0x10]
mov dword [esp], eax
call sym._NtDisplayString_4
sub esp, 4
lea eax, [ebp - 0x18]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._NtDelayExecution_8
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], 0xffffffff
call sym._NtTerminateProcess_8
sub esp, 8
leave
ret
Function at 0x1024210
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01024360
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 0x1024236
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1024222
add dl, dl
jne 0x1024241
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1024294
xor eax, eax
add dl, dl
jne 0x102424e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1024335
add dl, dl
jne 0x102425d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1024268
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1024273
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102427e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x102428a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x102422d
mov eax, 1
add dl, dl
jne 0x10242a2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10242ad
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1024299
sub eax, ebx
mov ebx, 1
jne 0x10242e0
mov ecx, 1
add dl, dl
jne 0x10242c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10242d1
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10242bd
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x102422d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10242f7
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1024302
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10242ee
cmp eax, 0x7d00
jae 0x1024325
cmp eax, 0x500
jb 0x1024320
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x102422d
cmp eax, 0x7f
ja 0x1024328
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x102422d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1024356
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 0x102422d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x100010b8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x80000000
jae 0x10001170
mov dword [ebp - 8], 1
push 0x94
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000116b
push 0x94
push 0
mov eax, dword [ebp - 4]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx], 0x94
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 4
jne 0x1000112a
mov dword [ebp - 8], 5
jmp 0x1000115e
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 5
jne 0x10001145
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
jne 0x10001145
mov dword [ebp - 8], 6
jmp 0x1000115e
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 5
jne 0x1000115e
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 1
jne 0x1000115e
mov dword [ebp - 8], 7
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp 0x1000120e
mov eax, dword [ebp - 0xc]
and eax, 0xff
cmp eax, 4
jge 0x10001189
mov dword [ebp - 8], 0
jmp 0x1000120e
mov dword [ebp - 8], 2
push 0x94
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000120e
push 0x94
push 0
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [edx], 0x94
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 4
jne 0x100011e8
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0xa
jne 0x100011e8
mov dword [ebp - 8], 3
jmp 0x10001201
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 4
jne 0x10001201
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0x5a
jne 0x10001201
mov dword [ebp - 8], 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret