joyce8/EMBER2024-capa huggingface dataset:
Function at 0x482d50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d0c6
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
test edx, edx
jne 0x482d8c
xor al, al
jmp 0x482f61
xor eax, eax
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov eax, edx
mov dword [ebp - 0x21c], 7
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x482db0
sub eax, esi
lea ecx, [ebp - 0x230]
sar eax, 1
push eax
push edx
call fcn.00408740
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
mov edx, dword [ebp - 0x230]
lea edi, [ebp - 0x230]
mov eax, dword [ebp - 0x220]
cmovae ecx, edx
push fcn.0040d270
cmovae edi, edx
mov dword [ebp - 4], 0
push edi
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x230]
cmovae ecx, edx
lea eax, [ebp - 0x258]
push ecx
push eax
call fcn.0040d1d0
add esp, 0x14
mov dword [ebp - 0x254], 0
lea eax, [ebp - 0x254]
push eax
push 0x20019
push 0
push str.SoftwareAdobeAcrobatExe
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x482f52
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.005290f0
add esp, 0xc
mov dword [ebp - 0x234], 0x206
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x250]
push eax
push 0
push 0
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x254]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x482f52
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x24c]
call fcn.0040d7b0
cmp dword [ebp - 0x238], 8
lea ecx, [ebp - 0x24c]
mov edx, dword [ebp - 0x24c]
lea edi, [ebp - 0x24c]
mov eax, dword [ebp - 0x23c]
cmovae ecx, edx
push fcn.0040d270
cmovae edi, edx
mov byte [ebp - 4], 1
push edi
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x24c]
cmovae ecx, edx
lea eax, [ebp - 0x258]
push ecx
push eax
call fcn.0040d1d0
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae ecx, dword [ebp - 0x230]
lea eax, [ebp - 0x24c]
cmp dword [ebp - 0x238], 8
push ecx
cmovae eax, dword [ebp - 0x24c]
push esi
push dword [ebp - 0x23c]
push eax
call fcn.0040f0b0
add esp, 0x28
lea ecx, [ebp - 0x24c]
cmp eax, 0xffffffff
setne bl
call fcn.00408e50
jmp 0x482f54
xor bl, bl
lea ecx, [ebp - 0x230]
call fcn.00408e50
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040154f
mov esp, ebp
pop ebp
ret
Function at 0x483940
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdfUserChoice
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48398f
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdfUserChoice
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4839c9
push str.Application
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040154f
mov esp, ebp
pop ebp
ret
Function at 0x484820
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d25b
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x440], ax
lea eax, [ebp - 0x440]
push eax
push 1
push 0
push str.4021007
call fcn.0040c000
add esp, 0x10
movzx eax, ax
cmp word [ebp - 0x440], 0
je 0x48489a
lea eax, [ebp - 0x440]
push eax
push 0
push 0
push str.4021007
call fcn.0040c000
add esp, 0x10
movzx eax, ax
test ax, ax
jne 0x4848a6
xor al, al
jmp 0x484a5c
mov byte [ebp - 0x43f], 0
test ebx, ebx
je 0x484a56
cmp ebx, 0xffff
je 0x484a56
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x484a56
cmp dword [0x5cb4c4], 0
je 0x484a56
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x43c], 0
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x484a56
mov eax, dword [ebp - 0x43c]
test eax, eax
je 0x484a56
cmp eax, dword [0x5cb4c4]
jne 0x484a56
xor esi, esi
nop dword [eax]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005290f0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
jle 0x484a36
cmp eax, 0x103
jae 0x484a36
push dword [esi + 0x5c721c]
lea eax, [ebp - 0x218]
push eax
call fcn.0040b363
add esp, 8
test eax, eax
jne 0x484a36
push 0x208
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.005290f0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
test edi, edi
jle 0x4849ca
cmp edi, 0x103
jae 0x4849c8
push dword [esi + 0x5c7218]
lea eax, [ebp - 0x420]
push eax
call fcn.0040b363
add esp, 8
test eax, eax
je 0x4849d8
test edi, edi
jne 0x484a36
mov eax, dword [esi + 0x5c7218]
cmp word [eax], 0
jne 0x484a36
push dword [ebp - 0x43c]
lea eax, [ebp - 0x438]
push eax
call fcn.00495e80
add esp, 8
cmp dword [ebp - 0x428], 0
mov dword [ebp - 4], 0
je 0x484a24
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
push dword [esi + 0x5c7220]
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.0040b363
add esp, 8
test eax, eax
je 0x484a44
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 0xffffffff
call fcn.00408e50
add esi, 0xc
cmp esi, 0xc
jb 0x484920
jmp 0x484a56
lea ecx, [ebp - 0x438]
mov byte [ebp - 0x43f], 1
call fcn.00408e50
mov al, byte [ebp - 0x43f]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040154f
mov esp, ebp
pop ebp
ret
Function at 0x4862f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d3c3
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5c7cec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], edi
mov dword [edi + 0x24], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x2c], 0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x24]
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x14], eax
mov al, byte [ebp + 0x28]
mov byte [ebp - 4], 1
mov dword [edi + 0xc], ebx
mov dword [edi + 0x18], edx
mov dword [edi + 0x1c], esi
mov byte [edi + 0x20], al
mov dword [edi + 0x30], 0
test al, al
jne 0x4863d1
xor ecx, ecx
test esi, esi
je 0x48638f
add edx, 0xc
cmp dword [edx], ecx
cmova ecx, dword [edx]
lea edx, [edx + 0x10]
sub esi, 1
jne 0x486382
mov eax, 0x100000
cmp ecx, eax
cmova ecx, eax
mov dword [edi + 0x28], ecx
lea eax, [ecx + 0xa]
push eax
call fcn.0042c075
mov esi, eax
add esp, 4
mov eax, dword [edi + 0x24]
cmp eax, esi
je 0x4863bd
push eax
call fcn.0041e6ef
add esp, 4
mov dword [edi + 0x24], esi
push 0
call fcn.0041e6ef
add esp, 4
cmp dword [edi + 0x24], 0
je 0x486486
xor ecx, ecx
mov dword [ebp - 0x10], ebx
mov eax, ebx
mov edx, 0x40
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0042c075
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x486422
push 0x4866b0
push 0x486290
push dword [ebp + 0x14]
mov dword [eax], ebx
lea ebx, [eax + 4]
push 0x40
push ebx
call fcn.00526e03
jmp 0x486424
xor ebx, ebx
mov eax, dword [edi + 0x2c]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x486465
test eax, eax
je 0x486460
push 0x4866b0
push dword [eax - 4]
lea esi, [eax - 4]
mov byte [ebp - 4], 3
push 0x40
push eax
call fcn.00422fee
mov eax, dword [esi]
shl eax, 6
add eax, 4
push eax
push esi
call fcn.00526edc
add esp, 8
mov byte [ebp - 4], 1
mov dword [edi + 0x2c], ebx
mov eax, ebx
test eax, eax
je 0x486486
mov ecx, edi
call fcn.00486900
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
lea ecx, [ebp - 0x1c]
call fcn.00486510
push 0x5b64ec
lea eax, [ebp - 0x1c]
push eax
call fcn.005281d5
int3
Function at 0x486c70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 4], 0
jg 0x486cb8
jl 0x486c9c
mov edx, dword [ebp - 0x14]
cmp dword [edx], 0x7fffffff
ja 0x486cb8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 4], 0xffffffff
jg 0x486cbd
jl 0x486cb8
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0x80000001
jae 0x486cbd
jmp 0x486d5c
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 8]
test eax, eax
je 0x486cd9
mov dword [ebp - 0x1c], 0
jmp 0x486ce0
mov dword [ebp - 0x1c], 2
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x486d5c
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0xc]
jae 0x486d5c
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0x24], ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp + 0x14]
push eax
call fcn.00485760
add esp, 8
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x486d4f
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jae 0x486d51
jmp 0x486d5c
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
jmp 0x486cff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040154f
mov esp, ebp
pop ebp
ret
Function at 0x4873d0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x19], 0
jne 0x487420
cmp dword [edi + 0x1c], 0xffffffff
jne 0x487420
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x4873fe
mov eax, dword [edi]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [edi + 0x1c], eax
sete al
mov byte [edi + 0x19], al
mov ecx, dword [edi + 0x1c]
cmp ecx, 0xffffffff
je 0x4874fd
cmp byte [esi], 0
jne 0x4874fd
mov eax, dword [esi + 4]
test eax, eax
jne 0x48745a
push eax
push eax
push eax
movzx eax, byte [ebp + 0x10]
shl eax, 0x18
add eax, 2
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
test eax, eax
je 0x48747f
cmp dword [esi + 8], 0
jne 0x487501
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x40], edi
mov dword [esi + 8], edi
test edi, edi
jne 0x487484
mov byte [esi], 1
jmp 0x4874fd
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
lea eax, [ebp - 0x3c]
push 0x1c
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x4874e9
mov edi, dword [ebp - 0x30]
lea eax, [ebp - 0x20]
add edi, dword [ebp - 0x38]
push 0x1c
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x38]
jne 0x4874d9
nop dword [eax + eax]
add edi, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push 0x1c
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x38]
je 0x4874c0
sub edi, dword [ebp - 0x40]
je 0x4874e9
mov eax, dword [esi + 8]
dec eax
add eax, edi
mov dword [esi + 0xc], eax
jmp 0x4874fc
push dword [esi + 8]
mov byte [esi], 1
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 8], 0
pop ebx
cmp dword [esi + 8], 0
mov ecx, dword [ebp - 4]
setne al
pop edi
xor ecx, ebp
pop esi
call fcn.0040154f
mov esp, ebp
pop ebp
ret
Function at 0x488280
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x148], ecx
lea ecx, [ebp - 0x144]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x48831d
push ebx
lea eax, [ebp - 0x140]
mov dword [ebp - 0x140], 0x136
push eax
lea eax, [ebp - 0x13c]
push eax
push 0
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x4882ed
xor bl, bl
jmp 0x48830c
push dword [ebp - 0x148]
lea eax, [ebp - 0x13c]
mov ecx, esi
push eax
push 0
push edi
mov bl, 1
call dword [0x5677a4]
call esi
add esp, 0x10
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
pop ebx
jne 0x488335
push dword [ebp - 0x148]
mov ecx, esi
push 0
push 0
push edi
call dword [0x5677a4]
call esi
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040154f
mov esp, ebp
pop ebp
ret

