joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140044310
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400444b8
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140044375
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140044375
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140044375
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1400443ac
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140044402
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140044402
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140044402
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140044402
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140044402
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.140043dc0
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140044464
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14001f5e0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140044190
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400444b0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14001f5e0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140045c20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140074040]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140045cb5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140045d16
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14001f5e0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14000bb20
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x140045dd1
sub ecx, 1
je 0x140045e44
sub ecx, 1
je 0x140045d80
cmp ecx, 1
je 0x140045d63
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140062770]
call fcn.14001f5e0
jmp 0x140045e44
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140045950
test eax, eax
je 0x140045e44
jmp 0x140045cea
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140045e44
sub rax, rsi
cmp rax, rbp
jae 0x140045e44
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14001f760
jmp 0x140045e44
cmp r8d, 4
jle 0x140045e44
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140045e44
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14001f500
mov esi, eax
test eax, eax
je 0x140045e23
mov edx, 5
mov rcx, rbx
call fcn.140046910
mov eax, esi
jmp 0x140045cea
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14002d5d0
mov rcx, r14
call fcn.14002d8b0
test eax, eax
je 0x140045ce8
mov edx, 5
mov rcx, rbx
call fcn.140046910
mov eax, Ordinal_46
jmp 0x140045cea
Function at 0x14005a040
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14005a082
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14005a0c9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14005a122
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14005a0e0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14005a163
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140069aaa]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140069aab]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14005a130
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x401fb8
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov r12, rdx
test rcx, rcx
je 0x4020ca
mov rax, qword [rcx]
test rax, rax
jle 0x4020ca
mov dl, byte [rcx + 0x10]
or rbp, 0xffffffffffffffff
cmp dl, 0x2b
je 0x401ff5
xor ebx, ebx
cmp dl, 0x2d
jne 0x402003
mov ebp, 1
dec rax
je 0x4020ca
mov ebx, 1
mov al, byte [rdi + rbx + 0x10]
sub eax, 0x30
cmp al, 9
ja 0x4020ca
mov qword [r12], 0
movabs rsi, 0x7fffffffffffffd0
cmp qword [rdi], rbx
mov r8, qword [r12]
jle 0x402044
test rbx, rbx
jns 0x402037
mov rdx, qword [rdi]
jmp 0x402091
movzx eax, byte [rdi + rbx + 0x10]
lea edx, [rax - 0x30]
cmp dl, 9
jbe 0x40204c
cmp rbp, 0xffffffffffffffff
jne 0x4020b9
jmp 0x4020ab
lea rcx, [rax - 0x30]
add rax, rsi
mov r9d, 0xa
cqo
idiv r9
cmp rax, r8
jle 0x40206a
call fcn.00448f26
jmp 0x40207e
imul rax, r8, 0xa
jno 0x402075
call fcn.0044c4f5
sub rax, rcx
jo 0x402070
mov qword [r12], rax
add rbx, 1
jo 0x402070
mov rdx, qword [rdi]
cmp rdx, rbx
jle 0x402024
test rbx, rbx
jns 0x40209c
dec rdx
mov rcx, rbx
call fcn.0044cbbf
cmp byte [rdi + rbx + 0x10], 0x5f
jne 0x402024
add rbx, 1
jno 0x402087
jmp 0x402070
mov eax, 1
shl rax, 0x3f
cmp r8, rax
je 0x4020c5
imul r8, rbp
jo 0x402070
mov qword [r12], r8
jmp 0x4020cc
call fcn.00448f26
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x429d77
Capabilities:
Encode data using xor
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [rcx]
and eax, 0x3f
mov byte [rcx + rax + 0x28], pe_nt_image_headers64
mov rbx, rcx
inc rax
lea rsi, [rcx + 0x28]
lea rdi, [rcx + 8]
cmp rax, 0x38
jne 0x429dcd
mov eax, dword [rbx]
mov ecx, dword [rbx + 4]
mov edx, eax
shl eax, 3
shr edx, 0x1d
mov dword [rbx], eax
bswap eax
lea edx, [rdx + rcx*8]
mov rcx, rdi
mov dword [rbx + 0x64], eax
mov dword [rbx + 4], edx
bswap edx
mov dword [rbx + 0x60], edx
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp fcn.004030a6
cmp rax, 0x40
jne 0x429de0
mov rdx, rsi
mov rcx, rdi
call fcn.004030a6
xor eax, eax
mov byte [rbx + rax + 0x28], 0
inc rax
jmp 0x429d96

