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

Disassembly:
push 0xffffffffffffffff
push 0x5dbe0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov ebp, ecx
lea ecx, [esp + 0x18]
push 0x730f24
call fcn.0058c480
mov esi, dword [esp + 0x130]
mov dword [esp + 0x128], 0
cmp byte [esi], 0
je 0x59b3e3
cmp byte [esi + 0x104], 0
je 0x59b3e3
cmp byte [esi + 0x105], 0xff
je 0x59b3e3
cmp dword [esi + 0x10a], 0xffffffff
je 0x59b3e3
cmp dword [esi + 0x106], 0xffffffff
je 0x59b3e3
cmp dword [esi + 0x112], 0xffffffff
jne 0x59b3fc
push 0
push 0x1b8
push str.SourceFileSystem_r3dFileSystem.cpp
push str.fe.IsValid__
call fcn.0058a650
add esp, 0x10
mov ebx, dword [esp + 0x138]
cmp dword [esi + 0x112], ebx
je 0x59b424
push 0
push 0x1b9
push str.SourceFileSystem_r3dFileSystem.cpp
push str.fe.csize__csize
call fcn.0058a650
add esp, 0x10
movzx eax, byte [esi + 0x105]
mov edi, dword [ebp + eax*4 + 0x338]
cmp edi, 0xffffffff
jne 0x59b497
inc eax
mov ecx, ebp
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00599e70
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x59b489
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x20]
push eax
push str.cant_open__s_for_writing___d_n
call fcn.00589da0
add esp, 0xc
xor bl, bl
jmp 0x59b52f
movzx eax, byte [esi + 0x105]
mov dword [ebp + eax*4 + 0x338], edi
push 0
push 0
push dword [esi + 0x10a]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, dword [esi + 0x10a]
je 0x59b4c6
call ebp
push eax
push str.SetFilePointer_failed__d
call fcn.00589da0
add esp, 8
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 4
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x69737573
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x59b4ff
call ebp
push eax
push str.WriteFile_failed__d
call fcn.00589da0
add esp, 8
push 0
lea eax, [esp + 0x14]
push eax
push ebx
push dword [esp + 0x140]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x59b52d
push ebx
push eax
push esi
push str.failed_to_write__s__d_vs__d_n
call fcn.00589da0
add esp, 0x10
mov bl, 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x128], 0xffffffff
call fcn.0057e930
mov ecx, dword [esp + 0x120]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret 0xc
Function at 0x59b560
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5dbe28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov ebx, ecx
lea ecx, [esp + 0x24]
push 0x730f24
call fcn.0058c480
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 4]
sar eax, 2
mov dword [esp + 0x4c], 0
test eax, eax
jne 0x59b5b9
push eax
push 0xf8
push str.SourceFileSystem_r3dFileSystem.cpp
push str.IsValid__
call fcn.0058a650
add esp, 0x10
mov ebp, dword [esp + 0x54]
test ebp, ebp
jne 0x59b5d9
push ebp
push 0xf9
push str.SourceFileSystem_r3dFileSystem.cpp
push 0x65f1fc
call fcn.0058a650
add esp, 0x10
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 4]
sar eax, 2
imul edi, eax, 0x128
push 1
mov dword [esp + 0x2c], 0x31737573
mov dword [esp + 0x30], 1
mov dword [esp + 0x24], edi
lea eax, [edi + 1]
push eax
call fcn.0058c2a0
mov ecx, dword [ebx + 8]
add esp, 8
sub ecx, dword [ebx + 4]
mov esi, eax
sar ecx, 2
xor edx, edx
mov dword [esp + 0x1c], esi
test ecx, ecx
je 0x59b650
mov ebp, esi
mov esi, dword [ebx + 4]
mov edi, ebp
mov ecx, 0x4a
add ebp, 0x128
mov esi, dword [esi + edx*4]
inc edx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 4]
sar eax, 2
cmp edx, eax
jb 0x59b621
mov ebp, dword [esp + 0x54]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x13]
call fcn.0058ae10
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
push esi
lea ecx, [esp + 0x23]
call fcn.0058ae20
test eax, eax
jne 0x59b67f
push str.failed_to_compres_file_list_n
call fcn.00589da0
add esp, 4
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 4]
sar eax, 2
mov dword [esp + 0x34], eax
mov eax, dword [ebx]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
push edi
push esi
mov dword [esp + 0x48], eax
call fcn.0058b120
push ebp
push 8
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x38]
push 1
push eax
call fcn.005b1193
push ebp
push 0x14
lea eax, [esp + 0x50]
push 1
push eax
call fcn.005b1193
push ebp
push 1
push dword [esp + 0x44]
push dword [esp + 0x4c]
call fcn.005b1193
push esi
call fcn.0058c2e0
push dword [esp + 0x54]
call fcn.0058c2e0
add esp, 0x40
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.0057e930
mov ecx, dword [esp + 0x44]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x5a4560
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x224
push esi
push 0
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x5a4581
xor eax, eax
pop esi
add esp, 0x224
ret
push edi
lea eax, [esp + 8]
mov dword [esp + 8], 0x224
push eax
push esi
xor edi, edi
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x5a45db
jmp 0x5a45a0
lea eax, [esp + 0x28]
push 0x663e84
push eax
call fcn.005a2830
add esp, 8
test eax, eax
jne 0x5a45d7
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x5a45a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x224
ret
mov edi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x224
ret

Function at 0x5a6eb0
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x34
push edi
test ecx, ecx
je 0x5a84d7
mov edi, dword [ecx + 0x1c]
mov dword [esp + 0x14], edi
test edi, edi
je 0x5a84d7
cmp dword [ecx + 0xc], 0
je 0x5a84d7
cmp dword [ecx], 0
jne 0x5a6ee8
cmp dword [ecx + 4], 0
jne 0x5a84d7
cmp dword [edi], 0xb
jne 0x5a6ef3
mov dword [edi], 0xc
mov eax, dword [ecx + 0xc]
mov edx, dword [edi + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x10]
push ebx
mov ebx, dword [ecx]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
xor eax, eax
push ebp
mov ebp, dword [ecx + 4]
mov dword [esp + 0x28], eax
mov eax, dword [edi]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x38], ebp
push esi
mov esi, dword [edi + 0x3c]
cmp eax, 0x1e
ja 0x5a7858
lea ebx, [edi + 0x54]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x14]
jmp 0x5a6f40
jmp dword [eax*4 + 0x5a84e4]
pop esi
pop ebp
pop ebx
mov eax, 0xfffffffe
pop edi
add esp, 0x34
ret
mov eax, 0xfffffffe
pop edi
add esp, 0x34
ret

Function at 0x5a9030
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x5a9064
mov al, byte [ecx]
test al, al
je 0x5a9064
mov edx, 0x811c9dc5
movsx eax, al
lea ecx, [ecx + 1]
or eax, 0x20
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [ecx]
test al, al
jne 0x5a9043
xor edx, 0x2a
imul eax, edx, 0x1000193
ret
xor eax, eax
ret
Function at 0x5c3572
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6a1da0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.005bc2f2
mov dword [ebp - 0x14], eax
cmp dword [0x74ce94], esi
jne 0x5c3665
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5c35f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5c3745
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5c3745
push 0x66e2b0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5c3745
push eax
call ebx
push 0x66e2bc
push edi
mov dword [0x74ce94], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x74ce98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationA
push edi
mov dword [0x74ce9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x74cea4], eax
test eax, eax
je 0x5c3662
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x74cea0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5c368a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5c367d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x14], esi
je 0x5c369f
push 4
pop eax
jmp 0x5c3747
cmp dword [ebp - 0x14], esi
je 0x5c369f
push dword [0x74ce94]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5c3684
mov eax, dword [0x74cea0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5c36fd
cmp dword [0x74cea4], edi
je 0x5c36fd
push eax
call ebx
push dword [0x74cea4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5c36fd
test eax, eax
je 0x5c36fd
call ecx
test eax, eax
je 0x5c36f2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x5c36f2
test byte [ebp - 8], 1
jne 0x5c36fd
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5c372d
mov eax, dword [0x74ce98]
cmp eax, edi
je 0x5c372a
push eax
call ebx
test eax, eax
je 0x5c372a
call eax
mov esi, eax
test esi, esi
je 0x5c372a
mov eax, dword [0x74ce9c]
cmp eax, edi
je 0x5c372a
push eax
call ebx
test eax, eax
je 0x5c372a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x74ce94]
call ebx
test eax, eax
je 0x5c3745
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5c3747
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005af263
mov esp, ebp
pop ebp
ret
Function at 0x5c7cef
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6a1da0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.005bc2f2
mov dword [ebp - 0x14], eax
cmp dword [0x74cf04], esi
jne 0x5c7de2
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5c7d6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5c7ec2
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5c7ec2
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5c7ec2
push eax
call ebx
push 0x66e2bc
push edi
mov dword [0x74cf04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x74cf08], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x74cf0c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x74cf14], eax
test eax, eax
je 0x5c7ddf
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x74cf10], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5c7e07
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5c7dfa
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5c7e1c
push 4
pop eax
jmp 0x5c7ec4
cmp dword [ebp - 0x14], esi
je 0x5c7e1c
push dword [0x74cf04]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5c7e01
mov eax, dword [0x74cf10]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5c7e7a
cmp dword [0x74cf14], edi
je 0x5c7e7a
push eax
call ebx
push dword [0x74cf14]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5c7e7a
test eax, eax
je 0x5c7e7a
call ecx
test eax, eax
je 0x5c7e6f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x5c7e6f
test byte [ebp - 8], 1
jne 0x5c7e7a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5c7eaa
mov eax, dword [0x74cf08]
cmp eax, edi
je 0x5c7ea7
push eax
call ebx
test eax, eax
je 0x5c7ea7
call eax
mov esi, eax
test esi, esi
je 0x5c7ea7
mov eax, dword [0x74cf0c]
cmp eax, edi
je 0x5c7ea7
push eax
call ebx
test eax, eax
je 0x5c7ea7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x74cf04]
call ebx
test eax, eax
je 0x5c7ec2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5c7ec4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005af263
mov esp, ebp
pop ebp
ret
Function at 0x710c82
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x7109ec
sub ecx, eax
sub eax, 1
add eax, 1
call fcn.00710cc2
inc eax
xor dword [edi], esi
dec eax
add edi, 1
push 0x83d4f1a
pop eax
push 0xcbc60ef7
pop ecx
cmp edi, edx
jne fcn.00710c82
sub eax, 0x17c45e77
dec ecx
ret
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x6620a9
Capabilities:
Authenticate hmac

Disassembly:
mov byte [esp], 0xca
jmp 0x6adc14
neg al
mov word [esp + 4], sp
test al, 0xf3
mov word [esp + 4], 0x6a9c
mov byte [ecx], al
clc
add ecx, 1
bt si, sp
test ah, ah
call fcn.00649ce4
imul dword [ecx - 0x2b8f945c]
and esi, dword [ebp + 0xb]
shr ebp, 1
xchg esp, eax
mov fs, esp
invalid
Function at 0x401d76
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x11], 1
fld qword [0x4f6a80]
fstp qword [ebp - 0x20]
mov dword [ebp - 0x24], 0x712
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0x5bed
jg 0x401e06
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessorNumber]
call eax
mov eax, dword [ebp - 0x24]
shl eax, 2
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0x28], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym.__Z45NPTacrMdWZRZmrGfnDRmaxESMxOJDKpsntdbXzJHBGfXIPv_4
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
call eax
sub esp, 0x18
add dword [ebp - 0xc], 1
jmp 0x401da6
mov dword [ebp - 0x10], 0x29
cmp dword [ebp - 0x10], 0
jle 0x401e1a
nop
sub dword [ebp - 0x10], 1
jmp 0x401e0d
fld qword [0x4f6a88]
leave
ret 0x18
Function at 0x4416f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x54d3c0]
test esi, esi
jle 0x441800
mov edi, dword [0x54d3c4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x441724
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x4417a5
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x441710
mov dword [esp], eax
mov ebx, eax
call sym.___mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x441827
mov eax, dword [0x54d3c4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
add eax, dword [edi + 0xc]
mov edx, dword [0x54d3c4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x441807
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x44179e
sub eax, 4
and eax, 0xfffffffb
jne 0x4417b0
add dword [0x54d3c0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x54d3c4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x44179e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
xor esi, esi
jmp 0x44172e
mov eax, dword [0x54d3c4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
mov esi, esi
lea edi, [edi]

Function at 0x441c60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x54d3d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x54d3d0]
sub esp, 4
test ebx, ebx
je 0x441cb5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x441cae
test esi, esi
je 0x441cae
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x441c90
mov dword [esp], 0x54d3d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x446710
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0x54d424], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
sub esp, 0x10
mov dword [0x54d428], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x446780
mov dword [esp + 4], dbg.emutls_destroy
mov dword [esp], eax
mov dword [0x54d420], eax
call sym.___mingwthr_key_dtor
test eax, eax
jne sym._emutls_init.cold.6
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x44676a
Function at 0x454100
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x4f52fc], 0
jne 0x454226
mov byte [0x4f52fc], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x4541f4
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sym.___cxa_demangle
mov dword [esp], 2
mov esi, dword [sym.___acrt_iob_func]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sym._fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp], 2
test edx, edx
je 0x4541e4
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5044fd
call sym._fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4cea78
jmp 0x4cea70
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._fputs
jmp 0x4541aa
mov dword [esp], 2
call dword [0x4f38a0]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sym._fwrite
jmp 0x4cea6b
mov dword [esp], 2
call dword [0x4f38a0]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sym._fwrite
call sym._abort
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x4d0380
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
nop
nop
nop
Function at 0x4013fb
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
movzx ecx, byte [0x40a120]
push ecx
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x409b3c
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0
push 0
push 0
push 0
call dword [sym.imp.WINMM.dll_midiDisconnect]
mov word [ebp - 0xc], ax
mov dword [ebp - 0x20], 0
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 1
movzx edx, word [ebp - 0xc]
cmp edx, 5
jne 0x401488
call fcn.00401016
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0x10