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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x43604c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x38], 0
je 0x4051e7
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x4051ee
mov al, 1
jmp 0x4052d9
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x44], edx
call fcn.00405fe0
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x30]
call dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
call fcn.00405fe0
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x4c]
push edx
call fcn.00406040
add esp, 8
movzx eax, al
test eax, eax
je 0x405234
xor al, al
jmp 0x4052d9
mov dword [ebp - 0x54], 0x20
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x50], edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x30]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x50]
call fcn.00406e00
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x405276
cmp dword [ebp - 0x34], 1
je 0x40527d
cmp dword [ebp - 0x34], 3
je 0x4052cc
jmp 0x4052d7
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0x3d], 0
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x4052ac
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0x38]
push eax
push 1
lea ecx, [ebp - 0x28]
push ecx
call fcn.004107cc
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x4052ac
xor al, al
jmp 0x4052d9
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 0x3d]
test eax, eax
jne 0x4052c0
mov dword [ebp - 0x3c], 1
jmp 0x4052c7
mov dword [ebp - 0x3c], 0
mov al, byte [ebp - 0x3c]
jmp 0x4052d9
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0x3d], 0
mov al, 1
jmp 0x4052d9
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a143
mov esp, ebp
pop ebp
ret

Function at 0x40abdf
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40ac1e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ac1e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ac1e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40ac1e
cmp dword [ecx + 0x74], 0xe
jbe 0x40ac1e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x418afb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418971

Function at 0x426740
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42676d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42676d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x426fb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
jmp 0x426fc8
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x77e
jae 0x427068
mov byte [ebp - 1], 0
mov ecx, dword [ebp - 8]
mov dl, byte [ecx + 0x4626d8]
mov byte [ebp - 2], dl
push str.UYSg6wg62ehjbx
push 0x463400
call fcn.00407c90
add esp, 8
mov dword [ebp - 0xc], eax
push 0x407fb0
mov ecx, dword [ebp - 0xc]
call fcn.00403e90
movzx ecx, byte [ebp - 2]
mov eax, dword [ebp - 8]
xor edx, edx
div dword [ebp + 8]
movzx edx, byte [edx + 0x436ac4]
xor ecx, edx
mov byte [ebp - 1], cl
mov eax, dword [ebp - 8]
mov cl, byte [eax + 0x4626d8]
mov byte [ebp - 3], cl
movzx edx, byte [ebp - 1]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x4626d8]
add ecx, edx
mov edx, dword [ebp - 8]
mov byte [edx + 0x4626d8], cl
mov al, byte [ebp - 3]
mov byte [ebp - 4], al
movzx ecx, byte [ebp - 4]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + 0x4626d8]
sub eax, ecx
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x4626d8], al
jmp 0x426fbf
mov esp, ebp
pop ebp
ret

Function at 0x427070
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
jmp 0x427088
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x2bc00
jae 0x427128
mov byte [ebp - 1], 0
mov ecx, dword [ebp - 8]
mov dl, byte [ecx + 0x436ad8]
mov byte [ebp - 2], dl
push 0x43372c
push 0x463400
call fcn.00407c90
add esp, 8
mov dword [ebp - 0xc], eax
push 0x407fb0
mov ecx, dword [ebp - 0xc]
call fcn.00403e90
movzx ecx, byte [ebp - 2]
mov eax, dword [ebp - 8]
xor edx, edx
div dword [ebp + 8]
movzx edx, byte [edx + 0x436ac4]
xor ecx, edx
mov byte [ebp - 1], cl
mov eax, dword [ebp - 8]
mov cl, byte [eax + 0x436ad8]
mov byte [ebp - 3], cl
movzx edx, byte [ebp - 1]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x436ad8]
add ecx, edx
mov edx, dword [ebp - 8]
mov byte [edx + 0x436ad8], cl
mov al, byte [ebp - 3]
mov byte [ebp - 4], al
movzx ecx, byte [ebp - 4]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + 0x436ad8]
sub eax, ecx
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x436ad8], al
jmp 0x42707f
mov esp, ebp
pop ebp
ret
Function at 0x41e810
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422dab
mov eax, dword fs:[0]
push eax
mov eax, 0x123c
call fcn.0041fd70
mov eax, dword [0x42e07c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x210]
push str.FN_CSharedMemoryChannel_GetMessage
push eax
call fcn.00401880
add esp, 8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x423484
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, edi
call fcn.0041e4b0
cmp eax, 0xfffe00ff
jne 0x41e8cc
mov ecx, edi
call fcn.0041e4b0
mov ecx, edi
call fcn.0041e4b0
mov ecx, edi
call fcn.0041e4b0
mov ecx, edi
call fcn.0041e4b0
lea edx, [eax - 1]
cmp edx, 0xffe
ja 0x41e8b2
push eax
lea eax, [ebp - 0x1210]
mov ecx, edi
push eax
call fcn.0041e540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041ecc2
mov esp, ebp
pop ebp
ret
push str.Invalid_Message_Header
lea ecx, [ebp - 0x1228]
call fcn.00402d30
lea eax, [ebp - 0x1228]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x1244]
call fcn.00401b80
push 0x42b38c
lea eax, [ebp - 0x1244]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x41f37b
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x42b2e0
call fcn.0041fa90
push 1
call fcn.0041f03d
pop ecx
test al, al
je 0x41f4d7
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0041f00b
mov byte [ebp - 0x24], al
mov eax, dword [0x43222c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x41f4d7
test eax, eax
jne 0x41f405
mov dword [0x43222c], ecx
push 0x423340
push 0x42332c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x41f3e8
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x41f4d1
push 0x423328
push 0x423314
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x43222c], 2
jmp 0x41f40a
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0041f1aa
pop ecx
call fcn.0041fc0d
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x41f43b
push esi
call fcn.0041f120
pop ecx
test al, al
je 0x41f43b
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call dword [0x423310]
call esi
call fcn.0041fc13
mov esi, eax
cmp dword [esi], edi
je 0x41f459
push esi
call fcn.0041f120
pop ecx
test al, al
je 0x41f459
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.0041f819
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_wide_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.0041f84f
test al, al
je 0x41f4de
test bl, bl
jne 0x41f487
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0041f1c7
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x41f4d1
call fcn.0041fad6
ret
push 7
call fcn.0041f6fd
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push dword [ebp - 0x20]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
int3
call fcn.0055a000
jmp 0x41f37b
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48e004]
jne 0x40100a
repz ret
jmp fcn.004019b2

Function at 0x406f48
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004046a4
and dword [ebp - 4], 0
cmp dword [0x4900f8], 0
mov ebx, eax
jne 0x406ff9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4070aa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4070aa
push eax
call fcn.00404632
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4900f8], eax
call esi
push eax
call fcn.00404632
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4900fc], eax
call esi
push eax
call fcn.00404632
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x490100], eax
call esi
push eax
call fcn.00404632
pop ecx
mov dword [0x490108], eax
test eax, eax
je 0x406ff9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404632
pop ecx
mov dword [0x490104], eax
mov eax, dword [0x490104]
cmp eax, ebx
je 0x407051
cmp dword [0x490108], ebx
je 0x407051
push eax
call fcn.004046ad
push dword [0x490108]
mov esi, eax
call fcn.004046ad
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407051
test edi, edi
je 0x407051
call esi
test eax, eax
je 0x407048
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407048
test byte [ebp - 0xc], 1
jne 0x407051
or dword [ebp + 0x10], 0x200000
jmp 0x40708a
mov eax, dword [0x4900fc]
cmp eax, ebx
je 0x40708a
push eax
call fcn.004046ad
pop ecx
test eax, eax
je 0x40708a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40708a
mov eax, dword [0x490100]
cmp eax, ebx
je 0x40708a
push eax
call fcn.004046ad
pop ecx
test eax, eax
je 0x40708a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4900f8]
call fcn.004046ad
pop ecx
test eax, eax
je 0x4070aa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4070ac
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x487650
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
cmp edi, 0x19f
jne 0x487669
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor edx, edx
test edi, edi
jle 0x4876b2
nop
lea ecx, [esp + 8]
mov dword [esp], 5
mov dword [esp + 8], 0
call fcn.00487640
mov eax, dword [esp + 8]
add eax, 0x46
mov dword [esp], eax
nop
sub dword [esp], 0x46
movsx eax, byte [edx + esi]
mov dword [esp + 4], eax
mov eax, dword [esp]
xor dword [esp + 4], eax
mov cl, byte [esp + 4]
mov byte [edx + esi], cl
inc edx
cmp edx, edi
jl 0x487670
cmp edi, 0x2d
jne 0x4876cb
mov dword [0x2b8e318], 0xa62e7790
mov dword [0x2b8e31c], 0xffffffff
add esp, 0xc
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x442008]
jne 0x40100a
repz ret
jmp fcn.00401cf1

Function at 0x40773b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402a1a
and dword [ebp - 4], 0
cmp dword [0x444008], 0
mov ebx, eax
jne 0x4077ec
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40789d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40789d
push eax
call fcn.004029a8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x444008], eax
call esi
push eax
call fcn.004029a8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44400c], eax
call esi
push eax
call fcn.004029a8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x444010], eax
call esi
push eax
call fcn.004029a8
pop ecx
mov dword [0x444018], eax
test eax, eax
je 0x4077ec
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004029a8
pop ecx
mov dword [0x444014], eax
mov eax, dword [0x444014]
cmp eax, ebx
je 0x407844
cmp dword [0x444018], ebx
je 0x407844
push eax
call fcn.00402a23
push dword [0x444018]
mov esi, eax
call fcn.00402a23
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407844
test edi, edi
je 0x407844
call esi
test eax, eax
je 0x40783b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40783b
test byte [ebp - 0xc], 1
jne 0x407844
or dword [ebp + 0x10], 0x200000
jmp 0x40787d
mov eax, dword [0x44400c]
cmp eax, ebx
je 0x40787d
push eax
call fcn.00402a23
pop ecx
test eax, eax
je 0x40787d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40787d
mov eax, dword [0x444010]
cmp eax, ebx
je 0x40787d
push eax
call fcn.00402a23
pop ecx
test eax, eax
je 0x40787d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x444008]
call fcn.00402a23
pop ecx
test eax, eax
je 0x40789d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40789f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43aa20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
cmp edi, 0x19f
jne 0x43aa39
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor edx, edx
test edi, edi
jle 0x43aa82
nop
lea ecx, [esp + 8]
mov dword [esp], 5
mov dword [esp + 8], 0
call fcn.0043aa10
mov eax, dword [esp + 8]
add eax, 0x46
mov dword [esp], eax
nop
sub dword [esp], 0x46
movsx eax, byte [edx + esi]
mov dword [esp + 4], eax
mov eax, dword [esp]
xor dword [esp + 4], eax
mov cl, byte [esp + 4]
mov byte [edx + esi], cl
inc edx
cmp edx, edi
jl 0x43aa40
cmp edi, 0x2d
jne 0x43aa9b
mov dword [0x2b42220], 0xa62e7790
mov dword [0x2b42224], 0xffffffff
add esp, 0xc
ret
Function at 0x4032d0
Capabilities:
Encrypt data using salsa20 or chacha
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x98cddc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4034a0
mov eax, dword [esp + 8]
mov dword [eax], 0x61707865
mov dword [eax + 4], 0x61707865
mov dword [eax + 8], 0x61707865
mov dword [eax + 0xc], 0x61707865
mov dword [eax + 0x10], 0x3320646e
mov dword [eax + 0x14], 0x3320646e
mov dword [eax + 0x18], 0x3320646e
mov dword [eax + 0x1c], 0x3320646e
mov dword [eax + 0x20], 0x79622d32
mov dword [eax + 0x24], 0x79622d32
mov dword [eax + 0x28], 0x79622d32
mov dword [eax + 0x2c], 0x79622d32
mov dword [eax + 0x30], 0x6b206574
mov dword [eax + 0x34], 0x6b206574
mov dword [eax + 0x38], 0x6b206574
mov dword [eax + 0x3c], 0x6b206574
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
mov dword [eax + 0x40], edx
mov dword [eax + 0x44], edx
mov dword [eax + 0x48], edx
mov dword [eax + 0x4c], edx
mov edx, dword [ecx + 4]
mov dword [eax + 0x50], edx
mov dword [eax + 0x54], edx
mov dword [eax + 0x58], edx
mov dword [eax + 0x5c], edx
mov edx, dword [ecx + 8]
mov dword [eax + 0x60], edx
mov dword [eax + 0x64], edx
mov dword [eax + 0x68], edx
mov dword [eax + 0x6c], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x70], edx
mov dword [eax + 0x74], edx
mov dword [eax + 0x78], edx
mov dword [eax + 0x7c], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x80], edx
mov dword [eax + 0x84], edx
mov dword [eax + 0x88], edx
mov dword [eax + 0x8c], edx
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x90], edx
mov dword [eax + 0x94], edx
mov dword [eax + 0x98], edx
mov dword [eax + 0x9c], edx
mov edx, dword [ecx + 0x18]
mov dword [eax + 0xa0], edx
mov dword [eax + 0xa4], edx
mov dword [eax + 0xa8], edx
mov dword [eax + 0xac], edx
mov ecx, dword [ecx + 0x1c]
mov dword [eax + 0xb0], ecx
mov dword [eax + 0xb4], ecx
mov dword [eax + 0xb8], ecx
mov dword [eax + 0xbc], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 0xc0], ecx
lea edx, [ecx + 1]
mov dword [eax + 0xc4], edx
lea edx, [ecx + 2]
mov dword [eax + 0xc8], edx
add ecx, 3
mov dword [eax + 0xcc], ecx
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0
mov dword [eax + 0xd8], 0
mov dword [eax + 0xdc], 0
mov dword [eax + 0xe0], 0
mov dword [eax + 0xe4], 0
mov dword [eax + 0xe8], 0
mov dword [eax + 0xec], 0
mov dword [eax + 0xf0], 0
mov dword [eax + 0xf4], 0
mov dword [eax + 0xf8], 0
mov dword [eax + 0xfc], 0
ret
call fcn.004706b0
jmp fcn.004032d0
Function at 0x40bcf0
Capabilities:
Decompress data using quicklz

Disassembly:
mov ecx, dword [0x98cddc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40bebb
sub esp, 0x38
mov eax, dword [esp + 0x3c]
cmp eax, 0x7000000
jle 0x40bd19
mov eax, 0x7000000
jmp 0x40bd21
test eax, eax
je 0x40be96
mov dword [esp + 0x34], eax
mov ecx, dword [0x98cddc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx + 0x448]
mov ebx, dword [ecx + 0x44c]
mov ebp, edx
shl edx, 0x11
xor edx, ebp
mov ebp, ebx
xor ebx, edx
shr edx, 7
xor edx, ebx
mov ebx, ebp
shr ebp, 0x10
xor ebp, edx
lea edx, [ebp + ebx]
shr edx, 6
inc edx
mov dword [ecx + 0x448], ebx
mov dword [ecx + 0x44c], ebp
mov dword [esp], edx
call fcn.00471a60
movsd xmm0, qword [esp + 4]
movsd qword [esp + 0x24], xmm0
mov eax, dword [esp + 0x28]
mov ecx, eax
shr ecx, 0x14
and ecx, 0x7ff
mov edx, eax
shr edx, 0xf
and edx, 0x1f
shl eax, 5
mov ebx, dword [esp + 0x24]
shr ebx, 0x1b
or ebx, eax
lea eax, [0x934880]
movsd xmm0, qword [eax + edx*8]
mov ebp, ecx
add ecx, 0xfffffc01
add edx, 1
mov esi, 0
adc esi, 0
test esi, esi
jne 0x40beae
cmp edx, 0x21
jae 0x40bea2
movsd qword [esp + 0x14], xmm0
add ebp, 0xfffffc01
mov ebp, 0xffffffff
adc ebp, 0
and ebx, 0xfffff
mov dword [esp + 0x10], ebx
movsd xmm0, qword [eax + edx*8]
movsd qword [esp + 0x1c], xmm0
mov dword [esp], ecx
mov dword [esp + 4], ebp
call fcn.004629c0
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x2c], xmm0
mov eax, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00462a90
movsd xmm0, qword [esp + 0x2c]
movsd xmm1, qword [esp + 0x14]
addsd xmm0, xmm1
movsd xmm2, qword [esp + 0x1c]
subsd xmm2, xmm1
movsd xmm1, qword [esp + 8]
mulsd xmm1, xmm2
movsd xmm2, qword [0x7a3ce8]
mulsd xmm2, xmm1
addsd xmm0, xmm2
movsd xmm1, qword [0x7a3d28]
subsd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm0, xmm1
jbe 0x40be71
xorps xmm0, xmm0
mov eax, dword [esp + 0x34]
cvtsi2sd xmm1, eax
movsd xmm2, qword [0x7a3d60]
mulsd xmm1, xmm2
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
inc eax
mov dword [esp + 0x40], eax
add esp, 0x38
ret
mov dword [esp + 0x40], 0
add esp, 0x38
ret
mov eax, edx
mov ecx, 0x21
call fcn.00471b40
mov eax, edx
mov ecx, 0x21
call fcn.00471c10
nop
call fcn.004706b0
jmp fcn.0040bcf0
Function at 0x413f60
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword [0x98cddc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x41415e
sub esp, 0x18
mov eax, dword [0x98cd00]
test eax, eax
jne 0x414147
nop
nop
lea eax, [0x98ccf0]
mov dword [esp], eax
call fcn.0040a340
mov eax, dword [0x98ccf4]
test eax, eax
je 0x413fa8
cmp dword [eax + 8], 0xcc
jne 0x41401e
mov edx, dword [0x98ccf8]
test edx, edx
jne 0x414000
mov dword [esp], 0x1000
mov dword [esp + 4], 0
lea eax, [0x991fd0]
mov dword [esp + 8], eax
call fcn.0040bed0
mov eax, dword [esp + 0xc]
mov dword [0x98ccf8], eax
mov ecx, dword [0x98ccfc]
mov dword [eax], ecx
mov eax, dword [0x98ccf8]
mov dword [0x98ccfc], eax
movzx eax, byte [0x98d440]
test al, al
jne 0x414000
xor eax, eax
jmp 0x414118
mov edx, dword [0x98ccf8]
mov ebx, dword [edx + 4]
mov dword [0x98ccf8], ebx
mov ebx, dword [0x98ccf4]
mov dword [edx + 4], ebx
mov dword [0x98ccf4], edx
mov edx, dword [0x98ccf4]
mov eax, dword [edx + 8]
cmp eax, 0xcc
jae 0x4140f7
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
lea eax, [edx + 8]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00476780
mov eax, dword [0x98d0b8]
mov ecx, dword [esp + 0x10]
lea ecx, [ecx + ecx*4]
test eax, eax
jne 0x414070
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
jmp 0x4140b0
call fcn.00471b20
mov eax, dword [esp + 0x20]
mov dword [edi], eax
mov edx, dword [esp + 0x14]
mov ebx, dword [edx + ecx*4 + 0x10]
mov dword [edi + 4], ebx
mov ebx, dword [esp + 0x28]
mov dword [edi + 8], ebx
mov ebp, dword [edx + ecx*4 + 0x1c]
mov dword [edi + 0xc], ebp
mov ebp, dword [esp + 0x2c]
mov dword [edi + 0x10], ebp
mov esi, dword [edx + ecx*4 + 0x20]
mov dword [edi + 0x14], esi
mov esi, dword [esp + 0x1c]
mov dword [edi + 0x18], esi
mov esi, dword [edx + ecx*4 + 0x14]
mov dword [edi + 0x1c], esi
mov dword [edx + ecx*4 + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [edx + ecx*4 + 0x18], eax
mov dword [edx + ecx*4 + 0x1c], ebx
mov dword [edx + ecx*4 + 0x20], ebp
mov eax, dword [esp + 0x1c]
mov dword [edx + ecx*4 + 0x14], eax
nop
nop
lea eax, [0x98ccf0]
mov dword [esp], eax
call fcn.0040a560
nop
lea eax, [0x98ccec]
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.00476900
add esp, 0x18
ret
mov ecx, 0xcc
call fcn.00471b40
lea edx, [0x92f4c8]
movzx ebx, byte [edx + eax]
lea ebp, [0x98d440]
mov byte [ebp + ecx], bl
lea eax, [ecx + 1]
cmp eax, 0x80
jge 0x414000
mov ecx, eax
mov eax, 0xcccccccd
imul ecx
add edx, ecx
sar edx, 2
lea edx, [edx + edx*4]
mov eax, ecx
sub eax, edx
cmp eax, 5
jb 0x414101
mov ecx, 5
call fcn.00471b30
lea eax, [0x7356cc]
mov dword [esp], eax
mov dword [esp + 4], 0x18
call fcn.0046b1a0
nop
call fcn.004706b0
jmp fcn.00413f60
Function at 0x418f40
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x98cddc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x418fc9
sub esp, 0x10
mov eax, dword [esp + 0x14]
test byte [eax], al
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 1
call fcn.00476630
movzx eax, byte [esp + 0xc]
test al, al
je 0x418fae
mov eax, dword [esp + 0x14]
movzx ecx, byte [eax + 6]
test cl, cl
jne 0x418fb2
mov dword [esp], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 8], ecx
call fcn.00418fe0
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call fcn.00419590
add esp, 0x10
ret
add esp, 0x10
ret
lea eax, [0x7356e4]
mov dword [esp], eax
mov dword [esp + 4], 0x18
call fcn.0046b1a0
nop
call fcn.004706b0
jmp fcn.00418f40