joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d53dd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x533210]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4d5423
cmp word [ebx], dx
jne 0x4d5423
or byte [eax + edi + 0x28], 4
jmp 0x4d5428
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4d558b
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4d556b
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4d5469
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4d549f
cmp eax, edx
jae 0x4d54ad
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4d5444
jmp 0x4d558b
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d5566
cmp dword [ebp - 0x18], 0
je 0x4d5566
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x533210]
test byte [eax + edi + 0x28], 0x48
je 0x4d553c
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4d5500
mov word [esi], cx
jmp 0x4d5537
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x533210]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x533210]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x533210]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4d558b
pop eax
cmp word [ebp - 4], ax
jne 0x4d554c
cmp esi, ebx
jne 0x4d554c
mov word [esi], ax
jmp 0x4d5588
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004d35af
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4d558b
push 0xd
pop eax
jmp 0x4d5547
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x533210]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4d5585
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4d558b
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4d858f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x505934
push 0x50592c
push str.FlsAlloc
push 0x1f
call fcn.004d840e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d85c3
push dword [ebp + 8]
mov ecx, esi
call dword [0x4e7718]
call esi
jmp 0x4d85c9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4d860d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x505944
push 0x50593c
push str.FlsGetValue
push 0x21
call fcn.004d840e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d8644
push dword [ebp + 8]
mov ecx, esi
call dword [0x4e7718]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4d864c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x50594c
push 0x505944
push str.FlsSetValue
push 0x22
call fcn.004d840e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d8686
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4e7718]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4dbb3b
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004dbab7
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4dbcaa
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4dbcaa
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4dbc5f
jg 0x4dbb97
test eax, eax
je 0x4dbc55
push 1
push 0x1000
call fcn.004d88b6
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4dbbba
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4dbc4c
push 0x8000
push ebx
call fcn.004d47b8
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4dbbe3
jg 0x4dbbde
cmp ecx, 0x1000
jb 0x4dbbe3
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004d64fa
add esp, 0x10
cmp eax, 0xffffffff
je 0x4dbc28
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4dbbde
jl 0x4dbc0f
test ecx, ecx
jne 0x4dbbd0
push dword [ebp - 0xc]
push ebx
call fcn.004d47b8
push esi
call fcn.004d6fe0
add esp, 0xc
xor ebx, ebx
jmp 0x4dbcb8
cmp byte [edi + 0x24], 0
je 0x4dbc3f
cmp dword [edi + 0x20], 5
jne 0x4dbc3f
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4dbc4a
mov ebx, dword [edi + 0x18]
jmp 0x4dbc4c
xor ebx, ebx
push esi
call fcn.004d6fe0
pop ecx
jmp 0x4dbcb8
test ecx, ecx
jg 0x4dbc21
jl 0x4dbc5f
test eax, eax
jae 0x4dbc21
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004d35af
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4dbc7f
cmp byte [edi + 0x1c], 0
je 0x4dbc21
jmp 0x4dbcb0
push ebx
call fcn.004da146
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4dbc21
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4dbcb8
cmp byte [edi + 0x1c], 0
je 0x4dbcb5
mov ebx, dword [edi + 0x18]
jmp 0x4dbcb8
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004d35af
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4dc0eb
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x530400]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4dc136
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004dc286
test al, al
jne 0x4dc130
sub edx, 2
cmp edx, edi
jne 0x4dc116
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4dc158
lea eax, [edi + 2]
cmp edx, eax
je 0x4dc158
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004dc037
add esp, 0x10
jmp 0x4dc252
push esi
lea ecx, [ebp - 0x255]
call fcn.004dc286
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4dc19b
push dword [ebp - 0x25c]
jmp 0x4dc148
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4dc1d8
cmp word [ebp - 0x226], 0
je 0x4dc1f9
cmp word [ebp - 0x226], ax
jne 0x4dc1d8
cmp word [ebp - 0x224], 0
je 0x4dc1f9
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004dc037
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4dc245
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4dc1b2
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4dc22d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4dc252
push 0x4dbe67
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004d1750
add esp, 0x10
jmp 0x4dc222
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bbaec
leave
ret

Function at 0x4dcb68
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4dcb79
pop esi
ret
push ebx
push edi
push esi
call fcn.004dcb31
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004d701a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4dcba1
push ebx
push esi
push edi
call fcn.004bd490
add esp, 0xc
push 0
call fcn.004d6fe0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4dcf71
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004dcbb6
Function at 0x4dff0d
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x530400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4dff50
call fcn.004cdc33
mov dword [eax], 0xf
call fcn.004cdc46
mov dword [eax], 0xd
call fcn.004bfeff
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bbaec
leave
ret
test eax, eax
jne 0x4dff57
inc eax
jmp 0x4dff44
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4dff42
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4dff44

Function at 0x4e2480
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4e24ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4e24ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1000179f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x100017ae
pop dword [ebp - 0xc]
mov eax, 0x100017ae
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x3950eded
sub dword [ebp - 0x1c], 0xeafea8a2
mov dword [ebp - 0x18], 0x77b2e64c
add dword [ebp - 0x18], 0xba8065f9
mov dword [ebp - 0x14], 0x5ce52dda
sub dword [ebp - 0x14], 0x1098e9ac
mov dword [ebp - 0x10], 0xe93a5366
add dword [ebp - 0x10], 0x16c5ac9a
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x9c88eb2e
sub dword [ebp - 0x1c], 0x281681d8
mov dword [ebp - 0x18], 0xda621862
sub dword [ebp - 0x18], 0x98f5b6ed
mov dword [ebp - 0x14], 0x4d45d75f
sub dword [ebp - 0x14], 0xe9d66af3
mov dword [ebp - 0x10], 0xdcce79be
sub dword [ebp - 0x10], 0xdcce79be
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x95a2ed8
sub eax, 0xf959de88
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x37759
push 0
call eax
mov ecx, 0x4a77
mov edi, eax
mov esi, 0xb0b323db
sub esi, 0xa0b28bdb
add esi, dword [ebp - 0xc]
mov ebx, 0xe80fb202
xor dword [ebp - 4], 0xfb180a1a
mov edx, dword [esi]
xor dword [ebp - 8], 0x79562ab0
sub edx, ebx
xor dword [ebp - 4], 0x1d2e367e
mov dword [edi], edx
add edi, 0x3e267f4d
add edi, 0xc1d980b7
add esi, 0x7c3489c7
sub esi, 0x7c3489c3
loop 0x100018ba
add eax, 0x11caf
xor ebx, ebx
add ebx, eax
add eax, 0x38256d48
sub eax, 0x38256d43
mov ecx, 0x10000000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x31b86ab8
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x5b565daf
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x401984
Capabilities:
Hide graphical window

Disassembly:
push ebp
sub esp, 0x40
push esp
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
add esp, 0x40
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
loop 0x40199b
push esp
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4040b0], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 0x4016e2
mov dword [ebp - 4], str.risiliency
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040b0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.ebsement
push str.risiliency
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040b8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401a36
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401a1d
pop ebp
ret 0x10
Function at 0x405130
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b11b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4d0c20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
add eax, 0x520
push eax
lea ecx, [ebp - 0x10]
call fcn.0040a7c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x2c]
add ecx, 0x538
call fcn.00406ba0
jmp 0x405192
push 0
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x18]
call fcn.00407560
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x538
call fcn.00406bd0
push eax
lea ecx, [ebp - 0x18]
call fcn.004075a0
movzx ecx, al
test ecx, ecx
je 0x4051dc
push 0
lea ecx, [ebp - 0x18]
call fcn.00407540
mov edx, dword [eax + 4]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ecx, [ebp - 0x18]
call fcn.00407540
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405184
mov ecx, dword [ebp - 0x2c]
add ecx, 0x538
call fcn.004073e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040a780
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x405230
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push eax
call fcn.00419810
add esp, 4
push str.ZIPINSTALL
push 0x6d
call fcn.00419790
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x405265
xor al, al
jmp 0x405310
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00419790
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40528f
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor al, al
jmp 0x405310
mov eax, dword [ebp - 0xc]
push eax
call fcn.00419790
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp dword [ebp + 0x10], 0
jne 0x4052ae
xor al, al
jmp 0x405310
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call fcn.004189fc
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x4052e8
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.004956b0
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00419820
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x405700
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4d0c20]
xor eax, ebp
mov dword [ebp - 8], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00495570
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x4b363c
push 1
push 0
push 0x4b364c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jge 0x40576b
xor eax, eax
jmp 0x4057fd
mov ecx, dword [ebp + 8]
call fcn.00402ab0
push eax
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x218]
push edx
mov eax, dword [ecx + 0x50]
call eax
lea ecx, [ebp - 4]
push ecx
push 0x4b366c
mov edx, dword [ebp - 0x218]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x218]
push ecx
mov edx, dword [eax]
call edx
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jge 0x4057b7
xor eax, eax
jmp 0x4057fd
push 2
mov ecx, dword [ebp + 0xc]
call fcn.00402ab0
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ecx + 0x18]
call eax
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x218]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x218]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004922e7
mov esp, ebp
pop ebp
ret
Function at 0x405810
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b15d8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4d0c20]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall5C3ABA3A_F5D6_48CE_AF14_A6C48E918899_is1
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x38], eax
push 0x4c6780
lea ecx, [ebp - 0x34]
call fcn.00401680
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00476f20
shl eax, 1
push eax
lea ecx, [ebp - 0x34]
call fcn.00402ab0
push eax
push 1
push 0
push str.DisplayName
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x38], eax
cmp dword [0x4d526c], 0
je 0x4058cc
mov eax, dword [0x4d526c]
add eax, 0x20
push eax
lea ecx, [ebp - 0x34]
call fcn.004016e0
push 0x4c67a4
lea ecx, [ebp - 0x34]
call fcn.00401e50
lea ecx, [ebp - 0x34]
call fcn.00476f20
shl eax, 1
push eax
lea ecx, [ebp - 0x34]
call fcn.00402ab0
push eax
push 1
push 0
push str.UninstallString
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x38], eax
cmp dword [0x4d526c], 0
je 0x40591e
mov edx, dword [0x4d526c]
add edx, 0x20
push edx
lea ecx, [ebp - 0x34]
call fcn.004016e0
push 0x4c67e0
lea ecx, [ebp - 0x34]
call fcn.00401e50
lea ecx, [ebp - 0x34]
call fcn.00476f20
shl eax, 1
push eax
lea ecx, [ebp - 0x34]
call fcn.00402ab0
push eax
push 1
push 0
push str.DisplayIcon
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x38], eax
cmp dword [0x4d526c], 0
je 0x405987
mov ecx, dword [0x4d526c]
add ecx, 0x58
call fcn.00476f20
shl eax, 1
push eax
mov ecx, dword [0x4d526c]
add ecx, 0x58
call fcn.00402ab0
push eax
push 1
push 0
push str.DisplayShortcut
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x10], 0
je 0x405997
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004016c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004922e7
mov esp, ebp
pop ebp
ret
Function at 0x4059c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x4d0c20]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x814], 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x405a78
lea ecx, [ebp - 8]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x405a6a
xor edx, edx
mov word [ebp - 0x810], dx
push 0x7fe
push 0
lea eax, [ebp - 0x80e]
push eax
call fcn.00495570
add esp, 0xc
lea ecx, [ebp - 0x810]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x405a58
lea eax, [ebp - 0x810]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401680
mov ecx, dword [ebp - 0x814]
or ecx, 1
mov dword [ebp - 0x814], ecx
mov eax, dword [ebp + 8]
jmp 0x405a97
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ecx + 0x14]
call eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [edx + 8]
call ecx
push 0x4c6838
mov ecx, dword [ebp + 8]
call fcn.00401680
mov edx, dword [ebp - 0x814]
or edx, 1
mov dword [ebp - 0x814], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004922e7
mov esp, ebp
pop ebp
ret