joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ae40
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.00406180
test al, al
jne 0x41ae67
mov ecx, dword [ebp + 0xc]
call fcn.00406180
test al, al
jne 0x41ae67
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.0040e470
xor al, al
pop ebp
ret

Function at 0x41b130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
test ebx, ebx
je 0x41b157
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x41b152
mov eax, dword [ebx]
jmp 0x41b154
mov eax, ebx
mov byte [eax], 0
call fcn.00406180
test al, al
je 0x41b169
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0040dfc0
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x41b160
push 0x10000
call fcn.004a7e15
add esp, 4
mov dword [ebp - 8], 0
mov esi, eax
push edi
push 0x10000
push 1
push esi
call fcn.004ad072
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x10], edi
test edi, edi
je 0x41b1ff
mov eax, dword [ebp + 8]
lea esp, [esp]
test ebx, ebx
je 0x41b1d2
sub eax, dword [ebp - 8]
lea edx, [ebp - 0x10]
cmp eax, edi
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
cmovae ecx, edx
push dword [ecx]
mov ecx, ebx
push esi
call fcn.00407880
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sub eax, ecx
cmp eax, edi
jb 0x41b215
push dword [ebp - 0xc]
add ecx, edi
push 0x10000
push 1
push esi
mov dword [ebp - 8], ecx
call fcn.004ad072
mov edi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x41b1b0
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.004ad19d
add esp, 4
test eax, eax
jne 0x41b218
mov byte [ebp - 1], 1
jmp 0x41b21c
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 1], 0
push ebx
call fcn.004ad5bf
add esp, 4
test esi, esi
je 0x41b232
push esi
call fcn.004a7e10
add esp, 4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41c150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4f5470]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x40], 0
je 0x41c294
cmp byte [ebx + 0x45], 0
je 0x41c294
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x41c19d
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
mov byte [esp + 0x14], 0
xorps xmm0, xmm0
mov dword [esp + 0x28], ecx
cmp ecx, 0x10
movq qword [esp + 0x14], xmm0
lea eax, [esp + 0x14]
mov dword [esp + 0x24], 8
cmovae eax, dword [esp + 0x14]
mov byte [eax + 8], 0
lea esp, [esp]
cmp dword [esp + 0x28], 0x10
lea eax, [esp + 0x10]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x14]
cmovae edi, dword [esp + 0x14]
lea esi, [esp + 0x14]
cmovae esi, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x28]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x41c211
dec eax
je 0x41c215
sub eax, 2
je 0x41c26b
xor bl, bl
jmp 0x41c26d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x14]
cmp ecx, 0x10
mov esi, dword [esp + 0x10]
cmovae eax, edx
sub esi, eax
je 0x41c24c
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x18]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004aad31
add esp, 0x10
cmp esi, eax
jne 0x41c20d
cmp byte [ebx + 0x45], 0
je 0x41c26b
test esi, esi
jne 0x41c1d0
push esi
push 8
lea ecx, [esp + 0x1c]
call fcn.00415080
jmp 0x41c1d0
mov bl, 1
cmp dword [esp + 0x28], 0x10
jb 0x41c280
push dword [esp + 0x14]
call fcn.004a733a
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret

Function at 0x41de10
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], 0
test eax, eax
je 0x41de55
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
push ecx
lea ecx, [esp + 0x14]
push ecx
push edi
push 2
push edi
push edi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41de55
mov edi, dword [esp + 0x10]
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x14], 8
jb 0x41de60
mov edx, dword [edx]
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x14], 8
jb 0x41de6b
mov esi, dword [esi]
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41de70
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
test edi, edi
je 0x41dea4
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41deb0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [esp + 8], 0
test eax, eax
je 0x41def4
lea ecx, [esp + 0xc]
mov dword [esp + 8], esi
push ecx
lea ecx, [esp + 0xc]
push ecx
push esi
push 2
push esi
push esi
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41def4
mov esi, dword [esp + 8]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x41deff
mov eax, dword [eax]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
sete bl
test esi, esi
je 0x41df17
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41e3e0
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4f5470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
mov eax, 0x1400
cmp ax, di
je 0x41e48f
push 9
lea eax, [ebp - 0x18]
mov ebx, edi
push eax
push 0x59
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x41e48f
mov ecx, dword [ebp - 0x1c]
dec eax
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00408730
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x41e447
mov eax, dword [esi]
jmp 0x41e449
mov eax, esi
xor ecx, ecx
and edi, 0xfc00
mov word [eax], cx
xor eax, eax
cmp ax, di
je 0x41e47c
push 9
lea eax, [ebp - 0x18]
push eax
push 0x5a
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x41e47c
dec eax
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00408730
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a7e44
mov esp, ebp
pop ebp
ret
Function at 0x4221c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x4f5470]
xor eax, esp
mov dword [esp + 0x18], eax
cmp dword [0x4fb1e0], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
jne 0x42221b
push 0x44
call fcn.004a72c4
add esp, 4
test eax, eax
je 0x4221fc
mov ecx, eax
call fcn.004161c0
mov edx, eax
jmp 0x4221fe
xor edx, edx
mov ecx, edx
mov edi, 0x4fb1e0
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x42221b
test edx, edx
je 0x42221b
push ecx
mov ecx, edx
call fcn.00416180
mov eax, dword [0x4fb1e0]
cmp dword [eax], 4
jge 0x422239
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x422243
mov eax, dword [esi]
jmp 0x422245
mov eax, esi
push 0
push 0
push 0
push eax
push str.startpin
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov dword [esp + 0x20], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.00407ca0
lea edx, [esp + 0xc]
mov ecx, 0x150a
call fcn.00420fa0
cmp dword [esp + 0x20], 8
mov bl, al
jb 0x4222a0
push dword [esp + 0xc]
call fcn.004a733a
add esp, 4
mov ecx, dword [esp + 0x24]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret
Function at 0x4222c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [0x4f5470]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
xor ebx, ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], ebx
cmp dword [0x4fb1e0], ebx
jne 0x422326
push 0x44
call fcn.004a72c4
add esp, 4
test eax, eax
je 0x422307
mov ecx, eax
call fcn.004161c0
mov edx, eax
jmp 0x422309
xor edx, edx
mov ecx, edx
mov esi, 0x4fb1e0
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x422326
test edx, edx
je 0x422326
push ecx
mov ecx, edx
call fcn.00416180
mov eax, dword [0x4fb1e0]
cmp dword [eax], 4
jge 0x422347
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret
mov edx, edi
lea ecx, [esp + 0xc4]
call fcn.00421fa0
cmp dword [esp + 0xd8], 8
lea eax, [esp + 0xc4]
push 0
cmovae eax, dword [esp + 0xc8]
push 0
push 0
push eax
push str.startunpin
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x42242f
call fcn.00422520
cmp eax, 1
jl 0x422427
cmp dword [esp + 0xd8], 8
lea esi, [esp + 0xc4]
mov ebx, 1
mov dword [esp + 0x10], 0xffffffff
cmovae esi, dword [esp + 0xc4]
lea ecx, [esp + 0x18]
push ebx
push 2
call fcn.00409530
mov dword [esp + 0xb4], str.d:webapps_b_build_slave_repo_build_src_basewin_shortcut.cc
mov dword [esp + 0xb8], 0x1ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1ce
push str.d:webapps_b_build_slave_repo_build_src_basewin_shortcut.cc
lea ecx, [esp + 0x18]
mov dword [esp + 0xc4], eax
call fcn.0040a300
push 0x4f032c
push esi
lea eax, [esp + 0x20]
push str.Trying_to_startunpin
push eax
call fcn.00408da0
add esp, 8
push eax
call fcn.0040a940
add esp, 8
push eax
call fcn.00408da0
add esp, 8
test bl, 1
jmp 0x4224d0
call fcn.00422520
cmp eax, 1
jl 0x4224cd
cmp dword [esp + 0xd8], 8
lea esi, [esp + 0xc4]
push 1
cmovae esi, dword [esp + 0xc8]
lea ecx, [esp + 0x1c]
mov ebx, 2
mov dword [esp + 0x14], 0xffffffff
push ebx
call fcn.00409530
mov dword [esp + 0xb4], str.d:webapps_b_build_slave_repo_build_src_basewin_shortcut.cc
mov dword [esp + 0xb8], 0x1d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1d2
push str.d:webapps_b_build_slave_repo_build_src_basewin_shortcut.cc
lea ecx, [esp + 0x18]
mov dword [esp + 0xc4], eax
call fcn.0040a300
push str._failed
push esi
lea eax, [esp + 0x20]
push str.Trying_to_startunpin
push eax
call fcn.00408da0
add esp, 8
push eax
call fcn.0040a940
add esp, 8
push eax
call fcn.00408da0
add esp, 8
test bl, 2
je 0x4224db
lea ecx, [esp + 0x10]
call fcn.0040a0c0
mov edx, edi
mov ecx, 0x150b
call fcn.00420fa0
cmp dword [esp + 0xd8], 8
mov bl, al
jb 0x422502
push dword [esp + 0xc4]
call fcn.004a733a
add esp, 4
mov ecx, dword [esp + 0xdc]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret
Function at 0x422710
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4f5470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3c], edi
test edi, edi
jne 0x422735
mov dword [ebp - 0x38], edi
jmp 0x422754
cmp byte [edi], 0
jne 0x422743
mov dword [ebp - 0x38], 0
jmp 0x422754
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422748
sub ecx, edx
mov dword [ebp - 0x38], ecx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00415c20
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x42276c
mov eax, dword [eax]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [ebp - 8], 8
mov esi, eax
mov dword [ebp - 0x38], esi
jb 0x42278d
push dword [ebp - 0x1c]
call fcn.004a733a
add esp, 4
test esi, esi
jne 0x4227a6
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
je 0x4228b1
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a7e15
add esp, 4
mov dword [ebp - 0x44], edi
mov esi, eax
test edi, edi
jne 0x4227d7
mov dword [ebp - 0x40], edi
jmp 0x4227f4
cmp byte [edi], 0
jne 0x4227e5
mov dword [ebp - 0x40], 0
jmp 0x4227f4
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4227e8
sub edi, ecx
mov dword [ebp - 0x40], edi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00415c20
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x42280c
mov eax, dword [eax]
push dword [ebp - 0x38]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [ebp - 8], 8
jb 0x422828
push dword [ebp - 0x1c]
call fcn.004a733a
add esp, 4
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040aa10
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00415b10
mov edi, eax
add esp, 8
cmp ebx, edi
je 0x422870
cmp dword [ebx + 0x14], 0x10
jb 0x422857
push dword [ebx]
call fcn.004a733a
add esp, 4
mov dword [ebx + 0x14], 0xf
mov ecx, ebx
mov dword [ebx + 0x10], 0
push edi
mov byte [ebx], 0
call fcn.00407760
cmp dword [ebp - 0x20], 0x10
jb 0x422881
push dword [ebp - 0x34]
call fcn.004a733a
add esp, 4
cmp dword [ebp - 8], 8
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
jb 0x4228a4
push dword [ebp - 0x1c]
call fcn.004a733a
add esp, 4
test esi, esi
je 0x4228b1
push esi
call fcn.004a7e10
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a7e44
mov esp, ebp
pop ebp
ret 8
Function at 0x424ce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov ebx, ecx
mov dword [esp + 0x24], 0
test edi, edi
jns 0x424d09
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x4fa024]
mov byte [esp + 0x13], 0
test ecx, ecx
je 0x424d5e
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
test al, al
je 0x424d5e
mov ecx, dword [0x4fa024]
mov eax, edi
cdq
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], str.File::Read
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
mov byte [esp + 0x13], 1
test ecx, ecx
je 0x424d7e
mov esi, dword [ecx]
push edx
push eax
lea eax, [ebx + 4]
push eax
lea eax, [ebx + 0x1c]
push eax
push str.File::Read
call dword [esi + 0xc]
jmp 0x424d7e
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movdqu xmmword [esp + 0x2c], xmm0
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], 0
push eax
push edi
push dword [ebp + 0x10]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424dbd
mov edi, dword [esp + 0x24]
jmp 0x424dcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x424dcc
xor edi, edi
jmp 0x424dcf
or edi, 0xffffffff
cmp byte [esp + 0x13], 0
je 0x424dfd
mov ecx, dword [0x4fa024]
test ecx, ecx
je 0x424dfd
push dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push dword [esp + 0x1c]
mov esi, dword [ecx]
lea edx, [eax + 4]
push edx
lea edx, [eax + 0x1c]
push edx
push dword [esp + 0x30]
call dword [esi + 0x10]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x424e10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [esp + 0x24], 0
test edi, edi
jns 0x424e39
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x4fa024]
mov byte [esp + 0x13], 0
test ecx, ecx
je 0x424e8e
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
test al, al
je 0x424e8e
mov ecx, dword [0x4fa024]
mov eax, edi
cdq
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], str.File::ReadAtCurrentPos
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
mov byte [esp + 0x13], 1
test ecx, ecx
je 0x424eae
mov esi, dword [ecx]
push edx
push eax
lea eax, [ebx + 4]
push eax
lea eax, [ebx + 0x1c]
push eax
push str.File::ReadAtCurrentPos
call dword [esi + 0xc]
jmp 0x424eae
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
push 0
lea eax, [esp + 0x28]
push eax
push edi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424ecb
mov edi, dword [esp + 0x24]
jmp 0x424edd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x424eda
xor edi, edi
jmp 0x424edd
or edi, 0xffffffff
cmp byte [esp + 0x13], 0
je 0x424f0b
mov ecx, dword [0x4fa024]
test ecx, ecx
je 0x424f0b
push dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push dword [esp + 0x1c]
mov esi, dword [ecx]
lea edx, [eax + 4]
push edx
lea edx, [eax + 0x1c]
push edx
push dword [esp + 0x30]
call dword [esi + 0x10]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x424f20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], 0
mov ecx, dword [0x4fa024]
mov byte [ebp - 1], 0
push edi
test ecx, ecx
je 0x424f82
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
test al, al
je 0x424f82
mov ecx, dword [0x4fa024]
xorps xmm0, xmm0
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], str.File::GetLength
movlpd qword [ebp - 0x20], xmm0
mov byte [ebp - 1], 1
test ecx, ecx
je 0x424f8e
mov edx, dword [ecx]
lea eax, [esi + 4]
push 0
push 0
push eax
lea eax, [esi + 0x1c]
push eax
push str.File::GetLength
call dword [edx + 0xc]
jmp 0x424f8e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x424fa5
or ebx, 0xffffffff
or ecx, ebx
jmp 0x424fab
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp byte [ebp - 1], 0
mov dword [ebp - 0x10], ecx
je 0x424fe4
mov eax, dword [0x4fa024]
test eax, eax
je 0x424fe4
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
push dword [ebp - 0x20]
mov edi, dword [eax]
lea esi, [ecx + 4]
push esi
lea esi, [ecx + 0x1c]
mov ecx, eax
push esi
push dword [ebp - 0xc]
call dword [edi + 0x10]
mov edx, dword [ebp - 0x10]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
mov edx, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424ff0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [esp + 0x18], 0
mov esi, ecx
mov ecx, dword [0x4fa024]
mov byte [esp + 0xb], 0
push edi
mov edi, dword [ebp + 0xc]
test ecx, ecx
je 0x425060
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
test al, al
je 0x425060
mov ecx, dword [0x4fa024]
mov eax, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], str.File::SetLength
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov byte [esp + 0xf], 1
test ecx, ecx
je 0x425080
mov edx, dword [ecx]
lea eax, [esi + 4]
push edi
push ebx
push eax
lea eax, [esi + 0x1c]
push eax
push str.File::SetLength
call dword [edx + 0xc]
jmp 0x425080
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
push 1
lea eax, [esp + 0x2c]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x28], xmm0
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4250dc
push 0
push 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push ebx
push dword [esi]
call edi
test eax, eax
je 0x4250dc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4250dc
push 0
push 0
push dword [esp + 0x34]
push dword [esp + 0x34]
push dword [esi]
call edi
test eax, eax
je 0x4250dc
mov bl, 1
jmp 0x4250de
xor bl, bl
cmp byte [esp + 0xf], 0
je 0x42510c
mov ecx, dword [0x4fa024]
test ecx, ecx
je 0x42510c
push dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
push dword [esp + 0x18]
mov esi, dword [ecx]
lea edx, [eax + 4]
push edx
lea edx, [eax + 0x1c]
push edx
push dword [esp + 0x2c]
call dword [esi + 0x10]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x425470
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
xor eax, eax
mov dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 8]
test bl, 1
push esi
mov esi, ecx
mov ecx, 3
cmovne eax, ecx
test bl, 2
mov ecx, 1
cmovne eax, ecx
mov ecx, ebx
and ecx, 4
mov dword [ebp - 8], ecx
mov ecx, 4
cmovne eax, ecx
test bl, 8
mov ecx, 2
cmovne eax, ecx
mov dword [ebp + 8], eax
push edi
test bl, 0x10
je 0x4254c9
mov dword [ebp + 8], 5
jmp 0x4254d1
test eax, eax
je 0x42562e
xor edx, edx
mov edi, 0x40000000
test bl, 0x40
mov eax, 4
cmovne edx, edi
test bl, 0x80
cmovne edx, eax
test bl, 0x20
je 0x4254f4
or edx, 0x80000000
test ebx, 0x4000
je 0x425502
or edx, 0x100
test ebx, 0x40000
je 0x425510
or edx, 0x20000000
mov ecx, ebx
shr ecx, 8
not ecx
and ecx, 1
test ebx, 0x200
jne 0x425525
or ecx, 2
test ebx, 0x8000
je 0x42552f
or ecx, eax
xor eax, eax
test ebx, 0x400
cmovne eax, edi
test ebx, 0x800
je 0x425547
or eax, 0x100
test ebx, 0x1000
je 0x425552
or eax, 2
test ebx, 0x2000
je 0x42555f
or eax, 0x4000000
test ebx, 0x20000
je 0x42556c
or eax, 0x2000000
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x425577
mov edi, dword [edi]
push 0
push eax
push dword [ebp + 8]
push 0
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp dword [esi], edi
je 0x4255d0
mov ecx, esi
call fcn.0040e6f0
test edi, edi
je 0x4255d0
cmp edi, 0xffffffff
je 0x4255d0
mov dword [esi], edi
call fcn.0041a580
mov dword [ebp + 8], eax
mov eax, dword [ebp + 4]
mov ecx, dword [0x4f9ff0]
mov dword [ebp - 4], eax
test ecx, ecx
jne 0x4255c3
call fcn.0041a640
mov ecx, dword [0x4f9ff0]
push dword [ebp + 8]
mov eax, dword [ecx]
push dword [ebp - 4]
push esi
push edi
call dword [eax + 4]
mov eax, dword [esi]
test eax, eax
je 0x42561e
cmp eax, 0xffffffff
je 0x42561e
mov eax, ebx
mov dword [esi + 0x20], 0
shr eax, 0xa
and al, 1
cmp dword [ebp - 8], 0
mov byte [esi + 0x25], al
je 0x42560c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne al
mov byte [esi + 0x24], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test bl, 0xa
je 0x42562e
mov byte [esi + 0x24], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00425120
mov dword [esi + 0x20], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4