joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4be0c6
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
and dword [ebp - 4], 0
push ebx
push esi
push edi
push eax
call dword [ecx + 0x10]
mov esi, eax
mov edi, esi
imul edi, edi, 0xc
lea eax, [edi + 4]
push eax
mov dword [ebp + 0xc], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x4be0fd
mov esi, 0x8007000e
jmp 0x4be13d
imul esi, esi, 3
push edi
push dword [ebp + 0x10]
lea eax, [ebx + 4]
push eax
mov dword [ebx], esi
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
add esp, 0xc
lea edx, [ebp - 4]
push edx
push ebx
push dword [ebp + 0xc]
push 0
push 0
push 0x401c38
push eax
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jge 0x4be13d
push 0x406670
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4be14e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 4], 0
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4befad
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebx*4 + 4]
mov ecx, edi
imul eax, esi
imul ecx, ecx, 0xc
lea eax, [eax + ecx + 8]
push eax
mov dword [ebp - 8], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp + 0x20], eax
jne 0x4beff2
mov esi, 0x8007000e
jmp 0x4bf0b7
mov dword [eax], edi
add eax, 4
xor edx, edx
test edi, edi
jbe 0x4bf029
mov ecx, dword [ebp + 0x24]
mov edi, dword [ecx + 0xc0]
mov esi, dword [ecx + 0x94]
imul edi, edx
add edi, dword [ebp + 0xc]
movzx esi, word [esi + 2]
add esi, edi
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add eax, 0xc
inc edx
cmp edx, dword [ebp + 0x10]
movsd dword es:[edi], dword [esi]
jb 0x4bf000
mov esi, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov dword [eax], esi
add eax, 4
test edx, edx
je 0x4bf05d
test esi, esi
jbe 0x4bf08a
mov dword [eax], ebx
add eax, 4
xor ecx, ecx
test ebx, ebx
jbe 0x4bf051
mov edi, dword [edx + ecx*4]
mov dword [eax], edi
add eax, 4
inc ecx
cmp ecx, ebx
jb 0x4bf044
mov ecx, ebx
shl ecx, 2
add edx, ecx
dec esi
jne 0x4bf039
jmp 0x4bf08a
test esi, esi
jbe 0x4bf08a
mov edx, dword [ebp + 0x14]
lea edi, [ebx + ebx]
mov dword [ebp + 0x10], esi
mov dword [eax], ebx
add eax, 4
xor ecx, ecx
test ebx, ebx
jbe 0x4bf083
movzx esi, word [edx + ecx*2]
mov dword [eax], esi
add eax, 4
inc ecx
cmp ecx, ebx
jb 0x4bf075
add edx, edi
dec dword [ebp + 0x10]
jne 0x4bf06a
mov eax, dword [ebp + 0x28]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push dword [ebp + 0x20]
push dword [ebp - 8]
push 0
push 0
push 0x40661c
push eax
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jge 0x4bf0b7
push 0x406670
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4bf0c8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 4], 0
push dword [ebp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x24
Function at 0x4bf0df
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [esi*8 + 4]
push edi
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x4bf10f
mov esi, 0x8007000e
jmp 0x4bf179
cmp esi, ebx
mov dword [edi], esi
lea ecx, [edi + 4]
mov dword [ebp + 0x10], ebx
jbe 0x4bf150
mov edx, dword [ebp + 0x14]
mov ebx, dword [edx + 0xc0]
imul ebx, dword [ebp + 0x10]
mov eax, dword [edx + 0xa0]
movzx eax, word [eax + 2]
add ebx, dword [ebp + 0xc]
add eax, ebx
fld dword [eax]
fstp dword [ecx]
add ecx, 4
fld dword [eax + 4]
fstp dword [ecx]
add ecx, 4
inc dword [ebp + 0x10]
cmp dword [ebp + 0x10], esi
jb 0x4bf11e
xor ebx, ebx
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push edi
push dword [ebp - 8]
push ebx
push ebx
push 0x40660c
push eax
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jge 0x4bf179
push 0x406670
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x4bf189
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], ebx
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x14

Function at 0x4bf19e
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
imul edi, edi, 0x14
add edi, 4
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
jne 0x4bf1ce
mov esi, 0x8007000e
jmp 0x4bf245
cmp dword [ebp + 0x10], ebx
mov dword [eax], esi
lea esi, [eax + 4]
jbe 0x4bf21a
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ecx + 0xc0]
imul eax, ebx
add eax, dword [ebp + 0xc]
push eax
call fcn.004beeab
fld dword [ebp - 0x18]
mov dword [esi], ebx
push 4
pop eax
add esi, eax
fstp dword [esi]
add esi, eax
fld dword [ebp - 0x14]
fstp dword [esi]
add esi, eax
fld dword [ebp - 0x10]
fstp dword [esi]
add esi, eax
fld dword [ebp - 0xc]
fstp dword [esi]
add esi, eax
inc ebx
cmp ebx, dword [ebp + 0x10]
jb 0x4bf1d8
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push dword [ebp - 8]
push edi
push 0
push 0
push 0x40663c
push eax
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jge 0x4bf245
push 0x406670
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4bf256
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 4], 0
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x14
Function at 0x4bf26d
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xec
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
push esi
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.00495e07
cmp esi, edi
je 0x4bf436
xor eax, eax
and esi, 0xffffffaf
cmp eax, dword [ebp - 0x54]
mov ebx, esi
sbb eax, eax
neg eax
cmp dword [ebp - 0x54], edi
mov dword [ebp + 0x14], eax
jbe 0x4bf2d4
push edi
lea ecx, [ebp - 0x6c]
call fcn.00495f9d
cmp eax, 8
jne 0x4bf2d4
movzx eax, bx
shr ebx, 2
sub eax, 0x100
and ebx, 0x3fffc000
or ebx, eax
mov dword [ebp + 0x14], edi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x6c]
call fcn.004bee57
push ebx
lea ecx, [ebp - 0xec]
call fcn.00495e07
push 0x10
mov esi, eax
pop ecx
lea edi, [ebp - 0xac]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0xa8]
add eax, 0xfffffff4
je 0x4bf436
test al, 3
je 0x4bf318
mov dword [ebp - 4], 0x8876086c
jmp 0x4bf436
mov esi, eax
imul esi, dword [ebp + 0x10]
lea eax, [esi + 8]
push eax
mov dword [ebp - 4], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
test edx, edx
pop ecx
mov dword [ebp - 8], edx
jne 0x4bf33e
mov eax, 0x8007000e
jmp 0x4bf442
mov eax, dword [ebp + 0x10]
shr esi, 2
mov dword [edx], ebx
lea edi, [edx + 4]
push 4
mov dword [edi], esi
mov esi, dword [ebp + 0xc]
pop ebx
xor ecx, ecx
add edi, ebx
cmp eax, ecx
jbe 0x4bf3fb
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x34]
add esi, 0xc
cmp eax, ecx
jbe 0x4bf375
mov edx, dword [esi]
mov dword [edi], edx
add edi, ebx
add esi, ebx
dec eax
jne 0x4bf36a
cmp dword [ebp - 0x64], ecx
jbe 0x4bf37d
add esi, 0xc
cmp dword [ebp - 0x5c], ecx
jbe 0x4bf392
cmp dword [ebp - 0x9c], ecx
jbe 0x4bf390
mov eax, dword [esi]
mov dword [edi], eax
add edi, ebx
add esi, ebx
cmp dword [ebp - 0x58], ecx
jbe 0x4bf39f
mov eax, dword [esi]
mov dword [edi], eax
add edi, ebx
add esi, ebx
cmp dword [ebp + 0x14], ecx
je 0x4bf3bb
push dword [ebp - 0x2c]
push esi
push edi
call sub.msvcrt.dll_memcpy
add edi, dword [ebp - 0x2c]
add esi, dword [ebp - 0x2c]
add esp, 0xc
xor ecx, ecx
jmp 0x4bf3be
add esi, dword [ebp - 0x2c]
xor eax, eax
inc eax
cmp dword [ebp - 0x30], eax
jbe 0x4bf3ef
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + eax*4 - 0x2c]
push ebx
push esi
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
add edi, ebx
add esi, ebx
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x30]
jb 0x4bf3c9
push 4
pop ebx
xor ecx, ecx
dec dword [ebp + 0xc]
jne 0x4bf360
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x18]
mov esi, dword [eax]
lea edi, [ebp - 0xc]
push edi
push edx
push dword [ebp - 4]
push ecx
push ecx
push 0x401ca8
push eax
call dword [esi + 0x1c]
test eax, eax
mov dword [ebp - 4], eax
jge 0x4bf425
push 0x406670
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4bf436
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 0xc], 0
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x4bfba7
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x398
push ebx
push esi
mov esi, dword [ebp + 0x18]
mov eax, dword [esi + 4]
xor ebx, ebx
push edi
xor edi, edi
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x4bfccc
mov ecx, dword [esi + 0xc0]
imul ecx, dword [ebp + 0x10]
add ecx, 3
shr ecx, 2
lea eax, [ecx + eax*4]
lea eax, [eax*4 + 8]
push eax
mov dword [ebp + 0x18], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x4bfbfe
mov edi, 0x8007000e
jmp 0x4bfcbb
mov eax, dword [esi + 4]
mov dword [ebx], eax
mov eax, dword [esi]
xor ecx, ecx
cmp dword [esi + 4], ecx
lea edi, [ebx + 4]
jbe 0x4bfc3e
add eax, 5
movzx edx, byte [eax - 1]
mov dword [edi], edx
movzx edx, byte [eax]
add edi, 4
mov dword [edi], edx
movzx edx, byte [eax + 1]
add edi, 4
mov dword [edi], edx
movzx edx, byte [eax + 2]
add edi, 4
mov dword [edi], edx
add edi, 4
add eax, 8
inc ecx
cmp ecx, dword [esi + 4]
jb 0x4bfc12
mov eax, dword [esi + 0xc0]
imul eax, dword [ebp + 0x10]
add eax, 3
shr eax, 2
mov dword [edi], eax
push dword [esi]
mov eax, dword [ebp + 0x14]
push dword [eax]
lea ecx, [ebp - 0x398]
call fcn.0049b829
add edi, 4
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x398]
call fcn.00496018
xor edi, edi
xor esi, esi
cmp dword [ebp + 0x10], edi
jbe 0x4bfc92
push 1
push esi
push esi
lea ecx, [ebp - 0x398]
call fcn.00496048
inc esi
cmp esi, dword [ebp + 0x10]
jb 0x4bfc7d
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push ebx
push dword [ebp + 0x18]
push edi
push edi
push 0x401cc8
push eax
call dword [ecx + 0x1c]
mov edi, eax
test edi, edi
jge 0x4bfcbb
push 0x406670
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4bfccc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 4], 0
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x504ffb
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
test edi, edi
je 0x505025
cmp edi, 1
je 0x505025
push 0x4068f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0x8876086c
jmp 0x505130
push esi
push 1
push 0x1c0
call sub.msvcrt.dll_calloc
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x505046
mov dword [ebp - 4], 0x8007000e
jmp 0x505123
fld dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
fstp dword [esi + 4]
mov dword [esi + 0xc], edi
call fcn.0050479d
test eax, eax
je 0x505073
fld dword [ebp + 0x10]
push edi
push ecx
fstp dword [esp]
call fcn.005061a4
test eax, eax
mov dword [esi + 0x1bc], eax
jne 0x50507f
mov dword [ebp - 4], 0x80004005
jmp 0x505122
and dword [esi + 0x1c], 0
call fcn.00611732
mov ebx, eax
test ebx, ebx
jne 0x50509a
mov dword [ebp - 4], 0x8007000e
jmp 0x505122
push 0x50676a
push 0x1870a
push ebx
call fcn.006118f9
push fcn.0057417c
push 0x18706
push ebx
call fcn.006118f9
push 0x5067ca
push 0x1870b
push ebx
call fcn.006118f9
push 0x5046ea
push 0x1870d
push ebx
call fcn.006118f9
push 0x504689
push 0x1870f
push ebx
call fcn.006118f9
fld1
sub esp, 0x18
fstp qword [esp + 0x10]
fldz
fst qword [esp + 8]
fstp qword [esp]
push ebx
call fcn.006118d6
fld qword [0x4068e8]
push ecx
push ecx
fstp qword [esp]
push 0x1872c
push ebx
call fcn.006117eb
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x1c], ebx
mov dword [eax], esi
xor esi, esi
pop ebx
test esi, esi
je 0x50512f
push dword [ebp + 8]
call fcn.0050486c
pop esi
mov eax, dword [ebp - 4]
leave
ret 0x10

Function at 0x5059df
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
and dword [ebx], 0
push esi
push edi
push 0xc
mov edi, eax
call sub.msvcrt.dll_malloc
mov esi, eax
test esi, esi
pop ecx
je 0x505a16
push 0x140
call sub.msvcrt.dll_malloc
test eax, eax
pop ecx
jne 0x505a1f
push esi
call sub.msvcrt.dll_free
pop ecx
mov dword [ebp - 4], 0x8007000e
jmp 0x505a69
and dword [esi + 4], 0
mov dword [esi], eax
mov dword [esi + 8], 0xa
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], eax
jae 0x505a57
push esi
push edi
lea eax, [ebp - 8]
call fcn.0050589f
test eax, eax
je 0x505a70
mov eax, dword [edi + 0x10]
add eax, dword [edi + 0x14]
cmp dword [ebp - 8], eax
jb 0x505a3e
and dword [ebp - 0xc], 0
mov dword [ebx], esi
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x505a69
call fcn.005049b8
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
push 0x40691c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0x80004005
jmp 0x505a5d
Function at 0x506064
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x73cb90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
je 0x50615d
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor esi, esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ebx
push esi
push esi
call edi
mov dword [ebp - 0xac], eax
call fcn.00667480
cmp dword [ebp - 0xac], esi
mov dword [ebp - 0xa8], esp
jne 0x50610e
push 0x40694c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 0x8876086c
jmp 0x506188
push esi
push esi
push dword [ebp - 0xac]
push dword [ebp - 0xa8]
push 0xffffffffffffffff
push ebx
push esi
push esi
call edi
fld dword [ebp + 0x18]
push dword [ebp - 0xa4]
push dword [ebp - 0x9c]
push dword [ebp - 0xa0]
push ecx
push ecx
fstp dword [esp + 4]
fld dword [ebp + 0x14]
fstp dword [esp]
push dword [ebp - 0xa8]
push dword [ebp - 0xb0]
push dword [ebp - 0xb4]
call sym.d3dx9_34.dll_D3DXCreateTextA
jmp 0x506188
fld dword [ebp + 0x18]
push 1
push dword [ebp - 0xa4]
push dword [ebp - 0x9c]
push dword [ebp - 0xa0]
push ecx
push ecx
fstp dword [esp + 4]
fld dword [ebp + 0x14]
fstp dword [esp]
push ebx
push edi
push esi
call fcn.00505bd3
lea esp, [ebp - 0xc0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00666f65
leave
ret 0x20

Function at 0x5069dd
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [eax + 4], 0
fldz
fstp qword [ebp - 0x18]
jne 0x5069f7
mov eax, 0x900
leave
ret
push edi
call fcn.00506289
mov edi, dword [eax + 0x10]
cmp edi, 3
jb 0x506a8b
push esi
mov esi, dword [eax + 0xc]
fld dword [esi]
lea eax, [esi + edi*8 - 0x10]
fsub dword [eax]
fstp dword [ebp - 0x10]
fld dword [esi + 4]
fsub dword [eax + 4]
fstp dword [ebp - 0xc]
jmp 0x506a57
mov eax, esi
add esi, 8
fld dword [esi]
fsub dword [eax]
fstp dword [ebp - 8]
fld dword [esi + 4]
fsub dword [eax + 4]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
fstp dword [ebp - 4]
call fcn.0050652a
fadd qword [ebp - 0x18]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
fstp qword [ebp - 0x18]
mov dword [ebp - 0xc], eax
dec edi
jne 0x506a23
fld qword [ebp - 0x18]
pop esi
fabs
fcomp qword [0x406b80]
fnstsw ax
test ah, 5
jp 0x506a7a
push 0x406b20
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x506a8b
fldz
fcomp qword [ebp - 0x18]
fnstsw ax
test ah, 5
mov eax, 0x901
jnp 0x506a90
mov eax, 0x900
pop edi
leave
ret
Function at 0x5180f8
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
sub eax, 0
push edi
je 0x51826b
dec eax
je 0x51818d
dec eax
jne 0x51820a
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov ecx, dword [esi + 0x20]
mov edi, dword [ebp + 0xc]
add ecx, edi
cmp ecx, eax
jbe 0x518167
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x14]
lea ebx, [ecx + edi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
add eax, eax
cmp ebx, eax
jbe 0x51814b
mov eax, ebx
jmp 0x518156
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
add eax, eax
mov ecx, dword [esi + 0x14]
push eax
call fcn.004663db
test eax, eax
jl 0x51826d
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
push edi
push dword [ebp + 8]
push eax
call dword [ecx + 0xc]
add eax, dword [esi + 0x20]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [eax], edi
add dword [esi + 0x20], edi
jmp 0x51826b
mov eax, dword [esi + 0x1c]
mov ebx, dword [ebp + 0xc]
lea ecx, [eax + ebx]
mov edi, 0x10000
cmp ecx, edi
ja 0x5181be
mov ecx, dword [esi + 0x18]
push ebx
push dword [ebp + 8]
add ecx, eax
push ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x10]
add esp, 0xc
add dword [esi + 0x1c], ebx
mov dword [eax], ebx
jmp 0x51826b
cmp eax, edi
je 0x5181e9
test eax, eax
je 0x5181e9
mov ebx, dword [ebp + 8]
mov ecx, edi
sub ecx, eax
push ecx
mov ecx, dword [esi + 0x18]
add ecx, eax
push ebx
push ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [esi + 0x1c]
sub ebx, eax
add esp, 0xc
add ebx, edi
mov dword [ebp + 8], ebx
jmp 0x5181ef
mov ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x51821e
push 0
push dword [ebp + 0x10]
push edi
push dword [esi + 0x18]
push dword [esi]
call ebx
test eax, eax
jne 0x518211
mov eax, 0x80004005
jmp 0x51826d
add dword [esi + 0x20], edi
sub edi, dword [esi + 0x1c]
and dword [esi + 0x1c], 0
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0xc]
sub edi, dword [ebp - 4]
shr edi, 0x10
je 0x518246
push 0
push dword [ebp + 0x10]
shl edi, 0x10
push edi
push dword [ebp + 8]
push dword [esi]
call ebx
test eax, eax
je 0x51820a
add dword [esi + 0x20], edi
add dword [ebp - 4], edi
add dword [ebp + 8], edi
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 4], edi
jae 0x518263
sub edi, dword [ebp - 4]
push edi
push dword [ebp + 8]
push dword [esi + 0x18]
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [esi + 0x1c], edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x518279
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
sub eax, 0
je 0x5182c0
dec eax
je 0x518292
dec eax
je 0x5182c0
jmp 0x5182af
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x5182c0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [esi + 0x18]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x5182b6
mov eax, 0x80004005
jmp 0x5182c2
mov eax, dword [esi + 0x1c]
add dword [esi + 0x20], eax
and dword [esi + 0x1c], 0
xor eax, eax
pop esi
leave
ret

