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

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x38
mov rsi, qword [rcx + 0xa8]
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
mov r12, qword [rcx]
test rsi, rsi
je 0x18009b648
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], r13
xor r13d, r13d
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x30], r15
nop dword [rax + rax]
movsxd rbp, dword [rsi + 0x10]
movzx eax, byte [rbx + 0x1f]
mov r14d, dword [rsi + 0x14]
shl rbp, 5
add rbp, qword [r12 + 0x20]
test al, al
jne 0x18009b4b2
inc dword [rbx + 0x38]
mov r15d, dword [rbx + 0x38]
jmp 0x18009b4c2
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r15d, dword [rbx + rax*4 + 0xe8]
movsxd rcx, dword [rdi + 0x90]
lea r8d, [r14 + 2]
lea edx, [rcx + 7]
cmp dword [rdi + 0x94], ecx
jg 0x18009b4ef
mov r9d, edx
mov dword [rsp + 0x20], r14d
mov edx, 0x37
mov rcx, rdi
call fcn.180053f80
jmp 0x18009b51d
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x37
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r13
mov r9, qword [rbp + 0x18]
xor edx, edx
mov r8d, dword [rsi + 0x10]
mov rcx, rbx
mov dword [rsp + 0x20], 0x71
mov r9, qword [r9 + 0x68]
call fcn.18009a6e0
mov eax, dword [rdi + 0x90]
add eax, 5
cmp eax, dword [rdi + 0x94]
jle 0x18009b55c
mov rcx, rdi
call fcn.180053e40
test eax, eax
jne 0x18009b634
movsxd rax, dword [rdi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8 + 8], 2
mov byte [rax + rcx*8], 0x33
mov dword [rax + rcx*8 + 4], r13d
lea rdx, [rax + rcx*8]
mov eax, dword [rdi + 0x90]
mov dword [rdx + 0xc], r13d
lea ecx, [r14 + 1]
mov byte [rdx + 1], r13b
add eax, 2
mov dword [rdx + 8], eax
lea eax, [r14 - 1]
mov qword [rdx + 0x10], r13
mov word [rdx + 2], r13w
mov qword [rdx + 0x18], 0x7f
mov qword [rdx + 0x20], r13
mov qword [rdx + 0x28], r13
mov qword [rdx + 0x30], 0x61
mov qword [rdx + 0x38], 2
mov qword [rdx + 0x40], r13
mov qword [rdx + 0x48], 0x80
mov qword [rdx + 0x50], r13
mov qword [rdx + 0x58], r13
mov qword [rdx + 0x60], 0x7a
mov qword [rdx + 0x68], r13
mov qword [rdx + 0x70], r13
add dword [rdi + 0x90], 5
mov dword [rdx + 0x34], eax
mov eax, 8
mov word [rdx + 0x4a], ax
mov dword [rdx + 4], ecx
mov dword [rdx + 0x20], ecx
mov dword [rdx + 0x3c], r15d
mov dword [rdx + 0x50], r15d
mov dword [rdx + 0x54], ecx
test r15d, r15d
je 0x18009b628
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x18009b628
mov dword [rbx + rax*4 + 0xe8], r15d
inc byte [rbx + 0x1f]
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18009b490
mov r15, qword [rsp + 0x30]
mov r13, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r14, qword [rsp + 0x70]
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x180117060
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
lea rax, str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
movsxd r15, edx
mov rdi, qword [rcx + r15*8 + 0x28]
lea r14, [rcx + r15*8]
mov qword [rsp + 0x40], rax
lea rax, str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
mov qword [rsp + 0x48], rax
mov rbp, r9
mov rsi, r8
mov rbx, rcx
test rdi, rdi
jne 0x1801170c3
mov r9, qword [rcx + 0x10]
mov r8, qword [rcx + 8]
mov rdx, qword [rsp + r15*8 + 0x40]
call fcn.180116f50
mov rdi, rax
mov qword [r14 + 0x28], rax
cmp dword [rbx + 0x40], 0
jne 0x180117179
mov r8, rsi
mov edx, 1
mov rcx, rdi
call fcn.18005bf00
mov rcx, rdi
call fcn.18005aa50
cmp eax, 0x65
jne 0x18011711b
test r15d, r15d
lea rcx, str.__rowid
lea rax, str.__parent
mov r9, rbp
cmovne rax, rcx
lea rdx, str.Mapping___lld_____lld__missing_from__s_table
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov r8, rsi
call fcn.180116fe0
jmp 0x180117168
cmp eax, 0x64
jne 0x180117168
xor edx, edx
mov rcx, rdi
call fcn.18005b610
mov r9, rax
cmp rax, rbp
je 0x180117168
test r15d, r15d
mov qword [rsp + 0x30], rbp
lea rcx, str.__rowid
mov qword [rsp + 0x28], rsi
lea rax, str.__parent
mov r8, rsi
cmovne rax, rcx
lea rdx, str.Found___lld_____lld__in__s_table__expected___lld_____lld_
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.180116fe0
mov rcx, rdi
call fcn.180059b60
cmp dword [rbx + 0x40], 0
jne 0x180117179
mov dword [rbx + 0x40], eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret
Function at 0x18011ba70
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x20
mov r15, qword [rsp + 0x70]
xor r13d, r13d
movsxd rdi, r9d
mov r14d, edx
mov rsi, r8
mov rdx, rcx
mov r9d, r14d
mov dword [r15], r13d
test rcx, rcx
je 0x18011bbb3
lea eax, [rdi - 1]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], r12
lea r10d, [r13 + 0xd]
movsxd r8, eax
test eax, eax
js 0x18011bad8
nop dword [rax + rax]
movsx ecx, byte [r8 + rsi]
lea eax, [r10*8]
xor ecx, eax
xor r10d, ecx
sub r8, 1
jns 0x18011bac0
lea ecx, [r10*8]
mov eax, r10d
xor rcx, r9
xor rcx, rax
and ecx, 0x1ff
mov rbx, qword [rdx + rcx*8]
lea r12, [rdx + rcx*8]
test rbx, rbx
je 0x18011bb26
nop dword [rax]
cmp dword [rbx + 0xc], r14d
jne 0x18011bb1d
cmp dword [rbx + 8], edi
jne 0x18011bb1d
mov rcx, qword [rbx]
mov r8, rdi
mov rdx, rsi
call fcn.180153490
test eax, eax
je 0x18011bb99
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x18011bb00
mov qword [rsp + 0x58], rbp
lea rbp, [rdi + 0x18]
call fcn.1800e74e0
test eax, eax
jne 0x18011bba5
mov rcx, rbp
call fcn.18002a230
mov rbx, rax
test rax, rax
je 0x18011bba5
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.18013d7a0
lea rcx, [rbx + 0x18]
mov dword [rbx + 8], edi
mov r8, rdi
mov qword [rbx], rcx
mov rdx, rsi
mov dword [rbx + 0xc], r14d
call fcn.18013fe80
mov rcx, qword [r12]
mov eax, r13d
mov qword [rbx + 0x10], rcx
mov qword [r12], rbx
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r12, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
mov dword [r15], 1
mov eax, r13d
jmp 0x18011bb82
test rbp, rbp
mov eax, 7
cmovle eax, r13d
jmp 0x18011bb7d
mov eax, r13d
add rsp, 0x20
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x180128b60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rdi
push r13
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
lea rbp, [rcx + 0x3c]
xor r14d, r14d
mov r13, rdx
mov rdi, rcx
cmp dword [rbp], r14d
jne 0x180128d4d
mov qword [rsp + 0x20], r12
xor r12d, r12d
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x28], rsi
test r15d, r15d
jne 0x180128d3e
mov rbx, qword [r13 + 0x58]
mov rax, qword [rdi]
add rbx, r12
mov ecx, dword [rax + 0x88]
cmp dword [rbx + 0x18], ecx
jl 0x180128cbd
mov rax, qword [rbx + 0x10]
movsxd rdx, r14d
mov byte [rax], 1
movsxd rcx, dword [r13]
movsxd rax, dword [rbx]
mov r9d, dword [rbx + 0x18]
mov r8, qword [rbx + 0x10]
shl rcx, 6
add rcx, 0x20
add rdx, rcx
mov rcx, rdi
shl rdx, 0x1f
add rdx, rax
call fcn.1801232a0
lea r8d, [r14 + 2]
mov rdx, r13
mov rcx, rdi
call fcn.180128930
mov rbx, qword [r13 + 0x58]
add rbx, r12
cmp dword [rbp], r15d
jne 0x180128ca6
cmp dword [rbx + 0x38], r15d
jne 0x180128ca6
mov rdi, qword [rbx + 0x10]
lea rdx, [rsp + 0x78]
lea rcx, [rdi + 1]
call fcn.180139f70
movzx ecx, al
lea rdx, [rsp + 0x78]
inc rcx
add rcx, rdi
call fcn.180139f70
mov eax, dword [rbx]
mov dword [rbx + 0x20], eax
mov r8d, dword [rbx + 0x38]
add r8d, 9
cmp r8d, dword [rbx + 0x3c]
jbe 0x180128c69
lea rdx, [rbx + 0x30]
mov rcx, rbp
call fcn.18011b280
test eax, eax
jne 0x180128c78
movsxd rcx, dword [rbx + 0x38]
mov rax, qword [rbx + 0x30]
mov byte [rcx + rax], 0
inc dword [rbx + 0x38]
movsxd r8, dword [rbx]
lea rdx, [rbx + 0x30]
mov rcx, rbp
call fcn.18011b310
mov rdi, qword [rsp + 0x78]
lea rdx, [rbx + 0x30]
mov r8, rdi
mov rcx, rbp
call fcn.18011b310
mov dword [rbx + 0x24], 1
mov qword [rbx + 0x28], rdi
inc dword [rbx]
mov r8, qword [rsp + 0x70]
mov dword [rbx + 0x18], 0
mov dword [rbx + 4], 0
jmp 0x180128cc3
mov r15d, 1
cmp dword [rbx + 4], 0
je 0x180128cd3
sub r8, qword [rbx + 8]
lea rdi, [rbx + 0x10]
jmp 0x180128d0d
test r14d, r14d
jne 0x180128cde
mov esi, dword [r13 + 8]
jmp 0x180128ce1
mov esi, dword [rbx - 0x20]
xor r8d, r8d
lea rdi, [rbx + 0x10]
test r15d, r15d
mov rdx, rdi
mov rcx, rbp
sete r8b
call fcn.18011b310
movsxd r8, esi
mov rdx, rdi
mov rcx, rbp
call fcn.18011b310
mov r8, qword [rsp + 0x70]
mov rdx, rdi
mov rcx, rbp
call fcn.18011b310
mov r8, qword [rsp + 0x70]
inc r14d
mov rdi, qword [rsp + 0x60]
add r12, 0x20
mov qword [rbx + 8], r8
mov dword [rbx + 4], 1
cmp dword [rbp], 0
je 0x180128ba2
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x68]
mov r12, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x18012b380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rdi, r9
mov rsi, rcx
xor r9d, r9d
mov rax, 0xffffffffffffffff
mov qword [rsp + 0x60], r9
inc rax
cmp byte [r8 + rax], r9b
jne 0x18012b3a4
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x40], rcx
mov rcx, rsi
mov dword [rsp + 0x38], r9d
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
mov r8d, 0x40
call fcn.180128370
cmp dword [rsi + 0x3c], 0
mov rbx, qword [rsp + 0x60]
jne 0x18012b4b0
cmp byte [rbx + 0x14], 0
jne 0x18012b4b0
mov rax, qword [rbx + 0x58]
movzx ecx, word [rax + 4]
imul rax, rcx, 0x88
cmp qword [rax + rbx + 0xd8], rdi
jge 0x18012b47c
mov r9, rdi
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call fcn.1801275d0
mov rdx, rbx
mov rcx, rsi
call fcn.180128750
test eax, eax
jne 0x18012b47c
mov rax, qword [rbx + 0x58]
movzx ecx, word [rax + 4]
imul rax, rcx, 0x88
cmp dword [rbx + 0x44], 0
mov rcx, qword [rax + rbx + 0xd8]
jne 0x18012b454
cmp rcx, rdi
jge 0x18012b47c
jmp 0x18012b459
cmp rcx, rdi
jle 0x18012b47c
mov r9, rdi
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call fcn.1801275d0
mov rdx, rbx
mov rcx, rsi
call fcn.180128750
test eax, eax
je 0x18012b430
cmp dword [rsi + 0x3c], 0
jne 0x18012b4b0
cmp byte [rbx + 0x14], 0
jne 0x18012b4b0
mov rax, qword [rbx + 0x58]
movzx edx, word [rax + 4]
imul rax, rdx, 0x88
cmp rdi, qword [rax + rbx + 0xd8]
jne 0x18012b4b0
lea rdx, [rbx + 0x60]
mov rcx, rsi
add rdx, rax
call fcn.18012a7f0
mov rcx, rbx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
jmp fcn.180127050
Function at 0x180139950
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
sub rsp, 0x20
mov edi, edx
cmp ecx, 0x80
jge 0x180139972
lea edx, [rcx - 0x41]
cmp edx, 0x19
lea eax, [rcx + 0x20]
cmova eax, ecx
add rsp, 0x20
pop rdi
ret
cmp ecx, 0x10000
jge 0x180139a37
xor r10d, r10d
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
mov r9d, 0xa2
mov r11d, r10d
lea rsi, [0x180000000]
lea ebx, [r10 - 1]
nop
lea eax, [r11 + r9]
mov r8d, ecx
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
movzx edx, word [rsi + rdx*4 + 0x165fd0]
sub r8d, edx
mov edx, eax
cmovs edx, ebx
test r8d, r8d
movsxd rbx, edx
lea edx, [rax + 1]
cmovs edx, r11d
dec eax
test r8d, r8d
mov r11d, edx
cmovs r9d, eax
cmp r9d, edx
jge 0x1801399a0
lea r8, [rbx*4 + 0x165fd0]
mov rbx, qword [rsp + 0x30]
movzx edx, word [r8 + rsi]
movzx eax, byte [r8 + rsi + 3]
add eax, edx
cmp ecx, eax
jge 0x180139a1a
movzx eax, byte [r8 + rsi + 2]
xor edx, ecx
and edx, eax
test dl, 1
jne 0x180139a1a
shr rax, 1
movzx eax, word [rsi + rax*2 + 0x1675c0]
add eax, ecx
movzx ecx, ax
mov rsi, qword [rsp + 0x38]
test edi, edi
je 0x180139a45
cmp edi, 2
sete r10b
mov edx, r10d
add rsp, 0x20
pop rdi
jmp fcn.1801093c0
lea eax, [rcx - 0x10400]
cmp eax, 0x27
lea eax, [rcx + 0x28]
jbe 0x180139a47
mov eax, ecx
add rsp, 0x20
pop rdi
ret
Function at 0x14002a2d0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14002a2dd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14002a2ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14002a2d5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14002a305
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14002a2f2
sub eax, 3
jb 0x14002a31f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14002a356
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14002a346
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14002a344
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14002a333
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14002a292
jmp 0x14002a2dd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x14800
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14002a3a2
cmp rsi, rcx
jae 0x14002a3aa
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14002a389
cmp al, 0x8f
ja 0x14002a389
cmp byte [rsi - 2], 0xf
je 0x14002a38f
sub al, 0xe8
cmp al, 1
ja 0x14002a373
cmp rsi, rcx
jae 0x14002a3aa
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14002a379
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14002a3aa
lodsb al, byte [rsi]
jmp 0x14002a389
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x27000]
mov eax, dword [rdi]
or eax, eax
je 0x14002a413
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2a1dc]
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 0x14002a3b7
jns 0x14002a3ec
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14002a3f6
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 0x14002a40d
mov qword [rbx], rax
add rbx, 8
jmp 0x14002a3d7
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 0x14002a44d
cmp al, 0xef
ja 0x14002a43f
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14002a41f
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14002a42e
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 + 0x227]
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 0x14002a4a1
sub rsp, 0xffffffffffffff80
jmp 0x140014830
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140041490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400414a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140021610
jmp 0x14000123c
mov rax, qword [0x1400414a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400414a0]
mov dword [rax], 1
mov rax, qword [0x1400414e0]
mov rdx, rax
mov rax, qword [0x1400414d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140045024], 1
mov rax, qword [0x1400414a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400414c0]
mov rdx, rax
mov rax, qword [0x1400414b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400414a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140041490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1400413e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400413e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.140020898
mov rax, qword [0x140041520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140041480]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140020090
mov eax, dword [0x140045004]
lea rdx, [0x140045008]
mov ecx, eax
call fcn.14000147c
call fcn.14001fe27
mov rax, qword [0x140041410]
mov rax, qword [rax]
mov rdx, qword [0x140045010]
mov qword [rax], rdx
mov rcx, qword [0x140045010]
mov rdx, qword [0x140045008]
mov eax, dword [0x140045004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14004501c], eax
mov eax, dword [0x140045020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14004501c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140045024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14004501c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140041440]
mov dword [rax], 1
mov rax, qword [0x140041450]
mov dword [rax], 1
mov rax, qword [0x140041460]
mov dword [rax], 1
mov rax, qword [0x140041400]
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 0x1400200a0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140021400
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x140020d72
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140045168]
test eax, eax
je 0x140020e0a
lea rax, [0x140045140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140045170]
mov qword [rbp - 8], rax
jmp 0x140020dee
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 0x140020de2
cmp qword [rbp - 0x10], 0
je 0x140020de2
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 0x140020da8
lea rax, [0x140045140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140020e0b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140020f10
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 0x140020f38
mov eax, 0
jmp 0x140020f86
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 0x140020f61
mov eax, 0
jmp 0x140020f86
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 0x140020f81
mov eax, 0
jmp 0x140020f86
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140020f8c
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 0x14002100a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140021001
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 0x140021001
mov rax, qword [rbp - 8]
jmp 0x14002101f
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 0x140020fd4
mov eax, 0
add rsp, 0x20
pop rbp
ret