joyce8/EMBER2024-capa huggingface dataset:
Function at 0x545620
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0
push 0x40
push 0
lea ecx, [ebp - 0x44]
push ecx
call fcn.005533a0
add esp, 0xc
mov dword [ebp - 0x60], 0
push 0x44
push 0
lea edx, [ebp - 0x48]
push edx
call fcn.005533a0
add esp, 0xc
push 0x10
push 0
lea eax, [ebp - 0x58]
push eax
call fcn.005533a0
add esp, 0xc
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
xor ecx, ecx
mov word [ebp - 0x18], cx
mov dword [ebp - 0x60], 0x400
mov edx, dword [ebp - 0x60]
or edx, 0x10
mov dword [ebp - 0x60], edx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x60]
push edx
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x5456de
cmp dword [ebp + 0xc], 0
je 0x5456de
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x5c]
mov esp, ebp
pop ebp
ret

Function at 0x545850
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0xffff
movzx ecx, ax
and ecx, 0xff
movzx edx, cl
cmp edx, 5
jne 0x545898
mov eax, dword [ebp - 4]
and eax, 0xffff
movzx ecx, ax
shr ecx, 8
and ecx, 0xff
movzx edx, cl
test edx, edx
jbe 0x545898
mov eax, 1
jmp 0x54589a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x5458a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0xffff
movzx ecx, ax
and ecx, 0xff
movzx edx, cl
cmp edx, 6
jne 0x5458cd
mov eax, 1
jmp 0x5458cf
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x548420
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58f8b6
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5deba8]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x240], 0
lea ecx, [ebp - 0x14]
call fcn.0041d970
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x548480
push 0x208
lea eax, [ebp - 0x224]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x548491
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x224]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x5485c5
mov dword [ebp - 0x234], 0
mov edx, dword [ebp - 0x18]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x22c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x224]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x230]
push eax
push 0x5a43c4
mov ecx, dword [ebp - 0x22c]
push ecx
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [ebp - 0x230]
mov eax, dword [edx + 0x10]
shr eax, 0x10
and eax, 0xffff
mov word [ebp - 0x23c], ax
mov ecx, dword [ebp - 0x230]
mov edx, dword [ecx + 0x10]
and edx, 0xffff
mov word [ebp - 0x23a], dx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 0x14]
shr ecx, 0x10
and ecx, 0xffff
mov word [ebp - 0x238], cx
mov edx, dword [ebp - 0x230]
mov eax, dword [edx + 0x14]
and eax, 0xffff
mov word [ebp - 0x236], ax
movzx ecx, word [ebp - 0x236]
push ecx
movzx edx, word [ebp - 0x238]
push edx
movzx eax, word [ebp - 0x23a]
push eax
movzx ecx, word [ebp - 0x23c]
push ecx
push 0x5a43c8
lea edx, [ebp - 0x14]
push edx
call fcn.00423c30
add esp, 0x18
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041d990
mov eax, dword [ebp - 0x240]
or eax, 1
mov dword [ebp - 0x240], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0041dab0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0055338c
mov esp, ebp
pop ebp
ret
Function at 0x548610
Capabilities:
Create directory
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58f8f1
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x5deba8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x260], ecx
mov eax, dword [0x5a4824]
mov dword [ebp - 0x21c], eax
push 0x204
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.005533a0
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
call fcn.004011a0
add esp, 4
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041d9b0
mov dword [ebp - 4], 0
push str.upgrade
lea ecx, [ebp - 0x10]
call fcn.0041db50
push 0
lea ecx, [ebp - 0x10]
call fcn.0041e1e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.cooldock.exe
lea ecx, [ebp - 0x10]
call fcn.0041db50
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x220]
call fcn.0041d9b0
mov byte [ebp - 4], 1
push str.upgradecooldock.exe
lea ecx, [ebp - 0x220]
call fcn.0041db30
push 0
push 0
push 0x81c
mov edx, dword [0x5e24a4]
push edx
call fcn.004c56b0
add esp, 0x10
mov dword [ebp - 0x25c], 0
push 0x38
push 0
lea eax, [ebp - 0x258]
push eax
call fcn.005533a0
add esp, 0xc
mov dword [ebp - 0x25c], 0x3c
mov dword [ebp - 0x258], 0xc
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
lea ecx, [ebp - 0x220]
call fcn.0041e1e0
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x248], str.NewVersion
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 5
mov dword [ebp - 0x23c], 0
lea ecx, [ebp - 0x25c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x549ed0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5deba8]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0xc], 1
lea ecx, [ebp + 0xc]
call fcn.0041e2f0
cmp eax, 0xfe
jle 0x549f24
mov dword [ebp - 0x214], 0
lea ecx, [ebp + 8]
call fcn.0041dab0
lea ecx, [ebp + 0xc]
call fcn.0041dab0
mov eax, dword [ebp - 0x214]
jmp 0x54a019
lea ecx, [ebp + 0xc]
call fcn.0041e1e0
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x220]
mov eax, dword [edx + 4]
or eax, 0x20006
push eax
push 0
mov ecx, dword [ebp - 0x220]
add ecx, 0x10
call fcn.0041e1e0
push eax
mov ecx, dword [ebp - 0x220]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x549f97
mov dword [ebp - 0x218], 0
lea ecx, [ebp + 8]
call fcn.0041dab0
lea ecx, [ebp + 0xc]
call fcn.0041dab0
mov eax, dword [ebp - 0x218]
jmp 0x54a019
lea eax, [ebp - 0x210]
push eax
call fcn.00553809
add esp, 4
lea ecx, [eax + eax + 2]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x210]
push eax
push 1
push 0
lea ecx, [ebp + 8]
call fcn.0041e1e0
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x549fda
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0x220]
cmp dword [edx + 0xc], 0
jne 0x549ff0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x21c], edx
lea ecx, [ebp + 8]
call fcn.0041dab0
lea ecx, [ebp + 0xc]
call fcn.0041dab0
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055338c
mov esp, ebp
pop ebp
ret 8
Function at 0x54b290
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58fdb8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5deba8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
push 0x3e8
call fcn.00553501
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push 0x1f4
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp + 0xc]
call fcn.0041e1e0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x54b327
mov edx, dword [ebp - 0x10]
push edx
push 0x5bb960
lea eax, [ebp + 0xc]
push eax
call fcn.00423c30
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.005534f6
add esp, 4
lea ecx, [ebp + 0xc]
call fcn.0054e100
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041d990
mov ecx, dword [ebp - 0x1c]
or ecx, 1
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0041dab0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x54b360
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58fe1b
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5deba8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 1
push 0x48
call fcn.00553a71
add esp, 4
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x20], 0
je 0x54b3b3
mov ecx, dword [ebp - 0x20]
call fcn.0040de20
mov dword [ebp - 0x34], eax
jmp 0x54b3ba
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0054e620
mov byte [ebp - 4], 3
push 0
lea ecx, [ebp + 8]
call fcn.0041e1e0
push eax
lea ecx, [ebp - 0x24]
call fcn.0054e050
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3c]
call fcn.0054e0f0
push eax
lea ecx, [ebp - 0x10]
call fcn.0054e680
mov ecx, eax
call fcn.0040e060
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.0054e0d0
lea ecx, [ebp - 0x10]
call fcn.0054e680
mov ecx, eax
call fcn.0040c4d0
movzx eax, al
test eax, eax
jne 0x54b52a
push str.main
lea ecx, [ebp - 0x10]
call fcn.0054e680
mov ecx, eax
call fcn.0040bda0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x54b4b4
push str.Item
mov ecx, dword [ebp - 0x18]
call fcn.0040bda0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x54b4b4
push 3
push str.homepagetype
mov ecx, dword [ebp - 0x18]
call fcn.0040d960
lea ecx, [ebp + 0xc]
call fcn.0041e1e0
push eax
lea ecx, [ebp - 0x28]
call fcn.0054e050
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x44]
call fcn.0054e0f0
push eax
push str.homepage
mov ecx, dword [ebp - 0x18]
call fcn.0040d9e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0054e0d0
lea ecx, [ebp + 8]
call fcn.0041e1e0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x54b4e8
mov edx, dword [ebp - 0x14]
and edx, 0xfffffffe
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.0041e1e0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp + 8]
call fcn.0041e1e0
push eax
lea ecx, [ebp - 0x2c]
call fcn.0054e050
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x4c]
call fcn.0054e0f0
push eax
lea ecx, [ebp - 0x10]
call fcn.0054e680
mov ecx, eax
call fcn.0040e310
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0054e0d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0054e640
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0041dab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0041dab0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x54c350
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
or edx, 2
push edx
push 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x10
call fcn.0041e1e0
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x54c39a
mov dword [ebp - 0xc], 0
lea ecx, [ebp + 8]
call fcn.0041dab0
mov eax, dword [ebp - 0xc]
jmp 0x54c3e6
lea ecx, [ebp + 8]
call fcn.0041e1e0
push eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x54c3d4
mov dword [ebp - 0x10], 1
lea ecx, [ebp + 8]
call fcn.0041dab0
mov eax, dword [ebp - 0x10]
jmp 0x54c3e6
mov dword [ebp - 0x14], 0
lea ecx, [ebp + 8]
call fcn.0041dab0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 4

