joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c150
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x441f9c
sub eax, eax
test esi, esi
je 0x44c230
sub eax, 1
test ecx, ecx
je 0x44c22e
test esi, 3
je 0x44c18e
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x44c173
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x44c215
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x44c19c
mov ecx, edx
test ecx, ecx
je 0x44c22e
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x44c21b
not eax
mov dword [esp + 0x1c], eax
popal
ret
Function at 0x402f50
Capabilities:
Execute anti-debugging instructions

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
xor edx, edx
rdtsc
mov ecx, dword [esp + 0x14]
add ecx, 0x16c
mov ebp, 1
mov dword [esp + 0x1c], edx
mov dword [ecx + 4], eax
mov dword [ecx + 0x20], ebp
call fcn.00508810
mov esi, 0x104373c
call fcn.004c8de0
mov esi, 0x1043778
call fcn.004c8de0
mov esi, 0x1043764
call fcn.004c8de0
mov esi, 0x104378c
call fcn.004c8de0
mov esi, 0x1043750
call fcn.004c8de0
test byte [0x106b3fc], 1
jne 0x402fd5
or dword [0x106b3fc], ebp
mov edx, 0x1066ab0
call fcn.004cc060
push 0x599800
call fcn.0057eee7
add esp, 4
mov eax, dword [0x1066ab0]
mov ecx, 0x1066ab0
call dword [eax + 0x1c]
xor ebx, ebx
cmp al, 1
je 0x403069
mov byte [esp + 0x13], bl
mov ecx, dword [esp + 0x14]
mov dl, byte [esp + 0x13]
push ecx
call fcn.004031d0
mov dl, byte [esp + 0x13]
mov eax, dword [esp + 0x14]
call fcn.00403d60
mov al, byte [esp + 0x13]
inc al
cmp al, 2
mov byte [esp + 0x13], al
jb 0x402ff0
mov edx, dword [0x1043770]
cmp word [edx], bx
mov eax, dword [esp + 0x14]
mov cl, byte [eax + 0xe8]
setne dl
mov byte [eax + 0xe8], dl
mov edx, dword [esp + 0x14]
cmp byte [edx + 0xe8], bl
je 0x403049
cmp cl, bl
jne 0x403049
mov eax, ebp
jmp 0x40304b
xor eax, eax
mov byte [edx + 0xe9], al
mov eax, dword [esp + 0x14]
push eax
xor cl, cl
call fcn.00404320
mov ecx, dword [esp + 0x14]
push ecx
xor dl, dl
call fcn.00404530
xor edx, edx
rdtsc
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
add ecx, 0x16c
mov edx, eax
call fcn.00401080
mov esi, dword [esp + 0x14]
add esi, 0x16c
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x24], ebx
mov ecx, 0xa
lea edi, [esp + 0x34]
mov dword [esp + 0x20], 3
mov dword [esp + 0x28], 5
mov dword [esp + 0x30], str.INPUT
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x1043bf4]
pop edi
pop esi
mov dword [esp + 0x24], ebp
pop ebp
cmp ecx, ebx
pop ebx
je 0x4030f2
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
call dword [edx]
add esp, 0x4c
ret

Function at 0x4031d0
Capabilities:
Enumerate pe sections

Disassembly:
movzx eax, word [0x104374e]
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [0x1043748]
mov ecx, eax
shr ecx, 3
push edi
movzx edi, byte [0x104374c]
movzx edx, dl
imul edi, eax
inc ecx
invalid
scasd eax, dword es:[edi]
Function at 0x408920
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov bp, word [esp + 8]
mov ax, bp
sub ax, word [esi + 0x40]
push edi
movsx eax, ax
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jle 0x40897f
movsx eax, bp
sub eax, 2
xor ecx, ecx
test eax, eax
setle cl
dec ecx
and eax, ecx
cmp ax, word [esi + 0x36]
jae 0x4089fc
movzx edi, word [esi + 0x38]
mov ecx, dword [esi + 0x20]
mov word [esi + 0x40], ax
mov edx, dword [ecx]
movzx eax, ax
imul edi, eax
movzx eax, word [esi + 0x3a]
push 0
add edi, eax
push edi
call dword [edx + 0x14]
xor ecx, ecx
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], ecx
push ebx
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x40898d
cmp word [esi + 0x40], bp
jae 0x408a03
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx]
call dword [edx + 0x24]
test al, al
je 0x408a03
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp eax, dword [esi + 0x3c]
jae 0x408a03
movzx eax, word [esi + 0x40]
cdq
mov ecx, 3
idiv ecx
movzx ebx, word [esi + 0x38]
mov cl, byte [esi]
xor eax, eax
mov edi, edx
mov edx, dword [esi + 0x48]
imul edi, ebx
add edx, edi
test cl, 0x10
je 0x4089da
mov cl, byte [esi + 4]
test cl, cl
je 0x4089da
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx]
push ebx
push edx
call dword [eax + 0xc]
movzx ecx, word [esi + 0x38]
cmp eax, ecx
jne 0x408a03
mov edx, dword [esi + 0x50]
mov eax, dword [esi + 0x54]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], eax
mov ecx, dword [esi + 0x48]
add ecx, edi
inc word [esi + 0x40]
mov dword [esi + 0x54], ecx
jmp 0x408980
pop edi
xor al, al
pop ebp
ret 4
mov cx, word [esi + 0x40]
movzx eax, cx
movzx edx, bp
add eax, 0xfffffffe
cmp eax, edx
mov dword [esi + 0x44], eax
pop ebx
jg 0x408a27
cmp bp, cx
ja 0x408a27
pop edi
mov eax, 1
pop ebp
ret 4
pop edi
xor eax, eax
pop ebp
ret 4
Function at 0x42db10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x84
push ebx
push ebp
push esi
mov esi, eax
lea ebp, [esi + 0xd18]
push edi
add esi, 0xbc
mov dword [esp + 0x20], 3
mov al, byte [esi - 0xc]
test al, al
lea ebx, [esi - 0xc]
je 0x42dd13
mov eax, dword [esi + 0x8c]
fld dword [ebp - 8]
lea edi, [eax + 0x60]
mov eax, edi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x44], ecx
fsub dword [esp + 0x44]
mov ecx, dword [eax + 8]
mov dword [esp + 0x48], edx
fstp dword [esp + 0x10]
mov dword [esp + 0x4c], ecx
fld dword [ebp - 4]
mov edx, dword [eax + 0xc]
fsub dword [esp + 0x48]
mov dword [esp + 0x50], edx
mov dword [esp + 0x1c], 0
fstp dword [esp + 0x14]
fld dword [ebp]
fsub dword [esp + 0x4c]
fst dword [esp + 0x18]
fld dword [esp + 0x14]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld dword [esp + 0x10]
fmul dword [esp + 0x10]
faddp st(1)
fld dword [0x669040]
fmul dword [0x669040]
fcompp
fnstsw ax
fstp st(0)
test ah, 5
fstp st(0)
jp 0x42dcab
lea ecx, [esp + 0x10]
call fcn.004186d0
fld dword [0x669040]
fmul dword [esp + 0x10]
mov eax, dword [edi]
fld dword [esp + 0x14]
mov ecx, dword [edi + 4]
fmul dword [0x669040]
mov edx, dword [edi + 8]
fld dword [esp + 0x18]
mov dword [esp + 0x54], eax
fmul dword [0x669040]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
mov eax, dword [edi + 0xc]
fstp dword [esp + 0x18]
mov dword [esp + 0x60], eax
fld dword [esp + 0x54]
mov dword [esp + 0x70], 0
fadd st(2)
fstp dword [esp + 0x34]
mov edx, dword [esp + 0x34]
fld dword [esp + 0x58]
fadd st(1)
fstp dword [esp + 0x38]
fstp st(0)
fstp st(0)
fld dword [esp + 0x5c]
fadd dword [esp + 0x18]
fstp dword [esp + 0x3c]
fld dword [esp + 0x34]
fld dword [esp + 0x38]
fld dword [esp + 0x3c]
fst dword [esp + 0x6c]
fld dword [esp + 0x34]
fsub dword [ebp - 8]
fld st(2)
fsub dword [ebp - 4]
fstp dword [esp + 0x78]
fld st(1)
fsub dword [ebp]
mov dword [ebp - 8], edx
mov dword [ebp + 4], 0
fstp dword [esp + 0x7c]
fmul dword [0x5bf034]
fld dword [esp + 0x78]
fmul dword [0x5bf034]
fld dword [esp + 0x7c]
fmul dword [0x5bf034]
fstp dword [esp + 0x8c]
mov ecx, dword [esp + 0x8c]
fxch st(1)
fstp dword [esp + 0x24]
mov dword [esp + 0x2c], ecx
fstp dword [esp + 0x28]
fld st(1)
fstp dword [ebp - 4]
fstp dword [ebp]
jmp 0x42dcd7
fld dword [ebp - 8]
mov eax, dword [ebp]
fld dword [ebp - 4]
mov dword [esp + 0x6c], eax
fld dword [ebp + 4]
mov dword [esp + 0x24], 0
fstp dword [esp + 0x70]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x6c]
fxch st(1)
mov edx, dword [esp + 0x70]
fstp dword [esi - 8]
mov eax, dword [esp + 0x24]
mov dword [esi], ecx
fstp dword [esi - 4]
mov ecx, dword [esp + 0x28]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 0
mov edi, ebx
mov byte [esi - 0xa], 1
call fcn.0042ed00
mov eax, dword [esp + 0x20]
add ebp, 0x10
add esi, 0x420
dec eax
mov dword [esp + 0x20], eax
jne 0x42db30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
Function at 0x462850
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x134
lea eax, [esp + 0x6c]
mov ecx, 5
nop
mov byte [eax], 0
add eax, 0x30
dec ecx
jne 0x462860
push ebx
push esi
push edi
mov edi, dword [esp + 0x144]
xor ebx, ebx
mov dword [esp + 0xc], ebx
add edi, 0x78
lea esi, [esp + 0x58]
mov ecx, dword [edi]
mov edx, dword [edi - 0x78]
cmp ecx, 1
lea ecx, [edi - 0x78]
sete al
mov byte [esi + 0x20], al
call dword [edx + 8]
mov ecx, dword [edi]
test ecx, ecx
mov dword [esi + 0x24], eax
je 0x4628c1
lea eax, [edi + 8]
mov edx, dword [eax]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], edx
lea eax, [esp + 0x40]
jmp 0x4628e5
fild dword [esp + 0xc]
mov dword [esp + 0x14], 0x41200000
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
fstp dword [esp + 0x10]
lea eax, [esp + 0x10]
test ecx, ecx
fld dword [eax + 4]
mov edx, dword [eax]
fstp dword [esi - 4]
fld dword [eax + 8]
mov dword [esi - 8], edx
fstp dword [esi]
fld dword [eax + 0xc]
fstp dword [esi + 4]
je 0x462923
lea eax, [edi + 0x18]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
lea eax, [esp + 0x20]
jmp 0x462947
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0x3f800000
mov dword [esp + 0x3c], 0
lea eax, [esp + 0x30]
fld dword [eax + 4]
mov ecx, dword [eax]
fstp dword [esi + 0xc]
fld dword [eax + 8]
add ebx, 2
fstp dword [esi + 0x10]
fld dword [eax + 0xc]
mov dword [esi + 8], ecx
fstp dword [esi + 0x14]
add edi, 0x170
add esi, 0x30
cmp ebx, 0xa
mov dword [esp + 0xc], ebx
jl 0x462880
mov ecx, dword [0x1043b78]
test ecx, ecx
pop edi
pop esi
pop ebx
je 0x46298d
mov edx, dword [ecx]
lea eax, [esp + 0x44]
push eax
call dword [edx]
add esp, 0x134
ret 4
Function at 0x470210
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb4
fld dword [0x5a6110]
push ebx
fmul dword [0x5bf308]
push esi
push edi
fsubr dword [ebp + 0xc]
fsub dword [0x1017a6c]
fchs
fstp dword [ebp + 0xc]
fld dword [ebp + 0x10]
fchs
fstp dword [ebp + 0x10]
fld dword [ebp + 0xc]
fcomp dword [0x5bef98]
out dx, eax
pop ebx
add cl, bl
inc ebp
or al, 0xdf
loopne 0x470246
invalid
invalid
jp 0x47025c
fadd dword [0x5bf01c]
jmp 0x470272
fcomp dword [0x5bf01c]
fnstsw ax
test ah, 1
jne 0x470275
fld dword [ebp + 0xc]
fsub dword [0x5bf01c]
fstp dword [ebp + 0xc]
fld dword [ebp + 0x10]
fcomp dword [0x5bef98]
fld dword [ebp + 0x10]
fnstsw ax
test ah, 5
jp 0x470290
fadd dword [0x5bf01c]
jmp 0x4702a6
fcomp dword [0x5bf01c]
fnstsw ax
test ah, 1
jne 0x4702a9
fld dword [ebp + 0x10]
fsub dword [0x5bf01c]
fstp dword [ebp + 0x10]
mov eax, dword [0x1017a64]
mov dword [esp + 0x1c], eax
xor ebx, ebx
mov esi, dword [ebp + 8]
mov eax, dword [esi + ebx*4 + 0xdf0]
test eax, eax
jl 0x4703e9
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + 0x24]
mov ecx, dword [edx + 0xa4]
mov ecx, dword [ecx + eax*4]
add ecx, 0x10
lea eax, [esp + 0x80]
call fcn.00407a30
test ebx, ebx
jne 0x4702f1
fld dword [esp + 0x1c]
fadd dword [ebp + 0x10]
jmp 0x4702f8
fld dword [ebp + 0x10]
fsub dword [esp + 0x1c]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fcomp dword [0x5bef98]
fld dword [esp + 0x18]
fnstsw ax
test ah, 5
jp 0x470319
fadd dword [0x5bf01c]
jmp 0x470330
fcomp dword [0x5bf01c]
fnstsw ax
test ah, 1
jne 0x470334
fld dword [esp + 0x18]
fsub dword [0x5bf01c]
fstp dword [esp + 0x18]
lea eax, [esp + 0x40]
lea ecx, [esp + 0x80]
call fcn.00464160
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x30]
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], 0
call fcn.004213f0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x78], eax
lea eax, [esp + 0x80]
lea ecx, [esp + 0x40]
mov dword [esp + 0x74], edx
mov dword [esp + 0x7c], 0x3f800000
call fcn.00468d70
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + 0x24]
mov eax, dword [esi + ebx*4 + 0xdf0]
mov ecx, dword [edx + 0xa4]
mov edi, dword [ecx + eax*4]
add edi, 0x10
mov ecx, 0x10
lea esi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
inc ebx
cmp ebx, 2
jl 0x4702b4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x478960
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [eax + 0x24]
mov eax, dword [esp + 4]
shr eax, 0x12
and eax, 0x7f
cmp eax, 0x7f
push esi
lea edx, [ecx + 0x40]
je 0x47897e
mov esi, dword [edx + 4]
mov eax, dword [esi + eax*4]
jmp 0x478980
xor eax, eax
mov esi, dword [esp + 0xc]
mov dword [eax + 0x20], esi
pop esi
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
jmp fcn.00412970

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

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, dword [ebx + 0x70]
test esi, esi
push edi
je 0x4796c5
nop
fld dword [esi + 0x24]
mov ebp, dword [esi + 4]
fcomp dword [0x5bef98]
fnstsw ax
test ah, 0x44
jp 0x4796bf
mov eax, dword [esp + 0x18]
push eax
mov edi, ebx
call fcn.00479fb0
test ebp, ebp
mov esi, ebp
jne 0x4796a0
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4796d1
cmp dword [ebx + 0x78], eax
jae 0x4796e4
mov esi, dword [esp + 0x18]
mov ecx, dword [esi]
call fcn.00479170
mov ebp, eax
test ebp, ebp
jne 0x479701
jmp 0x4796e8
mov esi, dword [esp + 0x18]
push esi
mov eax, ebx
call fcn.0047a030
mov ecx, dword [esi]
call fcn.00479170
mov ebp, eax
test ebp, ebp
je 0x47982b
mov edi, dword [ebx + 0x88]
mov eax, dword [ebx + 0x70]
xor ecx, ecx
cmp edi, 4
setne cl
dec ecx
and ecx, 2
test eax, eax
je 0x47972a
lea ebx, [ebx]
mov dword [eax + 0x28], ecx
mov eax, dword [eax + 4]
test eax, eax
jne 0x479720
mov ecx, esi
mov edi, ebp
mov esi, ebx
call fcn.00479f50
mov edx, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp + 0x24], esi
mov dword [ebp + 0x28], 1
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x24]
mov ecx, dword [eax + 0x54]
add eax, 8
cmp ecx, esi
je 0x479759
lea edi, [ecx - 8]
jmp 0x47975b
xor edi, edi
shr edx, 0x12
and edx, 0x7f
cmp edx, 0x7f
je 0x47976e
mov ecx, dword [eax + 0x3c]
mov ecx, dword [ecx + edx*4]
jmp 0x479770
xor ecx, ecx
push edi
push ecx
lea edi, [eax + 0x28]
mov dword [ecx + 0x24], esi
call fcn.004163d0
mov eax, dword [ebp + 0xc]
mov edi, dword [ebx + 0x88]
shr eax, 0x12
and eax, 0x7f
cmp edi, 1
jne 0x4797b9
cmp eax, 0x7f
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 0x24]
lea edx, [ecx + 0x40]
je 0x4797ae
mov esi, dword [edx + 4]
mov eax, dword [esi + eax*4]
mov dword [eax + 0x20], 2
jmp 0x4797d4
xor eax, eax
mov dword [eax + 0x20], 2
jmp 0x4797d4
cmp eax, 0x7f
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0x24]
lea edx, [ecx + 0x40]
je 0x4797cf
mov esi, dword [edx + 4]
mov eax, dword [esi + eax*4]
jmp 0x4797d1
xor eax, eax
mov dword [eax + 0x20], edi
push ecx
push edx
call fcn.00412970
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
mov dword [ebx + 0x80], eax
jge 0x4797f7
fadd dword [0x5befa4]
fdivr dword [0x5bef9c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
push ebp
mov eax, ebx
mov dword [ebx + 0x6c], 3
fstp dword [ebx + 0x84]
call fcn.00479ed0
pop edi
pop esi
pop ebp
pop ebx
ret 0x20
Function at 0x497680
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x58
push ebx
mov ebx, dword [esp + 0x64]
push ebp
mov ebp, dword [esp + 0x64]
push esi
mov esi, dword [esp + 0x70]
push edi
mov ecx, dword [esi]
mov edi, dword [0x5fcdd8]
mov eax, 1
shl eax, cl
cdq
and eax, edi
and edx, dword [0x5fcddc]
or eax, edx
je 0x4977e1
mov al, byte [0xf917d9]
test al, al
je 0x4976d7
push 0x3c23d70a
lea edi, [ecx + 2]
push 0x3dcccccd
shl edi, 6
add edi, ebx
push ebp
call fcn.00497560
add esp, 0xc
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4977e1
mov eax, dword [esi]
mov ecx, dword [ecx]
mov edx, eax
shl edx, 6
lea edx, [edx + ebx + 0xb0]
mov edi, dword [edx]
mov dword [esp + 0x18], edi
mov edi, dword [edx + 4]
shl ecx, 6
test al, 1
mov dword [esp + 0x1c], edi
mov edi, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x24], edx
lea edx, [ecx + ebx + 0xb0]
mov ecx, dword [edx]
mov dword [esp + 0x28], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x24]
mov ecx, edi
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x20], edi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x74], 0x3f800000
jne 0x497784
mov dword [esp + 0x74], 0
test al, 2
mov dword [esp + 0x10], 0x3f800000
jne 0x497798
mov dword [esp + 0x10], 0
test al, 4
mov dword [esp + 0x14], 0x3f800000
jne 0x4977ac
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 0x3f800000
push eax
push ecx
push edx
lea eax, [esp + 0x6c]
push eax
call fcn.00459050
mov ecx, dword [esp + 0x78]
push ebp
push 0x64ccb0
lea eax, [esp + 0x40]
mov dword [esp + 0x60], ecx
call fcn.004a7e70
mov eax, dword [esi + 8]
test eax, eax
je 0x497801
fld dword [0x5fcde0]
push ecx
fmul dword [esp + 0x7c]
fstp dword [esp]
push eax
push ebx
push ebp
call fcn.00497680
add esp, 0x10
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x497693
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
Function at 0x497820
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb4
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov esi, dword [ebx + 4]
test esi, esi
je 0x4979f3
mov ecx, dword [ebx]
mov edi, dword [0x5fcddc]
mov eax, 1
shl eax, cl
mov ecx, dword [0x5fcdd8]
cdq
and eax, ecx
and edx, edi
or eax, edx
je 0x4979f3
mov esi, dword [esi]
fld dword [ebx + 0x44]
mov eax, dword [ebx + 0x40]
mov ecx, dword [ebp + 0xc]
add esi, 2
shl esi, 6
fstp dword [esp + 0x24]
fld dword [ebx + 0x48]
add esi, ecx
mov dword [esp + 0x20], eax
mov al, byte [0xf917d9]
test al, al
mov ecx, 0x10
lea edi, [esp + 0x80]
fstp dword [esp + 0x28]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x2c], 0
rep movsd dword es:[edi], dword [esi]
je 0x4978dd
mov ecx, dword [ebp + 8]
push 0x3c23d70a
push 0x3dcccccd
push ecx
lea edi, [esp + 0x8c]
call fcn.00497560
add esp, 0xc
mov eax, dword [ebx + 4]
test eax, eax
je 0x4979f3
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x28]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea eax, [esp + 0x40]
lea ecx, [esp + 0x90]
call fcn.00460320
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x38]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea eax, [esp + 0x50]
lea ecx, [esp + 0x90]
call fcn.00460320
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x6c], eax
mov eax, dword [ebx]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x64], ecx
mov ecx, eax
mov dword [esp + 0x68], edx
mov edx, eax
not ecx
and ecx, 1
shr edx, 1
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
push 0x3f800000
sub esp, 0xc
not edx
fstp dword [esp + 8]
shr eax, 2
and edx, 1
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
not eax
and eax, 1
mov dword [esp + 0x1c], eax
fstp dword [esp + 4]
lea eax, [esp + 0x84]
fild dword [esp + 0x1c]
fstp dword [esp]
push eax
call fcn.00459050
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
push edx
push 0x64ccb0
lea eax, [esp + 0x58]
mov dword [esp + 0x78], ecx
call fcn.004a7e70
mov eax, dword [ebx + 8]
test eax, eax
je 0x497a18
fld dword [0x5fcde0]
push ecx
fmul dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
fstp dword [esp]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
call fcn.00497820
add esp, 0x10
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x497832
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret