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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004077dc
xor eax, eax
push ebp
push 0x5a3151
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0x11
push esi
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, 0x104
call fcn.004042b0
mov ebx, eax
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
mov eax, edi
call fcn.00407880
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 1
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x5a30e9
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x5a30e9
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406c0c
test eax, eax
je 0x5a30f2
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x5a310a
mov dword [ebp - 0x14], 0x5a3044
mov eax, dword [ebp - 4]
call fcn.00407880
mov dword [ebp - 0x10], eax
jmp 0x5a3114
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
push eax
call sub.shell32.dll_SHBrowseForFolderW
mov dword [ebp - 8], eax
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
mov eax, dword [ebp + 8]
mov edx, ebx
call fcn.004079a0
mov eax, ebx
call fcn.004042cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a3158
lea eax, [ebp - 4]
call fcn.004077e4
ret
Function at 0x5a69e0
Capabilities:
Power down monitor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004077dc
xor eax, eax
push ebp
push 0x5a6b34
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5a6b0d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00414b0c
mov eax, dword [ebp - 8]
mov edx, 0x5a6b50
call fcn.00407ecc
je 0x5a6a61
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00414b0c
mov eax, dword [ebp - 0xc]
mov edx, 0x5a6b68
call fcn.00407ecc
je 0x5a6a61
mov eax, 0x5a6b80
call fcn.004a316c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5a6b19
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00414b0c
mov eax, dword [ebp - 0x10]
mov edx, 0x5a6b50
call fcn.00407ecc
jne 0x5a6ab1
mov eax, dword [0x5bd7d8]
mov eax, dword [eax]
mov eax, dword [eax + 0x388]
mov edx, 0x5a6c24
call fcn.004bcc0c
push 0xffffffffffffffff
push 0xf170
push 0x112
mov eax, dword [0x5bd978]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_SendMessageW
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00414b0c
mov eax, dword [ebp - 0x14]
mov edx, 0x5a6b68
call fcn.00407ecc
jne 0x5a6b01
mov eax, dword [0x5bd7d8]
mov eax, dword [eax]
mov eax, dword [eax + 0x388]
mov edx, 0x5a6c60
call fcn.004bcc0c
push 2
push 0xf170
push 0x112
mov eax, dword [0x5bd978]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_SendMessageW
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5a6b19
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a6b3b
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004077ec
ret
Function at 0x4049d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x47fab8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push edi
mov eax, dword [0x49b1b0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
xor edi, edi
push 0xffffffffffffffff
push edi
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
call fcn.00401c40
mov eax, ebx
mov dword [esp + 0x34], edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x404a30
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x18]
call fcn.00404b40
push 0xffffffffffffffff
push edi
push eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov eax, esi
mov word [esi + 4], di
call fcn.00401c40
cmp dword [esp + 0x28], 8
jb 0x404a77
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00469d48
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x2c
ret
Function at 0x409990
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x60
push esi
push 0x40
mov esi, eax
lea eax, [esp + 0x20]
push 0
push eax
mov dword [esp + 0x24], 0x44
call fcn.0046ce70
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x18], 8
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
jb 0x4099d0
mov esi, dword [esi + 4]
jmp 0x4099d3
add esi, 4
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x409a0a
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
pop esi
add esp, 0x60
ret

