joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100046b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx + 4]
xorps xmm0, xmm0
push esi
push edi
push 0
push 0
or eax, 0x2001f
movq qword [ebp - 0xc], xmm0
push eax
push 0
push 0
push dword [ebp + 8]
mov dword [ebp - 4], 0
push dword [ecx]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.10002ea0
mov edi, dword [ebp - 0xc]
mov esi, eax
test esi, esi
jne 0x1000473c
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x1000470f
lea esi, [edx + 0xd]
jmp 0x1000473c
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004714
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test edi, edi
je 0x10004747
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10004760
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x10004779
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004785
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x10004780
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x100047c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x100047d5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100047e0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10005c10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x1003c034]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.10020540
push 0x64
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.10020540
add esp, 0x18
lea eax, [ebp - 0xcc]
push 0x32
push eax
push 0x1002fd20
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 2
xorps xmm0, xmm0
mov dword [ebp - 0xd0], 0
push str.SoftWareMicrosoftWindowsCurrentVersionExplorerShellIconOverlayIdentifiers
movq qword [ebp - 0xd8], xmm0
lea ecx, [ebp - 0xd8]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0
call fcn.100035b0
test eax, eax
jne 0x10005ccb
push eax
lea eax, [ebp - 0x68]
push eax
push str.________.PhotoviewerShellExt
lea ecx, [ebp - 0xd8]
call fcn.100046b0
push esi
push edi
push 2
xorps xmm0, xmm0
mov dword [ebp - 0xdc], 0
push str.SoftWareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
movq qword [ebp - 0xe4], xmm0
lea ecx, [ebp - 0xe4]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
call fcn.100035b0
mov esi, dword [ebp - 0xe4]
test eax, eax
jne 0x10005d37
push 0x3a
push str.Photoviewer_Shell_externsion
push 1
push 0
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0
mov ecx, 0x1003df98
call fcn.10003090
mov edi, eax
test esi, esi
je 0x10005d50
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xd8]
test ecx, ecx
je 0x10005d61
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.100088fa
mov esp, ebp
pop ebp
ret
Function at 0x10005d80
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x1003c034]
xor eax, ebp
mov dword [ebp - 4], eax
push 2
xorps xmm0, xmm0
mov dword [ebp - 0xd0], 0
push str.SoftWareMicrosoftWindowsCurrentVersionExplorerShellIconOverlayIdentifiers
movq qword [ebp - 0xd8], xmm0
lea ecx, [ebp - 0xd8]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0
call fcn.100035b0
test eax, eax
jne 0x10005df1
push str.________.PhotoviewerShellExt
lea ecx, [ebp - 0xd8]
call fcn.10002fb0
push esi
push edi
push 2
xorps xmm0, xmm0
mov dword [ebp - 0xdc], 0
push str.SoftWareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
movq qword [ebp - 0xe4], xmm0
lea ecx, [ebp - 0xe4]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
call fcn.100035b0
mov esi, dword [ebp - 0xe4]
test eax, eax
jne 0x10005e97
push 0x64
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.10020540
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.10020540
add esp, 0x18
lea eax, [ebp - 0x68]
push 0x32
push eax
push 0x1002fd20
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0xcc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0
mov ecx, 0x1003df98
call fcn.10003130
mov edi, eax
test esi, esi
je 0x10005eb0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xd8]
test ecx, ecx
je 0x10005ec1
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.100088fa
mov esp, ebp
pop ebp
ret

Function at 0x1000b07f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x404e28
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41d3e0
call fcn.0041c860
push ecx
push ebx
push esi
mov esi, ecx
push 4
mov dword [ebp - 0x10], esi
or dword [esi], 0xffffffff
lea ebx, [esi + 4]
mov ecx, ebx
call fcn.00404bef
mov dword [ebx], 0x420480
xor ebx, ebx
mov dword [esi + 0x28], 4
mov dword [ebp - 4], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x18], 0x420498
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
mov byte [esi + 0x2c], 1
call fcn.00404f2c
lea ecx, [esi + 0x80]
mov byte [esi + 0x7c], bl
push 3
mov byte [ebp - 4], 2
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.00401615
lea ecx, [esi + 0x90]
mov byte [esi + 0x8c], bl
mov byte [esi + 0x8d], bl
push 3
mov byte [ebp - 4], 3
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.00401615
lea ecx, [esi + 0xa0]
mov byte [esi + 0x9c], bl
mov byte [esi + 0x9d], bl
mov byte [esi + 0x9e], bl
push 3
mov byte [ebp - 4], 4
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.00401615
lea ecx, [esi + 0xac]
push 3
mov byte [ebp - 4], 5
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.00401615
mov ecx, dword [ebp - 0xc]
lea eax, [esi + 0xb8]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], 8
mov dword [eax], 0x420490
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x404f2c
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x41d420
call fcn.0041c860
push ecx
push ebx
push esi
push edi
push 3
mov esi, ecx
pop edi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.00401615
lea ecx, [esi + 0xc]
push edi
mov dword [ebp - 4], ebx
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.00401615
lea ecx, [esi + 0x18]
push edi
mov byte [ebp - 4], 1
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.00401615
lea ecx, [esi + 0x24]
push edi
mov byte [ebp - 4], 2
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.00401615
lea ecx, [esi + 0x34]
mov byte [esi + 0x30], bl
push edi
mov byte [ebp - 4], 3
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.00401615
lea ecx, [esi + 0x40]
push edi
mov byte [ebp - 4], 4
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.00401615
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x409a13
Capabilities:
Get common file path

Disassembly:
mov eax, 0x41dc7c
call fcn.0041c860
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x428594], bl
push esi
mov esi, ecx
je 0x409a78
push edi
mov edi, 0x105
cmp dword [esi + 8], edi
jg 0x409a3f
push edi
call fcn.00401615
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, dword [esi]
xor edx, edx
cmp word [ecx], bx
je 0x409a5c
mov edi, ecx
inc edx
inc edi
inc edi
cmp word [edi], bx
jne 0x409a54
mov word [ecx + edx*2], bx
cmp eax, ebx
mov dword [esi + 4], edx
pop edi
jbe 0x409a74
cmp eax, 0x104
ja 0x409a74
push 1
pop eax
jmp 0x409ac7
xor eax, eax
jmp 0x409ac7
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00401669
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.004099d6
test al, al
je 0x409abc
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x24]
call fcn.00409ad5
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004015a1
push dword [ebp - 0x24]
call fcn.00407d58
pop ecx
mov bl, 1
push dword [ebp - 0x18]
call fcn.00407d58
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x409bcd
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret

Function at 0x409c56
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x41dca4
call fcn.0041c860
sub esp, 0x18
cmp byte [0x428594], 0
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
jne 0x409c97
mov edx, ebx
lea ecx, [ebp - 0x24]
call fcn.00409d02
mov eax, dword [eax]
mov edx, edi
mov ecx, eax
call fcn.00409bcd
mov bl, al
push dword [ebp - 0x24]
call fcn.00407d58
pop ecx
mov al, bl
jmp 0x409cf3
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push ebx
call esi
test eax, eax
je 0x409ca9
mov al, 1
jmp 0x409cf3
xor eax, eax
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
call fcn.00401615
and dword [ebp - 4], 0
lea edx, [ebp - 0x18]
mov ecx, ebx
call fcn.0040bb2e
test al, al
je 0x409ce8
push edi
push dword [ebp - 0x18]
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00407d58
test esi, esi
pop ecx
setne al
jmp 0x409cf3
push dword [ebp - 0x18]
call fcn.00407d58
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x409d51
Capabilities:
Delete directory

Disassembly:
mov eax, 0x41dccc
call fcn.0041c860
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x428594], bl
push esi
push edi
mov edi, ecx
jne 0x409d8d
mov edx, edi
lea ecx, [ebp - 0x24]
call fcn.00409d02
mov ecx, dword [eax]
call fcn.00409bdb
mov bl, al
push dword [ebp - 0x24]
call fcn.00407d58
pop ecx
mov al, bl
jmp 0x409de1
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edi
call esi
test eax, eax
je 0x409d9e
mov al, 1
jmp 0x409de1
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00401615
lea edx, [ebp - 0x18]
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.0040bb2e
test al, al
push dword [ebp - 0x18]
je 0x409dd9
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00407d58
cmp esi, ebx
pop ecx
setne al
jmp 0x409de1
call fcn.00407d58
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x409df0
Capabilities:
Move file

