joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49c43c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0xd98e48d0
lea esp, [edx - 0x31]
mov ebp, 0xd8121d91
leave
mov cs, word [edx]
sbb dword [ecx - 0x3b960ed1], ebp
dec edi
jp 0x49c459
or esp, dword [esi]
xor bh, al
stosb byte es:[edi], al
wait
mov bh, 0x5e
clc
cmpsd dword ds:[esi], dword es:[edi]
lahf
push es
add byte [ebx + 0x7a], ch
fmul qword [edx - 0x31]
arpl ax, sp
lea ebp, [edx]
sbb al, 0x1c
push 0x2016a045
mov ch, 0xb1
sub esp, eax
xchg edi, eax
pop ss
shl byte [ebx + 0x39375d9], cl
inc ebx
jne 0x49c3ef
outsb dx, byte [esi]
js 0x49c470
sal byte [0xfbaa8cce], 3
sub byte [ecx + 0x73], ch
invalid
mov byte [0xaf1e8fb5], al
push edi
imul ebp, ebp, 0x279f99f2
sal eax, 0x7b
lea eax, [ebx - 7]
inc ecx
push eax
enter 0xffffffffffffa294, 0xc
and byte [ecx + 0x20], bh
or al, 0x20
jns 0x49c494
pop ecx
dec ebx
jns 0x49c4d5
lcall 0x7408, 0x15c91545
sbb ch, byte [edx]
or eax, 0xd49485b
adc eax, ebp
or al, 0x37
mov eax, dword [0xa443c901]
leave
inc ebx
movsb byte es:[edi], byte [esi]
mov al, byte [0x482bb018]
stosb byte es:[edi], al
jg 0x49c48c
push 0xffffffffffffff9c
sahf
mov dword [0x303df812], eax
aad 0xf7
adc al, 0xf5
jae 0x49c42d
pop edx
or eax, 0x52f4317d
sti
jle 0x49c4a6
push ebx
and eax, 0x482e15d9
movsx esi, byte [esi - 0x6892ccf6]
and bl, al
rol dword [ecx - 0x20], 1
sbb al, 0x87
hlt
sbb byte [ebx + 0x2cfb6176], 0x10
xor eax, 0x6513579c
mov dh, 0xc7
imul ebp, dword [0xe79553ba], 0x7d
pop edx
sbb eax, 0xfe4fbc2d
cmc
adc cl, 0xe8
ljmp 0x1204

Function at 0x4c5d3a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4cb450
cmp edx, dword [eax]
je 0x4c5d5c
add eax, 8
inc ecx
cmp eax, 0x4cb4e0
jl 0x4c5d4d
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4cb450]
jne 0x4c5e8a
mov eax, dword [0x4cfb4c]
cmp eax, 1
je 0x4c5e64
test eax, eax
jne 0x4c5d8d
cmp dword [0x4cb394], 1
je 0x4c5e64
cmp edx, 0xfc
je 0x4c5e8a
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c5dc4
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004c6450
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c6680
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c5e07
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c6680
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c96f8
push edi
call fcn.004c7e50
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004c6450
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c6460
lea eax, [ebp - 0xa0]
push 0x4c96d8
push eax
call fcn.004c6460
push dword [esi + 0x4cb454]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c6460
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004c7dc4
add esp, 0x2c
pop edi
jmp 0x4c5e8a
lea eax, [ebp + 8]
lea esi, [esi + 0x4cb454]
push 0
push eax
push dword [esi]
call fcn.004c6680
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 0x40ece0
Capabilities:
Create thread

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
je 0x40ed9e
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x40ed9e
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40ed9e
push 0
push 0
push 0
push 0
mov dword [0xc374e8], edx
mov dword [0xc374ec], ecx
mov dword [0xc374f8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0xc374f4], eax
jne 0x40ed3a
push str.Couldnt_create_heventDone_n
call fcn.0040f960
add esp, 4
ret
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x40edc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x40ed71
mov ecx, dword [0xc374f4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Couldnt_create_QHOST_thread_n
call fcn.0040f960
add esp, 4
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call esi
push 0xfffffffffffffff6
mov dword [0xc374f0], eax
call esi
mov edx, dword [0xc374f0]
push 0x19
push 0x50
push edx
mov dword [0xc374e4], eax
call fcn.0040f0f0
add esp, 0xc
pop esi
ret

Function at 0x40eea0
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [esp + 4]
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
ret

Function at 0x40ef20
Capabilities:
Manipulate console buffer

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push esi
mov word [esp + 4], 0
mov word [esp + 6], ax
mov edx, dword [esp + 4]
push ecx
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
push edx
lea ecx, [ecx + ecx*4 + 5]
lea edx, [eax + eax*4]
mov eax, dword [0xc374f0]
shl ecx, 4
shl edx, 4
sub ecx, edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
test eax, eax
je 0x40ef6d
mov ecx, dword [esp + 0x10]
mov byte [ecx + esi], 0
pop esi
pop ecx
ret

Function at 0x40ef70
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x1c]
cmp byte [esi], 0
je 0x40f04a
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push edi
mov edi, 1
cmp byte [esi], 0xa
jne 0x40ef96
mov byte [esi], 0xd
movsx eax, byte [esi]
push eax
call fcn.0048cfa1
mov dl, byte [esi]
mov word [esp + 0x10], di
movsx cx, al
push edx
mov dword [esp + 0x18], edi
mov word [esp + 0x1c], di
mov word [esp + 0x1e], cx
call fcn.0040f060
mov word [esp + 0x20], ax
mov al, byte [esi]
movsx cx, al
mov word [esp + 0x22], cx
mov ecx, dword [0x4b296c]
add esp, 8
cmp ecx, edi
jle 0x40efea
movsx edx, al
push edi
push edx
call fcn.0048cf2c
add esp, 8
jmp 0x40eff8
mov ecx, dword [str.________________________________H]
movsx eax, al
mov al, byte [ecx + eax*2]
and eax, edi
neg eax
mov ecx, dword [0xc374e4]
lea edx, [esp + 0x24]
sbb eax, eax
push edx
and eax, 0x80
push edi
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
push ecx
call ebp
mov ecx, dword [0xc374e4]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x10]
push edi
push eax
push ecx
mov dword [esp + 0x20], 0
call ebp
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x40ef8e
mov eax, edi
pop edi
pop ebp
pop esi
add esp, 0x14
ret
mov eax, 1
pop esi
add esp, 0x14
ret
Function at 0x438730
Capabilities:
Terminate process

Disassembly:
cmp dword [0xa0c300], 1
je 0x42ae57
mov eax, dword [0xc38880]
test eax, eax
je 0x42ae57
jmp fcn.004386d0
call fcn.004068b0
push 0
call fcn.00429d80
add esp, 4
jmp fcn.0047c5a0
mov eax, dword [esp + 4]
add eax, 0xffffffe5
cmp eax, 0x5e
ja case.0x438744.29
xor ecx, ecx
mov cl, byte [eax + 0x438794]
jmp dword [ecx*4 + 0x438788]
mov ecx, dword [0xa087e8]
xor eax, eax
cmp ecx, eax
je 0x43876e
mov edx, dword [0xa084e8]
mov dword [0xa08a04], 1
mov dword [0xa084dc], edx
ret
mov dword [0xa0c300], eax
mov dword [0xa084dc], eax
ret
mov dword [0xa0c300], 1
jmp 0x42ae40
Function at 0x43efa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
mov ecx, dword [0x9eec0c]
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esi]
mov al, byte [esi + 4]
add edi, ecx
test al, 0x3f
je 0x43efcc
mov eax, dword [0x9eec04]
push eax
push 0x4a4edc
call fcn.0047c340
add esp, 8
mov ebx, dword [esi + 4]
push 0x9eebe0
shr ebx, 6
mov ecx, ebx
shl ecx, 6
push ecx
call fcn.00487d30
mov edx, dword [0x9eec04]
mov esi, eax
add esp, 8
mov dword [edx + 0x7c], esi
mov eax, dword [0x9eec04]
test ebx, ebx
mov dword [eax + 0x78], ebx
jle 0x43f10b
push ebp
mov dword [esp + 0x10], ebx
mov ecx, dword [edi]
push ecx
call dword [0xc37584]
fsub dword [0x497078]
fstp dword [esi]
mov edx, dword [edi + 0xc]
push edx
call dword [0xc37584]
fadd dword [0x497078]
fstp dword [esi + 0xc]
mov eax, dword [edi + 0x18]
push eax
call dword [0xc37584]
fstp dword [esi + 0x18]
mov ecx, dword [edi + 4]
push ecx
call dword [0xc37584]
fsub dword [0x497078]
fstp dword [esi + 4]
mov edx, dword [edi + 0x10]
push edx
call dword [0xc37584]
fadd dword [0x497078]
fstp dword [esi + 0x10]
mov eax, dword [edi + 0x1c]
push eax
call dword [0xc37584]
fstp dword [esi + 0x1c]
mov ecx, dword [edi + 8]
push ecx
call dword [0xc37584]
fsub dword [0x497078]
fstp dword [esi + 8]
mov edx, dword [edi + 0x14]
push edx
call dword [0xc37584]
fadd dword [0x497078]
fstp dword [esi + 0x14]
mov eax, dword [edi + 0x20]
push eax
call dword [0xc37584]
fstp dword [esi + 0x20]
mov ebp, edi
add esp, 0x24
lea ebx, [esi + 0x24]
sub ebp, esi
mov dword [esp + 0x18], 4
mov ecx, dword [ebx + ebp]
push ecx
call dword [0xc375b4]
mov dword [ebx], eax
mov eax, dword [esp + 0x1c]
add esp, 4
add ebx, 4
dec eax
mov dword [esp + 0x18], eax
jne 0x43f0ae
mov edx, dword [edi + 0x34]
push edx
call dword [0xc375b4]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
push eax
call dword [0xc375b4]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x3c]
push ecx
call dword [0xc375b4]
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
add edi, 0x40
add esi, 0x40
dec eax
mov dword [esp + 0x10], eax
jne 0x43f005
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x45d230
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [0x9df24c]
sub esp, 8
fld dword [eax + 8]
fcomp dword [0x497058]
push ebx
push ebp
push esi
push edi
fnstsw ax
test ah, 0x40
jne 0x45d3e7
mov eax, dword [0xc3914c]
xor edi, edi
cmp eax, edi
jne 0x45d3e7
mov eax, dword [esp + 0x34]
cmp eax, edi
jne 0x45d26b
xor ebp, ebp
jmp 0x45d27e
mov ecx, dword [eax + 0x128]
mov ebp, 1
cmp ecx, edi
jne 0x45d3e7
mov ecx, dword [0xc3c1bc]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call fcn.0043eb60
mov ecx, dword [eax]
add esp, 8
cmp ecx, 0xffffffff
jne 0x45d3e7
mov dword [esp + 0x10], edi
mov esi, dword [0x9de8d4]
cmp esi, edi
je 0x45d3e7
mov eax, dword [esi + 0x10]
mov ecx, dword [0x9df0ac]
mov dword [0x9de8d4], eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x7c], edi
mov dword [0x9df0ac], esi
push esi
mov dword [esi + 0x44], 0xc
mov dword [esi + 0x34], 5
call fcn.00411db0
mov eax, dword [esi + 0x78]
add esp, 4
cmp eax, edi
jne 0x45d2eb
xor ebx, ebx
jmp 0x45d305
fld dword [esp + 0x30]
fcomp dword [0x497058]
mov ebx, dword [esp + 0x30]
fnstsw ax
test ah, 0x40
je 0x45d305
mov ebx, 0x3f800000
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push 0xde
push 0xc
push edx
push eax
push ecx
call fcn.00423b90
mov dword [esp + 0x28], eax
add esp, 0x14
fild dword [esp + 0x14]
cmp ebp, edi
mov dword [esi + 0x3c], eax
fstp dword [esi + 0xc]
je 0x45d33c
mov edx, dword [esp + 0x34]
mov dword [esi + 0x7c], edx
push edi
push edi
push 0x9df1f0
push esi
call fcn.00403420
add esp, 0x10
test eax, eax
je 0x45d359
mov dword [esi + 0x2c], 0x3f800000
jmp 0x45d360
mov dword [esi + 0x2c], 0x3ca3d70a
mov eax, 5
cmp ebp, edi
mov dword [esi + 0x34], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x5c], edi
mov dword [esi + 0x2c], ebx
je 0x45d38c
mov eax, dword [esp + 0x34]
mov dword [esi + 0x7c], eax
mov dword [eax + 0x128], esi
mov dword [esi + 0x80], 1
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x30], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x28], 0x1b
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
fld qword [0xc3b960]
fadd qword [0x4974b8]
mov eax, esi
sub ecx, esi
mov edx, 3
fstp dword [esi + 0x24]
mov esi, dword [ecx + eax]
mov dword [eax], esi
mov dword [eax + 0x14], edi
add eax, 4
dec edx
jne 0x45d3c7
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 1
mov dword [esp + 0x10], eax
jl 0x45d2a1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x47c340
Capabilities:
Terminate process
Write file on windows

Disassembly:
mov eax, dword [0x9475f0]
sub esp, 0x80c
test eax, eax
push ebx
mov ebx, 1
jne 0x47c360
mov dword [0x9475f0], ebx
call fcn.0047d650
mov ecx, dword [esp + 0x814]
lea eax, [esp + 0x818]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.0048cd79
mov eax, dword [0x9baba8]
add esp, 0xc
test eax, eax
je 0x47c4bd
mov ecx, dword [esp + 0x814]
push esi
lea eax, [esp + 0x81c]
push edi
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.0048cd79
lea eax, [esp + 0x24]
lea ecx, [esp + 0x424]
push eax
push str.ERROR:__s_n
push ecx
call fcn.0048c4ea
mov edi, 0x4b0920
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
mov eax, dword [0x9babac]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
not ecx
lea edx, [esp + 0xc]
push 0
dec ecx
push edx
push ecx
push 0x4b0920
push eax
call esi
lea ecx, [esp + 0xc]
push 0
push ecx
mov edi, str._n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [0x9babac]
not ecx
dec ecx
push ecx
push str._n
push edx
call esi
lea eax, [esp + 0xc]
push 0
push eax
lea edi, [esp + 0x420]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [0x9babac]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x424]
push ecx
push edx
call esi
lea eax, [esp + 0xc]
push 0
push eax
mov edi, str.Press_Enter_to_exit_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [0x9babac]
push str.Press_Enter_to_exit_n
push ecx
call esi
lea edx, [esp + 0xc]
mov edi, str._n
or ecx, 0xffffffff
xor eax, eax
push 0
push edx
repne scasb al, byte es:[edi]
mov eax, dword [0x9babac]
not ecx
dec ecx
push ecx
push str._n
push eax
call esi
call fcn.0047c5e0
fstp qword [esp + 0x10]
mov dword [0x9475e0], ebx
call fcn.0047c8e0
pop edi
pop esi
test eax, eax
jne 0x47c4f9
call fcn.0047c5e0
fsub qword [esp + 8]
fcomp qword [0x497598]
fnstsw ax
test ah, 1
je 0x47c4f9
call fcn.0047c8e0
test eax, eax
je 0x47c49c
jmp 0x47c4f9
mov eax, dword [0x9475e4]
test eax, eax
jne 0x47c4e2
mov dword [0x9475e4], ebx
call fcn.0047e3b0
push 0x10010
lea ecx, [esp + 0x14]
push str.We_have_malfunction
push ecx
jmp 0x47c4f1
push 0x10010
lea edx, [esp + 0x14]
push str.you_really_screwed_up_pal
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x9475e8]
test eax, eax
jne 0x47c50d
mov dword [0x9475e8], ebx
call fcn.0042ac00
mov eax, dword [0x9475ec]
test eax, eax
jne 0x47c521
mov dword [0x9475ec], ebx
call fcn.0040eda0
push ebx
call fcn.0048d8c0
pop ebx
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x47c530
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x9baba8]
sub esp, 0x404
test eax, eax
je 0x47c592
mov ecx, dword [esp + 0x408]
lea eax, [esp + 0x40c]
push edi
push eax
lea edx, [esp + 0xc]
push ecx
push edx
call fcn.0048cd79
add esp, 0xc
lea eax, [esp + 4]
lea edi, [esp + 8]
or ecx, 0xffffffff
push 0
push eax
xor eax, eax
mov edx, dword [0x9babac]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x9babac]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop edi
add esp, 0x404
ret

Function at 0x47c5e0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov eax, dword [0x4b0840]
sub esp, 0x10
push edi
xor edi, edi
cmp eax, edi
je 0x47c62e
push 1
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
call dword [sym.imp.WINMM.dll_timeGetTime]
push 0x9475f8
mov dword [0x947618], eax
mov dword [0x94761c], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0x947608
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fld qword [0x4972c8]
mov dword [0x4b0840], edi
pop edi
add esp, 0x10
ret
push ebx
push esi
call dword [sym.imp.WINMM.dll_timeGetTime]
push 0x947600
mov esi, eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp esi, dword [0x947618]
je 0x47c6db
push ebp
push 0x9475f8
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [0x947600]
mov eax, dword [0x947608]
mov ebp, dword [0x94760c]
mov edx, ecx
sub edx, eax
mov eax, dword [0x947604]
mov ebx, eax
mov dword [esp + 0x10], edx
sbb ebx, ebp
mov edx, esi
mov dword [esp + 0x14], ebx
mov ebx, dword [0x947618]
fild qword [esp + 0x10]
sub edx, ebx
mov dword [0x947608], ecx
mov dword [0x94760c], eax
mov dword [0x947618], esi
fstp qword [esp + 0x10]
fild qword [0x9475f8]
pop ebp
fstp qword [esp + 0x14]
fld qword [esp + 0xc]
fdiv qword [esp + 0x14]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edi
fild qword [esp + 0xc]
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fmul qword [0x497120]
fsubp st(1)
fstp qword [0x947610]
jmp 0x47c6f2
mov eax, dword [0x947604]
mov ecx, dword [0x947600]
mov dword [0x947610], edi
mov dword [0x947614], edi
mov ebx, dword [0x947608]
mov edx, dword [0x94760c]
sub ecx, ebx
sbb eax, edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov eax, dword [0x94761c]
fild qword [esp + 0xc]
sub esi, eax
fstp qword [esp + 0x14]
fild qword [0x9475f8]
fstp qword [esp + 0xc]
fld qword [esp + 0x14]
fdiv qword [esp + 0xc]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
pop esi
pop ebx
pop edi
fild qword [esp]
fstp qword [esp + 8]
fld qword [esp + 8]
fmul qword [0x497120]
faddp st(1)
fadd qword [0x947610]
add esp, 0x10
ret
Function at 0x47c8e0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x5010
call fcn.0048cb90
mov eax, dword [0x9baba8]
push ebp
push esi
push edi
test eax, eax
jne 0x47c902
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x5010
ret
mov ebp, dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, 1
mov ecx, dword [0x9baac8]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetNumberOfConsoleInputEvents]
test eax, eax
jne 0x47c936
push str.Error_getting__of_console_events
call fcn.0047c340
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x47c8f6
mov ecx, dword [0x9baac8]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push edi
push eax
push ecx
call ebp
test eax, eax
jne 0x47c963
push str.Error_reading_console_input
call fcn.0047c340
add esp, 4
cmp dword [esp + 0x18], edi
je 0x47c976
push str.Couldnt_read_console_input
call fcn.0047c340
add esp, 4
cmp word [esp + 0x1c], di
jne 0x47c913
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x47c913
movsx eax, byte [esp + 0x2a]
cmp eax, 8
mov dword [esp + 0xc], eax
je 0x47ca04
cmp eax, 0xd
je 0x47c9d6
cmp eax, 0x20
jl 0x47c913
mov ecx, dword [0x9babac]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x14]
push edi
push eax
push ecx
call esi
mov eax, dword [0x9470ac]
mov dl, byte [esp + 0xc]
mov byte [eax + 0x9474c8], dl
inc eax
and eax, 0xff
mov dword [0x9470ac], eax
jmp 0x47c913
mov ecx, dword [0x9babac]
lea eax, [esp + 0x10]
push 0
push eax
push 2
push 0x4b09c8
push ecx
call esi
mov eax, dword [0x9470ac]
test eax, eax
jne 0x47ca32
mov eax, dword [0x9475e0]
test eax, eax
jne 0x47ca3b
jmp 0x47c913
mov eax, dword [0x9babac]
lea edx, [esp + 0x10]
push 0
push edx
push 3
push 0x4b09cc
push eax
call esi
mov eax, dword [0x9470ac]
test eax, eax
je 0x47c913
dec eax
mov dword [0x9470ac], eax
jmp 0x47c913
mov byte [eax + 0x9474c8], 0
jmp 0x47ca42
mov byte [0x9474c8], 0xd
pop edi
pop esi
mov dword [0x9470ac], 0
mov eax, 0x9474c8
pop ebp
add esp, 0x5010
ret
Function at 0x487350
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xac
push ebx
mov ebx, dword [esp + 0xb8]
push ebp
push esi
push edi
mov esi, dword [esp + 0xc0]
mov ebp, dword [esi + 0x1c]
lea eax, [esi + 0x18]
cmp ebp, eax
je 0x487554
mov eax, dword [ebp + 4]
add ebp, 0xffffffe0
mov dword [esp + 0x10], eax
fld dword [ebp + 0xa0]
fcomp dword [0x497058]
fnstsw ax
test ah, 0x40
jne 0x487545
cmp ebp, dword [ebx + 0x7c]
je 0x487545
cmp dword [ebp + 0xa0], 0x3f800000
jne 0x4873b9
push str.Trigger_in_clipping_list
call fcn.0047c340
add esp, 4
cmp dword [ebx + 0x78], 1
jne 0x4873cf
cmp dword [ebp + 0xa0], 0x40800000
jne 0x487545
fld dword [ebx]
fcomp dword [ebp + 0x8c]
fnstsw ax
test ah, 0x41
je 0x487545
fld dword [ebx + 4]
fcomp dword [ebp + 0x90]
fnstsw ax
test ah, 0x41
je 0x487545
fld dword [ebx + 8]
fcomp dword [ebp + 0x94]
fnstsw ax
test ah, 0x41
je 0x487545
fld dword [ebx + 0xc]
fcomp dword [ebp + 0x80]
fnstsw ax
test ah, 1
jne 0x487545
fld dword [ebx + 0x10]
fcomp dword [ebp + 0x84]
fnstsw ax
test ah, 1
jne 0x487545
fld dword [ebx + 0x14]
fcomp dword [ebp + 0x88]
fnstsw ax
test ah, 1
jne 0x487545
mov ecx, dword [ebx + 0x7c]
test ecx, ecx
je 0x487477
fld dword [ecx + 0x118]
fcomp dword [0x497058]
fnstsw ax
test ah, 0x40
jne 0x487477
fld dword [ebp + 0x118]
fcomp dword [0x497058]
fnstsw ax
test ah, 0x40
jne 0x487545
mov eax, dword [ebx + 0x40]
test eax, eax
jne 0x487594
test ecx, ecx
je 0x4874ab
mov edx, dword [ebp + 0x1f8]
mov eax, dword [0x9bbf14]
add edx, eax
cmp edx, ecx
je 0x487545
mov ecx, dword [ecx + 0x1f8]
add ecx, eax
cmp ecx, ebp
je 0x487545
fld dword [ebp + 0x1ac]
call fcn.0048c3f4
test al, 0x20
je 0x4874d2
mov edx, dword [ebx + 0x3c]
lea eax, [ebx + 0x2c]
push edx
mov edx, dword [ebx + 0x38]
lea ecx, [ebx + 0x20]
push eax
push ecx
push edx
lea eax, [esp + 0x5c]
push ebp
push eax
jmp 0x4874eb
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
push ecx
mov ecx, dword [ebx + 0x38]
push edx
push eax
push ecx
lea edx, [esp + 0x94]
push ebp
push edx
call fcn.00487230
mov ecx, 0xe
mov esi, eax
lea edi, [esp + 0x2c]
add esp, 0x18
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x48751e
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x48751e
fld dword [esp + 0x24]
fcomp dword [ebx + 0x50]
fnstsw ax
test ah, 1
je 0x48753e
mov eax, dword [ebx + 0x44]
mov ecx, 0xe
lea esi, [esp + 0x14]
lea edi, [ebx + 0x40]
mov dword [esp + 0x44], ebp
test eax, eax
rep movsd dword es:[edi], dword [esi]
je 0x48753e
mov dword [ebx + 0x44], 1
mov esi, dword [esp + 0xc0]
mov ebp, dword [esp + 0x10]
lea eax, [esi + 0x18]
cmp ebp, eax
jne 0x487376
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x487594
fld dword [ebx + eax*4 + 0xc]
fcomp dword [esi + 4]
fnstsw ax
test ah, 0x41
jne 0x487576
mov eax, dword [esi + 8]
push ebx
push eax
call fcn.00487350
add esp, 8
mov ecx, dword [esi]
fld dword [ebx + ecx*4]
fcomp dword [esi + 4]
fnstsw ax
test ah, 1
je 0x487594
mov edx, dword [esi + 0xc]
mov dword [esp + 0xc0], edx
jmp 0x487361
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret
Function at 0x493089
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4b31d8
cmp edx, dword [eax]
je 0x4930ab
add eax, 8
inc ecx
cmp eax, 0x4b3268
jl 0x49309c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4b31d8]
jne 0x4931d9
mov eax, dword [0x948a54]
cmp eax, 1
je 0x4931b3
test eax, eax
jne 0x4930dc
cmp dword [0x4b29d4], 1
je 0x4931b3
cmp edx, 0xfc
je 0x4931d9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x493113
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00492700
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004912a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x493156
lea eax, [ebp - 0x1a4]
push eax
call fcn.004912a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x497f00
push edi
call fcn.0048cbc0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00492700
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00492710
lea eax, [ebp - 0xa0]
push 0x497ee0
push eax
call fcn.00492710
push dword [esi + 0x4b31dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00492710
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00495d7f
add esp, 0x2c
pop edi
jmp 0x4931d9
lea eax, [ebp + 8]
lea esi, [esi + 0x4b31dc]
push 0
push eax
push dword [esi]
call fcn.004912a0
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 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219