Function at 0x40a0c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47fa48
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x49b1b0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, dword [0x49b1b0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor esi, esi
mov ebx, 7
mov dword [esp + 0xc], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], esi
mov word [esp + 0x14], si
mov eax, dword [esp + 0x44]
cmp eax, esi
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x38], esi
ja 0x40a16c
jb 0x40a122
cmp ecx, 0x400
jae 0x40a16c
push eax
push ecx
push str._I64uB
lea eax, [esp + 0x1c]
push eax
call fcn.00417f20
add esp, 0x10
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x18]
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], esi
push ecx
mov eax, edi
mov word [edi + 4], si
call fcn.00401c40
cmp dword [esp + 0x28], 8
jb 0x40a1ed
mov edx, dword [esp + 0x14]
push edx
call fcn.00469d48
add esp, 4
jmp 0x40a1ed
shrd ecx, eax, 0xa
shr eax, 0xa
cmp eax, esi
ja 0x40a18a
jb 0x40a181
cmp ecx, 0x400
jae 0x40a18a
push eax
push ecx
push str._I64uKB
jmp 0x40a129
shrd ecx, eax, 0xa
shr eax, 0xa
cmp eax, esi
ja 0x40a1a8
jb 0x40a19f
cmp ecx, 0x400
jae 0x40a1a8
push eax
push ecx
push str._I64uMB
jmp 0x40a129
shrd ecx, eax, 0xa
shr eax, 0xa
cmp eax, esi
ja 0x40a1d8
jb 0x40a1bd
cmp ecx, 0x400
jae 0x40a1d8
push eax
push ecx
lea eax, [esp + 0x18]
push str._I64uGB
push eax
call fcn.00417f20
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
jmp 0x40a1dd
lea edx, [esp + 0x10]
push edx
mov esi, edi
call fcn.00401bb0
lea esi, [esp + 0x10]
call fcn.0040d6b0
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00469ab5
add esp, 0x30
ret 8
Function at 0x40e0a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x47f9a8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49b1b0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esp + 0x38]
xor ecx, ecx
cmp dword [esi + 0x18], 8
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], ecx
lea edi, [esi + 4]
jb 0x40e0e4
mov eax, dword [edi]
jmp 0x40e0e6
mov eax, edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x38]
push edx
push ecx
push ecx
push ecx
push eax
mov eax, dword [ebx]
push eax
call ebp
test eax, eax
jne 0x40e1c9
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00469ab0
add esp, 4
mov byte [esp + 0x1c], 0
mov edx, dword [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], eax
call fcn.0040e230
mov dword [esp + 0x30], 0
cmp dword [esi + 0x18], 8
jb 0x40e137
mov edi, dword [edi]
mov esi, dword [esp + 0x20]
mov edx, dword [ebx]
lea eax, [esp + 0x38]
push eax
push esi
lea ecx, [esp + 0x20]
push ecx
push 0
push edi
push edx
call ebp
test eax, eax
jne 0x40e18f
cmp dword [esp + 0x18], 1
jne 0x40e18f
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e160
sub eax, edx
sar eax, 1
push eax
push esi
mov esi, dword [esp + 0x44]
call fcn.00401df0
lea eax, [esp + 0x20]
mov dword [esp + 0x30], 0xffffffff
call fcn.0040e1f0
mov al, 1
jmp 0x40e1cb
mov dword [esp + 0x30], 0xffffffff
mov esi, dword [esp + 0x24]
test esi, esi
je 0x40e1c9
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40e1c9
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x40e1c9
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8

Function at 0x40e570
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov esi, ecx
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax]
push 1
push 1
call edx
push 0x9c43
lea eax, [esi + 0x1c]
call fcn.0043cca0
mov esi, eax
test esi, esi
je 0x40e5ae
push edi
call fcn.0041d780
add esp, 4
test al, al
mov eax, dword [esi]
mov edx, dword [eax + 0xc4]
mov ecx, esi
jne 0x40e5b3
push 0
call edx
pop edi
pop esi
ret 4
push 1
call edx
cmp dword [esp + 0xc], 3
jne 0x40e5dd
push edi
push esi
call fcn.004419c0
mov esi, dword [esi + 0x40c]
test esi, esi
je 0x40e5ae
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret 4
call fcn.00441e10
mov ecx, dword [esi + 0x400]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc4]
pop edi
pop esi
mov dword [esp + 4], 0
jmp edx
Function at 0x40e910
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x480edb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x49b1b0]
xor eax, esp
mov dword [esp + 0x228], eax
push esi
push edi
mov eax, dword [0x49b1b0]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
xor edi, edi
push 0x208
lea eax, [esp + 0x2e]
push edi
push eax
mov word [esp + 0x34], di
call fcn.0046ce70
add esp, 0xc
push 0x104
lea ecx, [esp + 0x2c]
push ecx
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], edi
mov word [esp + 0x10], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40e990
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x2c]
push edx
lea esi, [esp + 0x14]
call fcn.00401df0
push 8
push str.gamesfx
mov ecx, esi
mov dword [esp + 0x248], edi
call fcn.00404b40
mov eax, esi
push eax
call fcn.0041da70
add esp, 4
cmp dword [esp + 0x24], 8
jb 0x40e9e2
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00469d48
add esp, 4
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00469ab5
add esp, 0x238
ret
Function at 0x4126f0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
xor edi, edi
cmp ebx, edi
jne 0x412748
cmp byte [ebp + 0x2c], 0
jne 0x41273f
mov byte [ebp + 0x2c], 1
mov dword [ebp + 0x30], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x412720
sub eax, esi
push edx
lea edi, [ebp + 0x34]
mov esi, eax
call fcn.00413360
or eax, 0xffffffff
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x3c], eax
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 8
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x412761
nop
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x28]
push 1
call edx
cmp esi, edi
jne 0x412750
push 2
or eax, 0xffffffff
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x1c], edi
push edi
push ebx
mov dword [ebp + 8], eax
mov dword [ebp + 4], eax
call fcn.0046ac90
push ebx
call fcn.0046aa87
push 0
push 0
push ebx
mov edi, eax
call fcn.0046ac90
add esp, 0x1c
test edi, edi
jg 0x4127be
cmp byte [ebp + 0x2c], 0
jne 0x41273f
mov byte [ebp + 0x2c], 1
mov dword [ebp + 0x30], 0xc
mov edx, dword [str.Error_document_empty.]
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4127b0
jmp 0x412729
lea eax, [edi + 1]
push eax
call fcn.00469d66
push ebx
push 1
mov esi, eax
push edi
push esi
mov byte [esi], 0
call fcn.0046b121
add esp, 0x14
cmp eax, 1
je 0x412815
push esi
call fcn.00469d48
add esp, 4
cmp byte [ebp + 0x2c], 0
jne 0x41273f
mov byte [ebp + 0x2c], 1
mov dword [ebp + 0x30], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x412807
jmp 0x412729
mov byte [esi + edi], 0
cmp byte [esi], 0
mov eax, esi
mov ecx, esi
je 0x412846
mov dl, byte [eax]
cmp dl, 0xd
jne 0x412839
mov byte [ecx], 0xa
add eax, 1
add ecx, 1
cmp byte [eax], 0xa
jne 0x412841
jmp 0x41283e
mov byte [ecx], dl
add ecx, 1
add eax, 1
cmp byte [eax], 0
jne 0x412822
push 0
mov byte [ecx], 0
mov edx, dword [ebp]
mov eax, dword [edx + 8]
push 0
push esi
mov ecx, ebp
call eax
push esi
call fcn.00469d48
add esp, 4
pop edi
xor eax, eax
cmp byte [ebp + 0x2c], al
pop esi
pop ebp
sete al
pop ebx
ret 8

