joyce8/EMBER2024-capa huggingface dataset:
Function at 0x121f321d325
Capabilities:
Manually build aes constants

Disassembly:
not eax
dec ebx
neg dil
jge 0x121f321e747

Function at 0x121f321f448
Capabilities:
Authenticate hmac

Disassembly:
xor r10, rdi
push rbx
btr dx, 1
lea r9, [r9 + rbp - 0x35]
pop r11
dec bx
mov qword [r9 + rbp*8 - 0x168], rdi
lea r8, [rbp + r8 - 0x31]
mov qword [rsp + rdx + 0x21e635d0], rcx
inc eax
jge fcn.121f3207c22
mov ebx, dword [rbp + r8 - 0x2d]
shl r11b, 0xa5
xor ebx, r10d
call fcn.121f32130b4

Function at 0x121f3220904
Capabilities:
Authenticate hmac

Disassembly:
sar rdi, 0x48
push r10
lea rcx, [rdx*8 + 0x2f0cc601]
cmovnp edx, eax
sub cl, al
xor dword [rsp + rdx*8], ebx
pop r10
sub al, r11b
jl 0x121f32248c5
movsx eax, byte [rsp + rcx - 0x31b8a70f]
xor r11d, 0xd6af5ca4
ror r11d, 1
not al
idiv dword [rsp + rcx*2 - 0x63714e23]
not ax
not r11d
mov qword [rsp + rcx*2 - 0x63714e26], r10
mov qword [rsp + rcx - 0x31b8a717], rcx
xor dword [rsp + rcx - 0x31b8a70f], r11d
not byte [rsp + rdx - 0x90]
mul byte [rsp + rcx*2 - 0x63714e2a]
mov r10, qword [rsp + rcx - 0x31b8a70f]
movsxd r11, r11d
xchg dl, bpl
or eax, dword [rsp + rcx - 0x31b8a717]
adc rsi, r11
dec eax
lea r8, [r8 + rcx - 0x31b8a718]
xchg ecx, edi
movzx ebx, byte [rdi + r8 - 0x31b8a717]
jne 0x121f322ccf1
movsx ebx, cx
adc cx, 0x3daa
adc rsi, rbp
mov ebp, r11d
mov qword [rsp + rdx - 0x72b5fff7], r11
mov qword [rsp + rdx - 0x72b5ffef], rdx
mov rdi, qword [r9 + rdx - 0x72b5ffff]
bts bx, bx
mov bpl, byte [r9 + r11 - 0x7b3dc7ae]
lea r9, [r9 + rax - 0x7b3dc7ad]
push r11
add edx, 0x56af20a4
mov byte ss:[rax + rdi - 0x7b3dc7b7], bpl
add edx, ebx
mov edi, 0xef1e8dbc
jo 0x121f31f5398
mov qword [rsp + rax - 0x7b3dc7b7], rsi
ret 0x18
rol dx, 0xad
jbe 0x121f3222321
sal r11d, 0x66
sar bp, 0x46
movsxd rdi, edi
cqo
cwde
add rsi, rdi
shr rcx, cl
movzx edi, word [r8 + rdx*2 - 6]
or rbx, 0xffffffffb102e8a5
sal bpl, 0xa6
lea r8, [r8 + rdx - 6]
push rcx
xor di, r10w
lea rbp, [rdx*2 + 0x2403850b]
ror bl, 7
lea rbp, [r11 - 0x26f5ec5]
sbb di, 0xd39a
ror ebp, 0xac
neg dword [rsp + rdx*4 + 3]
inc dx
xor di, 0xa103
call fcn.121f32110df

Function at 0x121f3227c7f
Capabilities:
Execute anti-debugging instructions

Disassembly:
inc r11b
xor r11b, 0x8f
xor rbx, rdx
xor r10b, r11b
push rbx
lea r9, [r9 + rdx + 0x4e46c864]
or ax, 0x5c03
shl cx, 0xb
mov word [r9 + rbp + 0x7a4759b0], r11w
sal dword [rsp + rbp + 0x7a4759b4], 0xcd
pop rbx
pop rbp
pop rbp
pop rdx
jb fcn.121f31faad4
Function at 0x14001123f
Capabilities:
Terminate process

Disassembly:
jmp 0x1400139b0
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 0x1400112c6
Capabilities:
Create tcp socket
Create thread
Create udp socket
Get hostname
Initialize winsock library
Resolve dns
Start tcp server

Disassembly:
jmp 0x140011ff0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
sub rsp, 0x6a0
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x10c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x6c8]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x668], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.1400113f2
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0x1c8], rax
mov edx, 0x100
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.WS2_32.dll_gethostname]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rbp + 0x308], rax
mov eax, 2
mov word [rbp + 0x328], ax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0x698]
mov rcx, qword [rcx + rax]
call qword [sym.imp.ucrtbased.dll_atoi]
movzx ecx, ax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x32a], ax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0x308]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rax + rcx]
mov eax, dword [rax]
mov dword [rbp + 0x32c], eax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x328]
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_bind]
lea rax, [rbp + 0x354]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400111a4]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 0x7fffffff
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_listen]
xor eax, eax
cmp eax, 1
je 0x1400121ef
mov dword [rbp + 0x3c4], reloc.WS2_32.dll_recv
lea r8, [rbp + 0x3c4]
lea rdx, [rbp + 0x398]
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rbp + 0x378], rax
cmp dword [0x14001e1b0], 0xa
jl 0x140012187
mov rcx, qword [rbp + 0x378]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140012138
mov rax, qword [rbp + 0x378]
mov qword [rbp + 0x3e8], rax
lea rax, [rbp + 0x3f0]
lea rcx, [rbp + 0x398]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x414]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r9, [rbp + 0x3e8]
lea r8, [0x14001107d]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [0x14001e1b0]
inc eax
mov dword [0x14001e1b0], eax
jmp 0x140012138
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rcx, [rbp - 0x30]
lea rdx, [0x14001b260]
call fcn.140011375
mov rcx, qword [rbp + 0x668]
xor rcx, rbp
call fcn.1400111f9
lea rsp, [rbp + 0x670]
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400112d0
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014d00
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014d20
xor al, al
jmp 0x140014da1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014d33
xor al, al
jmp 0x140014da1
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 0x140014d5d
xor al, al
jmp 0x140014da1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014d71
xor al, al
jmp 0x140014da1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014d83
xor al, al
jmp 0x140014da1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014d9f
xor al, al
jmp 0x140014da1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400027d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140045020]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
mov r8d, 0x103
lea rdx, [rsp + 0x40]
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1400028c2
lea rcx, [rsp + 0x40]
call fcn.1400026f0
test al, al
je 0x140002833
call fcn.1400024a0
test al, al
je 0x1400028c2
mov byte [rbx], 1
mov al, 1
jmp 0x1400028c4
lea r9, [rsp + 0x40]
mov r8, rdi
lea rdx, str.The_environment_variable__s__with_the_value_of__s__does_not_point_to_a_valid_JVM_installation.
lea rcx, [rsp + 0x150]
call fcn.14000bb60
mov edx, 0x72
lea rcx, [rsp + 0x20]
call fcn.140001f60
cmp qword [rsp + 0x38], 0x10
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x150]
cmovae r8, qword [rsp + 0x20]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rdx, qword [rsp + 0x38]
mov byte [rbx], 0
cmp rdx, 0x10
jb 0x1400028be
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400028b9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400028e5
call fcn.14000ee50
mov al, 1
jmp 0x1400028c4
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14000ee30
mov rbx, qword [rsp + 0x290]
add rsp, 0x270
pop rdi
ret
call fcn.140017d80
int3
Function at 0x140002eb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x168
mov rax, qword [0x140045020]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rax, [rsp + 0x38]
mov rdx, rcx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140002f0a
xor al, al
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000ee30
add rsp, 0x168
ret
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.JavaHome
lea rax, [rsp + 0x40]
mov qword [rsp + 0x160], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x30], 0x103
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140002f59
lea rcx, [rsp + 0x40]
call fcn.1400026f0
movzx ebx, al
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000ee30
add rsp, 0x168
ret

Function at 0x140003e80
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x490
mov rax, qword [0x140045020]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rbx, rdx
mov r9d, 0x104
lea r8, [rsp + 0x270]
mov edx, ecx
mov rcx, qword [0x1400479c0]
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x140003fff
mov r8d, 0x104
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor edi, edi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], di
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x140003f06
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.14000b210
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140001e30
nop
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x140003f69
mov qword [rdx], rdi
mov qword [rdx + 0x10], rdi
mov qword [rdx + 0x18], rdi
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
add qword [rbx + 8], 0x20
jmp 0x140003f75
mov r8, rax
mov rcx, rbx
call fcn.14000c0c0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140003fae
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003fa9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004026
call fcn.14000ee50
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140003fff
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003ffa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004020
call fcn.14000ee50
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14000ee30
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop rdi
ret
call fcn.140017d80
nop
call fcn.140017d80
nop
int3
Function at 0x14001c708
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001c534

Function at 0x140021388
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x140021365
call fcn.140018b9c
mov dword [rax], 0x16
call fcn.140017d60
or eax, 0xffffffff
jmp 0x140021382
sub dword [rcx + 0x10], 1
jns 0x140021374
add rsp, 0x28
jmp 0x14002b118
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x140021344
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
jne 0x14002b14a
call fcn.140018b9c
mov dword [rax], 0x16
call fcn.140017d60
jmp 0x14002b267
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14002b267
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14002b267
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14002b179
lock or dword [rcx + 0x14], 0x10
jmp 0x14002b267
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14002b18d
call fcn.14002d96c
mov rbx, qword [rdi + 8]
mov rcx, rdi
mov qword [rdi], rbx
call fcn.14001fcd8
mov r8d, dword [rdi + 0x20]
mov ecx, eax
mov rdx, rbx
call fcn.14002c9b0
mov dword [rdi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14002b255
mov eax, dword [rdi + 0x14]
or esi, 0xffffffff
test al, 6
jne 0x14002b220
mov rcx, rdi
call fcn.14001fcd8
cmp eax, esi
je 0x14002b20b
mov rcx, rdi
call fcn.14001fcd8
cmp eax, 0xfffffffe
je 0x14002b20b
mov rcx, rdi
call fcn.14001fcd8
movsxd rbx, eax
lea r14, [0x1400472a0]
mov rcx, rdi
sar rbx, 6
call fcn.14001fcd8
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14002b212
lea rdx, [0x1400453d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002b220
lock or dword [rdi + 0x14], 0x20
cmp dword [rdi + 0x20], 0x200
jne 0x14002b244
mov eax, dword [rdi + 0x14]
shr eax, 6
test al, 1
je 0x14002b244
mov eax, dword [rdi + 0x14]
shr eax, 8
test al, 1
jne 0x14002b244
mov dword [rdi + 0x20], 0x1000
mov rax, qword [rdi]
add dword [rdi + 0x10], esi
movzx esi, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x14002b26a
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rdi + 0x14], eax
and dword [rdi + 0x10], 0
or esi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x180001f70
Capabilities:
Encode data using xor

Disassembly:
mov dword [rcx + 0x2c], 0x80
lea rdx, [rcx + 0xf8]
mov dword [rcx + 0x28], 0x80
xor r8d, r8d
mov dword [rcx + 0x24], 0x80
mov r9d, 4
mov qword [rcx + 0x48], r8
mov r10, rcx
mov qword [rcx + 0x38], r8
mov r11d, r9d
mov dword [rcx + 0x50], pe_nt_image_headers64
mov qword [rcx + 0x40], pe_nt_image_headers64
mov qword [rcx + 0x30], pe_nt_image_headers64
mov dword [rcx + 0x54], 8
mov dword [rcx + 0x5c], 0x42c80000
mov dword [rcx + 0x60], 0x3f800000
mov dword [rcx + 0x64], 0x40000000
mov dword [rcx + 0x68], 0x41f00000
movsd xmm0, qword [str.Unknown_Maker]
movsd qword [rcx + 0x6c], xmm0
mov eax, dword [0x180013420]
mov dword [rcx + 0x74], eax
movzx eax, word [0x180013424]
mov word [rcx + 0x78], ax
movsd xmm0, qword [str.Unknown_Model]
movsd qword [rcx + 0xac], xmm0
mov eax, dword [0x180013430]
mov dword [rcx + 0xb4], eax
movzx eax, word [0x180013434]
mov word [rcx + 0xb8], ax
mov dword [rcx + 0x58], r8d
mov dword [rcx + 0xec], 4
nop word [rax + rax]
lea ecx, [r8 + r8]
xor r8d, 1
mov dword [rdx - 4], ecx
lea eax, [rcx + 1]
mov dword [rdx], eax
mov dword [rdx + 4], ecx
mov dword [rdx + 8], eax
lea rdx, [rdx + 0x10]
sub r11, 1
jne 0x180002040
mov dword [r10 + 0xf0], 0xffffffff
lea rax, [r10 + 0x138]
mov dword [rax - 4], 1
mov dword [rax], 1
mov dword [rax + 4], 1
mov dword [rax + 8], 1
lea rax, [rax + 0x10]
sub r9, 1
jne 0x180002072
ret
Function at 0x180009af0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
sub rsp, 0x28
mov rbx, rdx
cmp r8d, r9d
je 0x180009caa
cmp r9d, 4
jle 0x180009b23
lea rcx, str.error:_wrong_CFAPatternTarget____changeImgCFAPattern_r_n
call fcn.180001070
mov rax, 0xffffffffffffffff
add rsp, 0x28
pop rbp
pop rbx
ret
mov qword [rsp + 0x40], rsi
mov rbp, 0xffffffffffffffff
movsxd rsi, dword [rdx]
mov qword [rsp + 0x48], rdi
mov edi, r8d
mov qword [rsp + 0x50], r14
xor r8d, r9d
sar edi, 1
mov r14d, r9d
sar r14d, 1
and edi, 1
and r14d, 1
mov qword [rsp + 0x20], r15
movsxd r15, dword [rdx + 4]
test r8b, 1
je 0x180009bf9
mov eax, 4
mul rsi
cmovo rax, rbp
mov rcx, rax
call fcn.180010790
xor r9d, r9d
mov r11, rax
test r15d, r15d
jle 0x180009bf1
xor edx, edx
test rsi, rsi
jle 0x180009bb4
nop word [rax + rax]
mov eax, dword [rbx]
imul eax, dword [rbx + 8]
imul eax, r9d
movsxd rcx, eax
mov rax, qword [rbx + 0x10]
add rcx, rdx
movzx ecx, word [rax + rcx*2]
mov dword [r11 + rdx*4], ecx
inc rdx
cmp rdx, rsi
jl 0x180009b90
xor r8d, r8d
test rsi, rsi
jle 0x180009be9
mov r10, rsi
nop
mov eax, dword [rbx]
imul eax, dword [rbx + 8]
mov rcx, qword [rbx + 0x10]
imul eax, r9d
movsxd rdx, eax
movzx eax, word [r11 + r8*4]
add rdx, r10
inc r8
dec r10
mov word [rcx + rdx*2 - 2], ax
cmp r8, rsi
jl 0x180009bc0
inc r9d
cmp r9d, r15d
jl 0x180009b83
mov rcx, r11
call fcn.180010744
cmp edi, r14d
mov r14, qword [rsp + 0x50]
je 0x180009c9b
mov eax, 4
mul r15
cmovo rax, rbp
mov rcx, rax
call fcn.180010790
mov r11, rax
test rsi, rsi
jle 0x180009c93
xor r9d, r9d
xor r8d, r8d
xor edx, edx
test r15d, r15d
jle 0x180009c57
mov eax, dword [rbx]
imul eax, dword [rbx + 8]
imul eax, r8d
inc r8d
movsxd rcx, eax
mov rax, qword [rbx + 0x10]
add rcx, r9
movzx ecx, word [rax + rcx*2]
mov dword [r11 + rdx*4], ecx
inc rdx
cmp rdx, r15
jl 0x180009c30
xor r8d, r8d
test r15d, r15d
jle 0x180009c8b
lea r10d, [r15 - 1]
mov rcx, qword [rbx + 0x10]
mov eax, r10d
imul eax, dword [rbx]
dec r10d
imul eax, dword [rbx + 8]
movsxd rdx, eax
movzx eax, word [r11 + r8*4]
add rdx, r9
inc r8
mov word [rcx + rdx*2], ax
cmp r8, r15
jl 0x180009c63
inc r9
cmp r9, rsi
jl 0x180009c26
mov rcx, r11
call fcn.180010744
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x20]
xor eax, eax
add rsp, 0x28
pop rbp
pop rbx
ret
Function at 0x140003c40
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003c74
cmp word [rcx], 0x5a4d
jne 0x140003c74
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003c74
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003c74
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003b80
test eax, eax
jne 0x140003c90
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003bf0
test rax, rax
je 0x140003c85
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140004433
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004340
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400042e0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140009944
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1405791b8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1405791b4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140009992
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000998a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140009a79
inc ebx
add rax, 0x28
jmp 0x14000996a
mov rcx, r12
call fcn.14000a171
mov rbp, rax
test rax, rax
jne 0x1400099b1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400098e0
movsxd rbx, ebx
mov rax, qword [0x1405791b8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000a21f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1405791b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140009a13
mov rax, qword [0x1405791b8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400098e0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140009a73
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140009a73
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1405791b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140009a73
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400098e0
inc dword [0x1405791b4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140009ea0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140579220]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140579200]
test rbx, rbx
je 0x140009eec
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140009ee6
test eax, eax
jne 0x140009ee6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140009ebe
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000a0a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000a0c3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14000a0c3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000a0c4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x14000a0fe
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x14000a0f5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000a100
inc r8d
add rax, 0x28
jmp 0x14000a0dc
xor eax, eax
ret

Function at 0x14000a171
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14056ebd0]
mov r8, rcx
mov rcx, r9
call fcn.14000a0a0
test eax, eax
je 0x14000a19d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.14000a0c4
xor eax, eax
add rsp, 0x28
ret