joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4221d0
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 0x42226d
push ebx
push esi
call fcn.00422199
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.00420e1e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42221a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42226c
push edi
push eax
call fcn.0041baee
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42223a
call fcn.0041b886
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42226b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00420e1e
add esp, 0x20
test eax, eax
jne 0x422259
push edi
call fcn.0041b886
jmp 0x422261
push ebx
call fcn.0041b886
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 0x429440
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42946d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42946d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42a26f
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x40
push 0x1000
mov ebx, 0x4ac
xor ebp, ebp
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
mov edi, 0x468030
mov esi, eax
push edi
call fcn.0042a1ae
push ebx
push edi
push esi
call fcn.0040aff0
add esp, 0x14
call fcn.0042a194
push ebp
push ebp
push 0x436030
lea eax, [esi + 0x188]
push eax
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x402086
Capabilities:
Create thread

Disassembly:
push 0x10c
mov eax, 0x52593f
call fcn.004e27d2
mov edi, ecx
lea esi, [edi + 0x2c]
push str.closebtn
mov ecx, esi
call fcn.004483c9
push str.minbtn
mov ecx, esi
mov dword [edi + 0x35c], eax
call fcn.004483c9
push str.foreImage
mov ecx, esi
mov dword [edi + 0x358], eax
call fcn.004483c9
push 0x555fc8
mov ecx, esi
mov dword [edi + 0x3c0], eax
call fcn.004483c9
lea ecx, [ebp - 0x94]
mov dword [edi + 0x368], eax
call fcn.0044de23
xor ebx, ebx
lea edx, [ebp - 0x118]
mov dword [ebp - 4], ebx
mov ecx, dword [edi + 0x368]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0044df98
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], bl
call fcn.0044df15
lea eax, [edi + 0x384]
cmp dword [eax + 0x14], 8
jb 0x402130
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x94]
call fcn.0044e0d2
push ebx
push 0x32
push 0x3e8
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
push ebx
push ebx
push edi
push 0x402075
push ebx
push ebx
call fcn.004fe593
add esp, 0x18
lea ecx, [ebp - 0x94]
call fcn.0044df15
call fcn.004e277c
ret

Function at 0x403a3e
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x20
mov eax, 0x525a9d
call fcn.004e27d2
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x10], ebx
jne 0x403a5a
xor al, al
jmp 0x403b17
cmp dword [esi + 0x14], 0x10
jb 0x403a64
mov eax, dword [esi]
jmp 0x403a66
mov eax, esi
test eax, eax
je 0x403a84
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403a84
shr eax, 4
and al, 1
je 0x403a84
mov al, 1
jmp 0x403b17
or edi, 0xffffffff
cmp dword [esi + 0x14], 0x10
jb 0x403a8f
mov esi, dword [esi]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], ebx
push eax
push 0x555be4
push esi
mov dword [ebp - 0x2c], ebx
call fcn.004fe934
add esp, 0xc
jmp 0x403afe
push esi
call fcn.00402ce5
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.0040c6c1
mov esi, 0x555be4
push esi
call fcn.00402ce5
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.0040c6c1
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00503e47
mov edi, eax
lea eax, [ebp - 0x2c]
push eax
push esi
push ebx
call fcn.004fe934
add esp, 0x10
mov esi, eax
test esi, esi
jne 0x403ab6
cmp edi, 0xffffffff
lea ecx, [ebp - 0x28]
push eax
push 1
setne bl
call fcn.0040c02b
mov al, bl
call fcn.004e277c
ret
Function at 0x40a248
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x5269d0
call fcn.004e27d2
mov esi, ecx
mov dword [ebp - 0x30], esi
mov ecx, dword [ebp + 8]
or ebx, 0xffffffff
cmp ecx, ebx
sete al
test al, al
je 0x40a274
xor eax, eax
cmp ecx, ebx
cmovne eax, ecx
jmp 0x40a3d5
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40a2a2
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40a2a2
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x40a3d5
cmp dword [esi + 0x4c], 0
je 0x40a3d3
mov ecx, esi
call fcn.0040c8d9
xor ecx, ecx
cmp dword [esi + 0x38], ecx
jne 0x40a2d2
push dword [esi + 0x4c]
mov esi, dword [ebp + 8]
push esi
call fcn.00403625
test al, al
pop ecx
pop ecx
cmovne ebx, esi
jmp 0x40a3d3
mov eax, dword [ebp + 8]
push ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov byte [ebp - 0x2c], al
mov dword [ebp - 0x14], 0xf
call fcn.0040c504
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x14]
mov esi, dword [esi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp edi, 0x10
lea edx, [ebp - 0x28]
mov edi, dword [esi]
cmovae ecx, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
call dword [edi + 0x1c]
test eax, eax
js 0x40a3c7
cmp eax, 1
jg 0x40a3ac
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x30]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x3c], edx
je 0x40a37d
push dword [esi + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call fcn.005032e0
mov edx, dword [ebp - 0x3c]
add esp, 0x10
cmp edx, eax
jne 0x40a3c7
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x40], eax
jne 0x40a3a7
test edx, edx
jne 0x40a2fd
cmp dword [ebp - 0x18], 0x20
jae 0x40a3c7
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.0040c661
jmp 0x40a2fa
mov ebx, dword [ebp + 8]
jmp 0x40a3c7
cmp eax, 3
jne 0x40a3c7
mov eax, dword [ebp - 0x30]
push dword [eax + 0x4c]
push dword [ebp - 0x2c]
call fcn.00403625
test al, al
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040c02b
mov eax, ebx
call fcn.004e277c
ret 4
Function at 0x41ab14
Capabilities:
Get disk size

Disassembly:
push 0x124
mov eax, 0x528177
call fcn.004e27d2
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x94]
and dword [ebp - 0x124], 0
mov dword [ebp - 0x128], 0x100000
call fcn.0044de23
and dword [ebp - 4], 0
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x128]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
test eax, eax
setne bl
test bl, bl
je 0x41ac11
lea esi, [edi + 0x4f8]
cmp dword [esi + 0x14], 8
jb 0x41ab7f
mov esi, dword [esi]
mov edx, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x120]
call fcn.004e2d20
movss xmm1, dword [0x560bd0]
lea eax, [ebp - 0x94]
cvtsd2ss xmm0, xmm0
push ecx
push ecx
mulss xmm0, xmm1
mulss xmm0, xmm1
mulss xmm0, xmm1
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
push esi
push eax
call fcn.0044e3dd
mov edx, dword [ebp - 0x11c]
add esp, 0x10
mov ecx, dword [ebp - 0x120]
call fcn.004e2d20
movss xmm1, dword [0x560bd0]
lea ecx, [ebp - 0x94]
mov eax, dword [edi + 0x37c]
cvtsd2ss xmm0, xmm0
mulss xmm0, xmm1
mulss xmm0, xmm1
mulss xmm0, xmm1
movss dword [edi + 0x4d8], xmm0
mov esi, dword [eax]
call fcn.0044e46d
mov ecx, dword [edi + 0x37c]
push eax
call dword [esi + 0x2c]
push str.ProductSize
lea ecx, [edi + 0x2c]
call fcn.004483c9
lea ecx, [ebp - 0x118]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x28]
lea esi, [edi + 0x4e0]
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x41ac3e
mov esi, dword [esi]
mov ecx, eax
call fcn.0044e46d
push eax
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.0044e3dd
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x118]
call fcn.0044df15
mov ecx, dword [edi + 0x378]
mov esi, dword [ecx]
lea ecx, [ebp - 0x94]
call fcn.0044e46d
mov ecx, dword [edi + 0x378]
push eax
call dword [esi + 0x2c]
lea ecx, [ebp - 0x94]
call fcn.0044df15
mov al, bl
call fcn.004e277c
ret 4
Function at 0x42412b
Capabilities:
Delete file

Disassembly:
push 0x64
mov eax, 0x529410
call fcn.004e27d2
mov esi, ecx
push 7
pop ecx
xor ebx, ebx
mov dword [ebp - 0x14], ecx
xor eax, eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], ax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.004232fb
xor edi, edi
lea eax, [ebp - 0x70]
inc edi
mov ecx, esi
push edi
push eax
call fcn.0042363c
push eax
lea ecx, [ebp - 0x58]
call fcn.004021ad
push ebx
push edi
lea ecx, [ebp - 0x70]
call fcn.00402226
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00426998
push 0x55b254
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0042777e
add esp, 0xc
lea ecx, [ebp - 0x40]
push eax
call fcn.004021ad
push ebx
push edi
lea ecx, [ebp - 0x70]
call fcn.00402226
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
push ebx
push edi
lea ecx, [ebp - 0x40]
call fcn.00402226
push ebx
push edi
lea ecx, [ebp - 0x58]
call fcn.00402226
push ebx
push edi
lea ecx, [ebp - 0x28]
call fcn.00402226
call fcn.004e277c
ret
Function at 0x42513b
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x5269d0
call fcn.004e27d2
mov esi, ecx
mov dword [ebp - 0x30], esi
mov edi, dword [ebp + 8]
mov ebx, 0xffff
cmp bx, di
jne 0x425160
xor eax, eax
jmp 0x4252d5
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x42518c
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x42518c
dec dword [edx]
mov ax, di
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
jmp 0x4252d5
cmp dword [esi + 0x4c], 0
je 0x4252d2
mov ecx, esi
call fcn.00426a37
xor ecx, ecx
cmp dword [esi + 0x38], ecx
jne 0x4251c0
push dword [esi + 0x4c]
push edi
call fcn.005090a9
pop ecx
pop ecx
cmp ax, bx
je 0x4252d2
movzx ebx, di
jmp 0x4252d2
push ecx
movzx eax, di
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 0xf
call fcn.0040c504
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x14]
mov esi, dword [esi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp edi, 0x10
lea edx, [ebp - 0x28]
mov edi, dword [esi]
cmovae ecx, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
lea eax, [ebp - 0x2a]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
call dword [edi + 0x1c]
test eax, eax
js 0x4252c6
cmp eax, 1
jg 0x4252a0
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x30]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x3c], edx
je 0x42526b
push dword [esi + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call fcn.005032e0
mov edx, dword [ebp - 0x3c]
add esp, 0x10
cmp edx, eax
jne 0x42529b
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
mov byte [esi + 0x3e], 1
cmp dword [ebp - 0x40], eax
jne 0x425295
test edx, edx
jne 0x4251eb
cmp dword [ebp - 0x18], 0x20
jae 0x4252c0
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.0040c661
jmp 0x4251e8
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx ebx, bx
jmp 0x4252c0
cmp eax, 3
jne 0x4252c6
mov eax, dword [ebp - 0x30]
push dword [eax + 0x4c]
push dword [ebp - 0x2c]
call fcn.005090a9
pop ecx
pop ecx
cmp ax, bx
je 0x4252c0
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx eax, bx
movzx ebx, ax
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040c02b
mov ax, bx
call fcn.004e277c
ret 4
Function at 0x426ac1
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x526bd9
call fcn.004e27d2
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x426bc8
cmp byte [ebx + 0x3e], 0
je 0x426bc8
mov eax, dword [ebx]
mov esi, 0xffff
push esi
call dword [eax + 0xc]
movzx eax, ax
cmp si, ax
sete al
test al, al
je 0x426b02
xor al, al
jmp 0x426bca
xor eax, eax
mov dword [ebp - 0x18], 0xf
push eax
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
call fcn.0040c504
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
lea eax, [ebp - 0x30]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x2c]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x426b60
sub eax, 1
je 0x426b64
dec eax
sub eax, 1
je 0x426bb6
xor bl, bl
jmp 0x426bb8
mov byte [ebx + 0x3e], 0
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
cmp ecx, 0x10
mov esi, dword [ebp - 0x30]
cmovae eax, edx
sub esi, eax
je 0x426b9c
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.005032e0
add esp, 0x10
cmp esi, eax
jne 0x426b5c
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
cmp byte [ebx + 0x3e], 0
je 0x426bb6
test esi, esi
jne 0x426b26
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040c661
jmp 0x426b20
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040c02b
mov al, bl
jmp 0x426bca
mov al, 1
call fcn.004e277c
ret
Function at 0x42ff2b
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x578704]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x55ed64
mov dword [ebp - 0x244], ecx
lea edi, [ebp - 0x20c]
xor ebx, ebx
push 0x1fa
lea eax, [ebp - 0x1fe]
movsd dword es:[edi], dword [esi]
push ebx
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.004fb430
xor eax, eax
mov dword [ebp - 0x248], ebx
lea edi, [ebp - 0x218]
add esp, 0xc
stosd dword es:[edi], eax
push 0xa
stosd dword es:[edi], eax
pop ecx
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x240]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x244]
cmp cx, 0x41
jb 0x42ff9e
cmp cx, 0x5a
jbe 0x42ffa7
lea eax, [ecx - 0x61]
cmp ax, 0x19
ja 0x430018
push ebx
push 0x80
push 3
push ebx
push 3
push closesocket
lea eax, [ebp - 0x20c]
mov word [ebp - 0x204], cx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x430014
push ebx
lea eax, [ebp - 0x248]
mov dword [ebp - 0x214], ebx
push eax
push 0x28
lea eax, [ebp - 0x240]
mov dword [ebp - 0x218], ebx
push eax
push 0xc
lea eax, [ebp - 0x218]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
cmovne ebx, dword [ebp - 0x224]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, ebx
jmp 0x43001a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e1d28
mov esp, ebp
pop ebp
ret

Function at 0x43002b
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x578704]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x208
lea eax, [ebp - 0x414]
push esi
xor edi, edi
push edi
push eax
call fcn.004fb430
push esi
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.004fb430
push esi
lea eax, [ebp - 0x61c]
push edi
push eax
call fcn.004fb430
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004fb430
add esp, 0x30
lea eax, [ebp - 0x414]
push 0x100
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push edi
push edi
push edi
push edi
mov ecx, 0x104
lea eax, [ebp - 0x61c]
push ecx
push eax
push ecx
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0050dea5
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x20c]
push str._s_sts_downloader.cfg
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x34
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43010f
lea eax, [ebp - 0x20c]
push eax
push edi
push str.AutoRun
push str.Settings
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
dec eax
neg eax
sbb eax, eax
inc eax
jmp 0x430111
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004e1d28
mov esp, ebp
pop ebp
ret
Function at 0x4400a0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52bf5b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x578704]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0
mov dword [ebx], 0x5609e4
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [ebx]
push 0
push 0
mov dword [ebp - 0x14], 1
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00403405
push 8
call fcn.004e1d39
add esp, 4
mov esi, eax
push 1
mov dword [ebp - 4], 2
call fcn.00445134
mov dword [esi + 4], eax
add esp, 4
lea eax, [ebx + 0x10]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov ecx, edi
lea eax, [ebp - 0x20]
mov dword [edi + 0x3c], 0
push eax
call fcn.004034c2
push eax
mov dword [ebp - 4], 3
call fcn.0040e239
add esp, 4
mov esi, eax
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4401d9
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4401d9
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov byte [ebp - 4], 1
mov ecx, esi
mov eax, dword [esi]
push 0x20
mov eax, dword [eax + 0x20]
call eax
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x440201
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.00403405
mov dword [ebp - 4], 5
mov eax, dword [ebx]
push ecx
push dword [ebp + 8]
lea ecx, [ebx + 0x10]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x60]
mov dword [edx + ebx - 4], eax
call fcn.004406d0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x472faf
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x52da77
call fcn.004e27d2
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x594], ebx
cmp dword [edi + 4], ebx
jne 0x473041
lea eax, [ebp - 0xa8]
push eax
call fcn.00472be6
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xa8]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0044e46d
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.0044ed08
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.004633fc
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00448603
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0044e5c9
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.0044df15
mov esi, 0x584
test bl, bl
je 0x47307c
mov eax, dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, esi
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.004e277c
ret 4