joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cc60c
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.1400c2230
sub rsp, rax
mov rax, qword [0x14014d130]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400e06fc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400cc65b
mov rax, rbp
jmp 0x1400cc763
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, sym.MZ_HSbQFKZ_X_l5C:M_FKs_0_VnRN9I_
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x1bcb30]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400e0b9c
mov r13, rax
lea rax, sym.MZ_HSbQFKZ_X_l5C:M_FKs_0_VnRN9I_
mov rcx, qword [rax + rbx*8 + 0x1bcb30]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400cc75f
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 0x1400cc75f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400e0b9c
test rax, rax
js 0x1400cc75f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400cc75f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400cc751
lea r8, sym.MZ_HSbQFKZ_X_l5C:M_FKs_0_VnRN9I_
cmp rcx, rdx
jae 0x1400cc751
cmp byte [rcx], 0xd
jne 0x1400cc737
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400cc746
cmp byte [rcx + 1], 0xa
jne 0x1400cc746
inc rcx
jmp 0x1400cc746
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x14d550]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400cc719
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400cc763
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400c1500
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 0x1400e0c48
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, [0x1401bcb30]
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 0x1400e0c9f
cmp word [rdx], r13w
jne 0x1400e0c9f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400e0ca4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400e0dc9
mov r11d, SafeArrayGetDim
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400e0dea
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400e0cdd
mov rdx, r9
mov word [rbx], cx
jmp 0x1400e0d04
cmp r9, r8
jae 0x1400e0d14
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 0x1400e0cbe
jmp 0x1400e0dc9
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 0x1400e0dbe
cmp dword [rsp + 0x80], esi
je 0x1400e0dbe
lea r8, [0x1401bcb30]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400e0d96
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400e0d66
mov word [rbx], r13w
jmp 0x1400e0dc6
mov ecx, SafeArrayGetDim
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 0x1400e0d73
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400e0dc6
cmp word [rsp + 0x70], r13w
jne 0x1400e0da3
cmp rbx, r14
je 0x1400e0d60
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400e0ba4
cmp word [rsp + 0x70], r13w
je 0x1400e0dc9
mov ecx, SafeArrayGetDim
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, [0x1401bcb30]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400e0dc3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400e0dc9
Function at 0x1400e37c0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400e37d6
mov al, 1
jmp 0x1400e3836
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400e37e7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400e3834
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400e9eb8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400e3834
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400e3834
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400e3834
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400e3836
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400e8cac
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 0x1400e8cdc
xor eax, eax
jmp 0x1400e8d9f
mov rbp, rbx
cmp word [rax], si
je 0x1400e8d01
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400e8ce8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400e8ce4
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.1400e6e68
movsxd r14, eax
test eax, eax
jne 0x1400e8d3f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400e8cd5
mov rcx, r14
call fcn.1400df3fc
mov rdi, rax
test rax, rax
jne 0x1400e8d58
xor ecx, ecx
call fcn.1400ddc04
jmp 0x1400e8d34
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.1400e6e68
test eax, eax
jne 0x1400e8d89
mov rcx, rdi
call fcn.1400ddc04
jmp 0x1400e8d93
xor ecx, ecx
call fcn.1400ddc04
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 0x1400e8dbc
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 0x1400e8e43
mov rsi, rbx
cmp word [rax], bp
je 0x1400e8e02
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400e8dec
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400e8de8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400df3fc
mov rdi, rax
test rax, rax
je 0x1400e8e30
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400c3bb0
mov rbp, rdi
xor ecx, ecx
call fcn.1400ddc04
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 0x1400ec40c
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.1400ddfb8
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 0x1400ec4ad
cmp ebx, dword [rsp + 0x30]
je 0x1400ec4a6
test esi, esi
je 0x1400ec4a6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400ec481
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400ec48e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400ec46b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400ec492
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400ec4af
mov eax, 1
jmp 0x1400ec4af
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400f069c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400ccb24
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400f0726
cmp byte [rbp - 0x21], r15b
je 0x1400f0721
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400f075c
call fcn.1400de6b0
test eax, eax
jne 0x1400f0748
cmp byte [rbp - 0x21], r15b
je 0x1400f0740
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400f075c
cmp byte [rbp - 0x21], r15b
je 0x1400f0759
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400d81b8
test eax, eax
jne 0x1400f07fc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400ccb24
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400f079b
cmp byte [rbp - 0x21], r15b
je 0x1400f07d0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400f07d0
call fcn.1400de6b0
test eax, eax
jne 0x1400f07bc
cmp byte [rbp - 0x21], r15b
je 0x1400f07b5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400f07d0
cmp byte [rbp - 0x21], r15b
je 0x1400f07cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400d81b8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400f07fc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400f07ff
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400f080d
mov rcx, rdi
call fcn.1400ddc04
cmp byte [rbp + 0x3f], r15b
je 0x1400f081c
mov rcx, qword [rbp + 0x27]
call fcn.1400ddc04
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400f144c
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.1400e0ba4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400e0ba4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400f159c
cmp rax, 0xffffffffffffffff
je 0x1400f159c
xor edi, edi
test rbp, rbp
jle 0x1400f1547
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400de318
mov rbx, rax
test rax, rax
jne 0x1400f14d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400f153d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400dc0e4
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.1400e33c0
cmp eax, 0xffffffff
je 0x1400f151d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400f14e4
mov edx, r15d
mov ecx, r14d
call fcn.1400dc0e4
jmp 0x1400f153d
cmp byte [rsi + 0x38], dil
je 0x1400f1534
cmp dword [rsi + 0x34], 5
jne 0x1400f1534
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetLBound
cmp byte [rsi + 0x30], dil
je 0x1400f153d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400ddc04
jmp 0x1400f15b0
jns 0x1400f15b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400e0ba4
cmp rax, 0xffffffffffffffff
jne 0x1400f1568
cmp byte [rsi + 0x30], dil
je 0x1400f15b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400f15b0
mov ecx, r14d
call fcn.1400e9eb8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400f15b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayGetDim
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetLBound
jmp 0x1400f15b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400f15a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400f15ae
mov eax, SafeArrayPutElement
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400e0ba4
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 0x401ad5
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x401af6
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp fcn.00412c88