Function at 0x4887a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4887f9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4887f9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4887ea
cmp esi, edx
jae 0x4887f9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4887d8
cmp esi, edx
jae 0x4887f9
cmp word [esi], 0
je 0x4887f9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4888f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d597
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x5c7cec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5cbd20]
test eax, eax
jne 0x488a11
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
test esi, esi
je 0x4889f7
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
push 0x5cd774
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041e02e
mov edi, eax
add esp, 8
test edi, edi
je 0x4889f7
lea ecx, [esi*2 + 2]
push ecx
push 0
push edi
call fcn.005290f0
add esp, 0xc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4889ee
cmp eax, esi
ja 0x4889ee
push edi
lea ecx, [ebp - 0x28]
call fcn.0040d7b0
mov ecx, dword [0x5cbd20]
mov dword [ebp - 4], 0
test ecx, ecx
jne 0x4889ce
push 0x18
call fcn.00406909
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4889c5
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.00409a20
mov dword [0x5cbd20], eax
jmp 0x4889e6
xor eax, eax
mov dword [0x5cbd20], eax
jmp 0x4889e6
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x4889e6
cmp dword [ebp - 0x14], 8
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00408740
lea ecx, [ebp - 0x28]
call fcn.00408e50
push edi
call fcn.0041e6ef
add esp, 4
mov eax, dword [0x5cbd20]
test eax, eax
jne 0x488a11
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [eax + 0x14], 8
jb 0x488a19
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x488a30
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d5d8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x20], 0
push eax
call fcn.004cc770
add esp, 0x10
cmp dword [ebp - 0x1c], 0x14
mov dword [ebp - 4], 0
jg 0x488aa2
jne 0x488c27
cmp dword [ebp - 0x20], 6
jl 0x488c27
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x488c27
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x488c27
push 6
xor eax, eax
mov dword [ebp - 0x28], 0
push str._pass
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
call fcn.00408740
mov ecx, ebx
mov byte [ebp - 4], 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x488b02
mov eax, dword [ebp - 0x24]
sub ecx, edx
mov edx, dword [ebp - 0x28]
sub eax, edx
sar ecx, 1
cmp ecx, eax
ja 0x488b47
cmp dword [ebp - 0x24], 8
lea esi, [ebp - 0x38]
lea eax, [ecx + ecx]
cmovae esi, dword [ebp - 0x38]
lea edi, [edx + ecx]
push eax
push ebx
mov dword [ebp - 0x28], edi
lea eax, [esi + edx*2]
push eax
call fcn.00528b70
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x488b59
push ecx
push ebx
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x38]
call fcn.0040cdf0
push 0x3c
lea eax, [ebp - 0x8c]
push 0
push eax
call fcn.005290f0
add esp, 0xc
mov dword [ebp - 0x8c], 0x3c
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
mov dword [ebp - 0x88], 0
cmovae eax, dword [ebp - 0x38]
cmp dword [ebp - 0x3c], 8
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x488c1f
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x74], 0
push eax
mov dword [ebp - 0x70], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne bl
test eax, eax
je 0x488c15
push 0x20006
push str.SoftwareAdobeAcrobat_ReaderDCAVGeneral
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
push 0x80000001
movq qword [ebp - 0x18], xmm0
call fcn.0040b870
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
je 0x488c0d
push 1
push str.bWasUserPassThroughed
lea ecx, [ebp - 0x18]
call fcn.0046c8a0
lea ecx, [ebp - 0x18]
call fcn.0040b8f0
lea ecx, [ebp - 0x38]
call fcn.00408e50
jmp 0x488c29
lea ecx, [ebp - 0x38]
call fcn.00408e50
xor bl, bl
lea ecx, [ebp - 0x50]
call fcn.00408e50
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040154f
mov esp, ebp
pop ebp
ret
Function at 0x48cf30
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d93f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5c7cec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x10], 0
je 0x48cf85
mov dword [esi], 0x570960
mov dword [esi + 0x50], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
push 0
lea edi, [esi + 4]
mov ecx, esi
push edi
call fcn.0048cd60
mov eax, dword [esi]
push 8
mov dword [ebp - 4], 1
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], edi
lea eax, [ecx - 0x50]
mov dword [ecx + esi - 4], eax
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00406909
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x48cfe6
xorps xmm0, xmm0
movq qword [ebx], xmm0
push 1
mov byte [ebp - 4], 2
call fcn.004656ca
add esp, 4
mov dword [ebx + 4], eax
jmp 0x48cfe8
xor ebx, ebx
lea eax, [edi + 4]
mov dword [edi + 0x34], ebx
mov dword [edi + 0xc], eax
lea ecx, [edi + 8]
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
not ecx
mov dword [edi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
and ecx, 1
mov dword [edi + 0x38], 0
shl ecx, 2
mov eax, ebx
mov edx, ecx
or edx, 8
and al, 8
cmove edx, ecx
mov eax, edx
or eax, 0x10
and bl, 4
cmove eax, edx
mov dword [edi + 0x3c], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x48d350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d9a0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi], 0
jne 0x48d454
lea esi, [edi + 8]
push 0x5709a4
push esi
call fcn.00473f90
add esp, 8
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.0048e6d0
push 0
push 0
call fcn.004148e0
mov eax, dword [0x5ccd5c]
add esp, 8
test eax, eax
je 0x48d44c
cmp eax, 2
je 0x48d44c
cmp dword [0x5ccd84], 0
jne 0x48d3dc
push 0xffffffffffffffff
push dword [0x5ccd7c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x48d3e7
mov ecx, dword [0x5ccd78]
call fcn.00414c70
call fcn.0048de60
test al, al
je 0x48d423
push 2
push 0
push 0
push dword [0x5ccd64]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x14]
push 0
push ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push dword [0x5ccd64]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x5ccd84], 0
mov dword [ebp - 4], 0
jne 0x48d441
push dword [0x5ccd7c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x48d44c
mov ecx, dword [0x5ccd78]
call fcn.00414cf0
lea ecx, [ebp - 0x2c]
call fcn.0040ad30
push dword [edi + 0xac]
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [edi + 8]
call fcn.0048d740
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040154f
mov esp, ebp
pop ebp
ret