joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004364bf
Capabilities:
Get file attributes

Disassembly:
push rdi
push rbx
sub rsp, 0xb8
mov rbx, rcx
mov r8d, 0x23b
lea rdx, global___FUNCTION__.183
lea rcx, [0x100459f2c]
call dbg.updatecontext_f
test rbx, rbx
je 0x1004365e9
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sym.stat
test eax, eax
jns 0x100436530
mov dword [0x10046b430], 0xffffffff
call sym.__errno
mov ecx, dword [rax]
call sym.strerror
mov r9, rax
mov r8, rbx
lea rdx, str.Non_posso_accedere_a__s__sto_ignorando:__s
mov ecx, 1
call dbg.outerror
jmp 0x1004365e9
mov rcx, rbx
call sym.ruby_script
mov rax, qword [rsp + 0x70]
mov qword [0x10046b428], rax
mov eax, 0
mov rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
lea rdx, [rcx - 1]
mov rcx, rbx
call sym.rb_str_new
lea r8, [rsp + 0x2c]
mov edx, 0
mov rcx, rax
call sym.rb_load_protect
cmp dword [rsp + 0x2c], 0
je 0x1004365ae
call sym.__errno
mov ecx, dword [rax]
call sym.strerror
mov r9, rax
mov r8d, dword [rsp + 0x2c]
lea rdx, str.ruby_exec_failed_with__d:__s
mov ecx, 1
call dbg.outerror
mov dword [0x10046b430], 1
jmp 0x1004365e9
mov dword [0x10046b430], 1
mov r8, qword [0x10046b408]
mov edx, 0
mov ecx, 0
call sym.rb_class_new_instance
mov qword [0x100448120], rax
lea rdx, [0x100448120]
lea rcx, str.objIrofferEvent
call sym.rb_define_variable
nop
add rsp, 0xb8
pop rbx
pop rdi
ret

Function at 0x100437402
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0xa0
test ecx, ecx
je 0x100437496
mov rax, qword [0x1004632d0]
mov rbx, qword [rax + 0x7840]
mov r8d, 0x25b
lea rdx, global___FUNCTION__.153
lea rcx, [0x100459f2c]
call dbg.updatecontext_f
test rbx, rbx
je 0x1004374aa
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sym.stat
test eax, eax
jns 0x10043747e
mov dword [0x10046b430], 0xffffffff
call sym.__errno
mov ecx, dword [rax]
call sym.strerror
mov r9, rax
mov r8, rbx
lea rdx, str.Non_posso_accedere_a__s__sto_ignorando:__s
mov ecx, 1
call dbg.outerror
jmp 0x1004374aa
mov rax, qword [0x10046b428]
cmp qword [rsp + 0x60], rax
je 0x1004374aa
mov rcx, rbx
call dbg.load_script
jmp 0x1004374aa
mov rax, qword [0x1004632d0]
mov rcx, qword [rax + 0x7840]
call dbg.load_script
nop
add rsp, 0xa0
pop rbx
ret
Function at 0x10043785b
Capabilities:
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
mov rbx, rcx
mov rbp, rdx
mov r8d, 0x320
lea rdx, global___FUNCTION__.226
lea rcx, [0x100459f2c]
call dbg.updatecontext_f
mov eax, 1
test rbx, rbx
je 0x1004379b1
lea rdx, [rsp + 0x40]
mov rcx, rbx
call sym.stat
test eax, eax
jns 0x1004378d1
call sym.__errno
mov ecx, dword [rax]
call sym.strerror
mov r9, rax
mov r8, rbx
lea rdx, str.Non_posso_accedere_a__s__sto_ignorando:__s
mov ecx, 1
call dbg.outerror
mov eax, 1
jmp 0x1004379b1
mov rcx, rbx
call sym.ruby_script
mov dword [rsp + 0x20], 0x32c
lea r9, [0x100459f2c]
lea r8, global___FUNCTION__.226
mov edx, 0
mov ecx, 0x200
call dbg.mymalloc2
mov rsi, rax
mov r9, rbp
lea r8, str._stdout__File.new___s____w__
mov edx, 0x200
mov rcx, rax
call sym.ruby_snprintf
lea rbp, [rsp + 0x3c]
mov rdx, rbp
mov rcx, rsi
call sym.rb_eval_string_protect
mov rcx, rsi
call dbg.mydelete2
mov eax, 0
mov rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
lea rdx, [rcx - 1]
mov rcx, rbx
call sym.rb_str_new
mov r8, rbp
mov edx, 0
mov rcx, rax
call sym.rb_load_protect
cmp dword [rsp + 0x3c], 0
je 0x100437995
call sym.__errno
mov ecx, dword [rax]
call sym.strerror
mov r9, rax
mov r8d, dword [rsp + 0x3c]
lea rdx, str.ruby_exec_failed_with__d:__s
mov ecx, 1
call dbg.outerror
mov ecx, dword [rsp + 0x3c]
call dbg.iroffer_ruby_errro
lea rdx, [rsp + 0x3c]
lea rcx, str._stdout.close
call sym.rb_eval_string_protect
cmp dword [rsp + 0x3c], 0
setne al
movzx eax, al
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x1004409d0
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
mov rax, qword [rdx]
mov r11, qword [r8]
mov r9, rcx
lea rsi, [rcx + 0x80]
xor rax, qword [r9]
mov rbx, rax
shr rax, 0x10
mov r10, rbx
shr r10, 0x18
movzx r10d, r10b
movzx eax, al
mov rax, qword [rcx + rax*8 + 0x890]
add rax, qword [rcx + r10*8 + 0x90]
movzx edi, bh
xor rax, qword [rcx + rdi*8 + 0x1090]
movzx r10d, bl
add rax, qword [rcx + r10*8 + 0x1890]
xor rax, r11
add r9, 8
mov r11, rbx
cmp r9, rsi
jne 0x1004409e3
xor rax, qword [rcx + 0x80]
xor rbx, qword [rcx + 0x88]
mov qword [rdx], rbx
mov qword [r8], rax
pop rbx
pop rsi
pop rdi
ret

Function at 0x100440a49
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
mov rax, qword [rdx]
mov r11, qword [r8]
lea r9, [rcx + 0x88]
lea rsi, [rcx + 8]
xor rax, qword [r9]
mov rbx, rax
shr rax, 0x10
mov r10, rbx
shr r10, 0x18
movzx r10d, r10b
movzx eax, al
mov rax, qword [rcx + rax*8 + 0x890]
add rax, qword [rcx + r10*8 + 0x90]
movzx edi, bh
xor rax, qword [rcx + rdi*8 + 0x1090]
movzx r10d, bl
add rax, qword [rcx + r10*8 + 0x1890]
xor rax, r11
sub r9, 8
mov r11, rbx
cmp r9, rsi
jne 0x100440a5d
xor rax, qword [rcx + 8]
xor rbx, qword [rcx]
mov qword [rdx], rbx
mov qword [r8], rax
pop rbx
pop rsi
pop rdi
ret

Function at 0x100441277
Capabilities:
Get socket status

Disassembly:
push rsi
push rbx
sub rsp, 0x68
lea rax, [rsp + 0x40]
add rax, 1
mov byte [rax - 1], 0
lea rdx, [rsp + 0x60]
cmp rax, rdx
jne 0x100441282
movsxd rbx, ecx
shr rbx, 6
mov esi, 1
shl rsi, cl
or qword [rsp + rbx*8 + 0x40], rsi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rdx, [rsp + 0x40]
add ecx, 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
call sym.select
test eax, eax
js 0x1004412ee
test qword [rsp + rbx*8 + 0x40], rsi
setne al
movzx eax, al
jmp 0x1004412f3
mov eax, 0
add rsp, 0x68
pop rbx
pop rsi
ret

Function at 0x1004412fa
Capabilities:
Get socket status

Disassembly:
push rsi
push rbx
sub rsp, 0x68
lea rax, [rsp + 0x40]
add rax, 1
mov byte [rax - 1], 0
lea rdx, [rsp + 0x60]
cmp rax, rdx
jne 0x100441305
movsxd rbx, ecx
shr rbx, 6
mov esi, 1
shl rsi, cl
or qword [rsp + rbx*8 + 0x40], rsi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
add ecx, 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0
lea r8, [rsp + 0x40]
mov edx, 0
call sym.select
test eax, eax
js 0x100441370
test qword [rsp + rbx*8 + 0x40], rsi
setne al
movzx eax, al
jmp 0x100441375
mov eax, 0
add rsp, 0x68
pop rbx
pop rsi
ret
Function at 0x100441b45
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x230
mov rdi, rdx
mov qword [rsp + 0x260], r8
mov qword [rsp + 0x268], r9
mov eax, ecx
and eax, 0x80
cmp eax, 1
sbb esi, esi
and esi, 2
add esi, 5
mov ebx, ecx
and bl, 0x7f
mov r8d, 0x53
lea rdx, global___FUNCTION__.120
lea rcx, str.src.it_iroffer_utilities.c
call dbg.updatecontext_f
lea r9, [rsp + 0x260]
mov qword [rsp + 0x28], r9
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 0x200
call sym.vsnprintf
cmp eax, 0x1ff
jbe 0x100441c12
movabs rax, 0x524f52524554554f
mov qword [rsp + 0x30], rax
movabs rax, 0x754f203a544e492d
mov qword [rsp + 0x38], rax
movabs rax, 0x6f72742074757074
mov qword [rsp + 0x40], rax
movabs rax, 0x6e617267206f7070
mov qword [rsp + 0x48], rax
movabs rax, 0x6f6e6769202c6564
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x6f746172
mov word [rsp + 0x5c], 0x21
test ebx, ebx
jne 0x100441c87
lea r9, [rsp + 0x30]
lea r8, str.ERRORE:__s
mov edx, 0x9f
mov ecx, esi
call dbg.ioutput
call dbg.tostdout_disable_buffering
call dbg.uninitscreen
mov rax, qword [0x1004632d0]
cmp dword [rax + 0x7964], 0
je 0x100441c59
lea rdx, [rsp + 0x30]
lea rcx, str._ERRORE:__s_n_n
call sym.printf
lea rcx, str.Iroffer_terminato__Errore__n_n
call dbg.mylog
mov rax, qword [0x1004632d0]
mov rcx, qword [rax + 0x7700]
test rcx, rcx
je 0x100441c7d
call sym.unlink
mov ecx, 1
call sym.exit
cmp ebx, 1
jne 0x100441ca6
lea r9, [rsp + 0x30]
lea r8, str.ATTENZIONE:__s
mov edx, 0x9f
mov ecx, esi
call dbg.ioutput
jmp 0x100441cc4
cmp ebx, 2
jne 0x100441cc4
lea r9, [rsp + 0x30]
lea r8, str.ATTENZIONE:__s
mov edx, 0x1f
mov ecx, esi
call dbg.ioutput
nop
add rsp, 0x230
pop rbx
pop rsi
pop rdi
ret
Function at 0x100444f00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov dword [rsp + 0xa0], ecx
mov qword [rsp + 0xa8], rdx
mov rcx, qword [0x1004632d0]
mov ebx, dword [rcx + 0xb800]
add rcx, 0xb610
call dbg.irlist_size
add eax, ebx
mov edi, eax
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0xa8]
cmp word [rax], 2
mov edx, 0x1c
mov eax, 0x10
cmovne eax, edx
mov dword [rsp + 0x4c], eax
test edi, edi
jle 0x1004450a4
mov r13d, 0
mov rax, qword [0x1004632d0]
add rax, 0xb610
mov qword [rsp + 0x38], rax
mov rax, qword [0x1004632d0]
lea r15, [rax + 0xb610]
mov rax, qword [0x1004632d0]
mov esi, dword [rax + 0x789c]
test esi, esi
je 0x10044504c
add esi, r13d
movzx edx, si
cmp edx, dword [rax + 0x78a0]
ja 0x100445170
mov rcx, qword [rsp + 0x38]
call dbg.irlist_get_head
mov rbx, rax
test rax, rax
je 0x10044503a
mov edi, 0
mov rbp, qword [0x1004632d0]
mov r12d, 1
mov r14, rbp
mov rax, qword [rbx]
add rax, 0x708
cmp rax, qword [rbp + 0xa9d0]
jge 0x10044501e
cmp dword [r14 + 0x78b8], 0
je 0x10044500e
movzx r9d, word [rbx + 8]
lea r8, str.Lettura_porta_scaduta__d
mov edx, 0x21
mov ecx, r12d
call dbg.ioutput
mov rdx, rbx
mov rcx, r15
call dbg.irlist_delete
mov rbx, rax
jmp 0x100445031
cmp si, word [rbx + 8]
cmove edi, r12d
mov rcx, rbx
call dbg.irlist_get_next
mov rbx, rax
test rbx, rbx
jne 0x100444fd9
test edi, edi
jne 0x10044508b
mov eax, esi
xchg ah, al
mov rdi, qword [rsp + 0xa8]
mov word [rdi + 2], ax
jmp 0x10044505a
mov rax, qword [rsp + 0xa8]
mov word [rax + 2], 0
mov r8d, dword [rsp + 0x4c]
mov rdx, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0xa0]
call sym.bind
test eax, eax
jns 0x1004450aa
mov rax, qword [0x1004632d0]
cmp dword [rax + 0x789c], 0
je 0x100445170
add r13d, 1
cmp dword [rsp + 0x34], r13d
jne 0x100444f8b
mov eax, 0xffffffff
jmp 0x100445175
mov r13d, 0
cmp r13d, dword [rsp + 0x34]
je 0x100445169
lea r8, [rsp + 0x4c]
mov rdx, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0xa0]
call sub.cygwin1.dll_getsockname
test eax, eax
jns 0x1004450ed
lea rdx, str.Impossibile_Recuperare_il_numero_della_porta__Terminato
mov ecx, 1
call dbg.outerror
mov eax, 0xffffffff
jmp 0x100445175
mov rcx, qword [rsp + 0xa8]
call dbg.get_port
mov esi, eax
mov rax, qword [0x1004632d0]
cmp dword [rax + 0x78b8], 0
je 0x100445126
movzx r9d, si
lea r8, str.In_ascolto_nella_porta__d
mov edx, 0x21
mov ecx, 1
call dbg.ioutput
mov dword [rsp + 0x20], 0x889
lea r9, str.src.it_iroffer_utilities.c
lea r8, global___FUNCTION__.169
mov edx, 0x10
mov rbx, qword [0x1004632d0]
lea rcx, [rbx + 0xb610]
call dbg.irlist_add2
mov word [rax + 8], si
mov rdx, qword [rbx + 0xa9d0]
mov qword [rax], rdx
mov eax, 0
jmp 0x100445175
mov eax, 0xffffffff
jmp 0x100445175
mov eax, 0xffffffff
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000dbf0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14000dbfd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14000dc0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14000dbf5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14000dc25
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14000dc12
sub eax, 3
jb 0x14000dc3f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14000dc76
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14000dc66
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14000dc64
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14000dc53
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14000dbb2
jmp 0x14000dbfd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1c00
mov dl, 4
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14000dcc2
cmp rsi, rcx
jae 0x14000dcca
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14000dca9
cmp al, 0x8f
ja 0x14000dca9
cmp byte [rsi - 2], 0xf
je 0x14000dcaf
sub al, 0xe8
cmp al, 1
ja 0x14000dc93
cmp rsi, rcx
jae 0x14000dcca
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14000dc99
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14000dcca
lodsb al, byte [rsi]
jmp 0x14000dca9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xb000]
mov eax, dword [rdi]
or eax, eax
je 0x14000dd27
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xd000]
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 0x14000dcd7
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 0x14000dd21
mov qword [rbx], rax
add rbx, 8
jmp 0x14000dcf7
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 0x14000dd61
cmp al, 0xef
ja 0x14000dd53
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14000dd33
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14000dd42
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 + 0x1af]
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
mov byte [fcn.14000dde0], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.14000dde0
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14000ddd0
sub rsp, 0xffffffffffffff80
jmp 0x1400013f0
Function at 0x140008188
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x14000d868], rdi
je 0x1400081e8
cmp rax, rdi
jne 0x1400081db
mov r12d, 1
jmp 0x1400081e8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400081c1
mov eax, dword [0x14000d860]
cmp eax, 1
jne 0x1400081fd
lea ecx, [rax + 0x1e]
call fcn.140192000
jmp 0x140008264
mov eax, dword [0x14000d860]
cmp eax, ebx
jne 0x14000825a
mov dword [0x14000d860], 1
lea r13, [0x140001548]
lea rdi, [0x140001530]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x14000824c
cmp eax, ebx
jne 0x14000824c
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x140008241
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000822a
cmp eax, ebx
je 0x140008264
mov eax, 0xff
jmp 0x1400083ac
mov dword [0x14000b554], 1
mov eax, dword [0x14000d860]
cmp eax, 1
jne 0x14000828c
lea rdx, [0x140001528]
lea rcx, [0x1400014b8]
call sub.msvcrt.dll__initterm
mov dword [0x14000d860], 2
cmp r12d, ebx
jne 0x14000829b
mov rax, rbx
xchg qword [0x14000d868], rax
cmp qword [0x14000d870], rbx
je 0x1400082c3
lea rcx, [0x14000d870]
call fcn.14000862c
cmp eax, ebx
je 0x1400082c3
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x14000d870]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x1400082d9
mov eax, 0xff
jmp 0x1400083ac
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x14000835e
cmp word [rcx], bx
je 0x1400082f4
cmp edx, ebx
jne 0x14000835e
cmp word [rcx], bx
je 0x14000830a
cmp word [rcx], 0x20
ja 0x14000830a
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400082f4
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140003b3c
mov dword [0x14000b550], eax
cmp dword [0x14000b534], ebx
jne 0x140008348
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000b554], ebx
jne 0x14000835c
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000b550]
jmp 0x1400083ac
cmp word [rcx], 0x22
jne 0x140008371
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400082e5
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.1400087ec
add rsp, 0x28
jmp 0x140008188
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14002e110]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14002e120]
mov dword [rax], 1
mov rax, qword [0x14002e130]
mov dword [rax], 1
mov rax, qword [0x14002e0c0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14002e100]
mov dword [0x14003400c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x14002e1e0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14002e1c0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14002e050]
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 [sym._matherr]
call sym.__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 0x140007271
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x1400072a1
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen_1
mov rcx, rax
jmp 0x1400072a6
mov ecx, 0
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14001120d
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14001d740
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 sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x14001d7b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400342a4]
mov rbx, rcx
test esi, esi
jle 0x14001d8e0
mov rax, qword [0x1400342a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001d7fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14001d885
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14001d7e0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14001d902
mov rax, qword [0x1400342a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400342a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001d8e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001d87e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14001d890
add dword [0x1400342a4], 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 [0x1400342a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001d87e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x14001d808
mov rax, qword [0x1400342a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14001de70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140034300]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400342e0]
test rbx, rbx
je 0x14001decc
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 eax, eax
jne 0x14001dec3
test rsi, rsi
je 0x14001dec3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001dea8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]