joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410510
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x45190e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x478024]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [ebp]
mov dword [ebp - 0x18], esi
push eax
push 0x104
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4105b3
call fcn.00403950
test eax, eax
je 0x410637
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00438889
lea esp, [ebp + 0x20c]
pop ebp
ret
cmp word [ebp + eax*2 - 2], 0x5c
je 0x4105c6
mov ecx, 0x5c
mov word [ebp + eax*2], cx
inc eax
add eax, eax
cmp eax, 0x208
jae 0x410632
xor ecx, ecx
mov word [ebp + eax], cx
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x410637
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 2
lea eax, [ebp]
test eax, 0xffff0000
jne 0x41060c
movzx eax, ax
mov ecx, esi
push eax
call fcn.00403ca0
jmp 0x410582
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410612
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00404040
jmp 0x410582
call fcn.00438a26
push 0x80004005
call fcn.00404020
int3
Function at 0x410650
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x45199e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x478024]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], 0
call fcn.00410510
mov dword [ebp - 4], 1
lea ecx, [ebp]
push ecx
push 0
push 0x467e34
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
sete byte [ebp - 0xd]
mov dword [ebp - 4], 0
or ebx, 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4106e4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00403950
cmp byte [ebp - 0xd], 0
je 0x410716
test eax, eax
je 0x410837
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
jmp 0x410812
mov ecx, eax
test ecx, ecx
je 0x410837
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 4
lea eax, [ebp]
test eax, 0xffff0000
jne 0x41074a
movzx eax, ax
lea ecx, [ebp - 0x14]
push eax
call fcn.00403ca0
jmp 0x41076c
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410750
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00404040
mov dword [ebp - 4], 5
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x467e28
lea ecx, [ebp - 0x18]
call fcn.00404120
mov byte [ebp - 4], 6
push 0x2e
push esi
call fcn.00439dde
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x4107c6
sub ecx, esi
sar ecx, 1
js 0x4107c6
mov eax, dword [esi - 0xc]
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040bba0
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push dword [eax - 0xc]
push eax
call fcn.00403530
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4107e4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.00407510
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x410812
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00438889
lea esp, [ebp + 0x20c]
pop ebp
ret
push 0x80004005
call fcn.00404020
int3
Function at 0x410f10
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451b9d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x478024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
cmp dword [eax - 0xc], 0x104
jl 0x411044
push 4
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.0040b990
mov dword [ebp - 4], 0
mov ecx, 0x465884
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410f88
test dx, dx
je 0x410f84
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410f88
add eax, 4
add ecx, 4
test dx, dx
jne 0x410f62
xor esi, esi
jmp 0x410f8d
sbb esi, esi
or esi, 1
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410faf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x411044
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x411070
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
mov eax, 0x465884
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x410ff2
movzx eax, ax
push eax
call fcn.00403ca0
jmp 0x410ffe
push 4
push 0x465884
call fcn.00404040
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x10]
mov eax, dword [edi]
push dword [eax - 0xc]
push eax
call fcn.00403530
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x411052
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x411052
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete bl
test bl, bl
jne 0x41105c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404020
int3
Function at 0x411080
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451b9d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x478024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
cmp dword [eax - 0xc], 0x104
jl 0x4111b4
push 4
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.0040b990
mov dword [ebp - 4], 0
mov ecx, 0x465884
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4110f8
test dx, dx
je 0x4110f4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4110f8
add eax, 4
add ecx, 4
test dx, dx
jne 0x4110d2
xor esi, esi
jmp 0x4110fd
sbb esi, esi
or esi, 1
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41111f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x4111b4
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x4111e0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
mov eax, 0x465884
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x411162
movzx eax, ax
push eax
call fcn.00403ca0
jmp 0x41116e
push 4
push 0x465884
call fcn.00404040
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x10]
mov eax, dword [edi]
push dword [eax - 0xc]
push eax
call fcn.00403530
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4111c2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4111c2
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
test bl, bl
jne 0x4111cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404020
int3
Function at 0x4118b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451d75
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x478024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov esi, ecx
call fcn.00411360
test al, al
je 0x4118f9
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
cmp eax, 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
sete byte [ebp - 0xd]
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.004114e0
cmp dword [ebp - 0x24], 0
jle 0x411aad
push dword [ebp - 0x28]
lea ecx, [ebp - 0x18]
call fcn.00407510
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
dec eax
test bl, bl
lea ecx, [eax + 1]
cmove ecx, eax
xor edi, edi
mov dword [ebp - 0x1c], ecx
lea esi, [edi + 1]
cmp ecx, esi
jle 0x4119fd
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407510
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
push 1
push 0x465a14
call fcn.00403530
cmp esi, dword [ebp - 0x24]
jge 0x411aad
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
mov eax, dword [eax + esi*4]
push dword [eax - 0xc]
push eax
call fcn.00403530
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x411a4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xb7
je 0x411a59
cmp byte [ebp - 0xd], 0
jne 0x411a59
cmp esi, 1
jbe 0x4119de
lea ecx, [ebp - 0x18]
call fcn.00410f10
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4119fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
cmp edi, 0xb7
cmovne esi, edi
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x411a27
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040b7f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x411a59
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.0040b890
push 1
push 0x465a14
lea ecx, [ebp - 0x18]
call fcn.00403530
cmp esi, dword [ebp - 0x24]
jge 0x411aad
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x18]
mov eax, dword [eax + esi*4]
push dword [eax - 0xc]
push eax
call fcn.00403530
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411a9e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, dword [ebp - 0x1c]
jl 0x411966
jmp 0x4119fd
push 1
push 0xc000008c
call fcn.0040ce70
int3
Function at 0x411d50
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push 0
push 0
push dword [esp + 0x18]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x411d7a
mov ecx, esi
call fcn.00403d60
pop edi
pop esi
mov eax, ebx
pop ebx
ret 4
js 0x411de0
mov edx, dword [esi]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x411d99
push edi
mov ecx, esi
call fcn.00403ef0
mov edx, dword [esi]
push edi
push edx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
test eax, eax
jne 0x411daf
xor ecx, ecx
jmp 0x411dc1
push dword [eax - 8]
push eax
call fcn.0043c5ac
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x411de0
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x411de0
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov ebx, 1
pop edi
pop esi
mov word [eax + ecx*2], dx
mov eax, ebx
pop ebx
ret 4
push 0x80070057
call fcn.00404020
int3
Function at 0x4153a0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452d45
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x478024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0xc0], 0
je 0x415589
cmp byte [edi + 0xd8], 0
jne 0x415589
cmp dword [edi + 0x90], 3
je 0x41540f
call fcn.004167c0
mov eax, dword [edi + 0x90]
cmp eax, 2
je 0x41540f
cmp eax, 1
je 0x41540f
test byte [edi + 0x44], 0x48
je 0x41540f
mov ecx, edi
call fcn.00415730
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
xor ebx, ebx
mov eax, dword [edi + 0xa8]
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x4154ab
cmp ebx, dword [edi + 0xa8]
jge 0x41559b
mov eax, dword [edi + 0xa4]
lea ecx, [ebx*4]
push dword [eax + ecx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x4154a5
cmp ebx, dword [edi + 0xa8]
jge 0x41559b
mov eax, dword [edi + 0xa4]
lea ecx, [ebx*4]
add eax, ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.0040b890
inc ebx
cmp ebx, dword [ebp - 0x10]
jl 0x415453
mov ebx, dword [edi + 0xb4]
lea esi, [edi + 0xb0]
sub ebx, 1
js 0x41550f
nop dword [eax]
cmp ebx, dword [esi + 4]
jge 0x41559b
mov eax, dword [esi]
lea ecx, [ebx*4]
push dword [eax + ecx]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
lea esi, [edi + 0xb0]
jne 0x41550a
cmp ebx, dword [esi + 4]
jge 0x41559b
mov eax, dword [esi]
lea ecx, [ebx*4]
add eax, ecx
lea ecx, [ebp - 0x1c]
push eax
call fcn.0040b890
sub ebx, 1
jns 0x4154c0
lea eax, [ebp - 0x28]
lea ecx, [edi + 0xa4]
push eax
call fcn.004178f0
mov ecx, esi
call fcn.0040b7f0
mov eax, dword [ebp - 0x18]
lea esi, [eax - 1]
test esi, esi
js 0x415550
nop
cmp esi, eax
jge 0x41559b
mov eax, dword [ebp - 0x1c]
lea ecx, [edi + 0xb0]
lea eax, [eax + esi*4]
push eax
call fcn.0040b890
sub esi, 1
js 0x415550
mov eax, dword [ebp - 0x18]
jmp 0x415530
cmp dword [edi + 0xa8], 0
jne 0x415566
cmp dword [edi + 0xb4], 0
jne 0x415566
mov al, 1
jmp 0x415568
xor al, al
mov byte [edi + 0xd8], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0040b7f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040b7f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0xc000008c
call fcn.0040ce70
int3
Function at 0x418010
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45367f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x478024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call fcn.00403950
test eax, eax
je 0x418142
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 1
lea edi, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.00403950
test eax, eax
je 0x418142
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 3
lea edi, [esi + 8]
mov dword [ebp - 0x14], edi
call fcn.00403950
test eax, eax
je 0x418142
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 5
lea ecx, [esi + 0xc]
mov dword [ebp - 0x14], ecx
lea eax, [ecx + 8]
mov dword [ecx + 4], 0
mov dword [ebp - 0x18], eax
mov dword [eax + 0xc], 0
mov byte [ebp - 4], 7
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov byte [ebp - 4], 0xa
mov dword [ecx + 0x20], 0x467e78
mov dword [ecx], 0x467e68
mov dword [ecx + 0x20], 0x467e3c
mov byte [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
mov word [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov byte [ebp - 4], 0xb
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404020
int3
Function at 0x4183d0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x45378e
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x478024]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x214]
lea eax, [ebp]
push eax
push 0
push 0
push 0x25
mov dword [ebp - 0x14], esi
push 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4184ad
push str.WindowsPowerShell_v1.0powershell.exe
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4184ad
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4184ad
call fcn.00403950
test eax, eax
je 0x4184f5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 1
lea eax, [ebp]
test eax, 0xffff0000
jne 0x418489
movzx eax, ax
mov ecx, esi
push eax
call fcn.00403ca0
jmp 0x4184ab
lea ecx, [ebp]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418490
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00404040
jmp 0x4184c2
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x4184f5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00438889
lea esp, [ebp + 0x20c]
pop ebp
ret 4
push 0x80004005
call fcn.00404020
int3
Function at 0x419010
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x478024]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, ecx
push esi
push 2
mov dword [esp + 0xc], eax
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
xorps xmm0, xmm0
lea eax, [esp + 0x1c]
push eax
push esi
movups xmmword [esp + 0x24], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 8]
xor eax, eax
mov edx, 5
cmp byte [ecx + 0x2c], al
cmovne eax, edx
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 8]
push 0x3e9
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
xorps xmm0, xmm0
lea eax, [esp + 0xc]
push eax
push esi
movups xmmword [esp + 0x14], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 8]
cmp dword [ecx + 0x30], 0
jne 0x4190a9
mov eax, dword [esp + 0x14]
mov dword [ecx + 0x30], eax
cmp byte [ecx + 0x2c], 0
je 0x4190b4
mov edx, dword [ecx + 0x30]
jmp 0x4190b8
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
sub eax, ecx
push 0x206
push eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
sub edx, eax
push edx
push ecx
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x2c]
pop esi
xor ecx, esp
call fcn.00438889
mov esp, ebp
pop ebp
ret
Function at 0x41ba60
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454285
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x478024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
or edi, 0xffffffff
cmp byte [0x479ee0], 0
je 0x41bb0a
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x41bbfe
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 2
mov edx, dword [ebx]
test edx, edx
je 0x41bade
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41bac2
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.00403530
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
mov ecx, 0x479ea8
push eax
call fcn.00420c70
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41bb0a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [0x478a90], 0
je 0x41bbe4
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x41bc08
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x14]
push dword [ebx]
call fcn.00404120
mov byte [ebp - 4], 7
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
mov byte [ebp - 0xd], 0
test esi, esi
jne 0x41bb62
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov byte [ebp - 0xd], 1
mov ebx, dword [ebp - 0x18]
xor eax, eax
mov ecx, ebx
mov edx, 0x10
cmp dword [ebx - 0xc], eax
cmove ecx, eax
push ecx
mov eax, esp
push ecx
mov dword [eax], ecx
mov ecx, esp
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
mov ecx, esi
call fcn.0042ba50
add esp, 8
cmp byte [ebp - 0xd], 0
je 0x41bb98
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov byte [ebp - 4], 6
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41bbb6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea edx, [ebx - 0x10]
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x41bbec
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 esp, ebp
pop ebp
ret
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404020
push 0x80004005
call fcn.00404020
int3