joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450170
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b900
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x558384]
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 esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [esi + 0x10], 0
jb 0x4501ae
mov eax, dword [esi]
xor ecx, ecx
push ecx
mov word [eax], cx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x450309
mov edi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call edi
test eax, eax
je 0x450281
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
cmp edi, 0xffffffff
je 0x450303
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x450303
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
shr eax, 1
xor ecx, ecx
push eax
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
push ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.0040d260
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
cmp esi, eax
je 0x450240
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0040d260
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x450303
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4502f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x450325
jmp 0x4502f9
push 1
call edi
test eax, eax
je 0x450303
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
cmp edi, 0xffffffff
je 0x450303
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x450303
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push ebx
lea ecx, [ebp - 0x40]
call fcn.0041fe30
push 0
mov edx, esi
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0041cc30
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x450303
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4502f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45032a
push edx
push ecx
call fcn.004bcf17
add esp, 8
call dword [sym.imp.USER32.dll_CloseClipboard]
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.004bd1b9
mov esp, ebp
pop ebp
ret
call fcn.004df969
call fcn.004df969
int3
Function at 0x450330
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
mov esi, ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4503a5
push ebx
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x45039d
mov eax, dword [esi + 0x10]
lea ebx, [eax + eax]
lea eax, [ebx + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x45039d
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], eax
jb 0x450379
mov esi, dword [esi]
push ebx
push esi
push eax
call fcn.004dc100
mov eax, dword [ebp - 4]
add esp, 0xc
xor ecx, ecx
push edi
mov word [ebx + eax], cx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x451ce0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ba23
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x558384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 7
mov word [esi + 0x18], ax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov edx, eax
lea ebx, [edx + 2]
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x451d40
sub edx, ebx
lea ecx, [esi + 0x18]
sar edx, 1
push edx
push eax
call fcn.0040d260
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x34], eax
mov eax, esi
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
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 0x4534a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50baa6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x558384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 7
mov word [esi + 0x20], ax
mov dword [ebp - 4], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], 7
mov word [esi + 0x38], ax
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 1
call fcn.00452e40
mov dword [esi + 0xe4], 0
xor eax, eax
mov dword [esi + 0xe8], 7
mov word [esi + 0xd4], ax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 8], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0xc8], eax
mov dword [esi + 0xcc], eax
mov eax, esi
mov dword [esi + 0xc], 0x4000
mov dword [esi + 0xd0], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x453ca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
push dword [ebx]
push 1
push dword [ebx + 8]
push edi
call fcn.004f150a
mov esi, dword [ebx + 8]
mov ecx, eax
add esp, 0x10
cmp ecx, 1
sete al
mov byte [esp + 0x13], al
mov eax, esi
cdq
idiv dword [ebx + 0x18]
mov dword [ebx + 0x1c], eax
cmp ecx, 1
jne 0x453e37
add dword [ebx + 0x14], esi
cmp dword [ebx + 0x4c], 8
push 0xffffffffffffffff
push eax
lea eax, [ebx + 0x38]
push ecx
mov ecx, esp
jb 0x453cf6
mov eax, dword [eax]
mov dword [ecx], eax
mov edx, 0x18
push ecx
mov eax, esp
lea ecx, [ebx + 0x20]
mov dword [eax], str.read
call fcn.00451aa0
mov eax, dword [ebx + 0x1c]
add esp, 0x10
mov edx, dword [ebx + 0x18]
xor ecx, ecx
mov dword [esp + 0x14], 0
mov esi, edi
mov dword [esp + 0x1c], edx
test eax, eax
je 0x453de4
mov edi, edx
jmp 0x453d3b
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x18], eax
cmp edx, 1
jne 0x453d4b
xor edx, edx
cmp byte [esi], dl
jmp 0x453d50
xor edx, edx
cmp word [esi], dx
sete dl
mov eax, edi
test edx, edx
je 0x453d88
test ecx, ecx
je 0x453d7a
cmp esi, ecx
je 0x453d7a
imul edi, dword [esp + 0x14]
mov eax, esi
sub eax, ecx
push eax
push ecx
sub ecx, edi
push ecx
call fcn.004dce80
mov eax, dword [ebx + 0x18]
add esp, 0xc
mov edx, dword [esp + 0x14]
lea ecx, [eax + esi]
inc edx
mov dword [esp + 0x14], edx
jmp 0x453d8c
mov edx, dword [esp + 0x14]
add esi, eax
mov edi, eax
cmp dword [esp + 0x18], 0
jne 0x453d33
test ecx, ecx
je 0x453db1
cmp esi, ecx
je 0x453db1
sub esi, ecx
imul eax, edx
push esi
push ecx
sub ecx, eax
push ecx
call fcn.004dce80
add esp, 0xc
mov esi, dword [esp + 0x14]
test esi, esi
je 0x453de1
push 0xffffffffffffffff
push esi
push ecx
mov eax, esp
mov edx, 1
push ecx
lea ecx, [ebx + 0x20]
mov dword [eax], 0
mov eax, esp
mov dword [eax], str.nulls_removed
call fcn.00451aa0
add esp, 0x10
sub dword [ebx + 0x1c], esi
mov edi, dword [ebp + 8]
cmp dword [ebx + 0x18], 1
jle 0x453e37
test byte [ebx + 4], 0x80
je 0x453e37
mov ecx, dword [ebx + 0x1c]
test ecx, ecx
je 0x453e12
nop word [eax + eax]
movzx eax, word [edi + ecx*2 - 2]
dec ecx
rol ax, 8
mov word [edi + ecx*2], ax
test ecx, ecx
jne 0x453e00
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov eax, esp
xor edx, edx
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [eax], str.endian_swap
lea eax, [ebx + 0x20]
mov ecx, eax
call fcn.00451aa0
add esp, 0x10
mov al, byte [esp + 0x13]
test al, al
jne 0x453e4a
mov ecx, ebx
call fcn.00453560
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x454310
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], 0
mov ecx, dword [ebp + 8]
mov ebx, ecx
push edi
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
imul eax, edx
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
test eax, eax
cmovne ebx, eax
test byte [esi + 4], 0x80
je 0x4543ba
test ecx, ecx
jne 0x45437d
mov eax, edx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004bd4f8
mov ecx, dword [esi + 0x1c]
add esp, 4
add ecx, ecx
mov edi, eax
mov dword [esp + 0xc], edi
push ecx
push ebx
push edi
call fcn.004dc100
mov edx, dword [esi + 0x1c]
add esp, 0xc
mov ecx, edi
mov ebx, edi
test edx, edx
je 0x454393
movzx eax, word [ecx + edx*2 - 2]
dec edx
rol ax, 8
mov word [ecx + edx*2], ax
test edx, edx
jne 0x454381
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov eax, esp
lea edi, [esi + 0x20]
push ecx
xor edx, edx
mov ecx, edi
mov dword [eax], 0
mov eax, esp
mov dword [eax], str.endian_swap
call fcn.00451aa0
add esp, 0x10
jmp 0x4543bd
lea edi, [esi + 0x20]
push dword [esi]
push 1
push dword [esi + 8]
push ebx
call fcn.004f12e6
add esp, 0x10
cmp eax, 1
mov eax, dword [esp + 0xc]
sete bl
test eax, eax
je 0x4543e4
push eax
call fcn.004b8926
add esp, 4
test bl, bl
je 0x454426
mov eax, dword [esi + 8]
add dword [esi + 0x14], eax
push 0xffffffffffffffff
push dword [esi + 0x1c]
add esi, 0x38
push ecx
mov ecx, esp
cmp dword [esi + 0x14], 8
jb 0x454401
mov esi, dword [esi]
mov dword [ecx], esi
mov edx, 0x18
push ecx
mov esi, esp
mov ecx, edi
mov dword [esi], str.write
call fcn.00451aa0
add esp, 0x10
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.00453560
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x465dc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50bf48
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x558384]
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 eax, edx
mov dword [ebp - 0x3c], eax
mov esi, ecx
mov dword [ebp - 0x30], esi
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x38], ecx
test eax, eax
jne 0x465e12
mov dword [esi], edx
mov dword [esi + 4], edx
jmp 0x465f35
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
push ecx
lea edx, [ebp - 0x2c]
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.0041ccb0
add esp, 4
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
cmovae eax, dword [ebp - 0x2c]
push 0x5363c8
push eax
call fcn.004f050c
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x465eeb
push 2
push 0
push ebx
call fcn.004f1093
add esp, 0xc
push ebx
call fcn.004f0c40
add esp, 4
mov edi, eax
mov dword [ebp - 0x30], edi
push 0
push 0
push ebx
call fcn.004f1093
add esp, 0xc
lea ecx, [edi + 1]
push ecx
call fcn.004e4dc8
mov edi, eax
add esp, 4
test edi, edi
je 0x465ed5
push ebx
push dword [ebp - 0x30]
push 1
push edi
call fcn.004f150a
mov ecx, dword [ebp - 0x30]
add esp, 0x10
cmp eax, ecx
jne 0x465ed5
push ebx
mov byte [ecx + edi], 0
call fcn.004f0669
movss xmm2, dword [0x53a3e4]
add esp, 4
mov ecx, edi
call fcn.00461300
push edi
mov ebx, eax
call fcn.004e4dc3
add esp, 4
jmp 0x465eed
push ebx
call fcn.004f0669
add esp, 4
test edi, edi
je 0x465eeb
push edi
call fcn.004e4dc3
add esp, 4
xor ebx, ebx
push dword [ebp - 0x38]
mov edx, ebx
mov ecx, esi
push dword [ebp - 0x34]
push dword [ebp + 8]
push dword [ebp - 0x3c]
call fcn.004659c0
mov edx, dword [ebp - 0x18]
add esp, 0x10
cmp edx, 0x10
jb 0x465f35
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x465f2b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465f53
push edx
push ecx
call fcn.004bcf17
add esp, 8
mov eax, esi
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.004bd1b9
mov esp, ebp
pop ebp
ret
call fcn.004df969
int3
Function at 0x480840
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509148
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x558384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
push str.CommonProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
test esi, esi
je 0x4809b5
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00404a60
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push eax
push str.CommonProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4809b5
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0
jne 0x48092e
lea eax, [ecx - 1]
push eax
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00426850
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c610
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x48092e
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x480924
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480a33
push edx
push ecx
call fcn.004bcf17
add esp, 8
push str.microsoft_sharedinkTabTip.exe
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.0040eec0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x480975
mov ecx, eax
call fcn.0040d540
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4809af
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4809a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480a38
push edx
push ecx
call fcn.004bcf17
add esp, 8
cmp dword [ebp - 0x18], 0
jne 0x4809c4
push 0x3e
push str.C:Program_FilesCommon_Filesmicrosoft_sharedinkTabTip.exe
lea ecx, [ebp - 0x28]
call fcn.0040d260
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0xa
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x480a19
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x480a0f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480a3d
push edx
push ecx
call fcn.004bcf17
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bd1b9
mov esp, ebp
pop ebp
ret
call fcn.004df969
call fcn.004df969
call fcn.004df969
int3
Function at 0x480df4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
cmp byte [0x56182c], 0
push esi
mov esi, ecx
je 0x480e1c
push 0x800
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x480ede
push ebx
push edi
test esi, esi
je 0x480eda
xor ebx, ebx
cmp word [esi], bx
je 0x480eda
mov edi, 0x200
lea eax, [ebp - 0x404]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x480eda
cmp ecx, edi
jae 0x480eda
push 0x5c
pop eax
mov word [ebp + ecx*2 - 0x404], ax
inc ecx
cmp ecx, edi
jae 0x480eda
movzx eax, word [esi]
test ax, ax
je 0x480e8a
mov edx, eax
mov word [ebp + ecx*2 - 0x404], dx
inc ecx
cmp ecx, edi
jae 0x480eda
add esi, 2
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x480e70
xor eax, eax
mov word [ebp + ecx*2 - 0x404], ax
mov eax, dword [0x561824]
test eax, eax
je 0x480ea8
lea ecx, [ebp - 4]
push ecx
push ebx
call eax
mov esi, eax
jmp 0x480ead
mov esi, 0xc000000d
push 8
push ebx
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test esi, esi
js 0x480ed6
mov ecx, dword [0x561824]
test ecx, ecx
je 0x480ed6
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
call ecx
mov eax, edi
jmp 0x480edc
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret

Function at 0x481000
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48102b
test esi, esi
je 0x48102b
push esi
call fcn.004b7d56
add esp, 4
test eax, eax
je 0x48102b
mov eax, 1
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4823c0
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 0x482419
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x482419
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 0x48240a
cmp esi, edx
jae 0x482419
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4823f8
cmp esi, edx
jae 0x482419
cmp word [esi], 0
je 0x482419
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x482440
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x558384]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
push 0
push eax
mov dword [ebp - 0x668], ebx
call fcn.004dc680
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x514748
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4824b4
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bd1b9
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
push esi
xor esi, esi
lea ecx, [ecx]
test byte [ebp - 0x664], 0x10
jne 0x4824d4
add esi, dword [ebp - 0x644]
jmp 0x482590
mov ecx, 0x5363cc
lea eax, [ebp - 0x638]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x482506
test dx, dx
je 0x482502
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x482506
add eax, 4
add ecx, 4
test dx, dx
jne 0x4824e0
xor eax, eax
jmp 0x48250b
sbb eax, eax
or eax, 1
test eax, eax
je 0x482590
mov eax, 0x514a18
lea ecx, [ebp - 0x638]
mov edi, edi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x482546
test dx, dx
je 0x482542
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x482546
add ecx, 4
add eax, 4
test dx, dx
jne 0x482520
xor eax, eax
jmp 0x48254b
sbb eax, eax
or eax, 1
test eax, eax
je 0x482590
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004dc680
add esp, 0xc
lea eax, [ebp - 0x638]
push eax
push dword [ebp - 0x668]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
push eax
call fcn.00482440
add esp, 4
add esi, eax
lea eax, [ebp - 0x664]
push eax
push edi
call ebx
test eax, eax
jne 0x4824c0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004bd1b9
mov esp, ebp
pop ebp
ret
Function at 0x482e90
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x558384]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 0x10], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x210], esi
je 0x482ebd
or edi, 0x8000
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004dc680
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 7
test eax, eax
je 0x482f07
xor eax, eax
mov word [esi], ax
push 0x529860
jmp 0x482f13
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040d3a0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004bd1b9
mov esp, ebp
pop ebp
ret
Function at 0x483490
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x483502
push esi
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x4834b2
push 9
push ebx
call esi
push 5
push ebx
call esi
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push eax
call esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call esi
pop esi
pop ebx
pop ebp
ret

Function at 0x484a30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ccda
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x558384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov byte [ebp - 4], 3
call fcn.00481c30
mov ecx, eax
test ecx, ecx
je 0x484b4f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x18], eax
mov byte [ebp - 4], 5
call fcn.00481c30
mov ecx, eax
test ecx, ecx
je 0x484b59
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x1c], eax
mov byte [ebp - 4], 7
call fcn.00481c30
mov ecx, eax
test ecx, ecx
je 0x484b63
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x20], eax
mov byte [ebp - 4], 9
call fcn.00481c30
mov ecx, eax
test ecx, ecx
je 0x484b6d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x24], eax
lea esi, [edi + 0x28]
mov byte [ebp - 4], 0xa
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004164b0
mov dword [esi], eax
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004818f0
push 0x80004005
call fcn.004818f0
push 0x80004005
call fcn.004818f0
push 0x80004005
call fcn.004818f0
int3