joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cd40
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x00573098], 0
je 0x40cdde
cmp word [0x005733a8], 0xd7b2
jne 0x40cd73
cmp dword [0x005733b0], 0
jbe 0x40cd73
lea rcx, [0x005733a0]
call qword [0x005733c8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x00552760]
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rbx, rax
lea rcx, [0x0040ce14]
call fcn.0040df50
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40ce00
cmp byte [0x00551052], 0
jne 0x40ce00
xor rcx, rcx
lea rdx, [0x00552760]
lea r8, [0x00552670]
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x410530
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00577c80]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00577ca8], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00577c78], al
cmp byte [0x00577c78], 0
je 0x4105cf
lea rcx, [0x004105d4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x004105ee]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00577c60], rax
lea rcx, [0x004105d4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041060c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00577c68], rax
lea rcx, [0x004105d4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041062a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00577c70], rax
add rsp, 0x28
ret
Function at 0x410860
Capabilities:
Get geographical location

Disassembly:
push rbp
sub rsp, 0x1d0
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x40], rdx
mov word [rbp + 0x4e], r8w
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
call fcn.0040d1a0
movzx rax, word [rbp + 0x4e]
cmp word [0x00552dd0], ax
ja 0x410948
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x005531d0]
mov word [rbp + 0x4e], ax
ja 0x410948
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x410947
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x00552dd0]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x410901
mov ecx, eax
sub ecx, 1
jmp 0x410942
lea rdx, [0x00552dd0]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x410923
mov r8d, eax
add r8d, 1
jmp 0x410942
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x00552dd8]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.00410700
jmp 0x410947
cmp ecx, r8d
jae 0x4108d0
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x410a2a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x410a2a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x59
lea r8, [rbp + 0x126]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x5a
lea r8, [rbp + 0x7c]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x68]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040e5f0
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040e5f0
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040e5f0
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x00410a84]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x00410a94]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040ea70
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040d280
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x410ca0
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov word [rbp + 0x36], dx
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
nop
lea rcx, [0x00577c80]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00577ca8], ax
jne 0x410d0b
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00577caa]
mov r8d, 0x55
call fcn.0040e5f0
lea rcx, [0x00577c80]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x410e17
lea rcx, [0x00577c80]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040d1a0
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x410dd0
cmp byte [0x00577c78], 0
je 0x410d64
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.00410b30
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040d7d0
jmp 0x410dd0
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.00410860
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040d7d0
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x410dd0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x410daf
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00410e64]
call fcn.0040e860
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.00410860
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040e860
lea rcx, [0x00577c80]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00577ca8], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040e520
lea rcx, [0x00577caa]
mov rdx, rax
mov r8d, 0xaa
call sub.kernel32.dll_lstrcpynW
lea rcx, [0x00577c80]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040d280
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x411820
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x70], r8
mov rcx, qword [rbp + 0x70]
call fcn.0040d330
nop
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx ecx, ax
mov edx, 3
lea r8, [rbp + 0x48]
mov r9d, 4
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x38]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040e5f0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.0040e950
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.00411640
test al, al
jne 0x4118ee
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040e5f0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.0040e950
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.00411640
test al, al
jne 0x4118ee
mov rcx, qword [rbp + 0x20]
call fcn.0040d1a0
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040d280
lea rcx, [rbp + 0x70]
call fcn.0040d1a0
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x411960
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov rcx, qword [rbp + 0x88]
call fcn.0040d330
mov rcx, qword [rbp + 0x90]
call fcn.0040d330
nop
mov rcx, qword [rbp + 0x28]
call fcn.0040d1a0
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040d850
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x411a03
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x411a3d
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x411a36
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.0040eb60
jmp 0x411a3d
sub eax, 1
test eax, eax
jne 0x411a08
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.00411530
cmp qword [rbp + 0x68], 0
je 0x411a7b
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.004116e0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040d7d0
jmp 0x411b17
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.00410ca0
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.004116e0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040d7d0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x411af0
cmp byte [0x00577c78], 0
jne 0x411af0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.00410ca0
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.004116e0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040d7d0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x411b17
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.00411820
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040d7d0
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.0040d280
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040d280
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x412690
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x4126b0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call sub.kernel32.dll_GetVersion
mov ecx, eax
and ecx, 0xff
and eax, 0xff00
shr eax, 8
cmp ecx, 5
jne 0x4126d4
cmp eax, 1
jae 0x4126d9
cmp ecx, 5
jbe 0x4126e5
mov dword [0x005739a0], 0x7f
jmp 0x4126ef
mov dword [0x005739a0], 0x409
add rsp, 0x28
ret
Function at 0x413e90
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.00413e80
mov ebx, eax
test ebx, ebx
je 0x413edb
cmp dword [0x00553b60], 0xffffffff
jne 0x413eb4
mov ecx, 0xe2
call fcn.0040cfe0
mov ecx, ebx
call fcn.00413e60
test rax, rax
jne 0x413ecd
mov ecx, 0xe2
call fcn.0040cfe0
jmp 0x413edb
mov ecx, dword [0x00553b60]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x413ef0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x00577d54], 0
je 0x413f2b
mov ecx, dword [0x00553b60]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x413f3f
call fcn.00413e90
mov ecx, dword [0x00553b60]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x413f3f
mov rax, qword [0x00577d88]
jmp 0x413f3f
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x00553b60]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

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

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
mov rbx, rcx
mov esi, edx
mov rcx, rbx
call fcn.0040e520
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x429fb2
mov ecx, eax
test ecx, 0x400
je 0x429fa7
test sil, sil
jne 0x429f3f
mov al, 1
jmp 0x429fdc
test eax, 0x10
je 0x429f4f
xor rax, rax
jmp 0x429fdc
mov rcx, rbx
call fcn.0040e520
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x429f9a
mov rcx, rax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x429fdc
call sub.kernel32.dll_GetLastError
cmp eax, 0x20
sete al
jmp 0x429fdc
test eax, 0x10
sete al
jmp 0x429fdc
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x429fd5
cmp eax, 3
je 0x429fd5
cmp eax, 0x7b
je 0x429fd5
mov rcx, rbp
mov rdx, rbx
call fcn.00429eb0
test al, al
jne 0x429fda
xor rax, rax
jmp 0x429fdc
mov al, 1
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rbp
ret

