joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cc07
Capabilities:
Write file on windows

Disassembly:
cmp dword [0x45c4bc], 0
jne 0x41cd34
push 0x4549f8
mov eax, dword [0x45c544]
push 0x456f78
mov ecx, 0x466010
push eax
call fcn.00417638
cmp dword [0x45c4b4], 0
jne 0x4358e2
mov ecx, 0x470
call fcn.00407200
mov edx, eax
mov ecx, 0x5b
call fcn.0041395d
mov ecx, 0x466010
call fcn.0041ccca
mov eax, dword [0x466024]
push eax
call dword [sym.imp.MSVCRT40.dll_fflush]
add esp, 4
mov ecx, dword [0x466024]
push 0
push 0x46f
push ecx
call dword [sym.imp.MSVCRT40.dll_fseek]
add esp, 0xc
mov dword [0x469160], eax
test eax, eax
jne 0x4358a4
mov eax, dword [0x466018]
mov ecx, dword [0x466014]
add eax, dword [0x466010]
add ecx, 2
cmp eax, ecx
jb 0x4358c4
mov eax, 1
and dword [0x466028], eax
je 0x41ccc5
mov eax, dword [0x466014]
mov byte [eax], 0
inc dword [0x466014]
mov ecx, 0x466010
cmp dword [0x45c4c0], 0
je 0x435892
cmp dword [0x45c4b4], 0
jne 0x41cc14
mov ecx, dword [0x45c4c0]
call fcn.0042305c
push 0x456d18
mov eax, dword [0x45c4d0]
push 0x4521f4
mov ecx, 0x466010
push eax
call fcn.00417638
mov dword [0x45c4e4], 1
jmp 0x41cc2e
cmp dword [0x45c4d0], 0
jne 0x41cd41
jmp 0x41cc14
push 0x710
mov edx, 0x153
push str.pch.c
mov ecx, 0x56
push 0
call fcn.0044725e
jmp 0x41cc8e
push 2
mov ecx, 0x466010
call fcn.0040e7b7
test eax, eax
mov eax, 0
jne 0x41ccaa
jmp 0x41ccaf
ret

Function at 0x41ccca
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
mov ebx, dword [ecx + 4]
mov esi, dword [ecx]
mov edi, ecx
cmp ebx, esi
je 0x41cd30
cmp dword [0x4664c4], 1
mov eax, 1
jg 0x41cce8
xor eax, eax
add eax, dword [0x466460]
jne 0x41cd2b
cmp dword [0x466314], 0
jne 0x41cd2b
cmp dword [0x466164], 0
jne 0x41cd2b
cmp dword [edi + 0x18], 0
je 0x42ae3b
mov eax, dword [edi + 0x14]
push eax
mov eax, ebx
sub eax, esi
push eax
push 1
push esi
call dword [sym.imp.MSVCRT40.dll_fwrite]
add esp, 0x10
sub ebx, eax
cmp ebx, esi
jne 0x42ae3b
mov eax, dword [edi]
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
ret
push 0x44
mov edx, 0x153
push str.ilsink.cpp
mov ecx, 0x58
push 0
call fcn.0044725e
jmp 0x41cd2b
Function at 0x42329e
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x24]
push ebp
mov ebx, dword [esp + 0x30]
mov ecx, dword [0x46644c]
test ebx, ebx
je 0x4394ce
mov eax, dword [esp + 0x2c]
push ecx
push eax
push edi
call dword [sym.imp.MSVCRT40.dll_fgets]
add esp, 0xc
test eax, eax
mov eax, dword [str.c1.err]
je 0x4394e7
lea eax, [esp + 0x10]
push eax
push edi
call fcn.004231ef
mov ecx, dword [0x46644c]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x10], esi
jne 0x43950b
cmp dword [esp + 0x10], esi
jne 0x439528
test ebx, ebx
je 0x439566
mov eax, dword [esp + 0x1c]
push eax
call fcn.00423241
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x10
push ecx
call dword [sym.imp.MSVCRT40.dll_ftell]
mov dword [esp + 0x1c], eax
add esp, 4
mov ecx, dword [0x46644c]
jmp 0x4232bf
test ebx, ebx
jne 0x43955a
push eax
mov edx, 0x13a
mov ecx, 0x53
call fcn.004472b0
push 0x44
call dword [sym.imp.MSVCRT40.dll_exit]
add esp, 4
jmp 0x4232dc
mov ebp, 0x3e8
mov eax, dword [esp + 0x10]
cdq
idiv ebp
cmp edx, 0x3e7
je 0x4232fb
jmp 0x4232b7
mov ebp, 0xfffffc18
mov eax, dword [esp + 0x10]
cdq
idiv ebp
mov dword [esp + 0x14], eax
mov eax, esi
cdq
idiv ebp
cmp dword [esp + 0x14], eax
jne 0x4232b7
push 0
push 0
push ecx
call dword [sym.imp.MSVCRT40.dll_fseek]
add esp, 0xc
jmp 0x42330d
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x10
mov eax, dword [esp + 0x18]
push esi
push eax
call fcn.0044717d
jmp 0x42330d

Function at 0x424b06
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, ecx
call dword [sym.imp.MSVCRT40.dll___p__iob]
add eax, 0x40
mov ecx, 0xffffffff
push eax
push 1
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
call dword [sym.imp.MSVCRT40.dll_fwrite]
add esp, 0x10
pop edi
pop esi
ret
Function at 0x424e16
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov dword [esp + 4], edx
push ebx
push esi
mov ebx, ecx
mov cx, word [ebx + 6]
push edi
and cx, 1
push ebp
mov eax, 2
jne 0x424e39
movsx eax, byte [0x45c699]
xor ebp, ebp
mov edx, dword [esp + 0x14]
mov bp, word [ebx + 4]
sub ebp, eax
xor eax, eax
mov ax, word [edx + 4]
mov dword [esp + 0x18], eax
lea esi, [eax + ebp]
mov ax, word [edx + 6]
and ax, 1
cmp ax, cx
jne 0x43b7db
test byte [ebx + 6], 2
mov word [ebx + 4], si
jne 0x43b7ed
cmp dword [0x45e470], 3
mov esi, 0
je 0x424e85
mov esi, dword [0x45e470]
shl esi, 5
xor edx, edx
mov dx, word [ebx + 4]
lea ecx, [esi + 0x46a378]
add edx, 3
mov eax, dword [ecx]
and edx, 0xfffffffc
mov dword [esp + 0x10], eax
add eax, edx
mov dword [ecx], eax
cmp dword [esi + 0x46a37c], eax
jb 0x43b808
mov edi, dword [esp + 0x10]
mov esi, dword [ebx]
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x10]
add edi, ebp
mov edx, dword [esp + 0x14]
mov dword [ebx], eax
mov eax, dword [esp + 0x18]
mov esi, dword [edx]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0xc
ret
push 0x134
call fcn.00447247
add esp, 4
jmp 0x424e63
mov eax, dword [ebx]
mov byte [eax], 0x50
test byte [ebx + 6], 2
je 0x424e71
mov ecx, ebx
call fcn.0043eea4
jmp 0x424e71
call fcn.0040bd26
jmp 0x424eb0
Function at 0x425535
Capabilities:
Write file on windows

Disassembly:
cmp dword [0x469158], 0
jne fcn.004451c7
Function at 0x42588c
Capabilities:
Write file on windows

Disassembly:
sub esp, 4
mov word [esp + 2], 0
push ebx
push esi
push edi
mov ebx, edx
push ebp
mov esi, ecx
call fcn.004230fa
mov edi, dword [esi + 8]
test edi, edi
je 0x4258e8
mov esi, dword [esp + 0x18]
jmp 0x4258d8
test ebx, ebx
je 0x43c19e
movzx eax, bp
push ebx
push eax
push 1
push edi
call dword [sym.imp.MSVCRT40.dll_fwrite]
add esp, 0x10
add word [esp + 0x12], bp
mov edi, dword [edi + 0x7f8]
test edi, edi
je 0x4258e8
mov ebp, dword [edi + 0x7fc]
test ebp, ebp
jne 0x4258b0
mov bp, 0x7f8
jmp 0x4258b0
mov ax, word [esp + 0x12]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 4
test esi, esi
je 0x4258c9
push esi
mov edx, 1
movzx eax, bp
push eax
mov ecx, edi
call fcn.00422b81
jmp 0x4258c9

Function at 0x4258f7
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push esi
mov eax, dword [ecx + 0x14]
push edi
push ebp
mov esi, ecx
push 0
push 0
push eax
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x469160], eax
cmp eax, 0xffffffff
je 0x43c1bc
mov ebx, dword [esi + 0x10]
push 0
lea eax, [esp + 0x14]
mov ecx, dword [esi + 0x18]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 4
push esi
push ecx
call edi
cmp dword [esp + 0x10], 4
jne 0x43c1de
mov ebx, dword [esi + 0x10]
push 0
cmp dword [esi + 4], 1
sbb eax, eax
lea ecx, [esp + 0x14]
inc eax
push ecx
push 4
mov edx, dword [esi + 0x18]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push edx
call edi
cmp dword [esp + 0x10], 4
jne 0x43c1fd
cmp dword [esp + 0x14], 0
jne 0x43c21c
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x18]
call fcn.00425b8c
xor ebp, ebp
xor ebx, ebx
cmp dword [esi], ebp
jle 0x4259a6
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x18]
inc ebx
mov ecx, dword [eax + ebp]
push edx
add ebp, 4
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp dword [esi], ebx
jg 0x42598f
push 1
mov eax, dword [esi + 0x18]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esi + 0xc]
mov ecx, dword [edx]
test ecx, ecx
jne 0x4259e7
mov ebx, dword [esi + 0x10]
push 0
mov ecx, dword [esi + 0x18]
mov dword [edx], eax
lea eax, [esp + 0x14]
push eax
push 4
push edx
push ecx
call edi
cmp dword [esp + 0x10], 4
jne 0x43c22d
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
cmp eax, ecx
je 0x4259df
jmp 0x43c24f
push 0x133e
mov eax, dword [esi + 0x10]
push str.nheapall.c
mov edx, 0x158
push eax
mov ecx, 0x56
call fcn.004472f8
jmp 0x425920
push 0x344
mov edx, 0x158
push str.p1inl.c
mov ecx, 0x55
push ebx
call fcn.004472f8
jmp 0x425944
push 0x344
mov edx, 0x158
push str.p1inl.c
mov ecx, 0x55
push ebx
call fcn.004472f8
jmp 0x425971
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0x18]
push eax
mov ebx, dword [ecx]
call dword [ebx + 0x18]
jmp 0x425987
push 0x344
mov edx, 0x158
push str.p1inl.c
mov ecx, 0x55
push ebx
call fcn.004472f8
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
push 0x1360
push str.nheapall.c
push 1
call fcn.004473a7
add esp, 0xc
jmp 0x4259df
Function at 0x425d0c
Capabilities:
Write file on windows

Disassembly:
sub esp, 4
push ebx
push esi
push edi
push ebp
mov eax, dword [ecx + 0x14]
mov edi, ecx
mov ebx, dword [esp + 0x18]
push 0
push 0
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push ebx
call ebp
mov dword [0x469160], eax
cmp eax, 0xffffffff
je 0x43c409
mov eax, dword [edi + 0x10]
mov ebp, dword [edi + 0x1c]
push 0
mov ecx, dword [edi + 0x18]
mov esi, dword [eax + 0x10]
lea eax, [esp + 0x14]
push eax
push ebp
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x10], ebp
jne 0x43c42e
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 4
push 0xf0e
mov eax, dword [edi + 0x10]
push str.nheapall.c
mov edx, 0x158
mov ecx, dword [eax + 0x10]
push ecx
mov ecx, 0x56
call fcn.004472f8
jmp 0x425d38
push 0x344
mov edx, 0x158
push str.p1inl.c
mov ecx, 0x55
push esi
call fcn.004472f8
jmp 0x425d5e
Function at 0x426302
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 4
push ebx
push esi
push edi
mov esi, ecx
push ebp
mov edi, edx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x10], ebx
mov eax, 0x8000
cmp ebx, eax
jl 0x43cf5e
push esi
push eax
push 1
mov eax, dword [0x468cd4]
push eax
call dword [sym.imp.MSVCRT40.dll_fread]
sub ebx, eax
add esp, 0x10
test byte [esi + 0xc], 0x20
mov ebp, eax
jne 0x43cf66
push edi
mov eax, dword [0x468cd4]
push ebp
push 1
push eax
call dword [sym.imp.MSVCRT40.dll_fwrite]
add esp, 0x10
mov dword [0x469160], eax
cmp eax, 0xffffffff
je 0x43cf7c
cmp ebp, 0x8000
je 0x426315
mov eax, dword [esp + 0x10]
pop ebp
sub eax, ebx
pop edi
pop esi
pop ebx
add esp, 4
ret 4
movzx eax, bx
jmp 0x426322
push 0
mov edx, 0x153
mov ecx, 0x54
call fcn.004472b0
jmp 0x426343
push 0x926
mov edx, 0x153
push str.pch.c
mov ecx, 0x55
push 0
call fcn.0044725e
jmp 0x426364

Function at 0x4263db
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
mov ebx, dword [sym.imp.MSVCRT40.dll___p__iob]
push ebp
mov ebp, dword [sym.imp.MSVCRT40.dll_fwrite]
jmp case.0x426429.1
call ebx
add eax, 0x20
mov ecx, dword [esi + 8]
push eax
push 1
xor eax, eax
mov ax, word [esi + 0xc]
dec eax
push eax
push ecx
call ebp
add esp, 0x10
mov ecx, 0x45e450
call fcn.00401a80
mov esi, eax
xor eax, eax
mov al, byte [esi]
cmp eax, 0xfa
ja case.0x426429.8
xor ecx, ecx
mov cl, byte [eax + 0x426480]
jmp dword [ecx*4 + 0x426438]
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [eax*4 + 0x4560d8]
call ebx
add eax, 0x20
mov edi, esi
push eax
mov ecx, 0xffffffff
push 1
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
call ebp
add esp, 0x10
jmp case.0x426429.1

Function at 0x426710
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x200
mov eax, dword [0x45e454]
inc eax
push esi
lea ecx, [esp + 4]
push edi
push eax
push 0x10
push str.line__ld
push ecx
call fcn.00414fda
lea edi, [esp + 0x18]
add esp, 0x10
mov ecx, dword [0x466294]
sub eax, eax
push ecx
push 1
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
lea eax, [esp + 0x10]
mov esi, dword [sym.imp.MSVCRT40.dll_fwrite]
not ecx
dec ecx
push ecx
push eax
call esi
add esp, 0x10
mov ecx, 0x45e450
call fcn.00406f6c
lea ecx, [esp + 8]
mov edx, eax
call fcn.00416a88
mov ecx, dword [0x466294]
lea edx, [esp + 8]
push ecx
sub eax, edx
lea edx, [esp + 0xc]
push 1
push eax
push edx
call esi
add esp, 0x10
pop edi
pop esi
add esp, 0x200
ret
Function at 0x43d368
Capabilities:
Write file on windows

Disassembly:
push ebx
mov eax, dword [0x466294]
push esi
push edi
push ebp
push eax
push 1
mov ebp, dword [sym.imp.MSVCRT40.dll_fwrite]
push 2
push 0x45305c
call ebp
add esp, 0x10
mov esi, dword [sym.imp.MSVCRT40.dll_putchar]
mov edi, dword [sym.imp.MSVCRT40.dll_fputc]
mov eax, dword [0x46631c]
xor ebx, ebx
mov al, byte [eax]
mov bl, al
inc dword [0x46631c]
xor eax, eax
mov al, byte [ebx + 0x45b0b0]
cmp eax, 8
ja case.0x43d3bc.4
xor ecx, ecx
mov cl, byte [eax + 0x43d3d8]
jmp dword [ecx*4 + 0x43d3c4]
mov eax, dword [0x46631c]
mov al, byte [eax - 1]
cmp al, 0x3f
jne 0x43f399
call fcn.0040af11
test al, 0x40
je case.0x43d3bc.1
mov eax, dword [0x466294]
push eax
push ebx
call edi
add esp, 8
jmp case.0x43d3bc.1
cmp al, 0x5c
jne 0x43f3ae
push 0x5c
call esi
add esp, 4
call fcn.0040a790
jmp case.0x43d3bc.1
call fcn.00408004
jmp case.0x43d3bc.1
inc dword [0x45e454]
jmp case.0x43d3bc.4
mov eax, dword [0x46631c]
xor ecx, ecx
mov al, byte [eax]
mov cl, al
inc dword [0x46631c]
test byte [ecx + 0x45b1b0], 0x80
je 0x43f3e1
mov ecx, eax
call fcn.00408fa4
cmp al, 0x2f
je 0x43f3ed
dec dword [0x46631c]
jmp case.0x43d3bc.4
mov eax, dword [0x466294]
push eax
push 1
push 2
push 0x453058
call ebp
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x443e1c
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
xor eax, eax
push ebx
push esi
push edi
mov esi, edx
push ebp
mov edi, ecx
test edi, edi
je 0x443f1a
mov dword [0x45c6b4], eax
mov cl, byte [edi]
cmp cl, 7
je 0x443eb8
cmp cl, 8
je 0x443eb8
mov dword [0x45c6b8], eax
xor edx, edx
mov ecx, edi
call fcn.00443f2c
mov ecx, eax
call fcn.0044462c
cmp dword [0x45c6b4], 0
mov ebx, eax
je 0x443ec4
push esi
mov ebp, dword [sym.imp.MSVCRT40.dll_fwrite]
push 1
push 3
push 0x456c58
mov edi, ebx
call ebp
add esp, 0x10
mov ecx, 0xffffffff
sub eax, eax
push esi
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
call ebp
add esp, 0x10
push esi
push 1
push 5
push str.____n
call ebp
add esp, 0x10
mov eax, dword [0x45c6b4]
push eax
push 0x24
push 1
call fcn.00416761
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov dword [0x45c6b8], 1
jmp 0x443e47
test byte [edi + 0x1f], 1
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x10], eax
je 0x443f22
mov ecx, edi
call fcn.004216ae
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push ecx
mov edi, ebx
push eax
mov ecx, esi
call fcn.0044439a
push esi
mov ecx, 0xffffffff
push 1
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, dword [sym.imp.MSVCRT40.dll_fwrite]
push ecx
push ebx
call ebp
add esp, 0x10
push esi
push 1
push 2
push 0x456c4c
call ebp
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov dword [esp + 0x14], 0
jmp 0x443edc
Function at 0x44439a
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00414ff2
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push ecx
push eax
xor ecx, ecx
call fcn.004443e3
mov ecx, eax
call fcn.0044462c
mov edi, eax
mov edx, eax
push esi
mov ecx, 0xffffffff
push 1
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call dword [sym.imp.MSVCRT40.dll_fwrite]
add esp, 0x10
call fcn.004150de
pop edi
pop esi
ret 8

Function at 0x4447ba
Capabilities:
Terminate process

Disassembly:
call fcn.0043d5a9
call fcn.0041ef96
call fcn.004415f7
mov ecx, 0x4662a8
call fcn.0044db01
mov ecx, dword [0x466458]
test ecx, ecx
je 0x4447e2
call fcn.0044db01
call fcn.0041f0ca
mov dword [0x45c580], 8
cmp dword [0x45c6cc], 0
je 0x444840
ret

Function at 0x4447fa
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x45c580]
cmp eax, 8
je 0x444818
cmp eax, 6
je 0x44483f
mov ecx, 6
call fcn.00444841
call fcn.004447ba
mov eax, dword [0x45c6fc]
test eax, eax
je 0x44482c
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x8000
call dword [sym.imp.KERNEL32.dll_ExitProcess]
ret
Function at 0x44736d
Capabilities:
Terminate process

Disassembly:
push esi
test ecx, ecx
push edi
je 0x447397
mov esi, str.fatal_error_C1063:_r_n
mov edi, 0x469208
mov ecx, 5
push 0x15
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0x469208
push 1
call dword [sym.imp.MSVCRT40.dll__write]
add esp, 0xc
call fcn.0041f0ca
push 3
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4473a7
Capabilities:
Terminate process

Disassembly:
mov ecx, 7
call fcn.00444841
mov eax, dword [esp + 4]
push 0
add eax, 0x3e8
push eax
call fcn.0042316b
lea ecx, [esp + 8]
mov edx, dword [esp + 4]
push ecx
push eax
mov ecx, 0x3e8
call fcn.004473f6
call fcn.004447ba
mov eax, dword [0x466460]
inc eax
push eax
mov dword [0x466460], eax
call dword [sym.imp.MSVCRT40.dll_exit]
add esp, 4
mov eax, dword [0x466460]
ret

