joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5084d8
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x6b4888]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x128
xor edi, edi
push edi
push esi
call fcn.00592be0
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.005a568a
push eax
call fcn.00447111
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x5ec8b4]
je 0x508636
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x50864a
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x50864a
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
je 0x508594
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x508588
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.00508289
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x50858f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x508596
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.00508788
test eax, eax
je 0x5085bd
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.00508110
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x5085c1
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.00508788
test eax, eax
je 0x5085e8
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.00508110
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x5085ec
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.00508788
test eax, eax
je 0x508614
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.00508110
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x508616
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x508628
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x508636
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00590271
leave
ret 4
xor eax, eax
jmp 0x508639
Function at 0x515c9f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x515ccc
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x515ce1
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x515ce1
or dword [esi + 0x3c], 2
or dword [esi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004604d4
jmp 0x515db2
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004604d4
cmp eax, edi
jne 0x515dbc
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x515d4e
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x515d92
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x515dbc
cmp eax, 0x205
je 0x515dbc
cmp eax, 0x201
je 0x515dbc
cmp eax, 0x204
je 0x515dbc
cmp eax, 0x100
jne 0x515d7a
cmp dword [ebp - 0x18], 0x1b
je 0x515dbc
push dword [ebp - 8]
lea eax, [esi + 0x24]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, ebx
sbb edx, dword [ebp - 4]
test edx, edx
jb 0x515db2
ja 0x515dab
cmp eax, dword [0x1259acc]
jbe 0x515db2
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x515d03
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x516db5
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x516deb
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.00446959
test eax, eax
je 0x516dd3
mov eax, dword [eax + 0x20]
push 1
push edi
push ebx
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x55115e
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x5beba8
call fcn.00590932
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x551244
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x551244
cmp esi, 0x43
je 0x5511a0
cmp esi, 0x2d
jne 0x551244
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x551244
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00402230
movzx eax, byte [edi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [edi + 0xe5]
push eax
movzx eax, byte [edi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.00403860
mov esi, dword [ebp - 0x10]
add esp, 0x14
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x551232
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x551232
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
call fcn.00402e20
push ebx
mov ecx, edi
call fcn.0045d9ad
call fcn.00590900
ret 4
Function at 0x554e81
Capabilities:
Get file system object information

Disassembly:
push 0x398
mov eax, 0x5c6e8e
call fcn.00590965
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3a0], edi
test ecx, ecx
je 0x555012
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x554fe4
sub eax, 1
je 0x554f00
sub eax, 1
je 0x554ed8
sub eax, 1
je 0x554f00
push 0x5cc284
mov ecx, edi
call fcn.00446a8a
mov eax, edi
call fcn.00590914
ret 0x10
push 0x408
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x554ec2
lea eax, [ebp - 0x28c]
push eax
jmp 0x554ec7
lea eax, [ebp - 0x114]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x554ec2
push esi
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x238], esi
push eax
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
call fcn.0050864e
test eax, eax
je 0x554ec2
lea ecx, [ebp - 0x3a0]
call fcn.00402230
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x554f9a
test byte [ebp - 0x21c], 0x18
jne 0x554fbc
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
push dword [ebp - 0x220]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x224]
call dword [0x5cba4c]
mov ecx, ebx
call esi
jmp 0x554fbc
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
lea ecx, [ebp - 0x234]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x5cba4c]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x3a0]
add eax, 0xfffffff0
push eax
call fcn.004473b0
pop ecx
mov ecx, dword [ebp - 0x3a0]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.00402e20
jmp 0x554ece
push 0x208
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x554ec2
lea eax, [ebp - 0x390]
jmp 0x554efd
call fcn.004597d1
int3

Function at 0x55518a
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0058aa07
call fcn.00467401
cmp dword [eax + 0x14], 0
jne 0x5551a5
mov ecx, esi
pop esi
jmp fcn.005544a3
pop esi
ret
Function at 0x5552a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00465523
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x5552dc
call fcn.005554bd
mov dword [esi + 0xc], 1
jmp 0x5552e1
call fcn.005554bd
cmp dword [esi], 0
je 0x55532c
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x555307
push edi
call fcn.0045a029
lea ecx, [edi + 1]
push ecx
jmp 0x555316
push 0xff
call fcn.00403340
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00455c53
pop edi
jmp 0x555350
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x555350
push dword [esi]
push dword [ebp - 4]
call fcn.0046871e
pop esi
leave
ret 0xc

Function at 0x555414
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.005554bd
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x55545c
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0045a029
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00455c53
jmp 0x555467
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0046871e
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x5559ad
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.005abbb3
pop ecx
test eax, eax
jne 0x5559ef
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0040bd80
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5559b5
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret
Function at 0x565a79
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x565bbf
mov ecx, 0x6b44f4
call fcn.00466d20
mov esi, eax
test esi, esi
je 0x565bb4
xor eax, eax
cmp word [esi + 8], ax
jne 0x565b7e
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x565b3a
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x565b00
push str.MS_UI_Gothic
call fcn.00565bfd
pop ecx
test eax, eax
je 0x565b00
mov eax, edi
neg eax
push 0xfc11
sbb eax, eax
and eax, 0xe
add eax, 0x3ee
push eax
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x565b1b
neg edi
push 5
sbb edi, edi
and edi, 0xe
add edi, 0x3ee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x565b3a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test eax, eax
je 0x565b40
push ebx
push edi
push eax
call fcn.004e0ec8
add esp, 0xc
jmp 0x565b40
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.00459b32
pop ecx
pop ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x565bb9
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.00467b18
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x565b81
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x565b8f
push edi
call fcn.005a3020
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.00402960
movzx ecx, word [esi + 8]
mov edx, 0xffff
xor eax, eax
mov word [ebx], cx
pop edi
cmp cx, dx
pop esi
setne al
pop ebx
pop ebp
ret 0xc
call fcn.004597d1
call fcn.004597eb
int3

Function at 0x587f8e
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x6b4888]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x168], esi
test eax, eax
je 0x587ff8
push 0x208
push 0x160
lea ecx, [ebp - 0x164]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, esi
test eax, eax
je 0x587fdd
lea eax, [ebp - 0x158]
push eax
jmp 0x587fe2
push 0x603520
call fcn.00446a8a
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00590271
leave
ret 8
call fcn.004597d1
int3

Function at 0x5884dd
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call sym.Install.dat__CrtDoForAllClientObjects
call fcn.00467401
cmp dword [eax + 0x14], 0
jne 0x5884f8
mov ecx, esi
pop esi
jmp fcn.00587d38
pop esi
ret
Function at 0x5911cd
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x59120c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x59120c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x59120c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x59120c
cmp dword [ecx + 0x74], 0xe
jbe 0x59120c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x5920e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push 0
push 0
push dword [ebp + 0xc]
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
je 0x592145
lea eax, [ebx + ebx]
push esi
push eax
call sym.Install.dat_malloc
push dword [edi]
mov esi, eax
call sym.Install.dat__aligned_free
push 0
mov dword [edi], esi
call sym.Install.dat__aligned_free
add esp, 0xc
push ebx
push dword [edi]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebx - 1]
pop esi
cmp eax, ecx
je 0x592145
push dword [edi]
call sym.Install.dat__aligned_free
add esp, 4
mov dword [edi], 0
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5b0f57
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x60a010
push 0x60a008
push str.FlsAlloc
push 0x1f
call fcn.005b0dd6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5b0f8b
push dword [ebp + 8]
mov ecx, esi
call dword [0x5cba4c]
call esi
jmp 0x5b0f91
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5b0fd5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x60a020
push 0x60a018
push str.FlsGetValue
push 0x21
call fcn.005b0dd6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5b100c
push dword [ebp + 8]
mov ecx, esi
call dword [0x5cba4c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x5b1014
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x60a028
push 0x60a020
push str.FlsSetValue
push 0x22
call fcn.005b0dd6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5b104e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5cba4c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x5b5936
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x5b59d3
push ebx
push esi
call fcn.005b58ff
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.005b2f31
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5b5980
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5b59d2
push edi
push eax
call sym.Install.dat__malloc_base
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5b59a0
call sym.Install.dat__aligned_free_dbg
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5b59d1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005b2f31
add esp, 0x20
test eax, eax
jne 0x5b59bf
push edi
call sym.Install.dat__aligned_free_dbg
jmp 0x5b59c7
push ebx
call sym.Install.dat__aligned_free_dbg
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x5b59d6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5b59e7
pop esi
ret
push ebx
push edi
push esi
call fcn.005b58ff
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call sym.Install.dat__malloc_base
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5b5a0f
push ebx
push esi
push edi
call fcn.005932b0
add esp, 0xc
push 0
call sym.Install.dat__aligned_free_dbg
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5b6169
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005b5c84

Function at 0x5ba460
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5ba48d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5ba48d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4847c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x26000]
push edi
jmp 0x4847da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4847e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4847d0
mov eax, 1
add ebx, ebx
jne 0x4847f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x484804
jne 0x484823
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x484823
dec eax
add ebx, ebx
jne 0x484810
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4847e8
add ebx, ebx
jne 0x48481f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x484875
xor ecx, ecx
sub eax, 3
jb 0x48483b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4848aa
sar eax, 1
mov ebp, eax
jmp 0x484846
add ebx, ebx
jne 0x484846
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x484814
inc ecx
add ebx, ebx
jne 0x484854
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x484814
add ebx, ebx
jne 0x484861
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x484856
jne 0x484872
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x484856
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x484894
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x484886
jmp 0x4847d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x484894
add edi, ecx
jmp 0x4847d6
pop esi
mov edi, esi
mov ecx, 0xe52
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4848b2
cmp byte [edi], 5
jne 0x4848b2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4848b7
lea edi, [esi + 0x7b000]
mov eax, dword [edi]
or eax, eax
je 0x48492f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x85488]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x85538]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4848e4
mov ecx, edi
jns 0x484913
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x85540]
or eax, eax
je 0x484929
mov dword [ebx], eax
add ebx, 4
jmp 0x484901
call dword [esi + 0x8553c]
mov ebp, dword [esi + 0x85544]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x484963
sub esp, 0xffffff80
jmp 0x41224b
Function at 0x4019f0
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x804
mov eax, dword [0x42b1ec]
xor eax, esp
mov dword [esp + 0x800], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00414c60
add esp, 0xc
lea edx, [esp]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x401a46
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.0040ce2f
add esp, 0x804
ret
push str.AskSearch
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edx, [esp]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [esp + 0x800]
xor ecx, esp
mov eax, 1
call fcn.0040ce2f
add esp, 0x804
ret

Function at 0x4020f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x423537
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42b1ec]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [edi], 0x426774
mov dword [edi + 0x54], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 4]
push esi
mov dword [esp + 0x20], ebx
push edi
mov dword [esp + 0x18], 1
call fcn.004032d0
mov dword [esp + 0x1c], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
call fcn.00403c60
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x42d780]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4