Disassembly:
mov eax, 0x41dcf0
call fcn.0041c860
sub esp, 0x34
push ebx
xor ebx, ebx
cmp byte [0x428594], bl
push esi
push edi
mov edi, edx
mov dword [ebp - 0x10], ecx
jne 0x409e4d
lea ecx, [ebp - 0x40]
call fcn.00409d02
mov edx, dword [ebp - 0x10]
mov esi, dword [eax]
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
call fcn.00409d02
mov eax, dword [eax]
mov edx, esi
mov ecx, eax
call fcn.00409c48
mov bl, al
push dword [ebp - 0x34]
call fcn.00407d58
push dword [ebp - 0x40]
call fcn.00407d58
pop ecx
mov al, bl
pop ecx
jmp 0x409eda
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
push edi
push ecx
call esi
test eax, eax
je 0x409e5f
mov al, 1
jmp 0x409eda
push 3
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.00401615
push 3
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.00401615
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
mov edx, edi
mov byte [ebp - 4], 2
call fcn.00409be8
test al, al
push dword [ebp - 0x1c]
je 0x409ec9
push dword [ebp - 0x28]
call esi
mov esi, eax
push dword [ebp - 0x1c]
call fcn.00407d58
push dword [ebp - 0x28]
call fcn.00407d58
pop ecx
cmp esi, ebx
pop ecx
setne al
jmp 0x409eda
call fcn.00407d58
push dword [ebp - 0x28]
call fcn.00407d58
pop ecx
xor al, al
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x409ef8
Capabilities:
Create directory

Disassembly:
mov eax, 0x41dd04
call fcn.0041c860
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x428594], bl
push esi
push edi
mov edi, ecx
jne 0x409f34
mov edx, edi
lea ecx, [ebp - 0x24]
call fcn.00409d02
mov ecx, dword [eax]
call fcn.00409ee9
mov bl, al
push dword [ebp - 0x24]
call fcn.00407d58
pop ecx
mov al, bl
jmp 0x409f9a
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push edi
call esi
test eax, eax
je 0x409f46
mov al, 1
jmp 0x409f9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x409f98
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00401615
lea edx, [ebp - 0x18]
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.0040bb2e
test al, al
je 0x409f8f
push ebx
push dword [ebp - 0x18]
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00407d58
cmp esi, ebx
pop ecx
setne al
jmp 0x409f9a
push dword [ebp - 0x18]
call fcn.00407d58
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40a1c6
Capabilities:
Delete file

Disassembly:
mov eax, 0x41dd4c
call fcn.0041c860
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x428594], bl
push esi
push edi
mov edi, ecx
jne 0x40a202
mov edx, edi
lea ecx, [ebp - 0x24]
call fcn.00409d02
mov ecx, dword [eax]
call fcn.0040a1a8
mov bl, al
push dword [ebp - 0x24]
call fcn.00407d58
pop ecx
mov al, bl
jmp 0x40a263
xor edx, edx
mov ecx, edi
call fcn.00409c56
test al, al
je 0x40a261
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call esi
test eax, eax
je 0x40a220
mov al, 1
jmp 0x40a263
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00401615
lea edx, [ebp - 0x18]
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.0040bb2e
test al, al
push dword [ebp - 0x18]
je 0x40a25b
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00407d58
cmp esi, ebx
pop ecx
setne al
jmp 0x40a263
call fcn.00407d58
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40a72b
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x428594], 0
je 0x40a749
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
leave
ret
mov edx, ecx
push ebx
lea ecx, [ebp - 0xc]
call fcn.00409d02
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
push dword [ebp - 0xc]
setne bl
call fcn.00407d58
pop ecx
mov al, bl
pop ebx
leave
ret
Function at 0x40a76f
Capabilities:
Get common file path

Disassembly:
mov eax, 0x41de18
call fcn.0041c860
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x428594], bl
push esi
mov esi, ecx
je 0x40a7d3
push edi
mov edi, 0x105
cmp dword [esi + 8], edi
jg 0x40a79b
push edi
call fcn.00401615
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [esi]
xor edx, edx
cmp word [ecx], bx
je 0x40a7b7
mov edi, ecx
inc edx
inc edi
inc edi
cmp word [edi], bx
jne 0x40a7af
mov word [ecx + edx*2], bx
cmp eax, ebx
mov dword [esi + 4], edx
pop edi
jbe 0x40a7cf
cmp eax, 0x104
ja 0x40a7cf
push 1
pop eax
jmp 0x40a822
xor eax, eax
jmp 0x40a822
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00401669
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.0040a6ef
test al, al
je 0x40a817
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x24]
call fcn.00409ad5
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004015a1
push dword [ebp - 0x24]
call fcn.00407d58
pop ecx
mov bl, 1
push dword [ebp - 0x18]
call fcn.00407d58
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40aae2
Capabilities:
Get common file path

Disassembly:
mov eax, 0x41deb4
call fcn.0041c860
sub esp, 0x18
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, dword [esi]
mov dword [esi + 4], ebx
mov word [eax], bx
cmp byte [0x428594], bl
je 0x40ab4e
push edi
mov edi, 0x105
cmp dword [esi + 8], edi
jg 0x40ab16
push edi
call fcn.00401615
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esi]
xor edx, edx
cmp word [ecx], bx
je 0x40ab32
mov edi, ecx
inc edx
inc edi
inc edi
cmp word [edi], bx
jne 0x40ab2a
mov word [ecx + edx*2], bx
cmp eax, ebx
mov dword [esi + 4], edx
pop edi
jbe 0x40ab4a
cmp eax, 0x104
ja 0x40ab4a
push 1
pop eax
jmp 0x40ab9d
xor eax, eax
jmp 0x40ab9d
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00401669
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.0040aaa6
test al, al
je 0x40ab92
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x24]
call fcn.00409ad5
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004015a1
push dword [ebp - 0x24]
call fcn.00407d58
pop ecx
mov bl, 1
push dword [ebp - 0x18]
call fcn.00407d58
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40abab
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, 0x105
push edi
mov edi, edx
cmp dword [esi + 8], eax
mov ebx, ecx
jg 0x40abc8
push eax
mov ecx, esi
call fcn.00401669
push dword [esi]
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, esi
mov edi, eax
call fcn.00408815
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
Function at 0x40abe5
Capabilities:
Get common file path

Disassembly:
mov eax, 0x41defe
call fcn.0041c860
sub esp, 0x2c
push ebx
xor ebx, ebx
cmp byte [0x428594], bl
push esi
push edi
mov edi, edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ebx
je 0x40ac48
mov esi, dword [ebp + 8]
mov eax, 0x104
cmp dword [esi + 8], eax
jg 0x40ac1c
push eax
mov ecx, esi
call fcn.00401615
push dword [esi]
push ebx
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [esi]
xor edx, edx
cmp word [ecx], bx
je 0x40ac3c
mov edi, ecx
inc edx
inc edi
inc edi
cmp word [edi], bx
jne 0x40ac34
mov word [ecx + edx*2], bx
mov dword [esi + 4], edx
jmp 0x40acf9
push 3
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00401669
cmp edi, ebx
mov dword [ebp - 4], ebx
je 0x40ac7b
mov edx, edi
lea ecx, [ebp - 0x38]
call fcn.00409d02
mov dword [ebp - 0x10], 1
mov esi, dword [eax]
mov byte [ebp - 4], 1
jmp 0x40ac7d
xor esi, esi
mov edx, dword [ebp - 0x14]
cmp edx, ebx
je 0x40ac99
lea ecx, [ebp - 0x2c]
call fcn.00409d02
push 2
pop ecx
or dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov ecx, dword [eax]
jmp 0x40ac9b
xor ecx, ecx
lea eax, [ebp - 0x20]
mov edx, esi
push eax
call fcn.0040abab
test byte [ebp - 0x10], 2
mov esi, eax
je 0x40acbb
push dword [ebp - 0x2c]
and dword [ebp - 0x10], 0xfffffffd
call fcn.00407d58
pop ecx
test byte [ebp - 0x10], 1
mov dword [ebp - 4], ebx
je 0x40accd
push dword [ebp - 0x38]
call fcn.00407d58
pop ecx
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x38]
call fcn.00409ad5
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 3
call fcn.004015a1
push dword [ebp - 0x38]
call fcn.00407d58
push dword [ebp - 0x20]
call fcn.00407d58
pop ecx
mov eax, esi
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4