Function at 0x4473f6
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x800
push ebx
push esi
push edi
mov ebx, ecx
lea esi, [esp + 0xc]
push ebp
cmp dword [0x45e454], 0
mov ebp, edx
jle 0x447455
cmp dword [0x45e450], 0
je 0x447455
mov eax, dword [0x45e454]
mov ecx, 0x45e450
push eax
call fcn.00406f6c
push eax
push 0x800
lea eax, [esp + 0x1c]
push str._Fs__ld__:
push eax
call fcn.00414fda
lea edi, [esp + 0x24]
add esp, 0x14
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + ecx + 0xf]
test ebx, ebx
je 0x4474a1
cmp ebx, 0x3e8
je 0x447573
cmp ebx, 0x7d0
je 0x447582
cmp ebx, 0xfa0
je 0x447591
mov eax, dword [esp + 0x10]
add ebx, ebp
push ebx
push 0x43
push eax
lea eax, [esp + 0x81c]
sub eax, esi
push eax
push str._s__c_d:
push esi
call fcn.00414fda
add esp, 0x18
add esi, eax
mov eax, dword [esp + 0x818]
mov edx, dword [esp + 0x814]
push eax
mov ecx, esi
lea eax, [esp + 0x814]
sub eax, esi
push eax
call fcn.0041510d
mov esi, dword [sym.imp.MSVCRT40.dll___p__iob]
call esi
add eax, 0x40
lea edi, [esp + 0x10]
push eax
mov ecx, 0xffffffff
push 1
sub eax, eax
repne scasb al, byte es:[edi]
lea edx, [esp + 0x18]
mov ebx, dword [sym.imp.MSVCRT40.dll_fwrite]
not ecx
dec ecx
push ecx
push edx
call ebx
add esp, 0x10
call esi
add eax, 0x40
push eax
push 1
push 1
push 0x452e84
call ebx
add esp, 0x10
call esi
add eax, 0x40
mov esi, dword [sym.imp.MSVCRT40.dll_fflush]
push eax
call esi
add esp, 4
cmp dword [0x466500], 0
je 0x447566
mov eax, dword [0x460a50]
test eax, eax
je 0x447566
lea edi, [esp + 0x10]
push eax
push 1
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x18]
push ecx
push eax
call ebx
add esp, 0x10
mov ecx, dword [0x460a50]
push ecx
push 1
push 1
push 0x452e84
call ebx
add esp, 0x10
mov ecx, dword [0x460a50]
push ecx
call esi
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x800
ret 8
mov ecx, 0x13b
call fcn.00423321
jmp 0x447481
mov ecx, 0x13a
call fcn.00423321
jmp 0x447481
mov ecx, 0x139
call fcn.00423321
jmp 0x447481
Function at 0x4485f8
Capabilities:
Read file on windows

Disassembly:
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, ecx
test esi, esi
jge 0x44868f
xor eax, eax
test eax, eax
jne 0x4486bc
mov dword [0x469160], 0
mov ebx, dword [esp + 0xc]
cmp dword [0x469160], 1
je 0x44864c
push 0xcc
mov eax, dword [0x45c4d0]
push str.ilsink.cpp
mov edx, 0x158
push eax
mov ecx, 0x54
call fcn.0044725e
mov eax, dword [esp + 0x14]
push eax
push esi
push 1
push ebx
call dword [sym.imp.MSVCRT40.dll_fread]
add esp, 0x10
mov dword [0x469160], eax
cmp eax, esi
je 0x448686
push 0xcd
mov eax, dword [0x45c4d0]
push str.ilsink.cpp
mov edx, 0x158
push eax
mov ecx, 0x54
call fcn.0044725e
pop edi
pop esi
pop ebx
add esp, 4
ret 8
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
add eax, dword [edi]
add ecx, esi
cmp eax, ecx
jae 0x4486b2
push esi
mov ecx, edi
call fcn.0040e7b7
test eax, eax
mov eax, 0
je 0x44860e
mov eax, 1
jmp 0x44860e
mov ebx, dword [edi + 4]
mov ecx, dword [edi]
test ecx, ecx
lea eax, [ebx + esi]
je 0x4486de
cmp ecx, ecx
mov edx, ecx
mov dword [edi + 4], eax
je 0x4486de
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4486de
push ecx
mov ecx, dword [edi + 0x10]
call eax
mov dword [0x469160], 1
jmp 0x448624

Function at 0x448bc4
Capabilities:
Write file on windows

Disassembly:
sub esp, 4
lea eax, [esp]
push eax
call fcn.00448528
mov ecx, dword [0x466490]
mov edx, dword [esp]
push ecx
push edx
push 1
push eax
call dword [sym.imp.MSVCRT40.dll_fwrite]
add esp, 0x10
mov dword [0x469160], eax
cmp eax, dword [esp]
je 0x448c13
push 0x82
mov eax, dword [0x45c4d0]
push str.iccpch.cpp
mov edx, 0x158
push eax
mov ecx, 0x55
call fcn.0044725e
mov eax, dword [esp]
add esp, 4
ret

Function at 0x44ec8a
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, edx
push ebp
mov edi, ecx
push 1
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
mov ebp, dword [ebx + 0x10]
lea eax, [esp + 0x10]
push 0
lea ecx, [esp + 0x1c]
push eax
push 4
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], 4
je 0x44ecdd
push 0x34f
mov edx, 0x158
push str.p1inl.c
mov ecx, 0x54
push ebp
call fcn.004472f8
cmp dword [esp + 0x18], esi
je 0x44ecf4
mov eax, dword [ebx + 0x10]
push eax
push 0x354
call fcn.004473a7
add esp, 8
mov ebp, dword [ebx + 0x10]
push 0
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 4
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], 4
je 0x44ed35
push 0x34f
mov edx, 0x158
push str.p1inl.c
mov ecx, 0x54
push ebp
call fcn.004472f8
cmp dword [esp + 0x14], 3
je 0x44ed8a
mov ebp, dword [0x46a398]
add dword [0x46a398], 0x4c
mov eax, dword [0x46a398]
cmp dword [0x46a39c], eax
jae 0x44ed60
mov ecx, 0x46a398
call fcn.0040bd26
test ebp, ebp
je 0x44ed7d
mov eax, dword [esp + 0x14]
push ebx
push eax
mov ecx, ebp
push edi
call fcn.0044edd7
pop ebp
mov dword [eax + 4], esi
pop edi
pop esi
pop ebx
add esp, 0xc
ret
xor eax, eax
pop ebp
pop edi
mov dword [eax + 4], esi
pop esi
pop ebx
add esp, 0xc
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x44edd7
Capabilities:
Read file on windows

Disassembly:
sub esp, 4
push ebx
push esi
mov ebx, dword [esp + 0x18]
push edi
push ebp
mov edi, ecx
mov eax, dword [esp + 0x1c]
push ebx
push eax
call fcn.00425eac
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [edi + 0x14]
mov esi, dword [esp + 0x20]
push 4
push ecx
mov dword [edi], 0x457fb8
mov ebp, dword [ebx + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], 4
je 0x44ee31
push 0x34f
mov edx, 0x158
push str.p1inl.c
mov ecx, 0x54
push ebp
call fcn.004472f8
mov ebp, dword [ebx + 0x10]
push 0
lea eax, [esp + 0x14]
lea ecx, [edi + 0x18]
push eax
push 4
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], 4
je 0x44ee69
push 0x34f
mov edx, 0x158
push str.p1inl.c
mov ecx, 0x54
push ebp
call fcn.004472f8
mov ebp, dword [ebx + 0x10]
push 0
lea eax, [esp + 0x14]
lea ecx, [edi + 0x1c]
push eax
push 4
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], 4
je 0x44eea1
push 0x34f
mov edx, 0x158
push str.p1inl.c
mov ecx, 0x54
push ebp
call fcn.004472f8
mov ebp, dword [ebx + 0x10]
push 0
lea eax, [esp + 0x14]
lea ecx, [edi + 0x20]
push eax
push 4
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], 4
je 0x44eed9
push 0x34f
mov edx, 0x158
push str.p1inl.c
mov ecx, 0x54
push ebp
call fcn.004472f8
mov ebx, dword [ebx + 0x10]
push 0
lea eax, [esp + 0x14]
lea ecx, [edi + 0x24]
push eax
push 4
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], 4
je 0x44ef11
push 0x34f
mov edx, 0x158
push str.p1inl.c
mov ecx, 0x54
push ebx
call fcn.004472f8
mov eax, edi
pop ebp
mov dword [edi + 0xc], 3
pop edi
pop esi
pop ebx
add esp, 4
ret 0xc