joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10106175
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0xffffff79
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov eax, 0xfffff00e
mov dword [0x101c4790], 0
mov dword [0x101c4794], 0
mov dword [0x101c47a0], 0
mov dword [ebp - 0x14], eax
mov eax, dword [0x101c4788]
add eax, 0xffffda0d
mov dword [0x101c478c], eax
mov dword [0x101c4788], 0x4ad
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, ebx
mov dword [ebp - 0x20], eax
mov eax, ebx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], edi
je 0x10106355
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
mov ebx, 0x6b6
mov dword [ebp - 0x40], eax
mov eax, 0x100
mov dword [0x101c4788], ecx
add edx, 1
mov dword [ebp - 0x44], eax
mov eax, edx
cdq
mov ecx, dword [ebp - 0x44]
idiv ecx
mov dword [0x101c4790], edx
mov ecx, dword [ebp - 0x34]
movzx ecx, byte [ecx + edx]
add ecx, esi
mov eax, ecx
mov dword [ebp - 0x48], edx
cdq
mov ecx, dword [ebp - 0x44]
idiv ecx
mov dword [0x101c4794], edx
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x48]
mov cl, byte [esi + ecx]
mov byte [0x101c4798], cl
add edi, 0x1ab1
mov dword [0x101c4788], edi
mov cl, byte [esi + edx]
mov edx, dword [ebp - 0x48]
mov byte [esi + edx], cl
mov edi, dword [0x101c478c]
add edi, 0xffffe8ac
mov dword [0x101c478c], edi
mov cl, byte [0x101c4798]
mov edi, dword [0x101c4794]
mov byte [esi + edi], cl
mov edi, dword [0x101c4790]
movzx edi, byte [esi + edi]
mov ecx, dword [0x101c4794]
movzx ecx, byte [esi + ecx]
add ecx, edi
and ecx, 0xff
mov dword [0x101c47a0], ecx
mov dword [0x101c478c], 0x3cd
mov dword [0x101c4788], 0x2296
mov cl, byte [esi + ecx]
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x40]
mov ch, byte [edi + edx]
mov dword [0x101c478c], 0x31f
mov byte [0x101c47a5], ch
mov byte [0x101c47a6], cl
xor ch, cl
mov byte [0x101c47a4], ch
mov edx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x40]
mov byte [edx + esi], ch
mov dword [0x101c4788], 0xbea
add esi, 1
mov edx, dword [ebp - 0x10]
cmp esi, edx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x3c], ebx
je 0x10106355
mov eax, 0xfffff74b
mov ecx, dword [0x101c4794]
mov edx, dword [0x101c478c]
mov esi, dword [0x101c4790]
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], edi
jmp 0x10106209
mov eax, dword [ebp - 0x3c]
mov dword [0x101c4788], eax
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10106365
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
mov dword [0x101c4788], 0x870
call fcn.10001070
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
je 0x101063bc
jmp 0x101064e1
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
sete dl
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x1b], dl
mov al, byte [esp + 0x1b]
test al, 1
jne 0x10106475
jmp 0x10106461
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [0x101c478c], 0xa27
mov dword [0x101c4788], 0x18d4
mov dword [esp], eax
mov dword [esp + 0x14], ecx
call fcn.10105980
lea ecx, [0x10105551]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x84], 0x13fa00
mov edx, dword [0x101c4774]
mov dword [esp + 0x78], edx
mov edx, dword [0x101c4778]
mov dword [esp + 0x38], edx
mov edx, dword [0x101c477c]
mov dword [esp + 0x94], edx
mov edx, dword [0x101c4780]
mov dword [esp + 0x74], edx
mov edx, dword [0x101c4784]
mov dword [esp + 0x7c], edx
mov dword [0x101c4788], 0x352
mov dword [0x101c478c], 0x139f
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0xc]
cmp word [eax], 0x5a4d
mov dword [esp + 0x20], eax
je 0x10106392
mov eax, dword [esp + 0x20]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0xc], eax
jmp 0x1010644e
mov eax, dword [esp + 0x20]
mov dword [esp + 0x6c], eax
mov dword [0x101c478c], 0x2416
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x48], edx
mov dword [0x101c4788], 0x64f
call fcn.10105c84
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
jne 0x101064d9
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10104e4a
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov esp, ebp
pop ebp
ret
Function at 0x405980
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
call dword [sym.imp.MSVCRT.dll_rand]
test al, 3
jne 0x405a00
mov eax, dword [esp + 8]
push 0x40870c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x405a00
push ebx
push esi
push edi
mov ecx, 0x40d
mov esi, 0x408820
mov edi, 0x42e058
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov ecx, 0x54321cba
mov bl, byte [eax + 0x42e058]
mov edx, ecx
sar edx, 0x17
xor bl, dl
add ecx, 0x1234567f
mov byte [eax + 0x42e058], bl
inc eax
cmp eax, 0x1034
jb 0x4059bf
push ebp
push 0x1034
push 1
push 0x42e058
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0xc0c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xc0c1a8
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 0xc0c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc0c06a
add dl, dl
jne 0xc0c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc0c0dc
xor eax, eax
add dl, dl
jne 0xc0c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc0c17d
add dl, dl
jne 0xc0c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc0c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc0c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc0c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xc0c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xc0c075
mov eax, 1
add dl, dl
jne 0xc0c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc0c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc0c0e1
sub eax, ebx
mov ebx, 1
jne 0xc0c128
mov ecx, 1
add dl, dl
jne 0xc0c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc0c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc0c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc0c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc0c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc0c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc0c136
cmp eax, 0x7d00
jae 0xc0c16d
cmp eax, 0x500
jb 0xc0c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc0c075
cmp eax, 0x7f
ja 0xc0c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc0c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xc0c19e
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 0xc0c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10003424
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x10007014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov ebx, edx
push 0x1000175c
push 0x3a
mov esi, ecx
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0xa0]
pop edx
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xa8], 0x3f
call fcn.10002890
test eax, eax
js 0x1000357d
push 0x27
lea eax, [ebp - 0x8c]
push eax
push esi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_StringFromGUID2]
test eax, eax
js 0x1000357d
push 0x10001774
push 0x3a
pop edx
lea ecx, [ebp - 0xa0]
call fcn.100028c5
mov esi, eax
test esi, esi
js 0x1000357d
lea eax, [ebp - 0xa4]
push eax
push 0x20019
push 0
lea eax, [ebp - 0xa0]
push eax
push 0x80000000
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000357b
lea eax, [ebp - 0xa8]
push eax
push ebx
xor ebx, ebx
push ebx
push dword [ebp - 0xa4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x1000356f
lea eax, [ebp - 0xac]
mov dword [edi], ebx
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xac], 0x28
push eax
push ebx
push ebx
push 0x10001788
push dword [ebp - 0xa4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1000356d
push 0x10
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll_wcstoul]
movzx ecx, ax
add esp, 0xc
mov eax, dword [ebp - 0xb0]
cmp word [eax], 0x2e
jne 0x1000356d
mov edx, dword [ebp - 0xb4]
add eax, 2
push 0x10
push ebx
push eax
mov word [edx], cx
call dword [sym.imp.msvcrt.dll_wcstoul]
mov ecx, dword [ebp - 0xb8]
add esp, 0xc
mov word [ecx], ax
mov dword [edi], 1
mov esi, ebx
push dword [ebp - 0xa4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10005e20
leave
ret 0x10

Function at 0x1000358e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10007014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100035a9
push 0x10
lea eax, [ebp - 0x48]
sub esi, ecx
push eax
push edi
sar esi, 1
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
lea ecx, [edi + esi*2]
pop edi
pop esi
cmp dword [ebp - 0x48], ecx
jne 0x100035ed
push 0x20
lea ecx, [ebp - 0x44]
push ecx
push 0x80000001
push eax
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
jle 0x100035ed
xor eax, eax
inc eax
jmp 0x100035ef
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005e20
leave
ret
Function at 0x10004316
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x888
mov eax, dword [0x10007014]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x634]
push edi
push eax
mov ebx, edx
mov esi, ecx
call sub.msvcrt.dll_memset
push 0x20a
lea eax, [ebp - 0x42c]
push edi
push eax
call sub.msvcrt.dll_memset
push 0x20a
lea eax, [ebp - 0x21c]
push edi
push eax
call sub.msvcrt.dll_memset
push 0x250
lea eax, [ebp - 0x884]
push edi
push eax
call sub.msvcrt.dll_memset
push esi
push ebx
push 0x10001c10
lea eax, [ebp - 0x634]
push 0x104
push eax
call fcn.10003bf4
add esp, 0x44
lea eax, [ebp - 0x884]
push eax
lea eax, [ebp - 0x634]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004400
inc edi
cmp word [ebp - 0x42c], 0
je 0x100043d7
lea eax, [ebp - 0x858]
push eax
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jle 0x100043ee
lea eax, [ebp - 0x858]
mov edx, 0x105
push eax
lea ecx, [ebp - 0x42c]
call fcn.10002890
lea eax, [ebp - 0x884]
push eax
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
test eax, eax
jne 0x100043b2
cmp edi, dword [ebp + 8]
jb 0x10004494
lea eax, [ebp - 0x42c]
push eax
push ebx
push 0x10001c28
lea eax, [ebp - 0x21c]
push 0x105
push eax
call fcn.10003bf4
add esp, 0x14
lea eax, [ebp - 0x21c]
mov edi, 0x80
push edi
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
lea eax, [ebp - 0x21c]
push 0x2e
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x10004494
xor ecx, ecx
mov edx, 0x105
mov word [eax], cx
lea ecx, [ebp - 0x21c]
push 0x10001c34
call fcn.100028c5
push edi
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
cmp esi, 0xffffffff
je 0x100044a0
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10005e20
leave
ret 4
Function at 0x100044b1
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x10007014]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
lea ecx, [ebp - 0x414]
mov word [ebp - 0x414], ax
mov edx, 0x208
mov word [ebp - 6], ax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.10003bbd
test eax, eax
js 0x100045a6
push edi
push 0x44
xor edi, edi
lea eax, [ebp - 0x46c]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x46c], 0x44
mov dword [ebp - 0x440], 0x81
push 6
pop eax
mov word [ebp - 0x43c], ax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x46c]
push eax
push edi
push edi
push 8
push edi
push edi
push edi
lea eax, [ebp - 0x414]
push eax
push edi
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
test eax, eax
je 0x10004593
push 0xffffffffffffffff
push dword [ebp - 0x428]
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], edi
push eax
push dword [ebp - 0x428]
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetExitCodeProcess]
push dword [ebp - 0x428]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
push dword [ebp - 0x424]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, dword [ebp - 0x418]
jmp 0x10004599
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0x100045a5
movzx eax, ax
or eax, 0x80070000
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005e20
leave
ret
Function at 0x10005f90
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x10005fce
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10005fc6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10005fd0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10005fb6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100060c0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x100060f1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100060f1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x100060f1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1000e403
Capabilities:
Encode data using xor

Disassembly:
call 0x1000e37c
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x1000e3ac
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x1000e3c8
xor edx, 0
jmp 0x1000e3d3
xor edx, edx
jmp 0x1000e3ea
jmp 0x1000e3f6
xor eax, eax
push 0x8427d7c0
call 0x1000e403
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x1000e43f
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x1000e418
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x1000e456
add eax, 0
jno 0x1000e45b
add esi, 0
ret 0x10
Function at 0x401a40
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x3ea4268
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.03ea43b8
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 0x3ea428e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x3ea427a
add dl, dl
jne 0x3ea4299
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x3ea42ec
xor eax, eax
add dl, dl
jne 0x3ea42a6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x3ea438d
add dl, dl
jne 0x3ea42b5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x3ea42c0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x3ea42cb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x3ea42d6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x3ea42e2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x3ea4285
mov eax, 1
add dl, dl
jne 0x3ea42fa
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x3ea4305
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x3ea42f1
sub eax, ebx
mov ebx, 1
jne 0x3ea4338
mov ecx, 1
add dl, dl
jne 0x3ea431e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x3ea4329
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x3ea4315
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3ea4285
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x3ea434f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x3ea435a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x3ea4346
cmp eax, 0x7d00
jae 0x3ea437d
cmp eax, 0x500
jb 0x3ea4378
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3ea4285
cmp eax, 0x7f
ja 0x3ea4380
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3ea4285
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x3ea43ae
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 0x3ea4285
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1001ea3
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
push edi
mov edi, dword [ebp + 8]
push dword [edi + 0xc]
xor ebx, ebx
push ebx
push dword [eax + 0x18]
call esi
push dword [edi + 0x10]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call esi
push dword [edi + 0x14]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call esi
push dword [edi + 0x18]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call esi
push dword [edi + 0x20]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call esi
push dword [edi + 0x1c]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push ebx
push dword [eax + 0x18]
call esi
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x10025f8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push eax
push esi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x1002646
mov eax, dword [ebp + 0x14]
cmp eax, 1
jb 0x1002641
cmp byte [eax + esi - 1], 0
jne 0x1002641
cmp dword [ebp + 0x10], 0
jbe 0x1002641
cmp dword [ebp + 0x10], 2
ja 0x1002641
xor eax, eax
jmp 0x1002646
mov eax, 0x3f7
pop esi
pop ebp
ret 0x10

Function at 0x100277d
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1002788
sub eax, edx
push esi
sar eax, 1
lea esi, [eax + eax + 2]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
jne 0x10027be
push 0xe
pop eax
jmp 0x10027cd
push esi
push dword [ebp + 0xc]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
pop esi
pop ebp
ret 8