joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e50
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4bf889
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e7d04]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x40206f
mov esi, dword [esp + 0x28]
mov eax, edx
add esi, 4
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401e96
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.00404340
push 0x4d0e64
push 0x4d0e68
mov ecx, esi
call fcn.00402810
push 1
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.00402b70
push 0x4d0e64
push eax
call fcn.00402d60
mov bl, al
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401efd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x401f4c
mov ecx, dword [esi]
mov eax, dword [ecx - 0xc]
dec eax
push eax
lea edx, [esp + 0x30]
push edx
mov ecx, esi
call fcn.00402c00
push eax
mov ecx, esi
mov dword [esp + 0x24], 0
call fcn.00403120
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401f4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call fcn.00408cd0
add esp, 4
test eax, eax
jne 0x402027
push 0x4d0e6c
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.00402c80
add esp, 0xc
mov dword [esp + 0x20], 1
mov eax, dword [eax]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, 1
push eax
mov dword [esp + 0x14], ebx
call edi
test eax, eax
jne 0x401fb6
push 0x4d0e88
lea edx, [esp + 0x2c]
push esi
push edx
call fcn.00402c80
mov eax, dword [eax]
add esp, 0xc
push eax
mov ebx, 3
call edi
mov byte [esp + 0x2c], 0
test eax, eax
je 0x401fbb
mov byte [esp + 0x2c], 1
test bl, 2
je 0x401fe7
mov eax, dword [esp + 0x28]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x10], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401fe7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], 0xffffffff
test bl, 1
je 0x402014
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402014
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x2c], 0
jne 0x402027
push str.360bizhi
mov ecx, esi
call fcn.004027d0
push str._bizhi_setup.log
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.00402c80
add esp, 0xc
mov dword [esp + 0x20], 2
call fcn.0041a480
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40206f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8
Function at 0x402090
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4e7d04]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
push edi
mov edi, dword [esp + 0x21c]
test edi, edi
je 0x402133
push esi
push 0x208
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00482260
add esp, 0xc
lea esi, [esp + 0xc]
call fcn.00402150
pop esi
test eax, eax
jne 0x402102
push 1
push 0x1a
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.360bizhi
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.00485881
add esp, 0xc
mov eax, dword [ebx]
mov edx, dword [eax + 0x2c]
lea ecx, [esp + 8]
push ecx
push ebx
call edx
test eax, eax
je 0x40211d
call fcn.00408000
mov word [esp + 8], ax
mov ecx, dword [esp + 0x220]
lea eax, [esp + 8]
push eax
push ecx
push edi
call fcn.004858fe
add esp, 0xc
mov ecx, dword [esp + 0x210]
pop edi
pop ebx
xor ecx, esp
call fcn.004820d9
add esp, 0x20c
ret 0xc

Function at 0x402150
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x4e7d04]
xor eax, esp
mov dword [esp + 0x210], eax
push 0x208
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00482260
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 8]
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360wpapp.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4021ec
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4021ec
lea edx, [esp + 8]
push edx
push 0x104
push esi
call fcn.004858fe
add esp, 0xc
mov eax, 1
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004820d9
add esp, 0x214
ret
mov ecx, dword [esp + 0x210]
xor ecx, esp
xor eax, eax
call fcn.004820d9
add esp, 0x214
ret
Function at 0x402560
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4be950
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4e7d04]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
test esi, esi
je 0x402677
push esi
lea ecx, [esp + 0x24]
call fcn.00403ac0
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
or edi, 0xffffffff
test eax, eax
je 0x40261a
mov eax, dword [esp + 0x1c]
push 0x4d0e64
add eax, 4
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00402c80
add esp, 0xc
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x18], 1
call fcn.00403120
mov byte [esp + 0x14], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4025fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402600
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x28]
call fcn.004037b0
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40263e
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
jmp 0x402669
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push edi
push 0
push 0
push 1
push 1
push ecx
push edx
call fcn.004076b0
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x402677
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0xc

Function at 0x402690
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push ebp
mov ebp, dword [edx]
test ebp, ebp
je 0x4026f6
push ebx
mov ebx, dword [edx + 4]
test ebx, ebx
je 0x4026f5
mov eax, ebx
push esi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4026b0
sub eax, esi
sar eax, 1
je 0x4026f4
mov esi, dword [edx + 0xc]
mov eax, esi
push edi
lea edi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4026d0
mov ecx, dword [edx + 0x10]
mov edx, dword [edx + 8]
sub eax, edi
sar eax, 1
add eax, eax
push eax
push esi
push ecx
push edx
push ebx
push ebp
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x403ef0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403f09
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403f44
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403f40
lea ebx, [ebx]
cmp esi, eax
jae 0x403f44
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403f30
cmp esi, eax
jb 0x403f4a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x406f70
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4e0f90
push 0x484bc0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2a1c
call fcn.00484d50
mov eax, dword [0x4e7d04]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0xa34], esi
test esi, esi
je 0x407154
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406fc6
sub eax, edx
sar eax, 1
cmp eax, 0x104
ja 0x407154
mov dword [ebp - 4], 0
call fcn.004074a0
mov dword [ebp - 4], 0xfffffffe
jmp 0x40700b
push 0x800
xor ebx, ebx
push ebx
lea eax, [ebp - 0xa2c]
push eax
call fcn.00482260
add esp, 0xc
mov dword [ebp - 0xa30], ebx
push 0x2000
push ebx
lea ecx, [ebp - 0x2a34]
push ecx
call fcn.00482260
add esp, 0xc
lea edx, [ebp - 0xa30]
push edx
push 0x800
lea eax, [ebp - 0x2a34]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x407154
push 0x104
push esi
lea ecx, [ebp - 0x22c]
push ecx
call fcn.004856e8
add esp, 0xc
lea edx, [ebp - 0x22c]
push edx
call fcn.00482e26
add esp, 4
cmp dword [ebp - 0xa30], ebx
jbe 0x407154
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x4070a0
lea eax, [ebp - 0xa2c]
push eax
mov ecx, dword [ebp + ebx*4 - 0x2a34]
call fcn.00407540
add esp, 4
test eax, eax
je 0x407147
lea ecx, [ebp - 0xa2c]
push ecx
call fcn.00482e26
add esp, 4
lea ecx, [ebp - 0xa2c]
lea eax, [ebp - 0x22c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407106
test dx, dx
je 0x407102
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407106
add eax, 4
add ecx, 4
test dx, dx
jne 0x4070e0
xor eax, eax
jmp 0x40710b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x407147
mov eax, dword [ebp + ebx*4 - 0x2a34]
push eax
push 0
push 1
call edi
mov esi, eax
test esi, esi
je 0x407133
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0xa2c]
push edx
push str.Kill_process:__s
call fcn.0041aa00
add esp, 8
inc ebx
cmp ebx, dword [ebp - 0xa30]
jb 0x4070a0
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004820d9
mov esp, ebp
pop ebp
ret 4
Function at 0x407240
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4e0f70
push 0x484bc0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2a20
call fcn.00484d50
mov eax, dword [0x4e7d04]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
mov dword [ebp - 0xa2c], ebx
push str.enter_KillMultiProcesses
call fcn.0041aa00
add esp, 4
test ebx, ebx
je 0x407473
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4072a2
sub eax, edx
sar eax, 1
mov dword [ebp - 0xa34], eax
cmp eax, 4
jl 0x407473
cmp eax, 0x104
jg 0x407473
mov dword [ebp - 4], 0
call fcn.004074a0
mov dword [ebp - 4], 0xfffffffe
jmp 0x407303
push 0x800
xor esi, esi
push esi
lea eax, [ebp - 0xa28]
push eax
call fcn.00482260
add esp, 0xc
mov dword [ebp - 0xa30], esi
push 0x2000
push esi
lea ecx, [ebp - 0x2a38]
push ecx
call fcn.00482260
add esp, 0xc
lea edx, [ebp - 0xa30]
push edx
push 0x800
lea eax, [ebp - 0x2a38]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x40736a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.EnumProcesses_fail_dwError___lu
call fcn.0041aa00
add esp, 8
jmp 0x407473
push 0x104
push ebx
lea ecx, [ebp - 0x228]
push ecx
call fcn.004856e8
add esp, 0xc
lea edx, [ebp - 0x228]
push edx
call fcn.00482e26
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
mov dword [ebp - 0xa2c], edi
push edi
call fcn.00407860
add esp, 4
mov dword [ebp - 0xa38], eax
cmp dword [ebp - 0xa30], esi
jbe 0x407466
jmp 0x4073c6
mov edi, dword [ebp - 0xa2c]
mov ecx, dword [ebp + esi*4 - 0x2a38]
cmp edi, ecx
je 0x407459
cmp dword [ebp - 0xa38], ecx
je 0x407459
lea eax, [ebp - 0xa28]
push eax
call fcn.00407540
add esp, 4
test eax, eax
je 0x407459
lea ecx, [ebp - 0xa28]
push ecx
call fcn.00482e26
add esp, 4
mov edx, dword [ebp - 0xa34]
push edx
lea eax, [ebp - 0xa28]
push eax
lea ecx, [ebp - 0x228]
push ecx
call fcn.0048add1
add esp, 0xc
test eax, eax
jne 0x407459
lea edi, [ebp - 0xa28]
call fcn.00407180
test eax, eax
je 0x407439
mov edx, edi
push edx
push str.Ignore_process_:__s
jmp 0x407451
mov eax, dword [ebp + esi*4 - 0x2a38]
call fcn.00407510
lea eax, [ebp - 0xa28]
push eax
push str.Kill_process:__s
call fcn.0041aa00
add esp, 8
inc esi
cmp esi, dword [ebp - 0xa30]
jb 0x4073c0
push str.end_KillMultiProcesses
call fcn.0041aa00
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004820d9
mov esp, ebp
pop ebp
ret
Function at 0x4074a0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x18
push esi
lea eax, [esp + 4]
push eax
push 0x28
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x407501
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push esi
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
push esi
push esi
push 0x10
lea edx, [esp + 0x14]
push edx
push esi
push eax
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x18
ret

Function at 0x407510
Capabilities:
Terminate process

Disassembly:
push esi
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x407524
pop esi
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x4076b0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xfffffffffffffffe
push 0x4de7d0
push 0x484bc0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4e7d04]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0x80c]
mov edi, dword [ebp + 0x810]
mov ebx, dword [ebp + 0x820]
mov dword [ebp - 4], 0
test esi, esi
je 0x407824
cmp word [esi], 0
je 0x407824
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407724
sub eax, edx
sar eax, 1
cmp eax, 0x104
ja 0x407824
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407824
xor eax, eax
mov word [ebp], ax
push 0x7fe
push eax
lea ecx, [ebp + 2]
push ecx
call fcn.00482260
push esi
push str.__s_
push 0x3ff
lea edx, [ebp]
push edx
call fcn.004051d0
push 0x3c
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.00482260
add esp, 0x28
mov dword [ebp - 0x54], 0x3c
lea ecx, [ebp]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], str.open
mov dword [ebp - 0x40], edi
mov edx, dword [ebp + 0x814]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x50], 0x440
cmp dword [ebp + 0x818], 0
je 0x4077c5
push 0
push esi
call fcn.00404cb0
add esp, 8
test eax, eax
je 0x407824
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x4077ef
cmp dword [ebp + 0x81c], 0
je 0x4077ef
mov ecx, dword [ebp + 0x824]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test ebx, ebx
je 0x407802
test esi, esi
je 0x407810
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test esi, esi
je 0x407810
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x40782d
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.004820d9
add ebp, 0x804
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x407ab0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x70
mov eax, dword [0x4e7d04]
xor eax, esp
mov dword [esp + 0x6c], eax
mov ecx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
cmp ecx, eax
jne 0x407aee
pop edi
pop esi
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004820d9
mov esp, ebp
pop ebp
ret
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
push ecx
lea esi, [esp + 0xc]
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.0041b5b0
add esp, 4
mov eax, esi
call fcn.0041b6c0
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov dword [edi], eax
mov eax, dword [esp + 0x6c]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x74]
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.004820d9
mov esp, ebp
pop ebp
ret

Function at 0x407b70
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0xc
xor eax, eax
mov dword [ebx], eax
push edi
xor edi, edi
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [esp + 4], edi
mov dword [ebx + 0xc], eax
test ecx, ecx
je 0x407c2e
push esi
push eax
push 1
push 3
push eax
push 1
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x407c2b
cmp esi, 0xffffffff
je 0x407c24
push ebp
push edi
push edi
push edi
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x407c23
push edi
push edi
push edi
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x407c18
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0
push esi
call ebp
push 0
push 0
push 0
push esi
mov dword [esp + 0x20], eax
call ebp
mov eax, dword [esp + 0x10]
push ebx
push eax
push edi
mov dword [esp + 0x18], 1
call fcn.00407ab0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebp, dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0xc]
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop esi
pop edi
add esp, 0xc
ret
Function at 0x408000
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x80c
mov eax, dword [0x4e7d04]
xor eax, esp
mov dword [esp + 0x808], eax
push esi
push 0x800
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00482260
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [esp + 8], 0
lea esi, [esp + 8]
je 0x40808a
jmp 0x408050
mov dx, word [esi]
call fcn.004080c0
test edx, edx
ja 0x40809f
jb 0x408065
cmp eax, 0x7800000
ja 0x40809f
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408070
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x408050
xor eax, eax
pop esi
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.004820d9
mov esp, ebp
pop ebp
ret
mov ax, word [esi]
mov ecx, dword [esp + 0x80c]
pop esi
xor ecx, esp
call fcn.004820d9
mov esp, ebp
pop ebp
ret

Function at 0x4080c0
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4e7d04]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [0x4d21f8]
mov ecx, dword [0x4d21fc]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x14], ecx
mov word [esp + 0x10], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x408109
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004820d9
add esp, 0x1c
ret
xor eax, eax
lea ecx, [esp]
push ecx
push eax
push eax
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4080f6
mov ecx, dword [esp + 0x14]
mov eax, dword [esp]
mov edx, dword [esp + 4]
xor ecx, esp
call fcn.004820d9
add esp, 0x1c
ret
Function at 0x408640
Capabilities:
Get common file path

Disassembly:
sub esp, 0x814
mov eax, dword [0x4e7d04]
xor eax, esp
mov dword [esp + 0x80c], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00482260
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ecx
lea eax, [esp + 0xc]
mov ecx, esp
mov dword [esp + 8], esp
push eax
call fcn.00403ac0
call fcn.004085a0
xor ecx, ecx
add esp, 4
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.004820d9
add esp, 0x814
ret

Function at 0x4086c0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0xc
push ebx
mov ebx, dword [eax + 0x14]
push esi
mov esi, dword [eax]
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov edi, dword [ecx]
mov eax, dword [eax]
test esi, esi
je 0x4086e6
cmp esi, eax
je 0x4086eb
call fcn.00482476
cmp ebx, edi
je 0x40875b
mov dword [esp + 0x14], ebx
test esi, esi
jne 0x4086fc
call fcn.00482476
mov edi, dword [ebx + 4]
test esi, esi
je 0x408707
mov eax, dword [esi]
jmp 0x408709
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x408713
call fcn.00482476
test esi, esi
jne 0x408746
call fcn.00482476
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x408728
call fcn.00482476
mov edx, dword [edi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test esi, esi
jne 0x40873b
call fcn.00482476
mov ebx, dword [ebx + 4]
test esi, esi
je 0x40874a
mov eax, dword [esi]
jmp 0x40874c
mov eax, dword [esi]
jmp 0x40871e
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x4086d4
call fcn.00482476
jmp 0x4086d4
mov ebx, dword [ebp + 8]
call fcn.004034b0
mov esi, ebx
mov eax, dword [esi + 0x14]
push eax
call fcn.0047b130
mov ecx, dword [esi]
add esp, 4
push ecx
mov dword [esi + 0x14], 0
call fcn.0047b130
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4