joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d8d4f90
Capabilities:
Parse pe header

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

Function at 0x6d8d4fb0
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 0x6d8d4ff1
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 0x6d8d4fe8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8d4ff3
add rax, 0x28
cmp rax, r9
jne 0x6d8d4fd4
xor eax, eax
ret

Function at 0x6d8d5090
Capabilities:
Enumerate pe sections

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

Function at 0x6d8d5200
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8f21f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8d5220
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8d5218
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 0x6d8d527d
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 0x6d8d5274
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8d5284
add rax, 0x28
cmp rax, r9
jne 0x6d8d5260
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8d52a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8f21f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8d530e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8d530e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8d530e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8d530e
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 0x6d8d5305
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8d5315
add rcx, 0x28
cmp rcx, rax
jne 0x6d8d52f0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8d5328
jmp 0x6d8d530e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8d5336
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8d530e
test r9d, r9d
jg 0x6d8d5320
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8d56a0
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 0x1400020b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x1400021ab
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x1400021b3
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400021ea
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x1400021c0
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x140002215
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x14000223b
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x140002220
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a350
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a395
xor al, al
jmp 0x14000a3e2
cmp word [rbx], 0
je 0x14000a3ad
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a3a0
cmp word [rsp + 0x30], 0
je 0x14000a3db
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a403
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a3c0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b620
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000f724
int3
Function at 0x14000ac90
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001f0a0
sub rsp, rax
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002dd90]
lea rsi, [0x140038dc0]
mov rdi, rcx
test r11d, r11d
jne 0x14000ad09
mov r8d, 0x1000
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
call fcn.14000a410
test al, al
je 0x14000adef
lea rcx, [rsp + 0x20]
call fcn.140013d2c
movsxd r11, dword [0x14002dd90]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002dd90], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000ad44
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ad34
add rax, 2
test ecx, ecx
jne 0x14000ad20
test edx, edx
je 0x14000ad67
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ad14
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000ad50
cmp rax, 2
jne 0x14000ad6b
cmp word [rdi + 2], 0x3a
jne 0x14000ad6b
mov al, 1
jmp 0x14000adce
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000ad98
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000ad98
mov bl, 1
jmp 0x14000ad9c
test bl, bl
je 0x14000adc3
cmp dword [0x14002dd90], 0x400
jge 0x14000adc3
mov rcx, rdi
call fcn.140013d2c
movsxd rdx, dword [0x14002dd90]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002dd90], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b620
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str._HOME_
call fcn.14000aae0
int3
Function at 0x14000af10
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002dd98]
test rcx, rcx
je 0x14000af4b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000af3e
mov rcx, qword [0x14002dd98]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002dd98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14003cdf0], 0
je 0x14000b03e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x1400288e8]
mov qword [rsp + 0x80], rsi
lea rsi, [0x1400365c0]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b01f
test al, 0x10
je 0x14000b01f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000afc5
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000bf28
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000bf72
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000bf72
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000bf72
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000bf72
cmp dword [rcx + 0x84], 0xe
jbe 0x14000bf72
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000bf74
xor al, al
add rsp, 0x28
ret

Function at 0x14000f718
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 0x14000f583
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f583
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f583
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f583
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f583
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f583
cmp dword [rcx + 0xf8], 0
je 0x14000f583
mov ecx, ebx
call fcn.14000f634
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.14000f410
nop
cmp dword [rbp + 0x20], 0
je 0x14000f5d1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f5dc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f514
Function at 0x140018b28
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140018baf
mov rsi, rbx
cmp word [rax], bp
je 0x140018b6e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140018b58
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140018b54
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016358
mov rdi, rax
test rax, rax
je 0x140018b9c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d4f0
mov rbp, rdi
xor ecx, ecx
call fcn.140015468
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001ad1c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001ad32
mov al, 1
jmp 0x14001ad92
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001ad43
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001ad90
mov ecx, dword [rcx + 0x18]
nop
call fcn.140018e70
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001ad90
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001ad90
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001ad90
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001ad92
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001efb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001efd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001efd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001230
Capabilities:
Encode data using base64

Disassembly:
push rsi
push r15
sub rsp, 0x18
xor r15d, r15d
mov rsi, r8
mov r9, rcx
mov eax, r15d
mov r11d, r15d
test edx, edx
je 0x140001388
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbp
lea ebp, [r15 + 2]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x10], r14
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov edi, edx
movzx edx, byte [r9]
mov ecx, eax
inc eax
mov dword [rsp + rcx*4], edx
mov r10d, dword [rsp + 4]
mov r8d, dword [rsp]
cmp eax, 3
jne 0x1400012f8
mov rax, qword [rsp]
mov edx, r10d
shr rax, 2
and eax, 0x3f
shr edx, 4
mov ecx, r11d
and edx, 0xf
add r11d, 4
movzx eax, byte [rax + r14]
mov byte [rcx + rsi], al
lea ecx, [rbp - 1]
mov eax, r8d
and eax, 3
shl eax, 4
add edx, eax
movzx eax, byte [rdx + r14]
mov rdx, qword [rsp + 8]
mov byte [rcx + rsi], al
and edx, 0x3f
mov ecx, dword [rsp + 8]
mov eax, r10d
and eax, 0xf
shr ecx, 6
and ecx, 3
lea eax, [rcx + rax*4]
mov ecx, ebp
movzx eax, byte [rax + r14]
mov byte [rcx + rsi], al
lea ecx, [rbp + 1]
movzx eax, byte [rdx + r14]
add ebp, 4
mov byte [rcx + rsi], al
mov eax, r15d
inc r9
mov ebx, r11d
sub rdi, 1
jne 0x140001270
mov rdi, qword [rsp + 0x40]
mov r11d, ebx
mov rbp, qword [rsp + 0x38]
test eax, eax
je 0x14000137e
cmp eax, 1
lea edx, [rbx + 1]
cmove r10d, r15d
and r8d, 3
shl r8d, 4
mov dword [rsp + 4], r10d
mov rcx, qword [rsp]
shr rcx, 2
and ecx, 0x3f
movzx ecx, byte [rcx + r14]
mov byte [rbx + rsi], cl
mov ecx, r10d
shr ecx, 4
and ecx, 0xf
add ecx, r8d
movzx ecx, byte [rcx + r14]
mov byte [rdx + rsi], cl
lea edx, [rbx + 2]
cmp eax, 2
jne 0x14000136e
and r10d, 0xf
shl r10d, 2
movzx ecx, byte [r10 + r14]
jmp 0x140001370
mov cl, 0x3d
lea eax, [rbx + 3]
mov byte [rdx + rsi], cl
mov byte [rax + rsi], 0x3d
lea r11d, [rbx + 4]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x10]
mov ecx, r11d
mov eax, r11d
mov byte [rcx + rsi], r15b
add rsp, 0x18
pop r15
pop rsi
ret
Function at 0x1400022b0
Capabilities:
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x38
mov qword [rsp + 0x70], r13
mov rsi, r8
mov r13, rcx
mov qword [rsp + 0x30], r15
mov rcx, qword [str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_5.1__InfoPath.1_]
mov r12, rdx
xor edi, edi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], edi
xor edx, edx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov ebp, edi
mov r14, rax
mov r15d, edi
test rsi, rsi
je 0x140002341
mov r9, rsi
lea r8, str.file:_s
xor edx, edx
xor ecx, ecx
call fcn.1400025d0
mov r15d, eax
lea ecx, [rax + 1]
movsxd rbx, ecx
mov rcx, rbx
call fcn.14001ce38
mov r8, rbx
xor edx, edx
mov rcx, rax
mov rbp, rax
call fcn.140017850
mov r9, rsi
lea r8, str.file:_s
mov rdx, rbx
mov rcx, rbp
call fcn.1400025d0
mov qword [rsp + 0x28], rdi
mov r9d, r15d
mov r8, rbp
mov dword [rsp + 0x20], edi
mov rdx, r13
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
lea r9, [rsp + 0x88]
mov dword [rsp + 0x78], edi
mov rsi, rax
mov dword [rsp + 0x88], 4
lea rax, [rsp + 0x80]
mov dword [rsp + 0x80], edi
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x78]
mov edx, 0x20000005
mov ebp, edi
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
mov r15, qword [rsp + 0x30]
mov r13, qword [rsp + 0x70]
test eax, eax
je 0x1400023ed
mov ebp, dword [rsp + 0x78]
lea ecx, [rbp + 1]
call fcn.14001ce38
mov r8d, dword [rsp + 0x78]
xor edx, edx
inc r8d
mov rcx, rax
mov rbx, rax
call fcn.140017850
mov r8d, dword [rsp + 0x78]
lea r9, [rsp + 0x80]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
cmovne rdi, rbx
mov rcx, rsi
mov dword [r12], ebp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rax, rdi
add rsp, 0x38
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140002420
Capabilities:
Get http content length
Read data from internet
Receive data

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov dword [rsp + 0x68], 4
mov dword [rdx], edi
lea rax, [rsp + 0x60]
mov rbx, rdx
mov dword [rsp + 0x58], edi
mov edx, 0x20000005
mov dword [rsp + 0x60], edi
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov rsi, rcx
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x1400024af
mov eax, dword [rsp + 0x58]
mov dword [rbx], eax
lea ecx, [rax + 1]
call fcn.14001ce38
mov r8d, dword [rsp + 0x58]
xor edx, edx
inc r8d
mov rcx, rax
mov rbx, rax
call fcn.140017850
mov r8d, dword [rsp + 0x58]
lea r9, [rsp + 0x60]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
cmovne rdi, rbx
mov rax, rdi
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400024c0
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rbp, r9
mov r14, r8
mov edi, edx
mov rsi, rcx
mov rcx, qword [str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_5.1__InfoPath.1_]
xor ebx, ebx
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WININET.dll_InternetOpenA]
test rax, rax
je 0x1400025a7
mov qword [rsp + 0x38], rbx
xor r9d, r9d
mov dword [rsp + 0x30], ebx
movzx r8d, di
mov dword [rsp + 0x28], 3
mov rdx, rsi
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WININET.dll_InternetConnectA]
test rax, rax
je 0x1400025a7
mov qword [rsp + 0x38], rbx
lea rcx, str.application_x_www_form_urlencoded
mov dword [rsp + 0x30], 0x80000000
xor r9d, r9d
mov qword [rsp + 0x28], rcx
mov r8, r14
mov rcx, rax
mov qword [rsp + 0x20], rbx
mov rdx, rbp
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rdi, rax
test rax, rax
je 0x1400025a7
mov r9, qword [rsp + 0x70]
mov rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp byte [r9 + rcx], bl
jne 0x140002580
mov dword [rsp + 0x20], ecx
xor r8d, r8d
mov rcx, rdi
xor edx, edx
call qword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, 1
cmove rbx, rdi
mov rax, rbx
jmp 0x1400025a9
xor eax, eax
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 0x140002630
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x120
movsxd rbp, r8d
mov r15, rdx
mov rdi, rcx
mov r9, 0xffffffffffffffff
nop dword [rax + rax]
inc r9
cmp byte [rcx + r9], 0
jne 0x140002660
xor ebx, ebx
lea rcx, [rsp + 0x20]
mov r8d, ebx
mov eax, ebx
nop word [rax + rax]
mov byte [rcx], al
lea rcx, [rcx + 1]
inc eax
cmp eax, 0x100
jl 0x140002680
mov r10d, ebx
lea r11, [rsp + 0x20]
nop word [rax + rax]
movzx esi, byte [r11]
mov eax, r10d
cdq
idiv r9d
movsxd rax, edx
movsx ecx, byte [rax + rdi]
add r8d, ecx
add r8d, esi
and r8d, 0x800000ff
jge 0x1400026ce
dec r8d
or r8d, 0xffffff00
inc r8d
movsxd rax, r8d
lea rcx, [rsp + 0x20]
add rcx, rax
inc r10d
movzx eax, byte [rcx]
mov byte [r11], al
inc r11
mov byte [rcx], sil
cmp r10d, 0x100
jl 0x1400026a0
lea rcx, [rbp + 1]
mov esi, ebx
mov r14, rbp
call fcn.14001ce38
lea r8, [r14 + 1]
xor edx, edx
mov rcx, rax
mov rbp, rax
call fcn.140017850
test r14, r14
je 0x140002789
mov r9, rbp
sub r15, rbp
nop dword [rax + rax]
inc ebx
and ebx, 0x800000ff
jge 0x140002734
dec ebx
or ebx, 0xffffff00
inc ebx
movsxd rax, ebx
lea rdx, [rsp + 0x20]
add rdx, rax
movzx r8d, byte [rdx]
add esi, r8d
and esi, 0x800000ff
jge 0x140002758
dec esi
or esi, 0xffffff00
inc esi
movsxd rax, esi
lea rcx, [rsp + 0x20]
add rcx, rax
movzx eax, byte [rcx]
mov byte [rdx], al
mov byte [rcx], r8b
movzx eax, byte [rdx]
add rax, r8
movzx eax, al
movzx ecx, byte [rsp + rax + 0x20]
xor cl, byte [r15 + r9]
mov byte [r9], cl
inc r9
sub r14, 1
jne 0x140002720
lea r11, [rsp + 0x120]
mov rax, rbp
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14000ab90
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14000ac5c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14000ac5c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14000ac75
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14000ac4c
cmp byte [rax], 0x5c
jne 0x14000ac46
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14000ac46
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14000ac32
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14000ac43
test r8b, 0x10
jne 0x14000ac46
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14000ac46
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.14000d670
test edi, edi
jne 0x14000abb0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
mov rcx, rbx
call fcn.14000bbc0
int3

Function at 0x14000dfb0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14000dfe4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14000dfd0
ret