joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427f70
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, ecx
sub esp, 0x38
mov eax, dword [ecx + 0x104]
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
lea eax, [esp + 0x2e]
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov eax, dword [ebx + 0x104]
mov dword [esp], eax
call sub.msvcrt.dll_ferror
mov edx, eax
movzx eax, word [esp + 0x2e]
test edx, edx
jne 0x427fc0
add esp, 0x38
pop ebx
ret
mov edx, dword [ebx + 0x108]
xor eax, eax
test edx, edx
je 0x427fb5
mov dword [esp + 8], ebx
mov dword [esp + 4], str._File::file_get_unsigned_short__error_occured_while_reading_file:__s_n
mov dword [esp], 0x5bb380
mov dword [esp + 0x1c], eax
call fcn.00427510
mov eax, dword [esp + 0x1c]
add esp, 0x38
pop ebx
ret

Function at 0x428000
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x1c
cmp dword [ecx + 0x10c], 1
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
je 0x428090
mov eax, dword [ecx + 0x104]
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], edi
call sub.msvcrt.dll_fread
mov eax, dword [ebx + 0x104]
mov dword [esp], eax
call sub.msvcrt.dll_ferror
mov edx, eax
mov eax, 1
test edx, edx
jne 0x428060
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov eax, dword [ebx + 0x108]
test eax, eax
je 0x428051
mov dword [esp + 8], ebx
mov dword [esp + 4], str._File::file_read__error_occured_while_reading_file:__s_n
mov dword [esp], 0x5bb380
call fcn.00427510
add esp, 0x1c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 8
call fcn.00427f70
movzx ebp, ax
mov eax, dword [ebx + 0x104]
mov dword [esp + 0xc], eax
test ebp, ebp
je 0x4280e0
cmp esi, ebp
jbe 0x4280e0
mov dword [esp], edi
sub esi, ebp
add edi, ebp
mov dword [esp + 8], ebp
mov dword [esp + 4], 1
call sub.msvcrt.dll_fread
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], edi
call sub.msvcrt.dll_memset
jmp 0x428038
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], edi
call sub.msvcrt.dll_fread
cmp esi, ebp
jae 0x428038
mov eax, dword [ebx + 0x104]
sub ebp, esi
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [ebx + 0x104]
mov dword [esp], eax
call sub.msvcrt.dll_ftell
jmp 0x428038

Function at 0x428130
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, ecx
sub esp, 0x18
mov eax, dword [ecx + 0x104]
mov dword [esp + 8], 4
mov dword [esp + 0xc], eax
lea eax, [esp + 0x20]
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx + 0x104]
mov dword [esp], eax
call sub.msvcrt.dll_ferror
mov edx, eax
mov eax, 1
test edx, edx
jne 0x428180
add esp, 0x18
pop ebx
ret 4
mov eax, dword [ebx + 0x108]
test eax, eax
je 0x428175
mov dword [esp + 8], ebx
mov dword [esp + 4], str._File::file_put_long__error_occured_while_writing_file:__s_n
mov dword [esp], 0x5bb380
call fcn.00427510
add esp, 0x18
xor eax, eax
pop ebx
ret 4
Function at 0x4281b0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, ecx
sub esp, 0x28
mov eax, dword [ecx + 0x104]
mov dword [esp + 8], 4
mov dword [esp + 0xc], eax
lea eax, [esp + 0x1c]
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov eax, dword [ebx + 0x104]
mov dword [esp], eax
call sub.msvcrt.dll_ferror
mov edx, eax
mov eax, dword [esp + 0x1c]
test edx, edx
jne 0x428200
add esp, 0x28
pop ebx
ret
mov eax, dword [ebx + 0x108]
test eax, eax
je 0x4281f4
mov dword [esp + 8], ebx
mov dword [esp + 4], str._File::file_get_long__error_occured_while_reading_file:__s_n
mov dword [esp], 0x5bb380
call fcn.00427510
add esp, 0x28
xor eax, eax
pop ebx
ret

Function at 0x42f6c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
movsx ebx, word [ecx + 0x17]
mov eax, dword [esp + 0x70]
test eax, eax
je 0x42f778
movsx eax, word [ecx + 0x1b]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x38], eax
cmp eax, ebx
jl 0x42f767
mov eax, dword [0x59ad30]
movsx ebp, word [ecx + 0x15]
movsx ecx, word [ecx + 0x19]
imul edx, eax, 0xe
mov word [esp + 0x36], bp
imul eax, ebx
mov edi, ecx
mov dword [esp + 0x3c], edx
lea esi, [eax + ebp]
imul esi, esi, 0xe
add esi, dword [0x5b39d0]
cmp word [esp + 0x36], di
jg 0x42f75a
mov eax, esi
mov edx, ebp
test byte [eax], 1
je 0x42f750
cmp word [eax + 4], 0
jne 0x42f750
mov eax, dword [esp + 0x74]
mov dword [eax], edx
mov eax, dword [esp + 0x78]
mov dword [eax], ebx
add esp, 0x5c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 0x24
add edx, 1
add eax, 0xe
cmp ecx, edx
jge 0x42f720
add ebx, 1
add esi, dword [esp + 0x3c]
cmp dword [esp + 0x38], ebx
jge 0x42f715
add esp, 0x5c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x24
movsx eax, word [ecx + 0x15]
mov ecx, 0x5b39c8
mov dword [esp + 0x20], 0
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 8], eax
lea eax, [esp + 0x4c]
mov dword [esp + 4], eax
lea eax, [esp + 0x48]
mov dword [esp], eax
call fcn.0054b550
sub esp, 0x24
test eax, eax
je 0x42f767
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x74]
mov dword [edi], eax
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x78]
mov dword [edi], eax
add esp, 0x5c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 0x24
Function at 0x475db0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x27c]
sub esp, 0x290
mov dword [ebp - 0x25c], ebp
mov dword [esp], eax
mov dword [ebp - 0x264], 0x595d20
mov dword [ebp - 0x260], 0x598510
mov dword [ebp - 0x258], 0x475fb1
mov dword [ebp - 0x254], esp
call fcn.0057d6b0
mov eax, dword [ebp + 8]
mov dword [esp + 8], 1
lea ecx, [ebp - 0x248]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [ebp - 0x144], 0
mov dword [0x5bd694], 0
mov dword [ebp - 0x278], 1
call fcn.00427a10
sub esp, 0xc
test eax, eax
jne 0x475e80
lea ecx, [ebp - 0x248]
mov dword [0x5bd694], 1
call fcn.00427b50
mov byte [ebp - 0x280], 0
lea ecx, [ebp - 0x248]
call fcn.00427b90
lea eax, [ebp - 0x27c]
mov dword [esp], eax
call fcn.0057d740
movzx eax, byte [ebp - 0x280]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x278], 1
mov ecx, 0x5ba360
call fcn.0049a4a0
add eax, dword [0x5b4670]
mov ecx, 0x5ba360
sub eax, dword [0x5b466c]
mov dword [ebp - 0x278], 1
mov dword [0x5b4670], eax
call fcn.0049a4a0
mov dword [0x5b466c], eax
mov eax, dword [ebp + 0xc]
mov ecx, 0xfffffffe
lea edi, [ebp - 0x130]
mov dword [ebp - 0x136], 0x12e
mov esi, dword [ebp + 0xc]
mov eax, dword [eax]
sub esi, ecx
add ecx, 0x12a
mov dword [ebp - 0x132], eax
mov eax, dword [ebp + 0xc]
shr ecx, 2
mov eax, dword [eax + 0x126]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x136]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 4], 0x12e
lea ecx, [ebp - 0x248]
mov dword [esp], eax
call fcn.00427eb0
sub esp, 8
test eax, eax
je 0x475f60
mov dword [ebp - 0x278], 1
lea eax, [ebp - 0x248]
mov dword [esp], eax
call fcn.00479ef0
test eax, eax
jne 0x475f90
mov dword [ebp - 0x278], 1
lea ecx, [ebp - 0x248]
mov dword [0x5bd694], 3
call fcn.00427b50
jmp 0x475f75
lea ecx, [ebp - 0x248]
mov dword [0x5bd694], 2
call fcn.00427b50
mov dword [ebp - 0x278], 1
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_remove
jmp 0x475e4e
mov dword [ebp - 0x278], 1
lea ecx, [ebp - 0x248]
call fcn.00427b50
mov byte [ebp - 0x280], 1
jmp 0x475e55
Function at 0x494db0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xac
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xb8]
fld qword [esp + 0x38]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xc0]
fst qword [ecx + 8]
fld qword [esp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xc8]
fstp qword [ecx + 0x10]
fld qword [esp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xcc]
fst qword [ecx + 0x18]
mov dword [esp + 0x24], eax
fld qword [esp + 0x20]
fst qword [ecx + 0x20]
fld dword [0x59f1c8]
mov eax, dword [esp + 0xd0]
mov byte [ecx + 0x64], al
fstp qword [ecx + 0x30]
fxch st(1)
fsub qword [esp + 0x38]
fstp qword [esp + 0x48]
fsub qword [esp + 0x30]
fstp qword [esp + 0x50]
fld qword [esp + 0x50]
fmul qword [esp + 0x50]
fstp qword [esp + 0x80]
fld qword [esp + 0x48]
fmul qword [esp + 0x48]
fstp qword [esp + 0x88]
fld qword [esp + 0x80]
fadd qword [esp + 0x88]
fstp qword [esp + 0x90]
fld qword [esp + 0x90]
fldz
fucompi st(1)
ja 0x494f6d
fstp st(0)
fld qword [esp + 0x90]
fsqrt
fstp qword [esp + 0x98]
fnstcw word [esp + 0x1e]
fld dword [0x59f1c8]
fdivr qword [esp + 0x98]
mov edx, 2
movzx eax, word [esp + 0x1e]
or ah, 0xc
mov word [esp + 0x1c], ax
fstp qword [esp + 0x58]
fld qword [str.333333]
fmul qword [esp + 0x58]
fstp qword [esp + 0x60]
fld qword [esp + 0x60]
fldcw word [esp + 0x1c]
fistp dword [ecx + 0x2c]
fldcw word [esp + 0x1e]
mov dword [ecx + 0x58], 0x54524550
mov dword [ecx + 0x5c], 0x3fe921fb
fld dword [0x59f1d8]
mov eax, dword [ecx + 0x2c]
mov dword [ecx + 0x28], 0
cmp eax, edx
fst qword [ecx + 0x38]
cmovl eax, edx
mov dword [ecx + 0x2c], eax
fstp qword [ecx + 0x40]
fld dword [0x59f1dc]
fst qword [ecx + 0x48]
fstp qword [ecx + 0x50]
fadd qword [esp + 0x30]
fstp qword [esp + 0x68]
fld qword [esp + 0x68]
fadd qword [esp + 0x28]
fstp qword [esp + 0x70]
fld qword [esp + 0x70]
fadd qword [esp + 0x20]
fstp qword [esp + 0x78]
fld qword [esp + 0x78]
fldcw word [esp + 0x1c]
fistp qword [esp + 0x10]
fldcw word [esp + 0x1e]
mov eax, dword [esp + 0x10]
or eax, 1
imul eax, eax, 0x15a4e35
add eax, 1
mov dword [ecx + 0x60], eax
add esp, 0xac
ret 0x24
fstp st(1)
fstp qword [esp]
mov dword [esp + 0x10], ecx
call fcn.0057dc40
mov ecx, dword [esp + 0x10]
fstp qword [esp + 0x98]
fld qword [esp + 0x38]
jmp 0x494ea5

Function at 0x497370
Capabilities:
Print debug messages

Disassembly:
push ebx
sub esp, 0xe8
lea ebx, [esp + 0x17]
mov ecx, ebx
call fcn.004e3f60
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, ebx
mov dword [esp], eax
call fcn.004e4210
mov ecx, ebx
sub esp, 4
mov dword [esp], 0x59f1ef
call fcn.004e42e0
mov ecx, ebx
sub esp, 4
mov eax, dword [esp + 0xf0]
mov dword [esp], eax
call fcn.004e42e0
mov ecx, ebx
sub esp, 4
mov dword [esp], 0x59f1ec
call fcn.004e42e0
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
add esp, 0xe8
pop ebx
ret
Function at 0x4973e0
Capabilities:
Print debug messages

Disassembly:
push ebx
sub esp, 0xe8
lea ebx, [esp + 0x17]
mov ecx, ebx
call fcn.004e3f60
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, ebx
mov dword [esp], eax
call fcn.004e4210
mov ecx, ebx
sub esp, 4
mov dword [esp], 0x59f1ef
call fcn.004e42e0
mov ecx, ebx
sub esp, 4
mov eax, dword [esp + 0xf0]
mov dword [esp], eax
call fcn.004e4320
mov ecx, ebx
sub esp, 4
mov dword [esp], 0x59f1ec
call fcn.004e42e0
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
add esp, 0xe8
pop ebx
ret

