joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18008eee0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
lea esi, [rdx - 8]
mov rdi, r8
mov r14, rcx
cmp edx, esi
jbe 0x18008f0d0
mov r15d, dword [rsp + 0x98]
lea ebx, [rdx - 0x95]
mov rbp, qword [rsp + 0xa8]
lea r12, [0x180000000]
xor r13d, r13d
cmp ebx, 0x19
ja case.0x18008ef42.8
movzx eax, byte [r12 + rbx + 0x8f144]
mov ecx, dword [r12 + rax*4 + 0x8f120]
add rcx, r12
jmp rcx
mov eax, dword [r14]
cmp r15d, eax
jge case.0x18008ef42.8
sub eax, r15d
movsxd rcx, r15d
movsxd r8, eax
xor edx, edx
mov rax, qword [rdi + 0x18]
add rax, 8
shl r8, 3
lea rcx, [rax + rcx*8]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [r14]
mov dword [rdi + 0x20], eax
jmp case.0x18008ef42.8
cmp qword [0x1803581f8], r13
je 0x18008f0d0
test rdi, rdi
lea rax, str.____label_
lea rdx, [0x1803444e4]
cmovne rax, rdi
mov rcx, rax
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbp, rax
jmp case.0x18008ef42.8
mov rax, qword [rdi + 0x10]
mov ecx, dword [r14]
mov r15d, dword [rdi + 0x20]
cmp ecx, dword [rax + 0x20]
jge 0x18008efd5
mov edx, dword [rax + 0x1c]
cmp ecx, edx
jl case.0x18008ef42.8
cmp edx, dword [rax + 0x28]
jge case.0x18008ef42.8
mov qword [rsp + 0x28], r13
mov r9d, 0x121
xor r8d, r8d
mov qword [rsp + 0x20], r13
mov rdx, rdi
xor ecx, ecx
call fcn.1800134b0
test eax, eax
jne 0x18008f0d7
jmp case.0x18008ef42.8
mov qword [rsp + 0x40], r13
xor r9d, r9d
mov qword [rsp + 0x38], r13
mov r8, rdi
mov qword [rsp + 0x30], r13
xor ecx, ecx
mov qword [rsp + 0x28], r13
lea edx, [r9 + 0x57]
mov qword [rsp + 0x20], r13
call fcn.18002d7b0
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp case.0x18008ef42.8
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp case.0x18008ef42.8
test rbp, rbp
je 0x18008f0ba
mov r9, rbp
lea rcx, [0x180358200]
mov edx, 0x374
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 1
je 0x18008f0a0
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
je 0x18008f086
lea rcx, str._Z17convert_long2_satDv2_i
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x18008f0a0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.e_lorsque__2_est_pr
call fcn.1800bee00
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test eax, eax
je 0x18008f0ba
lea rcx, str.std.ctype_wchar_t_.tolower
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
inc dword [0x180358200]
dec ebx
lea eax, [rbx + 0x95]
cmp eax, esi
ja 0x18008ef25
mov eax, dword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movsd xmm0, qword [r14]
lea r9, [0x1800bef50]
mov r8, rdi
movsd qword [rsp + 0xa8], xmm0
mov edx, 0x38
lea rcx, [rsp + 0xa8]
call fcn.1800b9f80
jmp 0x18008f0d7
mov eax, r13d
jmp 0x18008f0d7
Function at 0x18009c900
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r14, qword [rsp + 0xa8]
lea r15d, [rcx - 6]
mov ebx, dword [rsp + 0x80]
mov rsi, r9
mov r13, r8
cmp ecx, r15d
jbe case.0x18009c968.4
mov rdi, qword [rsp + 0xa0]
lea ebp, [rcx - 0xe4]
mov r12, qword [rsp + 0x30]
lea rdx, [0x180000000]
cmp ebp, 0xc
ja case.0x18009c968.1
mov ecx, dword [rdx + rbp*4 + 0x9cb0c]
add rcx, rdx
jmp rcx
movsxd r9, dword [rsi]
mov rcx, qword [rdi + 0x20]
movsxd rax, dword [r14]
mov rdx, qword [rdi + 0x18]
movsxd r8, dword [rcx + r9*4]
movsxd rcx, dword [rcx + rax*4]
mov rax, qword [rdx + rax*8]
mov rdx, qword [rdx + r9*8]
shl r8, 2
lea rcx, [rax + rcx*4]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rdi + 0x20]
movsxd rax, dword [r14]
lea rdx, [rcx + rax*4]
movsxd rax, dword [rsi]
mov ecx, dword [rcx + rax*4]
add dword [rdx], ecx
mov eax, dword [rdi + 0x30]
dec eax
mov dword [r14], eax
movsxd rcx, dword [rsi]
cmp ecx, eax
je 0x18009ca2c
mov r9, qword [rdi + 0x18]
movsxd rdx, eax
mov rax, qword [rdi + 0x20]
mov rcx, qword [r9 + rcx*8]
movsxd r8, dword [rax + rdx*4]
mov rdx, qword [r9 + rdx*8]
shl r8, 2
call sub.VCRUNTIME140.dll_memcpy
movsxd rcx, dword [r14]
xor r9d, r9d
mov rdx, qword [rdi + 0x20]
cmp dword [rdx + rcx*4], r9d
jle 0x18009ca1d
xor r8d, r8d
nop word [rax + rax]
mov rax, qword [rdi + 0x18]
lea r8, [r8 + 4]
movsxd rcx, dword [r14]
inc r9d
mov rcx, qword [rax + rcx*8]
mov eax, dword [rsi]
movsxd rdx, dword [rcx + r8 - 4]
mov rcx, qword [rdi + 0x10]
mov dword [rcx + rdx*4], eax
movsxd rcx, dword [r14]
mov rdx, qword [rdi + 0x20]
cmp r9d, dword [rdx + rcx*4]
jl 0x18009c9f0
movsxd rax, ecx
movsxd rcx, dword [rsi]
mov eax, dword [rdx + rax*4]
mov dword [rdx + rcx*4], eax
mov eax, dword [r14]
mov dword [rdi + 0x30], eax
lea rdx, [0x180000000]
jmp case.0x18009c968.1
movsxd r8, dword [rsi]
mov r9, r12
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
xor ebx, ebx
lea rdx, [0x180000000]
cmp eax, dword [rsi]
sete bl
jmp case.0x18009c968.1
mov eax, dword [rsi]
mov ecx, dword [r14]
cmp eax, ecx
jge 0x18009ca6f
mov dword [rsi], ecx
mov dword [r14], eax
mov eax, dword [rsi]
movsxd rcx, eax
xor r9d, r9d
mov rax, qword [rdi + 0x20]
cmp dword [rax + rcx*4], r9d
jle case.0x18009c968.1
xor r8d, r8d
mov rax, qword [rdi + 0x18]
lea r8, [r8 + 4]
movsxd rcx, dword [rsi]
inc r9d
mov rcx, qword [rax + rcx*8]
mov eax, dword [r14]
movsxd rdx, dword [rcx + r8 - 4]
mov rcx, qword [rdi + 0x10]
mov dword [rcx + rdx*4], eax
movsxd rcx, dword [rsi]
mov rax, qword [rdi + 0x20]
cmp r9d, dword [rax + rcx*4]
jl 0x18009ca82
lea rdx, [0x180000000]
jmp case.0x18009c968.1
mov r12, rdi
dec ebp
lea eax, [rbp + 0xe4]
cmp eax, r15d
ja 0x18009c955
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [r13]
mov rdx, r14
mov r9, qword [rsp + 0x88]
mov rcx, rdi
mov r8, qword [rsi]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs_s]
jmp 0x18009cacf
Function at 0x1800a3aa0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov eax, dword [rsp + 0x58]
mov rsi, r8
imul r12d, edx, 0x3b1
mov r15d, edx
mov r14, rcx
mov ebp, edx
cmp edx, r12d
ja case.default.0x1800a3c0d
nop word [rax + rax]
mov ecx, ebp
sub ecx, 0xc5
je 0x1800a3be9
sub ecx, 0x21
je 0x1800a3b56
sub ecx, 0x13
je 0x1800a3b15
sub ecx, 0xa9bb
je case.default.0x1800a3c0d
cmp ecx, 0xe1a
je case.default.0x1800a3c0d
jmp 0x1800a3bc4
xor edi, edi
lea rbx, [r14 + 0x60]
nop dword [rax + rax]
cmp dword [rbx + 8], 0
jne 0x1800a3b44
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800a3b44
test rsi, rsi
je 0x1800a3b44
mov rdx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1800a3bdb
inc edi
add rbx, 0x18
cmp edi, 0xa
jl 0x1800a3b20
mov eax, 0xffffffff
jmp 0x1800a3bc4
mov eax, dword [r14]
movzx ecx, word [r14 + 2]
shl eax, 0x10
or ecx, eax
mov edx, ecx
mov eax, ecx
shr edx, 8
shl eax, 8
xor edx, eax
shl ecx, 8
and edx, 0xff00ff
xor edx, ecx
mov ecx, edx
mov eax, edx
shl eax, 4
shl edx, 4
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
xor ecx, edx
mov edx, ecx
shr edx, 2
lea eax, [rcx*4]
xor edx, eax
lea eax, [rcx*4]
and edx, 0x33333333
xor edx, eax
mov eax, edx
mov dword [r14], edx
shr eax, 1
lea ecx, [rdx + rdx]
xor eax, ecx
lea ecx, [rdx + rdx]
and eax, 0x55555555
xor eax, ecx
imul ecx, r15d, 0xbd
add ebp, ecx
cmp ebp, r12d
jbe 0x1800a3ae0
jmp case.default.0x1800a3c0d
lea rcx, [rdi + rdi*2]
mov eax, dword [r14 + rcx*8 + 0x70]
jmp case.default.0x1800a3c0d
mov eax, dword [r14]
lea ecx, [rax - 0x61]
cmp ecx, 0x19
ja case.default.0x1800a3c0d
lea r8, [0x180000000]
movsxd rcx, ecx
mov edx, dword [r8 + rcx*4 + 0xa3cf0]
add rdx, r8
jmp rdx
mov eax, 0x41
jmp case.default.0x1800a3c0d
mov eax, 0x42
jmp case.default.0x1800a3c0d
mov eax, 0x43
jmp case.default.0x1800a3c0d
mov eax, 0x44
jmp case.default.0x1800a3c0d
mov eax, 0x45
jmp case.default.0x1800a3c0d
mov eax, 0x46
jmp case.default.0x1800a3c0d
mov eax, PathYetAnotherMakeUniqueName
jmp case.default.0x1800a3c0d
mov eax, PathYetAnotherMakeUniqueName
jmp case.default.0x1800a3c0d
mov eax, PathYetAnotherMakeUniqueName
jmp case.default.0x1800a3c0d
mov eax, PathYetAnotherMakeUniqueName
jmp case.default.0x1800a3c0d
mov eax, reloc.SHELL32.dll_PathYetAnotherMakeUniqueName
jmp case.default.0x1800a3c0d
mov eax, 0x4c
jmp case.default.0x1800a3c0d
mov eax, 0x4d
jmp case.default.0x1800a3c0d
mov eax, 0x4e
jmp case.default.0x1800a3c0d
mov eax, 0x4f
jmp case.default.0x1800a3c0d
mov eax, 0x50
jmp case.default.0x1800a3c0d
mov eax, 0x51
jmp case.default.0x1800a3c0d
mov eax, 0x52
jmp case.default.0x1800a3c0d
mov eax, 0x53
jmp case.default.0x1800a3c0d
mov eax, 0x54
jmp case.default.0x1800a3c0d
mov eax, 0x55
jmp case.default.0x1800a3c0d
mov eax, 0x56
jmp case.default.0x1800a3c0d
mov eax, 0x57
jmp case.default.0x1800a3c0d
mov eax, 0x58
jmp case.default.0x1800a3c0d
mov eax, 0x59
jmp case.default.0x1800a3c0d
mov eax, 0x5a
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140001000
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x20
mov ecx, 2
lea rbx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, qword [rsp + 0x30]
mov r8, rbx
mov rcx, rax
call fcn.140001830
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140001880
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x140007038]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor esi, esi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x250]
mov dword [rsp + 0x250], esi
mov dword [rsp + 0x40], esi
mov rbx, rcx
call qword [sym.imp.cares.dll_ares_fds]
mov edi, eax
test eax, eax
je 0x14000193e
nop dword [rax]
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.cares.dll_ares_timeout]
xor r9d, r9d
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x250]
mov qword [rsp + 0x20], rax
mov ecx, edi
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x140001917
lea r8, [rsp + 0x40]
mov rcx, rbx
lea rdx, [rsp + 0x250]
call qword [sym.imp.cares.dll_ares_process]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x250], esi
lea rdx, [rsp + 0x250]
mov dword [rsp + 0x40], esi
mov rcx, rbx
call qword [sym.imp.cares.dll_ares_fds]
mov edi, eax
test eax, eax
jne 0x1400018d0
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140001c40
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x10007510
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x10015150], rbx
je 0x10007566
cmp rax, rbx
jne 0x10007559
mov edi, 1
jmp 0x10007566
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10007540
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x1000757b
lea ecx, [rax + 0x1e]
call fcn.10192000
jmp 0x100075ba
mov eax, dword [0x10015148]
test eax, eax
jne 0x100075b0
mov dword [0x10015148], 1
lea rdx, [0x100014d0]
lea rcx, [0x100014b8]
call sub.MSVCR80.dll__initterm_e
test eax, eax
je 0x100075ba
mov eax, 0xff
jmp 0x10007714
mov dword [0x10014314], 1
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x100075e2
lea rdx, [0x100014b0]
lea rcx, [0x10001470]
call sub.MSVCR80.dll__initterm
mov dword [0x10015148], 2
test edi, edi
jne 0x100075ef
xor eax, eax
xchg qword [0x10015150], rax
cmp qword [0x10015168], 0
je 0x10007618
lea rcx, [0x10015168]
call fcn.10007b90
test eax, eax
je 0x10007618
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x10015168]
mov rax, qword [sym.imp.MSVCR80.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
nop
nop
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x100076aa
test cl, cl
je 0x10007640
test edi, edi
jne 0x100076aa
movzx eax, byte [rbx]
test al, al
je 0x10007656
cmp al, 0x20
ja 0x10007656
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007640
test byte [rsp + 0x6c], 1
je 0x10007665
movzx r9d, word [rsp + 0x70]
jmp 0x1000766b
mov r9d, 0xa
mov r8, rbx
xor edx, edx
lea rcx, [0x10000000]
call fcn.10005300
mov dword [0x10014310], eax
cmp dword [0x100142f4], 0
jne 0x10007693
mov ecx, eax
call qword [sym.imp.MSVCR80.dll_exit]
cmp dword [0x10014314], 0
jne 0x100076a8
call qword [sym.imp.MSVCR80.dll__cexit]
mov eax, dword [0x10014310]
jmp 0x1000770d
cmp cl, 0x22
jne 0x100076bc
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, cl
call qword [sym.imp.MSVCR80.dll__ismbblead]
test eax, eax
je 0x100076d2
add rbx, 1
mov qword [rsp + 0x28], rbx
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007630
jmp 0x10007714
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
sub rsp, 0x28
call fcn.10007c10
add rsp, 0x28
jmp 0x10007510
Function at 0x140002f74
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002fbe
mov ecx, _invalid_parameter_noinfo_noreturn
cmp word [rax], cx
jne 0x140002fbe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002fbe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002fbe
cmp dword [rcx + 0x84], 0xe
jbe 0x140002fbe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002fc0
xor al, al
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000aa60]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000aa70]
mov dword [rax], 1
mov rax, qword [0x14000aa80]
mov dword [rax], 1
mov rax, qword [0x14000aa00]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000aa50]
mov dword [0x14000e020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000ab30]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000ab10]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000a9b0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x14000174d
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov dword [rbp - 4], 0
lea rax, str.DRIVER_IFID
mov rcx, rax
call sym.getenv
test rax, rax
je 0x140001791
lea rax, str.DRIVER_IFID
mov rcx, rax
call sym.getenv
mov rcx, rax
call sym.atoi
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
cmp eax, dword [rbp + 0x10]
je 0x1400017a0
mov eax, 0
jmp 0x14000180f
mov rax, qword [0x14000e040]
mov rdx, qword [rbp + 0x18]
lea rcx, [rbp - 0xc]
mov qword [rsp + 0x28], rcx
lea rcx, [0x14000e048]
mov qword [rsp + 0x20], rcx
mov r9d, 1
mov r8d, 1
mov rcx, rax
call sym.SCardConnectA
mov dword [rbp - 8], eax
cmp dword [rbp - 8], 0
je 0x14000180a
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
mov eax, dword [rbp - 8]
mov r8d, eax
lea rax, str.SCardConnect___failed:__08X_n
mov rdx, rax
call sym.fprintf
mov eax, 0xffffffff
jmp 0x14000180f
mov eax, 1
add rsp, 0x40
pop rbp
ret
Function at 0x1400025f0
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 dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140002660
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e0d4]
mov rbx, rcx
test esi, esi
jle 0x140002790
mov rax, qword [0x14000e0d8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400026ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002735
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002690
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400027b2
mov rax, qword [0x14000e0d8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000e0d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002797
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000272e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002740
add dword [0x14000e0d4], 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 [0x14000e0d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000272e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400026b8
mov rax, qword [0x14000e0d8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002d20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000e140]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e120]
test rbx, rbx
je 0x140002d7c
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 0x140002d73
test rsi, rsi
je 0x140002d73
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002d58
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002f90
Capabilities:
Parse pe header

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

Function at 0x140002fc0
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 0x14000300d
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 0x140003004
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000300f
add rax, 0x28
cmp rax, r9
jne 0x140002ff0
xor eax, eax
ret

Function at 0x140003010
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400030a0
mov rdx, qword [0x14000aa00]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000308e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000308e
cmp word [rax + 0x18], 0x20b
jne 0x14000308e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400030a0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140003079
add rbx, 0x28
cmp rbx, rdi
je 0x1400030a0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140003070
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400030b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000aa00]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400030d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400030d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400030d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000312d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003124
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400030d0
add rax, 0x28
cmp rax, r9
jne 0x140003110
xor eax, eax
ret

Function at 0x140003130
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000aa00]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000314f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003158
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000314f
movzx ecx, word [rax + 6]
mov eax, ecx
ret