Function at 0x415550
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x41555c
xor al, al
pop ecx
ret
push esi
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41557f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41557f
xor al, al
pop esi
pop ecx
ret
mov edx, dword [esp + 4]
push 1
push 0
push 0
push edx
call fcn.004758d0
xor ecx, ecx
add eax, esi
adc edx, ecx
mov dword [edi], eax
mov dword [edi + 4], edx
mov al, 1
pop esi
pop ecx
ret
Function at 0x4159e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4803e8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x49b1b0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov eax, dword [0x49b1b0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x49eaa0]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0xc], ebx
mov byte [esp + 0xb], 1
jbe 0x415aa1
lea ecx, [esp + 0xb]
push ecx
push eax
lea edx, [esp + 0x18]
push edi
push edx
call fcn.00415ad0
add esp, 0x10
mov dword [esp + 0x38], ebx
cmp byte [esp + 0xb], bl
je 0x415a74
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x18]
push eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov eax, esi
mov word [esi + 4], bx
call fcn.00401c40
cmp dword [esp + 0x28], 8
jb 0x415ab1
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00469d48
add esp, 4
jmp 0x415ab1
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x415a90
mov edx, dword [esp + 0x14]
push edx
call fcn.00469d48
add esp, 4
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
lea eax, [esp + 0xb]
push eax
push ebx
push edi
push esi
call fcn.00415ad0
add esp, 0x10
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00469ab5
add esp, 0x34
ret

Function at 0x415f60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x49b1b0]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push 0x20a
lea eax, [esp + 0xa]
push 0
push eax
mov esi, ecx
mov word [esp + 0x10], 0
call fcn.0046ce70
add esp, 0xc
push 0x105
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x415ff2
lea eax, [esp + 4]
mov word [esp + 0x20e], 0
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415fc0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 8]
push edx
call fcn.00401df0
mov al, 1
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00469ab5
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
xor al, al
call fcn.00469ab5
add esp, 0x210
ret
Function at 0x416070
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x1c
push ebp
mov ebp, dword [esp + 0x24]
cmp dword [ebp + 0x18], 8
push esi
push edi
lea edi, [ebp + 4]
jb 0x416087
mov edx, dword [edi]
jmp 0x416089
mov edx, edi
push ebx
xor ebx, ebx
mov eax, edx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4160a2
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x18]
call fcn.00401df0
mov eax, dword [esp + 0x14]
mov esi, 8
cmp dword [esp + 0x28], esi
jae 0x4160cf
lea eax, [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
sete bl
cmp dword [esp + 0x28], esi
jb 0x4160ef
mov eax, dword [esp + 0x14]
push eax
call fcn.00469d48
add esp, 4
test bl, bl
pop ebx
je 0x4160fd
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x1c
ret
cmp dword [ebp + 0x18], esi
jb 0x416117
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
test eax, eax
pop esi
setne al
pop ebp
add esp, 0x1c
ret
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
test eax, eax
pop esi
setne al
pop ebp
add esp, 0x1c
ret

Function at 0x416130
Capabilities:
Get common file path

Disassembly:
sub esp, 0x624
mov eax, dword [0x49b1b0]
xor eax, esp
mov dword [esp + 0x620], eax
push esi
push edi
xor edi, edi
cmp dword [0x49ca10], edi
mov esi, ecx
je 0x41617a
push 0xffffffffffffffff
push edi
push 0x49c9fc
mov eax, esi
call fcn.00401c40
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.00469ab5
add esp, 0x624
ret
push 0x20a
lea eax, [esp + 0xe]
push edi
push eax
mov word [esp + 0x14], di
call fcn.0046ce70
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x416263
push 0x410
lea edx, [esp + 0x21a]
push edi
push edx
mov word [esp + 0x21e], di
mov word [esp + 0x220], di
call fcn.0046ce70
add esp, 0xc
push 0x208
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x416227
cmp eax, edi
je 0x416227
push esi
lea edx, [esp + 0x218]
mov word [esp + eax*2 + 0x218], di
call fcn.00401be0
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.00469ab5
add esp, 0x624
ret
lea eax, [esp + 8]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x416230
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xc]
push edx
call fcn.00401df0
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.00469ab5
add esp, 0x624
ret
mov ecx, dword [esp + 0x628]
pop edi
pop esi
xor ecx, esp
xor al, al
call fcn.00469ab5
add esp, 0x624
ret
Function at 0x416280
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x49b1b0]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
push esi
push edi
push 0x20a
lea eax, [esp + 0x12]
push 0
push eax
mov edi, ecx
mov esi, edx
mov word [esp + 0x18], 0
call fcn.0046ce70
mov eax, 8
add esp, 0xc
cmp dword [edi + 0x18], eax
jb 0x4162cc
mov edi, dword [edi + 4]
jmp 0x4162cf
add edi, 4
cmp dword [ebx + 0x18], eax
jb 0x4162d9
mov ebx, dword [ebx + 4]
jmp 0x4162dc
add ebx, 4
lea ecx, [esp + 0xc]
push ecx
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x416334
lea eax, [esp + 0xc]
mov word [esp + 0x216], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416300
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x10]
push edx
call fcn.00401df0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00469ab5
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.00469ab5
add esp, 0x210
ret

Function at 0x4165b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x420
mov eax, dword [0x49b1b0]
xor eax, esp
mov dword [esp + 0x41c], eax
push edi
mov eax, esi
call fcn.00416660
push 0x410
lea eax, [esp + 0xa]
push 0
push eax
mov word [esp + 0x10], 0
call fcn.0046ce70
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0xc
push 0
push 0
call edi
test eax, eax
jne 0x41660f
xor al, al
pop edi
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.00469ab5
add esp, 0x420
ret
cmp eax, 0x208
jae 0x4165f7
lea ecx, [esp + 4]
push ecx
push 0x209
call edi
test eax, eax
je 0x4165f7
cmp eax, 0x208
jae 0x4165f7
push esi
lea edx, [esp + 8]
mov word [esp + 0x418], 0
call fcn.00401be0
mov ecx, dword [esp + 0x420]
pop edi
xor ecx, esp
mov al, 1
call fcn.00469ab5
add esp, 0x420
ret
Function at 0x418c30
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov eax, dword [ebp]
xor ebx, ebx
cmp eax, ebx
jne 0x418c46
pop ebp
xor al, al
pop ebx
ret 4
cmp dword [eax + 4], ebx
je 0x418c3f
push esi
push edi
push 8
call fcn.00469d66
add esp, 4
cmp eax, ebx
je 0x418c64
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov edi, eax
jmp 0x418c66
xor edi, edi
mov eax, ebp
call fcn.00418cf0
mov esi, dword [ebp]
lea eax, [esi + 0xc]
push eax
push 4
push edi
push 0x418a80
push ebx
push ebx
call fcn.0046bc75
mov dword [esi + 0x10], eax
mov eax, dword [ebp]
add esp, 0x18
cmp dword [eax + 0x10], ebx
jne 0x418cba
or esi, 0xffffffff
mov dword [eax + 0x10], esi
mov ebp, dword [ebp]
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x418cab
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x10], esi
pop edi
pop esi
mov byte [ebp + 8], bl
mov dword [ebp + 0xc], ebx
pop ebp
xor al, al
pop ebx
ret 4
mov byte [eax + 8], 1
mov eax, dword [ebp]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x418cde
mov esi, dword [ebp]
call fcn.00418bb0
mov edx, dword [ebp]
mov byte [edx + 8], bl
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 4