joyce8/EMBER2024-capa huggingface dataset:
Function at 0x540000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea esi, [ebp - 0x220]
sub esp, 0x24c
mov eax, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x230], 0x104
mov dword [esp + 4], 0x104
mov dword [esp], esi
mov dword [ebp - 0x23c], eax
call eax
sub esp, 8
cmp eax, 0x104
mov ebx, eax
mov edi, dword [ebp - 0x228]
jbe 0x54010f
cmp dword [ebp - 0x22c], eax
cmovle eax, dword [ebp - 0x22c]
cmp dword [ebp - 0x230], ebx
mov dword [ebp - 0x240], eax
jge 0x5400f1
cmp ebx, 0x104
jg 0x540140
mov dword [ebp - 0x228], esi
lea esi, [ebp - 0x220]
mov dword [ebp - 0x230], 0x104
mov dword [ebp - 0x244], esi
mov eax, dword [ebp - 0x240]
mov edx, dword [ebp - 0x244]
mov dword [esp + 4], edi
mov dword [ebp - 0x22c], 0
add eax, eax
mov dword [esp], edx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x240]
cmp edi, esi
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x22c], ecx
je 0x540170
cmp edi, eax
je 0x5400f1
mov dword [esp], edi
call fcn.00564d88
mov edi, dword [ebp - 0x228]
mov dword [ebp - 0x22c], ebx
mov dword [esp + 4], ebx
mov dword [esp], edi
mov eax, dword [ebp - 0x23c]
call eax
mov edi, dword [ebp - 0x228]
sub esp, 8
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [method.QString.fromUtf16_unsigned_short_const__int_]
mov eax, dword [ebp - 0x228]
cmp eax, esi
je 0x540135
mov dword [esp], eax
call fcn.00564d88
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + ebx]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [ebp - 0x244], eax
je 0x540177
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x228], eax
jmp 0x54009d
mov edi, eax
jmp 0x5400f1
call dword [sym.imp.Qt5Core.dll_qBadAlloc__]
jmp 0x540155
Function at 0x54f350
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x7619c0]
test esi, esi
jle 0x54f460
mov edi, dword [0x7619c4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x54f384
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x54f405
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x54f370
mov dword [esp], eax
mov ebx, eax
call fcn.0054fc40
test eax, eax
mov edi, eax
je 0x54f487
mov eax, dword [0x7619c4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0054fd40
add eax, dword [edi + 0xc]
mov edx, dword [0x7619c4]
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 0x54f467
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x54f3fe
sub eax, 4
and eax, 0xfffffffb
jne 0x54f410
add dword [0x7619c0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x7619c4]
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 0x54f3fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00642ca0
lea esi, [esi]
xor esi, esi
jmp 0x54f38e
mov eax, dword [0x7619c4]
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 fcn.00642ca0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00642ca0
mov esi, esi
lea edi, [edi]

Function at 0x54f8c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x7619d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x7619d0]
sub esp, 4
test ebx, ebx
je 0x54f915
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 0x54f90e
test esi, esi
je 0x54f90e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x54f8f0
mov dword [esp], 0x7619d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x54fea0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
sub esp, 8
test eax, eax
mov dword [esp + 0x2c], eax
je 0x55002c
mov eax, dword [esp + 0x3c]
add eax, 1
lea edx, [eax*4]
cmp eax, 0x20000000
mov eax, 0xffffffff
cmovb eax, edx
mov dword [esp], eax
call fcn.0063e250
mov edx, dword [esp + 0x3c]
mov edi, eax
test edx, edx
je 0x54ffbc
xor ebx, ebx
nop
lea esi, [esi]
mov eax, dword [esp + 0x2c]
mov ebp, dword [eax + ebx*4]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [esp], eax
mov dword [esp + 0x28], eax
call fcn.0063e250
mov ecx, dword [esp + 0x28]
mov esi, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [edi + ebx*4], esi
add ebx, 1
cmp dword [esp + 0x3c], ebx
jne 0x54ff10
lea eax, [edi + ebx*4]
mov dword [eax], 0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.004e0420
mov esi, eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x550018
mov eax, dword [edi]
test eax, eax
je 0x550018
xor ebx, ebx
jmp 0x550007
mov eax, dword [edi + ebx*4]
test eax, eax
je 0x550018
mov dword [esp], eax
add ebx, 1
call fcn.0063e220
cmp dword [esp + 0x3c], ebx
jne 0x550000
mov dword [esp], edi
call fcn.0063e220
add esp, 0x4c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov esi, 0xffffffff
jmp 0x550020
Function at 0x55fdc0
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
lea ebx, [ecx - 1]
mov ecx, 0x66666667
sub esp, 0x2c
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x10], ebx
sar eax, 0x1f
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, ebx
sar ebx, 0x1f
imul ecx
mov ecx, edx
sar ecx, 2
sub ecx, ebx
mov ebx, 1
je 0x55fe13
mov ebp, 0x66666667
mov eax, ecx
sar ecx, 0x1f
add ebx, 1
imul ebp
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x55fe00
mov edx, dword [esi + 0x28]
cmp edx, 0xffffffff
je 0x55fe90
mov ecx, dword [esi + 8]
cmp ebx, edx
cmovl ebx, edx
lea edx, [ebx + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, 1
mov edx, edi
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
add ebx, 1
mov dword [esp], esi
call fcn.0055f670
mov eax, dword [esi + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
mov edx, eax
and eax, 0x20
or edx, 0x1c0
or eax, 0x45
mov dword [esi + 4], edx
mov edx, esi
call fcn.0055f240
add dword [esi + 8], ebx
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0055fab0
mov eax, dword [0x661124]
cmp eax, 0xffffffff
je 0x55fec5
test eax, eax
je 0x55feb5
mov edx, 2
mov dword [esi + 0x28], edx
jmp 0x55fe1b
mov dword [0x661124], 0
call fcn.00564f80
test al, 1
mov edx, 3
jne 0x55fe9e
jmp 0x55fea3
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x55feab
movsx eax, byte [eax]
sub eax, 0x30
cmp eax, 2
ja 0x55feab
mov dword [0x661124], 1
jmp 0x55fe9e
Function at 0x589e20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ecx + 8]
mov ebx, ecx
lea esi, [ebx + 0x2c]
sub esp, 0x2c
mov dword [ecx], method.0RIPEMD_128E.virtual_0
mov dword [ecx + 4], 0x6e0ba0
mov dword [esp], 0x40
mov ecx, edi
call fcn.0057f2d0
sub esp, 4
mov byte [ebx + 0x24], 0
mov byte [ebx + 0x25], 1
mov dword [ebx + 0x28], 8
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx], 0x6e1a0c
mov dword [ebx + 4], 0x6e1a44
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0
mov dword [esp], 1
call fcn.00478890
mov dword [ebx + 0x38], eax
mov dword [esp], 0x10
mov ecx, esi
call fcn.0057ea40
sub esp, 4
lea eax, [ebx + 0x3c]
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x40], 0
mov dword [esp], 1
mov dword [ebp - 0x1c], eax
call fcn.00478890
lea ecx, [ebx + 0x3c]
mov dword [ebx + 0x48], eax
mov dword [esp], 4
call fcn.0057ea40
sub esp, 4
lea esp, [ebp - 0xc]
mov ecx, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0040e640

Function at 0x58cbb0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ecx + 8]
mov ebx, ecx
lea esi, [ebx + 0x2c]
sub esp, 0x2c
mov dword [ecx], method.0RIPEMD_128E.virtual_0
mov dword [ecx + 4], 0x6e0ba0
mov dword [esp], 0x40
mov ecx, edi
call fcn.0057f2d0
sub esp, 4
mov byte [ebx + 0x24], 1
mov byte [ebx + 0x25], 1
mov dword [ebx + 0x28], 8
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx], 0x6e23c4
mov dword [ebx + 4], 0x6e23fc
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0
mov dword [esp], 1
call fcn.00478890
mov dword [ebx + 0x38], eax
mov dword [esp], 5
mov ecx, esi
call fcn.0057ea40
sub esp, 4
lea eax, [ebx + 0x3c]
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x40], 0
mov dword [esp], 1
mov dword [ebp - 0x1c], eax
call fcn.00478890
lea ecx, [ebx + 0x3c]
mov dword [ebx + 0x48], eax
mov dword [esp], 0x50
call fcn.0057ea40
sub esp, 4
lea esp, [ebp - 0xc]
mov ecx, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0040e820

Function at 0x58ce80
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea esi, [ecx + 8]
mov ebx, ecx
lea edi, [ebx + 0x2c]
sub esp, 0x2c
mov dword [ecx], method.0RIPEMD_128E.virtual_0
mov dword [ecx + 4], 0x6e0ba0
mov dword [esp], 0x40
mov ecx, esi
call fcn.0057f2d0
sub esp, 4
mov byte [ebx + 0x24], 1
mov byte [ebx + 0x25], 1
mov dword [ebx + 0x28], 8
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx], 0x6e2464
mov dword [ebx + 4], 0x6e249c
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0
mov dword [esp], 1
call fcn.00478890
mov dword [ebx + 0x38], eax
mov dword [esp], 8
mov ecx, edi
call fcn.0057ea40
sub esp, 4
lea esp, [ebp - 0xc]
mov ecx, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0040d930
Function at 0x58d5b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
cmp esi, 7
jbe 0x58d608
lea edx, [esi - 8]
mov ecx, dword [esp + 0x1c]
shr edx, 3
lea ebp, [edx*8 + 8]
mov edx, dword [esp + 0x18]
lea edi, [eax + ebp]
lea esi, [esi]
mov ebx, dword [edx]
xor ebx, dword [ecx]
add eax, 8
add edx, 8
add ecx, 8
mov dword [eax - 8], ebx
mov ebx, dword [edx - 4]
xor ebx, dword [ecx - 4]
mov dword [eax - 4], ebx
cmp eax, edi
jne 0x58d5e0
add dword [esp + 0x18], ebp
add dword [esp + 0x1c], ebp
and esi, 7
test esi, esi
je 0x58d636
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
add esi, edx
lea esi, [esi]
lea edi, [edi]
movzx ecx, byte [edx]
add edx, 1
add ebx, 1
xor cl, byte [ebx - 1]
add eax, 1
mov byte [eax - 1], cl
cmp edx, esi
jne 0x58d620
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x58d640
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
cmp ebx, 7
jbe 0x58d689
lea edx, [ebx - 8]
shr edx, 3
lea ebp, [edx*8 + 8]
mov edx, esi
lea edi, [eax + ebp]
mov esi, esi
lea edi, [edi]
mov ecx, dword [edx]
xor dword [eax], ecx
add edx, 8
mov ecx, dword [edx - 4]
xor dword [eax + 4], ecx
add eax, 8
cmp eax, edi
jne 0x58d670
add esi, ebp
and ebx, 7
test ebx, ebx
je 0x58d69e
xor edx, edx
nop
movzx ecx, byte [esi + edx]
xor byte [eax + edx], cl
add edx, 1
cmp edx, ebx
jne 0x58d690
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x59b790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ebp - 0x80]
mov esi, 0x6cfe9d
sub esp, 0x9c
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 1]
mov dword [ebp - 0x8c], eax
mov eax, dword [str.not_enough_space_for_format_expansion__Please_submit_full_bug_report_at_https:__gcc.gnu.org_bugs__:_n]
mov dword [ebp - 0x81], eax
mov eax, dword [0x6cff01]
mov dword [ebp - 0x1c], eax
lea eax, [edx + 0x87]
rep movsd dword es:[edi], dword [esi]
and eax, 0xfffffff0
call fcn.00559768
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x8c]
mov byte [ebx + eax + 0x67], 0
mov dword [esp], ebx
call fcn.0062fb50
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x662b90], 0
jne 0x59b87d
mov byte [0x662b90], 1
call fcn.0063e5e0
test eax, eax
je 0x59b8c1
mov ebx, dword [eax + 4]
cmp byte [ebx], 0x2a
je 0x59b8af
lea eax, [esp + 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
call fcn.00559550
mov dword [esp], 2
mov edi, eax
mov esi, dword [fcn.00564e90]
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 sub.msvcrt.dll_fwrite
cmp dword [esp + 0x1c], 0
mov dword [esp], 2
je 0x59b86d
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_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], 0x6cef91
call sub.msvcrt.dll_fwrite
cmp dword [esp + 0x1c], 0
je 0x59b8b7
call fcn.0063eac0
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x59b838
mov dword [esp], 2
call dword [0x661144]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
add ebx, 1
jmp 0x59b7c3
mov dword [esp], edi
call fcn.00564d88
jmp 0x59b868
mov dword [esp], 2
call dword [0x661144]
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 sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
sub edx, 1
mov dword [esp], eax
jne 0x59b967
call fcn.0063e450
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
mov dword [esp], 2
mov ebx, eax
call esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xb
mov dword [esp + 4], 1
mov dword [esp], str.__what__:
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sub.msvcrt.dll_fputc
call fcn.0063e640
jmp 0x59b8ee
call fcn.0063e450
call fcn.0063e640
jmp 0x59b8ee
Function at 0x642ca0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00564e90
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 sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00564e90
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
sub esp, 0x1c
mov dword [esp + 4], 0
mov dword [esp], 0x6613c4
call sub.libwinpthread_1.dll_pthread_mutex_init
mov dword [esp], 0x4a00
mov dword [0x6613d0], 0x4a00
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [0x6613cc], eax
je 0x642d58
mov dword [0x6613c8], eax
mov dword [eax], 0x4a00
mov dword [eax + 4], 0
mov dword [esp], 0x63f320
call fcn.004014c0
add esp, 0x1c
ret
mov dword [0x6613d0], 0
mov dword [0x6613c8], 0
jmp 0x642d48
Function at 0x10063f34
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 0x2c]
jne 0x10077a6a
jmp 0x10066a81
mov al, ch
mov al, 0x31
mov byte [edi - 1], 0
mov ax, 0xe712
pushfd
not ax
mov dword [esp], ebx
movzx ax, cl
mov ax, 0xbd8d
lea eax, [eax - 0x5c285a2]
lea eax, [0x10077288]
push 0xd24c8398
push 0xd2e4d8a2
mov dword [esp + 4], 0x100664b6
call fcn.10066c1e
dec edi
jno 0x10066a65
sub al, 0x42
das
lodsb al, byte [esi]
dec edi
jne 0x10066aca
pop esp
dec eax
dec eax
sbb ecx, dword [edx]
aas
push cs
lcall 0xf268, 0xbccd5db0
movsb byte es:[edi], byte [esi]
pop es
mov esp, 0xf6a41628
lodsb al, byte [esi]
loope 0x10066b57
adc eax, 0x5d736a18
jecxz 0x10066aca
sbb byte [ebp + ebp*8 + 0x3b5262cb], al
xlatb
adc dword [ecx - 0x5044db4f], eax
wait
or bh, byte [edi + 0x46]
mov ecx, dword [edx - 0x1964a622]
fcmovne st(0), st(5)
mov al, 0xf2
jl 0x10066acb
and dword [eax + 0x76], ebx
adc dword [eax], edi
mov edi, 0xc7fc49f9
movsd dword es:[edi], dword [esi]
fdiv qword [esi + 0x5080a6a0]
push esp
fmul dword [ebx - 0x90f9d50]
mov ch, 0x76
or byte [edi + 0xc0a7c41], al
sub bh, byte [ebx - 0x6d2acc37]
dec edx
sar al, cl
mov bl, 0xdf
invalid
pop ecx
aad 0xde
xor al, ah
shld ax, sp, cl
pop eax
jmp 0x10064115

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x41e520
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e6df
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov esi, ecx
cmp byte [ecx + 0x22], 0
jne 0x41e56d
push str.MarniBits::FileOut
push 0x4ad818
call fcn.0043d370
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
movsx eax, word [esi + 0x1a]
movsx ecx, word [esi + 0x1c]
imul eax, ecx
lea edi, [eax + eax*2 + 0x3a]
push edi
call fcn.0049bc10
add esp, 4
mov ebx, eax
test ebx, ebx
jne 0x41e597
push str.MarniBits::FileOut
push 0x4ad7f4
jmp 0x41e550
mov word [ebx], 0x4d42
lea ecx, [ebx + 0xe]
mov dword [ebx + 2], edi
mov word [ebx + 6], 0
mov word [ebx + 8], 0
mov dword [ebx + 0xa], 0x3a
mov dword [ecx], 0x28
movsx eax, word [esi + 0x1a]
mov dword [ecx + 4], eax
movsx edx, word [esi + 0x1c]
mov dword [ecx + 8], edx
mov word [ecx + 0xc], 1
mov word [ecx + 0xe], 0x18
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
lea ecx, [ebp - 0x34]
call fcn.0041fc20
mov eax, 8
mov ecx, 0xff
mov dword [ebp - 4], 0
mov byte [ebp - 0x25], al
mov byte [ebp - 0x26], cl
mov byte [ebp - 0x24], al
mov byte [ebp - 0x22], al
mov byte [ebp - 0x23], cl
mov byte [ebp - 0x1f], al
mov byte [ebp - 0x27], 0x10
mov ax, word [esi + 0x1a]
mov byte [ebp - 0x20], cl
mov byte [ebp - 0x21], 0
mov byte [ebp - 0x14], 0x18
mov dx, word [esi + 0x1c]
push 0
mov word [ebp - 0x1a], ax
lea ecx, [ebx + 0x3a]
mov word [ebp - 0x18], dx
push ecx
mov byte [ebp - 0x13], 0
imul ax, ax, 3
mov word [ebp - 0x16], ax
lea ecx, [ebp - 0x34]
call fcn.0041e6f0
mov byte [ebp - 0xf], 1
mov byte [ebp - 0x12], 1
push 0
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x11], 1
push 0x20
push esi
push 0
push 0
call fcn.0041d2d0
mov byte [ebp - 0x11], 0
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
mov ecx, dword [ebp + 8]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
lea eax, [ebp - 0x38]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0049bc20
mov dword [ebp - 4], 0xffffffff
add esp, 4
call fcn.0041e6d7
mov eax, 1
jmp 0x41e55a
Function at 0x434b60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x49c
lea eax, [esp + 0x308]
push 0x194
push eax
push 0
call dword [sym.imp.WINMM.dll_joyGetDevCapsA]
lea ecx, [esp + 0x378]
push str.CurrentJoystickSettings
lea edx, [esp + 0xc]
push ecx
push str.SystemCurrentControlSetControlMediaResourcesJoystick
push str._s_s_s
push edx
call fcn.0049bae0
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
add esp, 0x14
push ecx
push 0xf003f
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x434bcb
mov eax, 1
add esp, 0x49c
ret
lea eax, [esp + 0x108]
push str.OEMName
mov dword [esp + 8], 0x100
push str.JoyStick1_s
push eax
call fcn.0049bae0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x214]
lea edx, [esp + 0x114]
add esp, 0xc
push eax
push ecx
mov eax, dword [esp + 8]
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [esp]
push eax
je 0x434c2c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x49c
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x208]
push ecx
push str.Microsoft_SideWinder_game_pad
call fcn.004a6f90
add esp, 0x4a4
ret

Function at 0x434c50
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x110
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.0049bae0
lea ecx, [esp + 0x14]
add esp, 8
push 0x5c
push ecx
call fcn.0049c800
add esp, 8
test eax, eax
je 0x434c7e
mov byte [eax], 0
xor eax, eax
lea ecx, [esp]
lea edx, [esp + 0xc]
push ecx
mov dword [esp + 8], eax
push edx
mov dword [esp + 8], 0xc
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0x110
ret
Function at 0x4497d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
push str.D:horrusadata_biovfwus.bin
call fcn.00416e60
lea edi, [esp + 0x1c]
add esp, 4
xor eax, eax
mov ecx, 0x11
rep stosd dword es:[edi], eax
mov word [esp + 0x48], 5
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x44
mov dword [esp + 0x44], 1
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push str.D:horrusadata_biovfwus.bin
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x44985c
mov eax, dword [esp + 8]
push 0x2710
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
mov eax, 1
pop edi
pop esi
add esp, 0x54
ret
xor eax, eax
pop edi
pop esi
add esp, 0x54
ret