joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4682f0
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get program files directory
Initialize iwebbrowser2
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.005091d0
xor eax, eax
mov dword [ebp - 0x424], 1
push 0x206
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
mov dword [ebp - 0x428], 0x208
call fcn.005091d0
add esp, 0x18
lea eax, [ebp - 0x418]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push str._sInternet_Exploreriexplore.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x210]
add esp, 0xc
push eax
call esi
test eax, eax
jne 0x4683d1
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x424]
push eax
push 0x53fc30
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x210]
push eax
call esi
test eax, eax
jne 0x4683d1
mov word [ebp - 0x210], ax
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4683e0
sub ecx, edx
sar ecx, 1
je 0x468427
push 0xa
push 0
push str.http:__se.360.cn_
lea eax, [ebp - 0x210]
push eax
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0
push eax
push 0x53584c
push 0x15
push 0
push 0x53585c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x468461
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x41c]
test ecx, ecx
je 0x468503
mov dword [ebp - 0x420], 0
lea edx, [ebp - 0x420]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x94]
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x4684a8
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
push dword [ebp - 0x420]
call dword [sym.imp.USER32.dll_ShowWindow]
push str.http:__se.360.cn_
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp - 0x41c]
mov esi, eax
xor eax, eax
mov dword [ebp - 0x440], esi
mov word [ebp - 0x438], ax
mov eax, 8
mov word [ebp - 0x448], ax
lea eax, [ebp - 0x438]
mov edx, dword [ecx]
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x448]
push eax
push ecx
call dword [edx + 0xd0]
mov eax, dword [ebp - 0x41c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.00501d03
mov esp, ebp
pop ebp
ret
Function at 0x468520
Capabilities:
Check if file exists
Get common file path
Get program files directory
Initialize iwebbrowser2
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.005091d0
xor eax, eax
mov dword [ebp - 0x41c], 1
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
mov dword [ebp - 0x420], 0x208
call fcn.005091d0
add esp, 0x18
lea eax, [ebp - 0x414]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push str._sInternet_Exploreriexplore.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x468602
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0x53fc30
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x468602
mov word [ebp - 0x20c], ax
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
jmp 0x468610
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x468610
sub ecx, edx
sar ecx, 1
jne 0x46865a
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0
push eax
push 0x53584c
push 0x15
push 0
push 0x53585c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x46866d
mov ecx, dword [ebp - 0x418]
test ecx, ecx
je 0x46866d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
Function at 0x468f50
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x20], 0
cmp dword [ecx + 0x14], 8
push edi
jb 0x468f71
mov ecx, dword [ecx]
push ecx
lea eax, [ebp - 0x1c]
push str.__ls___b:1__c:1
push eax
call fcn.00465c00
add esp, 0xc
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x468fff
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x468fff
cmp dword [ebp - 8], 8
lea edx, [ebp - 0x1c]
cmovae edx, dword [ebp - 0x1c]
mov ecx, edx
lea edi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x468fd0
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.sesvc
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 8
jb 0x469010
push dword [ebp - 0x1c]
call fcn.0050269b
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00501d03
mov esp, ebp
pop ebp
ret
Function at 0x469020
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0x50], 0
cmp dword [ecx + 0x14], 8
push edi
jb 0x469042
mov ecx, dword [ecx]
push ecx
lea eax, [ebp - 0x4c]
push str.__ls___b:1__c:1
push eax
call fcn.00465c00
add esp, 0xc
lea eax, [ebp - 0x60]
xor edi, edi
xor esi, esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], edi
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], esi
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4691a7
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], edi
test esi, esi
je 0x4691a7
mov word [ebp - 0x34], ax
lea ecx, [ebp - 0x5c]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x20], 7
push eax
push str.sesvc
mov dword [ebp - 0x24], edi
call fcn.0045ba20
test eax, eax
jne 0x469190
lea ecx, [ebp - 0x34]
call fcn.004154db
xor eax, eax
mov dword [ebp - 8], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x1c], ax
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0xc], edi
push eax
call fcn.004059ba
lea ecx, [ebp - 0x1c]
call fcn.004154db
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x34]
mov edi, dword [ebp - 0x24]
lea edx, [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x34]
mov esi, edi
mov ebx, dword [ebp - 0xc]
cmp ebx, edi
cmovb esi, ebx
cmp dword [ebp - 8], 8
cmovae edx, dword [ebp - 0x1c]
test esi, esi
jne 0x469127
xor eax, eax
test eax, eax
jne 0x46914f
cmp ebx, edi
jae 0x469146
or eax, 0xffffffff
jmp 0x46914d
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x469138
add edx, 2
add ecx, 2
dec esi
jmp 0x469116
movzx eax, word [edx]
cmp ax, word [ecx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x46911a
xor eax, eax
cmp ebx, edi
setne al
test eax, eax
sete bl
cmp dword [ebp - 8], 8
jb 0x469163
push dword [ebp - 0x1c]
call fcn.0050269b
add esp, 4
xor eax, eax
mov dword [ebp - 8], 7
cmp dword [ebp - 0x20], 8
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
jb 0x469188
push dword [ebp - 0x34]
call fcn.0050269b
add esp, 4
mov edi, dword [ebp - 0x54]
mov esi, dword [ebp - 0x5c]
jmp 0x4691a9
cmp dword [ebp - 0x20], 8
jb 0x4691a1
push dword [ebp - 0x34]
call fcn.0050269b
add esp, 4
mov esi, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x54]
xor bl, bl
test esi, esi
je 0x4691b4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4691c0
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
cmp dword [ebp - 0x38], 8
jb 0x4691d1
push dword [ebp - 0x4c]
call fcn.0050269b
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret
Function at 0x4694a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, edx
push edi
mov edi, ecx
cmp dword [esi + 0x14], 8
jb 0x4694b6
mov eax, dword [esi]
jmp 0x4694b8
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4694f9
cmp dword [esi + 0x14], 8
jb 0x4694ce
mov ecx, dword [esi]
jmp 0x4694d0
mov ecx, esi
lea edx, [ebp - 4]
mov dword [ebp - 4], 0xffffffff
call fcn.00477fb0
test eax, eax
je 0x4694f0
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x4694f9
cmp eax, 4
je 0x4694f9
xor dl, dl
mov ecx, esi
call fcn.004575a0
cmp dword [edi + 0x14], 8
jb 0x469503
mov ecx, dword [edi]
jmp 0x469505
mov ecx, edi
lea edx, [ebp - 4]
mov dword [ebp - 4], 0xffffffff
call fcn.00477fb0
test eax, eax
je 0x469575
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x469525
cmp eax, 4
jne 0x469575
mov edx, esi
mov ecx, edi
call fcn.004691f0
cmp dword [esi + 0x14], 8
jb 0x469536
mov esi, dword [esi]
lea edx, [ebp - 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00477fb0
test eax, eax
je 0x469558
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x469565
cmp eax, 4
je 0x469565
xor eax, eax
test eax, eax
setne al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
test eax, eax
setne al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4696a0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4696f8
mov esi, dword [ebp - 4]
test esi, esi
je 0x4696f8
push str.sesvc
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46a410
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x20d], 0
mov eax, 8
imul ecx, eax, 0
mov edx, 4
shl edx, 0
lea eax, [ecx + edx + 0x5d9b50]
push eax
mov ecx, 8
imul edx, ecx, 0
mov eax, 4
imul ecx, eax, 0
lea edx, [edx + ecx + 0x5d9b50]
push edx
mov edx, dword [ebp + 8]
mov ecx, str.shell32.dll
call fcn.0046a360
add esp, 8
test eax, eax
je 0x46a475
mov byte [ebp - 0x20d], 1
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.005091d0
add esp, 0xc
movzx edx, byte [ebp - 0x20d]
test edx, edx
je 0x46a4d4
push 0
push 0x24
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x46a4d4
lea ecx, [ebp - 0x20c]
push ecx
push str._sexplorer.exe
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00503907
add esp, 0x10
jmp 0x46a4d7
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
Function at 0x46b960
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x769810], 0
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0x46b9b8
push 0x44
call fcn.005026c6
add esp, 4
test eax, eax
je 0x46b999
mov ecx, eax
call fcn.00463d40
mov edx, eax
jmp 0x46b99b
xor edx, edx
mov ecx, edx
mov ebx, 0x769810
xor eax, eax
lock cmpxchg dword [ebx], ecx
test eax, eax
je 0x46b9b8
test edx, edx
je 0x46b9b8
push ecx
mov ecx, edx
call fcn.00463d00
mov eax, dword [0x769810]
cmp dword [eax], 4
jge 0x46b9d5
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
call fcn.00464360
cmp eax, 7
jge 0x46ba0e
push 0
push 0
push 0
push esi
push str.taskbarpin
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov al, cl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
call fcn.004645a0
sub esp, 8
test al, al
je 0x46ba36
push edi
mov edx, esi
call fcn.0046b5d0
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
mov ecx, esp
mov dword [ecx], esi
test esi, esi
je 0x46ba5f
cmp word [esi], 0
jne 0x46ba48
xor esi, esi
jmp 0x46ba5f
lea edx, [esi + 2]
jmp 0x46ba50
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x46ba50
sub esi, edx
sar esi, 1
mov dword [ecx + 4], esi
lea ecx, [ebp - 0x1c]
call fcn.00458fb0
mov edx, eax
call fcn.0046a690
cmp dword [ebp - 8], 8
mov bl, al
jb 0x46ba84
push dword [ebp - 0x1c]
call fcn.0050269b
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret

Function at 0x46baa0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ecx + 0x14], 8
jb 0x46baae
mov ecx, dword [ecx]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x46bace
or eax, 0xffffffff
or edx, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
test edx, edx
jg 0x46bae6
jl 0x46bade
test eax, eax
jae 0x46bae6
or eax, 0xffffffff
mov edx, SysReAllocString
mov esp, ebp
pop ebp
ret
Function at 0x46cbd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
mov edx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
push 0xffffffffffffffff
lea esi, [edi + 4]
mov ecx, esi
call fcn.00462340
add esp, 4
test al, al
jne 0x46cc52
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x46cc44
cmp eax, 0x21
je 0x46cc44
cmp eax, 5
jne 0x46cc1d
mov eax, 0x3e8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x14], 8
jb 0x46cc25
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
lea eax, [ecx*2 + 0x3e9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x3ea
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x20], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4701f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c8
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x290], edx
mov dword [ebp - 0x284], ebx
mov esi, ecx
push ebx
push 2
mov byte [ebp - 0x27e], 1
mov dword [ebp - 0x27c], 0x5515cc
mov byte [ebp - 0x274], bl
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x278], eax
lea ecx, [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x27c], 0x55143c
push 0xffffffffffffffff
push eax
push esi
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
call fcn.004059ba
lea ecx, [ebp - 0x27c]
call fcn.004790a0
test eax, eax
je 0x4703f7
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push dword [eax + 8]
push 0
push 0x100401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
lea ecx, [ebp - 0x2a0]
call fcn.00468a20
push eax
lea ecx, [ebp - 0x298]
call fcn.00468b50
lea ecx, [ebp - 0x2a0]
call fcn.00468c80
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x28c]
call fcn.00468b50
lea ecx, [ebp - 0x298]
call fcn.00468c80
test bl, 1
je 0x4702e4
lea ecx, [ebp - 0x4c4]
and ebx, 0xfffffffe
call fcn.0045cee0
cmp byte [ebp - 0x28c], 0
je 0x4702f1
call edi
jmp 0x4702f7
mov eax, dword [ebp - 0x288]
push dword [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne al
mov byte [ebp - 0x27d], al
test al, al
je 0x470353
cmp byte [ebp - 0x28c], 0
je 0x470320
call edi
jmp 0x470326
mov eax, dword [ebp - 0x288]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4703cd
test bl, 2
je 0x4703cd
lea ecx, [ebp - 0x414]
and ebx, 0xfffffffd
call fcn.0045d680
jmp 0x4703cd
test bl, 4
je 0x4703d3
mov edx, dword [ebp - 0x35c]
lea ecx, [ebp - 0x20]
and ebx, 0xfffffffb
call fcn.0045d4a0
mov edx, 0x53f75c
lea ecx, [ebp - 0x34c]
mov esi, eax
call fcn.00405723
mov edx, esi
mov ecx, eax
call fcn.00443aa2
cmp dword [ebp - 0xc], 0x10
jb 0x470395
push dword [ebp - 0x20]
call fcn.0050269b
add esp, 4
mov eax, dword [ebp - 0x35c]
mov dword [ebp - 0x284], eax
lea eax, [ebp - 0x284]
push eax
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
call fcn.0042dd10
add esp, 4
lea ecx, [ebp - 0x354]
call fcn.0045cee0
mov al, byte [ebp - 0x27d]
and byte [ebp - 0x27e], al
lea ecx, [ebp - 0x28c]
call fcn.00468c80
lea ecx, [ebp - 0x27c]
call fcn.004790a0
test eax, eax
jne 0x470281
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x27c], 0x55143c
jb 0x470412
push dword [ebp - 0x40]
call fcn.0050269b
add esp, 4
push dword [ebp - 0x278]
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 0x27c], 0x5515cc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov al, byte [ebp - 0x27e]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret
Function at 0x470460
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push ecx
push 0
push 0x100001
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x470489
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne bl
test bl, bl
je 0x4704a7
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x471490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], 0
test edi, edi
jns 0x4714bd
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x768f80]
xor ebx, ebx
test ecx, ecx
je 0x471502
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
test al, al
je 0x471502
mov ecx, dword [0x768f80]
lea ebx, [esi + 0x1c]
mov eax, edi
mov dword [esp + 0x14], str.File::WriteAtCurrentPos
cdq
push edx
mov esi, dword [ecx]
push eax
mov eax, dword [esp + 0x18]
add eax, 4
push eax
push ebx
push str.File::WriteAtCurrentPos
call dword [esi + 0xc]
mov esi, dword [esp + 0x10]
jmp 0x47150a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
or esi, 0xffffffff
test eax, eax
cmovne esi, dword [esp + 0x18]
test ebx, ebx
je 0x47153f
mov ecx, dword [0x768f80]
test ecx, ecx
je 0x47153f
mov edx, dword [ecx]
push ebx
push dword [esp + 0x18]
call dword [edx + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x471550
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 8], 0
mov edi, ecx
mov ecx, dword [0x768f80]
xor esi, esi
mov dword [ebp - 4], esi
test ecx, ecx
je 0x4715a3
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
test al, al
je 0x4715a3
mov ecx, dword [0x768f80]
lea eax, [edi + 4]
push 0
push 0
push eax
mov edx, dword [ecx]
lea esi, [edi + 0x1c]
push esi
push str.File::GetLength
mov dword [ebp - 4], esi
mov dword [ebp - 8], str.File::GetLength
call dword [edx + 0xc]
jmp 0x4715a9
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4715c0
or edi, 0xffffffff
or ebx, edi
jmp 0x4715c6
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
test esi, esi
je 0x4715df
mov ecx, dword [0x768f80]
test ecx, ecx
je 0x4715df
push dword [ebp - 4]
mov esi, dword [ecx]
push dword [ebp - 8]
call dword [esi + 0x10]
mov eax, edi
mov edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4715f0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], 0
mov ecx, dword [0x768f80]
xor edi, edi
test ecx, ecx
je 0x47163f
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
test al, al
je 0x47163f
push dword [ebp + 0xc]
mov ecx, dword [0x768f80]
lea eax, [esi + 4]
push dword [ebp + 8]
lea edi, [esi + 0x1c]
mov dword [ebp - 4], str.File::SetLength
push eax
mov edx, dword [ecx]
push edi
push str.File::SetLength
call dword [edx + 0xc]
jmp 0x471645
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea eax, [ebp - 0x18]
push 1
push eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [esi]
call ebx
test eax, eax
je 0x47169b
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call ebx
test eax, eax
je 0x47169b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x47169b
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [esi]
call ebx
test eax, eax
je 0x47169b
mov bl, 1
jmp 0x47169d
xor bl, bl
test edi, edi
je 0x4716b4
mov ecx, dword [0x768f80]
test ecx, ecx
je 0x4716b4
mov edx, dword [ecx]
push edi
push dword [ebp - 4]
call dword [edx + 0x10]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8