Function at 0x404af1
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x48
mov byte [rsp + 0x3f], 1
mov al, byte [rsp + 0x3f]
mov r13, rcx
mov qword [rsp + 0x28], rdx
test al, al
je 0x404b41
mov ecx, 2
call qword [fcn.00413280]
mov r8, qword [rsp + 0x28]
mov rcx, r13
mov edx, 1
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x48
pop r12
pop r13
jmp fcn.00412c88
add rsp, 0x48
pop r12
pop r13
ret

Function at 0x4050eb
Capabilities:
Read file on windows

Disassembly:
push r13
push rbx
sub rsp, 0x38
mov r13, rcx
mov rcx, rdx
mov edx, 1
mov rbx, r8
mov r9, r13
call sub.msvcrt.dll_fread
cmp rbx, rax
je 0x40511f
mov rcx, r13
mov qword [rsp + 0x28], rax
call fcn.00405022
mov rax, qword [rsp + 0x28]
add rsp, 0x38
pop rbx
pop r13
ret

Function at 0x405bec
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
mov edx, 0x30
mov r13, rcx
lea rcx, [0x00435e80]
call fcn.00403af4
mov ecx, 0xf
mov r12, rax
lea rax, [0x00435e40]
mov qword [r12], rax
lea rax, str.KeyError
mov qword [r12 + 0x10], rax
test r13, r13
je 0x405b8a
mov rax, qword [r13]
lea rcx, [rax + 0xf]
call fcn.00403d49
lea rdx, [0x0041ace0]
mov r9, rax
mov rcx, rax
call fcn.00401e8b
mov rcx, r9
mov rdx, r13
call fcn.00401eb1
mov rdx, r9
lea rcx, [r12 + 0x18]
call fcn.00402f2a
lea rcx, [r12 + 8]
xor edx, edx
call fcn.00402f2a
lea r9, str.tables.nim
lea r8, str.raiseKeyError
mov rcx, r12
mov qword [rsp + 0x20], 0xea
lea rdx, str.KeyError
call fcn.00404e94
nop
push r13
push r12
push rbx
sub rsp, 0x30
mov r9, rcx
mov rcx, rdx
mov edx, 1
mov rbx, r8
mov r13, qword [r9 + 0x58]
mov r9, r13
call sub.msvcrt.dll_fwrite
mov rcx, r13
mov r12, rax
call fcn.00405022
movsxd r12, r12d
cmp rbx, r12
je 0x405c97
mov edx, 0x30
lea rcx, [0x0042f0c0]
call fcn.00403af4
lea rcx, [0x0041ac00]
mov r12, rax
lea rax, [0x0042f080]
mov qword [r12], rax
lea rax, [0x00419186]
mov r13, qword [r12 + 0x18]
mov qword [r12 + 0x10], rax
call fcn.00403ce2
mov qword [r12 + 0x18], rax
test r13, r13
je 0x405c70
mov rcx, r13
call fcn.00402f7f
mov qword [rsp + 0x20], 0x528
lea r9, str.streams.nim
mov rcx, r12
lea r8, str.fsWriteData
lea rdx, [0x00419186]
call fcn.00404e94
nop
add rsp, 0x30
pop rbx
pop r12
pop r13
ret
Function at 0x40b885
Capabilities:
Hash data using murmur3

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov rsi, rdx
xor ecx, ecx
test rdx, rdx
je 0x40b89f
mov rcx, qword [rdx]
mov rax, rcx
mov r9d, 4
xor ebx, ebx
cqo
idiv r9
xor r9d, r9d
shl rax, 2
cmp rax, r9
jg 0x40b8de
cmp rax, 0xfffffffffffffffd
mov r9d, 0
mov r10d, 4
cmovge r9, rax
mov rax, rcx
cqo
idiv r10
add r9, rsi
xor eax, eax
jmp 0x40b915
mov edx, dword [rsi + r9 + 0x10]
add r9, 4
imul edx, edx, 0xcc9e2d51
rol edx, 0xf
imul edx, edx, 0x1b873593
xor edx, ebx
rol edx, 0xd
lea edx, [rdx + rdx*4]
lea ebx, [rdx - 0x19ab949c]
jmp 0x40b8b6
dec rdx
shl eax, 8
movzx r10d, byte [r9 + rdx + 0x10]
or eax, r10d
test rdx, rdx
jg 0x40b906
imul eax, eax, 0xcc9e2d51
xor ebx, ecx
mov edx, ebx
rol eax, 0xf
imul ebx, eax, 0x1b873593
xor ebx, edx
mov eax, ebx
shr eax, 0x10
xor ebx, eax
imul ebx, ebx, 0x85ebca6b
mov eax, ebx
shr eax, 0xd
xor ebx, eax
imul ebx, ebx, 0xc2b2ae35
mov eax, ebx
shr eax, 0x10
xor ebx, eax
test rbx, rbx
jne 0x40b95a
mov ebx, 0x12b9b0a1
mov qword [r8], rbx
or r12, 0xffffffffffffffff
test rdi, rdi
je 0x40b9a6
mov rbp, qword [rdi]
test rbp, rbp
je 0x40b9a6
dec rbp
mov r12, rbx
and r12, rbp
imul rax, r12, 0x18
add rax, rdi
mov rdx, qword [rax + 0x10]
test rdx, rdx
jne 0x40b98c
not r12
jmp 0x40b9a6
cmp rbx, rdx
jne 0x40b9a1
mov rcx, qword [rax + 0x18]
mov rdx, rsi
call fcn.00408584
test al, al
jne 0x40b9a6
inc r12
jmp 0x40b974
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x40ca78
Capabilities:
Check for software breakpoints

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rdx]
mov r12, rcx
mov r15, rdx
mov esi, r8d
mov r14, r9
test rax, rax
je 0x40caa0
cmp qword [rax], 0
jne 0x40cb1c
mov rcx, qword [0x0041c6f0]
mov edx, 0x30
call fcn.00403af4
lea rcx, [0x0041be80]
mov r13, rax
mov rax, qword [0x0041c770]
mov rbx, qword [r13 + 0x18]
mov qword [r13], rax
lea rax, str.ValueError
mov qword [r13 + 0x10], rax
call fcn.00403ce2
mov qword [r13 + 0x18], rax
test rbx, rbx
je 0x40caeb
mov rcx, rbx
call fcn.00402f7f
lea rcx, [r13 + 8]
xor edx, edx
call fcn.00402f2a
lea r9, str.httpclient.nim
lea r8, str.requestAux
mov rcx, r13
mov qword [rsp + 0x20], 0x3eb
lea rdx, str.ValueError
call fcn.00404e94
mov rdx, r15
mov rcx, r12
call fcn.0040a23d
mov rcx, qword [r12 + 0x58]
call fcn.0040c0bd
lea rdx, [0x0041be60]
mov rcx, rax
mov rbx, rax
call fcn.004087fc
test al, al
jne 0x40cb84
test r14, r14
je 0x40cb54
mov rcx, qword [r14]
test rcx, rcx
jne 0x40cb6d
mov ecx, esi
mov eax, 3
and ecx, 0xf
sar eax, cl
test al, 1
jne 0x40cb84
lea r8, [0x0041be40]
jmp 0x40cb75
call fcn.00404400
mov r8, rax
lea rdx, [0x0041be60]
mov rcx, rbx
call fcn.00408f54
lea rdx, [0x0041be20]
mov rcx, rbx
call fcn.004087fc
test al, al
jne 0x40cba7
mov r8, qword [r12 + 0x68]
test r8, r8
je 0x40cba7
cmp qword [r8], 0
jg 0x40cc0f
mov r9, qword [r12 + 0x78]
movzx edx, sil
mov rcx, r15
mov r8, rbx
call fcn.00408fbc
mov rcx, qword [r12]
mov rdx, rax
call fcn.0040c108
test r14, r14
je 0x40cbde
cmp qword [r14], 0
jle 0x40cbde
mov rcx, qword [r12]
mov rdx, r14
call fcn.0040c108
mov ecx, esi
mov eax, 0x81
xor edx, edx
and ecx, 0xf
sar eax, cl
test al, 1
jne 0x40cbf9
movzx edx, byte [r12 + 0xc0]
mov rcx, r12
add rsp, 0x38
pop rbx
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.00409965
lea rdx, [0x0041be00]
mov rcx, rbx
call fcn.00408f54
jmp 0x40cba7

