joyce8/EMBER2024-capa huggingface dataset:
Function at 0x13efcdc
Capabilities:
Encode data using xor

Disassembly:
not dx
xor edx, 0x53f96cae
xor r14w, 0x5cff
sub rdx, rdx
sub r14, 0x792c46d4
add qword [rsp], 0xfffffffffe49ba7e
mov r14b, 0xc9
add byte [rsi - 0x46], bh
inc byte [r9 - 0x4a]
leave
neg dx
not r14w
lea r13, [rdx + r14*8 + 0x32ba1dae]
lea r14, [r13 + r14*2 + 0x7a245f91]
jne 0x17ea465
xor edx, 0x42e219cd
cmp r13d, 0x6a7d1328
mov r13, qword [rsp + 0x20]
not dx
call fcn.013f03c9
mov al, 0x90
xor byte [rdi + 0x36ad7f65], bh
mov edi, 0xcd0ae7f1
sub ebx, ebx
pop rax
leave
mov edi, 0x40ccd955
jg 0x13efcf9
jmp 0x13efd88
pushfq
xor byte [rdi + 0x30a0c2ee], bh
mov edi, 0xc77ea7ad
push rbp
push rdi
fnstcw word [rdi + rdi*4]
sub eax, 0xbf388b33
mov bl, 0x45
or bh, byte [0x39be8149]
jg 0x13efdc2
invalid
pop rbp
jno 0x13efd6b
pop rdi
mov cl, 0x5a
imul eax, dword [rcx - 0x3e71996b], 0x7d
movsd dword [rdi], dword [rsi]
adc esi, dword [rsp + rdx*2 + 0x70]
or byte [rax + riz*2 - 0x5a], ch
invalid
cmp rdx, 0x2b7526f8
not rdx
movzx r14, dx
lea r14, [r14*2 + 0x2a1f040a]
not dl

Function at 0x1846858
Capabilities:
Encode data using xor

Disassembly:
mov word [rsp + 0x10], 0x3982
mov r11, qword [rsp + 0x28]
mov qword [rsp + 0x28], 0xffffffffc5f46f1b
neg r10w
call fcn.01b403a6
sbb byte [eax*8 + 0x24867aa7], ah
sbb byte [rax*8 + 0x24867aa7], ah
cmp bh, bh
not dword [rsi + 0x291ac50c]
cdq
xor eax, 0xd4b54dc5
adc eax, 0xac03afc5
adc al, 0x3a
pushfq
jnp 0x1846877
in al, 0x3a
invalid

Function at 0x187d169
Capabilities:
Encode data using xor

Disassembly:
mov r13, qword [rsp + 0x30]
mov r11, qword [rsp + 0x70]
movzx ebp, byte [rsp + 0x1a]
setbe bpl
neg r15d
sub r11w, 0x3131
and qword [rsp + 0x18], 0x2e72686c
call fcn.01b4d515

Function at 0x1894c32
Capabilities:
Authenticate hmac

Disassembly:
cmp r14w, dx
lea r14, [r12*8 + 0x4b9f433e]
jle 0x13e3cb7
setno r12b
xor r14, 0x24576f7f
add r12b, 5
not r12
or r12b, 1
not dx
test edx, 0x6aff1d9a
cmova r14, r12
jns 0x1b33dd3

Function at 0x197ae5a
Capabilities:
Encode data using xor

Disassembly:
bswap r14
jl 0x13b2a44
add r14d, 0x73402174
and r14b, r14b
push r12
mov ebx, 0x22ed2098
movzx r14d, bx
xor bx, r14w
movabs r12, 0xbfd7b9e374067bc
neg bx
jg 0x197ae74
xor r14d, 0x1feb55ea
sub rbx, r12
add qword [rsp + 8], 0xffffffffff87d0d0
push r11
movabs rbx, 0x3cb44a134e312f9a
movabs r11, 0x3f1c6e7240ce110c
lea r12, [rbx*8 + 0x77e81aef]
not r11
mov rbx, qword [rsp + 0x20]
sub r12b, r14b
bswap r11
sub r11d, 0x1a3d4dd8
neg r14w
mov r12, qword [rsp + 8]
Function at 0x1b44749
Capabilities:
Encode data using xor

Disassembly:
invalid
and bx, 0x7d8f
call 0x17e8a31
or al, cl
mov fs, word [rax - 0x7a700d1e]
movabs al, byte [0xf697715f7251af59]
mov dword [rax - 0x725b845f], esp
movabs al, byte [0x1707fba088253d33]
jo 0x18fd9c0
jp 0x18fd9ae
ja 0x18fd9c5
sar dword [rbx], 1
sbb dword [rax + riz*4 - 0x7691be6d], eax
movabs al, byte [0x60f6d45f77e695b1]
je 0x18fd9d9
xchg esi, eax
jb 0x18fd9d9
je 0x18fd9de
insd dword [rdi], dx
ja 0x18fd904
and dword [rax + 0x78256fb9], 0x5f
add dword [rbx], edx
and eax, 0x13015f78
ja 0x18fda09
pop rdi
imul esi, dword [rbp + 0x675f79f6], 0xffffff97
invalid
invalid
call 0x60544172
leave
jrcxz 0x18fd986
test eax, 0x3a1a0bb3
adc cl, byte [rdx - 0x75]
mov ebp, dword [rcx]
movsd dword [rdi], dword [rsi]
fsubp st(0)
sahf
invalid
push rsp
insd dword [rdi], dx
clc
int3
push rsi
je 0x18fda09
fild dword [0xffffffff8c1773d9]
invalid
imul ecx, ebp, 0x19
invalid
push rbx
movabs rbx, 0x1214310233ba4179
push r11
pushfq
movabs r11, 0x667e654c374036bc
xor r11d, 0x4cf64376
sete r11b
add qword [rsp + 0x18], 0xfffffffffe7fefbd
xor r11w, 0x4630
movzx r11, bx
lea rbx, [rbx + rbx*4 + 0x11d42337]
cmp bl, 0x92
jge 0x18fd935

Function at 0x1b48c82
Capabilities:
Authenticate hmac

Disassembly:
xor byte [rsp + 0x18], 0x9a
not r10b
or word [rsp + 0x18], 0x47c
xor si, word [rsp + 0x18]
sub si, si
mov rsi, qword [rsp + 0x28]
not qword [rsp + 0x18]
sub byte [rsp + 0x18], 0xa3
mov r8, r10
call fcn.018217e8

Function at 0x1b48cfd
Capabilities:
Authenticate hmac

Disassembly:
add qword [rsp], 0xfffffffffec6e193
add qword [rsp + 0x18], 0x4b16cf
lea r10, [r10 + rsi*2 + 0x3097d89]
lea r10, [rsi*2 + 0x6a36ed6]
neg r10b
mov qword [rsp + 0x30], 0x3ec258da
mov rsi, qword [rsp + 0x20]
and r10w, word [rsp + 0x33]
not r10d
jae 0x1391e84

Function at 0x1b49a6b
Capabilities:
Encode data using xor

Disassembly:
call fcn.018fbbed
setl bl
push r9
test rbp, rbx
test ebp, ebx
jno 0x1b45379
cmp edx, dword [rcx - 0x2a]
mov ch, 0xd1
fcomi st(5)
int1
int1
out dx, al
cmc
xor al, 3
sub bl, byte [rdi]
test byte [rcx + 0x75fc0240], 7
sbb esp, edx
xor byte [rbp + 0x5fcd0105], 0x47
sbb al, byte [rsi - 0x47]
push rdx
wait
xchg byte [rbx + 0x42e85122], ah
adc dword [rdx - 0x4f083403], eax
and esi, ebx
jb 0x1b49a71
enter 0x6736, 0xffffffffffffffef
out dx, eax
jg 0x1b49ab0
fld dword [0xfffffffff3ab94e0]
push rdx
and dword [rbx], edi
add al, 0x2a
sub ebx, dword [rdx + 0x7002478e]
or byte [r10 + riz*8], bl
push rsp
mov cl, 0xa
invalid
Function at 0x1b61c93
Capabilities:
Encode data using xor

Disassembly:
or r14, qword [rsp + 0x48]
xor word [rsp + 0x18], 0x7cae
add qword [rsp + 8], 0xfffffffffe4c0e48
mov r15, qword [rsp + 0x18]
neg r10d
mov r10d, 0x406d6abf
sub qword [rsp + 0x10], 0x55591faf
and si, word [rsp + 0x18]
mov dword [rsp + 0x10], ecx
add qword [rsp + 0x70], 0xffffffffffd09757
neg qword [rsp + 0x18]
xor cl, byte [rsp + 0x12]
test r15d, esi
not r14d
mov r13, qword [rsp + 0x60]
mov r10, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov r15, qword [rsp + 0x20]
lea rsp, [rsp + 0x70]
ret
jne 0x18fc94c
push r11
pushfq
movabs r11, 0x5d5b269545b508a0
mov r11w, 0x6983
push r9
test r11, 0x15655b55
movabs r9, 0x31073d6b31124697
cmovg r9d, r11d
setae r9b
push r15
movabs r15, 0xd1444e206384962
push r9
xor r11, qword [rsp]
je 0x1b61cc8
seto r15b
add r15d, r15d
cmp r9b, 0x6b
setae byte [rsp]
or qword [rsp], 0xc6a21f4
push r12
mov r12, qword [rsp + 8]
neg r12
mov r11, qword [rsp + 0x28]
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140009790]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400097a0]
mov dword [rax], 1
mov rax, qword [0x1400097b0]
mov dword [rax], 1
mov rax, qword [0x140009710]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140009780]
mov dword [0x14000c00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140009860]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140009840]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400096f0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x1400014a4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
call dbg.__main
lea rax, str.no_nops___no_flag_n
mov rcx, rax
call sym.printf
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x84
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rcx, qword [str.x90_x90_x90_x66_x6c_x61_x67_x7b_x73_x61_x6e_x74_x61_x72_x61_x69_x64_x65_x6e_x76_x69_x73_x69_x6f_x6e_x63_x6f_x72_x70_x7d_x90_x90_x90]
mov rbx, qword [0x140008008]
mov qword [rax], rcx
mov qword [rax + 8], rbx
mov rcx, qword [0x140008010]
mov rbx, qword [0x140008018]
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rbx
mov rcx, qword [0x140008020]
mov rbx, qword [0x140008028]
mov qword [rax + 0x20], rcx
mov qword [rax + 0x28], rbx
mov rcx, qword [0x140008030]
mov rbx, qword [0x140008038]
mov qword [rax + 0x30], rcx
mov qword [rax + 0x38], rbx
mov rcx, qword [0x140008040]
mov rbx, qword [0x140008048]
mov qword [rax + 0x40], rcx
mov qword [rax + 0x48], rbx
mov rcx, qword [0x140008050]
mov rbx, qword [0x140008058]
mov qword [rax + 0x50], rcx
mov qword [rax + 0x58], rbx
mov rcx, qword [0x140008060]
mov rbx, qword [0x140008068]
mov qword [rax + 0x60], rcx
mov qword [rax + 0x68], rbx
mov rcx, qword [0x140008070]
mov rbx, qword [0x140008078]
mov qword [rax + 0x70], rcx
mov qword [rax + 0x78], rbx
mov edx, dword [0x140008080]
mov dword [rax + 0x80], edx
mov rax, qword [rbp - 8]
call rax
mov eax, 0
add rsp, 0x38
pop rbx
pop rbp
ret
Function at 0x140001880
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1400018f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000c0a4]
mov rbx, rcx
test esi, esi
jle 0x140001a20
mov rax, qword [0x14000c0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000193b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400019c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001920
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001a42
mov rax, qword [0x14000c0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000c0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a27
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400019be
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400019d0
add dword [0x14000c0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
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 [0x14000c0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400019be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001948
mov rax, qword [0x14000c0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001fd0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000c100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c0e0]
test rbx, rbx
je 0x14000202c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140002023
test eax, eax
jne 0x140002023
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002008
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002240
Capabilities:
Parse pe header

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

Function at 0x140002270
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400022bd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400022b4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400022bf
add rax, 0x28
cmp rax, r9
jne 0x1400022a0
xor eax, eax
ret

Function at 0x1400022c0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002350
mov rdx, qword [0x140009710]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000233e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000233e
cmp word [rax + 0x18], 0x20b
jne 0x14000233e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002350
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002329
add rbx, 0x28
cmp rbx, rdi
je 0x140002350
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002320
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x140009710]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002380
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002388
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002380
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400023dd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400023d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002380
add rax, 0x28
cmp rax, r9
jne 0x1400023c0
xor eax, eax
ret

Function at 0x1400023e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009710]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400023ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002408
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400023ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140009710]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002440
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002448
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002440
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002490
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002487
test rcx, rcx
je 0x140002440
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002478
xor eax, eax
ret

Function at 0x1400024a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009710]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400024bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400024c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x140009710]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002500
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002508
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002500
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002500
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002554
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002560
add rdx, 0x28
cmp rdx, r9
jne 0x140002540
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140009710]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002592
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400025a0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002592
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002592
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002592
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400025f5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002608
add rdx, 0x28
cmp r10, rdx
jne 0x1400025e0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002617
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002627
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400025fe
test ecx, ecx
jg 0x140002610
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [str.d__b_]
mov dword [rax], 1
mov rax, qword [0x140079b30]
mov dword [rax], 1
mov rax, qword [str.l__b_]
mov dword [rax], 1
mov rax, qword [0x140079ad0]
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 0x1400428f0
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.14005cba0
sub rsp, rax
xor eax, eax
mov rdx, rcx
lea rbx, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea rsi, [rsp + 0x70]
mov rcx, rbx
call fcn.140055040
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140042949
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret
Function at 0x14005b880
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14006d000
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14006d000
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14005c552
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140084008]
test eax, eax
je 0x14005c5ea
lea rax, [0x140083fe0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140084010]
mov qword [rbp - 8], rax
jmp 0x14005c5ce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14005c5c2
cmp qword [rbp - 0x10], 0
je 0x14005c5c2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14005c588
lea rax, [0x140083fe0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14005c5eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14005c6f0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14005c718
mov eax, 0
jmp 0x14005c766
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 0x14005c741
mov eax, 0
jmp 0x14005c766
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14005c761
mov eax, 0
jmp 0x14005c766
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14005c76c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14005c7ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14005c7e1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14005c7e1
mov rax, qword [rbp - 8]
jmp 0x14005c7ff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14005c7b4
mov eax, 0
add rsp, 0x20
pop rbp
ret