joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46cd80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c6c0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5edd38]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.00406a5e
mov edi, eax
add esp, 4
test edi, edi
je 0x46ce32
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0046ce4a
mov dword [edi + 4], eax
add esp, 4
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4711c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56fd39
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x1c], esi
mov ecx, esi
mov dword [ebp - 0x18], 0
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
push 0x583ab4
mov dword [ebp - 4], 0
mov word [esi], ax
call fcn.00408f30
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x58ef6c
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x471276
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x471276
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471255
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00408f30
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
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.00401682
mov esp, ebp
pop ebp
ret
Function at 0x4739d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, edx
push esi
push edi
mov esi, ecx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4739e0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 8
Function at 0x4752d0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573660
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
push ebx
push esi
push edi
mov eax, dword [0x5edd38]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], 0
mov dword [ebx], 0x592e40
test eax, eax
je 0x475432
push 0
push 1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push 0x1388
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x475350
push 0
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
cmp esi, eax
je 0x4753f6
mov edi, dword [esi + 8]
mov dword [ebp - 0x14], edi
cmp dword [edi + 4], 0
je 0x4753e0
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
mov ebx, dword [ebp - 0x10]
test bl, 1
je 0x475395
and ebx, 0xfffffffe
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0x10], ebx
call fcn.004965b0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, 2
je 0x4753b3
and ebx, 0xfffffffd
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x10], ebx
call fcn.004965b0
push dword [edi]
mov ecx, dword [edi + 4]
call fcn.004756a0
mov ebx, dword [edi + 4]
mov eax, dword [ebx + 0x10]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x5817c0]
lea ecx, [ebx + 0x10]
call edi
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov dword [edi + 4], 0
push 8
push edi
call fcn.00409f25
mov esi, dword [esi]
add esp, 8
cmp esi, dword [ebx + 0x2c]
jne 0x475366
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebx + 0x28]
test edi, edi
je 0x475419
mov eax, dword [edi]
push 1
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x5817c0]
mov ecx, edi
call esi
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 4], 0
je 0x475432
lea eax, [ebx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [ebx + 0x58]
cmp ecx, 8
jb 0x47546f
mov eax, dword [ebx + 0x44]
lea ecx, [ecx*2 + 2]
mov dword [ebp - 4], 0
cmp ecx, 0x1000
jb 0x475465
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4754d2
mov eax, edx
push ecx
push eax
call fcn.00409f25
add esp, 8
xor eax, eax
mov dword [ebx + 0x54], 0
lea ecx, [ebx + 0x34]
mov dword [ebx + 0x58], 7
mov word [ebx + 0x44], ax
call fcn.00476590
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x4754b3
nop dword [eax]
mov esi, dword [eax]
push 0xc
push eax
call fcn.00409f25
add esp, 8
mov eax, esi
test esi, esi
jne 0x4754a0
push 0xc
push dword [ebx + 0x2c]
call fcn.00409f25
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0054223b
int3
Function at 0x475760
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5736a0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], 0
call fcn.0044dd40
test al, al
je 0x4757d6
push 0x1388
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4757c2
cmp dword [ebp - 0x14], 0x103
jne 0x4757d6
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esi + 0x24]
test edi, edi
je 0x4757f8
mov ecx, edi
call fcn.00475920
push 0x20
push edi
call fcn.00409f25
add esp, 8
mov dword [esi + 0x24], 0
xor edi, edi
mov eax, dword [esi + 0x30]
mov dword [ebp - 4], 0
test eax, eax
je 0x475819
push eax
call fcn.00409f38
mov dword [esi + 0x30], 0
add esp, 4
mov edi, dword [esi + 0x24]
test edi, edi
je 0x47582f
mov ecx, edi
call fcn.00475920
push 0x20
push edi
call fcn.00409f25
add esp, 8
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], 1
test eax, eax
je 0x475860
cmp eax, 0xffffffff
je 0x475860
call fcn.00412510
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x475859
call fcn.004014a0
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x18]
mov dword [ebp - 4], 2
test eax, eax
je 0x475891
cmp eax, 0xffffffff
je 0x475891
call fcn.00412510
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x47588a
call fcn.004014a0
mov dword [esi + 0x18], 0
mov eax, dword [esi + 0x14]
mov dword [ebp - 4], 3
test eax, eax
je 0x4758c2
cmp eax, 0xffffffff
je 0x4758c2
call fcn.00412510
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4758bb
call fcn.004014a0
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 4], 4
test eax, eax
je 0x4758f3
cmp eax, 0xffffffff
je 0x4758f3
call fcn.00412510
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4758ec
call fcn.004014a0
mov dword [esi + 0x10], 0
mov ecx, esi
call fcn.0044dab0
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.00401682
mov esp, ebp
pop ebp
ret
Function at 0x476cf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5737c6
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5edd38]
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 - 0x14], edi
lea esi, [edi + 0x30]
mov byte [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov byte [edi + 0x2c], 0
mov dword [esi], 0
mov dword [esi + 4], 0
push 0x18
mov dword [ebp - 0x10], esi
lfence
call fcn.00406a5e
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x50], 0
lea esi, [edi + 0x54]
mov dword [ebp - 4], 0
mov dword [esi], 0
mov dword [esi + 4], 0
push 0x18
mov dword [ebp - 0x10], esi
lfence
call fcn.00406a5e
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea ecx, [edi + 0x38]
mov byte [ebp - 4], 1
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [edi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x479100
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5739ac
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5edd38]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov eax, dword [ebp + 0xc]
lea esi, [edi + 0x38]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x18], edi
mov dword [esi], 0
mov dword [esi + 4], 0
push 0x18
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
lfence
call fcn.00406a5e
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor ecx, ecx
mov dword [ebp - 4], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 7
mov word [edi + 0x40], cx
mov dword [edi + 0x68], ecx
mov dword [edi + 0x6c], 7
mov word [edi + 0x58], cx
xor eax, eax
mov dword [edi + 0x80], ecx
mov dword [edi + 0x84], 7
mov word [edi + 0x70], ax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
lea eax, [edi + 0x14]
push eax
mov byte [ebp - 4], 3
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], ecx
mov dword [edi], ecx
mov byte [edi + 0xc], cl
mov byte [edi + 0x88], cl
mov dword [edi + 0x8c], ecx
mov dword [edi + 0x90], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x479209
mov edx, ecx
lea esi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4791f0
sub edx, esi
sar edx, 1
push edx
push ecx
lea ecx, [edi + 0x40]
call fcn.00408f30
test ebx, ebx
je 0x47922b
mov edx, ebx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x479212
sub edx, esi
lea ecx, [edi + 0x58]
sar edx, 1
push edx
push ebx
call fcn.00408f30
call fcn.00478d60
cmp eax, 0x68
jl 0x47926a
push 0x583ba0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x47926a
push str.GetNamedPipeServerProcessId
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNamedPipeClientProcessId
push esi
mov dword [edi + 0x8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x90], eax
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 0xc
Function at 0x479d20
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x14], eax
xor esi, esi
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x479e5f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push 0x190000
push 3
push esi
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x479dbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x479e4a
push dword [ebp + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x479e4a
push esi
push 0x190000
push 3
push esi
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x479e4a
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
jne 0x479e3e
cmp dword [ebp + 0x24], esi
je 0x479e0a
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx + 0x8c]
test ebx, ebx
je 0x479e0a
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push edi
mov ecx, ebx
call dword [0x5817c0]
call ebx
test eax, eax
je 0x479e0a
mov eax, dword [ebp - 8]
test eax, eax
je 0x479e0a
cmp eax, dword [ebp + 0x24]
je 0x479e0a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 8], eax
jne 0x479e3e
push 0
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x479e3e
push 0
push dword [ebp - 0x10]
push dword [ebp + 0x18]
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
mov esi, eax
cmp edi, 0xffffffff
je 0x479e4a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401682
mov esp, ebp
pop ebp
ret 0x20
Function at 0x47a280
Capabilities:
Check if file exists
Check mutex on windows
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0x5f42f8
push 0x208
call fcn.0041bedf
mov esi, eax
add esp, 8
test esi, esi
je 0x47a451
push edi
push 0x208
push 0
push esi
call fcn.0053f340
push 0x20a
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.0053f340
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0053f340
add esp, 0x24
mov dword [ebp - 0x420], 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
push 0x105
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x420]
push eax
push 0x105
lea eax, [ebp - 0x41c]
push eax
push 0x583d4c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x47a382
mov edi, dword [ebp - 0x420]
xor ecx, ecx
nop dword [eax]
cmp ecx, 0x103
je 0x47a37c
mov eax, 0xcccccccd
mul edi
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub edi, eax
mov ax, word [edi*2 + str.0123456789]
mov edi, edx
mov word [esi + ecx*2], ax
inc ecx
test edi, edi
jne 0x47a350
xor eax, eax
mov word [esi + ecx*2], ax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x47a3c2
push str.GlobalARM_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x47a42e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.thsnYaVieBoda
push 0x104
push esi
lfence
call fcn.0042f0d0
mov edi, str..pipe32B6B37A_4A7D_4e00_95F2_6F0BF3DE3E00
mov edx, 0x104
mov ecx, ebx
sub edi, ebx
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x47a3ee
movzx eax, word [edi + ecx]
test ax, ax
je 0x47a3ee
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x47a3d0
test edx, edx
lea eax, [ecx - 2]
pop edi
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
je 0x47a451
push esi
push 0x104
push ebx
call fcn.0042f0d0
test eax, eax
js 0x47a451
push esi
lfence
call fcn.0041c2b1
add esp, 4
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x47a3af
cmp dword [ebp + 0xc], 0
jne 0x47a3af
push str.TsnIorcAeBoda
jmp 0x47a3b4
mov ecx, dword [ebp - 4]
mov eax, 8
pop esi
xor ecx, ebp
pop ebx
call fcn.00401682
mov esp, ebp
pop ebp
ret
Function at 0x47a470
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push esi
push 0x190000
push 3
push esi
push esi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x47a4c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0xd
pop esi
cmove eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 3
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x47a4f8
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push 4
lea eax, [ebp + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x47a50f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, 0xd
test esi, esi
cmove esi, eax
jmp 0x47a5a0
cmp dword [ebp + 0x10], esi
je 0x47a5a0
push edi
mov dword [ebp - 0xc], esi
xor edi, edi
nop
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47a568
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, 0xd
test esi, esi
cmove esi, eax
cmp esi, 0xe8
jne 0x47a573
push 0xa
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0xa
jl 0x47a520
jmp 0x47a573
cmp dword [ebp - 8], 4
je 0x47a577
mov esi, 0xd
test esi, esi
jne 0x47a59f
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp - 0xc]
inc ecx
cmp eax, ecx
mov dword [ebp - 8], eax
push edx
lea eax, [ebp - 0x10]
mov esi, 0xd
push eax
push 4
lea eax, [ebp - 8]
cmove esi, edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401682
mov esp, ebp
pop ebp
ret
Function at 0x481d70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574366
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x430], 0
push 0x404
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.0053f340
add esp, 0xc
mov dword [ebp - 0x420], 0
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call fcn.00485230
mov esi, eax
mov dword [ebp - 0x428], esi
test esi, esi
jne 0x481e26
push 2
push eax
push edi
call fcn.00485230
mov esi, eax
mov dword [ebp - 0x428], eax
test esi, esi
jne 0x481e26
call fcn.0047f260
mov edi, eax
jmp 0x481f14
push dword [ebp - 0x424]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x481e44
call fcn.0047f260
jmp 0x481f07
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x481e62
call fcn.0047f260
jmp 0x481f07
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x42c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x481e83
mov edi, 0x8007000e
jmp 0x481f09
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x420]
push eax
lfence
call fcn.0047f070
jmp 0x481eb0
cmp dword [ebp - 0x420], 0
mov dword [ebp - 4], 1
jne 0x481ec7
mov edi, 0x8007000e
jmp 0x481f09
push edi
lfence
push dword [ebp - 0x420]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x481eea
call fcn.0047f260
jmp 0x481f07
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x420]
call fcn.00481bc0
mov edi, eax
test esi, esi
je 0x481f14
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x481f2d
lea ecx, [ebp - 0x420]
call fcn.00480480
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret 0x10
Function at 0x48a7e0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x20019
push 0
push 0x588090
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48a82f
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 0x48a869
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.00401682
mov esp, ebp
pop ebp
ret