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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4156d8
cmp edx, dword [eax]
je 0x40bb93
add eax, 8
inc ecx
cmp eax, 0x415768
jl 0x40bb84
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4156d8]
jne 0x40bcc1
mov eax, dword [0x416330]
cmp eax, 1
je 0x40bc9b
test eax, eax
jne 0x40bbc4
cmp dword [0x4152e4], 1
je 0x40bc9b
cmp edx, 0xfc
je 0x40bcc1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40bbfb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407da0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004075b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40bc3e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004075b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x413748
push edi
call fcn.0040ce10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407da0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407db0
lea eax, [ebp - 0xa0]
push 0x4151cc
push eax
call fcn.00407db0
push dword [esi + 0x4156dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407db0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040cd7d
add esp, 0x2c
pop edi
jmp 0x40bcc1
lea eax, [ebp + 8]
lea esi, [esi + 0x4156dc]
push 0
push eax
push dword [esi]
call fcn.004075b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x40f2ed
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, eax
dec eax
test edi, edi
jle 0x40f32d
lea edi, [eax + 1]
movzx eax, byte [ecx]
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or eax, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or eax, ebx
inc ecx
xor edx, eax
dec edi
jne 0x40f30b
and esi, 3
xor eax, eax
dec esi
je 0x40f349
dec esi
je 0x40f342
dec esi
jne 0x40f34e
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
pop edi
pop esi
xor eax, edx
pop ebx
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x40101d
pop esi
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x401061
mov ecx, dword [ebp - 4]
push edi
push esi
push ecx
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x401057
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 8]
push eax
push 0x45e234
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
jne 0x401069
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x40107d
mov eax, dword [ebp + 8]
test eax, eax
je 0x40107d
movzx ecx, word [ecx + 0xa]
mov dword [eax], ecx
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4010a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
lea ecx, [ebp - 0x11c]
push ecx
push ebx
mov dword [ebp - 0x110], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x4010e0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d089
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x40112f
mov edx, dword [ebp - 0x11c]
push edi
push esi
push edx
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x401125
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueA]
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x118]
push ecx
push str.VarFileInfoTranslation
push edi
call esi
test eax, eax
jne 0x401141
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d089
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x118]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push 0x45e930
push edx
push eax
lea ecx, [ebp - 0x108]
push str.StringFileInfo_04X_04X_s
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x14
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x108]
push ecx
push edi
call esi
cmp dword [ebp - 0x114], 0x50
ja 0x4011a4
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x110]
push 0x50
push edx
push eax
call dword [sym.imp.MSVCR100.dll__mbsnbcpy]
add esp, 0xc
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0045d089
mov esp, ebp
pop ebp
ret
Function at 0x4015d0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
mov edi, eax
call dword [sym.imp.MSVCR100.dll__time64]
add esp, 4
sub eax, dword [esi]
sbb edx, dword [esi + 4]
xor ecx, ecx
cmp edx, ecx
jg 0x4015f8
jl 0x4015f3
cmp eax, dword [ebp + 8]
jae 0x4015f8
xor eax, eax
pop edi
pop ebp
ret
movsx edx, word [esi + 0xc]
mov dword [ebp + 8], ecx
mov ecx, dword [esi + 0x22]
lea eax, [ebp + 8]
push eax
movzx eax, word [esi + 0x14]
push ecx
mov ecx, dword [esi + 8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
je 0x4016a9
mov eax, dword [esi + 0x22]
movsx ecx, word [esi + 0xc]
lea edx, [ebp + 8]
push edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0x20
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
test eax, eax
je 0x4016a9
mov eax, dword [esi + 0x22]
mov ecx, dword [esi + 8]
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov ebx, dword [sym.imp.MSVCR100.dll_printf]
test edi, edi
je 0x401660
push edi
push 0x45e93c
call ebx
add esp, 8
cmp dword [ebp + 0xc], 0
jle 0x401698
xor edi, edi
cmp dword [esi + 0x28], 0xffffffff
jne 0x401671
mov dword [esi + 0x28], edi
cmp dword [esi + 0x28], edi
jle 0x401686
push 0x45e940
call ebx
inc edi
add esp, 4
cmp edi, dword [esi + 0x28]
jl 0x401676
mov edx, dword [ebp + 0xc]
inc dword [esi + 0x28]
cmp dword [esi + 0x28], edx
jle 0x401698
mov dword [esi + 0x28], 0
push 0
call dword [sym.imp.MSVCR100.dll__time64]
add esp, 4
mov dword [esi], eax
mov dword [esi + 4], edx
pop ebx
mov eax, 1
pop edi
pop ebp
ret
Function at 0x401b80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x480394]
push ebx
mov ebx, dword [0x489ac8]
push esi
mov esi, dword [sym.imp.MSVCR100.dll_fread]
push eax
push 1
push 4
push edi
call esi
add esp, 0x10
cmp eax, 1
je 0x401baf
pop esi
mov eax, 1
pop ebx
pop ebp
ret
mov eax, dword [edi]
add eax, eax
add eax, eax
je 0x401bcd
mov ecx, dword [0x480394]
mov edx, dword [0x468c08]
push ecx
push 1
push eax
push edx
call esi
add esp, 0x10
cmp dword [ebp + 8], 0
je 0x401bf1
lea eax, [ebx*8]
test eax, eax
je 0x401bf1
mov ecx, dword [0x480394]
mov edx, dword [ebp + 0xc]
push ecx
push 1
push eax
push edx
call esi
add esp, 0x10
mov eax, dword [edi]
imul eax, dword [0x489ac8]
add eax, eax
add eax, eax
add eax, eax
je 0x401c15
mov ecx, dword [0x480394]
mov edx, dword [ebp + 0x10]
push ecx
push 1
push eax
push edx
call esi
add esp, 0x10
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x408fc0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
mov edi, dword [sym.imp.MSVCR100.dll_remove]
add esp, 4
mov esi, 0x4a5da4
xor ebx, ebx
mov ecx, dword [ebp + 8]
cmp dword [esi - 4], ecx
jne 0x409008
mov edx, dword [esi]
push edx
mov dword [esi - 4], ebx
call edi
mov eax, dword [esi]
add esp, 4
cmp eax, ebx
je 0x409003
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi], ebx
add esi, 0xc
cmp esi, 0x4a5ffc
jl 0x408fe0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x409020
Capabilities:
Delete file
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
mov esi, eax
mov edi, ecx
push esi
push edi
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
test eax, eax
jne 0x409189
push 0x45f0b0
call dword [sym.imp.MSVCR100.dll_perror]
add esp, 4
push edi
mov edi, dword [sym.imp.MSVCR100.dll_printf]
push str.Unable_to_open__s_for
call edi
mov al, byte [esi]
add esp, 8
cmp al, 0x72
jne 0x40906b
push str.reading_n
jmp 0x409078
cmp al, 0x77
je 0x409073
cmp al, 0x61
jne 0x40907d
push str.writing_n
call edi
add esp, 4
cmp dword [0x4a5b3c], 0
je 0x4090fe
cmp dword [0x489ad0], 0
je 0x4090fe
push str.stdout
push 0x476be0
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x4090d1
mov eax, dword [0x489ad0]
push eax
call dword [sym.imp.MSVCR100.dll__ftelli64]
mov ecx, dword [0x489ad0]
add esp, 4
push edx
push eax
push ecx
call dword [sym.imp.MSVCR100.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.MSVCR100.dll__chsize_s]
add esp, 0xc
cmp dword [0x4a5b4c], 0
je 0x4090ef
mov edx, dword [0x489ad0]
push str.__body___html__n
push edx
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 8
mov eax, dword [0x489ad0]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
call fcn.0040a1a0
mov ecx, dword [0x469488]
mov esi, dword [sym.imp.MSVCR100.dll_remove]
inc dword [0x468ff8]
push ecx
call esi
mov edx, dword [0x4899d8]
add esp, 4
push edx
call esi
mov eax, dword [0x4802bc]
add esp, 4
push eax
call esi
mov ecx, dword [0x4802cc]
add esp, 4
push ecx
call esi
mov edx, dword [0x469488]
mov esi, dword [sym.imp.MSVCR100.dll_free]
add esp, 4
push edx
call esi
mov eax, dword [0x4899d8]
add esp, 4
push eax
call esi
mov ecx, dword [0x4802bc]
add esp, 4
push ecx
call esi
mov edx, dword [0x4802cc]
add esp, 4
push edx
call esi
add esp, 4
cmp dword [0x468ff8], 0
je 0x409181
call fcn.00409900
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x409190
Capabilities:
Read file on windows

Disassembly:
test eax, eax
je 0x4091aa
push ecx
push 1
push eax
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x4091aa
xor eax, eax
ret
mov eax, 1
ret
Function at 0x4091b0
Capabilities:
Delete file
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
test eax, eax
je 0x4092f1
push ecx
push 1
push eax
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x4092f1
push str._Unable_to_write._Full_disk__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
cmp dword [0x4a5b3c], 0
je 0x409266
cmp dword [0x489ad0], 0
je 0x409266
push str.stdout
push 0x476be0
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x409239
mov eax, dword [0x489ad0]
push eax
call dword [sym.imp.MSVCR100.dll__ftelli64]
mov ecx, dword [0x489ad0]
add esp, 4
push edx
push eax
push ecx
call dword [sym.imp.MSVCR100.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.MSVCR100.dll__chsize_s]
add esp, 0xc
cmp dword [0x4a5b4c], 0
je 0x409257
mov edx, dword [0x489ad0]
push str.__body___html__n
push edx
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 8
mov eax, dword [0x489ad0]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
call fcn.0040a1a0
mov ecx, dword [0x469488]
mov esi, dword [sym.imp.MSVCR100.dll_remove]
inc dword [0x468ff8]
push ecx
call esi
mov edx, dword [0x4899d8]
add esp, 4
push edx
call esi
mov eax, dword [0x4802bc]
add esp, 4
push eax
call esi
mov ecx, dword [0x4802cc]
add esp, 4
push ecx
call esi
mov edx, dword [0x469488]
mov esi, dword [sym.imp.MSVCR100.dll_free]
add esp, 4
push edx
call esi
mov eax, dword [0x4899d8]
add esp, 4
push eax
call esi
mov ecx, dword [0x4802bc]
add esp, 4
push ecx
call esi
mov edx, dword [0x4802cc]
add esp, 4
push edx
call esi
add esp, 4
cmp dword [0x468ff8], 0
je 0x4092e9
call fcn.00409900
push 5
call dword [sym.imp.MSVCR100.dll_exit]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409300
Capabilities:
Delete file
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [0x4804b0]
push esi
push edi
test ebx, ebx
je 0x4094cd
mov eax, dword [ebp + 8]
xor esi, esi
test ebx, ebx
jle 0x40938c
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
xor edi, edi
test esi, esi
js 0x40937c
lea edx, [esi + 1]
cmp edx, 4
jl 0x409361
shr edx, 2
lea edi, [edx*4]
fld qword [ecx]
add eax, 0x20
fstp qword [eax - 0x20]
add ecx, 0x20
dec edx
fld qword [ecx - 0x18]
fstp qword [eax - 0x18]
fld qword [ecx - 0x10]
fstp qword [eax - 0x10]
fld qword [ecx - 8]
fstp qword [eax - 8]
jne 0x409341
cmp edi, esi
jg 0x40937c
mov edx, esi
sub edx, edi
sub ecx, eax
inc edx
lea esp, [esp]
fld qword [ecx + eax]
add eax, 8
dec edx
fstp qword [eax - 8]
jne 0x409370
lea ecx, [ebx*8]
add dword [esp + 0xc], ecx
inc esi
cmp esi, ebx
jl 0x409325
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea eax, [ebx + 1]
imul eax, ebx
push edx
add eax, eax
push 1
add eax, eax
push eax
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x4094cd
push str._Unable_to_write._Full_disk__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
cmp dword [0x4a5b3c], 0
je 0x409443
cmp dword [0x489ad0], 0
je 0x409443
push str.stdout
push 0x476be0
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x409415
mov edx, dword [0x489ad0]
push edx
call dword [sym.imp.MSVCR100.dll__ftelli64]
add esp, 4
push edx
push eax
mov eax, dword [0x489ad0]
push eax
call dword [sym.imp.MSVCR100.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.MSVCR100.dll__chsize_s]
add esp, 0xc
cmp dword [0x4a5b4c], 0
je 0x409433
mov ecx, dword [0x489ad0]
push str.__body___html__n
push ecx
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 8
mov edx, dword [0x489ad0]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
call fcn.0040a1a0
mov eax, dword [0x469488]
mov esi, dword [sym.imp.MSVCR100.dll_remove]
inc dword [0x468ff8]
push eax
call esi
mov ecx, dword [0x4899d8]
add esp, 4
push ecx
call esi
mov edx, dword [0x4802bc]
add esp, 4
push edx
call esi
mov eax, dword [0x4802cc]
add esp, 4
push eax
call esi
mov ecx, dword [0x469488]
mov esi, dword [sym.imp.MSVCR100.dll_free]
add esp, 4
push ecx
call esi
mov edx, dword [0x4899d8]
add esp, 4
push edx
call esi
mov eax, dword [0x4802bc]
add esp, 4
push eax
call esi
mov ecx, dword [0x4802cc]
add esp, 4
push ecx
call esi
add esp, 4
cmp dword [0x468ff8], 0
je 0x4094c5
call fcn.00409900
push 5
call dword [sym.imp.MSVCR100.dll_exit]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4094e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [0x4804b0]
push edi
mov edi, esi
test esi, esi
jne 0x409501
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
lea ecx, [esi + 1]
imul ecx, esi
push eax
add ecx, ecx
push 1
add ecx, ecx
push ecx
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
jne 0x409531
push str.bad_dreadmat
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x14], eax
cmp esi, eax
jle 0x409668
lea edx, [ebx + edi*8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], ebx
xor edx, edx
mov dword [ebp - 0x10], edx
test eax, eax
js 0x409644
lea esi, [eax + 1]
mov dword [ebp - 0x28], esi
cmp esi, 4
jl 0x4095f8
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 4], ebx
lea ebx, [eax + edi*2]
mov eax, dword [ebp + 0xc]
add ebx, edi
lea ebx, [eax + ebx*8]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0x14]
lea ebx, [ebx + edi*2]
lea eax, [eax + ebx*8]
mov ebx, dword [ebp - 0x28]
shr ebx, 2
mov dword [ebp - 0x28], ebx
mov edx, edi
add ebx, ebx
shl edx, 5
add ebx, ebx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
fld qword [ecx]
mov ebx, dword [ebp - 4]
fstp qword [esi]
add dword [ebp - 4], edx
fld qword [ecx]
add ecx, 0x20
fstp qword [ebx]
mov ebx, dword [ebp - 8]
fld qword [ecx - 0x18]
add dword [ebp - 8], edx
fstp qword [esi + 8]
add esi, 0x20
fld qword [ecx - 0x18]
fstp qword [eax]
add eax, edx
fld qword [ecx - 0x10]
fstp qword [esi - 0x10]
fld qword [ecx - 0x10]
fstp qword [ebx]
mov ebx, dword [ebp - 0xc]
fld qword [ecx - 8]
add dword [ebp - 0xc], edx
dec dword [ebp - 0x28]
fstp qword [esi - 8]
fld qword [ecx - 8]
fstp qword [ebx]
jne 0x4095a7
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp + 0xc]
cmp edx, eax
jg 0x409644
mov esi, dword [ebp - 0x20]
add esi, edx
imul edx, edi
add edx, eax
lea edx, [ebx + edx*8]
mov dword [ebp - 0x28], edx
mov edx, eax
sub edx, dword [ebp - 0x10]
lea esi, [ebx + esi*8]
mov ebx, dword [ebp - 0x28]
inc edx
jmp 0x409623
mov esi, dword [ebp - 0x28]
fld qword [ecx]
add esi, 8
fstp qword [esi - 8]
mov dword [ebp - 0x28], esi
fld qword [ecx]
lea esi, [edi*8]
fstp qword [ebx]
add ecx, 8
add ebx, esi
dec edx
jne 0x409620
mov ebx, dword [ebp + 0xc]
add dword [ebp - 0x20], edi
mov edx, 8
add dword [ebp - 0x18], edx
add dword [ebp - 0x1c], edx
inc eax
lea edx, [edi*8]
add dword [ebp - 0x24], edx
mov dword [ebp - 0x14], eax
cmp eax, edi
jl 0x409550
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409940
Capabilities:
Delete file
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_printf]
push esi
mov esi, dword [sym.imp.MSVCR100.dll_tolower]
push edi
xor edi, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0xfffffffe
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x18]
push ecx
push 0x45f65c
call ebx
call dword [sym.imp.MSVCR100.dll___iob_func]
push eax
lea edx, [esp + 0x28]
push 5
push edx
call dword [sym.imp.MSVCR100.dll_fgets]
movsx eax, byte [esp + 0x30]
add esp, 0x14
push eax
call esi
add esp, 4
cmp eax, 0x6e
jne 0x4099b4
mov dword [esp + 0x10], 0
inc edi
movsx ecx, byte [esp + 0x1c]
push ecx
call esi
add esp, 4
cmp eax, 0x79
jne 0x4099cd
mov dword [esp + 0x10], 1
inc edi
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 9
jg 0x4099f5
test edi, edi
je 0x409978
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045d089
mov esp, ebp
pop ebp
ret
push str.Unable_to_get_a_proper_response__n
push 0x45e944
call ebx
add esp, 8
cmp dword [0x4a5b3c], 0
je 0x409a86
cmp dword [0x489ad0], 0
je 0x409a86
push str.stdout
push 0x476be0
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x409a58
mov edx, dword [0x489ad0]
push edx
call dword [sym.imp.MSVCR100.dll__ftelli64]
add esp, 4
push edx
push eax
mov eax, dword [0x489ad0]
push eax
call dword [sym.imp.MSVCR100.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.MSVCR100.dll__chsize_s]
add esp, 0xc
cmp dword [0x4a5b4c], 0
je 0x409a76
mov ecx, dword [0x489ad0]
push str.__body___html__n
push ecx
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 8
mov edx, dword [0x489ad0]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
call fcn.0040a1a0
mov eax, dword [0x469488]
mov esi, dword [sym.imp.MSVCR100.dll_remove]
inc dword [0x468ff8]
push eax
call esi
mov ecx, dword [0x4899d8]
add esp, 4
push ecx
call esi
mov edx, dword [0x4802bc]
add esp, 4
push edx
call esi
mov eax, dword [0x4802cc]
add esp, 4
push eax
call esi
mov ecx, dword [0x469488]
mov esi, dword [sym.imp.MSVCR100.dll_free]
add esp, 4
push ecx
call esi
mov edx, dword [0x4899d8]
add esp, 4
push edx
call esi
mov eax, dword [0x4802bc]
add esp, 4
push eax
call esi
mov ecx, dword [0x4802cc]
add esp, 4
push ecx
call esi
add esp, 4
cmp dword [0x468ff8], 0
je 0x409b08
call fcn.00409900
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
int3
Function at 0x409b20
Capabilities:
Delete file
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_fgets]
push esi
xor eax, eax
push edi
mov edi, dword [sym.imp.MSVCR100.dll_printf]
mov esi, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
nop
push esi
push 0x45f65c
call edi
call dword [sym.imp.MSVCR100.dll___iob_func]
push eax
lea eax, [esp + 0x20]
push 5
push eax
call ebx
lea ecx, [esp + 0x28]
add esp, 0x14
push ecx
call dword [sym.imp.MSVCR100.dll_atol]
add esp, 4
cmp eax, dword [ebp + 8]
jl 0x409b87
cmp eax, dword [ebp + 0xc]
jg 0x409b87
inc dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, 9
jg 0x409bae
cmp dword [esp + 0xc], 0
je 0x409b50
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045d089
mov esp, ebp
pop ebp
ret
push str.Unable_to_get_a_proper_response__n
push 0x45e944
call edi
add esp, 8
cmp dword [0x4a5b3c], 0
je 0x409c3f
cmp dword [0x489ad0], 0
je 0x409c3f
push str.stdout
push 0x476be0
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x409c11
mov edx, dword [0x489ad0]
push edx
call dword [sym.imp.MSVCR100.dll__ftelli64]
add esp, 4
push edx
push eax
mov eax, dword [0x489ad0]
push eax
call dword [sym.imp.MSVCR100.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.MSVCR100.dll__chsize_s]
add esp, 0xc
cmp dword [0x4a5b4c], 0
je 0x409c2f
mov ecx, dword [0x489ad0]
push str.__body___html__n
push ecx
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 8
mov edx, dword [0x489ad0]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
call fcn.0040a1a0
mov eax, dword [0x469488]
mov esi, dword [sym.imp.MSVCR100.dll_remove]
inc dword [0x468ff8]
push eax
call esi
mov ecx, dword [0x4899d8]
add esp, 4
push ecx
call esi
mov edx, dword [0x4802bc]
add esp, 4
push edx
call esi
mov eax, dword [0x4802cc]
add esp, 4
push eax
call esi
mov ecx, dword [0x469488]
mov esi, dword [sym.imp.MSVCR100.dll_free]
add esp, 4
push ecx
call esi
mov edx, dword [0x4899d8]
add esp, 4
push edx
call esi
mov eax, dword [0x4802bc]
add esp, 4
push eax
call esi
mov ecx, dword [0x4802cc]
add esp, 4
push ecx
call esi
add esp, 4
cmp dword [0x468ff8], 0
je 0x409cc1
call fcn.00409900
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
int3