joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b308b
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x100c4fd6
call fcn.100b86e4
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.1000292b
xor ebx, ebx
lea ecx, [esi + 0xc]
mov dword [ebp - 4], ebx
call fcn.1000292b
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
call fcn.1000292b
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 2
call fcn.1000292b
or dword [esi + 0x7c], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x64], bl
mov byte [esi + 0x65], bl
mov byte [esi + 0x66], bl
mov byte [esi + 0x67], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x100b4571
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x100c5156
call fcn.100b86e4
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, ecx
push esi
mov dword [ebp - 0x10], ebx
call fcn.10002987
and dword [ebp - 4], 0
lea eax, [esi + 0xc]
push eax
lea ecx, [ebx + 0xc]
call fcn.10002987
mov eax, dword [esi + 0x18]
lea ecx, [ebx + 0x4c]
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [ebx + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [ebx + 0x2c], eax
mov eax, dword [esi + 0x30]
mov dword [ebx + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [ebx + 0x34], eax
mov eax, dword [esi + 0x38]
mov dword [ebx + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [ebx + 0x3c], eax
mov eax, dword [esi + 0x40]
mov dword [ebx + 0x40], eax
mov eax, dword [esi + 0x44]
mov dword [ebx + 0x44], eax
mov eax, dword [esi + 0x48]
mov dword [ebx + 0x48], eax
lea eax, [esi + 0x4c]
push eax
mov byte [ebp - 4], 1
call fcn.10002987
lea eax, [esi + 0x58]
lea ecx, [ebx + 0x58]
push eax
mov byte [ebp - 4], 2
call fcn.10002987
mov al, byte [esi + 0x64]
push 5
mov byte [ebx + 0x64], al
mov al, byte [esi + 0x65]
mov byte [ebx + 0x65], al
mov al, byte [esi + 0x66]
mov byte [ebx + 0x66], al
mov al, byte [esi + 0x67]
mov byte [ebx + 0x67], al
mov eax, dword [ebp + 8]
add esi, 0x68
lea edi, [ebx + 0x68]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x7c]
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x7c], eax
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x100b681a
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x100e2a3c], 0
push esi
mov esi, edx
jne 0x100b684f
mov edx, ecx
lea ecx, [ebp - 0xc]
call fcn.1000390e
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, eax
push dword [ebp - 0xc]
call fcn.10004064
pop ecx
test esi, esi
jmp 0x100b6859
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x100b685f
mov al, 1
jmp 0x100b6861
xor al, al
pop esi
leave
ret

Function at 0x100b6864
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x100e2a3c], 0
jne 0x100b6899
mov edx, ecx
push esi
lea ecx, [ebp - 0xc]
call fcn.1000390e
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
push dword [ebp - 0xc]
call fcn.10004064
pop ecx
test esi, esi
pop esi
jmp 0x100b68a4
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x100b68aa
mov al, 1
leave
ret
xor al, al
leave
ret

Function at 0x100b68ae
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.100b6ea3
cmp eax, 0xffffffff
je 0x100b68d9
test al, 0x10
jne 0x100b68d9
test al, 1
je 0x100b68d9
mov edx, eax
mov ecx, esi
and edx, 0xfffffffe
call fcn.100b681a
test al, al
je 0x100b6912
cmp byte [0x100e2a3c], 0
jne 0x100b6903
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.1000390e
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
push dword [ebp - 0xc]
call fcn.10004064
pop ecx
test esi, esi
jmp 0x100b690c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x100b6912
mov al, 1
jmp 0x100b6914
xor al, al
pop esi
leave
ret

Function at 0x100b6917
Capabilities:
Get common file path

Disassembly:
mov eax, 0x100c53d0
call fcn.100b86e4
sub esp, 0x320
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi]
mov dword [esi + 4], ebx
mov word [eax], bx
cmp byte [0x100e2a3c], bl
jne 0x100b697c
lea eax, [ebp - 0x120]
mov byte [ebp - 0x120], bl
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x18]
mov edi, eax
call fcn.1000395d
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.1000324c
push dword [ebp - 0x18]
call fcn.10004064
pop ecx
jmp 0x100b69a5
lea eax, [ebp - 0x32c]
mov word [ebp - 0x32c], bx
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
lea eax, [ebp - 0x32c]
push eax
mov ecx, esi
call fcn.100031e8
cmp edi, ebx
jbe 0x100b69b6
cmp edi, 0x104
ja 0x100b69b6
push 1
pop eax
jmp 0x100b69b8
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x100b6ea3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x100e2a3c], 0
jne 0x100b6ed5
mov edx, ecx
push esi
lea ecx, [ebp - 0xc]
call fcn.1000390e
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
push dword [ebp - 0xc]
call fcn.10004064
pop ecx
mov eax, esi
pop esi
leave
ret
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100b6ee3
or eax, eax
leave
ret

Function at 0x100bbe47
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x100e2788
cmp edx, dword [eax]
je 0x100bbe69
add eax, 8
inc ecx
cmp eax, 0x100e2818
jl 0x100bbe5a
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x100e2788]
jne 0x100bbf97
mov eax, dword [0x100e69a4]
cmp eax, 1
je 0x100bbf71
test eax, eax
jne 0x100bbe9a
cmp dword [0x100e69a8], 1
je 0x100bbf71
cmp edx, 0xfc
je 0x100bbf97
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100bbed1
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.100b9850
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.100b8710
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x100bbf14
lea eax, [ebp - 0x1a4]
push eax
call fcn.100b8710
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x100d0f88
push edi
call fcn.100bc480
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.100b9850
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.100b9860
lea eax, [ebp - 0xa0]
push 0x100d0f68
push eax
call fcn.100b9860
push dword [esi + 0x100e278c]
lea eax, [ebp - 0xa0]
push eax
call fcn.100b9860
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.100bc3f5
add esp, 0x2c
pop edi
jmp 0x100bbf97
lea eax, [ebp + 8]
lea esi, [esi + 0x100e278c]
push 0
push eax
push dword [esi]
call fcn.100b8710
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x8e88d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa9000]
push edi
jmp 0x8e88ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8e88f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8e88e0
mov eax, 1
add ebx, ebx
jne 0x8e8903
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8e8914
jne 0x8e8933
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8e8933
dec eax
add ebx, ebx
jne 0x8e8920
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8e88f8
add ebx, ebx
jne 0x8e892f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8e8985
xor ecx, ecx
sub eax, 3
jb 0x8e894b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8e89ba
sar eax, 1
mov ebp, eax
jmp 0x8e8956
add ebx, ebx
jne 0x8e8956
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8e8924
inc ecx
add ebx, ebx
jne 0x8e8964
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8e8924
add ebx, ebx
jne 0x8e8971
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8e8966
jne 0x8e8982
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8e8966
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8e89a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8e8996
jmp 0x8e88e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8e89a4
add edi, ecx
jmp 0x8e88e6
pop esi
mov edi, esi
mov ecx, 0xce
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8e89c2
cmp byte [edi], 6
jne 0x8e89c2
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 0x8e89c7
lea edi, [esi + 0x4e6000]
mov eax, dword [edi]
or eax, eax
je 0x8e8a36
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4ea90c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4ea948]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8e89f4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4ea950]
or eax, eax
je 0x8e8a30
mov dword [ebx], eax
add ebx, 4
jmp 0x8e8a11
call dword [esi + 0x4ea94c]
mov ebp, dword [esi + 0x4ea954]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x8e8a6a
sub esp, 0xffffff80
jmp 0x403861
Function at 0x401770
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
xor eax, eax
push edi
mov edi, dword [ebp + 8]
shl edi, 4
lea esi, [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
lea esi, [esi + 4]
mov edx, dword [esi - 4]
add ecx, edi
movzx ecx, byte [ecx + eax]
xor byte [edx], cl
mov ecx, dword [ebx + 0x10]
mov edx, dword [esi - 4]
add ecx, edi
movzx ecx, byte [ecx + eax + 4]
xor byte [edx + 1], cl
mov ecx, dword [ebx + 0x10]
mov edx, dword [esi - 4]
add ecx, edi
movzx ecx, byte [ecx + eax + 8]
xor byte [edx + 2], cl
mov ecx, dword [ebx + 0x10]
mov edx, dword [esi - 4]
add ecx, edi
movzx ecx, byte [ecx + eax + 0xc]
inc eax
xor byte [edx + 3], cl
cmp eax, 4
jl 0x401783
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x401a50
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov dword [ebp - 0x10], edx
test esi, esi
je 0x401b95
test edx, edx
js 0x401b95
mov eax, dword [ebp + 8]
test eax, eax
je 0x401b7c
push ebx
mov ebx, edx
mov dword [ebp - 8], ebx
test edx, edx
jle 0x401b76
push edi
cmp ebx, 3
jl 0x401afb
mov dl, byte [esi + 1]
mov cl, byte [esi]
mov bl, byte [esi + 2]
add esi, 3
mov dword [ebp - 0xc], esi
movzx esi, cl
mov ecx, esi
movzx edi, dl
shr ecx, 2
shl esi, 4
movsx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [eax], cx
mov ecx, edi
shr ecx, 4
or ecx, esi
movzx esi, bl
mov ebx, dword [ebp - 8]
and ecx, 0x3f
mov edx, esi
shr edx, 6
movsx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [eax + 2], cx
lea ecx, [edi*4]
or edx, ecx
and edx, 0x3f
and esi, 0x3f
movsx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [eax + 4], cx
lea ecx, [eax + 6]
movsx ax, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov esi, dword [ebp - 0xc]
jmp 0x401b5e
mov dl, byte [esi]
inc esi
cmp ebx, 2
jne 0x401b0b
mov cl, byte [esi]
inc esi
mov byte [ebp - 1], cl
jmp 0x401b0f
mov byte [ebp - 1], 0
movzx edi, byte [ebp - 1]
movzx edx, dl
mov ecx, edx
shl edx, 4
shr ecx, 2
movsx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [eax], cx
mov ecx, edi
shr ecx, 4
or ecx, edx
and ecx, 0x3f
movsx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [eax + 2], cx
cmp ebx, 1
jne 0x401b47
lea ecx, [ebx + 0x3c]
jmp 0x401b52
and edi, 0xf
movsx ecx, byte [edi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [eax + 4], cx
lea ecx, [eax + 6]
mov eax, 0x3d
sub ebx, 3
mov word [ecx], ax
mov dword [ebp - 8], ebx
lea eax, [ecx + 2]
test ebx, ebx
jg 0x401a86
mov edx, dword [ebp - 0x10]
pop edi
xor ecx, ecx
mov word [eax], cx
pop ebx
lea ecx, [edx + 2]
mov eax, 0x55555556
imul ecx
pop esi
mov eax, edx
shr eax, 0x1f
add eax, edx
shl eax, 2
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402340
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ceb6b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5053a4]
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
push 0x4f5814
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a7a60
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00403bb0
lea eax, [ebp - 0x224]
push eax
call fcn.00401e10
mov dword [ebp - 4], 0
lea ecx, [esi + 0x4a0]
mov edx, dword [eax]
or edi, 0xffffffff
mov esi, dword [ecx]
sub esi, 0x10
mov dword [ebp - 0x220], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x21c], eax
cmp eax, esi
je 0x40243a
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x402431
mov eax, dword [eax]
cmp eax, dword [esi]
jne 0x402431
mov ecx, dword [ebp - 0x21c]
call fcn.00408030
mov dword [ebp - 0x21c], eax
mov ecx, edi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x402424
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
add eax, 0x10
mov dword [ecx], eax
jmp 0x40243a
push dword [edx - 0xc]
push edx
call fcn.004085d0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x40245c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.004a4bf6
mov esp, ebp
pop ebp
ret

Function at 0x4035c0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.00402480
mov ecx, esi
call fcn.00402340
push 0
push 0
push esi
push 0x403610
push 0
push 0
call fcn.004aebcb
add esp, 0x18
cmp byte [esi + 0x4a9], 0
je 0x403604
push 0
push 0
push esi
push 0x403580
push 0
push 0
call fcn.004aebcb
add esp, 0x18
pop esi
ret
Function at 0x403ef0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cee08
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x5053a4]
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, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
test esi, esi
jne 0x403f2c
xor al, al
jmp 0x40404c
mov ecx, esi
call fcn.0040d930
test eax, eax
je 0x403f25
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x38
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.004a7a60
add esp, 0xc
mov dword [ebp - 0x50], 0x3c
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x4c], 0x40
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0x4f5ad0
push edi
mov dword [ebp - 0x14], 0
call fcn.00408680
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jl 0x403fc0
push 0x4f5adc
push eax
call fcn.004a7724
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x14]
test ecx, ecx
je 0x403fc0
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x403fc0
push edi
lea eax, [ebp - 0x14]
push 0x4f5ae0
push eax
call fcn.00407520
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x40], esi
mov edx, 1
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, edx
jge 0x403fdf
push 0
lea ecx, [ebp - 0x14]
call fcn.00408460
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne bl
test bl, bl
je 0x404022
cmp byte [ebp + 0x18], 0
je 0x404022
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x404022
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40404a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.004a4bf6
mov esp, ebp
pop ebp
ret 0x14
Function at 0x404c70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cef88
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x5053a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4f61c8
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.00408680
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x404cef
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
or ecx, edx
jge 0x404cd8
push 0
lea ecx, [ebp - 0x14]
call fcn.00408460
mov eax, dword [ebp - 0x14]
push 1
push 0
push 0
push eax
push 0x4f5ad0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x14]
lea edx, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404d0e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4bf6
mov esp, ebp
pop ebp
ret 4

Function at 0x404e70
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf011
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5053a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], esi
mov dword [esi], 0
call fcn.00408990
mov ecx, eax
test ecx, ecx
jne 0x404ecc
push 0x80004005
call fcn.00408740
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x2c], 1
push eax
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x404f38
push dword [ebp - 0x24]
lea eax, [ebp - 0x30]
push dword [ebp - 0x28]
push eax
call fcn.00404d30
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.00406b20
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edi, dword [ebp - 0x30]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x404f38
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4bf6
mov esp, ebp
pop ebp
ret 8
Function at 0x404f70
Capabilities:
Get common file path
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf062
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5053a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
push eax
mov dword [ebp - 0x224], edi
mov dword [edi], 0
call fcn.00408680
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x220], 1
call fcn.004a7a60
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
add esp, 0xc
push 1
push 0x23
push eax
push 0
call esi
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
push str.commonappdata
call fcn.004068c0
push 1
push 0x19
lea eax, [ebp - 0x218]
push eax
push 0
call esi
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
push str.commondesktop
call fcn.004068c0
push 1
push 0x10
lea eax, [ebp - 0x218]
push eax
push 0
call esi
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
push str.userdesktop
call fcn.004068c0
push 1
push 0x1a
lea eax, [ebp - 0x218]
push eax
push 0
call esi
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
push str.userappdata
call fcn.004068c0
push 1
push 2
lea eax, [ebp - 0x218]
push eax
push 0
call esi
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
push str.usersmprograms
call fcn.004068c0
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
push 0x4f5d98
mov ecx, edi
call fcn.004068c0
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
push str.computername
call fcn.004068c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4bf6
mov esp, ebp
pop ebp
ret 8
Function at 0x405120
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf09b
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x5053a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x405260
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004a7a60
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a7a60
push 0
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
push esi
call fcn.004aef64
add esp, 0x2c
call fcn.00408990
mov ecx, eax
test ecx, ecx
jne 0x4051ae
push 0x80004005
call fcn.00408740
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x424]
push 0x4f5b08
push eax
call fcn.00407520
mov esi, dword [ebp - 0x424]
mov edi, 1
mov ecx, edi
add esp, 0x10
sub ecx, dword [esi - 4]
mov eax, dword [esi - 8]
or eax, ecx
jge 0x40520f
push 0
lea ecx, [ebp - 0x424]
call fcn.00408460
mov esi, dword [ebp - 0x424]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp eax, 0x10
je 0x405241
sub edi, dword [esi - 4]
mov eax, dword [esi - 8]
or eax, edi
jge 0x405238
push 0
lea ecx, [ebp - 0x424]
call fcn.00408460
mov esi, dword [ebp - 0x424]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x405260
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4bf6
mov esp, ebp
pop ebp
ret 4