Function at 0x54c3f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
or edx, 0xf003f
push edx
push 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x10
call fcn.0041e1e0
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x54c43d
mov dword [ebp - 0xc], 0
lea ecx, [ebp + 8]
call fcn.0041dab0
mov eax, dword [ebp - 0xc]
jmp 0x54c491
push 0
push 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.0041e1e0
push eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x54c47f
mov dword [ebp - 0x10], 1
lea ecx, [ebp + 8]
call fcn.0041dab0
mov eax, dword [ebp - 0x10]
jmp 0x54c491
mov dword [ebp - 0x14], 0
lea ecx, [ebp + 8]
call fcn.0041dab0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 4
Function at 0x54c4a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
or edx, 0x20006
push edx
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
call fcn.0041e1e0
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x54c4f4
mov dword [ebp - 0xc], 0
lea ecx, [ebp + 8]
call fcn.0041dab0
mov eax, dword [ebp - 0xc]
jmp 0x54c54a
push 4
lea edx, [ebp + 0xc]
push edx
push 4
push 0
lea ecx, [ebp + 8]
call fcn.0041e1e0
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x54c51c
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0xc], 0
jne 0x54c52f
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp + 8]
call fcn.0041dab0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8

Function at 0x54c700
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590026
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x5deba8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x228], 0
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.005533a0
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x54c827
lea ecx, [ebp - 0x220]
call fcn.0041d970
mov dword [ebp - 4], 0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.0041daf0
push 0x5c
lea ecx, [ebp - 0x220]
call fcn.0041dcb0
push eax
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x220]
call fcn.0041de70
mov dword [ebp - 0x230], eax
mov edx, dword [ebp - 0x230]
mov dword [ebp - 0x234], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x234]
push eax
lea ecx, [ebp - 0x220]
call fcn.0041dad0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.0041dab0
lea ecx, [ebp - 0x220]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041d990
mov edx, dword [ebp - 0x228]
or edx, 1
mov dword [ebp - 0x228], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.0041dab0
mov eax, dword [ebp + 8]
jmp 0x54c846
push 0x597d28
mov ecx, dword [ebp + 8]
call fcn.0041d9b0
mov eax, dword [ebp - 0x228]
or eax, 1
mov dword [ebp - 0x228], eax
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.0055338c
mov esp, ebp
pop ebp
ret 4
Function at 0x54d0f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59012b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5deba8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], 0
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.005533a0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.0041d9b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x220]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041d990
mov edx, dword [ebp - 0x224]
or edx, 1
mov dword [ebp - 0x224], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.0041dab0
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.0055338c
mov esp, ebp
pop ebp
ret 4

Function at 0x54d1d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59016b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5deba8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], 0
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.005533a0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.0041d9b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x220]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041d990
mov edx, dword [ebp - 0x224]
or edx, 1
mov dword [ebp - 0x224], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.0041dab0
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.0055338c
mov esp, ebp
pop ebp
ret 4

Function at 0x54d7d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5deba8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.005533a0
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 0
push 0
push 0x8026
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x54d851
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041d9b0
mov ecx, dword [ebp - 0x214]
or ecx, 1
mov dword [ebp - 0x214], ecx
mov eax, dword [ebp + 8]
jmp 0x54d870
push 0x597d28
mov ecx, dword [ebp + 8]
call fcn.0041d9b0
mov edx, dword [ebp - 0x214]
or edx, 1
mov dword [ebp - 0x214], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055338c
mov esp, ebp
pop ebp
ret 4
Function at 0x54e320
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
cmp dword [ebp + 0xc], 0
jne 0x54e336
mov eax, 1
jmp 0x54e35b
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x54e358
xor eax, eax
jmp 0x54e35b
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x552449
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x5e8020], 0
push esi
push edi
jne 0x5523ba
call fcn.00552314
test eax, eax
je 0x5523ff
mov eax, dword [0x5e8020]
cmp eax, 1
jne 0x5523db
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x5523ff
jmp 0x552441
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x552441
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x552403
xor eax, eax
jmp 0x552441
mov eax, dword [esi]
push dword [0x5e8020]
call edi
mov edi, eax
test edi, edi
je 0x552425
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x552441
lea edi, [esi + 0xff0]
push esi
push dword [0x5e8020]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x55242b
mov eax, esi
pop edi
pop esi
ret
jmp 0x5523a6

Function at 0x55338c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5deba8]
jne 0x553396
repz ret
jmp fcn.0055c7dc

Function at 0x557638
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x55765f
call fcn.0055d00e
mov dword [eax], esi
call fcn.0055cffb
push 0x16
pop esi
mov dword [eax], esi
call fcn.0055cf70
mov eax, esi
jmp 0x5576b4
test dword [ebp + 0xc], 0xfffffff9
jne 0x557645
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x55768c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0055d021
pop ecx
call fcn.0055cffb
mov eax, dword [eax]
jmp 0x5576b4
test al, 0x10
jne 0x5576b2
test al, 1
je 0x5576b2
test byte [ebp + 0xc], 2
je 0x5576b2
call fcn.0055d00e
mov dword [eax], 5
call fcn.0055cffb
mov dword [eax], 0xd
jmp 0x557683
xor eax, eax
pop esi
pop ebp
ret