Function at 0x42b5ea
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
lea rbp, [rsp + 0x20]
mov rbx, rcx
mov r13, rdx
mov edx, 0x40
mov rcx, rbp
lea rsi, [rsp + 0xc8]
lea r12, [rbx + 0x68]
mov rdi, rbx
mov qword [rsp + 0x180], r8
call fcn.0040a777
mov rcx, rsi
mov edx, 0x68
call fcn.0040a777
mov ecx, 0x1a
mov edx, 0x68
rep movsd dword [rdi], dword [rsi]
lea rsi, [rsp + 0x60]
lea rdi, [rbx + 0x68]
mov rcx, rsi
call fcn.0040a777
mov r8, qword [rsp + 0x180]
mov ecx, 0x1a
movabs r9, 0xbb67ae856a09e667
rep movsd dword [rdi], dword [rsi]
mov qword [rbx + 0x70], r9
movabs rcx, 0xa54ff53a3c6ef372
movabs rdx, 0x9b05688c510e527f
movabs rax, 0x5be0cd191f83d9ab
test r8, r8
mov qword [rbx + 0x78], rcx
mov qword [rbx + 0x68], 0
mov qword [rbx + 0x80], rdx
mov qword [rbx + 0x88], rax
jle 0x42b6bd
cmp r8, 0x40
jg 0x42b6c1
mov ecx, r8d
mov rdi, rbp
mov rsi, r13
rep movsb byte [rdi], byte [rsi]
xor eax, eax
jmp 0x42b735
mov qword [rbx + 0x20], rax
mov qword [rbx + 8], r9
mov qword [rbx + 0x10], rcx
mov rcx, rbx
mov qword [rbx + 0x18], rdx
mov rdx, r13
mov qword [rbx], 0
call fcn.00429cd9
mov rcx, rbx
call fcn.00429d77
mov eax, dword [rbx + 8]
bswap eax
mov dword [rsp + 0x20], eax
mov eax, dword [rbx + 0xc]
bswap eax
mov dword [rsp + 0x24], eax
mov eax, dword [rbx + 0x10]
bswap eax
mov dword [rsp + 0x28], eax
mov eax, dword [rbx + 0x14]
bswap eax
mov dword [rsp + 0x2c], eax
mov eax, dword [rbx + 0x18]
bswap eax
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 0x1c]
bswap eax
mov dword [rsp + 0x34], eax
mov eax, dword [rbx + 0x20]
bswap eax
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 0x24]
bswap eax
mov dword [rsp + 0x3c], eax
jmp 0x42b6bd
mov dl, byte [rbp + rax]
mov ecx, edx
xor edx, 0x36
xor ecx, 0x5c
mov byte [rbx + rax + 0xd0], dl
mov byte [rbx + rax + 0x110], cl
inc rax
cmp rax, 0x40
jne 0x42b735
mov qword [rbx], 0
lea rdx, [rbx + 0xd0]
mov rcx, rbx
movabs rax, 0xbb67ae856a09e667
mov qword [rbx + 8], rax
mov r8d, 0x40
movabs rax, 0xa54ff53a3c6ef372
mov qword [rbx + 0x10], rax
movabs rax, 0x9b05688c510e527f
mov qword [rbx + 0x18], rax
movabs rax, 0x5be0cd191f83d9ab
mov qword [rbx + 0x20], rax
call fcn.00429cd9
lea rdx, [rbx + 0x110]
mov r8d, 0x40
mov rcx, r12
call fcn.00429cd9
nop
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x43bd25
Capabilities:
Hash data using murmur3

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
test rcx, rcx
je 0x43bd44
mov rbx, qword [rcx]
add rsi, 0x10
test rbx, rbx
jns 0x43bd46
call fcn.0044630a
xor ebx, ebx
lea r8, [rsp + 0x28]
mov edx, 4
mov rcx, rbx
call fcn.00420223
test al, al
je 0x43bd61
call fcn.0044c4f5
imul r9, qword [rsp + 0x28], 4
mov r8d, 0
mov edx, 0
jo 0x43bd5c
cmp r9, r8
jg 0x43bd84
mov r9, rbx
xor eax, eax
and r9d, 3
jmp 0x43bdde
test r8, r8
js 0x43bd8e
cmp r8, rbx
jl 0x43bd97
lea rdx, [rbx - 1]
mov rcx, r8
jmp 0x43bde9
mov ecx, dword [rsi + r8]
add r8, 4
jo 0x43bd5c
imul ecx, ecx, 0xcc9e2d51
rol ecx, 0xf
imul eax, ecx, 0x1b873593
xor eax, edx
rol eax, 0xd
lea eax, [rax + rax*4]
lea edx, [rax - 0x19ab949c]
jmp 0x43bd74
dec r9
mov rcx, r8
add rcx, r9
jo 0x43bd5c
test rcx, rcx
js 0x43bde5
cmp rcx, rbx
jge 0x43bde5
movzx ecx, byte [rsi + rcx]
shl eax, 8
or eax, ecx
test r9, r9
jne 0x43bdc0
jmp 0x43bdee
lea rdx, [rbx - 1]
call fcn.0044cbbf
imul eax, eax, 0xcc9e2d51
xor edx, ebx
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, edx
mov edx, eax
shr edx, 0x10
xor eax, edx
imul eax, eax, 0x85ebca6b
mov edx, eax
shr edx, 0xd
xor eax, edx
imul eax, eax, 0xc2b2ae35
mov edx, eax
shr edx, 0x10
xor eax, edx
add rsp, 0x38
pop rbx
pop rsi
ret
Function at 0x44aef1
Capabilities:
Write file on windows

Disassembly:
push rdi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rbx, rcx
mov r10, rdx
test rdx, rdx
je 0x44af1a
mov rdi, rdx
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
mov rdx, rcx
not rdx
lea r8, [rdx - 1]
mov rcx, r10
mov r9, rbx
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rdi
jmp fcn.00452258

Function at 0x44c8ce
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov edx, 0x30
mov rdi, rcx
mov rcx, qword [0x00473ec0]
call fcn.0044aac7
mov rcx, rdi
mov rbx, rax
mov rax, qword [0x004739e0]
mov rsi, qword [rbx + 0x18]
mov qword [rbx], rax
lea rax, str.IndexDefect
mov qword [rbx + 0x10], rax
call fcn.0044aa63
mov qword [rbx + 0x18], rax
test rsi, rsi
je 0x44c91e
mov rcx, rsi
call fcn.0044b758
mov qword [rsp + 0x20], 0x36
lea r9, str.fatal.nim
mov rcx, rbx
lea r8, str.sysFatal
lea rdx, str.IndexDefect
call fcn.0044c45f
nop

Function at 0x44c945
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov edx, 0x30
mov rdi, rcx
mov rcx, qword [0x00474120]
call fcn.0044aac7
mov rcx, rdi
mov rbx, rax
mov rax, qword [0x00473e60]
mov rsi, qword [rbx + 0x18]
mov qword [rbx], rax
lea rax, str.RangeDefect
mov qword [rbx + 0x10], rax
call fcn.0044aa63
mov qword [rbx + 0x18], rax
test rsi, rsi
je 0x44c995
mov rcx, rsi
call fcn.0044b758
mov qword [rsp + 0x20], 0x36
lea r9, str.fatal.nim
mov rcx, rbx
lea r8, str.sysFatal
lea rdx, str.RangeDefect
call fcn.0044c45f
nop

Function at 0x44c9bc
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
lea rcx, [0x004724c0]
call fcn.0044c945
nop

Function at 0x44c9cd
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov edx, 0x30
mov rdi, rcx
mov rcx, qword [0x00473e70]
call fcn.0044aac7
mov rcx, rdi
mov rbx, rax
mov rax, qword [0x00473760]
mov rsi, qword [rbx + 0x18]
mov qword [rbx], rax
lea rax, str.AssertionDefect
mov qword [rbx + 0x10], rax
call fcn.0044aa63
mov qword [rbx + 0x18], rax
test rsi, rsi
je 0x44ca1d
mov rcx, rsi
call fcn.0040a5c4
mov qword [rsp + 0x20], 0x36
lea r9, str.fatal.nim
mov rcx, rbx
lea r8, str.sysFatal
lea rdx, str.AssertionDefect
call fcn.0044c45f
nop

Function at 0x44ca44
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [0x00474ad0]
mov rcx, qword [rax]
test rcx, rcx
je 0x44ca5e
call fcn.0044c409
mov rcx, qword [0x00474130]
mov edx, 0x30
call fcn.0044aac7
lea rcx, [0x004725c0]
mov rbx, rax
mov rax, qword [0x004741a0]
mov rsi, qword [rbx + 0x18]
mov qword [rbx], rax
lea rax, str.ReraiseDefect
mov qword [rbx + 0x10], rax
call fcn.0044aa63
mov qword [rbx + 0x18], rax
test rsi, rsi
je 0x44caa8
mov rcx, rsi
call fcn.0044b758
mov qword [rsp + 0x20], 0x36
lea r9, str.fatal.nim
mov rcx, rbx
lea r8, str.sysFatal
lea rdx, str.ReraiseDefect
call fcn.0044c45f
nop
Function at 0x44cacf
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x148
mov byte [rsp + 0x2f], 1
mov al, byte [rsp + 0x2f]
mov rsi, rcx
mov qword [rsp + 0x168], rdx
test al, al
je 0x44cb1f
mov ecx, 2
call qword [fcn.00452300]
mov r8, qword [rsp + 0x168]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call fcn.00452258
nop
add rsp, 0x148
pop rbx
pop rsi
ret

Function at 0x44cbbf
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rdx
test rdx, rdx
js 0x44cbed
call fcn.0044cb9b
mov rcx, rbx
mov rdi, rax
call fcn.0044cb9b
xor edx, edx
mov rsi, rax
test rdi, rdi
je 0x44cbfe
mov rdx, qword [rdi]
jmp 0x44cbfe
mov rcx, qword [0x00474680]
call fcn.004432e5
mov rbx, rax
jmp 0x44cc49
xor eax, eax
test rsi, rsi
je 0x44cc08
mov rax, qword [rsi]
lea rcx, [rdx + rax + 0x13]
call fcn.0044aaef
mov rdx, qword [0x00474690]
mov rbx, rax
mov rcx, rax
call fcn.0040bfab
mov rdx, rdi
mov rcx, rbx
call fcn.00418ce4
lea rdx, [0x004724a0]
mov rcx, rbx
call fcn.0040bfab
mov rdx, rsi
mov rcx, rbx
call fcn.00418ce4
mov rcx, rbx
call fcn.0044c8ce
nop

Function at 0x44cc52
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rsi, qword [fcn.00452300]
xor ebx, ebx
mov qword [rsp + 0x28], rdx
mov r13, rcx
mov r15, qword [r13 + rbx*8]
mov ecx, 1
mov ebp, 0x80000000
mov r12d, 0xffffffff
call rsi
mov rcx, r15
mov rdi, rax
call fcn.00415984
lea rdx, [0x0047229f]
mov rcx, rdi
mov r8, rax
call sub.msvcrt.dll_fprintf
movsxd r14, eax
xor edx, edx
test r15, r15
je 0x44ccb4
mov rdx, qword [r15]
cmp r14, rdx
jge 0x44cd23
test eax, eax
jns 0x44ccd4
or rdx, 0xffffffffffffffff
test r15, r15
je 0x44cccc
mov rdx, qword [r15]
dec rdx
mov rcx, r14
call fcn.0044cbbf
cmp byte [r15 + r14 + 0x10], 0
jne 0x44ccfc
xor ecx, ecx
mov rdx, rdi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x44cd23
lea rax, [r14 + 1]
lea rdx, [rax + rbp]
cmp rdx, r12
jbe 0x44cca7
call fcn.0044c4f5
mov rdx, qword [r15]
cmp r14, rdx
jge 0x44ccc9
lea r8, [r15 + r14 + 0x10]
lea rdx, [0x0047229f]
mov rcx, rdi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x44cd23
cdqe
add rax, r14
jmp 0x44ccee
inc rbx
cmp qword [rsp + 0x28], rbx
jne 0x44cc73
mov ecx, 1
call rsi
mov r8d, 1
mov edx, 1
lea rcx, [0x0047229d]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rsi
mov rcx, rax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.00452258
Function at 0x44d2a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004a9b04]
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
test esi, esi
jle 0x44d454
mov rax, qword [0x004a9b08]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x44d2ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x44d379
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x44d2d0
mov rcx, rbx
call fcn.0044df70
test rax, rax
mov r12, rax
je 0x44d489
mov rax, qword [0x004a9b08]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.0044e0a0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004a9b08]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x44d46c
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x44d372
sub eax, 0x40
and eax, 0xffffffbf
jne 0x44d3f4
add dword [0x004a9b04], 1
cmp edi, 8
jae 0x44d3b0
test dil, 4
jne 0x44d440
test edi, edi
je 0x44d39c
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x44d45b
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rbp]
mov qword [rbx], rax
mov eax, edi
mov rdx, qword [rbp + rax - 8]
mov qword [rbx + rax - 8], rdx
lea rax, [rbx + 8]
and rax, 0xfffffffffffffff8
sub rbx, rax
sub rbp, rbx
add ebx, edi
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x44d39c
and ebx, 0xfffffff8
xor edx, edx
mov ecx, edx
add edx, 8
mov r8, qword [rbp + rcx]
cmp edx, ebx
mov qword [rax + rcx], r8
jb 0x44d3e0
jmp 0x44d39c
add rsi, qword [0x004a9b08]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x44d372
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00458450
nop dword [rax + rax]
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x44d39c
xor esi, esi
jmp 0x44d2f7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x44d39c
mov rax, qword [0x004a9b08]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rsi + 0x18]
call fcn.00458450
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00458450
nop
nop dword [rax]
Function at 0x44dbe0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004a9de0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004a9dc0]
test rbx, rbx
je 0x44dc34
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x44dc2b
test rsi, rsi
je 0x44dc2b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x44dc10
lea rcx, [0x004a9de0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x44df70
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00474950]
mov rdx, rcx
cmp word [r8], 0x5a4d
jne 0x44dfdd
mov rcx, r8
call fcn.0044de50
test eax, eax
je 0x44dfdd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x44dfdd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x44dfd4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x44dfdf
add rax, 0x28
cmp rax, r9
jne 0x44dfc0
xor eax, eax
add rsp, 0x28
ret

Function at 0x458450
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp fcn.00401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00452300
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
mov r8d, 0x1b
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00452300
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530