joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466590
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffffc
sub esp, 0x28
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x4f62d0]
mov eax, dword [eax]
xor eax, ebp
mov dword [esp + 0x24], eax
mov ebx, dword [edi + 0xc]
shl ebx, 7
mov ecx, edi
push 0x80
push ebx
call fcn.004666d0
test al, al
je 0x46664c
add ebx, dword [edi]
mov dword [esp + 4], edi
lea eax, [esp + 8]
mov dword [esp + 8], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x80
mov byte [esp + 0x20], 1
push eax
push 0x40
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x46661b
mov dword [esp + 8], 0
mov eax, dword [esp + 4]
test eax, eax
je 0x46665f
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dl, byte [esp + 0x20]
mov byte [esp + 3], dl
test ebx, ebx
je 0x46667a
test ecx, ecx
je 0x46667a
test edi, edi
je 0x46667a
cmp byte [esp + 3], 0
jne 0x466673
jmp 0x46667a
xorps xmm0, xmm0
movups xmmword [esi + 0x10], xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x20], 0
jmp 0x4666a5
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dl, byte [esp + 0x20]
mov byte [esp + 3], dl
mov edx, dword [ebp + 8]
add dword [edx + 0xc], 1
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ecx
mov eax, dword [esp + 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x18], eax
mov al, byte [esp + 3]
mov byte [esi + 0x1c], al
mov byte [esi + 0x20], 1
mov eax, dword [esp + 0x24]
xor eax, ebp
mov ecx, dword [0x4f62d0]
mov ecx, dword [ecx]
cmp ecx, eax
jne 0x4666c3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.00468008
int3
Function at 0x4666d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffffc
sub esp, 0x28
mov ebx, dword [0x4f62d0]
mov eax, dword [ebx]
xor eax, ebp
mov dword [esp + 0x24], eax
mov edi, dword [ecx]
test edi, edi
je 0x466749
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax]
add edx, 0xffffffff
mov ecx, dword [esi + 8]
mov al, 1
cmp edx, ecx
jb 0x46674b
cmp ecx, dword [esi + 4]
jae 0x466749
add edi, ecx
mov al, byte [0x5178d0]
test al, al
je 0x466766
push 0x20
push 0x1000
push dword [0x518b44]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
je 0x466742
mov al, byte [0x5178d0]
test al, al
je 0x46679b
mov eax, dword [0x518b44]
add dword [esi + 8], eax
test edi, edi
setne al
jmp 0x46674b
xor eax, eax
mov ecx, dword [esp + 0x24]
xor ecx, ebp
mov edx, dword [ebx]
cmp edx, ecx
jne 0x466761
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.00468008
push 0x5178d0
call fcn.004c3610
add esp, 4
test eax, eax
je 0x466717
mov eax, esp
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 4]
mov dword [0x518b44], eax
push 0x5178d0
call fcn.004c3768
add esp, 4
jmp 0x466717
push 0x5178d0
call fcn.004c3610
add esp, 4
test eax, eax
je 0x46673a
mov eax, esp
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 4]
mov dword [0x518b44], eax
push 0x5178d0
call fcn.004c3768
add esp, 4
jmp 0x46673a
Function at 0x466c60
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffffc
sub esp, 0x30
mov edi, ecx
mov esi, dword [0x4f62d0]
mov eax, dword [esi]
xor eax, ebp
mov dword [esp + 0x2c], eax
mov al, byte [0x5178d0]
test al, al
je 0x466d1c
mov ebx, dword [edi + 0x38]
mov dword [esp], edi
mov edi, dword [edi + 0x3c]
test edi, edi
je 0x466cdb
mov eax, dword [0x518b44]
mov dword [esp + 4], eax
shl edi, 3
xor esi, esi
nop word cs:[eax + eax]
nop
lea eax, [esp + 8]
push eax
push dword [ebx + esi]
push dword [esp + 0xc]
push dword [ebx + esi + 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esi, 8
cmp edi, esi
jne 0x466cb0
mov edi, dword [esp]
mov ebx, dword [edi + 0x38]
mov esi, dword [0x4f62d0]
jmp 0x466cde
mov edi, dword [esp]
mov dword [edi + 0x3c], 0
lea eax, [edi + 0x44]
cmp ebx, eax
je 0x466cf5
push ebx
call sub.mozglue.dll_free
add esp, 4
mov eax, dword [edi + 0x14]
add edi, 0x20
cmp eax, edi
je 0x466d08
push eax
call sub.mozglue.dll_free
add esp, 4
mov eax, dword [esp + 0x2c]
xor eax, ebp
mov ecx, dword [esi]
cmp ecx, eax
jne 0x466d57
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5178d0
call fcn.004c3610
add esp, 4
test eax, eax
je 0x466c89
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0xc]
mov dword [0x518b44], eax
push 0x5178d0
call fcn.004c3768
add esp, 4
jmp 0x466c89
call fcn.00468008
int3