Function at 0x430bb0
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
test eax, eax
jle 0x430bd7
movzx rax, word [rbp + 0x2c]
jmp 0x430bd9
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret
Function at 0x431ea0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.00431c40
mov ebx, eax
mov rax, qword [0x00571fe0]
cmp byte [rax], 0
je 0x431fd8
mov rcx, qword [0x00571cc0]
call fcn.00409ab0
call fcn.00408620
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00431e60]
mov r8d, 1
movsxd r9, esi
call fcn.0040ffe0
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x00432078]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x43201e
mov rcx, qword [0x00577d58]
call fcn.00410300
mov rcx, rax
mov rax, qword [0x00571c38]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW
xor rcx, rcx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00431e60]
call fcn.004101c0
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret

Function at 0x4344e0
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.0040d970
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.00412670
mov esi, eax
cmp esi, 0x104
jbe 0x43453d
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.004082e0
mov rdi, rax
jmp 0x434541
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.00412670
mov rax, rdi
mov rcx, rax
call sub.user32.dll_CharUpperW
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x434597
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 0x43457b
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x4345a9
mov rcx, rdi
call fcn.00408310
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x140008154
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140008182
xor eax, eax
jmp 0x140008268
cmp qword [rcx + 0x68], 0
je 0x140008193
call fcn.140003440
jmp 0x140008268
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400081aa
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400081ac
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400081de
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14000ab60
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140008262
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140008215
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14000823e
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140014428
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140008262
cmp rsi, rbx
ja 0x14000821c
test rsi, rsi
je 0x140008262
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140014428
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400092c0
Capabilities:
Parse pe header

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

Function at 0x140018ba8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140018998
Function at 0x140020380
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400203b2
call fcn.1400150bc
mov dword [rax], 0x16
call fcn.14001044c
jmp 0x1400204d1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400204d1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400204d1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400203e1
lock or dword [rcx + 0x14], 0x10
jmp 0x1400204d1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400203f5
call fcn.1400219e4
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14001de80
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140021160
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400204bf
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14002048a
mov rcx, rsi
call fcn.14001de80
cmp eax, edi
je 0x140020475
mov rcx, rsi
call fcn.14001de80
cmp eax, 0xfffffffe
je 0x140020475
mov rcx, rsi
call fcn.14001de80
movsxd rbx, eax
lea r14, [0x1400dcb10]
mov rcx, rsi
sar rbx, 6
call fcn.14001de80
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14002047c
lea rdx, [0x1400b53d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002048a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400204ae
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400204ae
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400204ae
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400204d4
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1400207fc
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.140008dc0
sub rsp, rax
mov rax, qword [0x1400b5028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001de80
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002084b
mov rax, rbp
jmp 0x140020953
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xdcb10]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140021938
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xdcb10]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002094f
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 0x14002094f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140021938
test rax, rax
js 0x14002094f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002094f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140020941
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140020941
cmp byte [rcx], 0xd
jne 0x140020927
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140020936
cmp byte [rcx + 1], 0xa
jne 0x140020936
inc rcx
jmp 0x140020936
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xb5420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140020909
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140020953
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140008d90
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 0x140020cb4
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1400dcb10]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140020d12
cmp word [rdx], r12w
jne 0x140020d12
or byte [rax + r8*8 + 0x38], cl
jmp 0x140020d18
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140020e73
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140020e4e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140020d51
mov rcx, r9
jmp 0x140020d74
cmp r9, rdx
jae 0x140020d8b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140020d35
jmp 0x140020e73
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140020e48
cmp dword [rsp + 0x80], edi
je 0x140020e48
mov rdx, r14
lea r11, [0x1400dcb10]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140020e21
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140020df4
mov word [rbx], r12w
jmp 0x140020e6f
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140020dfd
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140020e6f
cmp word [rsp + 0x70], r12w
jne 0x140020e2e
cmp rbx, rsi
je 0x140020dee
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140021940
cmp word [rsp + 0x70], r12w
je 0x140020e73
mov word [rbx], r13w
jmp 0x140020e6f
lea r11, [0x1400dcb10]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140020e6b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140020e73
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret