joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10047b4
Capabilities:
Create thread
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x100d3e0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.010043ff
call dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCache]
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1004904
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10047fb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0x100593c
push 0x10048f4
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerExW]
cmp eax, esi
mov dword [0x100d20c], eax
je 0x1006cab
push 1
call fcn.0100431c
cmp eax, 1
mov dword [0x100d208], eax
jne 0x10048b5
push ebx
push edi
mov ebx, str.Spooler_exiting
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
mov edi, 0x1f0003
push edi
call esi
test eax, eax
jne 0x1006cbe
push 0x10048cc
push eax
xor edi, edi
inc edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
xor esi, esi
cmp eax, esi
mov dword [0x100d200], eax
je 0x1006ced
call fcn.010039a5
cmp eax, esi
jne 0x10048c2
push edi
call fcn.0100431c
lea eax, [ebp - 8]
push eax
push esi
push dword [0x100d20c]
push 0x100423c
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x10048ba
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.01004915
cmp eax, esi
jne 0x10048c2
push 2
call fcn.0100431c
pop edi
pop ebx
pop esi
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10048a8
push esi
push eax
push edi
call fcn.01007561
jmp 0x10048b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
push esi
call fcn.01007561
jmp 0x10048b5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call fcn.0100431c
cmp eax, 1
mov dword [0x100d208], eax
jne 0x10048b3
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0
jmp 0x1004842
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10080de
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x100812a
cmp word [eax], 0
je 0x100812a
push esi
push eax
call sub.SPOOLSS.DLL_AllocSplStr
mov esi, eax
test esi, esi
je 0x1008129
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x10080bc
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1008123
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1008129
push esi
call sub.SPOOLSS.DLL_DllFreeSplStr
pop esi
pop ebp
ret 4
Function at 0x6290b970
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x62bae03c
call sym._EnterCriticalSection_4
mov ebx, dword [0x62bae034]
sub esp, 4
test ebx, ebx
je 0x6290b9bb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x6290b9b4
test esi, esi
je 0x6290b9b4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6290b990
mov dword [esp], 0x62bae03c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x6290bba0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], 0x62b27264
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x6290bbf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x6290bcc4
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x6290bc2e
cmp eax, 4
jne 0x6290bc50
test esi, esi
je 0x6290bc42
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x6290bc34
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x6290bc8f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x6290bc81
cmp ecx, 0x40
je 0x6290bc42
cmp ecx, 4
je 0x6290bc42
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.6290bba0
lea esi, [esi]
Function at 0x62913f60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x3c
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._setlocale
test eax, eax
je 0x62914034
mov dword [esp], eax
mov esi, eax
mov ebx, esp
call sym._strlen
lea edx, [eax + 1]
add eax, 0x10
shr eax, 4
shl eax, 4
call fcn.62915eb0
sub esp, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
mov dword [esp + 4], 0x62b279e8
mov dword [esp], 2
mov esi, eax
call sym._setlocale
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._strcmp
test eax, eax
je 0x62914040
mov dword [esp + 4], esi
mov dword [esp], 2
call sym._setlocale
mov eax, esi
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call sym._strchr
test eax, eax
je 0x62914030
add eax, 1
mov dword [esp], eax
call sym._atoi
mov edi, eax
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._GetCPInfo_8
sub esp, 8
test eax, eax
je 0x62914030
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x62914080
xor edi, edi
mov esp, ebx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.LC_ALL
call sym._getenv
test eax, eax
jne 0x62913ff2
mov dword [esp], str.LC_CTYPE
call sym._getenv
test eax, eax
jne 0x62913ff2
mov dword [esp], str.LANG
call sym._getenv
test eax, eax
jne 0x62913ff2
mov eax, esi
jmp 0x62913ff2
mov esp, ebx
jmp 0x62914034

Function at 0x62916b60
Capabilities:
Allocate thread local storage

Disassembly:
push esi
push ebx
sub esp, 4
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
call sym._TlsAlloc_0
cmp eax, 0xffffffff
je 0x62916b90
mov dword [esi], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
add esp, 4
pop ebx
pop esi
jmp sym.___mingwthr_key_dtor
add esp, 4
pop ebx
pop esi
jmp sym._GetLastError_0

Function at 0x62916bd0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sym._GetLastError_0
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sym._SetLastError_4
mov eax, ebx
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x62916c00
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x62916c28
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp sym._GetLastError_0

Function at 0x6291ae10
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0x62baea40], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateSemaphoreW_16
sub esp, 0x10
mov dword [0x62baea44], eax
call sym._TlsAlloc_0
cmp eax, 0xffffffff
je 0x6291ae78
mov dword [esp + 4], dbg.emutls_destroy
mov dword [esp], eax
mov dword [0x62baea3c], eax
call sym.___mingwthr_key_dtor
test eax, eax
jne sym._emutls_init.cold
add esp, 0x1c
ret
call sym._GetLastError_0
jmp 0x6291ae68
Function at 0x6291ae80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebp, dword [0x62ab8154]
mov esi, dword [esp + 0x40]
test ebp, ebp
jne 0x6291aea8
mov eax, dword [esi + 8]
test eax, eax
je 0x6291af00
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esi + 8]
test edi, edi
je 0x6291af10
mov ebx, dword [0x62baea3c]
call sym._GetLastError_0
mov dword [esp], ebx
mov ebp, eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], ebp
call sym._SetLastError_4
sub esp, 4
test ebx, ebx
je 0x6291afa0
mov ebp, dword [ebx]
cmp ebp, edi
jb 0x6291aff0
lea ebx, [ebx + edi*4]
mov eax, dword [ebx]
test eax, eax
jne 0x6291ae9c
mov eax, esi
call sym._emutls_alloc
mov dword [ebx], eax
jmp 0x6291ae9c
mov eax, esi
call sym._emutls_alloc
mov dword [esi + 8], eax
jmp 0x6291ae9c
mov edi, dword [0x62ab8154]
test edi, edi
je 0x6291b078
mov ebx, dword [0x62ab81ec]
test ebx, ebx
je 0x6291b048
mov dword [esp], 0x62baea40
call sym._InterlockedIncrement_4
sub esp, 4
test eax, eax
jne 0x6291b0bb
mov edi, dword [esi + 8]
test edi, edi
je 0x6291b083
mov eax, dword [0x62ab8154]
test eax, eax
je 0x6291aeaf
mov dword [esp], 0x62baea40
call sym._InterlockedDecrement_4
sub esp, 4
test eax, eax
js 0x6291aeaf
mov eax, dword [0x62baea44]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._ReleaseSemaphore_12
sub esp, 0xc
jmp 0x6291aeaf
lea eax, [edi + 0x21]
mov dword [esp + 4], 4
lea ebp, [edi + 0x20]
mov dword [esp], eax
call sym._calloc
mov ebx, eax
test eax, eax
je sym.___emutls_get_address.cold
mov dword [eax], ebp
mov eax, dword [0x62baea3c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
jne 0x6291aee6
call sym._GetLastError_0
jmp 0x6291aee6
lea edx, [ebp + ebp]
cmp edi, edx
jbe 0x6291affb
lea edx, [edi + 0x20]
lea eax, [edx*4 + 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 0x1c], edx
call sym.___mingw_realloc
mov ebx, eax
test eax, eax
je sym.___emutls_get_address.cold
mov edx, dword [esp + 0x1c]
mov dword [eax], edx
sub edx, ebp
lea eax, [eax + ebp*4 + 4]
shl edx, 2
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._memset
jmp 0x6291afc2
mov dword [esp], 0x62ab81f0
call sym._InterlockedIncrement_4
sub esp, 4
test eax, eax
jne 0x6291b0af
call sym._emutls_init
mov dword [0x62ab81ec], 1
mov edx, dword [0x62ab8154]
test edx, edx
jne 0x6291af2c
mov edi, dword [esi + 8]
test edi, edi
jne 0x6291aeaf
mov eax, dword [0x62baea38]
lea edi, [eax + 1]
mov dword [0x62baea38], edi
mov dword [esi + 8], edi
jmp 0x6291af4e
mov dword [esp], 0
call sym._Sleep_4
sub esp, 4
mov ecx, dword [0x62ab81ec]
test ecx, ecx
je 0x6291b0a0
jmp 0x6291b06a
mov eax, dword [0x62baea44]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
test eax, eax
je 0x6291af43
mov dword [esp], 0x62baea40
call sym._InterlockedDecrement_4
sub esp, 4
jmp 0x6291af43
Function at 0x6291fa64
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
lea ecx, [ebp - 0x48]
sub esp, 0x5c
mov ebx, eax
mov dword [esp], 0x104
call method.std::vector_char__std::allocator_char___.vector_unsigned_int__std::allocator_char__const___clone_.isra.0_
mov edi, dword [ebp - 0x48]
push ecx
mov eax, dword [esi]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x4c], eax
call sym._GetTempPathA_8
push edx
test eax, eax
push edx
je 0x6291fae8
lea esi, [eax + 1]
lea ecx, [ebp - 0x3c]
mov dword [esp], esi
call method.std::vector_char__std::allocator_char___.vector_unsigned_int__std::allocator_char__const___clone_.isra.0_
push eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._GetTempPathA_8
push ecx
test eax, eax
push ecx
je 0x6291fae0
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x30]
mov dword [esp], eax
call fcn.62a67fa0
lea ecx, [ebp - 0x3c]
push edx
call sym.std::_Vector_base_char__std::allocator_char___::_Vector_base____clone_.isra.0_
jmp 0x6291faf9
lea ecx, [ebp - 0x3c]
call sym.std::_Vector_base_char__std::allocator_char___::_Vector_base____clone_.isra.0_
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x28], 0
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], 0
mov dword [esp], eax
call sym._GetTempFileNameA_16
sub esp, 0x10
mov esi, eax
lea ecx, [ebp - 0x30]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
test esi, esi
jne 0x6291fb46
lea eax, [ebx + 8]
mov dword [ebx + 4], 0
mov dword [ebx], eax
mov byte [ebx + 8], 0
jmp 0x6291fb74
mov eax, dword [ebp - 0x48]
mov ecx, ebx
mov dword [esp], eax
call fcn.62a67fa0
push eax
jmp 0x6291fb74
lea ecx, [ebp - 0x48]
call sym.std::_Vector_base_char__std::allocator_char___::_Vector_base____clone_.isra.0_
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x629b291c
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push esi
push ebx
mov ebx, 3
sub esp, 8
fld qword [ecx + 0x10b8]
mov eax, dword [ecx + 0x10c8]
fstp qword [ecx + 0x10b0]
shl edx, 0xf
mov esi, eax
imul eax, eax, 0x343fd
shr esi, 0x10
add eax, 0x269ec3
and esi, 0x7fff
xor edx, esi
dec ebx
jne 0x629b293d
mov dword [ebp - 0xc], edx
mov dword [ecx + 0x10c8], eax
fld dword [0x62b20880]
fimul dword [ebp - 0xc]
fstp qword [ecx + 0x10b8]
pop eax
pop edx
pop ebx
pop esi
pop ebp
ret
Function at 0x629b58dc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
lea ebx, [ebp - 0x2c]
sub esp, 0x5c
mov ecx, ebx
mov edi, dword [ebp + 8]
mov dword [esp + 4], 0x6c706d73
mov dword [esp], edi
call sym.__ZNK3mpt14mpt_libopenmpt2IO10FileReader9ChunkListIN7OpenMPT9RIFFChunkENS4_6detail10FileReaderINS1_24FileCursorTraitsFileDataE
lea ecx, [esi + 0x28]
push eax
push eax
mov dword [esp], ebx
call fcn.62925efc
mov ecx, ebx
push eax
call fcn.62925ea8
mov ecx, ebx
mov dword [esp + 4], 0x74736e69
mov dword [esp], edi
call sym.__ZNK3mpt14mpt_libopenmpt2IO10FileReader9ChunkListIN7OpenMPT9RIFFChunkENS4_6detail10FileReaderINS1_24FileCursorTraitsFileDataE
lea ecx, [esi + 0x3c]
push eax
push eax
mov dword [esp], ebx
call fcn.62925efc
mov ecx, ebx
push edx
call fcn.62925ea8
mov ecx, ebx
mov dword [esp + 4], 0x20657563
mov dword [esp], edi
call sym.__ZNK3mpt14mpt_libopenmpt2IO10FileReader9ChunkListIN7OpenMPT9RIFFChunkENS4_6detail10FileReaderINS1_24FileCursorTraitsFileDataE
push ecx
push ecx
lea ecx, [esi + 0x78]
mov dword [esp], ebx
call fcn.62925efc
mov ecx, ebx
push eax
call fcn.62925ea8
lea ecx, [ebp - 0x40]
mov dword [esp + 4], 0x5453494c
mov dword [esp], edi
call sym.__ZNK3mpt14mpt_libopenmpt2IO10FileReader9ChunkListIN7OpenMPT9RIFFChunkENS4_6detail10FileReaderINS1_24FileCursorTraitsFileDataE
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 4], 4
call sym.__ZNK3mpt14mpt_libopenmpt2IO10FileCursorINS1_24FileCursorTraitsFileDataENS1_24FileCursorFilenameTraitsINS0_15BasicPathStringIN
push eax
cmp edx, 4
push eax
jne 0x629b59f8
mov dword [esp + 8], 4
mov dword [esp + 4], str.INFO
mov dword [esp], ebx
call sym._memcmp
test eax, eax
jne 0x629b59f8
mov dword [esp], 4
lea ecx, [ebp - 0x40]
call fcn.62924a9c
push eax
lea eax, [ebp - 0x40]
mov dword [esp + 4], eax
lea eax, [ebp - 0x4c]
mov dword [esp + 8], 2
mov dword [esp], eax
call sym.__ZN3mpt14mpt_libopenmpt2IO10FileReader10ReadChunksIN7OpenMPT9RIFFChunkENS4_6detail10FileReaderINS1_24FileCursorTraitsFileData
lea eax, [ebp - 0x4c]
lea ecx, [esi + 0x8c]
mov dword [esp], eax
call sym.__ZNSt6vectorIN3mpt14mpt_libopenmpt2IO10FileReader5ChunkIN7OpenMPT9RIFFChunkENS5_6detail10FileReaderINS2_24FileCursorTraitsFil
push ecx
lea ecx, [ebp - 0x4c]
call fcn.62a58b80
mov dword [esp + 4], 0x61727478
mov dword [esp], edi
mov ecx, ebx
call sym.__ZNK3mpt14mpt_libopenmpt2IO10FileReader9ChunkListIN7OpenMPT9RIFFChunkENS4_6detail10FileReaderINS1_24FileCursorTraitsFileDataE
push eax
lea ecx, [esi + 0x50]
push eax
mov dword [esp], ebx
call fcn.62925efc
mov ecx, ebx
push edx
call fcn.62925ea8
lea ecx, [ebp - 0x40]
call fcn.62925ea8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x629c5450
Capabilities:
Read file on windows

Disassembly:
push esi
push ebx
mov ebx, ecx
sub esp, 0x14
mov eax, dword [ecx + 0x20]
mov esi, dword [esp + 0x20]
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._fread
mov edx, 0xffffffff
test eax, eax
jle 0x629c5488
movzx edx, byte [esi + eax - 1]
mov dword [ebx + 0x24], edx
add esp, 0x14
pop ebx
pop esi
ret 8

Function at 0x629c54a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [ecx + 0x20]
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._fwrite
add esp, 0x1c
ret 8

Function at 0x629c6040
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x62b13dc0], 0
jne method.__gnu_cxx.__verbose_terminate_handler____clone_.cold_
mov byte [0x62b13dc0], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x62aa8662
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 edi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x30
mov dword [esp + 4], 1
mov esi, eax
lea ebp, [edi + 0x40]
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
mov dword [esp + 0xc], ebp
call sym._fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp + 4], ebp
test edx, edx
jne 0x629c6118
mov dword [esp], esi
call sym._fputs
lea eax, [edi + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x62b252e9
call sym._fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x62aa865d
mov dword [esp], esi
call sym.___mingw_aligned_free
jmp 0x62aa865d
mov dword [esp], ebx
call sym._fputs
jmp 0x629c60dc
Function at 0x629d2810
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x629d283a
cmp eax, 2
mov byte [ebp - 0x1e], 2
sete al
neg eax
mov byte [ebp - 0x1d], al
jmp 0x629d2842
mov byte [ebp - 0x1e], 0
mov byte [ebp - 0x1d], 0
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x1c]
lea esi, [eax + edi*8]
mov al, byte [ebx + 0xc]
mov dl, al
and edx, 0xfffffffe
test byte [esi + 0x164], 1
je 0x629d2861
or eax, 1
mov dl, al
mov byte [ebx + 0xc], dl
mov al, dl
and eax, 0xfffffffb
test byte [esi + 0x164], 2
je 0x629d2877
mov al, dl
or eax, 4
mov byte [ebx + 0xc], al
mov dl, al
and edx, 0xfffffffd
test byte [esi + 0x164], 4
je 0x629d288d
or eax, 2
mov dl, al
mov byte [ebx + 0xc], dl
movzx eax, byte [esi + 0x160]
cmp al, 0x10
jbe 0x629d28a2
mov eax, 0x10
jmp 0x629d28ab
cmp al, 2
jae 0x629d28ab
mov eax, 2
mov ecx, dword [ebx + 4]
mov edi, dword [ebx]
mov edx, ecx
sub edx, edi
sar edx, 2
cmp eax, edx
jbe 0x629d28ca
sub eax, edx
mov ecx, ebx
mov dword [esp], eax
call method.std::vector_OpenMPT::EnvelopeNode__std::allocator_OpenMPT::EnvelopeNode___._M_default_append_unsigned_int_
push eax
jmp 0x629d28d6
jae 0x629d28d6
lea eax, [edi + eax*4]
cmp ecx, eax
je 0x629d28d6
mov dword [ebx + 4], eax
mov al, byte [esi + 0x162]
mov edi, dword [ebx]
mov byte [ebx + 0xd], al
mov al, byte [esi + 0x163]
mov byte [ebx + 0xe], al
mov al, byte [esi + 0x161]
xor esi, esi
mov byte [ebx + 0x10], al
mov byte [ebx + 0xf], al
mov eax, dword [ebx + 4]
sub eax, edi
sar eax, 2
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
shl eax, 6
mov word [ebp - 0x1c], 0
add eax, dword [ebp - 0x24]
add eax, 4
cmp esi, dword [ebp - 0x28]
je 0x629d2957
mov dx, word [eax + 0x9c]
cmp dx, word [ebp - 0x1c]
jae 0x629d292a
mov edx, dword [ebp - 0x1c]
lea ecx, [edx + 1]
mov word [edi + esi*4], dx
mov dl, byte [ebp - 0x1d]
mov word [ebp - 0x1c], cx
xor dl, byte [eax + 0x9e]
mov cl, byte [ebp - 0x1e]
movzx edx, dl
sar edx, cl
cmp edx, 0x40
jle 0x629d2950
mov edx, 0x40
mov byte [edi + esi*4 + 2], dl
inc esi
jmp 0x629d2912
mov dword [ebp + 0xc], 0x20
mov dword [ebp + 8], 4
lea esp, [ebp - 0xc]
mov ecx, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.6299b434
Function at 0x629e4e40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push ebx
sub esp, 0x54
lea ebx, [esp + 0x40]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], ebx
lea ebx, [esp + 0x3c]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ebx
movzx ebx, byte [esp + 0x70]
mov dword [esp + 8], eax
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
mov eax, dword [ecx + 8]
mov byte [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 0x3c], 0
call sym.__ZNSt13__facet_shims11__money_getIcEESt19istreambuf_iteratorIT_St11char_traitsIS2_EESt17integral_constantIbLb1EEPKNSt6locale5
mov ecx, dword [esp + 0x3c]
test ecx, ecx
jne 0x629e4ec0
fld xword [esp + 0x40]
mov ecx, dword [esp + 0x7c]
fstp xword [ecx]
add esp, 0x54
pop ebx
pop esi
ret 0x20
mov ebx, dword [esp + 0x78]
mov dword [ebx], ecx
add esp, 0x54
pop ebx
pop esi
ret 0x20

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

Disassembly:
push esi
push ebx
sub esp, 0x54
lea ebx, [esp + 0x40]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], ebx
lea ebx, [esp + 0x3c]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ebx
movzx ebx, byte [esp + 0x70]
mov dword [esp + 8], eax
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
mov eax, dword [ecx + 8]
mov byte [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 0x3c], 0
call sym.__ZNSt13__facet_shims11__money_getIcEESt19istreambuf_iteratorIT_St11char_traitsIS2_EESt17integral_constantIbLb0EEPKNSt6locale5
mov ecx, dword [esp + 0x3c]
test ecx, ecx
jne 0x629e4f50
fld xword [esp + 0x40]
mov ecx, dword [esp + 0x7c]
fstp xword [ecx]
add esp, 0x54
pop ebx
pop esi
ret 0x20
mov ebx, dword [esp + 0x78]
mov dword [ebx], ecx
add esp, 0x54
pop ebx
pop esi
ret 0x20