joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5aba02
Capabilities:
Enumerate pe sections
Execute anti-debugging instructions

Disassembly:
dec dh
mov dword [ebp - 0x20], ecx
bsf dx, sp
sbb dx, 0xa33b
lea edx, [0xe49ec282]
inc dx
mov edx, dword [ebp - 0x20]
pushal
push 0xb68cda9e
test bl, 0x36
cmp edx, dword [ebp - 0x1c]
push dword [esp + 0xc]
mov byte [esp + 0x10], dl
call fcn.005bc5cf
jmp 0x5a6b90
btr ax, 9
das
jmp 0x5b935b
cmc
cmc
sub ecx, ecx
bswap cx
mov cx, word [eax + 6]
cmp cl, bh
cmp dword [ebp - 0x10], ecx
jmp 0x5bbb7c
sub ecx, 0xd1b458f2
pushfd
call fcn.005ba571
lea esp, [esp + 0x10]
je 0x5aba2f
or ah, ah
lahf
mov edx, dword [ebp + 0x14]
adc eax, 0x70cfaa13
setbe ch
mov eax, dword [edx]
sal dl, cl
test dl, dl
mov dword [ebp - 0x10], eax
cmp ax, 0x174f
and dh, 0xe8
mov ecx, dword [ebp - 4]
shl dl, cl
mov edx, dword [ecx + 0xc]
call fcn.005b32d8
lea esp, [esp + 0x24]
call 0x58adeb
pushfd
add esp, 8
push esp
aas
mov ecx, dword [ebp + 8]
ror ax, cl
sbb ah, bh
setae dl
sub ah, ah
mov edx, dword [ebp + 8]
rcr al, 6
shr al, cl
bsr eax, esp
sar al, cl
sub edx, dword [ecx + 8]
inc ch
sub ch, 0x87
cwde
mov dword [ebp - 0x1c], edx
aaa
rcr eax, 0x1f
movsx dx, al
mov eax, dword [ebp + 0xc]
mov dx, 0x4994
shld cx, si, cl
jmp 0x5b89d8
mov dword [ebp - 0x14], eax
cdq
or cl, 0x91
mov ecx, dword [ebp - 0x14]
bts dx, 9
das
rdtsc
xadd dx, ax
mov dword [ebp - 0xc], ecx
btr ax, bp
sal ax, cl
cwde
mov edx, dword [ebp - 0xc]
cmc
clc
mov eax, dword [ebp - 0xc]
shl cl, 4
add eax, dword [edx + 0x3c]
adc ecx, esi
rcl cx, 1
movsx cx, cl
mov dword [ebp - 8], eax
aad 0x3f
rcl cx, cl
dec al
cwde
mov ecx, dword [ebp - 8]
daa
daa
bswap eax
dec ah
xor edx, edx
movzx dx, cl
mov dx, word [ecx + 0x14]
lea ecx, [ecx*4 + 0x70378fd3]
mov eax, dword [ebp - 8]
bswap ecx
movzx cx, dl
push esi
pop ecx
lea ecx, [eax + edx + 0x18]
mov byte [esp], bl
pushal
pushfd
pushfd
mov dword [ebp - 4], ecx
mov byte [esp + 8], al
mov dword [ebp - 0x10], 0
pushfd
lea esp, [esp + 0x30]
jmp 0x59f2da
mov eax, dword [ebp - 8]
jo 0x59d0d8
test dh, 0xa7
xor ecx, ecx
rol ch, 2
shld cx, di, cl
mov cx, word [eax + 6]
push 0x24ff290f
cmp dword [ebp - 0x10], ecx
mov dword [esp], eax
lea esp, [esp + 4]
jge 0x5b5dd8
movzx ax, cl
mov edx, dword [ebp - 0x10]
rcr ah, 4
bswap ax
bswap cx
imul edx, edx, 0x28
rol cl, cl
bswap eax
sal al, 1
mov eax, dword [ebp - 4]
shl ch, cl
mov ecx, dword [ebp - 0xc]
cmp sp, 0xfa01
add ecx, dword [eax + edx + 0xc]
jmp 0x598ba8
Function at 0x5ad3cb
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea edi, [edi + 0x6105bb05]
lea esp, [esp + 0x28]
jb 0x5b5d11
pushal
mov byte [esp], 0xfd
xchg dword [esp + 0x20], edi
pushfd
push dword [esp + 0x24]
ret 0x28
lea esp, [esp + 8]
je 0x5a5e4d
lea eax, [esp - 0x6a3cf96a]
movzx ax, cl
push ecx
mov eax, 0xc0000001
pushfd
pushal
pushfd
lea esp, [esp + 0x2c]
jmp fcn.005ba844
cmp dword [ebp - 8], 0
push edx
lea esp, [esp + 4]
jne 0x5a2504
bswap cx
rdtsc
pushal
mov eax, dword [ebp + 0x1c]
pushfd
xchg dword [esp + 0x20], eax
pop ecx
not cl
mov ecx, dword [ebp + 0x18]
pushal
bswap edx
mov dword [esp + 0x38], ecx
rdtsc
mov edx, dword [ebp + 0x14]
pop eax
push 0xa76995db
push 0x379e5bfd
movsx cx, bl
xchg dword [esp + 0x38], edx
lahf
pushfd
mov eax, dword [ebp + 0x10]
xchg cx, dx
call fcn.005c06a8
jmp 0x597c4a
jmp 0x5be776
lea esp, [esp + 0x30]
je 0x5ba958
pushal
stc
push dword [esp + 4]
stc
cmp dword [ebp + 0x18], 4
mov byte [esp], bl
lea esp, [esp + 0x24]
jne 0x5c45a1
pushfd
clc
push eax
cmp dword [ebp + 0x14], 8
jmp 0x59aa21
pushfd
xchg dword [esp + 4], edi
mov byte [esp], dh
push dword [esp + 4]
ret 8
aam 0x24
daa
mov edx, dword [ebp + 0x10]
aas
btr ecx, ecx
ror ah, cl
mov dword [ebp - 8], edx
bts ax, di
xor ecx, 0xfe518e5c
sub eax, 0x6a56bb09
mov eax, dword [ebp - 8]
xor cl, bh
and cl, 0x75
sal ch, cl
pushal
mov dword [eax], 7
adc ch, 0xaa
shrd ecx, edi, 9
shrd cx, dx, 3
sal ch, cl
mov ecx, dword [ebp - 8]
call fcn.005c197d
stc
mov dword [ebp - 8], 1
cmc
cmp ecx, 0x14e9c889
jmp 0x5a59bc

Function at 0x5ada41
Capabilities:
Encode data using xor

Disassembly:
lea edi, [edi - 0x4122520c]
push 6
adc byte [ebp + 0x3e08fe94], cl
xor byte [esi + 0x45], ah
add byte [edi + 0x2a6705f0], ah
jae 0x5ada57
inc eax
dec ebx
cmpsb byte [esi], byte es:[edi]
inc ebp
sub al, 0x9e
test eax, 0xf8b5f3ba
lahf
loop 0x5ada18
stosd dword es:[edi], eax
cmp al, byte [esi + 0x48913ebd]
xchg byte [ebp + 0x50], bl
xor byte [edi - 0x47902302], dl
dec eax
xchg ebp, eax
das
adc ch, byte [esp + edi*2]
push esi
jne 0x5ada1e
jb fcn.005ad9e2
sub al, 0x81
enter 0xfffffffffffff49d, 0xffffffffffffffad
cld
jmp 0x7d7f4ffb
Function at 0x40401a
Capabilities:
Parse pe header

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

Function at 0x410061
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f520
push 0x41f518
push str.FlsAlloc
push 0x1f
call fcn.0040ff7d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410095
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d128]
call esi
jmp 0x41009b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4100df
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f530
push 0x41f528
push str.FlsGetValue
push 0x21
call fcn.0040ff7d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410116
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d128]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41011e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f538
push 0x41f530
push str.FlsSetValue
push 0x22
call fcn.0040ff7d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410158
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41d128]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41383b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x428fa8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41387b
cmp byte [ebx], 0xa
jne 0x41387b
or byte [edi + eax + 0x28], 4
jmp 0x413880
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41397f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x413962
inc eax
cmp dl, 0xd
je 0x4138ac
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4138d2
cmp eax, ecx
jae 0x4138e0
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x413894
jmp 0x41397f
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41395d
cmp dword [ebp - 0x10], 0
je 0x41395d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x428fa8]
test byte [eax + edi + 0x28], 0x48
je 0x413937
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x413922
mov byte [esi], dl
jmp 0x413933
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x428fa8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41397f
cmp byte [ebp - 1], 0xa
jne 0x413946
cmp esi, ebx
jne 0x413946
mov byte [esi], 0xa
jmp 0x41397e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004192cb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41397f
mov byte [esi], 0xd
jmp 0x41397e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x428fa8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41397c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41397f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x413988
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x428fa8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4139ce
cmp word [ebx], dx
jne 0x4139ce
or byte [eax + edi + 0x28], 4
jmp 0x4139d3
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x413b36
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x413b16
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x413a14
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x413a4a
cmp eax, edx
jae 0x413a58
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4139ef
jmp 0x413b36
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413b11
cmp dword [ebp - 0x18], 0
je 0x413b11
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x428fa8]
test byte [eax + edi + 0x28], 0x48
je 0x413ae7
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x413aab
mov word [esi], cx
jmp 0x413ae2
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x428fa8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x428fa8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x428fa8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x413b36
pop eax
cmp word [ebp - 4], ax
jne 0x413af7
cmp esi, ebx
jne 0x413af7
mov word [esi], ax
jmp 0x413b33
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004192cb
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x413b36
push 0xd
pop eax
jmp 0x413af2
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x428fa8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x413b30
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x413b36
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4153bc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x415459
push ebx
push esi
call fcn.00415385
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00411142
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x415406
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415458
push edi
push eax
call fcn.00411064
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x415426
call fcn.0040fe2a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415457
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00411142
add esp, 0x20
test eax, eax
jne 0x415445
push edi
call fcn.0040fe2a
jmp 0x41544d
push ebx
call fcn.0040fe2a
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x41a4a5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0041a421
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41a614
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41a614
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41a5c9
jg 0x41a501
test eax, eax
je 0x41a5bf
push 1
push 0x1000
call fcn.0040fdcd
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41a524
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41a5b6
push 0x8000
push ebx
call fcn.0040ea36
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41a54d
jg 0x41a548
cmp ecx, 0x1000
jb 0x41a54d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004131bb
add esp, 0x10
cmp eax, 0xffffffff
je 0x41a592
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x41a548
jl 0x41a579
test ecx, ecx
jne 0x41a53a
push dword [ebp - 0xc]
push ebx
call fcn.0040ea36
push esi
call fcn.0040fe2a
add esp, 0xc
xor ebx, ebx
jmp 0x41a622
cmp byte [edi + 0x24], 0
je 0x41a5a9
cmp dword [edi + 0x20], 5
jne 0x41a5a9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x41a5b4
mov ebx, dword [edi + 0x18]
jmp 0x41a5b6
xor ebx, ebx
push esi
call fcn.0040fe2a
pop ecx
jmp 0x41a622
test ecx, ecx
jg 0x41a58b
jl 0x41a5c9
test eax, eax
jae 0x41a58b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004192cb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41a5e9
cmp byte [edi + 0x1c], 0
je 0x41a58b
jmp 0x41a61a
push ebx
call fcn.00415872
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41a58b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41a622
cmp byte [edi + 0x1c], 0
je 0x41a61f
mov ebx, dword [edi + 0x18]
jmp 0x41a622
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004192cb
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41c4b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41c4dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41c4dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1000b950
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push str.GlobalARM_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.kernel32.dll_OpenMutexW]
test eax, eax
je 0x1000b971
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
inc eax
ret
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x1000b96d
xor eax, eax
ret

Function at 0x1000b97f
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push str.GlobalAcro_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.kernel32.dll_OpenMutexW]
test eax, eax
je 0x1000b9a0
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
inc eax
ret
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x1000b99c
xor eax, eax
ret

Function at 0x10014e50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x10014e5f
pop dword [ebp - 0x10]
mov eax, 0x10014e5f
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xc3f36116
add dword [ebp - 0x20], 0x8a5ee435
mov dword [ebp - 0x1c], 0xd73b38e8
add dword [ebp - 0x1c], 0x5af8135d
mov dword [ebp - 0x18], 0x45b7c3c2
sub dword [ebp - 0x18], 0xf96b7f94
mov dword [ebp - 0x14], 0x68e69486
sub dword [ebp - 0x14], 0x68e69486
lea eax, [ebp - 0x20]
push eax
mov eax, 0xf4f76804
add eax, 0x1b0b0988
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x643537d4
add dword [ebp - 0x20], 0x103d3182
mov dword [ebp - 0x1c], 0x65b1fdd7
sub dword [ebp - 0x1c], 0x24459c62
mov dword [ebp - 0x18], 0xc3f83c79
sub dword [ebp - 0x18], 0x6088d00d
mov dword [ebp - 0x14], 0xab5bd5b5
add dword [ebp - 0x14], 0x54a42a4b
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x41919
push 0
call eax
mov ecx, 0xfbb6a318
sub ecx, 0xfbb6570d
xor edi, edi
add edi, eax
mov esi, 0x9e216371
add esi, 0x71e2348f
add esi, dword [ebp - 0x10]
mov ebx, 0x453496ae
mov dword [ebp - 0xc], 0xfc570479
mov edx, dword [esi]
sub dword [ebp - 4], ecx
add edx, ebx
mov dword [edi], edx
xor dword [ebp - 0xc], edi
add edi, 4
add esi, 0x4561ffa4
sub esi, 0x4561ffa0
loop 0x10014f73
add eax, 0x92cb3153
sub eax, 0x92ca0e54
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xacb95b0d
sub ecx, 0x9cb95b0d
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x892058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8921a8
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 0x89207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x89206a
add dl, dl
jne 0x892089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8920dc
xor eax, eax
add dl, dl
jne 0x892096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x89217d
add dl, dl
jne 0x8920a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8920b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8920bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8920c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8920d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x892075
mov eax, 1
add dl, dl
jne 0x8920ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8920f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8920e1
sub eax, ebx
mov ebx, 1
jne 0x892128
mov ecx, 1
add dl, dl
jne 0x89210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x892119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x892105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x892075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x89213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x89214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x892136
cmp eax, 0x7d00
jae 0x89216d
cmp eax, 0x500
jb 0x892168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x892075
cmp eax, 0x7f
ja 0x892170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x892075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x89219e
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 0x892075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x10001060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call fcn.1000106f
Function at 0x402630
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
xor edi, edi
cmp dword [esp + 0x24], 0
je 0x402727
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x402727
push ebx
call fcn.00408d50
add esp, 4
test eax, eax
je 0x40268a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x402691
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x402670
jmp 0x402693
mov esi, 0x1505
jmp 0x402693
mov esi, ecx
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + 0x20]
lea ebp, [ebx - 1]
mov edx, ebx
sub edx, 1
jb 0x402727
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov dword [esp], edx
jmp 0x4026c4
inc ebp
dec ebx
je 0x402725
mov eax, ebp
and eax, edx
mov edi, dword [esp + 0xc]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x402725
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4026c0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
call fcn.00408d50
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x4026c0
push dword [esp + 4]
push dword [esp + 0xc]
push dword [esp + 0x30]
call fcn.00408d70
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4026c0
mov eax, dword [ecx + 0x10]
mov edi, dword [eax + edi*4]
jmp 0x402727
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402740
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
xor eax, eax
test ecx, ecx
je 0x402827
test edx, edx
je 0x402827
mov ebp, dword [esp + 0x28]
test ebp, ebp
mov dword [esp], ecx
je 0x40278a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
movzx ebx, byte [edx + edi]
test ebx, ebx
je 0x402791
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, ebx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x402770
jmp 0x402793
mov esi, 0x1505
jmp 0x402793
mov esi, ecx
mov dword [esp + 8], edx
mov ecx, dword [esp]
mov ebp, dword [ecx + 0x20]
lea ebx, [ebp - 1]
mov edx, ebp
sub edx, 1
jb 0x402827
and ebx, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 4], edx
jmp 0x4027c4
inc ebx
dec ebp
je 0x402825
mov eax, ebx
and eax, edx
mov edi, dword [esp + 0x10]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x402825
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4027c0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 0xc], eax
push eax
call fcn.00408d50
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x4027c0
push dword [esp + 0x28]
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00408d70
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x4027c0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x402827
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret