joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46fae0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp], ecx
push eax
push 0x46fb10
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 4]
add esp, 8
ret

Function at 0x46fda0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506871
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x56d078]
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 1
push 0
lea eax, [ebp - 0x47c]
mov dword [ebp - 0x47c], 0x2a
push eax
call fcn.00414f55
cmp eax, 0xffffffff
jne 0x46fe03
cmp dword [esi + 0x14], 8
jb 0x46fdf7
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x46ff0d
lea ecx, [ebp - 0x478]
call fcn.0046ff30
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x46fe1d
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x478]
call fcn.0047c1b0
test eax, eax
je 0x46fefb
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [eax]
cmp dword [ebp - 0x18], 0
je 0x46fe7e
mov eax, dword [ebp - 0x478]
shr eax, 4
and eax, 1
je 0x46fe7a
cmp word [ebp - 0x44c], 0x2e
jne 0x46fe7a
mov cx, word [ebp - 0x44a]
test cx, cx
je 0x46fed9
cmp cx, 0x2e
jne 0x46fe7a
cmp word [ebp - 0x448], 0
je 0x46fed9
test eax, eax
jne 0x46fed9
lea eax, [ebp - 0x47c]
push eax
lea ecx, [ebp - 0x478]
call fcn.0047c5e0
mov byte [ebp - 4], 1
push dword [ebp - 0x47c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x47c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46fed9
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x523a78
jne 0x46fed5
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x46fed9
mov ecx, edx
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46fefb
cmp dword [ebp - 0x18], 0
je 0x46fefb
lea ecx, [ebp - 0x478]
push ecx
push eax
call ebx
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x46fe40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.0046ffe0
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.004cde67
mov esp, ebp
pop ebp
ret
Function at 0x4701a0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f85f8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x56d078]
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 ebx, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [ebx + 0xc]
cmp esi, edi
je 0x47026a
nop dword [eax + eax]
lea eax, [ebp - 0x28]
add esi, 0xffffffe8
push eax
mov ecx, esi
call fcn.00466ec0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x4701fd
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x47024e
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
ja 0x4702a5
add eax, eax
cmp eax, 0x1000
jb 0x470245
test cl, 0x1f
jne 0x4702a5
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4702a5
sub ecx, eax
cmp ecx, 4
jb 0x4702a5
cmp ecx, 0x23
ja 0x4702a5
mov ecx, eax
push ecx
call fcn.004cde62
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp esi, edi
jne 0x4701e0
mov edi, dword [ebx + 0x10]
mov esi, dword [ebx + 0xc]
cmp esi, edi
je 0x470283
push ecx
mov ecx, esi
call fcn.00470b60
add esi, 0x18
cmp esi, edi
jne 0x470274
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x10], eax
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.004cde67
mov esp, ebp
pop ebp
ret
call fcn.004d3911
int3

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

Disassembly:
sub esp, 0x2c0
mov eax, dword [0x56d078]
xor eax, esp
mov dword [esp + 0x2bc], eax
push esi
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea eax, [esp + 0x10]
push 0x4011
push 0x2b4
push eax
push 0x10
push 0x530f50
mov esi, ecx
call edi
push 0x4011
push 0x2b4
mov dword [esi], eax
lea eax, [esp + 0x18]
push eax
push 0x10
push str.C:FAKE_DIR_
call edi
mov eax, dword [esp + 0x14]
push 0x4013
push 0x2b4
mov dword [esi + 4], eax
lea eax, [esp + 0x18]
push eax
push 0x10
push str.C:FAKE_DIR_
call edi
mov eax, dword [esp + 0x14]
mov dword [esi + 8], eax
lea eax, [esp + 8]
push eax
push 0x11
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x471e06
push 0x4009
push 0x2b4
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x18]
call edi
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x471e0d
mov ecx, dword [esp + 0xc]
push dword [esp + 8]
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
jmp 0x471e0d
mov dword [esi + 0xc], 0
mov ecx, dword [esp + 0x2c4]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004cde67
add esp, 0x2c0
ret
Function at 0x471eb0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506cd0
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x56d078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov edx, 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x471f0c
push 0x104
lea ecx, [ebp + 8]
call fcn.004067b5
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, dword [ebp + 8]
push dword [eax - 8]
push eax
call fcn.004d3b32
mov edx, eax
add esp, 8
test edx, edx
js 0x471fc0
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx - 8]
jg 0x471fc0
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp + 8]
push 0x4013
push 0x2b4
mov word [eax + edx*2], cx
lea eax, [ebp - 0x2c4]
push eax
push 0x10
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edi, dword [ebp - 0x2c0]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x471fa1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, 0x523a78
jne 0x471f9f
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x471fa1
call esi
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.004cde67
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00406bfc
int3

Function at 0x472f40
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x472f6f
cmp dword [edi + 0x20], 8
lea ecx, [edi + 0xc]
jb 0x472f55
mov ecx, dword [ecx]
mov eax, dword [edi + 0x40]
sub esp, 8
or eax, 0xf003f
push eax
sub esp, 8
push ecx
push dword [edi + 0x3c]
mov ecx, edi
call fcn.00455bb1
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x14], 8
jb 0x472f7b
mov esi, dword [esi]
mov ebx, dword [esp + 0x10]
cmp dword [ebx + 0x14], 8
jb 0x472f87
mov ebx, dword [ebx]
test esi, esi
jne 0x472f9b
mov eax, 0xd
pop edi
test eax, eax
pop esi
sete al
pop ebx
ret 0xc
push esi
call fcn.004d3ded
add esp, 4
lea eax, [eax*2 + 2]
push eax
push esi
push 2
push 0
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
test eax, eax
pop esi
sete al
pop ebx
ret 0xc
Function at 0x473350
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x47337d
cmp dword [esi + 0x20], 8
lea ecx, [esi + 0xc]
jb 0x473363
mov ecx, dword [ecx]
mov eax, dword [esi + 0x40]
sub esp, 8
or eax, 0xf003f
push eax
sub esp, 8
push ecx
push dword [esi + 0x3c]
mov ecx, esi
call fcn.00455bb1
mov ecx, dword [esp + 8]
cmp dword [ecx + 0x14], 8
jb 0x473389
mov ecx, dword [ecx]
mov eax, dword [esp + 0xc]
push 4
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 4
push 0
push ecx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
pop esi
sbb eax, eax
inc eax
ret 8

Function at 0x473870
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x507099
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x56d078]
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 0x47392b
call fcn.00406abb
mov ecx, eax
test ecx, ecx
jne 0x4738de
push 0x80004005
call fcn.00406bfc
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x523a78
jne 0x4738f3
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4738f5
call edx
lea ecx, [eax + 0x10]
mov dword [esi], ecx
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.004cde67
lea esp, [ebp + 0x20c]
pop ebp
ret
cmp word [ebp + eax*2 - 2], 0x5c
je 0x47393e
mov ecx, 0x5c
mov word [ebp + eax*2], cx
inc eax
add eax, eax
cmp eax, 0x208
jae 0x4739ba
xor ecx, ecx
mov word [ebp + eax], cx
call fcn.00406abb
mov ecx, eax
test ecx, ecx
jne 0x473963
push 0x80004005
call fcn.00406bfc
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x523a78
jne 0x473978
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x47397a
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 2
lea eax, [ebp]
test eax, 0xffff0000
jne 0x4739a0
movzx eax, ax
mov ecx, esi
push eax
call fcn.00409d16
jmp 0x4738fa
push eax
call fcn.004d3ded
add esp, 4
mov ecx, esi
push eax
lea eax, [ebp]
push eax
call fcn.00409e0a
jmp 0x4738fa
call fcn.004ce683
int3
Function at 0x473b90
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x507151
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x56d078]
xor eax, ebp
mov dword [ebp + 0x410], 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 0x473c1f
call fcn.00406abb
mov ecx, eax
test ecx, ecx
jne 0x473bfe
push 0x80004005
call fcn.00406bfc
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x523a78
jne 0x473c13
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x473c15
call edx
lea ecx, [eax + 0x10]
mov dword [esi], ecx
jmp 0x473ce5
lea eax, [ebp + 0x208]
push eax
push 0
push 0x531008
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x473c6e
call fcn.00406abb
mov ecx, eax
test ecx, ecx
jne 0x473c50
push 0x80004005
call fcn.00406bfc
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x523a78
jne 0x473c65
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x473c67
call edx
add eax, 0x10
mov dword [esi], eax
jmp 0x473ce5
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00406abb
mov ecx, eax
test ecx, ecx
jne 0x473c90
push 0x80004005
call fcn.00406bfc
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x523a78
jne 0x473ca5
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x473ca7
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 3
lea eax, [ebp + 0x208]
test eax, 0xffff0000
jne 0x473ccd
movzx eax, ax
mov ecx, esi
push eax
call fcn.00409d16
jmp 0x473ce5
push eax
call fcn.004d3ded
add esp, 4
mov ecx, esi
push eax
lea eax, [ebp + 0x208]
push eax
call fcn.00409e0a
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 + 0x410]
xor ecx, ebp
call fcn.004cde67
lea esp, [ebp + 0x414]
pop ebp
ret
Function at 0x4744b0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507288
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x56d078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0x104
jl 0x4745c0
call fcn.00475120
test al, al
jne 0x4745c0
call fcn.00406abb
mov ecx, eax
test ecx, ecx
jne 0x474508
push 0x80004005
call fcn.00406bfc
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x523a78
jne 0x47451d
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x47451f
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov eax, 0x5241d4
test eax, 0xffff0000
jne 0x474546
movzx eax, ax
lea ecx, [ebp - 0x10]
push eax
call fcn.00409d16
jmp 0x474561
push 0x5241d4
call fcn.004d3ded
add esp, 4
lea ecx, [ebp - 0x10]
push eax
push 0x5241d4
call fcn.00409e0a
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.004070e2
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 0x4745ce
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x523a78
jne 0x4745bc
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4745ce
call edx
jmp 0x4745ce
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete bl
test bl, bl
jne 0x4745d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4745f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507288
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x56d078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0x104
jl 0x474700
call fcn.00475120
test al, al
jne 0x474700
call fcn.00406abb
mov ecx, eax
test ecx, ecx
jne 0x474648
push 0x80004005
call fcn.00406bfc
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x523a78
jne 0x47465d
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x47465f
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov eax, 0x5241d4
test eax, 0xffff0000
jne 0x474686
movzx eax, ax
lea ecx, [ebp - 0x10]
push eax
call fcn.00409d16
jmp 0x4746a1
push 0x5241d4
call fcn.004d3ded
add esp, 4
lea ecx, [ebp - 0x10]
push eax
push 0x5241d4
call fcn.00409e0a
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.004070e2
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 0x47470e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x523a78
jne 0x4746fc
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x47470e
call edx
jmp 0x47470e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
test bl, bl
jne 0x474718
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x474730
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5072c8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x56d078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
call fcn.00406abb
mov ecx, eax
test ecx, ecx
jne 0x474771
push 0x80004005
call fcn.00406bfc
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x523a78
jne 0x474786
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x474788
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.00474890
mov esi, dword [ebp - 0x10]
or ecx, 0xffffffff
test al, al
jne 0x4747ad
xor bl, bl
jmp 0x474829
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebx]
lea ecx, [esi - 0x10]
sub edi, 0x10
cmp ecx, edi
je 0x474824
cmp dword [edi + 0xc], 0
jl 0x474819
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x474819
call fcn.00407172
mov dword [ebp - 0x14], eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47480f
mov edx, dword [edi]
push edi
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
cmp ecx, 0x523a78
jne 0x47480b
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebx], eax
jmp 0x474824
mov ecx, edx
call eax
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebx], eax
jmp 0x474824
push dword [esi - 0xc]
mov ecx, ebx
push esi
call fcn.00409e0a
mov bl, 1
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x474870
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x523a78
jne 0x47486e
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
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
call edx
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

Function at 0x474890
Capabilities:
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x56d078]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
push edi
lea eax, [esp + 0x210]
mov edi, edx
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4748da
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.004cde67
add esp, 0x414
ret
lea eax, [esp + 8]
push eax
push 0
push dword [esi]
lea eax, [esp + 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4748c1
lea eax, [esp + 8]
push eax
call fcn.004d3ded
add esp, 4
mov ecx, edi
push eax
lea eax, [esp + 0xc]
push eax
call fcn.00409e0a
mov ecx, dword [esp + 0x418]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.004cde67
add esp, 0x414
ret
Function at 0x475ad0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507538
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x56d078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
je 0x475b40
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x475b40
mov dword [edi], eax
mov bl, 1
jmp 0x475b42
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x475b5b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
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

Function at 0x475b70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507400
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x56d078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
lea ecx, [ebp - 0x10]
call fcn.00475c20
mov dword [ebp - 4], 0
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete bl
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x475c03
mov edx, dword [esi]
push esi
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
cmp ecx, 0x523a78
jne 0x475bff
mov ecx, dword [edx + 4]
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
call eax
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x476200
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0
push 0
push ebp
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x4762b2
mov eax, dword [esi]
lea ecx, [eax - 0x10]
mov edi, dword [ecx]
cmp dword [ecx + 4], ebx
je 0x47630c
cmp dword [ecx + 0xc], ebx
lea edx, [ecx + 0xc]
jge 0x476255
cmp dword [eax - 8], ebx
jl 0x476315
mov dword [eax - 0xc], ebx
xor ecx, ecx
mov eax, dword [esi]
pop edi
pop esi
pop ebp
mov word [eax], cx
mov eax, ebx
pop ebx
ret 4
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x476282
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebp, dword [eax + 4]
cmp eax, 0x523a78
jne 0x47631f
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [edi]
cmp eax, 0x523a78
jne 0x476328
lock inc dword [edi + 0x14]
lea eax, [edi + 8]
add eax, 0x10
pop edi
mov dword [esi], eax
mov eax, ebx
pop esi
pop ebp
pop ebx
ret 4
add eax, 0x10
pop edi
mov dword [esi], eax
mov eax, ebx
pop esi
pop ebp
pop ebx
ret 4
js 0x476332
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x4762cf
push edi
mov ecx, esi
call fcn.004067b5
push edi
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
test eax, eax
jne 0x4762e3
xor ecx, ecx
jmp 0x4762f5
push dword [eax - 8]
push eax
call fcn.004d3b32
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x476315
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x476315
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov ebx, 1
mov word [eax + ecx*2], dx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 4
push 0x80070057
call fcn.00406bfc
mov ecx, edx
call ebp
jmp 0x476282
mov ecx, edi
call dword [eax + 0xc]
jmp 0x4762a4
push 0x80070057
call fcn.00406bfc
int3
Function at 0x48008f
Capabilities:
Print debug messages

Disassembly:
push 8
mov eax, 0x508815
call fcn.004cea03
mov bl, dl
mov esi, ecx
cmp byte [0x5736d4], 0
je 0x4800dc
lea ecx, [ebp - 0x10]
call fcn.00406bd2
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push dword [esi]
call fcn.0048b7e8
push eax
mov ecx, 0x5736a4
call fcn.004955c1
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.004068c3
or dword [ebp - 4], 0xffffffff
cmp byte [0x56d9cc], 0
push dword [esi]
je 0x48013d
lea ecx, [ebp - 0x10]
call fcn.00409ea5
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 2
call fcn.00406bd2
push 0x10
pop edx
test bl, bl
mov byte [ebp - 4], 3
mov ecx, 0x40010
cmove ecx, edx
push ecx
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
lea edx, [ebp - 0x10]
mov ecx, eax
call fcn.0046fa80
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004068c3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004068c3
jmp 0x480143
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.004ce9cc
ret