joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1ca9c16
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 0x1ca9cb3
push ebx
push esi
call fcn.01ca9d04
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.01ca9b1a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1ca9c60
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1ca9cb2
push edi
push eax
call fcn.01c3f8e0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1ca9c80
call fcn.01c68d20
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1ca9cb1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.01ca9b1a
add esp, 0x20
test eax, eax
jne 0x1ca9c9f
push edi
call fcn.01c68d20
jmp 0x1ca9ca7
push ebx
call fcn.01c68d20
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 0x1ca9cb6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1ca9cc7
pop esi
ret
push ebx
push edi
push esi
call fcn.01ca9d04
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.01c3f8e0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1ca9cef
push ebx
push esi
push edi
call fcn.01c8a630
add esp, 0xc
push 0
call fcn.01c68d20
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1ca9d46
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.01ca9fb1

Function at 0x1cac57e
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1cff040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x1cac5c1
call fcn.01c98091
mov dword [eax], 0xf
call fcn.01c9807e
mov dword [eax], 0xd
call fcn.01ca4ba2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01c87bd3
leave
ret
test eax, eax
jne 0x1cac5c8
inc eax
jmp 0x1cac5b5
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x1cac5b3
xor eax, eax
cmp ecx, 1
setne al
jmp 0x1cac5b5

Function at 0x1cb3ab0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push eax
push 0x1ccb2f0
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
pop ebp
ret
Function at 0x1ccddf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
mov eax, dword [0x1cff040]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
sete al
test edx, edx
sete cl
or cl, al
mov ebx, 0x57
jne 0x1ccde7b
mov edi, edx
xorps xmm0, xmm0
lea eax, [ebp - 0x2c]
movups xmmword [eax + 0xc], xmm0
movups xmmword [eax], xmm0
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1ccde73
test byte [ebp - 0x18], 0xf0
lea ebx, [ebp - 0x30]
mov dword [ebx], 0
mov eax, 4
mov ecx, 0x40
cmove ecx, eax
push ebx
push ecx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1ccde73
mov eax, dword [edi]
mov dword [esi], eax
push ebx
push dword [ebp - 0x30]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ebx, ebx
jmp 0x1ccde7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c87bd3
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1ccf5f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x1cff040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [0x1d1cd5c], 0
je 0x1ccf628
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c87bd3
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [0x1d1cd60]
test esi, esi
je 0x1ccf6c2
test byte [0x1d19288], 1
je 0x1ccf611
cmp byte [esi + 0xb], 0
jns 0x1ccf647
mov esi, dword [esi]
sub esp, 0x1c
movaps xmm0, xmmword [0x1cf50f0]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1d1cd5c], eax
inc eax
cmp eax, 1
ja 0x1ccf611
lea esi, [ebp - 0x216]
push 0x206
push 0xff
push esi
call fcn.01c8abb0
add esp, 0xc
mov word [esi - 2], 0
lea esi, [ebp - 0x218]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1ccf75b
xor ebx, ebx
jmp 0x1ccf611
push 0xc
call fcn.01c86c86
add esp, 4
mov esi, eax
lea edi, [ebp - 0x218]
push 0x208
push 0xff
push edi
call fcn.01c8abb0
add esp, 0xc
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
dec eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, esi
push edi
call fcn.01cc6740
movsx eax, byte [esi + 0xb]
mov ecx, esi
test eax, eax
jns 0x1ccf717
mov eax, dword [esi + 4]
mov ecx, dword [esi]
test eax, eax
jne 0x1ccf734
mov ecx, esi
push 9
push str.debug.log
call fcn.01c66260
mov dword [0x1d1cd60], esi
jmp 0x1ccf636
add eax, eax
test eax, eax
je 0x1ccf71b
lea edx, [eax - 2]
cmp word [ecx + eax - 2], 0x5c
mov eax, edx
jne 0x1ccf736
cmp edx, 0xfffffffe
je 0x1ccf71b
sar edx, 1
inc edx
mov ecx, esi
push 0xffffffffffffffff
push edx
call fcn.01c62c20
jmp 0x1ccf71b
mov ecx, dword [0x1d1cd60]
push esi
call fcn.01c39e00
mov ecx, dword [0x1d1cd60]
call fcn.01cc84c0
cmp word [eax], 0x5c
je 0x1ccf78a
mov ecx, dword [0x1d1cd60]
push 1
push 0x1cec316
call fcn.01c66260
mov ecx, dword [0x1d1cd60]
push 9
push str.debug.log
call fcn.01c66260
mov eax, dword [0x1d1cd60]
cmp byte [eax + 0xb], 0
jns 0x1ccf7a9
mov eax, dword [eax]
movaps xmm0, xmmword [0x1cf50f0]
sub esp, 0x1c
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1d1cd5c], eax
inc eax
cmp eax, 1
ja 0x1ccf611
mov dword [0x1d1cd5c], 0
jmp 0x1ccf6bb
Function at 0x1cd2db0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x1cff040]
xor eax, ebp
mov dword [ebp - 0x10], eax
movups xmm0, xmmword [edx]
movups xmmword [ebp - 0x20], xmm0
mov esi, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x2c]
cmp esi, ebx
je 0x1cd2df3
mov dword [ebp - 0x24], ecx
lea edi, [ebp - 0x20]
mov ecx, esi
push edi
call fcn.01cd2750
test al, al
jne 0x1cd2ded
add esi, 0x58
cmp esi, ebx
jne 0x1cd2dda
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax + 0x2c]
cmp esi, ebx
je 0x1cd2e2a
cmp byte [esi + 0x1b], 0
js 0x1cd2e02
lea eax, [esi + 0x10]
jmp 0x1cd2e05
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
xor edi, edi
inc edi
cmp eax, 0xffffffff
cmovne edi, ecx
test edi, edi
jne 0x1cd2e2d
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor edi, edi
jmp 0x1cd2e2d
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c87bd3
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x1cff040]
xor eax, ebp
mov dword [ebp - 0x10], eax
movups xmm0, xmmword [edx]
movups xmmword [ebp - 0x20], xmm0
mov edi, dword [ecx + 0x28]
mov esi, dword [ecx + 0x2c]
cmp edi, esi
je 0x1cd2fb3
mov dword [ebp - 0x24], ecx
lea ebx, [ebp - 0x20]
mov ecx, edi
push ebx
call fcn.01cd2750
test al, al
jne 0x1cd2fad
add edi, 0x58
cmp edi, esi
jne 0x1cd2f9a
mov ecx, dword [ebp - 0x24]
mov esi, dword [ecx + 0x2c]
xor ebx, ebx
inc ebx
cmp edi, esi
je 0x1cd3003
mov eax, dword [edi + 0x50]
cmp eax, dword [ebp + 8]
jne 0x1cd2ff7
cmp byte [edi + 0x1b], 0
js 0x1cd2fcf
mov esi, ecx
lea eax, [edi + 0x10]
jmp 0x1cd2fd4
mov esi, ecx
mov eax, dword [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1cd3003
shr eax, 3
and eax, 2
mov ebx, eax
jne 0x1cd3003
mov eax, dword [ebp + 0xc]
mov byte [esi + 0x24], 1
mov dword [eax], edi
xor ebx, ebx
jmp 0x1cd3003
xor ecx, ecx
cmp eax, 1
sete cl
lea ebx, [ecx + ecx*2]
inc ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c87bd3
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1cd7e70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xa4
mov edi, dword [ebp + 8]
mov eax, dword [0x1cff040]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x1cd7e93
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1cd7eb7
mov ebx, eax
mov al, byte [ebp + 0xc]
mov ecx, ebx
shr ecx, 0xa
xor al, 1
test cl, al
jne 0x1cd7f0b
and ebx, 0x10
shr ebx, 4
jmp 0x1cd7f0d
push 2
call fcn.01c6d5f0
add esp, 4
test al, al
je 0x1cd7f0b
call fcn.01ccfae0
lea esi, [ebp - 0xb0]
mov ecx, esi
push eax
push 2
push 0x80
push str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
call fcn.01ccfcb0
lea eax, [ebp - 0xa8]
push 0x12
push str.GetFileAttributes
push eax
call fcn.01c5b050
add esp, 0xc
push edi
push eax
call fcn.01ccf000
add esp, 8
mov ecx, esi
call fcn.01ccfd10
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c87bd3
mov eax, ebx
add esp, 0xa4
pop esi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xa4
mov edi, dword [ebp + 8]
mov eax, dword [0x1cff040]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x1cd7f53
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1cd7f7e
test eax, 0x410
sete bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c87bd3
mov eax, ebx
add esp, 0xa4
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call fcn.01c6d5f0
add esp, 4
test al, al
je 0x1cd7fcf
call fcn.01ccfae0
lea esi, [ebp - 0xb0]
mov ecx, esi
push eax
push 2
push 0x73
push str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
call fcn.01ccfcb0
lea eax, [ebp - 0xa8]
push 0x12
push str.GetFileAttributes
push eax
call fcn.01c5b050
add esp, 0xc
push edi
push eax
call fcn.01ccf000
add esp, 8
mov ecx, esi
call fcn.01ccfd10
xor ebx, ebx
jmp 0x1cd7f67
Function at 0x1cd7fe0
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xa4
mov esi, dword [ebp + 8]
mov eax, dword [0x1cff040]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x1cd8003
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
sete cl
not eax
test eax, 0x410
setne al
or al, cl
je 0x1cd80a6
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x1cd802c
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
test eax, eax
jne 0x1cd808f
push 2
call fcn.01c6d5f0
add esp, 4
test al, al
je 0x1cd808d
call fcn.01ccfae0
lea edi, [ebp - 0xb0]
mov ecx, edi
push eax
push 2
push 0x93
push str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
call fcn.01ccfcb0
lea eax, [ebp - 0xa8]
push 0xb
push str.DeleteFile
push eax
call fcn.01c5b050
add esp, 0xc
push esi
push eax
call fcn.01ccf000
add esp, 8
mov ecx, edi
call fcn.01ccfd10
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c87bd3
mov eax, ebx
add esp, 0xa4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c87bd3
mov ecx, esi
add esp, 0xa4
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.01cd80d0

Function at 0x1cd80d0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xa4
mov esi, ecx
mov eax, dword [0x1cff040]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x1cd80f2
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
test eax, eax
je 0x1cd811b
test edi, edi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c87bd3
mov eax, ebx
add esp, 0xa4
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call fcn.01c6d5f0
add esp, 4
test al, al
je 0x1cd80ff
call fcn.01ccfae0
lea ebx, [ebp - 0xb0]
mov ecx, ebx
push eax
push 2
push 0x2f
push str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
call fcn.01ccfcb0
lea eax, [ebp - 0xa8]
push 0x10
push str.RemoveDirectory
push eax
call fcn.01c5b050
add esp, 0xc
push esi
push eax
call fcn.01ccf000
add esp, 8
mov ecx, ebx
call fcn.01ccfd10
jmp 0x1cd80ff
Function at 0x1cdb2a0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.01cd7fe0
Function at 0x994cdc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x994d03
call fcn.00937288
mov dword [eax], esi
call fcn.00937275
push 0x16
pop esi
mov dword [eax], esi
call fcn.00937eca
mov eax, esi
jmp 0x994d58
test dword [ebp + 0xc], 0xfffffff9
jne 0x994ce9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x994d30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0093729b
pop ecx
call fcn.00937275
mov eax, dword [eax]
jmp 0x994d58
test al, 0x10
jne 0x994d56
test al, 1
je 0x994d56
test byte [ebp + 0xc], 2
je 0x994d56
call fcn.00937288
mov dword [eax], 5
call fcn.00937275
mov dword [eax], 0xd
jmp 0x994d27
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
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 eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18
Function at 0xf1e058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xf1e1a8
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 0xf1e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf1e06a
add dl, dl
jne 0xf1e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf1e0dc
xor eax, eax
add dl, dl
jne 0xf1e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf1e17d
add dl, dl
jne 0xf1e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf1e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf1e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf1e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xf1e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xf1e075
mov eax, 1
add dl, dl
jne 0xf1e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf1e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf1e0e1
sub eax, ebx
mov ebx, 1
jne 0xf1e128
mov ecx, 1
add dl, dl
jne 0xf1e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf1e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf1e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf1e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xf1e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf1e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf1e136
cmp eax, 0x7d00
jae 0xf1e16d
cmp eax, 0x500
jb 0xf1e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf1e075
cmp eax, 0x7f
ja 0xf1e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf1e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xf1e19e
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 0xf1e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x11f2270
Capabilities:
Hash data using djb2

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x11f22aa
mov edx, dword [esp + 0x10]
mov edi, 0x1505
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [edx + esi]
test ebx, ebx
je 0x11f22b1
mov eax, edi
shl eax, 5
add eax, edi
add eax, ebx
inc esi
mov edi, eax
cmp ecx, esi
jne 0x11f2290
jmp 0x11f22b3
mov eax, 0x1505
jmp 0x11f22b3
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x11f29d0
Capabilities:
Compute adler32 checksum
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x11f2b76
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x11f2b6f
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, esi
sub edx, eax
mov eax, edx
jmp 0x11f2a65
mov eax, dword [esp]
sub eax, dword [esp + 4]
add ebp, eax
mov esi, dword [esp + 8]
mov eax, edi
mov edx, 0x80078071
mul edx
mov ebx, edx
shr ebx, 0xf
mov eax, ecx
mov edx, 0x80078071
mul edx
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
sub esi, dword [esp]
mov eax, 0x15b0
je 0x11f2b6f
xor ebx, ebx
cmp eax, 8
mov dword [esp], eax
mov dword [esp + 8], esi
jb 0x11f2ae2
mov ebx, eax
and ebx, 0x1ff8
mov edx, 7
movzx eax, byte [ebp + edx - 7]
add eax, edi
add ecx, eax
movzx esi, byte [ebp + edx - 6]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + edx - 5]
add eax, esi
add ecx, eax
movzx esi, byte [ebp + edx - 4]
add esi, eax
mov eax, ecx
xor eax, esi
and ecx, esi
movzx edi, byte [ebp + edx - 3]
add edi, esi
movzx esi, byte [ebp + edx - 2]
add esi, edi
add edi, eax
lea ecx, [edi + ecx*2]
movzx eax, byte [ebp + edx - 1]
add eax, esi
add ecx, esi
movzx edi, byte [ebp + edx]
add edi, eax
add ecx, eax
mov eax, dword [esp]
add ecx, edi
add edx, 8
cmp edx, eax
jb 0x11f2a80
add ebp, edx
add ebp, 0xfffffff9
mov esi, dword [esp + 8]
mov edx, ebx
sub edx, eax
jae 0x11f2a2d
mov dword [esp + 0xc], edx
and eax, 3
mov dword [esp + 4], ebx
je 0x11f2b20
neg eax
xor ebx, ebx
mov edx, ebp
nop
movzx esi, byte [edx]
inc edx
add edi, esi
add ecx, edi
dec ebx
cmp eax, ebx
jne 0x11f2b00
mov eax, dword [esp + 4]
sub eax, ebx
cmp dword [esp + 0xc], 0xfffffffc
ja 0x11f2a20
jmp 0x11f2b2f
mov eax, ebx
mov edx, ebp
cmp dword [esp + 0xc], 0xfffffffc
ja 0x11f2a20
mov ebx, dword [esp]
sub ebx, eax
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx + eax]
add esi, edi
add ecx, esi
movzx edi, byte [edx + eax + 1]
add edi, esi
add ecx, edi
movzx esi, byte [edx + eax + 2]
add esi, edi
add ecx, esi
movzx edi, byte [edx + eax + 3]
add edi, esi
add ecx, edi
add eax, 4
cmp ebx, eax
jne 0x11f2b40
jmp 0x11f2a20
shl ecx, 0x10
or ecx, edi
jmp 0x11f2b7b
mov ecx, 1
mov eax, ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x11f2b90
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x11f2bbe
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test ebx, ebx
je 0x11f2c5c
not eax
test bl, 1
jne 0x11f2bc5
mov edx, ebx
cmp ebx, 1
jne 0x11f2bf6
jmp 0x11f2c5a
xor eax, eax
jmp 0x11f2c5c
lea edx, [ebx - 1]
movzx esi, byte [ecx]
mov edi, eax
shr edi, 4
xor eax, esi
and eax, 0xf
xor edi, dword [eax*4 + 0x122e80c]
inc ecx
mov eax, edi
shr eax, 4
and edi, 0xf
shr esi, 4
xor esi, edi
xor eax, dword [esi*4 + 0x122e80c]
cmp ebx, 1
je 0x11f2c5a
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [ecx + esi]
mov ebx, eax
shr ebx, 4
xor eax, edi
and eax, 0xf
xor ebx, dword [eax*4 + 0x122e80c]
mov eax, ebx
shr eax, 4
and ebx, 0xf
shr edi, 4
xor edi, ebx
xor eax, dword [edi*4 + 0x122e80c]
movzx edi, byte [ecx + esi + 1]
mov ebx, eax
shr ebx, 4
xor eax, edi
and eax, 0xf
xor ebx, dword [eax*4 + 0x122e80c]
mov eax, ebx
shr eax, 4
and ebx, 0xf
shr edi, 4
xor edi, ebx
xor eax, dword [edi*4 + 0x122e80c]
add esi, 2
cmp edx, esi
jne 0x11f2c00
not eax
pop esi
pop edi
pop ebx
ret