joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c7bb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
xor ebx, ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c7c88
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 5], 0
je 0x4c7be6
or dword [ebp - 4], 0x8000
call fcn.004c7770
test al, al
je 0x4c7c15
test byte [ebp - 3], 0x80
je 0x4c7c15
lea eax, [ebp - 0x218]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
and eax, 0xffff7fff
push eax
push 0
call sub.shell32.dll_SHGetFolderPathW
mov dword [ebp - 0x10], eax
jmp 0x4c7c1c
mov dword [ebp - 0x10], 0x80004005
cmp dword [ebp - 0x10], 0
je 0x4c7c3b
lea eax, [ebp - 0x218]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0
call sub.shell32.dll_SHGetFolderPathW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4c7c67
lea eax, [ebp - 0x21c]
lea edx, [ebp - 0x218]
mov ecx, 0x104
call fcn.004072ac
mov eax, dword [ebp - 0x21c]
mov edx, dword [ebp - 0xc]
call fcn.004279f0
jmp 0x4c7c6f
mov eax, dword [ebp - 0xc]
call fcn.004065ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c7c8f
lea eax, [ebp - 0x21c]
call fcn.004065ac
ret

Function at 0x4e31a0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x2c
jne 0x4e31c7
mov eax, dword [ebp - 8]
mov edx, 0x4e3260
call fcn.00406970
jmp 0x4e3250
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_GetKeyboardLayout
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_MapVirtualKeyExW
shl eax, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0x21
jbe 0x4e31f7
cmp dword [ebp - 4], 0x2f
jae 0x4e31f7
or dword [ebp - 0xc], 0x1000000
cmp dword [ebp - 4], 0x90
jne 0x4e3207
mov dword [ebp - 0xc], 0xc1450001
cmp dword [ebp - 4], 0x13
jne 0x4e3214
mov dword [ebp - 0xc], 0xc0450001
cmp dword [ebp - 0xc], 0
je 0x4e3250
push pe_nt_image_headers32
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x4e3248
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x20c]
mov ecx, pe_nt_image_headers32
call fcn.004072ac
jmp 0x4e3250
mov eax, dword [ebp - 8]
call fcn.004065ac
mov esp, ebp
pop ebp
ret
Function at 0x4f1290
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 0xc], ecx
mov word [ebp - 6], dx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00406970
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00406a80
test eax, eax
jle 0x4f1313
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov ax, word [eax + edx*2 - 2]
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0x10]
dec eax
shl eax, 3
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
and ecx, 0x3f
call fcn.004080a0
and ax, word [ebp - 6]
xor word [ebp - 0x16], ax
mov eax, dword [ebp - 0xc]
call fcn.00406b48
mov edx, dword [ebp - 0x10]
mov cx, word [ebp - 0x16]
mov word [eax + edx*2 - 2], cx
inc dword [ebp - 0x10]
dec dword [ebp - 0x1c]
jne 0x4f12c3
mov esp, ebp
pop ebp
ret 8

Function at 0x4f2420
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f2585
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407200
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4f256a
test byte [ebp - 0x10], 1
je 0x4f256a
push 0x4f25a0
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0041d048
push dword [ebp - 0x18]
push 0x4f25fc
push dword [ebp - 4]
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00407478
mov eax, dword [ebp - 0x14]
push eax
call fcn.0057dea0
xor ecx, ecx
pop edx
call fcn.00436230
mov eax, dword [ebp - 0x10]
and eax, 0xfffffffe
push eax
mov eax, dword [ebp - 4]
call fcn.00407200
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [ebp - 4]
call fcn.00407200
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0x10], eax
test byte [ebp - 0x10], 1
jne 0x4f2521
cmp byte [0x59f14a], 0
jne 0x4f24fe
mov byte [0x59f14a], 1
push 0
push 0
mov ecx, dword [ebp - 8]
mov eax, dword [0x59fe44]
mov eax, dword [eax]
mov edx, 0x7d
call fcn.004ffa70
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, 0x4f2618
call fcn.004073f0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0057dea0
xor ecx, ecx
pop edx
call fcn.00436740
jmp 0x4f256a
cmp byte [0x59f149], 0
jne 0x4f2549
mov byte [0x59f149], 1
push 0
push 0
mov ecx, dword [ebp - 8]
mov eax, dword [0x59fe44]
mov eax, dword [eax]
mov edx, 0x7e
call fcn.004ffa70
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 4]
mov edx, 0x4f2674
call fcn.004073f0
mov eax, dword [ebp - 0x20]
push eax
call fcn.0057dea0
xor ecx, ecx
pop edx
call fcn.00436230
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f258c
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.0040660c
ret
Function at 0x4fdce0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
mov edx, dword [0x4fdc10]
call fcn.004078bc
xor eax, eax
push ebp
push 0x4fddae
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x4fdbc4]
call fcn.004084e4
add esp, 4
lea eax, [ebp - 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
push 0x4fdc40
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 0x14]
call fcn.00408330
test eax, eax
jne 0x4fdd4a
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x4fdd92
mov eax, dword [ebp - 0x14]
call fcn.00408338
test eax, eax
jl 0x4fdd8a
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4fdd82
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0xc], eax
jmp 0x4fdd92
inc dword [ebp - 0x10]
dec dword [ebp - 0x1c]
jne 0x4fdd61
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fddb5
lea eax, [ebp - 0x18]
mov edx, dword [0x4fdc10]
call fcn.00407994
ret
Function at 0x552530
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x5525e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
inc dword [eax - 4]
lea ecx, [ebp - 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0042bd70
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 4]
call fcn.0042b3e0
lea edx, [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0041d048
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x10]
lea eax, [ebp - 8]
call fcn.004073f0
push 1
mov eax, dword [ebp - 8]
call fcn.00407200
push eax
mov eax, dword [ebp - 4]
call fcn.00407200
push eax
call sub.kernel32.dll_MoveFileExW
test eax, eax
je 0x5525bc
push 4
push 0
mov eax, dword [ebp - 8]
call fcn.00407200
push eax
call sub.kernel32.dll_MoveFileExW
jmp 0x5525ce
push 4
push 0
mov eax, dword [ebp - 4]
call fcn.00407200
push eax
call sub.kernel32.dll_MoveFileExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5525f0
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040660c
ret
Function at 0x55a380
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x55a398
add esp, 0xfffffff0
call fcn.00405298
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x55a445
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0x24
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x18]
call fcn.00406a0c
mov eax, dword [ebp - 4]
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x30], ecx
mov ecx, dword [edx + 0x14]
mov dword [eax + 0x34], ecx
mov eax, dword [ebp - 4]
add eax, 0x7c
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0xc]
call fcn.00406a0c
mov eax, dword [ebp - 4]
add eax, 0x78
mov edx, dword [ebp + 8]
call fcn.00406a0c
lea edx, [ebp - 0x10]
mov eax, dword [ebp + 0xc]
call fcn.0046f350
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00557380
mov eax, dword [ebp - 4]
add eax, 0x38
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
call fcn.004072c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55a44c
lea eax, [ebp - 0x10]
call fcn.004065d0
ret

Function at 0x55b540
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x55b558
add esp, 0xfffffff0
call fcn.00405298
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x55b615
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0x24
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x18]
call fcn.00406a0c
mov eax, dword [ebp - 4]
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x30], ecx
mov ecx, dword [edx + 0x14]
mov dword [eax + 0x34], ecx
mov eax, dword [ebp - 4]
add eax, 0x80
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0xc]
call fcn.00406a0c
mov eax, dword [ebp - 4]
lea edx, [eax + 0x7c]
mov eax, dword [ebp + 8]
call fcn.00409d98
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 4]
call fcn.0055b9d0
lea edx, [ebp - 0x10]
mov eax, dword [ebp + 0xc]
call fcn.0046f350
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00557380
mov eax, dword [ebp - 4]
add eax, 0x38
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
call fcn.004072c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55b61c
lea eax, [ebp - 0x10]
call fcn.004065d0
ret
Function at 0x56e6e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x56e7ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00428110
mov eax, dword [0x59f498]
call fcn.0042bf80
dec eax
cmp eax, 0
jl 0x56e7d2
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov eax, dword [0x59f498]
call fcn.0042bd70
mov byte [ebp - 0x19], 0
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, dword [ebp - 0x14]
call fcn.0040772c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jl 0x56e7c5
cmp byte [ebp - 0x19], 0
jne 0x56e79d
mov byte [ebp - 0x19], 1
lea eax, [ebp - 0x18]
mov edx, 0x105
call fcn.00407318
mov eax, dword [ebp - 0x18]
call fcn.00407200
push eax
push 0
push 0
mov edx, dword [ebp - 0xc]
mov eax, dword [0x59f498]
call fcn.0042be20
push eax
push 0
call sub.shell32.dll_SHGetFolderPathW
test eax, eax
jne 0x56e795
lea eax, [ebp - 0x18]
call fcn.0042a8a0
jmp 0x56e79d
lea eax, [ebp - 0x18]
call fcn.004065ac
mov eax, dword [ebp - 0x14]
call fcn.00406a80
mov ecx, eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00407608
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
call fcn.0040766c
jmp 0x56e738
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x56e724
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56e7f4
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0040660c
ret

Function at 0x57f0b0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
xor edx, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x57f16f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 0x2c]
mov dx, word [ebp - 2]
call fcn.00407218
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
mov ecx, 0x57f18c
call fcn.004073f0
mov eax, dword [ebp - 0x14]
call fcn.00407200
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 3
jne 0x57f151
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00407200
push eax
call sub.kernel32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x57f151
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57f176
lea eax, [ebp - 0x2c]
call fcn.004065ac
lea eax, [ebp - 0x14]
call fcn.004065ac
ret
Function at 0x92e990
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x68300d
lea edi, [esi - 0x28200d]
push edi
or ebp, 0xffffffff
jmp 0x92e9b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x92e9b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x92e9a8
mov eax, 1
add ebx, ebx
jne 0x92e9cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x92e9c0
jne 0x92e9dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x92e9c0
xor ecx, ecx
sub eax, 3
jb 0x92e9f0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x92ea62
mov ebp, eax
add ebx, ebx
jne 0x92e9fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x92ea08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x92ea2c
inc ecx
add ebx, ebx
jne 0x92ea18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x92ea0d
jne 0x92ea29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x92ea0d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x92ea4c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x92ea3d
jmp 0x92e9ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x92ea4c
add edi, ecx
jmp 0x92e9ae
pop esi
mov edi, esi
mov ecx, 0x1834
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x92ea6a
cmp byte [edi], 0x13
jne 0x92ea6a
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 0x92ea6f
lea edi, [esi + 0x52a000]
mov eax, dword [edi]
or eax, eax
je 0x92eade
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x536164]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5361bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x92ea9c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5361c4]
or eax, eax
je 0x92ead8
mov dword [ebx], eax
add ebx, 4
jmp 0x92eab9
call dword [esi + 0x5361c0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x92eb0f
cmp al, 0xef
ja 0x92eb02
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x92eae4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x92eaf1
mov ebp, dword [esi + 0x5361c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
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 0x92eb43
sub esp, 0xffffff80
jmp 0x40ef9c
Function at 0xeb4058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00eb41a8
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 0xeb407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xeb406a
add dl, dl
jne 0xeb4089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xeb40dc
xor eax, eax
add dl, dl
jne 0xeb4096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xeb417d
add dl, dl
jne 0xeb40a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xeb40b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xeb40bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xeb40c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xeb40d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xeb4075
mov eax, 1
add dl, dl
jne 0xeb40ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xeb40f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xeb40e1
sub eax, ebx
mov ebx, 1
jne 0xeb4128
mov ecx, 1
add dl, dl
jne 0xeb410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xeb4119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xeb4105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xeb4075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xeb413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xeb414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xeb4136
cmp eax, 0x7d00
jae 0xeb416d
cmp eax, 0x500
jb 0xeb4168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xeb4075
cmp eax, 0x7f
ja 0xeb4170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xeb4075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xeb419e
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 0xeb4075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x100443e2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x101d5abc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], eax
test edi, edi
je 0x100444a7
lea eax, [ebp - 0x28]
xor esi, esi
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x100444a7
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
push 3
pop edx
mov dword [ebx], eax
mov dword [ecx], edx
cmp dword [ebp - 0xc], esi
je 0x1004443a
push 8
pop esi
jmp 0x100444a3
cmp eax, dword [ebp + 0xc]
jbe 0x10044446
mov esi, 0xea
jmp 0x100444a3
push esi
push 0x8100080
push edx
push esi
push 1
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1004446d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100444a3
push esi
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10044490
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1004449c
mov eax, dword [ebx]
cmp eax, dword [ebp - 0x2c]
je 0x1004449c
mov esi, 0x3e3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x100444aa
push 2
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101885f0
leave
ret 0xc
Function at 0x10047679
Capabilities:
Check if file exists

Disassembly:
push 0x218
mov eax, 0x10189c07
call fcn.10188e66
mov eax, dword [ebp + 8]
xor edi, edi
push ecx
push ecx
push ecx
mov esi, 0x104
mov dword [ebp - 0x224], eax
mov edx, esi
mov dword [eax], edi
lea ecx, [ebp - 0x218]
mov dword [eax + 4], edi
call fcn.10045157
push 0x1001d360
mov edx, esi
lea ecx, [ebp - 0x218]
call fcn.10045073
lea eax, [ebp - 0x218]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
setne byte [ebp - 0x219]
test esi, esi
jne 0x10047702
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10047744
mov ecx, dword [ebp + 4]
mov edx, 0xc9
push 0x1001d1ac
call fcn.10046629
mov edi, eax
jmp 0x10047744
lea edx, [ebp - 0x220]
mov dword [ebp - 0x220], edi
mov ecx, esi
call fcn.1004754b
mov ebx, eax
test ebx, ebx
jns 0x10047732
mov ecx, dword [ebp + 4]
mov edx, 0xcf
push ebx
push 0x1001d1ac
call fcn.1004660a
mov edi, ebx
jmp 0x10047744
mov ecx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x220]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
cmp byte [ebp - 0x219], 0
je 0x1004775a
push esi
mov dword [ebp - 4], 8
call fcn.10046713
mov eax, edi
call fcn.10188e03
ret 8

Function at 0x1004a3c9
Capabilities:
Link many functions at runtime

Disassembly:
push 0xc
mov eax, 0x10189f9b
call fcn.10188e2d
mov esi, ecx
mov dword [ebp - 0x14], esi
push 1
lea ecx, [esi + 0x18]
push 0x1001d3f0
call fcn.10046bfe
xor edi, edi
push 0x1001d40c
mov dword [ebp - 4], edi
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001d424
push dword [esi + 0x1c]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001d43c
push dword [esi + 0x1c]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001d454
push dword [esi + 0x1c]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001d470
push dword [esi + 0x1c]
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001d48c
push dword [esi + 0x1c]
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x14], eax
cmp dword [esi], edi
je 0x1004a477
cmp dword [esi + 4], edi
je 0x1004a477
cmp dword [esi + 8], edi
je 0x1004a477
cmp dword [esi + 0xc], edi
je 0x1004a477
cmp dword [esi + 0x10], edi
je 0x1004a477
test eax, eax
je 0x1004a477
mov eax, esi
call fcn.10188de9
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1004a48c
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x1004a4b2
test byte [eax + 0x44], 1
je 0x1004a4b2
push esi
push dword [eax + 0x3c]
mov edx, 0x1001db38
push dword [eax + 0x38]
push 0xa
pop ecx
call fcn.1004a069
push esi
lea ecx, [ebp - 0x10]
call fcn.10044b9d
push 0x101c213c
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3