Function at 0x466d60
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffffc
sub esp, 0x2c
mov bl, byte [ebp + 8]
mov edi, dword [0x4f62d0]
mov edx, dword [edi]
xor edx, ebp
mov dword [esp + 0x28], edx
mov al, 1
test bl, bl
je 0x466e00
mov edi, dword [ecx + 4]
movsx esi, bl
add esi, edi
mov al, byte [0x5178d0]
test al, al
je 0x466e1b
mov ebx, dword [0x518b44]
mov eax, edi
xor edx, edx
div ebx
mov ecx, eax
mov eax, esi
xor edx, edx
div ebx
cmp ecx, eax
mov edi, dword [0x4f62d0]
mov al, 1
je 0x466e00
lea eax, [esp + 0x24]
mov ecx, esp
push eax
push 0x1c
push ecx
push 0
push esi
push 0xffffffffffffffff
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x466df2
cmp dword [esp + 0x24], 0
je 0x466dfe
cmp dword [esp + 8], 0
je 0x466dfe
cmp dword [esp + 0x10], 0x1000
jne 0x466dfe
cmp dword [esp + 0x14], 1
setne al
jmp 0x466e00
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
push eax
call sub.ntdll.dll_RtlSetLastWin32Error
xor eax, eax
mov edx, dword [esp + 0x28]
xor edx, ebp
mov ecx, dword [edi]
cmp ecx, edx
jne 0x466e16
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.00468008
push 0x5178d0
call fcn.004c3610
add esp, 4
test eax, eax
je 0x466d98
mov eax, esp
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 4]
mov dword [0x518b44], eax
push 0x5178d0
call fcn.004c3768
add esp, 4
jmp 0x466d98
Function at 0x483890
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
xor edi, edi
cmp dword [ecx + 0x40], 0
je 0x4839d0
mov esi, ecx
mov ecx, dword [ecx + 0x44]
test ecx, ecx
je 0x483a06
mov eax, dword [esi + 0x5c]
test al, 0x10
jne 0x4838df
test al, 8
je 0x4839ce
movsd xmm0, qword [esi + 0x50]
movsd qword [esp + 8], xmm0
cmp byte [esi + 0x62], 0
je 0x483961
mov edi, dword [esi + 0x10]
sub edi, dword [esi + 0xc]
jmp 0x48397d
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x14]
je 0x4838f9
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
call dword [eax + 0x34]
cmp eax, 0xffffffff
je 0x483993
lea eax, [esi + 0x48]
mov dword [esp], eax
nop
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x34]
add edx, eax
mov edi, dword [ecx]
lea ebx, [esp + 4]
push ebx
push edx
push eax
push dword [esp + 0xc]
call dword [edi + 0x14]
mov ebx, eax
mov ebp, dword [esp + 4]
mov eax, dword [esi + 0x20]
sub ebp, eax
push dword [esi + 0x40]
push ebp
push 1
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
mov edi, 0xffffffff
cmp eax, ebp
jne 0x4839d0
cmp ebx, 1
je 0x483900
cmp ebx, 2
je 0x4839d0
push dword [esi + 0x40]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
add esp, 4
test eax, eax
jne 0x4839d0
jmp 0x4839ce
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edx, dword [esi + 0x24]
mov edi, dword [esi + 0x28]
sub edi, edx
test eax, eax
jle 0x4839da
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
imul ecx, eax
add edi, ecx
xor ebx, ebx
neg edi
push 1
push edi
push dword [esi + 0x40]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
add esp, 0xc
test eax, eax
je 0x48399a
mov edi, 0xffffffff
jmp 0x4839d0
test bl, bl
je 0x4839a9
movsd xmm0, qword [esp + 8]
movsd qword [esi + 0x48], xmm0
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x5c], 0
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x48397d
mov ecx, dword [esi + 0x44]
sub eax, dword [esi + 8]
mov ebx, dword [ecx]
lea ebp, [esp + 8]
push eax
push edx
push dword [esi + 0x20]
push ebp
call dword [ebx + 0x20]
add edi, dword [esi + 0x24]
add eax, dword [esi + 0x20]
sub edi, eax
mov bl, 1
jmp 0x48397f
call fcn.004833b0
int3
Function at 0x4c4660
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4c46c8
cmp eax, 3
je 0x4c476a
cmp eax, 1
jne 0x4c47a5
cmp byte [0x516a8c], 0
jne 0x4c46bc
mov esi, dword [esp + 0xc]
push 0x516a94
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x516a90], esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x51609c], eax
mov eax, dword [0x50ae80]
cmp byte [eax], 0
jne 0x4c46bc
push 0x4c47b0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
add esp, 4
mov byte [0x516a8c], 1
jmp 0x4c47a5
mov eax, dword [0x50ae80]
cmp byte [eax], 0
je 0x4c474d
push dword [0x51609c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c4707
mov esi, eax
nop word cs:[eax + eax]
nop
mov ecx, dword [esi + 4]
call dword [esi]
mov edi, dword [esi + 8]
push esi
call sub.mozglue.dll_free
add esp, 4
mov esi, edi
test edi, edi
jne 0x4c46f0
push 0
push dword [0x51609c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x516aac]
test esi, esi
je 0x4c4737
nop
mov ecx, dword [esi + 4]
call dword [esi]
mov edi, dword [esi + 8]
push esi
call sub.mozglue.dll_free
add esp, 4
mov esi, edi
test edi, edi
jne 0x4c4720
mov dword [0x516aac], 0
push dword [0x51609c]
call dword [sym.imp.KERNEL32.dll_TlsFree]
cmp byte [0x516a8c], 1
jne 0x4c47a5
mov byte [0x516a8c], 0
push 0x516a94
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x4c47a5
push dword [0x51609c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c4797
mov esi, eax
nop dword [eax]
mov ecx, dword [esi + 4]
call dword [esi]
mov edi, dword [esi + 8]
push esi
call sub.mozglue.dll_free
add esp, 4
mov esi, edi
test edi, edi
jne 0x4c4780
push 0
push dword [0x51609c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop edi
ret 0xc
Function at 0x4cf070
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push eax
mov edi, dword [esp + 0x10]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 2
call esi
add esp, 4
push eax
push 1
push 0xb
push str.libcabi:
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
lea eax, [esp + 0x14]
mov dword [esp], eax
push 2
call esi
add esp, 4
push dword [esp]
push edi
push eax
call fcn.004c5560
add esp, 0xc
push 2
call esi
add esp, 4
push eax
push 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add esp, 8
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3

Function at 0x4cf1a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x4cf1b1
jmp dword [eax*4 + 0x50cb7c]
cmp dword [0x516ad8], 0
je 0x4cf2ad
push 0x516adc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x516af4]
test edi, edi
je 0x4cf2a2
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4cf1fb
mov edi, dword [edi + 8]
test edi, edi
je 0x4cf2a2
push dword [edi]
call ebx
mov esi, eax
call ebp
test esi, esi
je 0x4cf1f0
test eax, eax
jne 0x4cf1f0
mov eax, dword [edi + 4]
push esi
call eax
add esp, 4
jmp 0x4cf1f0
cmp dword [0x516ad8], 0
jne 0x4cf22a
push 0x516adc
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x516ad8], 1
jmp case.default.0x4cf1b1
call fcn.004c4070
jmp case.default.0x4cf1b1
cmp dword [0x516ad8], 0
je case.default.0x4cf1b1
push 0x516adc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x516af4]
test edi, edi
je 0x4cf2f3
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4cf287
mov edi, dword [edi + 8]
test edi, edi
je 0x4cf2f3
push dword [edi]
call ebx
mov esi, eax
call ebp
test esi, esi
je 0x4cf280
test eax, eax
jne 0x4cf280
mov eax, dword [edi + 4]
push esi
call eax
add esp, 4
jmp 0x4cf280
push 0x516adc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x516ad8]
cmp eax, 1
jne case.default.0x4cf1b1
mov eax, dword [0x516af4]
test eax, eax
je 0x4cf2d2
mov esi, dword [eax + 8]
push eax
call sub.mozglue.dll_free
add esp, 4
mov eax, esi
test esi, esi
jne 0x4cf2c0
mov dword [0x516af4], 0
mov dword [0x516ad8], 0
push 0x516adc
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp case.default.0x4cf1b1
push 0x516adc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4cf450
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [sym.firefox.exe_Ordinal_0]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x4cf4b8
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x4cf4b8
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x4cf4b8
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x4cf4b8
mov edx, dword [esp + 0xc]
sub edx, dword [sym.firefox.exe_Ordinal_0]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x4cf4a8
add esi, 0x28
add ecx, 0xffffffff
je 0x4cf4b8
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x4cf4a0
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x4cf4a0
mov eax, esi
pop esi
pop edi
ret

Function at 0x4cfd90
Capabilities:
Query environment variable

Disassembly:
cmp byte [0x516d28], 1
jne 0x4cfd9f
mov al, byte [0x516d29]
ret
push str.LIBUNWIND_PRINT_APIS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
setne al
setne byte [0x516d29]
mov byte [0x516d28], 1
ret

Function at 0x4cfdc0
Capabilities:
Query environment variable

Disassembly:
cmp byte [0x516d2a], 1
jne 0x4cfdcf
mov al, byte [0x516d2b]
ret
push str.LIBUNWIND_PRINT_UNWINDING
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
setne al
setne byte [0x516d2b]
mov byte [0x516d2a], 1
ret
Function at 0x4d71a0
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov dword [esp], edx
mov esi, ecx
mov bl, byte [ecx + 4]
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
test bl, bl
je 0x4d72ea
push eax
push 0x2c
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add esp, 8
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add esp, 8
cmp dword [esi], 0
je 0x4d7209
xor edi, edi
mov ebp, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
nop
push 2
call ebp
add esp, 4
push eax
push 0x20
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add esp, 8
add edi, 1
cmp edi, dword [esi]
jne 0x4d71f0
mov byte [esi + 4], 0
mov ebx, dword [esp]
test ebx, ebx
je 0x4d7307
test bl, 1
je 0x4d7260
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 9
push str.QualConst
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
and ebx, 0xfffffffe
je 0x4d72e5
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 3
push 0x50e326
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
test bl, 2
je 0x4d72a4
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 0xc
push str.QualVolatile
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
and ebx, 0xfffffffd
je 0x4d72e5
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 3
push 0x50e326
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
test bl, 4
je 0x4d72e5
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 0xc
push str.QualRestrict
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
test ebx, 0xfffffffb
je 0x4d72e5
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 3
push 0x50e326
jmp 0x4d731c
add esp, 4
jmp 0x4d7324
push eax
push 1
push 2
push 0x50e2ca
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
mov ebx, dword [esp]
test ebx, ebx
jne 0x4d7218
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 8
push str.QualNone
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4d7330
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov dword [esp], edx
mov esi, ecx
mov bl, byte [ecx + 4]
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
test bl, bl
je 0x4d73c3
push eax
push 0x2c
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add esp, 8
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add esp, 8
cmp dword [esi], 0
je 0x4d7399
xor edi, edi
mov ebp, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
nop word [eax + eax]
push 2
call ebp
add esp, 4
push eax
push 0x20
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add esp, 8
add edi, 1
cmp edi, dword [esi]
jne 0x4d7380
mov byte [esi + 4], 0
mov eax, dword [esp]
cmp al, 2
je 0x4d73dc
cmp al, 1
je 0x4d73f3
test al, al
jne 0x4d7412
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 0x1d
push str.FunctionRefQual::FrefQualNone
jmp 0x4d7408
push eax
push 1
push 2
push 0x50e2ca
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
mov eax, dword [esp]
cmp al, 2
jne 0x4d73a4
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 0x1f
push str.FunctionRefQual::FrefQualRValue
jmp 0x4d7408
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 0x1f
push str.FunctionRefQual::FrefQualLValue
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x14
jmp 0x4d7415
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4d7760
Capabilities:
Write file on windows

Disassembly:
cmp edx, 5
ja case.default.0x4d7765
jmp dword [edx*4 + 0x50d148]
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 0x1c
push str.SpecialSubKind::basic_string
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
ret
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 0x16
push str.SpecialSubKind::string
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
ret
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 0x17
push str.SpecialSubKind::istream
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
ret
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 0x17
push str.SpecialSubKind::ostream
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
ret
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 0x18
push str.SpecialSubKind::iostream
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
ret
Function at 0x4d7820
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov dword [esp], edx
mov esi, ecx
mov ebx, dword [ecx]
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add esp, 8
cmp dword [ebx], 0
je 0x4d7869
xor ebp, ebp
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
nop
push 2
call edi
add esp, 4
push eax
push 0x20
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add esp, 8
add ebp, 1
cmp ebp, dword [ebx]
jne 0x4d7850
mov byte [ebx + 4], 0
mov ebx, dword [esi]
mov ecx, dword [esp]
test ecx, ecx
je 0x4d787f
mov edx, ebx
call fcn.004d2a40
jmp 0x4d789c
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 6
push str._null_
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
mov edi, dword [esp + 0x1c]
mov byte [ebx + 4], 1
mov ecx, dword [esi]
movzx edx, byte [esp + 0x18]
call fcn.004d7960
mov esi, dword [esi]
mov bl, byte [esi + 4]
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
test bl, bl
je 0x4d791f
push eax
push 0x2c
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add esp, 8
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add esp, 8
cmp dword [esi], 0
je 0x4d7919
xor ebx, ebx
mov ebp, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
nop word cs:[eax + eax]
nop dword [eax]
push 2
call ebp
add esp, 4
push eax
push 0x20
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add esp, 8
add ebx, 1
cmp ebx, dword [esi]
jne 0x4d7900
mov byte [esi + 4], 0
jmp 0x4d7931
push eax
push 1
push 2
push 0x50e2ca
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov ecx, edi
sar ecx, 0x1f
push ecx
push edi
push str._lld
push eax
call fcn.004cf310
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4d7960
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
push esi
mov edi, edx
mov esi, ecx
mov bl, byte [ecx + 4]
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
test bl, bl
je 0x4d798d
push eax
push 0x2c
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add esp, 8
mov ecx, esi
call fcn.004d6880
jmp 0x4d799f
push eax
push 1
push 2
push 0x50e2ca
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
mov eax, str.true
mov esi, str.false
mov ecx, edi
test cl, cl
cmovne esi, eax
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputs
add esp, 8
pop esi
pop edi
pop ebx
ret