joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400972a0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x1400973c4
cmp r8d, 0xff
jne 0x140097301
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x1400972eb
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0xbb7d0]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.140073cd0
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.140073cd0
cmp r8d, 0xfb
jne 0x140097313
lea r9, str.WILL
jmp 0x140097351
cmp r8d, 0xfc
jne 0x140097325
lea r9, str.WONT
jmp 0x140097351
cmp r8d, 0xfd
jne 0x140097337
lea r9, [0x1400bc1f4]
jmp 0x140097351
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x1400973ad
cmp r10d, 0x27
jg 0x140097384
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0xbbdf0]
test r8, r8
jne 0x140097394
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.140073cd0
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x14009736b
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.140073cd0
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.140073cd0
add rsp, 0x38
ret

Function at 0x140097710
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14009776f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140073b50
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1400972a0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140097920
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140097ac8
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 0x140097985
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140097985
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140097985
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 0x1400979bc
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140097a12
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140097a12
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140097a12
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140097a12
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140097a12
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.1400973d0
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 0x140097a74
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140073b50
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400977a0
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 0x140097ac0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140073b50
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140099230
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400dc080]
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 0x1400992c5
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 0x140099326
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140073b50
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.1400acbd0
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 0x1400993e1
sub ecx, 1
je 0x140099454
sub ecx, 1
je 0x140099390
cmp ecx, 1
je 0x140099373
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400c4ec0]
call fcn.140073b50
jmp 0x140099454
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140098f60
test eax, eax
je 0x140099454
jmp 0x1400992fa
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 0x140099454
sub rax, rsi
cmp rax, rbp
jae 0x140099454
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140073cd0
jmp 0x140099454
cmp r8d, 4
jle 0x140099454
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 0x140099454
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140073a70
mov esi, eax
test eax, eax
je 0x140099433
mov edx, 5
mov rcx, rbx
call fcn.140099f20
mov eax, esi
jmp 0x1400992fa
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140082350
mov rcx, r14
call fcn.140082630
test eax, eax
je 0x1400992f8
mov edx, 5
mov rcx, rbx
call fcn.140099f20
mov eax, Ordinal_46
jmp 0x1400992fa
Function at 0x1400ac1f0
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 [0x1400dc020]
mov rdi, rax
test rax, rax
jne 0x1400ac232
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 0x1400ac279
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 0x1400ac2d2
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 0x1400ac290
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400ac313
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400bf392]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400bf393]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400ac2e0
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 0x1400ad3fc
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x1400a6d7d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400a6d8d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400a6d75
lea eax, [rcx + 1]
jmp 0x1400a6d9b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400a6dae
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400a6d94
sub eax, 3
jb 0x1400a6dce
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400a6e1d
sar eax, 1
movsxd rbp, eax
jb 0x1400a6e04
jmp 0x1400a6ddc
add ebx, ebx
jne 0x1400a6dda
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400a6e04
inc ecx
add ebx, ebx
jne 0x1400a6dea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400a6e04
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400a6dfd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400a6dec
add ecx, 2
jmp 0x1400a6e09
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400a6d32
jmp 0x1400a6d7d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xa200
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400a6e69
cmp rsi, rcx
jae 0x1400a6e71
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400a6e50
cmp al, 0x8f
ja 0x1400a6e50
cmp byte [rsi - 2], 0xf
je 0x1400a6e56
sub al, 0xe8
cmp al, 1
ja 0x1400a6e3a
cmp rsi, rcx
jae 0x1400a6e71
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400a6e40
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400a6e71
lodsb al, byte [rsi]
jmp 0x1400a6e50
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xa4000]
mov eax, dword [rdi]
or eax, eax
je 0x1400a6ece
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x131288]
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 0x1400a6e7e
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 0x1400a6ec8
mov qword [rbx], rax
add rbx, 8
jmp 0x1400a6e9e
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 0x1400a6f08
cmp al, 0xef
ja 0x1400a6efa
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400a6eda
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400a6ee9
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 + 0x247]
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 0x1400a6f5c
sub rsp, 0xffffffffffffff80
jmp 0x140001260
Function at 0x180096250
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x88
xor edx, edx
mov rax, qword [rsp + 0xa0]
movabs rcx, 0x100000000
div rcx
mov rax, rdx
cmp rax, 0x7fffffff
jbe 0x180096287
mov byte [rsp + 0x20], 1
jmp 0x18009628c
mov byte [rsp + 0x20], 0
xor edx, edx
mov rax, qword [rsp + 0xa0]
movabs rcx, 0x100000000
div rcx
movabs rcx, 0x100000000
imul rax, rcx
movzx ecx, byte [rsp + 0x20]
movabs rdx, 0x100000000
imul rcx, rdx
add rax, rcx
mov qword [rsp + 0x28], rax
movabs rax, 0x800000000000
cmp qword [rsp + 0x28], rax
jne 0x1800962ec
movabs rax, 0x7fff80000000
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x58]
lea rcx, [0x18051c180]
call fcn.180080e60
lea rdx, [rsp + 0x70]
lea rcx, [0x18051c180]
call fcn.180080910
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.180080670
movzx eax, al
test eax, eax
je 0x1800964da
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
movsx eax, byte [0x18051c0fa]
mov ecx, dword [0x18051c0fc]
imul ecx, eax
mov eax, ecx
mov eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], 0
cmp qword [rsp + 0x30], 0
jne 0x18009637a
xor edx, edx
mov eax, 0x10000
div dword [0x18051c0fc]
imul eax, dword [0x18051c0fc]
mov eax, eax
mov qword [rsp + 0x30], rax
mov r9d, 1
mov r8d, 0x2000
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180096479
mov eax, dword [0x18051c0fc]
mov r9d, 0x40
mov r8d, 0x1000
mov edx, eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x18009645c
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x68], eax
mov eax, dword [0x18051c0fc]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x50]
mov dword [rax], 0
mov rax, qword [rsp + 0x50]
mov ecx, dword [0x18051c0fc]
mov dword [rax + 4], ecx
lea rdx, [rsp + 0x28]
lea rcx, [0x18051c180]
call fcn.1800983b0
lea rcx, [rsp + 0x60]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x28]
lea rcx, [0x18051c180]
call fcn.1800983b0
jmp 0x1800964e8
mov dword [rsp + 0x40], 0x13f
lea rdx, [0x180494e58]
lea rcx, [rsp + 0x40]
call fcn.18020d4c8
xor eax, eax
jmp 0x1800964e8
mov eax, dword [0x18051c0fc]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x18009637a
mov eax, dword [0x18051c0fc]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x18009637a
mov dword [rsp + 0x44], 0x146
lea rdx, [0x180494e58]
lea rcx, [rsp + 0x44]
call fcn.18020d4c8
xor eax, eax
jmp 0x1800964e8
lea rcx, [rsp + 0x58]
call fcn.180080650
add rax, 8
add rsp, 0x88
pop rdi
pop rsi
ret
Function at 0x180098260
Capabilities:
Allocate thread local storage
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x18051c100], eax
cmp dword [0x18051c100], 0xffffffff
jne 0x180098297
mov dword [rsp + 0x20], 0x47a
lea rdx, [0x180494e58]
lea rcx, [rsp + 0x20]
call fcn.18020d4c8
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x18051c0d0], rax
cmp qword [0x18051c0d0], 0
jne 0x1800982ce
mov dword [rsp + 0x24], 0x47f
lea rdx, [0x180494e58]
lea rcx, [rsp + 0x24]
call fcn.18020d4c8
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov byte [0x18051c0f8], 1
mov byte [0x18051c0f9], 0
mov byte [0x18051c0fa], 1
mov eax, dword [rsp + 0x2c]
mov dword [0x18051c0fc], eax
lea rax, [0x180096500]
mov qword [0x18051c0f0], rax
lea rax, [0x180096840]
mov qword [0x18051c0e8], rax
lea rax, [fcn.180096980]
mov qword [0x18051c0e0], rax
lea rax, [0x180096b10]
mov qword [0x18051c0d8], rax
mov qword [0x18051c0c8], 0
mov rax, qword [rsp + 0x70]
add rsp, 0x68
ret

Function at 0x18009ff10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor ebx, ebx
mov esi, r8d
mov rbp, rdx
mov r14d, ecx
test r8d, r8d
jle 0x18009ff6f
nop word [rax + rax]
mov r8d, esi
movsxd rdx, ebx
sub r8d, ebx
add rdx, rbp
mov ecx, r14d
call fcn.1802316dc
mov edi, eax
test eax, eax
je 0x18009ff6f
cmp eax, 0xffffffff
jne 0x18009ff69
call fcn.180213e9c
cmp dword [rax], 4
jne 0x18009ff8c
add ebx, edi
cmp ebx, esi
jl 0x18009ff40
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
or eax, 0xffffffff
jmp 0x18009ff71
Function at 0x140001488
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140089750]
mov dword [rax], 1
mov rax, qword [0x140089760]
mov dword [rax], 1
mov rax, qword [0x140089770]
mov dword [rax], 1
mov rax, qword [0x140089740]
mov dword [rax], 1
mov rax, qword [0x140088d70]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014e6
mov eax, 0
jmp 0x140001593
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 0x140001512
mov eax, 0
jmp 0x140001593
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 0x140001538
cmp eax, 0x20b
je 0x14000155f
jmp 0x14000158e
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000154b
mov eax, 0
jmp 0x140001593
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001593
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000157a
mov eax, 0
jmp 0x140001593
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001593
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400601a0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x140094050], 0
mov r12, rcx
mov rdi, rdx
je 0x140060228
lea rdx, [0x14008752a]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140060330
mov rsi, qword [0x140094048]
jmp 0x1400601e5
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x1400601e0
movzx r8d, word [rdx + 4]
lea r9, [rdx + 6]
mov rcx, r12
mov rdx, r9
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14005c0b0
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
mov r9d, dword [rax]
mov eax, dword [rax + 4]
lea rcx, [rdx + 8]
mov qword [0x140094048], rcx
test eax, eax
je 0x140060318
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop dword [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x140060280
not eax
cmp r9d, eax
jne 0x1400603cd
mov byte [0x140094050], 1
jmp 0x1400601b9
cmp byte [0x140094040], 0
jne 0x1400601d0
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
lea rsi, [0x140094108]
call rbx
mov qword [0x140094098], rax
call rbx
mov qword [0x140094090], rax
call rbx
mov qword [0x140094088], rax
call rbx
mov qword [0x1400940c8], rax
call rbx
mov qword [0x1400940c0], rax
call rbx
mov qword [0x1400940b8], rax
call rbx
mov qword [0x1400940a8], rax
call rbx
mov rbp, qword [sym.imp.python310.dll_PyLong_FromLong]
mov rbx, 0xfffffffffffffffb
mov qword [0x1400940a0], rax
nop dword [rax]
mov ecx, ebx
call rbp
add qword [rax], 1
mov qword [rsi + rbx*8], rax
add rbx, 1
cmp rbx, 0x102
jne 0x1400603a8
mov byte [0x140094040], 1
jmp 0x1400601d0
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop
Function at 0x140072ab0
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.14007ac80
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.14007ac80
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x1400736e2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140094a88]
test eax, eax
je 0x14007377a
lea rax, [0x140094a60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140094a90]
mov qword [rbp - 8], rax
jmp 0x14007375e
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 0x140073752
cmp qword [rbp - 0x10], 0
je 0x140073752
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 0x140073718
lea rax, [0x140094a60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14007377b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140073880
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 0x1400738a8
mov eax, 0
jmp 0x1400738f6
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 0x1400738d1
mov eax, 0
jmp 0x1400738f6
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 0x1400738f1
mov eax, 0
jmp 0x1400738f6
mov eax, 1
add rsp, 0x20
pop rbp
ret