joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406150
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x70], 0
jne 0x40616d
xor eax, eax
jmp 0x406274
mov rax, qword [rsp + 0x70]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0
jmp 0x4061d7
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jae 0x406272
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
call fcn.0040635c
movzx eax, al
test eax, eax
je 0x40626d
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
jmp 0x406274
jmp 0x4061cd
xor eax, eax
add rsp, 0x68
ret
Function at 0x4064b8
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
mov ecx, dword [0x0043f721]
xor edx, edx
call fcn.0040627c
mov rdx, qword [0x0043f72d]
mov rcx, rax
mov rbx, rax
mov qword [rbp + 0x60], rax
call fcn.00406150
mov rcx, qword [0x0043f791]
mov r13, rax
call r13
mov rdx, qword [0x0043f725]
mov rcx, rax
call fcn.00406150
mov rdx, qword [0x0043f759]
mov rcx, rbx
mov rdi, rax
call fcn.00406150
xor r12d, r12d
lea rdx, [rbp + 0x58]
xor ecx, ecx
mov qword [rbp + 0x58], r12
mov r14, rax
call fcn.0040627c
mov edx, dword [0x0043f755]
lea ecx, [r12 + 0x40]
call qword [sym.imp.kernel32.dll_LocalAlloc]
mov edx, dword [0x0043f755]
mov rcx, rax
mov rbx, rax
call fcn.00406464
mov rax, qword [rbp + 0x58]
mov edx, r12d
cmp word [rax], r12w
je 0x40657e
movzx eax, word [rax]
mov ecx, r12d
mov word [rcx + rbx], ax
inc edx
mov rax, qword [rbp + 0x58]
lea rcx, [rdx + rdx]
movzx eax, word [rcx + rax]
test ax, ax
jne 0x406567
mov r9, qword [str.viceconsulate.psd]
mov edx, r12d
cmp word [rbx], r12w
je 0x406597
inc edx
cmp word [rbx + rdx*2], r12w
jne 0x40658e
lea ecx, [rdx - 1]
jmp 0x4065a7
mov eax, edx
mov edx, ecx
dec ecx
mov word [rbx + rax*2], r12w
cmp word [rbx + rcx*2], 0x5c
jne 0x40659c
mov al, byte [r9]
mov r8d, r12d
jmp 0x4065c8
movsx ecx, al
mov eax, edx
inc edx
inc r8d
mov word [rbx + rax*2], cx
mov al, byte [r8 + r9]
test al, al
jne 0x4065b6
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.kernel32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x406615
mov rdx, qword [str.dessertspoonful.txt]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rdi
xor ecx, ecx
call r14
xor edx, edx
mov rcx, r15
call qword [sym.imp.kernel32.dll_GetFileSize]
mov edx, dword [0x0043f799]
xor ecx, ecx
mov r8d, 0x1000
mov ebx, eax
lea r9d, [rcx + 4]
call qword [sym.imp.kernel32.dll_VirtualAlloc]
lea r9, [rbp + 0x50]
mov dword [rbp + 0x50], r12d
mov rdx, rax
mov qword [rsp + 0x20], r12
mov r8d, ebx
mov rcx, r15
mov rsi, rax
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x406673
mov rdx, qword [str.dessertspoonful.txt]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rdi
xor ecx, ecx
call r14
mov eax, dword [0x0043f775]
mov r12d, dword [rbp + 0x50]
add r12, rsi
add rsi, rax
lea rax, [rsi + 4]
mov edx, dword [rax]
add rax, 4
cmp dword [rsi], 0
jbe 0x4066a0
mov ecx, dword [rsi]
add dword [rax], edx
lea rax, [rax + 4]
sub rcx, 1
jne 0x406694
mov eax, dword [0x0043f73d]
add rsi, rax
test r13, r13
jne 0x4066c4
mov rdx, qword [str.dessertspoonful.txt]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rdi
xor ecx, ecx
call r14
movsx rax, byte [rsi]
mov rcx, qword [rbp + 0x60]
add rsi, rax
lea rdx, [rsi + 1]
call fcn.00406150
mov qword [rbp + 0x60], rax
test rax, rax
jne 0x4066f7
mov rdx, qword [str.dessertspoonful.txt]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rdi
xor ecx, ecx
call r14
call rsi
Function at 0x4064e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
mov ecx, dword [0x0043f721]
xor edx, edx
call fcn.0040627c
mov rdx, qword [0x0043f72d]
mov rcx, rax
mov rbx, rax
mov qword [rbp + 0x60], rax
call fcn.00406150
mov rcx, qword [0x0043f791]
mov r13, rax
call r13
mov rdx, qword [0x0043f725]
mov rcx, rax
call fcn.00406150
mov rdx, qword [0x0043f759]
mov rcx, rbx
mov rdi, rax
call fcn.00406150
xor r12d, r12d
lea rdx, [rbp + 0x58]
xor ecx, ecx
mov qword [rbp + 0x58], r12
mov r14, rax
call fcn.0040627c
mov edx, dword [0x0043f755]
lea ecx, [r12 + 0x40]
call qword [sym.imp.kernel32.dll_LocalAlloc]
mov edx, dword [0x0043f755]
mov rcx, rax
mov rbx, rax
call fcn.00406464
mov rax, qword [rbp + 0x58]
mov edx, r12d
cmp word [rax], r12w
je 0x40657e
movzx eax, word [rax]
mov ecx, r12d
mov word [rcx + rbx], ax
inc edx
mov rax, qword [rbp + 0x58]
lea rcx, [rdx + rdx]
movzx eax, word [rcx + rax]
test ax, ax
jne 0x406567
mov r9, qword [str.viceconsulate.psd]
mov edx, r12d
cmp word [rbx], r12w
je 0x406597
inc edx
cmp word [rbx + rdx*2], r12w
jne 0x40658e
lea ecx, [rdx - 1]
jmp 0x4065a7
mov eax, edx
mov edx, ecx
dec ecx
mov word [rbx + rax*2], r12w
cmp word [rbx + rcx*2], 0x5c
jne 0x40659c
mov al, byte [r9]
mov r8d, r12d
jmp 0x4065c8
movsx ecx, al
mov eax, edx
inc edx
inc r8d
mov word [rbx + rax*2], cx
mov al, byte [r8 + r9]
test al, al
jne 0x4065b6
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.kernel32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x406615
mov rdx, qword [str.dessertspoonful.txt]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rdi
xor ecx, ecx
call r14
xor edx, edx
mov rcx, r15
call qword [sym.imp.kernel32.dll_GetFileSize]
mov edx, dword [0x0043f799]
xor ecx, ecx
mov r8d, 0x1000
mov ebx, eax
lea r9d, [rcx + 4]
call qword [sym.imp.kernel32.dll_VirtualAlloc]
lea r9, [rbp + 0x50]
mov dword [rbp + 0x50], r12d
mov rdx, rax
mov qword [rsp + 0x20], r12
mov r8d, ebx
mov rcx, r15
mov rsi, rax
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x406673
mov rdx, qword [str.dessertspoonful.txt]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rdi
xor ecx, ecx
call r14
mov eax, dword [0x0043f775]
mov r12d, dword [rbp + 0x50]
add r12, rsi
add rsi, rax
lea rax, [rsi + 4]
mov edx, dword [rax]
add rax, 4
cmp dword [rsi], 0
jbe 0x4066a0
mov ecx, dword [rsi]
add dword [rax], edx
lea rax, [rax + 4]
sub rcx, 1
jne 0x406694
mov eax, dword [0x0043f73d]
add rsi, rax
test r13, r13
jne 0x4066c4
mov rdx, qword [str.dessertspoonful.txt]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rdi
xor ecx, ecx
call r14
movsx rax, byte [rsi]
mov rcx, qword [rbp + 0x60]
add rsi, rax
lea rdx, [rsi + 1]
call fcn.00406150
mov qword [rbp + 0x60], rax
test rax, rax
jne 0x4066f7
mov rdx, qword [str.dessertspoonful.txt]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rdi
xor ecx, ecx
call r14
call rsi
Function at 0x406510
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
mov ecx, dword [0x0043f721]
xor edx, edx
call fcn.0040627c
mov rdx, qword [0x0043f72d]
mov rcx, rax
mov rbx, rax
mov qword [rbp + 0x60], rax
call fcn.00406150
mov rcx, qword [0x0043f791]
mov r13, rax
call r13
mov rdx, qword [0x0043f725]
mov rcx, rax
call fcn.00406150
mov rdx, qword [0x0043f759]
mov rcx, rbx
mov rdi, rax
call fcn.00406150
xor r12d, r12d
lea rdx, [rbp + 0x58]
xor ecx, ecx
mov qword [rbp + 0x58], r12
mov r14, rax
call fcn.0040627c
mov edx, dword [0x0043f755]
lea ecx, [r12 + 0x40]
call qword [sym.imp.kernel32.dll_LocalAlloc]
mov edx, dword [0x0043f755]
mov rcx, rax
mov rbx, rax
call fcn.00406464
mov rax, qword [rbp + 0x58]
mov edx, r12d
cmp word [rax], r12w
je 0x40657e
movzx eax, word [rax]
mov ecx, r12d
mov word [rcx + rbx], ax
inc edx
mov rax, qword [rbp + 0x58]
lea rcx, [rdx + rdx]
movzx eax, word [rcx + rax]
test ax, ax
jne 0x406567
mov r9, qword [str.viceconsulate.psd]
mov edx, r12d
cmp word [rbx], r12w
je 0x406597
inc edx
cmp word [rbx + rdx*2], r12w
jne 0x40658e
lea ecx, [rdx - 1]
jmp 0x4065a7
mov eax, edx
mov edx, ecx
dec ecx
mov word [rbx + rax*2], r12w
cmp word [rbx + rcx*2], 0x5c
jne 0x40659c
mov al, byte [r9]
mov r8d, r12d
jmp 0x4065c8
movsx ecx, al
mov eax, edx
inc edx
inc r8d
mov word [rbx + rax*2], cx
mov al, byte [r8 + r9]
test al, al
jne 0x4065b6
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.kernel32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x406615
mov rdx, qword [str.dessertspoonful.txt]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rdi
xor ecx, ecx
call r14
xor edx, edx
mov rcx, r15
call qword [sym.imp.kernel32.dll_GetFileSize]
mov edx, dword [0x0043f799]
xor ecx, ecx
mov r8d, 0x1000
mov ebx, eax
lea r9d, [rcx + 4]
call qword [sym.imp.kernel32.dll_VirtualAlloc]
lea r9, [rbp + 0x50]
mov dword [rbp + 0x50], r12d
mov rdx, rax
mov qword [rsp + 0x20], r12
mov r8d, ebx
mov rcx, r15
mov rsi, rax
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x406673
mov rdx, qword [str.dessertspoonful.txt]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rdi
xor ecx, ecx
call r14
mov eax, dword [0x0043f775]
mov r12d, dword [rbp + 0x50]
add r12, rsi
add rsi, rax
lea rax, [rsi + 4]
mov edx, dword [rax]
add rax, 4
cmp dword [rsi], 0
jbe 0x4066a0
mov ecx, dword [rsi]
add dword [rax], edx
lea rax, [rax + 4]
sub rcx, 1
jne 0x406694
mov eax, dword [0x0043f73d]
add rsi, rax
test r13, r13
jne 0x4066c4
mov rdx, qword [str.dessertspoonful.txt]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rdi
xor ecx, ecx
call r14
movsx rax, byte [rsi]
mov rcx, qword [rbp + 0x60]
add rsi, rax
lea rdx, [rsi + 1]
call fcn.00406150
mov qword [rbp + 0x60], rax
test rax, rax
jne 0x4066f7
mov rdx, qword [str.dessertspoonful.txt]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rdi
xor ecx, ecx
call r14
call rsi
Function at 0x406520
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
mov ecx, dword [0x0043f721]
xor edx, edx
call fcn.0040627c
mov rdx, qword [0x0043f72d]
mov rcx, rax
mov rbx, rax
mov qword [rbp + 0x60], rax
call fcn.00406150
mov rcx, qword [0x0043f791]
mov r13, rax
call r13
mov rdx, qword [0x0043f725]
mov rcx, rax
call fcn.00406150
mov rdx, qword [0x0043f759]
mov rcx, rbx
mov rdi, rax
call fcn.00406150
xor r12d, r12d
lea rdx, [rbp + 0x58]
xor ecx, ecx
mov qword [rbp + 0x58], r12
mov r14, rax
call fcn.0040627c
mov edx, dword [0x0043f755]
lea ecx, [r12 + 0x40]
call qword [sym.imp.kernel32.dll_LocalAlloc]
mov edx, dword [0x0043f755]
mov rcx, rax
mov rbx, rax
call fcn.00406464
mov rax, qword [rbp + 0x58]
mov edx, r12d
cmp word [rax], r12w
je 0x40657e
movzx eax, word [rax]
mov ecx, r12d
mov word [rcx + rbx], ax
inc edx
mov rax, qword [rbp + 0x58]
lea rcx, [rdx + rdx]
movzx eax, word [rcx + rax]
test ax, ax
jne 0x406567
mov r9, qword [str.viceconsulate.psd]
mov edx, r12d
cmp word [rbx], r12w
je 0x406597
inc edx
cmp word [rbx + rdx*2], r12w
jne 0x40658e
lea ecx, [rdx - 1]
jmp 0x4065a7
mov eax, edx
mov edx, ecx
dec ecx
mov word [rbx + rax*2], r12w
cmp word [rbx + rcx*2], 0x5c
jne 0x40659c
mov al, byte [r9]
mov r8d, r12d
jmp 0x4065c8
movsx ecx, al
mov eax, edx
inc edx
inc r8d
mov word [rbx + rax*2], cx
mov al, byte [r8 + r9]
test al, al
jne 0x4065b6
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.kernel32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x406615
mov rdx, qword [str.dessertspoonful.txt]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rdi
xor ecx, ecx
call r14
xor edx, edx
mov rcx, r15
call qword [sym.imp.kernel32.dll_GetFileSize]
mov edx, dword [0x0043f799]
xor ecx, ecx
mov r8d, 0x1000
mov ebx, eax
lea r9d, [rcx + 4]
call qword [sym.imp.kernel32.dll_VirtualAlloc]
lea r9, [rbp + 0x50]
mov dword [rbp + 0x50], r12d
mov rdx, rax
mov qword [rsp + 0x20], r12
mov r8d, ebx
mov rcx, r15
mov rsi, rax
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x406673
mov rdx, qword [str.dessertspoonful.txt]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rdi
xor ecx, ecx
call r14
mov eax, dword [0x0043f775]
mov r12d, dword [rbp + 0x50]
add r12, rsi
add rsi, rax
lea rax, [rsi + 4]
mov edx, dword [rax]
add rax, 4
cmp dword [rsi], 0
jbe 0x4066a0
mov ecx, dword [rsi]
add dword [rax], edx
lea rax, [rax + 4]
sub rcx, 1
jne 0x406694
mov eax, dword [0x0043f73d]
add rsi, rax
test r13, r13
jne 0x4066c4
mov rdx, qword [str.dessertspoonful.txt]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rdi
xor ecx, ecx
call r14
movsx rax, byte [rsi]
mov rcx, qword [rbp + 0x60]
add rsi, rax
lea rdx, [rsi + 1]
call fcn.00406150
mov qword [rbp + 0x60], rax
test rax, rax
jne 0x4066f7
mov rdx, qword [str.dessertspoonful.txt]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rdi
xor ecx, ecx
call r14
call rsi
Function at 0x406540
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
mov ecx, dword [0x0043f721]
xor edx, edx
call fcn.0040627c
mov rdx, qword [0x0043f72d]
mov rcx, rax
mov rbx, rax
mov qword [rbp + 0x60], rax
call fcn.00406150
mov rcx, qword [0x0043f791]
mov r13, rax
call r13
mov rdx, qword [0x0043f725]
mov rcx, rax
call fcn.00406150
mov rdx, qword [0x0043f759]
mov rcx, rbx
mov rdi, rax
call fcn.00406150
xor r12d, r12d
lea rdx, [rbp + 0x58]
xor ecx, ecx
mov qword [rbp + 0x58], r12
mov r14, rax
call fcn.0040627c
mov edx, dword [0x0043f755]
lea ecx, [r12 + 0x40]
call qword [sym.imp.kernel32.dll_LocalAlloc]
mov edx, dword [0x0043f755]
mov rcx, rax
mov rbx, rax
call fcn.00406464
mov rax, qword [rbp + 0x58]
mov edx, r12d
cmp word [rax], r12w
je 0x40657e
movzx eax, word [rax]
mov ecx, r12d
mov word [rcx + rbx], ax
inc edx
mov rax, qword [rbp + 0x58]
lea rcx, [rdx + rdx]
movzx eax, word [rcx + rax]
test ax, ax
jne 0x406567
mov r9, qword [str.viceconsulate.psd]
mov edx, r12d
cmp word [rbx], r12w
je 0x406597
inc edx
cmp word [rbx + rdx*2], r12w
jne 0x40658e
lea ecx, [rdx - 1]
jmp 0x4065a7
mov eax, edx
mov edx, ecx
dec ecx
mov word [rbx + rax*2], r12w
cmp word [rbx + rcx*2], 0x5c
jne 0x40659c
mov al, byte [r9]
mov r8d, r12d
jmp 0x4065c8
movsx ecx, al
mov eax, edx
inc edx
inc r8d
mov word [rbx + rax*2], cx
mov al, byte [r8 + r9]
test al, al
jne 0x4065b6
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.kernel32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x406615
mov rdx, qword [str.dessertspoonful.txt]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rdi
xor ecx, ecx
call r14
xor edx, edx
mov rcx, r15
call qword [sym.imp.kernel32.dll_GetFileSize]
mov edx, dword [0x0043f799]
xor ecx, ecx
mov r8d, 0x1000
mov ebx, eax
lea r9d, [rcx + 4]
call qword [sym.imp.kernel32.dll_VirtualAlloc]
lea r9, [rbp + 0x50]
mov dword [rbp + 0x50], r12d
mov rdx, rax
mov qword [rsp + 0x20], r12
mov r8d, ebx
mov rcx, r15
mov rsi, rax
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x406673
mov rdx, qword [str.dessertspoonful.txt]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rdi
xor ecx, ecx
call r14
mov eax, dword [0x0043f775]
mov r12d, dword [rbp + 0x50]
add r12, rsi
add rsi, rax
lea rax, [rsi + 4]
mov edx, dword [rax]
add rax, 4
cmp dword [rsi], 0
jbe 0x4066a0
mov ecx, dword [rsi]
add dword [rax], edx
lea rax, [rax + 4]
sub rcx, 1
jne 0x406694
mov eax, dword [0x0043f73d]
add rsi, rax
test r13, r13
jne 0x4066c4
mov rdx, qword [str.dessertspoonful.txt]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rdi
xor ecx, ecx
call r14
movsx rax, byte [rsi]
mov rcx, qword [rbp + 0x60]
add rsi, rax
lea rdx, [rsi + 1]
call fcn.00406150
mov qword [rbp + 0x60], rax
test rax, rax
jne 0x4066f7
mov rdx, qword [str.dessertspoonful.txt]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rdi
xor ecx, ecx
call r14
call rsi
Function at 0x406650
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
mov ecx, dword [0x0043f721]
xor edx, edx
call fcn.0040627c
mov rdx, qword [0x0043f72d]
mov rcx, rax
mov rbx, rax
mov qword [rbp + 0x60], rax
call fcn.00406150
mov rcx, qword [0x0043f791]
mov r13, rax
call r13
mov rdx, qword [0x0043f725]
mov rcx, rax
call fcn.00406150
mov rdx, qword [0x0043f759]
mov rcx, rbx
mov rdi, rax
call fcn.00406150
xor r12d, r12d
lea rdx, [rbp + 0x58]
xor ecx, ecx
mov qword [rbp + 0x58], r12
mov r14, rax
call fcn.0040627c
mov edx, dword [0x0043f755]
lea ecx, [r12 + 0x40]
call qword [sym.imp.kernel32.dll_LocalAlloc]
mov edx, dword [0x0043f755]
mov rcx, rax
mov rbx, rax
call fcn.00406464
mov rax, qword [rbp + 0x58]
mov edx, r12d
cmp word [rax], r12w
je 0x40657e
movzx eax, word [rax]
mov ecx, r12d
mov word [rcx + rbx], ax
inc edx
mov rax, qword [rbp + 0x58]
lea rcx, [rdx + rdx]
movzx eax, word [rcx + rax]
test ax, ax
jne 0x406567
mov r9, qword [str.viceconsulate.psd]
mov edx, r12d
cmp word [rbx], r12w
je 0x406597
inc edx
cmp word [rbx + rdx*2], r12w
jne 0x40658e
lea ecx, [rdx - 1]
jmp 0x4065a7
mov eax, edx
mov edx, ecx
dec ecx
mov word [rbx + rax*2], r12w
cmp word [rbx + rcx*2], 0x5c
jne 0x40659c
mov al, byte [r9]
mov r8d, r12d
jmp 0x4065c8
movsx ecx, al
mov eax, edx
inc edx
inc r8d
mov word [rbx + rax*2], cx
mov al, byte [r8 + r9]
test al, al
jne 0x4065b6
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.kernel32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x406615
mov rdx, qword [str.dessertspoonful.txt]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rdi
xor ecx, ecx
call r14
xor edx, edx
mov rcx, r15
call qword [sym.imp.kernel32.dll_GetFileSize]
mov edx, dword [0x0043f799]
xor ecx, ecx
mov r8d, 0x1000
mov ebx, eax
lea r9d, [rcx + 4]
call qword [sym.imp.kernel32.dll_VirtualAlloc]
lea r9, [rbp + 0x50]
mov dword [rbp + 0x50], r12d
mov rdx, rax
mov qword [rsp + 0x20], r12
mov r8d, ebx
mov rcx, r15
mov rsi, rax
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x406673
mov rdx, qword [str.dessertspoonful.txt]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rdi
xor ecx, ecx
call r14
mov eax, dword [0x0043f775]
mov r12d, dword [rbp + 0x50]
add r12, rsi
add rsi, rax
lea rax, [rsi + 4]
mov edx, dword [rax]
add rax, 4
cmp dword [rsi], 0
jbe 0x4066a0
mov ecx, dword [rsi]
add dword [rax], edx
lea rax, [rax + 4]
sub rcx, 1
jne 0x406694
mov eax, dword [0x0043f73d]
add rsi, rax
test r13, r13
jne 0x4066c4
mov rdx, qword [str.dessertspoonful.txt]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rdi
xor ecx, ecx
call r14
movsx rax, byte [rsi]
mov rcx, qword [rbp + 0x60]
add rsi, rax
lea rdx, [rsi + 1]
call fcn.00406150
mov qword [rbp + 0x60], rax
test rax, rax
jne 0x4066f7
mov rdx, qword [str.dessertspoonful.txt]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rdi
xor ecx, ecx
call r14
call rsi
Function at 0x40d610
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.0040d600
mov ebx, eax
test ebx, ebx
je 0x40d65b
cmp dword [0x00441264], 0xffffffff
jne 0x40d634
mov ecx, 0xe2
call fcn.00408af0
mov ecx, ebx
call fcn.0040d5e0
test rax, rax
jne 0x40d64d
mov ecx, 0xe2
call fcn.00408af0
jmp 0x40d65b
mov ecx, dword [0x00441264]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x40d6b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
lea rax, [0x1a0]
test rax, rax
je 0x40d6f0
cmp dword [0x00441264], 0xffffffff
je 0x40d6f0
mov ecx, dword [0x00441264]
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x40d6f0
mov rcx, rax
call sub.kernel32.dll_LocalFree
mov ecx, dword [0x00441264]
xor rdx, rdx
call sub.kernel32.dll_TlsSetValue
add rsp, 0x28
ret

Function at 0x40d730
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x0044bf34], 0
je 0x40d76b
mov ecx, dword [0x00441264]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40d77f
call fcn.0040d610
mov ecx, dword [0x00441264]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40d77f
mov rax, qword [0x0044bf70]
jmp 0x40d77f
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x00441264]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x41ea60
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41ea87
movzx rax, word [rbp + 0x2c]
jmp 0x41ea89
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret

Function at 0x422cb0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.00409410
mov r13d, eax
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.0040d2e0
mov esi, eax
cmp esi, 0x104
jbe 0x422d0d
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00404f40
mov rdi, rax
jmp 0x422d11
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.0040d2e0
mov rcx, rdi
call sub.user32.dll_CharUpperW
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x422d64
add ecx, 1
mov edx, ebx
shl edx, 5
shr ebx, 0x1b
or edx, ebx
mov ebx, edx
movsxd rdx, eax
movzx edx, word [rdi + rdx*2]
xor ebx, edx
add eax, 1
cmp eax, ecx
jne 0x422d48
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x422d76
mov rcx, rdi
call fcn.00404f70
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret