joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cd22
Capabilities:
Connect socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, dword [ebp + 8]
push esi
push 1
pop esi
lea eax, [ebp - 4]
push eax
push 0x8004667e
push ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x41cd55
or eax, eax
jmp 0x41ce25
push edi
mov edi, dword [sym.imp.WSOCK32.dll_connect]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call edi
cmp eax, 0xffffffff
jne 0x41cd7f
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x41cd7f
or esi, 0xffffffff
jmp 0x41ce0e
mov eax, dword [ebp + 0x1c]
mov ecx, 0x3e8
cdq
mov ebx, ecx
idiv ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
cdq
idiv ecx
imul edx, edx, 0x3e8
and dword [ebp + 0x1c], 0
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp + 0x14]
xor eax, eax
cmp dword [ecx], eax
jne 0x41cdff
cmp dword [0x567764], eax
jne 0x41ce0b
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x110], ebx
push ecx
lea ecx, [ebp - 0x114]
push eax
push ecx
push eax
push esi
mov dword [ebp - 0x114], esi
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
je 0x41cdfa
test eax, eax
jne 0x41ce02
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ebp + 0x20]
jge 0x41cdf5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call edi
jmp 0x41cda5
push 0xfffffffffffffffe
pop esi
jmp 0x41ce02
or esi, 0xffffffff
jmp 0x41ce02
mov esi, dword [ebp - 8]
cmp dword [0x567764], 0
je 0x41ce0e
push 0xfffffffffffffffd
pop esi
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4212e8
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4936a4
call fcn.0046cdfc
push ecx
mov eax, dword [0x4b1dc8]
push esi
mov dword [ebp - 0x10], eax
movzx eax, word [0x56878c]
push dword [0x5689fc]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x10]
push dword [0x5689e4]
push str._sKuro_Firewall.exe__d__d_1
push eax
call fcn.0047e2fb
mov esi, dword [sym.imp.KERNEL32.dll_WinExec]
add esp, 0x14
push 5
push dword [ebp - 0x10]
call esi
push dword [0x5689fc]
lea eax, [ebp - 0x10]
push dword [0x5689e4]
push str._sKuro_Firewall.exe_6689__d_1
push eax
call fcn.0047e2fb
add esp, 0x10
push 5
push dword [ebp - 0x10]
call esi
push dword [0x5689fc]
lea eax, [ebp - 0x10]
push dword [0x5689e4]
push str._sKuro_Firewall.exe_6600__d_1
push eax
call fcn.0047e2fb
add esp, 0x10
push 5
push dword [ebp - 0x10]
call esi
push dword [0x5689fc]
lea eax, [ebp - 0x10]
push dword [0x5689e4]
push str._sKuro_Firewall.exe_6600__d_0
push eax
call fcn.0047e2fb
add esp, 0x10
push 5
push dword [ebp - 0x10]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00483fa8
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x423337
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x493aa0
call fcn.0046cdfc
xor eax, eax
push 1
push eax
push eax
push dword [ebp + 8]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00483fa8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x429ddb
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x494743
call fcn.0046cdfc
sub esp, 0x804
and dword [ebp - 0x10], 0
push dword [ecx]
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 3
push 0x800
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x810]
push eax
call fcn.00484016
mov dword [ebp - 0x10], 1
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00483fa8
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.00483fa8
and byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.00483fa8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x429e5e
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x494758
call fcn.0046cdfc
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 0x4001
push 2
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
mov ecx, edi
mov dword [ebp - 0x10], eax
call fcn.0047f757
push dword [esi]
mov esi, dword [ebp - 0x10]
push 0x4000
push esi
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x429ed8
mov eax, esi
cmp byte [eax], bl
je 0x429ed8
mov eax, dword [edi + 8]
push esi
push eax
mov ecx, edi
call fcn.0047f8a0
push esi
call fcn.0046d3d0
cmp byte [esi + eax + 1], bl
lea esi, [esi + eax + 1]
pop ecx
jne 0x429ebb
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, dword [edi + 8]
xor eax, eax
cmp edi, ebx
lea ecx, [ebp + 8]
setg al
or dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00483fa8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x42a29f
Capabilities:
Initialize winsock library
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
push ebx
push esi
push edi
xor edi, edi
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
push edi
push eax
call fcn.0046c780
add esp, 0xc
lea eax, [ebp - 0x2a4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
cmp eax, 0xffffffff
je 0x42a3d4
push dword [0x568ab0]
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov esi, eax
cmp esi, edi
je 0x42a3d4
push edi
push 2
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42a3d4
push 0x10
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.0046c780
movsx eax, word [esi + 0xa]
push eax
mov eax, dword [esi + 0xc]
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.0046c7e0
mov ax, word [esi + 8]
add esp, 0x18
mov word [ebp - 0x14], ax
mov ax, word [0x568ab8]
push eax
call dword [sym.imp.WSOCK32.dll_htons]
cmp word [ebp + 0xc], 1
mov word [ebp - 0x12], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
jne 0x42a371
lea eax, [ebp - 4]
push 2
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0046c7e0
add esp, 0xc
lea eax, [ebp - 0x14]
push 0x10
push eax
push edi
push 2
jmp 0x42a3a7
cmp word [ebp + 0xc], di
jne 0x42a3d4
lea eax, [ebp + 0x10]
push 1
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0046c7e0
lea eax, [ebp - 4]
push 2
push eax
lea eax, [ebp - 0x113]
push eax
call fcn.0046c7e0
add esp, 0x18
lea eax, [ebp - 0x14]
push 0x10
push eax
push edi
push 3
lea eax, [ebp - 0x114]
push eax
push ebx
call dword [sym.imp.WSOCK32.dll_sendto]
cmp eax, 0xffffffff
jne 0x42a3c3
push ebx
call dword [sym.imp.WSOCK32.dll_closesocket]
jmp 0x42a3d4
inc dword [0x568d28]
push ebx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov di, 1
call dword [sym.imp.WSOCK32.dll_WSACleanup]
mov ax, di
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42c9ca
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push esi
push edi
mov edi, 0x9c
lea eax, [ebp - 0x9c]
push edi
push 0
mov esi, ecx
push eax
call fcn.0046c780
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call edi
test eax, eax
jne 0x42ca1a
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call edi
mov eax, dword [ebp - 0x8c]
dec eax
je 0x42ca7c
dec eax
je 0x42ca30
push str.Unknown_OS
jmp 0x42cad1
cmp dword [ebp - 0x98], 4
ja 0x42ca43
push str.Microsoft_Windows_NT
jmp 0x42cad1
cmp dword [ebp - 0x98], 5
jne 0x42ca26
cmp dword [ebp - 0x94], 0
jne 0x42ca5c
push str.Microsoft_Windows_2000
jmp 0x42cad1
cmp dword [ebp - 0x94], 1
jne 0x42ca26
add esi, 0xe8
push str.Microsoft_Windows_XP
push esi
call fcn.0046d4a0
pop ecx
mov al, 1
pop ecx
jmp 0x42cae1
cmp dword [ebp - 0x98], 4
jne 0x42cadf
cmp dword [ebp - 0x94], 0
jne 0x42ca95
push str.Windows_95
jmp 0x42cad1
cmp dword [ebp - 0x94], 0xa
jne 0x42cac3
lea eax, [esi + 0xe8]
push str.Microsoft_Windows_98
push eax
call fcn.0046d4a0
cmp dword [esi + 0x1f8], 0
pop ecx
pop ecx
je 0x42cadf
mov ecx, esi
call fcn.0042cc2e
jmp 0x42cadf
cmp dword [ebp - 0x94], 0x5a
jne 0x42cadf
push str.Microsoft_Windows_Me
add esi, 0xe8
push esi
call fcn.0046d4a0
pop ecx
pop ecx
xor al, al
pop edi
pop esi
leave
ret
Function at 0x42f55a
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x42f56f
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
ret 4

Function at 0x42f572
Capabilities:
Send data
Send data on socket

Disassembly:
push 0
push dword [esp + 0xc]
call fcn.0046d3d0
pop ecx
push eax
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WSOCK32.dll_send]
ret 8
Function at 0x430f9b
Capabilities:
Read file on windows

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.00473e3c
sub eax, dword [esp + 0x18]
add esp, 0xc
neg eax
sbb eax, eax
ret

Function at 0x430fb8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xb]
push 1
push eax
push dword [ebp + 8]
call fcn.00473e3c
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov dl, byte [ecx + 1]
mov byte [ecx], dl
mov dl, byte [ebp + 0xb]
mov byte [ecx + 1], dl
pop ebp
ret
Function at 0x431ba1
Capabilities:
Delete file

Disassembly:
and dword [ecx + 0x26], 0
mov dword [ecx + 0x18], 3
add ecx, 0x14
push ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
ret

Function at 0x475ccb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4b35b0
cmp edx, dword [eax]
je 0x475ced
add eax, 8
inc ecx
cmp eax, 0x4b3640
jl 0x475cde
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4b35b0]
jne 0x475e1b
mov eax, dword [0x573190]
cmp eax, 1
je 0x475df5
test eax, eax
jne 0x475d1e
cmp dword [0x4b2bd4], 1
je 0x475df5
cmp edx, 0xfc
je 0x475e1b
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x475d55
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0046d4a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0046d3d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x475d98
lea eax, [ebp - 0x1a4]
push eax
call fcn.0046d3d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x49eb50
push edi
call fcn.0046e9c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0046d4a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0046d4b0
lea eax, [ebp - 0xa0]
push 0x49eb30
push eax
call fcn.0046d4b0
push dword [esi + 0x4b35b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0046d4b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00477e4f
add esp, 0x2c
pop edi
jmp 0x475e1b
lea eax, [ebp + 8]
lea esi, [esi + 0x4b35b4]
push 0
push eax
push dword [esi]
call fcn.0046d3d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x47d340
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0046e880
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x47d40b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x47d40b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x47d3be
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x47d3c9
or bh, 8
and edi, 0x8000000
je 0x47d3e4
mov eax, dword [0x57497c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x47d40b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47d7e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x47d80b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x47d82f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x47d84a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x4813e8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x481420
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048444f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00484427
jmp 0x48142c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x481430
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x572c80
mov ecx, edi
call fcn.00484131
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x481483
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x481496
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0048444f
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00484427
jmp 0x481496
mov ecx, esi
call fcn.004833dd
test eax, eax
je 0x481496
push edi
mov ecx, eax
call fcn.004813e8
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x482cb6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x482cf8
call fcn.0048c7de
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x482cf8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x482cef
xor eax, eax
jmp 0x482d00
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00482d06
pop edi
pop esi
pop ebx
ret 4
Function at 0x484f83
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x484fb3
push edi
call ebx
push eax
call fcn.004865de
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x484fdd
test byte [ebp - 4], 1
je 0x484fdd
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x484fdd
push edi
call ebx
push eax
call fcn.004865de
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x485083
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.00484ed0
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x48500f
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00484ed0
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x485025
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.00484ed0
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48504f
push 0
call ebx
push eax
call fcn.004865de
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x48506d
push eax
call ebx
push eax
call fcn.004865de
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x485081
push eax
call ebx
push eax
call fcn.004865de
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x4850aa
test byte [ebp - 4], 1
jne 0x4850aa
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4850aa
push edi
call ebx
push eax
call fcn.004865de
pop edi
pop ebx
leave
ret 8

Function at 0x485268
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x48528a
cmp dword [edi + 0x3c], 0
jne 0x48528a
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0048c7de
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004852b7
pop edi
pop esi
pop ebx
ret 8
Function at 0x4036d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x507178
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.00416040
xor edi, edi
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], edi
call fcn.0042ed10
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x4c], edi
mov dword [esi], 0x511f04
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4036e6
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x507178
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.00416040
xor edi, edi
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], edi
call fcn.0042ed10
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x4c], edi
mov dword [esi], 0x511f04
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x403fd0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push 0
push eax
push 0
push 2
push 0
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x403ff8
xor eax, eax
ret
mov edx, dword [esp + 0x10]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 1
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
ret

Function at 0x404030
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x507226
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push esi
push edi
push 0x57ce60
lea ecx, [esp + 0x10]
call fcn.004e0aab
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x14]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
push SysReAllocString
mov dword [esp + 0xbc], 0
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4040e5
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push str.Application
push ecx
mov dword [esp + 0x28], 0x80
call edi
test eax, eax
jne 0x4040e5
lea edx, [esp + 0x20]
lea ecx, [esp + 0xc]
push edx
call fcn.004e0bc6
mov eax, dword [esp + 0xc]
push str.PDFReader.exe
push eax
call fcn.004a1876
add esp, 8
test eax, eax
je 0x4040e5
mov ecx, dword [esp + 0xb0]
mov dword [ecx], 1
mov edx, dword [0x575f54]
mov dword [esp + 8], edx
lea eax, [esp + 0x18]
mov byte [esp + 0xa8], 1
push eax
push 3
push 0
push 0x543328
push SysReAllocString
call esi
test eax, eax
jne 0x404147
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push 0x57ce60
push ecx
mov dword [esp + 0x28], 0x80
call edi
test eax, eax
jne 0x404147
lea edx, [esp + 0x20]
lea ecx, [esp + 8]
push edx
call fcn.004e0bc6
mov eax, dword [esp + 8]
push 0x57ce60
push eax
call fcn.004a1876
add esp, 8
test eax, eax
jne 0x40416c
mov ecx, dword [esp + 0xb4]
mov dword [ecx], 1
jmp 0x40418f
mov edx, dword [esp + 8]
push str.FoxitReader.Document
push edx
call fcn.004a1876
add esp, 8
test eax, eax
je 0x40418f
mov eax, dword [esp + 0xb0]
mov dword [eax], 1
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
lea ecx, [esp + 8]
mov byte [esp + 0xa8], 0
call fcn.004e0a3d
lea ecx, [esp + 0xc]
mov dword [esp + 0xa8], 0xffffffff
call fcn.004e0a3d
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0xa4
ret 8