Function at 0x51d538
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x51d65b
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x51d63f
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x51d591
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x51d56f
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18
Function at 0x51d92f
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov eax, ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push esi
mov esi, dword [eax]
mov ebx, dword [esi + 0x6c]
imul ebx, dword [esi + 0x60]
push edi
mov edi, dword [esi + 0x20]
add ebx, edi
cmp edi, ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x24], ebx
jae 0x51da5c
mov eax, 0xf81f
mov edx, dword [esi + 0x60]
mov esi, dword [esi + 0x68]
lea esi, [edi + esi*2]
add edx, edi
cmp edi, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], esi
jae 0x51da3d
movzx ecx, word [edi + 2]
movzx esi, word [edx + 2]
mov dword [ebp - 4], ecx
movzx ecx, word [edx]
movzx edx, word [edi]
mov ebx, ecx
and bx, ax
mov edi, edx
and di, ax
mov dword [ebp - 0x1c], ecx
and ecx, 0xffff07e0
add edi, ebx
mov ebx, dword [ebp - 4]
and bx, ax
add edi, ebx
mov ebx, esi
and bx, ax
lea edi, [edi + ebx + 0x1002]
mov ebx, edx
and ebx, 0xffff07e0
add ebx, ecx
mov ecx, dword [ebp - 4]
and ecx, 0xffff07e0
add ebx, ecx
mov ecx, esi
and ecx, 0xffff07e0
lea ecx, [ebx + ecx + 0x40]
shr ecx, 2
shr edi, 2
xor edi, ecx
mov ecx, dword [ebp - 0x1c]
and ecx, eax
and edx, eax
add edx, ecx
mov ecx, dword [ebp - 4]
and ecx, eax
add edx, ecx
and esi, eax
lea ecx, [edx + esi + 0x1002]
mov edx, dword [ebp - 0x10]
and edi, 0xffff07e0
shr ecx, 2
xor edi, ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 2
mov word [ecx], di
mov edi, dword [ebp - 0xc]
add edi, 4
add edx, 4
cmp edi, dword [ebp - 0x20]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edx
jb 0x51d988
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, dword [edx + 4]
add ecx, dword [esi + 0x60]
mov esi, dword [edx]
mov edx, dword [esi + 0x60]
lea edi, [edi + edx*2]
cmp edi, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edi
jb 0x51d969
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret