joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d44a0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x592884]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov ecx, dword [ebp + 8]
call fcn.0040df90
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0xffffffff
jne 0x4d44ea
xor al, al
jmp 0x4d45f7
push 0
lea eax, [ebp - 0x148]
push eax
push 0x40
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x140]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d451e
mov eax, dword [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4d45f7
movzx ecx, word [ebp - 0x44]
cmp ecx, 0x5a4d
je 0x4d453e
mov edx, dword [ebp - 0x140]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4d45f7
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4d456c
mov edx, dword [ebp - 0x140]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4d45f7
push 0
lea eax, [ebp - 0x148]
push eax
push 0xf8
lea ecx, [ebp - 0x13c]
push ecx
mov edx, dword [ebp - 0x140]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d45a3
mov eax, dword [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4d45f7
cmp dword [ebp - 0x13c], 0x4550
je 0x4d45c0
mov ecx, dword [ebp - 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4d45f7
mov edx, dword [ebp - 0x140]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [ebp - 0x138]
cmp eax, 0x14c
jne 0x4d45e7
mov dword [ebp - 0x144], 1
jmp 0x4d45f1
mov dword [ebp - 0x144], 0
mov al, byte [ebp - 0x144]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f6f55
mov esp, ebp
pop ebp
ret
Function at 0x4e7f80
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 8
xorps xmm3, xmm3
xorps xmm2, xmm2
mov edx, 0x183
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, ecx
lea eax, [ebx + 4]
nop dword [eax]
movd xmm1, dword [eax - 4]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
lea eax, [eax + 8]
punpcklwd xmm1, xmm0
paddd xmm3, xmm1
movd xmm1, dword [eax - 8]
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
paddd xmm2, xmm1
sub edx, 1
jne 0x4e7fa0
paddd xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
paddd xmm2, xmm0
movups xmm0, xmm2
push edx
psrldq xmm0, 4
push 0x80
paddd xmm2, xmm0
movd ecx, xmm2
push 4
push edx
push edx
cmp ecx, 2
push 0x40000000
lea eax, [ecx - 2]
cmovbe eax, ecx
push esi
mov dword [ebx + 0xc18], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x4e8081
push ebp
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 2
push 0
push 0
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push 0xc1c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x18], 0xc1c
je 0x4e8079
mov eax, dword [esp + 0xc]
push 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x4ebd80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x592884]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], ecx
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.004f9c00
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4ebdff
mov eax, 2
imul ecx, eax, 0
mov dword [ebp - 0x210], ecx
cmp dword [ebp - 0x210], 0x208
jae 0x4ebde6
jmp 0x4ebdeb
call fcn.004f76de
xor edx, edx
mov eax, dword [ebp - 0x210]
mov word [ebp + eax - 0x20c], dx
xor al, al
jmp 0x4ebe10
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040dfd0
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f6f55
mov esp, ebp
pop ebp
ret 8

Function at 0x4ec4f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x592884]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0x34]
call fcn.0040e0b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0
mov ecx, dword [ebp - 0x70]
call fcn.004ebd80
movzx ecx, al
test ecx, ecx
jne 0x4ec55a
mov byte [ebp - 0x65], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0040abd0
mov al, byte [ebp - 0x65]
jmp 0x4ec65e
mov edx, 0x7f51
mov word [ebp - 0x1c], dx
mov eax, 0x5740
mov word [ebp - 0x1a], ax
mov ecx, 0x5bfc
mov word [ebp - 0x18], cx
mov edx, 0x822a
mov word [ebp - 0x16], dx
xor eax, eax
mov word [ebp - 0x14], ax
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0040e070
mov byte [ebp - 4], 1
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.004185d0
add esp, 0xc
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x78], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x78]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040e030
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.0040abd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.0040abd0
push str..lnk
lea ecx, [ebp - 0x34]
call fcn.0040dfa0
lea ecx, [ebp - 0x34]
push ecx
call fcn.00415450
add esp, 4
movzx edx, al
test edx, edx
jne 0x4ec611
mov byte [ebp - 0x66], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0040abd0
mov al, byte [ebp - 0x66]
jmp 0x4ec65e
push 0
push 0
push 0
lea ecx, [ebp - 0x34]
call fcn.0040df90
push eax
push str.taskbarpin
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0x20
jle 0x4ec63f
mov dword [ebp - 0x6c], 1
jmp 0x4ec646
mov dword [ebp - 0x6c], 0
mov al, byte [ebp - 0x6c]
mov byte [ebp - 0x67], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0040abd0
mov al, byte [ebp - 0x67]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f6f55
mov esp, ebp
pop ebp
ret 4
Function at 0x4eed00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5472ba
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x592884]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.004ee7d0
add esp, 8
mov dword [ebp - 4], 1
lea edx, [ebp - 0x234]
push edx
call fcn.00415450
add esp, 4
movzx eax, al
test eax, eax
jne 0x4eed95
push 0x561f98
mov ecx, dword [ebp + 8]
call fcn.0040e070
mov ecx, dword [ebp - 0x238]
or ecx, 1
mov dword [ebp - 0x238], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.0040abd0
mov eax, dword [ebp + 8]
jmp 0x4eee08
push 0x20a
push 0
lea edx, [ebp - 0x21c]
push edx
call fcn.004f9c00
add esp, 0xc
lea ecx, [ebp - 0x234]
call fcn.0040df90
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x561f98
push str.Version
push str.Upgrade
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040e070
mov edx, dword [ebp - 0x238]
or edx, 1
mov dword [ebp - 0x238], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.0040abd0
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.004f6f55
mov esp, ebp
pop ebp
ret
Function at 0x4f03c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547801
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x592884]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2b0], 0
lea eax, [ebp - 0x24c]
push eax
call fcn.004f0650
add esp, 4
mov dword [ebp - 4], 1
push str.config.ini
lea ecx, [ebp - 0x264]
call fcn.0040e070
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x264]
push ecx
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x234]
push eax
call fcn.004185d0
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x264]
call fcn.0040abd0
lea ecx, [ebp - 0x234]
push ecx
call fcn.00415450
add esp, 4
movzx edx, al
test edx, edx
jne 0x4f04a3
push 0x561f98
mov ecx, dword [ebp + 8]
call fcn.0040e070
mov eax, dword [ebp - 0x2b0]
or eax, 1
mov dword [ebp - 0x2b0], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.0040abd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.0040abd0
mov eax, dword [ebp + 8]
jmp 0x4f062c
push 0x20a
push 0
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004f9c00
add esp, 0xc
lea ecx, [ebp - 0x234]
call fcn.0040df90
push eax
push 0x104
lea edx, [ebp - 0x21c]
push edx
push 0x561f98
push str.Version
push str.Upgrade
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x2b4], eax
mov ecx, dword [ebp - 0x2b4]
add ecx, 2
mov dword [ebp - 0x2bc], ecx
mov edx, dword [ebp - 0x2b4]
mov ax, word [edx]
mov word [ebp - 0x2b6], ax
add dword [ebp - 0x2b4], 2
cmp word [ebp - 0x2b6], 0
jne 0x4f0501
mov ecx, dword [ebp - 0x2b4]
sub ecx, dword [ebp - 0x2bc]
sar ecx, 1
mov dword [ebp - 0x2c0], ecx
jne 0x4f057a
push 0x561f98
mov ecx, dword [ebp + 8]
call fcn.0040e070
mov edx, dword [ebp - 0x2b0]
or edx, 1
mov dword [ebp - 0x2b0], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.0040abd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.0040abd0
mov eax, dword [ebp + 8]
jmp 0x4f062c
lea eax, [ebp - 0x2ac]
push eax
call fcn.004f02e0
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x27c]
call fcn.0040e070
mov byte [ebp - 4], 6
lea edx, [ebp - 0x27c]
push edx
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x294]
push ecx
call fcn.004185d0
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x27c]
call fcn.0040abd0
lea edx, [ebp - 0x294]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040f010
mov eax, dword [ebp - 0x2b0]
or eax, 1
mov dword [ebp - 0x2b0], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x294]
call fcn.0040abd0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2ac]
call fcn.0040abd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.0040abd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.0040abd0
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.004f6f55
mov esp, ebp
pop ebp
ret
Function at 0x4f0ab0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push 0x3c
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.004f9c00
add esp, 0xc
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x40
cmp dword [ebp + 0x18], 0
je 0x4f0ae2
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 8], ecx
jmp 0x4f0aeb
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x10], 0
mov byte [ebp - 1], 0
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4f0b44
cmp dword [ebp - 0x28], 0x20
jbe 0x4f0b37
mov dword [ebp - 0xc], 1
jmp 0x4f0b3e
mov dword [ebp - 0xc], 0
mov al, byte [ebp - 0xc]
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x4f0b63
movzx edx, byte [ebp + 0x20]
test edx, edx
je 0x4f0b63
push 0x2710
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x4f2630
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547ef0
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x592884]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x298], 0
lea ecx, [ebp - 0x264]
call fcn.0040e0b0
mov dword [ebp - 4], 1
push 0x208
push 0
lea eax, [ebp - 0x24c]
push eax
call fcn.004f9c00
add esp, 0xc
push 0
push 0x1a
lea ecx, [ebp - 0x24c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edx, 0x5c
mov word [ebp - 0x44], dx
mov eax, 0x48
mov word [ebp - 0x42], ax
mov ecx, 0x61
mov word [ebp - 0x40], cx
mov edx, 0x6f
mov word [ebp - 0x3e], dx
mov eax, 0x5a
mov word [ebp - 0x3c], ax
mov ecx, 0x69
mov word [ebp - 0x3a], cx
mov edx, 0x70
mov word [ebp - 0x38], dx
mov eax, 0x5c
mov word [ebp - 0x36], ax
mov ecx, 0x48
mov word [ebp - 0x34], cx
mov edx, 0x61
mov word [ebp - 0x32], dx
mov eax, 0x6f
mov word [ebp - 0x30], ax
mov ecx, 0x5a
mov word [ebp - 0x2e], cx
mov edx, 0x69
mov word [ebp - 0x2c], dx
mov eax, 0x70
mov word [ebp - 0x2a], ax
mov ecx, 0x44
mov word [ebp - 0x28], cx
mov edx, 0x69
mov word [ebp - 0x26], dx
mov eax, 0x73
mov word [ebp - 0x24], ax
mov ecx, 0x70
mov word [ebp - 0x22], cx
mov edx, 0x6c
mov word [ebp - 0x20], dx
mov eax, 0x61
mov word [ebp - 0x1e], ax
mov ecx, 0x79
mov word [ebp - 0x1c], cx
mov edx, 0x2e
mov word [ebp - 0x1a], dx
mov eax, 0x64
mov word [ebp - 0x18], ax
mov ecx, 0x61
mov word [ebp - 0x16], cx
mov edx, 0x74
mov word [ebp - 0x14], dx
xor eax, eax
mov word [ebp - 0x12], ax
lea ecx, [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x294]
call fcn.0040e070
mov dword [ebp - 0x29c], eax
mov edx, dword [ebp - 0x29c]
mov dword [ebp - 0x2a0], edx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x2a0]
push ecx
lea edx, [ebp - 0x27c]
push edx
call fcn.004188f0
add esp, 0xc
mov dword [ebp - 0x2a4], eax
mov eax, dword [ebp - 0x2a4]
mov dword [ebp - 0x2a8], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2a8]
push ecx
lea ecx, [ebp - 0x264]
call fcn.0040e030
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x27c]
call fcn.0040abd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x294]
call fcn.0040abd0
lea edx, [ebp - 0x264]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040f010
mov eax, dword [ebp - 0x298]
or eax, 1
mov dword [ebp - 0x298], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x264]
call fcn.0040abd0
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.004f6f55
mov esp, ebp
pop ebp
ret
Function at 0x4f2860
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547f60
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x592884]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x264], 0
lea ecx, [ebp - 0x230]
call fcn.0040e0b0
mov dword [ebp - 4], 1
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.004f9c00
add esp, 0xc
push 0
push 0x1a
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x260]
call fcn.0040e070
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 2
push str.2345SoftMgrconfigpushnotifyhistory
mov ecx, dword [ebp - 0x26c]
push ecx
lea edx, [ebp - 0x248]
push edx
call fcn.004188f0
add esp, 0xc
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x274], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x274]
push ecx
lea ecx, [ebp - 0x230]
call fcn.0040e030
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.0040abd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x260]
call fcn.0040abd0
lea edx, [ebp - 0x230]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040f010
mov eax, dword [ebp - 0x264]
or eax, 1
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.0040abd0
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.004f6f55
mov esp, ebp
pop ebp
ret

Function at 0x4f29b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547f60
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x592884]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x264], 0
lea ecx, [ebp - 0x230]
call fcn.0040e0b0
mov dword [ebp - 4], 1
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.004f9c00
add esp, 0xc
push 0
push 0x1a
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x260]
call fcn.0040e070
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 2
push str.2345Pic2345PicDisplay.dat
mov ecx, dword [ebp - 0x26c]
push ecx
lea edx, [ebp - 0x248]
push edx
call fcn.004188f0
add esp, 0xc
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x274], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x274]
push ecx
lea ecx, [ebp - 0x230]
call fcn.0040e030
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.0040abd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x260]
call fcn.0040abd0
lea edx, [ebp - 0x230]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040f010
mov eax, dword [ebp - 0x264]
or eax, 1
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.0040abd0
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.004f6f55
mov esp, ebp
pop ebp
ret
Function at 0x51019b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0050fe5b
Function at 0x524a50
Capabilities:
Encode data using base64

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov eax, ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor esi, esi
lea ebx, [edi - 2]
test ebx, ebx
jle 0x524add
mov edi, dword [esp + 0x18]
nop dword [eax + eax]
movzx ecx, byte [edi + esi]
shr ecx, 2
movzx ecx, byte [ecx + 0x556440]
mov byte [eax], cl
movzx edx, byte [edi + esi]
movzx ecx, byte [edi + esi + 1]
and edx, 3
shr ecx, 4
shl edx, 4
or edx, ecx
movzx ecx, byte [edx + 0x556440]
mov byte [eax + 1], cl
movzx edx, byte [edi + esi + 1]
movzx ecx, byte [edi + esi + 2]
and edx, 0xf
shr ecx, 6
shl edx, 2
or edx, ecx
movzx ecx, byte [edx + 0x556440]
mov byte [eax + 2], cl
movzx ecx, byte [edi + esi + 2]
add esi, 3
and ecx, 0x3f
movzx ecx, byte [ecx + 0x556440]
mov byte [eax + 3], cl
add eax, 4
cmp esi, ebx
jl 0x524a70
mov edi, dword [esp + 0x1c]
cmp esi, edi
jge 0x524b3e
mov ebx, dword [esp + 0x18]
movzx ecx, byte [esi + ebx]
shr ecx, 2
mov cl, byte [ecx + 0x556440]
mov byte [eax], cl
lea ecx, [edi - 1]
movzx edx, byte [esi + ebx]
and edx, 3
shl edx, 4
cmp esi, ecx
jne 0x524b12
mov cl, byte [edx + 0x556440]
mov dl, 0x3d
mov byte [eax + 1], cl
jmp 0x524b34
movzx ecx, byte [esi + ebx + 1]
shr ecx, 4
or ecx, edx
mov cl, byte [ecx + 0x556440]
mov byte [eax + 1], cl
movzx ecx, byte [esi + ebx + 1]
and ecx, 0xf
mov dl, byte [ecx*4 + 0x556440]
mov byte [eax + 2], dl
mov byte [eax + 3], 0x3d
add eax, 4
pop edi
mov byte [eax], 0
sub eax, ebp
pop esi
pop ebp
inc eax
pop ebx
ret

Function at 0x524eb0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x54a549
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x592884]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x218]
xor eax, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0
mov word [ebp], ax
mov word [ebp + 0x208], ax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x21c]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x524f6a
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
js 0x524f59
push 0x104
lea eax, [ebp]
push eax
push 0x8000
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00524d70
add esp, 0x14
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x524f6a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov dword [esi + 0x10], 0
lea ecx, [ebp]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x524f83
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0040e3c0
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x524fb7
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.004f6f55
lea esp, [ebp + 0x210]
pop ebp
ret
Function at 0x401140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
jne 0x401159
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov esi, eax
test esi, esi
jne 0x40116d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40118e
cmp esi, eax
jae 0x401167
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401180
cmp esi, eax
jae 0x401167
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret