joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402748
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403778
test esi, esi
jne 0x40277e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403868
jmp 0x40279c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004025fc
mov edi, eax
test esi, esi
je 0x40279c
cmp dword [ebx], 0
je 0x40279c
dec esi
jmp 0x402785
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402b84
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x40e008], 0x8088405
inc edx
mov dword [ebx + 0x40e008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402f14
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40e010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402fac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402f8c
xor eax, eax
push ebp
push 0x402f85
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402fc8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f8c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40e010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40e010], ax
mov esp, ebp
pop ebp
ret

Function at 0x4035fc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40f034], 0
je 0x40365d
cmp word [0x40f208], 0xd7b2
jne 0x403625
cmp dword [0x40f210], 0
jbe 0x403625
mov eax, 0x40f204
call dword [0x40f220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40e05c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403684
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40e01c], 0
jne 0x403679
push 0
push 0x40e054
push 0x40e05c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403db8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403e1e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004038c8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c00
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403e08
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403e25
lea eax, [ebp - 0x10]
call fcn.00403778
ret
Function at 0x4045fc
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
xor ecx, ecx
mov dword [esp], ecx
mov ecx, edx
sub ecx, dword [eax + 0x34]
lea edx, [eax + 0x18]
movzx ebx, word [eax + 0x14]
add edx, ebx
movzx edi, word [eax + 6]
dec edi
test edi, edi
jl 0x404646
inc edi
mov ebp, ecx
mov eax, dword [edx + 0xc]
cmp ebp, eax
jb 0x404640
mov ebx, eax
add ebx, dword [edx + 0x10]
cmp ebp, ebx
jae 0x404640
cmp dword [edx + 0x10], 0
je 0x404640
add ecx, dword [edx + 0x14]
sub ecx, eax
mov dword [esp], ecx
jmp 0x404646
add edx, 0x28
dec edi
jne 0x40461e
mov eax, dword [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x408dd4
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x1000
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
ret
Function at 0x40a208
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
xor eax, eax
mov dword [0x40fa08], eax
xor eax, eax
mov dword [0x40f8cc], eax
xor esi, esi
mov eax, dword [0x40f9d4]
mov eax, dword [eax + 0x3c]
add eax, dword [0x40f9d4]
lea ebx, [eax + 0x18]
movzx edx, word [eax + 0x14]
add ebx, edx
movzx edi, word [eax + 6]
dec edi
test edi, edi
jl 0x40a25a
inc edi
mov edx, 0x200
mov eax, dword [ebx + 0x10]
call fcn.00404688
mov edx, dword [ebx + 0x14]
add edx, eax
cmp esi, edx
jae 0x40a254
mov esi, edx
add ebx, 0x28
dec edi
jne 0x40a23c
test esi, esi
jbe 0x40a27e
cmp esi, dword [0x40f8ac]
jae 0x40a27e
mov eax, dword [0x40f9d4]
add eax, esi
mov dword [0x40fa08], eax
mov eax, dword [0x40f8ac]
sub eax, esi
mov dword [0x40f8cc], eax
pop edi
pop esi
pop ebx
ret
Function at 0x45f970
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x45f9cc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45f9cc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45f9cc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x45f9cc
cmp dword [ecx + 0x74], 0xe
jbe 0x45f9cc
cmp dword [ecx + 0xe8], 0
je 0x45f9cc
push dword [ebp + 8]
call fcn.0045f770
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x4734f4
call fcn.0045f550
add esp, 8
cmp dword [ebp - 8], 0
jne 0x45fa01
push dword [ebp + 8]
call fcn.0045f740
mov esp, ebp
pop ebp
ret

Function at 0x460080
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x4600aa
mov eax, 2
pop ebp
ret
push esi
call sub.msvcrt.dll__errno
lea esi, [eax - 8]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4600cc
test eax, eax
je 0x4600cc
push 0x10
xor esi, esi
call dword [sym.imp.msvcrt.dll__amsg_exit]
add esp, 4
mov ecx, dword [esi + 0x70]
mov eax, ecx
and al, 2
movzx edx, al
mov eax, dword [ebp + 8]
neg edx
sbb edx, edx
inc eax
cmp eax, 3
ja case.default.0x4600e3
jmp dword [eax*4 + 0x460118]
or ecx, 2
lea eax, [edx + 2]
mov dword [esi + 0x70], ecx
pop esi
pop ebp
ret
and ecx, 0xfffffffd
mov dword [esi + 0x70], ecx
lea eax, [edx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.0045f3a0
or eax, 0xffffffff
pop esi
pop ebp
ret

Function at 0x4058b0
Capabilities:
Encode data using xor

Disassembly:
pushal
clc
dec esp
xor byte [eax], al
add byte [edi + edx*4], al
inc esi
pop esi
xchg esp, eax
inc eax
push eax
add byte [eax], cl
mov eax, 0x600439
or byte [eax + 0x60c439], bl
or byte [eax + 0x604439], bh
or byte [eax + 0x60043a], bl
or byte [eax + 0x608439], bh
or byte [eax + 0x60443a], bl
or cl, bl
cmp al, byte [eax + 0x5bd40800]
push cs
Function at 0x416e80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b371
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x5a8774]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x21c], 0
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x416ec9
mov ecx, dword [ebp + 0xc]
or ecx, 0x8000
mov dword [ebp + 0xc], ecx
xor edx, edx
mov word [ebp - 0x218], dx
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.0050c840
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x417010
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x234], eax
push 0x10d
lea eax, [ebp - 0x25c]
push eax
call fcn.00414ed0
add esp, 8
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 4], 0
push 0x581124
lea ecx, [ebp - 0x274]
call fcn.00407300
mov dword [ebp - 0x230], eax
mov edx, dword [ebp - 0x230]
mov dword [ebp - 0x224], edx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x244]
push eax
call fcn.00459a50
add esp, 4
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x228], ecx
mov byte [ebp - 4], 2
lea edx, [ebp - 0x234]
push edx
mov eax, dword [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x224]
push ecx
push str.file:_0__line:_1__LastError_2_n
mov ecx, dword [ebp - 0x228]
call fcn.0040cb80
mov ecx, eax
call fcn.00423db0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x244]
call fcn.0040b7c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x274]
call fcn.00407340
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
call fcn.00407340
mov ecx, dword [ebp + 8]
call fcn.0040b500
mov edx, dword [ebp - 0x21c]
or edx, 1
mov dword [ebp - 0x21c], edx
mov eax, dword [ebp + 8]
jmp 0x417031
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040b530
mov ecx, dword [ebp - 0x21c]
or ecx, 1
mov dword [ebp - 0x21c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050b792
mov esp, ebp
pop ebp
ret
Function at 0x417920
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b550
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x5a8774]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 4
lea ecx, [ebp - 0x14]
call fcn.004097b0
push 0x581240
mov eax, dword [ebp + 8]
push eax
call fcn.004303c0
add esp, 8
push eax
lea ecx, [ebp - 0x14]
call fcn.00406760
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00406820
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0xffffffff
jne 0x4179bf
mov dword [ebp - 0x278], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00422930
mov eax, dword [ebp - 0x278]
jmp 0x417abe
mov dword [ebp - 0x26c], 0
mov edx, dword [ebp - 0x268]
and edx, 0x10
jne 0x4179eb
mov eax, dword [ebp - 0x26c]
add eax, dword [ebp - 0x248]
mov dword [ebp - 0x26c], eax
jmp 0x417a74
push 0x581244
lea ecx, [ebp - 0x23c]
push ecx
call fcn.00433560
add esp, 8
movzx edx, al
test edx, edx
jne 0x417a74
push 0x581248
lea eax, [ebp - 0x23c]
push eax
call fcn.00433560
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x417a74
push 4
lea ecx, [ebp - 0x18]
call fcn.004097b0
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004303c0
add esp, 8
push eax
lea ecx, [ebp - 0x18]
call fcn.00406760
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00406820
push eax
call fcn.00417920
add esp, 4
add eax, dword [ebp - 0x26c]
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00422930
lea ecx, [ebp - 0x268]
push ecx
mov edx, dword [ebp - 0x270]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4179c9
mov eax, dword [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x26c]
mov dword [ebp - 0x274], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00422930
mov eax, dword [ebp - 0x274]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050b792
mov esp, ebp
pop ebp
ret

Function at 0x417ae0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push eax
call fcn.00433500
add esp, 4
lea ecx, [eax + eax + 2]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 1
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x417b27
mov dword [ebp - 4], 1
jmp 0x417b2e
mov dword [ebp - 4], 0
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x417b40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 4
lea eax, [ebp + 0x14]
push eax
push 4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x417b72
mov dword [ebp - 4], 1
jmp 0x417b79
mov dword [ebp - 4], 0
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x417e50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b5b8
mov eax, dword fs:[0]
push eax
sub esp, 0xe2c
mov eax, dword [0x5a8774]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe38], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0xe1c], 0
lea eax, [ebp + 8]
push eax
mov ecx, 0x5b5510
call fcn.0040b690
lea ecx, [ebp + 8]
call fcn.0040b760
push eax
call fcn.004306f0
add esp, 4
mov byte [ebp - 0xe15], al
movzx ecx, byte [ebp - 0xe15]
test ecx, ecx
jne 0x417ed1
mov dword [ebp - 0xe1c], 1
jmp 0x418012
push 0xa
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xe20], eax
mov edx, dword [ebp - 0xe20]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xe28], eax
mov eax, dword [ebp - 0xe28]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xe2c], eax
mov ecx, dword [ebp - 0xe20]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xe24], eax
lea edx, [ebp - 0xe14]
push edx
mov eax, dword [ebp - 0xe24]
push eax
mov ecx, dword [ebp - 0xe2c]
push ecx
call fcn.00430a20
add esp, 0xc
mov byte [ebp - 0xe15], al
lea edx, [ebp - 0xe14]
push edx
call fcn.00416cc0
add esp, 4
mov byte [ebp - 0xe15], al
movzx eax, byte [ebp - 0xe15]
test eax, eax
jne 0x417f79
mov dword [ebp - 0xe1c], 2
jmp 0x418012
call fcn.00417770
push 1
call fcn.004173a0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x417fac
push 0
call fcn.004173a0
add esp, 4
movzx edx, al
test edx, edx
jne 0x417fac
mov dword [ebp - 0xe1c], 3
jmp 0x418012
push 1
call fcn.00417600
add esp, 4
movzx eax, al
test eax, eax
jne 0x417fda
push 0
call fcn.00417600
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x417fda
mov dword [ebp - 0xe1c], 4
jmp 0x418012
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xe30], esp
lea edx, [ebp + 8]
push edx
call fcn.0040b4a0
mov dword [ebp - 0xe34], eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00417c40
add esp, 0x1c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040b670
jmp 0x418044
cmp dword [ebp - 0xe1c], 1
je 0x418024
cmp dword [ebp - 0xe1c], 2
jne 0x418035
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040b670
jmp 0x418044
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040b670
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050b792
mov esp, ebp
pop ebp
ret 0x18
Function at 0x420c20
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c938
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5a8774]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x420d25
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp + 8]
call fcn.00407600
lea eax, [eax + eax + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x420cae
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [ebp - 0x1c], 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040b670
mov eax, dword [ebp - 0x1c]
jmp 0x420d55
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x14], eax
lea ecx, [ebp + 8]
call fcn.00407600
shl eax, 1
push eax
lea ecx, [ebp + 8]
call fcn.0040b760
push eax
mov edx, dword [ebp - 0x14]
push edx
call fcn.0050b860
add esp, 0xc
lea ecx, [ebp + 8]
call fcn.00407600
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov word [edx + eax*2], cx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 0x10]
push ecx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040b670
mov eax, dword [ebp - 0x20]
jmp 0x420d55
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040b670
mov eax, dword [ebp - 0x24]
jmp 0x420d55
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x42c3d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d17b
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x5a8774]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 4
call fcn.004bc3f7
add esp, 4
push 0x84
lea ecx, [ebp - 0x94]
call fcn.004097b0
lea eax, [ebp - 0x94]
push eax
call fcn.004b76e2
add esp, 4
mov dword [ebp - 4], 0
call fcn.004b78b5
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
sub ecx, 1
mov dword [ebp - 0x9c], ecx
cmp dword [ebp - 0x9c], 3
ja case.default.0x42c458
mov edx, dword [ebp - 0x9c]
jmp dword [edx*4 + 0x42c604]
push 0x584264
lea ecx, [ebp - 0x94]
call fcn.004bdda5
lea ecx, [ebp - 0x94]
call fcn.004be17d
push eax
call fcn.004bc3ae
add esp, 4
jmp case.default.0x42c458
push 0x58427c
lea ecx, [ebp - 0x94]
call fcn.004bdda5
lea ecx, [ebp - 0x94]
call fcn.004be17d
push eax
call fcn.004bc3ae
add esp, 4
push 0x584274
push ecx
mov ecx, esp
mov dword [ebp - 0xa8], esp
push str.IDR_RES
call fcn.00406760
call fcn.0042e810
mov ecx, eax
call fcn.004d1011
jmp case.default.0x42c458
push 0x58428c
lea ecx, [ebp - 0x94]
call fcn.004bdda5
lea ecx, [ebp - 0x94]
call fcn.004be17d
push eax
call fcn.004bc3ae
add esp, 4
push str.skin
push 1
push str.pdfeditor_skin.zip
call fcn.004bc492
add esp, 0xc
jmp case.default.0x42c458
push str.layout_
lea ecx, [ebp - 0x94]
call fcn.004bdda5
lea ecx, [ebp - 0x94]
call fcn.004be17d
push eax
call fcn.004bc3ae
add esp, 4
push str.ZIPRES
push str.IDR_ZIPRES
call fcn.004b78a0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je case.default.0x42c458
mov dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0x98]
push eax
call fcn.004b78a0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
je 0x42c5cb
mov ecx, dword [ebp - 0x98]
push ecx
call fcn.004b78a0
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
jbe 0x42c5cb
push str.xfpdfeditor
mov edx, dword [ebp - 0xa0]
push edx
mov eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.004bc404
add esp, 0xc
mov ecx, dword [ebp - 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004bdc6e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050b792
mov esp, ebp
pop ebp
ret

Function at 0x42c620
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push str.SINGLE_
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42c654
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42c654
mov al, 1
jmp 0x42c656
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x430430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d5f8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5a8774]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 4
lea ecx, [ebp - 0x14]
call fcn.004097b0
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x14]
call fcn.00406760
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00406820
cmp eax, 0xffffffff
jne 0x4304b6
mov byte [ebp - 0x1b], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00430200
mov al, byte [ebp - 0x1b]
jmp 0x430539
push 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.00406820
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x20], eax
xor ecx, ecx
jne 0x4304d6
cmp dword [ebp - 0x20], 0
je 0x4304ee
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 0x18]
je 0x4304ee
mov byte [ebp - 0x19], 1
jmp 0x4304f2
mov byte [ebp - 0x19], 0
movzx eax, byte [ebp - 0x19]
push eax
call fcn.00408080
add esp, 4
xor ecx, ecx
jne 0x4304d6
cmp dword [ebp - 0x20], 0
je 0x43051a
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 0x18]
jne 0x43051a
mov dword [ebp - 0x24], 1
jmp 0x430521
mov dword [ebp - 0x24], 0
mov al, byte [ebp - 0x24]
mov byte [ebp - 0x1a], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00430200
mov al, byte [ebp - 0x1a]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050b792
mov esp, ebp
pop ebp
ret

Function at 0x4306a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4306bf
mov al, 1
jmp 0x4306df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4306d5
mov dword [ebp - 4], 1
jmp 0x4306dc
mov dword [ebp - 4], 0
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x430dc0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x430df1
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movsx eax, byte [edx + ecx]
cmp eax, 0x2d
jne 0x430e05
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp + 8]
movsx eax, byte [edx + ecx]
test eax, eax
jne 0x430e05
call fcn.0050cfcc
mov ecx, 0x20
shl ecx, 0
add eax, ecx
mov dword [ebp - 4], eax
jmp 0x430e50
push 0x587758
mov edx, dword [ebp + 8]
push edx
call fcn.00510200
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x430e50
mov eax, dword [ebp + 8]
push eax
push 0x58773c
call fcn.0050cfcc
mov ecx, 0x20
shl ecx, 1
add eax, ecx
push eax
call fcn.0051078b
add esp, 0xc
push 0
call fcn.00510215
add esp, 4
push 1
call fcn.00510643
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret