joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180c0b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x180c200
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 0x180c0d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x180c0c2
add dl, dl
jne 0x180c0e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x180c134
xor eax, eax
add dl, dl
jne 0x180c0ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x180c1d5
add dl, dl
jne 0x180c0fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180c108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180c113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180c11e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x180c12a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x180c0cd
mov eax, 1
add dl, dl
jne 0x180c142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180c14d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x180c139
sub eax, ebx
mov ebx, 1
jne 0x180c180
mov ecx, 1
add dl, dl
jne 0x180c166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180c171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x180c15d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x180c0cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180c197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180c1a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x180c18e
cmp eax, 0x7d00
jae 0x180c1c5
cmp eax, 0x500
jb 0x180c1c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x180c0cd
cmp eax, 0x7f
ja 0x180c1c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x180c0cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x180c1f6
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 0x180c0cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x404430
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push edi
push esi
push ebx
sub esp, 0x110
mov ebx, dword [esp + 0x120]
call sub.msvcrt.dll__errno
test ebx, ebx
mov dword [eax], 0
je 0x404607
cmp byte [ebx], 0
je 0x404472
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
add esp, 0xc
cmp eax, 0xffffffff
je 0x4045f7
and eax, 0x10
jne 0x404490
call sub.msvcrt.dll__errno
mov dword [eax], 0x14
xor eax, eax
add esp, 0x110
pop ebx
pop esi
pop edi
ret
push esi
push 0x104
push ebx
lea esi, [esp + 0xc]
push esi
call sub.msvcrt.dll__fullpath
mov ecx, esi
pop ebx
mov ebx, esi
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
xor eax, 0xffffffff
and edx, eax
and edx, 0x80808080
je 0x4044a6
test edx, 0x8080
jne 0x4044cc
shr edx, 0x10
add ecx, 2
add dl, dl
sbb ecx, 3
sub ecx, ebx
lea edx, [ecx + 0x132]
push edx
call sub.msvcrt.dll_malloc
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x4045e7
push ecx
push ecx
push esi
lea esi, [eax + 0x12c]
push esi
call sub.msvcrt.dll_strcpy
add esp, 0x10
cmp byte [ebx + 0x12c], 0
je 0x404597
mov ecx, esi
mov edi, esi
nop
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
xor eax, 0xffffffff
and edx, eax
and edx, 0x80808080
je 0x404510
test edx, 0x8080
jne 0x404536
shr edx, 0x10
add ecx, 2
add dl, dl
sbb ecx, 3
sub ecx, edi
cmp byte [ecx + ebx + 0x12b], 0x2f
je 0x404597
mov ecx, esi
mov edi, esi
nop
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
xor eax, 0xffffffff
and edx, eax
and edx, 0x80808080
je 0x404550
test edx, 0x8080
jne 0x404576
shr edx, 0x10
add ecx, 2
add dl, dl
sbb ecx, 3
sub ecx, edi
cmp byte [ecx + ebx + 0x12b], 0x5c
je 0x404597
push edx
push edx
push 0x404420
push esi
call sub.msvcrt.dll_strcat
add esp, 0x10
push eax
push eax
push 0x404422
push esi
call sub.msvcrt.dll_strcat
add esp, 0x10
lea edx, [ebx + 0x14]
mov eax, ebx
mov dword [ebx + 0x124], 0xffffffff
mov dword [ebx + 0x128], 0
mov dword [ebx + 0x118], 0
mov word [ebx + 0x11c], 0
mov word [ebx + 0x11e], 0
mov dword [ebx + 0x120], edx
jmp 0x40447f
call sub.msvcrt.dll__errno
mov dword [eax], 0xc
jmp 0x40447d
call sub.msvcrt.dll__errno
mov dword [eax], 2
jmp 0x40447d
call sub.msvcrt.dll__errno
mov dword [eax], 0xe
jmp 0x40447d

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x42ab416a
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x73942b2b
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x403e18
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.00403bb4
mov bh, 0x63
xchg ecx, eax
dec ebx
lea eax, [ebp - 0x58]
push eax
call fcn.00403bc4
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00403b79
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x403ea2
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00403bb4
cld
or byte [esi - 0x3fba724e], bl
push eax
call fcn.00403bc4
push eax
push esi
push dword [ebp + 8]
call fcn.00403b79
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.00403bb4
cmpsd dword [esi], dword es:[edi]
int 0x44
add ecx, dword [ebp + 0x5d88e845]
call 0xe99dc775
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.00403bc4
push eax
push esi
push dword [ebp + 8]
call fcn.00403b79
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00403bc4
push eax
push esi
push dword [ebp + 8]
call fcn.00403b79
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
invalid
Function at 0x405f90
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405fad
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x405fb0
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [eax + 1]
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405fe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40968c]
mov dword [ebp - 8], eax
mov eax, dword [0x409690]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406030
test edi, edi
jne 0x405fed
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x40602a

Function at 0x406034
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4060ad
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4008
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406096
cmp dword [ebp + 0x14], 1
je 0x40609b
cmp dword [ebp + 0x14], 2
je 0x40609b
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x4006], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14
Function at 0x40c50f
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov ecx, 0xe2
mov dword [ebp - 0x14], ecx
push ebx
mov dword [ebp - 0x14], ecx
push esi
mov edx, 0x88
mov dword [ebp - 0x14], edx
push edi
add ecx, 0xffffffee
mov edx, 0x30
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x14], edx
push 0xffffffffffffffe5
push 0xa14c0a00
push 0xffffffffffffffba
push 0x1101d000
push 0x3f
call fcn.0040cf5c
add esp, 0x14
jmp 0x40c55a
push ebx
push 0x8b184700
push 0x736c1300
push 0xc
call fcn.0040cf5c
add esp, 0x10
rdtsc
xor edx, eax
mov ecx, dword [ebp - 0x14]
jmp 0x40c5a0
sub edi, eax
mov esi, 0xc871
cmp eax, 0xfffffffe
jne 0x40c5e1
cmp eax, esi
je 0x40c5e1
jmp 0x40c5e1
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x64], eax
jmp 0x40c5f4
add eax, 1
mov ecx, dword [ebp - 0x14]
jmp 0x40c619
test eax, 8
jne 0x40c623
mov dword [ebp - 0x5c], edi
add edi, edi
jmp 0x40c642
jmp 0x40c665
rdtsc
or edx, ecx
mov ecx, eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x64], edx
jmp 0x40c683
mov edi, dword [ebp - 0x14]
sub edi, edx
jmp 0x40c68d
mov edi, dword [ebp - 0x44]
cmp edi, 0x5f
je 0x40c6bf
mov ecx, dword [0x42c458]
cmp edi, 0x5c
je 0x40c6bf
cmp edi, 0x9b62
jne 0x40c6bf
mov esi, dword [ebp - 0x14]
or esi, 0xffffffd6
jmp 0x40c6bf
sub eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x48], eax
mov edx, 0x5c
mov dword [ebp - 0x14], edx
pop edi
cmp edi, dword [0x42c458]
je 0x40c6e8
cmp edi, 0xffffffeb
je 0x40c6e8
add edx, edx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x40], ecx
pop esi
or ecx, edi
mov ebx, dword [ebp - 0x64]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x24], esi
jmp 0x40c6fe
pop ebx
mov dword [ebp - 0x18], ebx
leave
ret
Function at 0x40cb44
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0x39
mov eax, dword [ebp - 4]
add eax, 0x39
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
imul ecx, ecx, 0x73
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0
je 0x40ccc2
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
add ecx, 0xda
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
je 0x40cbc1
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + 0x2c]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + 0x2e]
cmp eax, edx
jle 0x40cbca
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
je 0x40ccad
mov edx, 1
test edx, edx
je 0x40ccad
mov eax, dword [ebp - 0x24]
mov cl, byte [eax]
mov byte [ebp - 0x25], cl
mov edx, dword [ebp - 8]
sub edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x20]
mov cl, byte [eax]
mov byte [ebp - 0x19], cl
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
movzx eax, byte [ebp - 0x19]
add eax, 0x16
mov byte [ebp - 0x19], al
movzx ecx, byte [ebp - 0x19]
cmp ecx, 0x57
jl 0x40cc29
movzx edx, byte [ebp - 0x19]
cmp edx, 0x70
jg 0x40cc29
movzx eax, byte [ebp - 0x19]
add eax, 0x20
mov byte [ebp - 0x19], al
movzx ecx, byte [ebp - 0x19]
sub ecx, 0x16
mov byte [ebp - 0x19], cl
movzx edx, byte [ebp - 0x25]
add edx, 0x16
mov byte [ebp - 0x25], dl
movzx eax, byte [ebp - 0x25]
cmp eax, 0x57
jl 0x40cc59
movzx ecx, byte [ebp - 0x25]
cmp ecx, 0x70
jg 0x40cc59
movzx edx, byte [ebp - 0x25]
add edx, 0x20
mov byte [ebp - 0x25], dl
movzx eax, byte [ebp - 0x25]
sub eax, 0x16
mov byte [ebp - 0x25], al
movzx ecx, byte [ebp - 0x19]
movzx edx, byte [ebp - 0x25]
cmp ecx, edx
je 0x40cc71
jmp 0x40ccad
movzx eax, byte [ebp - 0x19]
test eax, eax
jne 0x40cc81
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x18]
jmp 0x40ccc4
mov dword [ebp - 0x2c], 0xca
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
lea ecx, [eax + edx*2 - 0x192]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
lea ecx, [eax + edx - 0xc9]
mov dword [ebp - 0x20], ecx
jmp 0x40cbd4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x10]
jne 0x40cb8e
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x40cccf
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0xfe
cmp dword [ebp + 8], 0
je 0x40ce49
cmp dword [ebp + 0xc], 0
je 0x40ce49
cmp dword [ebp + 0xc], 0xffff
jbe 0x40cd07
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40ce49
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x7c], 0
je 0x40ce49
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x78], 0
je 0x40ce49
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x78]
cmp eax, dword [edx + 0x50]
jae 0x40ce49
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
add edx, dword [ecx + 0x78]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
cmp dword [ebp + 0xc], 0xffff
ja 0x40cdb8
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax + 0x10]
jb 0x40cdb3
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x10]
add eax, dword [ecx + 0x10]
cmp dword [ebp + 0xc], eax
jae 0x40cdb3
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
sub eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
add edx, dword [ecx + eax*4]
mov eax, edx
jmp 0x40ce4b
jmp 0x40ce49
mov dword [ebp - 0x20], 0
jmp 0x40cdca
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
cmp edx, dword [ecx + 0x18]
jae 0x40ce49
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x28]
movsx edx, byte [ecx]
mov eax, dword [ebp - 0x24]
movsx ecx, byte [eax]
cmp edx, ecx
jne 0x40ce44
mov edx, dword [ebp - 0x28]
movsx eax, byte [edx]
test eax, eax
jne 0x40ce1b
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
add edx, dword [ecx + eax*4]
mov eax, edx
jmp 0x40ce4b
mov dword [ebp - 0x2c], 0xff
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
lea edx, [ecx + eax - 0xfe]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax - 0xfe]
mov dword [ebp - 0x24], edx
jmp 0x40cdea
jmp 0x40cdc1
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x3963700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0396378f
jae 0x396370e
xor ecx, ecx
call fcn.0396378f
jae 0x396373d
xor eax, eax
call fcn.0396378f
jae 0x396374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0396378f
adc al, al
jae 0x396372f
jne 0x3963779
stosb byte es:[edi], al
jmp 0x3963711
call fcn.0396379b
sub ecx, ebx
jne 0x3963756
call fcn.03963799
jmp 0x3963775
lodsb al, byte [esi]
shr eax, 1
je 0x3963783
adc ecx, ecx
jmp 0x3963772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.03963799
cmp eax, 0x7d00
jae 0x3963772
cmp ah, 5
jae 0x3963773
cmp eax, 0x7f
ja 0x3963774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3963711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x3983700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0398378f
jae 0x398370e
xor ecx, ecx
call fcn.0398378f
jae 0x398373d
xor eax, eax
call fcn.0398378f
jae 0x398374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0398378f
adc al, al
jae 0x398372f
jne 0x3983779
stosb byte es:[edi], al
jmp 0x3983711
call fcn.0398379b
sub ecx, ebx
jne 0x3983756
call fcn.03983799
jmp 0x3983775
lodsb al, byte [esi]
shr eax, 1
je 0x3983783
adc ecx, ecx
jmp 0x3983772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.03983799
cmp eax, 0x7d00
jae 0x3983772
cmp ah, 5
jae 0x3983773
cmp eax, 0x7f
ja 0x3983774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3983711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x3add5d8a
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x3add5ddd
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x3add5dd8
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x3add5dc2
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x3add5dca
cmp edx, ebx
jne 0x3add5f18
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x3add5d99
add eax, dword [eax + 4]
jmp 0x3add5d86
mov dword [ebp + 0xc], ebx
jmp 0x3add5de8
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x3add5e00
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x3add5e1e
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x3add5e7c
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x3add5e63
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x3add5e6c
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x3add5e76
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x3add5e58
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x3add5de2
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x3add5ec9
dec eax
je 0x3add5ec0
sub eax, 3
je 0x3add5eb7
mov dword [ebp - 4], 0x40
jmp 0x3add5ee6
mov dword [ebp - 4], 4
jmp 0x3add5ecc
mov dword [ebp - 4], 0x20
jmp 0x3add5ecc
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x3add5f18
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x3add5e98
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.3add5729
stc
mov eax, dword [0x75ffce1f]
adc al, 0x6a
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x3add5f24
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3add5fd0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jne 0x3add5fea
push dword [ebp + 0x14]
call fcn.3add56ee
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
test dword [ecx + edi*8 - 0x7a380001], ecx
jl 0x3add5fef
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.3add5739
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.3add56ee
sbb dh, dh
invalid
inc dword [ebx - 0x7a76f33c]
enter 0xfffffffffffffffa, 0xffffffffffffffff
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
adc eax, 0xfffffc
invalid

Function at 0x3add757f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x7c9], 0
mov byte [ebp - 0x7c8], 0x9c
mov byte [ebp - 0x7c7], 0x90
mov byte [ebp - 0x7c6], 0x93
mov byte [ebp - 0x7c5], 0x81
mov byte [ebp - 0x7c4], 0x90
mov byte [ebp - 0x7c3], 0xac
mov byte [ebp - 0x7c2], 0xee
mov byte [ebp - 0x7c1], 0xa4
mov byte [ebp - 0x7c0], 0xac
mov byte [ebp - 0x7bf], 0xac
mov byte [ebp - 0x7be], 0xc0
inc eax
push 0xb
lea eax, [ebp - 0x7cc]
push eax
call fcn.3add5739
pop ecx
push eax
mov eax, dword [ebp - 0x338]
lea eax, [ebp + eax - 0x230]
push eax
call fcn.3add569a
add esp, 0xc
jmp 0x3add76a1