Function at 0x40d0b0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 fcn.00413280
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.00413280
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x40d120
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x00436454]
mov r12, rcx
test ebx, ebx
jle 0x40d250
mov rax, qword [0x00436458]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x40d16c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x40d1f3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x40d150
mov rcx, r12
call fcn.0040dad0
mov rsi, rax
test rax, rax
je 0x40d272
mov rax, qword [0x00436458]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.0040dc00
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00436458]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40d257
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x40d1ec
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x40d200
add dword [0x00436454], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x00436458]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40d1ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0040d0b0
nop dword [rax]
xor ebx, ebx
jmp 0x40d177
mov rax, qword [0x00436458]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.0040d0b0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.0040d0b0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x40d740
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004364c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004364a0]
test rbx, rbx
je 0x40d794
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x40d78b
test r12, r12
je 0x40d78b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40d770
lea rcx, [0x004364c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

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

Disassembly:
mov rdx, qword [0x0041c7f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x40daf0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x40daf8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x40daf0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x40db45
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x40db3c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40daf0
add rax, 0x28
cmp rax, r9
jne 0x40db28
xor eax, eax
ret
Function at 0x40db50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x0041c7f0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x40db70
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x40db78
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x40db70
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x40dc00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x0041c7f0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x40dc20
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x40dc28
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret