joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd31f90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0xd31ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xd32035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00d31e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0xd31fc5
mov edi, 0xd4c8b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xd32035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00d31e00
add edi, 4
add esp, 0xc
cmp edi, 0xd4c8c0
jb 0xd32000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0xd32070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00d38082
mov esi, eax
add esp, 8
test esi, esi
je 0xd32107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0xd32102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00d37946
add esp, 8
test eax, eax
je 0xd320e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0xd320e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00d37946
add esp, 8
test eax, eax
jne 0xd320c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0xd32102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0xd32f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xd479fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xd33002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00d36dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xd33002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00d2e6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00d3720b
push 0x10
call fcn.00d371d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xd32fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00d231c0
jmp 0xd32fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00d32b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xd32ff0
mov ecx, edi
call fcn.00d232c0
push edi
call fcn.00d371c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xd33021
inc ebx
cmp ebx, 0x20
jb 0xd32f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xd34250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xd48808
push 0xd38288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xd34329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xd34329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00d371d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xd34329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xd34329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xd3432c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00d34351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xd34d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xd34d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xd34d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xd34d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xd34d94
push eax
push esi
call fcn.00d3720b
add esp, 8
pop esi
ret 0x10

Function at 0xd34da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xd34e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xd34e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xd4d320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d36dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xd34dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xd34e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xd34ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xd34eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xd4d320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d36dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xd34eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xd34e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xd35000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xd35131
push esi
call fcn.00d38145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00d27080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xd35131
push 0
push ebp
call fcn.00d273a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00d27260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xd3508b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00d272f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xd35121
push 0xd4d918
push edi
call fcn.00d363f0
push eax
push ebx
push esi
call fcn.00d34f60
push 0xd4d8f8
push edi
call fcn.00d363f0
push eax
push ebx
push esi
call fcn.00d34f60
push 0xd4d8d8
push edi
call fcn.00d363f0
push eax
push ebx
push esi
call fcn.00d34f60
push 0xd4d8c0
push edi
call fcn.00d363f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00d34f60
push 0xd4d8a0
push edi
call fcn.00d363f0
push eax
push ebx
push esi
call fcn.00d34f60
push 0xd4d888
push edi
call fcn.00d363f0
push eax
push ebx
push esi
call fcn.00d34f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xd361b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00d36140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00d36140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00d36140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00d36140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xd36bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xd36c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xd4887c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xd36c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xd36c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x403608
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x41b020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4036a0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403680
xor eax, eax
push ebp
push 0x403679
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4036bc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403680
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x41b020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41b020], ax
mov esp, ebp
pop ebp
ret

Function at 0x40426c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41c044], 0
je 0x4042cd
cmp word [0x41c218], 0xd7b2
jne 0x404295
cmp dword [0x41c220], 0
jbe 0x404295
mov eax, 0x41c214
call dword [0x41c230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41b06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4042f4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41b02c], 0
jne 0x4042e9
push 0
push 0x41b064
push 0x41b06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405ec8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405f2e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404660
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403094
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405f18
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f35
lea eax, [ebp - 0x10]
call fcn.004043f0
ret

Function at 0x407a9c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040488c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x407ab5
test al, 0x10
jne 0x407ab9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a58c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a5c5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004044e0
jmp 0x40a5ce
mov eax, ebx
mov edx, esi
call fcn.00404444
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a5d8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a5f9
mov al, byte [esp]
jmp 0x40a5fb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40ac90
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40aaf8
mov eax, dword [0x41bbcc]
cmp byte [eax], 0
je 0x40ad0c
mov eax, dword [0x41bad0]
call fcn.00402f58
call fcn.00402af0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407e0c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40ad54
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ad42
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41baa8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41c660]
call fcn.00405370
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40bb00
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40bb64
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404660
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040771c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bb6b
lea eax, [ebp - 0xc]
call fcn.004043f0
ret

Function at 0x413c94
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040488c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x413cec
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x41bc50]
mov dl, 1
mov eax, dword [0x41384c]
call fcn.0040ae50
call fcn.00403e28
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00413954
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x419434
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
xor ebx, ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040487c
mov eax, dword [ebp - 8]
call fcn.0040487c
mov eax, dword [ebp - 0xc]
call fcn.0040487c
xor eax, eax
push ebp
push 0x419526
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004043f0
lea eax, [ebp - 0x111]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040488c
push eax
mov eax, dword [ebp - 4]
call fcn.0040488c
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
je 0x4194fb
lea eax, [ebp - 0x118]
lea edx, [ebp - 0x111]
mov ecx, 0x105
call fcn.00404660
mov eax, dword [ebp - 0x118]
call fcn.00407ba8
lea eax, [ebp - 0x11c]
lea edx, [ebp - 0x111]
mov ecx, 0x105
call fcn.00404660
mov eax, dword [ebp - 0x11c]
mov ecx, ebx
mov edx, dword [ebp - 0xc]
call fcn.00407c34
mov eax, dword [ebx]
call fcn.00407a8c
test al, al
jne 0x419485
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41952d
lea eax, [ebp - 0x11c]
mov edx, 2
call fcn.00404414
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404414
ret
Function at 0x419534
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x41953c
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x419807
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 1
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
dec eax
jne 0x419589
push dword [0x41db40]
push 0x419820
push dword [0x41db4c]
push dword [0x41db50]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040474c
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x41982c
mov edx, 0x41983c
mov eax, dword [0x41db40]
call fcn.00419434
mov eax, dword [ebp - 0x10]
call fcn.00407a8c
test al, al
je 0x419689
push 0x419848
push dword [ebp - 0x10]
push 0x419858
push dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.0040474c
mov eax, dword [ebp - 0x1c]
call fcn.00419050
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00407bc0
test al, al
je 0x419662
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
mov edx, 0x419868
call fcn.004046d8
mov eax, dword [ebp - 0x20]
call fcn.00419050
mov eax, dword [ebp - 0x14]
call fcn.00407ba8
test al, al
jne 0x4196a1
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
mov edx, 0x419878
call fcn.004046d8
mov eax, dword [ebp - 0x24]
call fcn.00419050
push 4
push 0
mov eax, dword [ebp - 0x14]
call fcn.0040488c
push eax
call sub.kernel32.dll_MoveFileExA
test eax, eax
jne 0x4196a1
push 0x419894
push dword [ebp - 0x10]
push 0x4198b0
push dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.0040474c
mov eax, dword [ebp - 0x28]
call fcn.00419050
jmp 0x4196a1
push 0x4198c4
push dword [ebp - 0x10]
push 0x419858
push dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.0040474c
mov eax, dword [ebp - 0x2c]
call fcn.00419050
jmp 0x4196a1
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov edx, 0x4198e0
call fcn.004046d8
mov eax, dword [ebp - 0x30]
call fcn.00419050
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 2
jne 0x41955f
mov dword [ebp - 0x18], 1
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x18]
call fcn.004075e0
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
mov edx, 0x419904
call fcn.004046d8
push dword [0x41db40]
push 0x419820
push 0x419910
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040474c
mov eax, dword [ebp - 0xc]
call fcn.0040488c
mov edx, eax
lea eax, [ebp - 0x38]
call fcn.004045e8
mov eax, dword [ebp - 0x38]
push eax
push 0x419918
mov ecx, dword [0x41c660]
mov dl, 1
mov eax, dword [0x4107d0]
call fcn.00412b9c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4197c2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x41974e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00412b44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4197ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4197c9
mov eax, dword [ebp - 8]
call fcn.0040376c
ret
Function at 0x419950
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040487c
mov eax, dword [ebp - 8]
call fcn.0040487c
mov eax, dword [ebp - 0xc]
call fcn.0040487c
lea edi, [ebp - 0x4c]
xor eax, eax
push ebp
push 0x419a83
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x419a9c
push dword [ebp - 4]
push 0x419ac0
push dword [ebp - 8]
push 0x419ad8
push dword [ebp - 0xc]
lea eax, [ebp - 0x50]
mov edx, 6
call fcn.0040474c
mov eax, dword [ebp - 0x50]
call fcn.00419050
mov eax, edi
xor ecx, ecx
mov edx, 0x3c
call fcn.00403074
mov dword [edi], 0x3c
xor eax, eax
mov dword [edi + 8], eax
mov dword [edi + 4], 0x540
mov eax, dword [ebp - 0xc]
call fcn.0040488c
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
call fcn.0040488c
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 8]
call fcn.0040488c
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [edi + 0x1c], eax
push edi
call sub.shell32.dll_ShellExecuteExA
cmp eax, 1
sbb ebx, ebx
inc ebx
push 0xffffffffffffffff
mov eax, dword [edi + 0x38]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 0x10]
push eax
mov eax, dword [edi + 0x38]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov esi, dword [ebp - 0x10]
mov eax, dword [edi + 0x38]
push eax
call sub.kernel32.dll_CloseHandle_1
lea edx, [ebp - 0x58]
mov eax, esi
call fcn.004075e0
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
mov edx, 0x419ae8
call fcn.004046d8
mov eax, dword [ebp - 0x54]
call fcn.00419050
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419a8a
lea eax, [ebp - 0x58]
mov edx, 3
call fcn.00404414
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404414
ret