joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180012010
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x18001204a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18001204f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180012098
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18003a5f0]
cmp byte [rcx + rax], 0
je 0x180012098
dec r8
sub rdx, 1
jne 0x18001207e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1800132a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.180012e2c
mov ebx, eax
test eax, eax
jne 0x1800132d0
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x18001332c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180013323
test al, 0x10
je 0x180013323
bt eax, 0xa
jae 0x18001331c
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.180013344
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x180013318
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x18001333c
test edi, edi
jne 0x180013323
and dword [rsp + 0x3c], 0
jmp 0x180013328
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.1800234a4
int3
Function at 0x180020c4c
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
mov eax, 0x1050
call fcn.180036ea0
sub rsp, rax
mov rax, qword [0x18004e040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18002491c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180020c9b
mov rax, rbp
jmp 0x180020da3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x595880]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18002b094
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x595880]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180020d9f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180020d9f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18002b094
test rax, rax
js 0x180020d9f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180020d9f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180020d91
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180020d91
cmp byte [rcx], 0xd
jne 0x180020d77
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180020d86
cmp byte [rcx + 1], 0xa
jne 0x180020d86
inc rcx
jmp 0x180020d86
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4e4d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180020d59
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180020da3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180010e90
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180021994
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180021a03
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180021a03
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180021a03
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180021a03
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180021a03
cmp dword [rcx + 0x84], 0xe
jbe 0x180021a03
cmp dword [rcx + 0xf8], 0
je 0x180021a03
mov ecx, ebx
call fcn.180021ab4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180021890
nop
cmp dword [rbp + 0x20], 0
je 0x180021a51
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180021a5c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180021994
Function at 0x180024b38
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180024b4e
mov al, 1
jmp 0x180024bae
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180024b5f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180024bac
mov ecx, dword [rcx + 0x18]
nop
call fcn.18002f6f4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180024bac
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180024bac
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180024bac
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180024bae
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18002a434
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x180595880]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x18002a48b
cmp word [rdx], r13w
jne 0x18002a48b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18002a490
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18002a5b5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18002a5d6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18002a4c9
mov rdx, r9
mov word [rbx], cx
jmp 0x18002a4f0
cmp r9, r8
jae 0x18002a500
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x18002a4aa
jmp 0x18002a5b5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18002a5aa
cmp dword [rsp + 0x80], esi
je 0x18002a5aa
lea r8, [0x180595880]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18002a582
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18002a552
mov word [rbx], r13w
jmp 0x18002a5b2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18002a55f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18002a5b2
cmp word [rsp + 0x70], r13w
jne 0x18002a58f
cmp rbx, r14
je 0x18002a54c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18002b09c
cmp word [rsp + 0x70], r13w
je 0x18002a5b5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x180595880]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18002a5af
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18002a5b5
Function at 0x18002d824
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18002d854
xor eax, eax
jmp 0x18002d917
mov rbp, rbx
cmp word [rax], si
je 0x18002d879
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18002d860
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18002d85c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18002d744
movsxd r14, eax
test eax, eax
jne 0x18002d8b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18002d84d
mov rcx, r14
call fcn.180027010
mov rdi, rax
test rax, rax
jne 0x18002d8d0
xor ecx, ecx
call fcn.180026fd4
jmp 0x18002d8ac
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18002d744
test eax, eax
jne 0x18002d901
mov rcx, rdi
call fcn.180026fd4
jmp 0x18002d90b
xor ecx, ecx
call fcn.180026fd4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x180031d28
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180025108
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180031dc9
cmp ebx, dword [rsp + 0x30]
je 0x180031dc2
test esi, esi
je 0x180031dc2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180031d9d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180031daa
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180031d87
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180031dae
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180031dcb
mov eax, 1
jmp 0x180031dcb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180036410
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18002b09c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18002b09c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180036560
cmp rax, 0xffffffffffffffff
je 0x180036560
xor edi, edi
test rbp, rbp
jle 0x18003650b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180026f5c
mov rbx, rax
test rax, rax
jne 0x180036498
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180036501
mov edx, 0x8000
mov ecx, r14d
call fcn.180036294
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1800290fc
cmp eax, 0xffffffff
je 0x1800364e1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800364a8
mov edx, r15d
mov ecx, r14d
call fcn.180036294
jmp 0x180036501
cmp byte [rsi + 0x38], dil
je 0x1800364f8
cmp dword [rsi + 0x34], 5
jne 0x1800364f8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180036501
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180026fd4
jmp 0x180036574
jns 0x180036574
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18002b09c
cmp rax, 0xffffffffffffffff
jne 0x18003652c
cmp byte [rsi + 0x30], dil
je 0x180036574
mov edi, dword [rsi + 0x2c]
jmp 0x180036574
mov ecx, r14d
call fcn.18002f6f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180036574
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x180036574
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18003656d
mov eax, dword [rsi + 0x2c]
jmp 0x180036572
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18002b09c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x180036f90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180036fb8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180036fb8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004e34b0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004e34c0]
mov dword [rax], 1
mov rax, qword [0x004e34d0]
mov dword [rax], 1
mov rax, qword [0x004e34a0]
mov dword [rax], 1
mov rax, qword [0x004e3360]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x004e3490]
mov dword [0x004e6008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x004e3450]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x004e3310]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x4e02f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004e6844]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4e0478
mov rax, qword [0x004e6848]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x4e033c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4e03c5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x4e0320
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x4e04ad
mov rax, qword [0x004e6848]
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 [0x004e6848]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4e0490
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4e03be
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4e0420
add dword [0x004e6844], 1
cmp edi, 8
jae 0x4e03f3
test dil, 4
jne 0x4e0464
test edi, edi
je 0x4e03e8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4e047f
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 0x4e03e8
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 0x4e040c
jmp 0x4e03e8
add rsi, qword [0x004e6848]
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 0x4e03be
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 0x4e03e8
xor esi, esi
jmp 0x4e0347
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4e03e8
mov rax, qword [0x004e6848]
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 0x4e0c00
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004e6b20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004e6b00]
test rbx, rbx
je 0x4e0c54
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 0x4e0c4b
test rsi, rsi
je 0x4e0c4b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4e0c30
lea rcx, [0x004e6b20]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4e0e90
Capabilities:
Parse pe header

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

Function at 0x4e0eb0
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 0x4e0ef1
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 0x4e0ee8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4e0ef3
add rax, 0x28
cmp rax, r9
jne 0x4e0ed4
xor eax, eax
ret

Function at 0x4e0f90
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004e3360]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4e0ffd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4e0ffd
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 0x4e0ffd
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 0x4e0ff4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4e0fff
add rax, 0x28
cmp rax, r9
jne 0x4e0fe0
xor eax, eax
add rsp, 0x28
ret

Function at 0x4e1100
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004e3360]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x4e1120
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4e1118
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 0x4e117d
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 0x4e1174
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4e1184
add rax, 0x28
cmp rax, r9
jne 0x4e1160
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x4e11a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004e3360]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x4e120e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4e120e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x4e120e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x4e120e
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 0x4e1205
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x4e1215
add rcx, 0x28
cmp rcx, rax
jne 0x4e11f0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x4e1228
jmp 0x4e120e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x4e1236
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x4e120e
test r9d, r9d
jg 0x4e1220
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x4e14f0
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 0x14000fe88
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
call fcn.140040b7c
test al, al
jne 0x14000ff61
cmp qword [rdi + 0x18], 8
jb 0x14000feb4
mov rdi, qword [rdi]
and qword [rsp + 0x30], 0
mov esi, 2
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], esi
mov rcx, rdi
lea r8d, [rsi - 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000ff61
and dword [rsp + 0x68], 0
lea r9, [rsp + 0x68]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x60]
mov eax, 0xfeff
mov r8d, esi
mov rcx, rdi
mov word [rsp + 0x60], ax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne sil
test eax, eax
je 0x14000ff53
cmp qword [rbx + 0x10], 0
jbe 0x14000ff53
mov r8d, dword [rbx + 0x10]
add r8d, r8d
cmp qword [rbx + 0x18], 8
jb 0x14000ff36
mov rbx, qword [rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne sil
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, sil
jmp 0x14000ff63
xor al, al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14001cfd8
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor al, al
mov ecx, dword [rcx + 0x7c]
cmp ecx, 0xffffffff
je 0x14001d167
cmp ecx, 0x7c
je 0x14001d167
cmp ecx, 0x29
jne 0x14001d020
cmp dword [rbx + 0x1c], 0
jne 0x14001d167
test dword [rbx + 0x80], 0x10000000
je 0x14001d180
jmp 0x14001d115
cmp ecx, 0x2e
jne 0x14001d040
lea rcx, [rbx + 0x40]
mov edx, 5
call fcn.140020984
mov rcx, rbx
call fcn.1400209dc
jmp 0x14001d155
cmp ecx, 0x5c
jne 0x14001d0a1
mov rcx, rbx
call fcn.1400209dc
test byte [rbx + 0x80], 0x80
je 0x14001d094
mov al, byte [rbx + 0x78]
cmp al, 0x62
jne 0x14001d078
mov edx, 4
lea rcx, [rbx + 0x40]
call fcn.140020984
mov rcx, rbx
call fcn.1400209dc
jmp 0x14001d15d
cmp al, 0x42
jne 0x14001d094
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.140020984
mov rax, qword [rbx + 0x48]
xor dword [rax + 0xc], 1
jmp 0x14001d06b
mov rcx, rbx
call fcn.14001d1ac
jmp 0x14001d155
cmp ecx, 0x5b
jne 0x14001d0c5
mov rcx, rbx
call fcn.1400209dc
mov rcx, rbx
call fcn.14001dac4
cmp dword [rbx + 0x7c], 0x5d
jne 0x14001d18e
jmp 0x14001d033
cmp ecx, 0x28
jne 0x14001d0e9
mov rcx, rbx
call fcn.1400209dc
mov rcx, rbx
call fcn.140021864
cmp dword [rbx + 0x7c], 0x29
mov dil, al
jne 0x14001d180
jmp 0x14001d148
cmp ecx, 0x5e
jne 0x14001d0f6
lea edx, [rcx - 0x5c]
jmp 0x14001d062
cmp ecx, 0x24
jne 0x14001d103
lea edx, [rcx - 0x21]
jmp 0x14001d062
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x14001d172
cmp ecx, 0x3f
je 0x14001d172
cmp ecx, 0x7b
je 0x14001d172
cmp ecx, 0x7d
jne 0x14001d128
test dword [rbx + 0x80], 0x10000000
je 0x14001d19c
jmp 0x14001d139
cmp ecx, 0x5d
jne 0x14001d139
test dword [rbx + 0x80], 0x10000000
je 0x14001d18e
mov dl, byte [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.14001c64c
mov dil, 1
mov rcx, rbx
call fcn.1400209dc
test dil, dil
je 0x14001d15d
mov rcx, rbx
call fcn.140020d40
mov ecx, dword [rbx + 0x7c]
mov al, 1
jmp 0x14001cfea
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 0xa
mov rcx, rbx
call fcn.14001f000
int3
mov edx, 5
mov rcx, rbx
call fcn.14001f000
int3
mov edx, 4
mov rcx, rbx
call fcn.14001f000
int3
mov edx, 6
mov rcx, rbx
call fcn.14001f000
int3