Function at 0x497db0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
mov esi, 0xffff88cf
push ebx
mov ebx, ecx
mov edx, esi
sub esp, 4
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov byte [esp + 3], cl
movzx ecx, cl
mov eax, edi
mov ebp, edi
shl ecx, 7
xor eax, ecx
sub edx, eax
cmp di, cx
mov ecx, 1
mov edi, dword [ebx]
cmove edx, ecx
movzx ecx, ax
lea ecx, [ecx + ecx*2]
lea ecx, [edi + ecx*2]
cmp word [ecx], 0xffff
je 0x497e2e
sub esi, edx
jmp 0x497e1e
mov ecx, eax
lea ebx, [eax + esi]
sub ecx, edx
cmp dx, ax
mov eax, ecx
cmova eax, ebx
movzx ecx, ax
lea ecx, [ecx + ecx*2]
lea ecx, [edi + ecx*2]
cmp word [ecx], 0xffff
je 0x497e2e
cmp word [ecx + 2], bp
jne 0x497e00
movzx ebx, byte [esp + 3]
cmp byte [ecx + 4], bl
jne 0x497e00
add esp, 4
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x49a0c0
Capabilities:
Create directory

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
cmp byte [ebx + 2], 0
jne 0x49a0d4
cmp byte [ebx + 1], 0x3a
je 0x49a100
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
sub esp, 8
test eax, eax
je 0x49a118
add esp, 0x18
mov eax, 1
pop ebx
ret
movsx eax, byte [ebx]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_isalpha]
test eax, eax
je 0x49a0d4
jmp 0x49a0ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
add esp, 0x18
movzx eax, al
pop ebx
ret
Function at 0x4a42a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
sub esp, 0x64
lea edx, [esp + 0x1c]
mov dword [esp + 0x10], ecx
mov dword [esp], edx
mov dword [esp + 0x34], 0x595d20
mov dword [esp + 0x38], 0x59864e
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], 0x4a44a5
mov dword [esp + 0x44], esp
call fcn.0057d6b0
mov dword [esp], 0x89a
mov dword [esp + 0x20], 0xffffffff
call fcn.00595100
mov dword [esp + 0x20], 1
mov ecx, eax
mov dword [esp + 0x14], eax
call fcn.0040de10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x5c]
mov dword [esp], eax
call fcn.004250d0
sub esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x18], edx
mov word [eax + 4], dx
test edx, edx
jle 0x4a4498
mov eax, dword [esp + 0x18]
cmp dword [0x5b508c], eax
jl 0x4a4498
sub eax, 1
imul eax, dword [0x5b5090]
mov edx, dword [0x5b5099]
mov eax, dword [edx + eax]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x70], 1
mov eax, dword [eax]
mov eax, dword [eax]
je 0x4a4410
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x78]
mov dword [esp], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 4], edx
call eax
sub esp, 0x10
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
movsx edx, word [ecx + 4]
movzx eax, byte [ecx + 9]
mov byte [ebp + edx + 0xa3], al
movsx edx, word [ecx + 4]
mov byte [ebp + edx + 0xab], al
add word [ebp + 0x27], 1
cmp dword [esp + 0x70], 3
jne 0x4a43d7
add word [ebp + 0x29], 1
mov edx, dword [esp + 0x10]
mov eax, dword [0x5b4644]
mov dword [edx + 0x2f], eax
mov ecx, edx
mov dword [esp + 0x20], 0xffffffff
call fcn.004a3e10
lea eax, [esp + 0x1c]
mov dword [esp], eax
call fcn.0057d740
mov eax, dword [esp + 0x18]
add esp, 0x64
pop ebx
pop ebp
ret 0x10
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x7c]
mov word [ecx + 0x9d], bp
mov dword [ecx + 0x9f], edx
mov ecx, edx
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x78]
mov word [0x5b4678], bp
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x74]
mov word [0x5b4674], bp
mov dword [esp + 4], ebx
mov dword [esp], 1
mov dword [esp + 0x20], 0xffffffff
call eax
sub esp, 0x10
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
movsx edx, word [ebp + 4]
movzx eax, byte [ebp + 9]
mov byte [ecx + edx + 0xa3], al
movsx edx, word [ebp + 4]
mov byte [ecx + edx + 0xab], al
add word [ecx + 0x27], 1
jmp 0x4a43d7
mov dword [esp + 0x14], 0
jmp 0x4a4361
Function at 0x4a5290
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
sub esp, 0x88
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], ecx
mov dword [esp], eax
mov dword [esp + 0x34], 0x595d20
mov dword [esp + 0x38], 0x598660
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], 0x4a553e
mov dword [esp + 0x44], esp
call fcn.0057d6b0
movzx eax, byte [0x5bee30]
test al, al
je 0x4a5458
mov eax, dword [esp + 0x14]
fld dword [eax + 0x72]
fstp dword [esp + 0x5c]
fldz
fld dword [esp + 0x5c]
fcomi st(1)
fstp st(1)
jb 0x4a53d8
fnstcw word [esp + 0x1a]
mov dword [esp + 4], 4
mov ecx, 0x5ba360
mov dword [esp + 0x20], 0xffffffff
movzx eax, word [esp + 0x1a]
or ah, 0xc
mov word [esp + 0x18], ax
fldcw word [esp + 0x18]
fistp dword [esp]
fldcw word [esp + 0x1a]
call fcn.00499860
mov ecx, 0x5bee40
sub esp, 8
mov dword [esp], eax
call fcn.004e41b0
sub esp, 4
mov edx, dword [esp + 0x14]
mov eax, 0x16d
sub eax, dword [0x5b4660]
mov dword [esp + 0x14], eax
fld dword [edx + 0x8a]
fstp dword [esp + 0x68]
fild dword [esp + 0x14]
fstp dword [esp + 0x6c]
fld dword [esp + 0x68]
fmul dword [esp + 0x6c]
fstp dword [esp + 0x70]
fld dword [0x59fc70]
fdivr dword [esp + 0x70]
fstp dword [esp + 0x74]
fld dword [edx + 0x86]
fnstcw word [esp + 0x1a]
fstp dword [esp + 0x78]
fld dword [esp + 0x74]
fadd dword [esp + 0x78]
movzx eax, word [esp + 0x1a]
or ah, 0xc
mov word [esp + 0x18], ax
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fldcw word [esp + 0x18]
fistp dword [esp + 0x14]
fldcw word [esp + 0x1a]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4a5490
lea eax, [esp + 0x1c]
mov dword [esp], eax
call fcn.0057d740
add esp, 0x88
mov eax, 0x5bee40
pop ebp
ret
fstp st(0)
mov dword [esp], 0x59fb6d
mov ecx, 0x5bee40
mov dword [esp + 0x20], 0xffffffff
call fcn.004e41e0
mov ecx, 0x5ba360
sub esp, 4
mov eax, dword [esp + 0x14]
fld dword [eax + 0x72]
mov dword [esp + 4], 4
fnstcw word [esp + 0x1a]
fstp dword [esp + 0x60]
fld dword [esp + 0x60]
movzx eax, word [esp + 0x1a]
or ah, 0xc
fchs
mov word [esp + 0x18], ax
fstp dword [esp + 0x64]
fld dword [esp + 0x64]
fldcw word [esp + 0x18]
fistp dword [esp]
fldcw word [esp + 0x1a]
call fcn.00499860
mov ecx, 0x5bee40
sub esp, 8
mov dword [esp], eax
call fcn.004e42a0
sub esp, 4
jmp 0x4a533a
mov dword [esp], 0x5bee30
call fcn.00595880
test eax, eax
je 0x4a52d6
mov ecx, 0x5bee40
mov dword [esp + 0x20], 1
call fcn.004e3f60
mov dword [esp], 0x5bee30
call fcn.00595a30
jmp 0x4a52d6
mov dword [esp], 0x59fb6f
mov ecx, 0x5bee40
mov dword [esp + 0x20], 0xffffffff
call fcn.004e42e0
sub esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x4a5520
mov dword [esp], 0x59fb72
mov ecx, 0x5bee40
call fcn.004e42e0
sub esp, 4
mov edx, dword [esp + 0x14]
mov dword [esp + 4], 4
mov ecx, 0x5ba360
mov dword [esp + 0x20], 0xffffffff
mov eax, edx
neg eax
cmovs eax, edx
mov dword [esp], eax
call fcn.00499860
mov ecx, 0x5bee40
sub esp, 8
mov dword [esp], eax
call fcn.004e42a0
mov ecx, 0x5bee40
sub esp, 4
mov dword [esp], 0x59fb74
call fcn.004e42e0
sub esp, 4
jmp 0x4a53bc
mov dword [esp], 0x59fb6d
mov ecx, 0x5bee40
mov dword [esp + 0x20], 0xffffffff
call fcn.004e42e0
sub esp, 4
jmp 0x4a54c8
Function at 0x4a5570
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
sub esp, 0x88
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], ecx
mov dword [esp], eax
mov dword [esp + 0x34], 0x595d20
mov dword [esp + 0x38], 0x598666
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], 0x4a581e
mov dword [esp + 0x44], esp
call fcn.0057d6b0
movzx eax, byte [0x5bed50]
test al, al
je 0x4a5738
mov eax, dword [esp + 0x14]
fld dword [eax + 0x76]
fstp dword [esp + 0x5c]
fldz
fld dword [esp + 0x5c]
fcomi st(1)
fstp st(1)
jb 0x4a56b8
fnstcw word [esp + 0x1a]
mov dword [esp + 4], 4
mov ecx, 0x5ba360
mov dword [esp + 0x20], 0xffffffff
movzx eax, word [esp + 0x1a]
or ah, 0xc
mov word [esp + 0x18], ax
fldcw word [esp + 0x18]
fistp dword [esp]
fldcw word [esp + 0x1a]
call fcn.00499860
mov ecx, 0x5bed60
sub esp, 8
mov dword [esp], eax
call fcn.004e41b0
sub esp, 4
mov edx, dword [esp + 0x14]
mov eax, 0x16d
sub eax, dword [0x5b4660]
mov dword [esp + 0x14], eax
fld dword [edx + 0x18a]
fstp dword [esp + 0x68]
fild dword [esp + 0x14]
fstp dword [esp + 0x6c]
fld dword [esp + 0x68]
fmul dword [esp + 0x6c]
fstp dword [esp + 0x70]
fld dword [0x59fc70]
fdivr dword [esp + 0x70]
fstp dword [esp + 0x74]
fld dword [edx + 0x186]
fnstcw word [esp + 0x1a]
fstp dword [esp + 0x78]
fld dword [esp + 0x74]
fadd dword [esp + 0x78]
movzx eax, word [esp + 0x1a]
or ah, 0xc
mov word [esp + 0x18], ax
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fldcw word [esp + 0x18]
fistp dword [esp + 0x14]
fldcw word [esp + 0x1a]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4a5770
lea eax, [esp + 0x1c]
mov dword [esp], eax
call fcn.0057d740
add esp, 0x88
mov eax, 0x5bed60
pop ebp
ret
fstp st(0)
mov dword [esp], 0x59fb6d
mov ecx, 0x5bed60
mov dword [esp + 0x20], 0xffffffff
call fcn.004e41e0
mov ecx, 0x5ba360
sub esp, 4
mov eax, dword [esp + 0x14]
fld dword [eax + 0x76]
mov dword [esp + 4], 4
fnstcw word [esp + 0x1a]
fstp dword [esp + 0x60]
fld dword [esp + 0x60]
movzx eax, word [esp + 0x1a]
or ah, 0xc
fchs
mov word [esp + 0x18], ax
fstp dword [esp + 0x64]
fld dword [esp + 0x64]
fldcw word [esp + 0x18]
fistp dword [esp]
fldcw word [esp + 0x1a]
call fcn.00499860
mov ecx, 0x5bed60
sub esp, 8
mov dword [esp], eax
call fcn.004e42a0
sub esp, 4
jmp 0x4a561a
mov dword [esp], 0x5bed50
call fcn.00595880
test eax, eax
je 0x4a55b6
mov ecx, 0x5bed60
mov dword [esp + 0x20], 1
call fcn.004e3f60
mov dword [esp], 0x5bed50
call fcn.00595a30
jmp 0x4a55b6
mov dword [esp], 0x59fb6f
mov ecx, 0x5bed60
mov dword [esp + 0x20], 0xffffffff
call fcn.004e42e0
sub esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x4a5800
mov dword [esp], 0x59fb72
mov ecx, 0x5bed60
call fcn.004e42e0
sub esp, 4
mov edx, dword [esp + 0x14]
mov dword [esp + 4], 4
mov ecx, 0x5ba360
mov dword [esp + 0x20], 0xffffffff
mov eax, edx
neg eax
cmovs eax, edx
mov dword [esp], eax
call fcn.00499860
mov ecx, 0x5bed60
sub esp, 8
mov dword [esp], eax
call fcn.004e42a0
mov ecx, 0x5bed60
sub esp, 4
mov dword [esp], 0x59fb74
call fcn.004e42e0
sub esp, 4
jmp 0x4a569c
mov dword [esp], 0x59fb6d
mov ecx, 0x5bed60
mov dword [esp + 0x20], 0xffffffff
call fcn.004e42e0
sub esp, 4
jmp 0x4a57a8
Function at 0x4d15c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x4c
cmp byte [0x5b4543], 0
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov ebp, dword [esp + 0x70]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x28], eax
jne 0x4d1610
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret 0x20
mov esi, dword [0x5b39cc]
lea edi, [esp + 0x30]
mov eax, dword [esi + 0x2c]
shr eax, 0x1f
add eax, dword [esi + 0x2c]
sar eax, 1
add ax, word [esi + 0x14]
sub ecx, eax
movsx ecx, cx
mov dword [esp + 4], ecx
mov ecx, dword [esi + 0x28]
mov eax, ecx
shr eax, 0x1f
add eax, ecx
mov ecx, edi
sar eax, 1
add ax, word [esi + 0x10]
sub edx, eax
movsx edx, dx
mov dword [esp], edx
call fcn.00548690
sub esp, 8
mov dword [esp], edi
lea ecx, [esp + 0x38]
call fcn.005485c0
sub esp, 4
cmp byte [0x5b4546], 0
jne 0x4d1674
mov dword [esp + 0x3c], 0
cmp dword [esp + 0x38], 4
jle 0x4d15fe
movsx eax, word [esp + 0x28]
mov dword [esp + 0x14], 0
mov ecx, ebx
mov dword [esp + 0x10], eax
movsx eax, byte [esp + 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 8], eax
movsx eax, bp
mov dword [esp + 4], eax
movsx eax, byte [esp + 0x20]
mov dword [esp], eax
call fcn.004d1380
sub esp, 0x18
test eax, eax
je 0x4d15fe
movzx edi, word [esp + 0x2c]
cmp word [eax + 0xc], di
jne 0x4d15fe
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov ecx, dword [ebx + 4]
mov dword [esp + 4], esi
mov dword [esp + 8], edi
movsx eax, word [eax + 0x18]
mov dword [esp], eax
call fcn.004d0560
sub esp, 0xc
jmp 0x4d15fe