joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460220
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ed4f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x58fc74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5a90a0]
test eax, eax
jne 0x4602da
push 0x18
call fcn.004fa16d
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4602d0
push str.ROG_PUMP_MUTEX
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0
push 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
push 0
mov word [esi + 0x13], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
push esi
mov byte [esi + 0x10], 0
push 0
mov byte [esi + 0x11], 0
push 0x460b40
mov byte [esi + 0x12], 1
call fcn.00522784
add esp, 0xc
nop dword [eax]
mov al, byte [esi + 0x12]
test al, al
jne 0x4602c0
mov ecx, esi
call fcn.0045ffd0
jmp 0x4602d2
xor esi, esi
mov dword [0x5a90a0], esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x461fc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
mov esi, ecx
push esi
push 0x461ac0
push 0
push 0
mov byte [esi + 8], 0
call fcn.00522814
add esp, 0x18
mov dword [esi], eax
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x462f60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
mov edi, ecx
push dword [ebp + 8]
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x462fc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x462fd6
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.00462d40
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x462fce
xor eax, eax
test eax, eax
pop edi
sete al
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
pop edi
mov esp, ebp
pop ebp
ret 8

Function at 0x463030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
mov edi, ecx
push dword [ebp + 8]
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x463090
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4630a6
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.00462d40
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46309e
xor eax, eax
test eax, eax
pop edi
sete al
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x463160
Capabilities:
Check if file exists
Compare security identifiers
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x58fc74]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x463240
test al, 0x10
je 0x463240
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], esi
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], esi
push eax
push 1
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x463240
mov edi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
mov word [ebp - 8], 0x500
mov dword [ebp - 0x10], esi
call edi
test eax, eax
je 0x4631f9
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0xc]
push eax
call edi
test eax, eax
je 0x463237
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x18]
or esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004fa15c
mov esp, ebp
pop ebp
ret
Function at 0x463260
Capabilities:
Check if file exists
Compare security identifiers
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x58fc74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x463387
test al, 0x10
je 0x463387
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
mov word [ebp - 8], 0x100
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x463387
push dword [ebp - 0x14]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x30], xmm0
call dword [sym.imp.ADVAPI32.dll_BuildTrusteeWithSidW]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], 0
push eax
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], 0
push eax
push 0
push 0
push 4
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x46337e
mov ecx, dword [ebp - 0x10]
push esi
xor esi, esi
cmp ax, word [ecx + 4]
jae 0x46335f
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_DeleteAce]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x463352
mov eax, dword [ebp - 0x18]
add eax, 8
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x463352
push esi
push dword [ebp - 0x10]
call edi
mov ecx, dword [ebp - 0x10]
inc esi
movzx eax, word [ecx + 4]
cmp esi, eax
jl 0x463321
pop edi
push 0
push ecx
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop ebx
call fcn.004fa15c
mov esp, ebp
pop ebp
ret
Function at 0x465f00
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f2c3
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x58fc74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x7c], eax
lea esi, [eax + 0x30]
xor ebx, ebx
mov dword [ebp - 0x80], ebx
push esi
mov dword [ebp - 0x88], esi
call fcn.004f7d95
add esp, 4
test eax, eax
je 0x465f57
push eax
call fcn.004f7e74
add esp, 4
push 0x64
mov dword [ebp - 4], 0
call fcn.004fa16d
mov edi, eax
add esp, 4
mov dword [ebp - 0x8c], edi
test edi, edi
je 0x466083
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], vtable.std::_Func_impl_no_alloc_class__lambda_c4a36e7366b61b94062b933b1305c053___void___.0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov ebx, 1
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x78], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
lea eax, [edi + 0xc]
mov dword [ebp - 4], 3
push 2
push eax
call fcn.004f7d74
lea eax, [edi + 0x3c]
push eax
call fcn.004f918f
add esp, 0xc
cmp dword [ebp - 0x78], 0
jl 0x46607e
jg 0x465fe1
cmp dword [ebp - 0x74], 0
jbe 0x46607e
lea eax, [ebp - 0x68]
mov byte [edi], 1
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x46600d
mov eax, dword [ecx]
lea edx, [ebp - 0x68]
push edx
call dword [eax]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x94]
call fcn.00464250
cmp dword [edi + 8], 0
mov ecx, eax
jne 0x466123
mov eax, dword [ecx]
mov dword [edi + 4], eax
mov eax, dword [ecx + 4]
mov dword [edi + 8], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
cmp dword [ebp - 0x90], 0
jne 0x466128
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x466085
mov edx, dword [ecx]
lea eax, [ebp - 0x68]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x44], 0
jmp 0x466085
mov byte [edi], 0
jmp 0x466085
xor edi, edi
or ebx, 2
test bl, 1
je 0x4660ac
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4660ac
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x84]
add eax, 0x110
cmp eax, ecx
je 0x4660d2
mov ebx, dword [eax]
mov dword [eax], edi
test ebx, ebx
je 0x4660e8
mov ecx, ebx
call fcn.00472940
push 0x64
push ebx
jmp 0x4660e0
test edi, edi
je 0x4660e8
mov ecx, edi
call fcn.00472940
push 0x64
push edi
call fcn.004fa19d
add esp, 8
push esi
mov dword [ebp - 4], 9
call fcn.004f7dba
add esp, 4
test eax, eax
je 0x466105
push eax
call fcn.004f7e74
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fa15c
mov esp, ebp
pop ebp
ret 8
call fcn.005230d4
call fcn.005230d4
int3
Function at 0x46e790
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53fa67
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
mov eax, dword [0x58fc74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5a90d4]
test eax, eax
jne 0x46e91e
push 0xc
call fcn.004fa16d
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x46e914
push 1
lea eax, [ebp - 0x38]
mov word [esi + 8], 0x100
push eax
mov dword [esi], 0
mov dword [esi + 4], 0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x24], 0xc
push str.Global_asusfanservice
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push 0
push eax
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
lea ecx, [ebp - 0x10]
sete al
mov byte [esi + 8], al
call fcn.0042e780
push 0x20219
push str.SOFTWAREWOW6432NodeASUSARMOURY_CRATE_Diagnosis
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 0
call fcn.0045f110
lea eax, [ebp - 0x14]
push eax
push str.EnableLog
lea ecx, [ebp - 0x10]
call fcn.0045f130
lea ecx, [ebp - 0x10]
call fcn.0045f0f0
cmp dword [ebp - 0x14], 6
jne 0x46e8cb
mov ecx, esi
call fcn.00470b30
push 0x20206
push str.SOFTWAREASUSAsusFanService
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
call fcn.0045f110
push 6
push str.EnableLog
lea ecx, [ebp - 0x10]
call fcn.0045f170
lea ecx, [ebp - 0x10]
call fcn.0045f0f0
mov ecx, esi
call fcn.00471050
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
mov dword [0x5a90e0], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x5a90dc
push 0
push esi
push 0x464240
push 0
push 0
call fcn.00522814
add esp, 0x18
mov dword [0x5a90d8], eax
mov ecx, esi
call fcn.004719d0
lea ecx, [ebp - 0x10]
call fcn.0045f0f0
jmp 0x46e916
xor esi, esi
mov dword [0x5a90d4], esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46ea50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53fac2
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x58fc74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x430], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 4], 2
mov dword [ebp - 0x434], 0x400
mov word [esi], ax
cmp dword [ebp + 0x20], 8
lea ecx, [ebp - 0x42c]
push ecx
push 0x201
lea eax, [ebp + 0xc]
mov dword [ebp - 0x430], 1
cmovae eax, dword [ebp + 0xc]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46ebc8
cmp dword [ebp + 0x38], 8
lea ecx, [ebp - 0x434]
push ecx
lea ecx, [ebp - 0x410]
push ecx
push 0
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push 0
push eax
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46ebc8
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x414], 7
lea edx, [ecx + 2]
mov word [ebp - 0x428], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46eb40
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.004040c0
lea eax, [ebp - 0x428]
cmp esi, eax
je 0x46eba7
mov ecx, esi
call fcn.00403b60
movups xmm0, xmmword [ebp - 0x428]
xor eax, eax
mov word [ebp - 0x428], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x418]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 7
lea ecx, [ebp - 0x428]
call fcn.00403b60
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x42c], eax
jmp 0x46ebce
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x20]
cmp edx, 8
jb 0x46ec0b
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ec01
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46ec73
push edx
push ecx
call fcn.004fa19d
add esp, 8
mov edx, dword [ebp + 0x38]
xor eax, eax
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 7
mov word [ebp + 0xc], ax
cmp edx, 8
jb 0x46ec55
mov ecx, dword [ebp + 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ec4b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46ec78
push edx
push ecx
call fcn.004fa19d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fa15c
mov esp, ebp
pop ebp
ret 0x34
call fcn.005159b3
call fcn.005159b3
int3
Function at 0x472540
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ff7b
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x58fc74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x114], 0
mov dword [ebp - method.fmt::v8::basic_memory_buffer_char__250__class_std::allocator_char__.virtual_0], vtable.fmt::v8::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x110], 0xfa
mov ecx, dword [ecx + 8]
lea esi, [ebp - 0x11c]
push esi
push edx
mov dword [ebp - 4], 0
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x114]
lea eax, [ecx + 1]
cmp eax, dword [ebp - 0x110]
jbe 0x4725d2
push eax
mov eax, dword [ebp - 0x11c]
mov ecx, esi
call dword [eax]
mov ecx, dword [ebp - 0x114]
mov eax, dword [ebp - 0x118]
mov byte [ecx + eax], 0
push dword [ebp - 0x118]
inc dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x10c]
mov dword [ebp - method.fmt::v8::basic_memory_buffer_char__250__class_std::allocator_char__.virtual_0], vtable.fmt::v8::basic_memory_buffer_char__250__class_std::allocator_char__.0
cmp ecx, eax
je 0x472632
mov edx, dword [ebp - 0x110]
mov eax, ecx
cmp edx, 0x1000
jb 0x472628
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47264e
push edx
push ecx
call fcn.004fa19d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fa15c
mov esp, ebp
pop ebp
ret 4
call fcn.005159b3
int3
Function at 0x4739a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540126
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x58fc74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 8]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x473b84
cmp eax, 0xffffffff
je 0x473b84
mov esi, dword [edi + 0xc]
push esi
mov dword [ebp - 0x138], esi
call fcn.004f7d95
add esp, 4
test eax, eax
je 0x473a06
push eax
call fcn.004f7e74
add esp, 4
lea eax, [ebp - 0x124]
mov dword [ebp - 4], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - method.fmt::v8::basic_memory_buffer_char__250__class_std::allocator_char__.virtual_0], vtable.fmt::v8::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x128], 0xfa
mov ecx, dword [edi + 0x14]
lea edx, [ebp - 0x134]
push edx
push ebx
mov byte [ebp - 4], 1
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [edi + 0x10], 0
je 0x473b34
mov eax, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], eax
jbe 0x473b34
test eax, eax
je 0x473a87
push 0
push 0
push eax
push dword [ebp - 0x130]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov eax, dword [ebx + 8]
movzx eax, word [edi + eax*2 + 0x18]
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x28]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x473ab2
mov dword [ebp - 0x138], 7
jmp 0x473ada
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x138]
and ecx, 0xfff0
movzx eax, ax
or ecx, eax
push ecx
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
movzx eax, word [ebp - 0x20]
mov dword [ebp - 0x138], eax
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x1c]
cmp eax, ecx
jbe 0x473afd
push 0
sub eax, ecx
push 0
push eax
mov eax, dword [ebp - 0x130]
add eax, ecx
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push dword [ebp - 0x138]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebp - 0x12c]
cmp eax, ecx
jbe 0x473b5c
push 0
sub eax, ecx
push 0
push eax
mov eax, dword [ebp - 0x130]
add eax, ecx
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
jmp 0x473b5c
push 0
lea eax, [ebp - 0x138]
mov dword [ebp - 0x138], 0
push eax
push dword [ebp - 0x12c]
push dword [ebp - 0x130]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x134]
call fcn.0046bf20
push esi
mov dword [ebp - 4], 2
call fcn.004f7dba
add esp, 4
test eax, eax
je 0x473b84
push eax
call fcn.004f7e74
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fa15c
mov esp, ebp
pop ebp
ret 4
Function at 0x475590
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5405b0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x58fc74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
push dword [edi + 8]
mov esi, dword [eax + 8]
push esi
push 1
push dword [eax + 4]
call fcn.00522d6a
add esp, 0x10
cmp eax, esi
jne 0x4755f4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fa15c
mov esp, ebp
pop ebp
ret 4
lea eax, [edi + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0047fdc0
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push str.Failed_writing_to_file
push eax
call fcn.00473ee0
add esp, 0x14
mov esi, eax
mov byte [ebp - 4], 1
call fcn.00522321
push dword [eax]
push esi
call fcn.00484d90
int3
Function at 0x47f200
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x58fc74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
push esi
push edi
cmp dword [ebx + 0x14], 0x10
jb 0x47f223
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x47f3ad
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x47f3cf
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov esi, 0x557790
mov edx, edi
lea eax, [esi + 1]
mov dword [ebp - 0x120], eax
mov al, byte [esi]
inc esi
test al, al
jne 0x47f256
sub esi, dword [ebp - 0x120]
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x120], ebx
jb 0x47f277
mov eax, dword [ebx]
mov dword [ebp - 0x120], eax
test esi, esi
je 0x47f2f6
cmp ecx, edx
jae 0x47f2f6
push 0x100
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.00512450
xor edx, edx
lea eax, [esi + 0x557790]
add esp, 0xc
mov ecx, 0x557790
cmp eax, ecx
cmovb esi, edx
test esi, esi
je 0x47f2c3
nop dword [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 1]
inc edx
mov byte [ebp + eax - 0x11c], 1
cmp edx, esi
jne 0x47f2b0
mov esi, dword [ebp - 0x120]
mov eax, dword [ebp - 0x124]
add eax, esi
lea edx, [esi + edi]
cmp eax, edx
jae 0x47f2f6
nop dword [eax + eax]
movzx ecx, byte [eax]
cmp byte [ebp + ecx - 0x11c], 0
jne 0x47f3c0
inc eax
cmp eax, edx
jb 0x47f2e0
or eax, 0xffffffff
cmp eax, 0xffffffff
mov dword [ebp - 0xc], 0
mov esi, edi
mov dword [ebp - 8], 0xf
cmovne esi, eax
mov byte [ebp - 0x1c], 0
cmp edi, esi
mov eax, esi
mov ecx, ebx
cmovb eax, edi
cmp dword [ebx + 0x14], 0x10
jb 0x47f324
mov ecx, dword [ebx]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00404d70
cmp dword [ebp - 0xc], 0
je 0x47f363
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x47f363
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.005243e9
add esp, 4
test eax, eax
jne 0x47f3c7
mov edx, dword [ebp - 8]
lea ecx, [esi + 1]
mov dword [ebp - 0x124], ecx
cmp edx, 0x10
jb 0x47f3a2
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47f392
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47f3e2
push edx
push ecx
call fcn.004fa19d
mov ecx, dword [ebp - 0x124]
add esp, 8
mov edi, dword [ebx + 0x10]
cmp ecx, edi
jb 0x47f246
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fa15c
mov esp, ebp
pop ebp
ret
sub eax, esi
jmp 0x47f2f9
lea ecx, [ebp - 0x1c]
call fcn.00404a80
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fa15c
mov esp, ebp
pop ebp
ret
call fcn.005159b3
int3