joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004cc90
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x1e0]
cmp dword [rax + 0x10], 0
je 0x14004ccc8
mov r8d, reloc.WS2_32.dll_listen
mov dword [rbx + 0xab8], 0xd
mov dl, 1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14004cde0
cmp byte [rcx + 0xf0e], 0
je 0x14004cce0
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14004d7d0
cmp byte [rcx + 0xf11], 0
je 0x14004cd81
mov r8, qword [rbx + 0xa88]
test r8, r8
jne 0x14004cd3b
mov r8, qword [rcx + 0xc08]
test r8, r8
jne 0x14004cd1e
cmp byte [rcx + 0xf0d], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rcx, [rbx + 0xa00]
lea rdx, str.PRET__s
call fcn.1400634d0
test eax, eax
je 0x14004cd71
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0xf1d], 0
lea rcx, [rbx + 0xa00]
je 0x14004cd61
lea rdx, str.PRET_STOR__s
call fcn.1400634d0
test eax, eax
je 0x14004cd71
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.1400634d0
test eax, eax
jne 0x14004cd8e
mov dword [rbx + 0xab8], 0x1d
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14004d740
add rsp, 0x20
pop rbx
ret

Function at 0x14004d0d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
mov rdx, qword [rax + 0x1e0]
cmp dword [rdx + 0x10], 0
je 0x14004d11d
cmp qword [rcx + 0xa88], 0
je 0x14004d11d
add rcx, 0xa00
lea rdx, str.REST__d
xor r8d, r8d
call fcn.1400634d0
test eax, eax
jne 0x14004d127
mov dword [rbx + 0xab8], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.14004cc90
add rsp, 0x20
pop rbx
ret

Function at 0x14004d2b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0xa00
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1e0]
cmp dword [rdx + 0x10], 1
jne 0x14004d2fc
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x14004d2fc
lea rdx, str.SIZE__s
call fcn.1400634d0
test eax, eax
jne 0x14004d309
mov dword [rbx + 0xab8], 0x17
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14004d0d0
add rsp, 0x20
pop rbx
ret

Function at 0x14004d310
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov r9, qword [rcx]
cmp byte [r9 + 0xf1c], 0
je 0x14004d368
cmp qword [rcx + 0xa88], 0
je 0x14004d368
cmp byte [r9 + 0xf0b], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0xaa8]
cmp eax, edx
je 0x14004d368
mov rax, qword [r9 + 0x1e0]
mov r8d, reloc.WS2_32.dll_send
mov dword [rax + 0x10], 1
movzx edx, byte [r9 + 0xf0b]
jmp fcn.14004bbb0
jmp fcn.14004d2b0
Function at 0x14004d370
Capabilities:
Check http status code

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea eax, [rdx - 0xc8]
mov rdi, rcx
mov rcx, qword [rcx]
mov esi, r8d
cmp eax, 0x64
jb 0x14004d3a5
lea rdx, str.Couldnt_set_desired_mode
call fcn.14002f6b0
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x14004d3bc
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.14002f830
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x14004d3d8
mov rcx, rdi
call fcn.14004d2b0
jmp 0x14004d50f
cmp esi, 0x14
jne 0x14004d4f1
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xba0], 2
jne 0x14004d459
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax]
test rdx, rdx
je 0x14004d459
mov byte [rsp + 0x28], 1
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov qword [rsp + 0x50], rbx
call fcn.140018d40
test eax, eax
jne 0x14004d50f
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x14004d44e
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x14004d459
mov rcx, qword [rsp + 0x50]
call qword [fcn.1400690e0]
mov rdx, qword [rsi + 0xc08]
test rdx, rdx
jne 0x14004d47d
cmp byte [rsi + 0xf0d], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x14006bc2b]
test rbp, rbp
mov r9, r8
lea rax, reloc.WLDAP32.dll_Ordinal_32
cmovne r9, rbp
lea rcx, [0x140070228]
cmovne r8, rax
call fcn.14001df60
mov rcx, rbp
mov r14, rax
call qword [fcn.1400690e0]
test r14, r14
jne 0x14004d4bc
lea ebx, [r14 + 0x1b]
jmp 0x14004d511
lea rcx, [rdi + 0xa00]
mov r8, r14
lea rdx, [0x140074a30]
call fcn.1400634d0
mov rcx, r14
mov esi, eax
call qword [fcn.1400690e0]
test esi, esi
je 0x14004d4e5
mov ebx, esi
jmp 0x14004d511
mov dword [rdi + 0xab8], 0x1f
jmp 0x14004d511
cmp esi, 0x15
jne 0x14004d4fc
lea r8d, [rsi - 8]
jmp 0x14004d505
cmp esi, 0x16
jne 0x14004d511
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.14004cde0
mov ebx, eax
mov r14, qword [rsp + 0x60]
mov eax, ebx
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x140053270
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 0x1400532cf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14002f6b0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.140052e00
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140053480
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140053628
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 0x1400534e5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400534e5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400534e5
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 0x14005351c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140053572
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140053572
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140053572
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140053572
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140053572
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.140052f30
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 0x1400535d4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14002f6b0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140053300
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 0x140053620
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14002f6b0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140054d90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140085080]
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], pe_nt_image_headers64
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 0x140054e25
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 0x140054e86
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14002f6b0
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.140067f20
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 0x140054f41
sub ecx, 1
je 0x140054fb4
sub ecx, 1
je 0x140054ef0
cmp ecx, 1
je 0x140054ed3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140074a30]
call fcn.14002f6b0
jmp 0x140054fb4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140054ac0
test eax, eax
je 0x140054fb4
jmp 0x140054e5a
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 0x140054fb4
sub rax, rsi
cmp rax, rbp
jae 0x140054fb4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14002f830
jmp 0x140054fb4
cmp r8d, 4
jle 0x140054fb4
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 0x140054fb4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14002f5d0
mov esi, eax
test eax, eax
je 0x140054f93
mov edx, 5
mov rcx, rbx
call fcn.140055a80
mov eax, esi
jmp 0x140054e5a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14003deb0
mov rcx, r14
call fcn.14003e190
test eax, eax
je 0x140054e58
mov edx, 5
mov rcx, rbx
call fcn.140055a80
mov eax, Ordinal_46
jmp 0x140054e5a
Function at 0x140067d50
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 [fcn.1400690e6]
mov rdi, rax
test rax, rax
jne 0x140067d92
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 0x140067dd9
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 0x140067e32
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 0x140067df0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140067e73
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14007a1ba]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14007a1bb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140067e40
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 0x140068750
Capabilities:
Terminate process

Disassembly:
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 0x140068d50
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140068d9a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140068d9a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140068d9a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140068d9a
cmp dword [rcx + 0x84], 0xe
jbe 0x140068d9a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140068d9c
xor al, al
add rsp, 0x28
ret
Function at 0x406e00
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows callback function

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r8, str.Microsoft
mov r9d, 0x30
mov rbx, rdx
mov rsi, rcx
xor ecx, ecx
lea rdx, [0x0041c774]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov r9d, 0x40
mov rdx, rbx
xor ecx, ecx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, rbx
xor r8d, r8d
xor edx, edx
mov rdi, rax
rep movsb byte [rdi], byte [rsi]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnumUILanguagesA]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rax, qword [0x0041ef40]
movsxd rdx, dword [rax]
mov rax, qword [0x0041ef30]
mov rcx, qword [rax]
jmp 0x406e00
sub rsp, 0x28
call fcn.00406e73
nop
add rsp, 0x28
jmp 0x406e88

Function at 0x406e88
Capabilities:
Execute shellcode via windows callback function

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r8, str.Microsoft
mov r9d, 0x30
mov rbx, rdx
mov rsi, rcx
xor ecx, ecx
lea rdx, [0x0041c774]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov r9d, 0x40
mov rdx, rbx
xor ecx, ecx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, rbx
xor r8d, r8d
xor edx, edx
mov rdi, rax
rep movsb byte [rdi], byte [rsi]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnumUILanguagesA]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rax, qword [0x0041ef40]
movsxd rdx, dword [rax]
mov rax, qword [0x0041ef30]
mov rcx, qword [rax]
jmp 0x406e00
sub rsp, 0x28
call fcn.00406e73
nop
add rsp, 0x28
jmp 0x406e88

Function at 0x406ea3
Capabilities:
Execute shellcode via windows callback function

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r8, str.Microsoft
mov r9d, 0x30
mov rbx, rdx
mov rsi, rcx
xor ecx, ecx
lea rdx, [0x0041c774]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov r9d, 0x40
mov rdx, rbx
xor ecx, ecx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, rbx
xor r8d, r8d
xor edx, edx
mov rdi, rax
rep movsb byte [rdi], byte [rsi]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnumUILanguagesA]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rax, qword [0x0041ef40]
movsxd rdx, dword [rax]
mov rax, qword [0x0041ef30]
mov rcx, qword [rax]
jmp 0x406e00
sub rsp, 0x28
call fcn.00406e73
nop
add rsp, 0x28
jmp 0x406e88
Function at 0x4104f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x00426884]
test ebp, ebp
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
jle 0x41060a
mov rax, qword [0x00426888]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x41053e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x4105f0
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x410522
mov rcx, rbx
call fcn.00411160
test rax, rax
mov r12, rax
je 0x410642
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x00426888]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.00411280
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
mov qword [r13 + 8], rax
mov rax, qword [0x00426888]
lea rdx, [rsp + 0x20]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x410625
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4105e9
sub eax, 0x40
and eax, 0xffffffbf
je 0x4105e9
mov r9, rbp
mov r8d, 0x40
add r9, qword [0x00426888]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x410611
add dword [0x00426884], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebp, ebp
jmp 0x41054b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00410480
mov rax, qword [0x00426888]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rbp + 8]
call fcn.00410480
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00410480
nop
nop word cs:[rax + rax]

Function at 0x410dc0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00426ba0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00426b80]
test rbx, rbx
je 0x410e14
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 0x410e0b
test rsi, rsi
je 0x410e0b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x410df0
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x00426ba0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x411070
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4110b1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x4110a8
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x4110b3
add rax, 0x28
cmp rax, r9
jne 0x411094
xor eax, eax
ret
Function at 0x411160
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x0041edb0]
cmp word [rbx], 0x5a4d
je 0x411180
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call fcn.00411030
test eax, eax
je 0x411174
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.00411070

Function at 0x411eb0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov r8d, 0xffff
mov dword [0x00426c00], 0xffffffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x00426c08], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x411f00
lea rdx, [0x00411dd0]
mov ecx, eax
mov dword [0x00426bf8], eax
call fcn.00417230
test eax, eax
jne 0x411f08
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x411ef7
call sub.msvcrt.dll_abort
nop
nop
Function at 0x411f10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x0041eca0]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x411f44
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x411fa1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rdi, qword [rcx + 0x10]
test rdi, rdi
je 0x411ff0
mov esi, dword [0x00426bf8]
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
mov r12d, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r12d
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x411fb0
mov r12, qword [rsi]
cmp rdi, r12
ja 0x412060
lea rsi, [rsi + rdi*8]
mov rax, qword [rsi]
test rax, rax
jne 0x411f37
mov rcx, rbx
call fcn.00411e10
mov qword [rsi], rax
jmp 0x411f37
call fcn.00411e10
mov qword [rbx + 0x10], rax
jmp 0x411f37
lea rcx, [rdi + 0x21]
mov edx, 8
call sub.msvcrt.dll_calloc
lea r12, [rdi + 0x20]
test rax, rax
mov rsi, rax
je 0x412143
mov qword [rax], r12
mov rdx, rsi
mov ecx, dword [0x00426bf8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x411f88
call rbp
jmp 0x411f88
mov r10d, dword [rsi]
test r10d, r10d
je 0x412016
mov r9d, dword [0x0041a450]
test r9d, r9d
je 0x412111
lock add dword [0x00426c00], 1
jne 0x4120ea
mov rdi, qword [rbx + 0x10]
test rdi, rdi
je 0x4120cf
mov eax, dword [rsi]
test eax, eax
je 0x411f51
mov eax, 0xffffffff
lock xadd dword [0x00426c00], eax
sub eax, 1
js 0x411f51
xor r8d, r8d
mov edx, 1
mov rcx, qword [0x00426c08]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x411f51
lea r13, [r12 + r12]
mov rcx, rsi
lea rax, [rdi + 0x20]
cmp rdi, r13
cmova r13, rax
lea rdx, [r13*8 + 8]
call sub.msvcrt.dll_realloc
test rax, rax
mov rsi, rax
je 0x412143
mov qword [rax], r13
lea rcx, [rax + r12*8 + 8]
mov r8, r13
xor edx, edx
sub r8, r12
shl r8, 3
call sub.msvcrt.dll_memset
jmp 0x411fd1
call fcn.00411eb0
mov dword [0x0041a450], 1
mov edx, dword [rsi]
test edx, edx
jne 0x412008
mov rdi, qword [rbx + 0x10]
test rdi, rdi
jne 0x411f51
mov rax, qword [0x00426bf0]
lea rdi, [rax + 1]
mov qword [0x00426bf0], rdi
mov qword [rbx + 0x10], rdi
jmp 0x412023
mov edx, 0xffffffff
mov rcx, qword [0x00426c08]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x412016
lock sub dword [0x00426c00], 1
jmp 0x412016
lock add dword [0x0041a454], 1
je 0x4120a9
mov r8d, dword [0x0041a450]
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
test r8d, r8d
jne 0x4120b8
nop
xor ecx, ecx
call rdi
mov ecx, dword [0x0041a450]
test ecx, ecx
je 0x412130
jmp 0x4120b8
call sub.msvcrt.dll_abort
nop
nop dword [rax]
cmp qword [rcx], rdx
jae 0x412160
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x41216a
mov qword [rcx + 8], r8
test r9, r9
je 0x412174
cmp rdx, qword [rcx]
je 0x412175
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x412e70
Capabilities:
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12d, 1
mov edi, ecx
mov rbp, rdx
mov rbx, r9
lea ecx, [r8 - 1]
mov r8d, 0x66666667
mov eax, ecx
movsxd rsi, ecx
sar ecx, 0x1f
imul r8d
sar edx, 2
mov r8d, edx
sub r8d, ecx
je 0x412ec8
mov ecx, 0x66666667
nop dword [rax]
mov eax, r8d
sar r8d, 0x1f
add r12d, 1
imul ecx
sar edx, 2
sub edx, r8d
mov r8d, edx
jne 0x412eb0
mov eax, dword [rbx + 0x2c]
cmp eax, 0xffffffff
je 0x412f50
cmp eax, r12d
cmovge r12d, eax
mov eax, dword [rbx + 0xc]
lea edx, [r12 + 2]
cmp eax, edx
jg 0x412f40
mov dword [rbx + 0xc], 0xffffffff
mov r9, rbx
mov r8d, 1
mov rdx, rbp
mov ecx, edi
add r12d, 1
call fcn.00412750
mov ecx, dword [rbx + 8]
mov rdx, rbx
mov eax, dword [rbx + 0x2c]
mov dword [rbx + 0x10], eax
mov eax, ecx
and ecx, 0x20
or eax, 0x1c0
or ecx, 0x45
mov dword [rbx + 8], eax
call fcn.004122e0
mov rdx, rbx
mov rcx, rsi
add dword [rbx + 0xc], r12d
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.00412ba0
sub eax, edx
mov dword [rbx + 0xc], eax
jmp 0x412eee
mov edx, dword [0x0041a470]
cmp edx, 0xffffffff
je 0x412f79
test edx, edx
mov eax, 2
jne 0x412f71
call fcn.00416fd0
and eax, 1
neg eax
add eax, 3
mov dword [rbx + 0x2c], eax
jmp 0x412ed4
lea rcx, str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test rax, rax
je 0x412fa0
movsx eax, byte [rax]
xor edx, edx
sub eax, 0x30
cmp eax, 2
setbe dl
mov dword [0x0041a470], edx
jmp 0x412f5b
xor edx, edx
jmp 0x412f98

Function at 0x4192a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x0041a5c0]
jmp fcn.00411f10