joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451cb0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebx
push ecx
push 1
pop eax
cpuid
test ecx, 0x40000000
setne al
test al, al
je 0x451ccd
rdrand eax
rdrand edx
pop ecx
pop ebx
ret
push 7
pop eax
xor ecx, ecx
cpuid
test ebx, 0x40000
setne al
test al, al
je 0x451cea
rdseed eax
rdseed edx
pop ecx
pop ebx
ret
rdtsc
mov ecx, eax
ror ecx, 0xd
rdtsc
mov edx, eax
rol edx, 0xd
mov eax, ecx
pop ecx
pop ebx
ret

Function at 0x451e3c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
nop
xor dword [ecx], 0x19039ff6
not dword [ecx]
nop
add ecx, 4
dec edx
jne 0x451e48
pop edx
pop ecx
pop ebp
ret 8

Function at 0x451ee0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push ecx
push edx
push esi
push edi
lea edi, [ebp - 0x104]
xor al, al
stosb byte es:[edi], al
mov ecx, 0x2a
mov al, 0xff
rep stosb byte es:[edi], al
mov al, 0x3e
stosb byte es:[edi], al
mov ecx, 3
mov al, 0xff
rep stosb byte es:[edi], al
mov al, 0x3f
stosb byte es:[edi], al
mov ecx, 0xa
mov al, 0x34
stosb byte es:[edi], al
inc al
loop 0x451f16
mov ecx, 3
mov al, 0xff
rep stosb byte es:[edi], al
xor al, al
stosb byte es:[edi], al
mov ecx, 3
mov al, 0xff
rep stosb byte es:[edi], al
mov ecx, 0x1a
xor al, al
stosb byte es:[edi], al
inc al
loop 0x451f37
mov dl, al
mov ecx, 6
mov al, 0xff
rep stosb byte es:[edi], al
mov ecx, 0x1a
mov al, dl
stosb byte es:[edi], al
inc al
loop 0x451f4e
mov ecx, 0x85
mov al, 0xff
rep stosb byte es:[edi], al
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, edi
mov al, byte [edi]
add edi, 4
test al, al
jne 0x451f63
lea ebx, [edi - 4]
mov eax, 0x3d
sub ebx, esi
je 0x451ff5
cmp al, byte [esi + ebx - 1]
sete dl
jne 0x451f85
mov byte [esi + ebx - 1], ah
cmp al, byte [esi + ebx - 2]
sete al
jne 0x451f92
mov byte [esi + ebx - 2], ah
add al, dl
mov edi, dword [ebp + 0xc]
shr ebx, 2
lea edx, [ebx + ebx*2]
sub edx, eax
push edx
mov dword [ebp - 4], ebx
mov ecx, dword [esi]
movzx edx, cl
movzx ebx, ch
push edi
lea edi, [ebp - 0x104]
mov al, byte [edx + edi]
mov ah, byte [ebx + edi]
shr ecx, 0x10
add esi, 4
movzx edx, cl
movzx ecx, ch
mov bl, byte [edx + edi]
mov bh, byte [ecx + edi]
pop edi
mov dl, ah
mov dh, bl
shl al, 2
shr bl, 2
shl dh, 6
shl ah, 4
shr dl, 4
or bh, dh
or al, dl
or ah, bl
mov byte [edi], al
mov byte [edi + 2], bh
mov byte [edi + 1], ah
dec dword [ebp - 4]
lea edi, [edi + 3]
jne 0x451fa3
pop eax
pop edi
pop esi
pop edx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x452000
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push ecx
push edx
push esi
push edi
lea edi, [ebp - 0x44]
mov eax, 0x44434241
stosd dword es:[edi], eax
mov eax, 0x48474645
stosd dword es:[edi], eax
mov eax, 0x4c4b4a49
stosd dword es:[edi], eax
mov eax, 0x504f4e4d
stosd dword es:[edi], eax
mov eax, 0x54535251
stosd dword es:[edi], eax
mov eax, 0x58575655
stosd dword es:[edi], eax
mov eax, 0x62615a59
stosd dword es:[edi], eax
mov eax, 0x66656463
stosd dword es:[edi], eax
mov eax, 0x6a696867
stosd dword es:[edi], eax
mov eax, 0x6e6d6c6b
stosd dword es:[edi], eax
mov eax, 0x7271706f
stosd dword es:[edi], eax
mov eax, 0x76757473
stosd dword es:[edi], eax
mov eax, 0x7a797877
stosd dword es:[edi], eax
mov eax, 0x33323130
stosd dword es:[edi], eax
mov eax, 0x37363534
stosd dword es:[edi], eax
mov eax, 0x2f2b3938
stosd dword es:[edi], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [ebp - 4], 0
jne 0x452082
jmp 0x4520dd
mov al, byte [esi]
mov dl, byte [esi + 1]
mov bl, byte [esi + 2]
mov ah, al
mov dh, dl
mov bh, bl
and ah, 3
and dh, 0xf
and bh, 0x3f
shr al, 2
shr dl, 4
shr bl, 6
shl ah, 4
shl dh, 2
or ah, dl
or bl, dh
movzx edx, al
movzx ecx, ah
push esi
lea esi, [ebp - 0x44]
mov al, byte [edx + esi]
mov ah, byte [ecx + esi]
movzx edx, bl
movzx ecx, bh
mov bl, byte [edx + esi]
mov bh, byte [ecx + esi]
pop esi
and eax, 0xffff
shl ebx, 0x10
add esi, 3
or eax, ebx
stosd dword es:[edi], eax
sub dword [ebp - 4], 3
jns 0x45207a
cmp dword [ebp - 4], 0
je 0x4520ef
add edi, dword [ebp - 4]
mov byte [edi], 0x3d
inc edi
inc dword [ebp - 4]
jne 0x4520e6
mov eax, edi
mov word [eax], 0
sub eax, dword [ebp + 0x10]
pop edi
pop esi
pop edx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x459998
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov eax, 0x74dd0d95
xor eax, 0x19039ff6
push eax
call fcn.0045a3c8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x459ab2
push 1
push 0
push 0
call dword [0x47561c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x459a94
lea eax, [ebp - 0x54]
mov dword [eax], 0x19719fa2
mov dword [eax + 4], 0x19709f83
mov dword [eax + 8], 0x19669f82
mov dword [eax + 0xc], 0x194a9f92
mov dword [eax + 0x10], 0x19709f98
mov dword [eax + 0x14], 0x19629f82
mov dword [eax + 0x18], 0x196f9f9a
mov dword [eax + 0x1c], 0x19719f93
mov dword [eax + 0x20], 0x19039ff6
mov ecx, 9
xor dword [eax], 0x19039ff6
add eax, 4
dec ecx
jne 0x459a2f
push 0x14
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 4]
call dword [0x475624]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x459a94
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0xc]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push 0
push dword [ebp - 8]
call dword [0x475634]
test eax, eax
jne 0x459a75
jmp 0x459a94
cmp dword [ebp - 0x2c], 1
jne 0x459a90
push 0
push 0
push dword [ebp - 8]
call dword [0x47562c]
test eax, eax
jne 0x459a8e
jmp 0x459a94
jmp 0x459a53
jmp 0x459a94
cmp dword [ebp - 8], 0
je 0x459aa3
push dword [ebp - 8]
call dword [0x475640]
cmp dword [ebp - 4], 0
je 0x459ab2
push dword [ebp - 4]
call dword [0x475640]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x468338
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
test dword [ebx + 0x44], 0x40000000
je 0x468356
ror ebx, 1
lea esi, [0x474dbf]
push dword [esi - 4]
call fcn.00457430
mov edi, eax
test edi, edi
je 0x4683f4
push esi
push edi
mov ecx, dword [esi - 4]
lodsb al, byte [esi]
xor al, 0x30
stosb byte es:[edi], al
dec ecx
test ecx, ecx
jne 0x468373
pop edi
pop esi
mov esi, dword [esi - 4]
push dword [ebp + 0xc]
pop dword [ebp - 8]
lea eax, [esi*2]
push eax
push 8
push ebx
call dword [ebp - 8]
mov esi, eax
test esi, esi
je 0x4683ee
push esi
push edi
call 0x469844
add esp, 8
lea esi, [esi + 0x83]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.00468400
mov dword [0x47519c], eax
lea esi, [esi + 0x41]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.00468400
mov dword [0x475194], eax
lea esi, [esi + 0xd7]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.00468400
mov dword [0x475198], eax
mov dword [ebp - 4], 1
push edi
call fcn.00457458
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401cb0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401cfb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401cf4
test esi, esi
je 0x401cf4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401cd0
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401ee0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401f30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402008
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401f6e
cmp eax, 4
jne 0x401f90
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401f7e
cmp edx, 4
je 0x401f7e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401ee0

Function at 0x402658
Capabilities:
Terminate process

Disassembly:
xor edi, edi
xor esi, esi
mov edx, eax
mov eax, 5
add eax, 5
inc eax
test eax, 0xb
jne 0x40267a
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
mov dword [0x401036], eax
ret
Function at 0x10005de0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push esi
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10005e29
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax]
push 0
push dword [ebp - 4]
mov eax, dword [eax]
push 4
push esi
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10006080
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044cfd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1005c300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
lea esi, [edi + 5]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov ebx, eax
lea eax, [ebp + 0x10]
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push edi
push esi
call fcn.100062b0
push edi
push esi
push ebx
call sub.VCRUNTIME140.dll_memcpy
lea ecx, [ebx + edi]
mov eax, esi
sub eax, ecx
mov byte [ecx], 0xe9
push edi
add eax, 0xfffffffb
add eax, edi
push 0x90
push esi
mov dword [ecx + 1], eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 0xc]
sub eax, esi
mov byte [esi], 0xe9
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebp - 0x18]
push eax
call fcn.100063b0
mov esi, dword [ebp - 0x18]
add esp, 0x28
test esi, esi
je 0x1000617e
mov ecx, dword [ebp - 0x10]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x10006174
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10006174
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.10043864
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10006280
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100062b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
add ebx, ecx
push edi
cmp ecx, ebx
jae 0x1000631e
mov eax, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp + 8], eax
push 0x1c
lea edx, [ebp - 0x28]
push edx
push ecx
call eax
test eax, eax
je 0x1000631e
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edi
cmp eax, dword [esi + 8]
je 0x10006305
mov dword [eax], ecx
mov dword [eax + 4], edi
mov dword [eax + 8], edx
add dword [esi + 4], 0xc
jmp 0x10006311
lea ecx, [ebp - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.100058c0
mov ecx, dword [ebp - 0x28]
add ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
cmp ecx, ebx
jb 0x100062d0
mov edi, dword [esi + 4]
xor ecx, ecx
mov ebx, dword [esi]
mov eax, 0x2aaaaaab
mov dword [ebp + 8], ecx
mov ecx, edi
sub ecx, ebx
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100063a1
xor ecx, ecx
mov dword [ebp + 0xc], ecx
sub edi, ebx
mov eax, 0x2aaaaaab
imul edi
mov edi, dword [ebp + 8]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jbe 0x100063a8
movq xmm0, qword [ecx + ebx]
lea eax, [ebp + 0x10]
push eax
push 0x40
movq qword [ebp - 0xc], xmm0
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, dword [esi]
inc edi
add dword [ebp + 0xc], 0xc
mov eax, 0x2aaaaaab
mov dword [ebp + 8], edi
mov edi, dword [esi + 4]
mov ecx, edi
sub ecx, ebx
imul ecx
mov ecx, dword [ebp + 0xc]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp + 8], eax
jb 0x10006343
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10006480
int3

Function at 0x100067f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 0x14], 0
je 0x1000689f
push ebx
push edi
push str.afxFrame
call fcn.100068b0
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov ebx, eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 4], ebx
test eax, eax
je 0x1000682d
push eax
push 1
lea eax, [ebp - 4]
push 4
push eax
call edi
add esp, 0x10
cmp ebx, 0xffffffff
jne 0x10006853
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10006853
push eax
push str.afxFrame
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
push dword [esi + 0x18]
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 0x10
movss xmm0, dword [ebp + 8]
mov eax, dword [esi + 0x18]
movss dword [ebp + 8], xmm0
test eax, eax
je 0x10006872
push eax
push 1
lea eax, [ebp + 8]
push 4
push eax
call edi
add esp, 0x10
push dword [esi + 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov dword [esi + 8], eax
add esp, 4
mov eax, dword [esi + 0x18]
mov dword [ebp + 8], 0
test eax, eax
je 0x1000689d
push eax
push 1
lea eax, [ebp + 8]
push 4
push eax
call edi
add esp, 0x10
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10006af0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp byte [edi + 0x14], 0
je 0x10006c6c
cmp dword [edi + 0x18], 0
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
je 0x10006c1e
cmp dword [edi + 8], 0
je 0x10006c1e
cmp dword [edi + 0x10], 0
jbe 0x10006c1e
push str.afxHidden
call fcn.10006ec0
push dword [edi + 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, dword [edi + 8]
mov ebx, eax
push 0
push esi
push dword [edi + 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov eax, dword [edi + 0x18]
mov ecx, ebx
sub ecx, esi
add esp, 0x10
mov dword [ebp - 4], ecx
test eax, eax
je 0x10006b6e
push eax
push 1
lea eax, [ebp - 4]
push 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
push 0
push ebx
push dword [edi + 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov eax, dword [edi + 0x10]
add esp, 0xc
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x18]
test eax, eax
je 0x10006b9e
push eax
push 1
lea eax, [ebp - 4]
push 4
push eax
call ebx
add esp, 0x10
mov eax, dword [edi + 0xc]
lea edx, [edi + 0xc]
mov esi, dword [eax]
cmp esi, eax
je 0x10006c10
nop word [eax + eax]
mov eax, dword [esi + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x18]
test eax, eax
je 0x10006bce
push eax
push 1
lea eax, [ebp - 4]
push 4
push eax
call ebx
add esp, 0x10
lea edx, [edi + 0xc]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x10006bf4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10006bf0
cmp esi, dword [eax + 8]
jne 0x10006bf0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10006be0
mov esi, eax
jmp 0x10006c0c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x10006c0c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x10006c00
cmp esi, dword [edx]
jne 0x10006bb0
mov ecx, edx
call fcn.10007120
mov dword [edi + 8], 0
push str.afxFrameEnd
mov ecx, edi
call fcn.100068b0
mov esi, eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 4], esi
test eax, eax
je 0x10006c44
push eax
push 1
lea eax, [ebp - 4]
push 4
push eax
call ebx
add esp, 0x10
cmp esi, 0xffffffff
pop esi
pop ebx
jne 0x10006c6c
mov eax, dword [edi + 0x18]
test eax, eax
je 0x10006c6c
push eax
push str.afxFrameEnd
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
push dword [edi + 0x18]
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 0x10
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10006da0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x14], 0
lea ebx, [edi + 0x18]
je 0x10006ddd
mov eax, dword [ebx]
test eax, eax
je 0x10006dc1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov esi, dword [edi]
mov ecx, edi
push dword [esi + 4]
push edi
call fcn.100065c0
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [edi + 4], 0
mov byte [edi + 0x14], 1
mov ecx, edi
mov esi, dword [edi]
push dword [esi + 4]
push edi
call fcn.100065c0
mov dword [esi + 4], esi
lea ecx, [edi + 0xc]
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [edi + 4], 0
mov dword [ebx], 0
mov dword [edi + 8], 0
call fcn.10007120
push 0x10048ac8
push dword [ebp + 8]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov eax, dword [ebx]
add esp, 0xc
test eax, eax
je 0x10006e5c
push eax
push str.afxGameRecord
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
push dword [ebx]
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
push dword [ebx]
lea eax, [ebp + 0xc]
push 1
push 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x20
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov byte [edi + 0x14], 0
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10006e70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x10006e8c
push eax
push 1
lea eax, [ebp + 8]
push 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop ebp
ret 4

Function at 0x10006e90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 0x18]
test ecx, ecx
je 0x10006eb2
mov al, byte [ebp + 8]
push ecx
push 1
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop ebp
ret 4

Function at 0x10006ec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.100068b0
mov edi, eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 4], edi
test eax, eax
je 0x10006eee
push eax
push 1
lea eax, [ebp - 4]
push 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, 0xffffffff
jne 0x10006f12
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10006f12
push eax
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
push dword [esi + 0x18]
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1000e200
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x20]
mov eax, ecx
mov edx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x24]
or eax, esi
test eax, 0xbfffffff
je 0x1000e225
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebp
ret
push edi
push dword [ebp + 0x14]
test edx, edx
mov eax, 0x1000
push dword [ebp + 0x1c]
cmovne eax, edx
or ecx, 1
push eax
push eax
push 1
push 0
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov edi, eax
test edi, edi
je 0x1000e28a
push 0
or esi, 0x80
push esi
push 3
push dword [ebp + 0x14]
push 0
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x1000e290
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
pop edi
pop esi
mov dword [eax], ecx
mov eax, 1
pop ebp
ret