joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400aca60
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x30
mov ecx, dword [0x1400bf0e0]
test ecx, ecx
je 0x1400acb59
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400aca90
cmp qword [rax + 8], 0
je 0x1400aca90
add rax, 0x10
jmp 0x1400acb53
mov ecx, dword [0x1400bf0e0]
test ecx, ecx
je 0x1400acb6c
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400acb33
mov rsi, rax
test rax, rax
jne 0x1400acb03
movzx eax, byte [0x1401351a8]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400acb92
mov rsi, rax
lea rax, dbg.destroy_value_core::cell::Cell__usize__bool___
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400bf0e0]
test ecx, ecx
je 0x1400acb7f
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x1400acb37
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400acb3f
xor eax, eax
jmp 0x1400acb53
call dbg.fallback_rng
mov rcx, rax
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
add rsp, 0x30
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call dbg.init
mov ecx, eax
jmp 0x1400aca75
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call dbg.init
mov ecx, eax
jmp 0x1400acaa0
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call dbg.init
mov ecx, eax
jmp 0x1400acafb
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2

Function at 0x1400acc0d
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x1400acc2e
dec ecx
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp sub.kernel32.dll_TlsSetValue
mov rcx, rax
call dbg.init
mov ecx, eax
jmp 0x1400acc21

Function at 0x1400ae887
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x1400ae8a0
dec ecx
add rsp, 0x28
jmp sub.kernel32.dll_TlsGetValue
mov rcx, rax
call dbg.init
mov ecx, eax
jmp 0x1400ae897

Function at 0x1400b2844
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1400b284b
test al, 1
je 0x1400b286a
test al, 2
jne 0x1400b287f
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1400fef28]
mov edx, 0x23
jmp 0x1400b2892
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1400fef68]
mov edx, 0x25
call dbg.panic
ud2
Function at 0x1400b3198
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call sym.__tokio::io::poll_evented::PollEvented_E__as_core::ops::deref::Deref_::deref::h88829682f12346ca
mov rcx, qword [rax]
movzx eax, bl
lea r9, [rsp + 0x2c]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400b31d3
xor eax, eax
jmp 0x1400b31e0
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x1400b343b
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rbp, r9
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0xc0]
lea rdi, [rsp + 0x3a]
lea r15, [rdx + 0x18]
xor ecx, ecx
cmp qword [rdx + 0x18], 0xffffffffffffffff
cmove r15, rcx
mov r12d, 0x7fffffff
cmp rax, r12
cmovb r12, rax
lea r13, [rsp + 0x52]
lea rsi, [rsp + 0x30]
mov qword [rsp + 0x40], r15
mov rdx, qword [r14 + 0x10]
mov rcx, rsi
mov r8, rbx
call sym.tokio::runtime::io::registration::Registration::poll_write_ready::h1aa2e54e709938e8
mov al, byte [rsp + 0x39]
cmp al, 3
je 0x1400b35aa
mov rcx, qword [rsp + 0x30]
cmp al, 2
je 0x1400b35b8
mov dl, byte [rsp + 0x38]
movzx r8d, word [rdi + 4]
mov word [r13 + 4], r8w
mov r8d, dword [rdi]
mov dword [r13], r8d
mov qword [rsp + 0x48], rcx
mov byte [rsp + 0x50], dl
mov byte [rsp + 0x51], al
mov rcx, r15
lea rdx, str.C:Users_fhnir.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.35.1_srciopoll_evented.rs
call sym.core::option::Option_T_::unwrap::h31a31293e0f04393
mov rcx, qword [r15]
mov rdx, rbp
mov r8d, r12d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x1400b35ca
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call sym.std::io::error::Error::kind::h2dbaaf5e71201e15
cmp al, 0xd
jne 0x1400b357a
mov rax, qword [r15 + 8]
test rax, rax
je 0x1400b357a
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x1400b35fc
mov r15, r14
mov r14, rbx
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call sym.mio::sys::windows::selector::SelectorInner::reregister::hc5b803b4a6e33cff
mov rbx, rax
xor ecx, ecx
call sym.core::ptr::drop_in_place_core::result::Result____std::io::error::Error__::hc09a63ebc57a5566
test rbx, rbx
je 0x1400b356f
mov ecx, 1
mov rdx, rsi
call sym.core::ptr::drop_in_place_core::result::Result_usize_std::io::error::Error__::hbd26da6b6e05058c
mov rsi, rbx
mov rbx, r14
mov r14, r15
mov r15, qword [rsp + 0x40]
mov rcx, rsi
call sym._ZN3std2io5error5Error4kind17h2dbaaf5e71201e15E.1057
cmp al, 0xd
jne 0x1400b35db
mov qword [rsp + 0x30], rsi
mov rcx, r14
lea rdx, [rsp + 0x48]
call sym.tokio::runtime::io::registration::Registration::clear_readiness::h89f31dd43b7c1d13
lea rsi, [rsp + 0x30]
mov rcx, rsi
call sym.core::ptr::drop_in_place_std::io::error::Error_::hbc8bd1a0fb538c34
jmp 0x1400b3491
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x1400b35eb
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rcx
jmp 0x1400b35eb
cdqe
mov rcx, qword [rsp + 0x28]
and qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x1400b35eb
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x1400bd3a0
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 0x1400bd410
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140135224]
mov rbx, rcx
test esi, esi
jle 0x1400bd540
mov rax, qword [0x140135228]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400bd45b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400bd4e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400bd440
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400bd562
mov rax, qword [0x140135228]
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 [0x140135228]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400bd547
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400bd4de
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400bd4f0
add dword [0x140135224], 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 [0x140135228]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400bd4de
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 0x1400bd468
mov rax, qword [0x140135228]
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 0x1400bdaf0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140135280]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140135260]
test rbx, rbx
je 0x1400bdb4c
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 0x1400bdb43
test eax, eax
jne 0x1400bdb43
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400bdb28
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 0x1400bdd60
Capabilities:
Parse pe header

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

Function at 0x1400bdd90
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 0x1400bdddd
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 0x1400bddd4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400bdddf
add rax, 0x28
cmp rax, r9
jne 0x1400bddc0
xor eax, eax
ret

Function at 0x1400bdde0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400bde70
mov rdx, qword [0x140125140]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400bde5e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400bde5e
cmp word [rax + 0x18], 0x20b
jne 0x1400bde5e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400bde70
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400bde49
add rbx, 0x28
cmp rbx, rdi
je 0x1400bde70
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400bde40
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 0x1400bde80
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140125140]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400bdea0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400bdea8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400bdea0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400bdefd
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 0x1400bdef4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400bdea0
add rax, 0x28
cmp rax, r9
jne 0x1400bdee0
xor eax, eax
ret

Function at 0x1400bdf00
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x140125140]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400bdf60
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400bdf68
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400bdf60
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400bdfb0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400bdfa7
test rcx, rcx
je 0x1400bdf60
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400bdf98
xor eax, eax
ret

Function at 0x1400bdfc0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140125140]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400be020
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400be028
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400be020
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400be020
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 0x1400be074
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400be080
add rdx, 0x28
cmp rdx, r9
jne 0x1400be060
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140125140]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400be0b2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400be0c0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400be0b2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400be0b2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400be0b2
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 0x1400be115
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400be128
add rdx, 0x28
cmp r10, rdx
jne 0x1400be100
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400be137
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400be147
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400be11e
test ecx, ecx
jg 0x1400be130
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400010cd
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x140284338
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1402843c5
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1402843c5
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1402843c5
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1402843ac
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1402843a6
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1402843ae
add rdx, 0x28
jmp 0x14028438b
xor edx, edx
test rdx, rdx
jne 0x1402843b7
xor al, al
jmp 0x1402843cb
cmp dword [rdx + 0x24], 0
jge 0x1402843c1
xor al, al
jmp 0x1402843cb
mov al, 1
jmp 0x1402843cb
xor al, al
jmp 0x1402843cb
add rsp, 0x18
ret

Function at 0x140001127
Capabilities:
Terminate process

Disassembly:
jmp 0x140283b40
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x14000115e
Capabilities:
Terminate process

Disassembly:
jmp 0x140283b28
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.140001203
test al, al
je 0x1402839f3
xor sil, sil
mov byte [rsp + 0x20], sil
call fcn.1400011e0
mov bl, al
mov ecx, dword [0x14028c838]
cmp ecx, 1
je 0x1402839fe
test ecx, ecx
jne 0x140283929
mov dword [0x14028c838], 1
lea rdx, [0x140289660]
lea rcx, [0x140289330]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
test eax, eax
je 0x14028390a
mov eax, 0xff
jmp 0x1402839e3
lea rdx, [0x140289220]
lea rcx, [section..rdata]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x14028c838], 2
jmp 0x140283931
mov sil, 1
mov byte [rsp + 0x20], sil
mov cl, bl
call fcn.1400011cc
call fcn.140001181
mov rbx, rax
cmp qword [rax], 0
je 0x140283964
mov rcx, rax
call fcn.1400010cd
test al, al
je 0x140283964
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x140290020]
call fcn.14000119f
mov rbx, rax
cmp qword [rax], 0
je 0x140283986
mov rcx, rax
call fcn.1400010cd
test al, al
je 0x140283986
mov rcx, qword [rbx]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_narrow_environment
mov rdi, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argv
mov rbx, qword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
call fcn.140001159
mov ebx, eax
call fcn.140001163
test al, al
je 0x140283a08
test sil, sil
jne 0x1402839bd
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
xor edx, edx
mov cl, 1
call fcn.1400010c3
mov eax, ebx
jmp 0x1402839e3
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.1400011d6
nop
mov ecx, 7
call fcn.1400011d6
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
nop
int3
sub rsp, 0x28
call fcn.140001172
add rsp, 0x28
jmp 0x14028389c

Function at 0x140001163
Capabilities:
Parse pe header

Disassembly:
jmp 0x1402848e8
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140284932
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140284932
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140284932
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140284932
cmp dword [rcx + 0x84], 0xe
jbe 0x140284932
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140284934
xor al, al
add rsp, 0x28
ret
Function at 0x1402848e8
Capabilities:
Parse pe header

Disassembly:
jmp 0x1402848e8
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140284932
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140284932
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140284932
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140284932
cmp dword [rcx + 0x84], 0xe
jbe 0x140284932
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140284934
xor al, al
add rsp, 0x28
ret

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

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

Disassembly:
mov rax, qword [0x140008008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140008008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140008008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140008008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x180001a30
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180001a58
xor eax, eax
lea r8, [sym.hello_world.dll_MessageBoxThread]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
push rcx
mov rdx, qword [rdx + 0x20]
push rsi
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov r8d, dword [rax + 0x20]
mov ecx, dword [rax + 0x18]
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021