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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov byte [rsp + 0x38], 0xff
mov rcx, qword [rcx + 0x18]
mov edi, r8d
mov esi, edx
mov byte [rsp + 0x3a], dil
mov byte [rsp + 0x39], sil
lea rdx, [rsp + 0x38]
xor r9d, r9d
mov r8d, 3
mov rcx, qword [rcx + 0x228]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400b7991
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.140055987
mov r9d, edi
lea rdx, str.SENT
mov r8d, esi
mov rcx, rbx
call fcn.1400b6f40
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
cmp edx, 0x1f
jne 0x1400b7d79
push rsi
push rdi
push r13
sub rsp, 0x20
mov rsi, qword [rcx + 0x1c8]
mov rdi, rcx
mov r13, qword [rcx + 0x18]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], r14
lea rbx, [rsi + 0x1ed8]
lea r14, [rsi + 0x1cd8]
mov qword [rsp + 0x58], r15
mov qword [rbx], r14
mov rax, r14
cmp r14, rbx
jae 0x1400b7c17
lea rax, [r14 + 1]
mov byte [r14], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400b7c30
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400b7c30
mov byte [rax], Ordinal_33
inc qword [rbx]
movzx ecx, word [rsi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rsi + 0x1caa]
movzx ebp, ax
shr bp, 8
movzx r15d, ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
shr cx, 8
cmp r9, rbx
jae 0x1400b7c6d
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400b7c80
mov byte [r9], bpl
inc qword [rbx]
mov r9, qword [rbx]
mov rbp, qword [rsp + 0x48]
cmp r9, rbx
jae 0x1400b7cbf
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400b7cbf
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400b7cbf
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400b7cbf
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rsi + 0x1ee0], r9
lea r8, [rsi + 0x1cda]
sub r9, r14
mov qword [rbx], r14
sub r9, 2
mov edx, 0x3e
mov rcx, rdi
call fcn.1400b70c0
mov rcx, qword [r13 + 0x228]
xor r9d, r9d
mov r8d, 3
mov rdx, r14
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1400b7d23
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rdi
mov r8d, eax
call fcn.140055987
lea rdx, [rsi + 0x1cdb]
mov r8d, 4
mov rcx, rdi
call fcn.1400b79e0
mov rcx, qword [r13 + 0x228]
lea rdx, [rsi + 0x1cdf]
xor r9d, r9d
mov r8d, 2
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400b7d71
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rdi
mov r8d, eax
call fcn.140055987
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
Function at 0x1400b9da0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x140128a80]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x18]
mov rbp, rcx
xor r9d, r9d
xor esi, esi
mov rdi, qword [rax + 0x688]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x80
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x144]
mov rdx, qword [rdi + 0x150]
add r8d, 4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
mov dword [rdi + 0x13c], eax
cmp dword [rdi + 0x138], esi
jne 0x1400b9e36
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call fcn.140054b90
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r8d, dword [rdi + 0x13c]
mov qword [rsp + 0x100], r14
cmp r8d, 4
jge 0x1400b9e86
lea rdx, str.Received_too_short_packet
mov rcx, rbp
call fcn.140055987
mov dword [rdi + 0xc], 7
mov eax, esi
mov r14, qword [rsp + 0x100]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140054b7c
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [rdi + 0x150]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rdi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x1400b9ebc.1
movsxd rax, ecx
lea r9, [0x140000000]
mov ecx, dword [r9 + rax*4 + 0xb9fc4]
add rcx, r9
jmp rcx
cmp r8d, 4
jle case.0x1400b9ebc.4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rdi + 0x14c]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x1400b9ebc.4
lea eax, [r8 - 4]
mov rcx, rbp
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140054c80
mov esi, eax
test eax, eax
je case.0x1400b9ebc.4
mov edx, 5
mov rcx, rdi
call fcn.1400bacf0
jmp 0x1400b9e61
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
shl ecx, 8
lea r14, [rdx + 4]
mov qword [rsp + 0xf8], rbx
movsxd rbx, eax
movzx eax, byte [rdx + 3]
mov rdx, rbx
or ecx, eax
mov dword [rdi + 8], ecx
mov rcx, r14
call fcn.1400bae50
cmp rax, rbx
mov rbx, qword [rsp + 0xf8]
jae case.0x1400b9ebc.4
mov r8, r14
lea rdx, str.TFTP_error:__s
mov rcx, rbp
call fcn.1400555a4
jmp case.0x1400b9ebc.4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rdi
call fcn.1400b99c0
mov esi, eax
test eax, eax
je case.0x1400b9ebc.4
jmp 0x1400b9e63
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rbp
lea rdx, [0x14010213c]
call fcn.140055987
mov rcx, rbp
call fcn.14005557c
test eax, eax
je 0x1400b9e61
mov edx, 5
mov rcx, rdi
call fcn.1400bacf0
mov eax, Ordinal_46
jmp 0x1400b9e63
Function at 0x1400c79b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x140128a80]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, qword [rcx + 0x18]
lea r8, [rsp + 0x20]
mov rdi, rcx
lea rdx, [rsp + 0x30]
mov rbx, qword [rsi + 0x230]
mov rcx, rbx
mov qword [rsp + 0x28], 0xffffffffffffffff
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400c7a2c
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x28], rax
jmp 0x1400c7a31
mov rax, qword [rsp + 0x28]
mov rcx, rdi
cmp rax, 0xffffffffffffffff
jne 0x1400c7a50
lea rdx, str.Error_accept__ing_server_connect
call fcn.140055987
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1400c7aea
lea rdx, str.Connection_accepted_from_server
call fcn.1400555a4
mov byte [rsi + 0x3b5], 0
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.140054474
lea r9, [rsp + 0x28]
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call fcn.1400559b4
mov ebx, eax
test eax, eax
je 0x1400c7a9d
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebx
jmp 0x1400c7aea
cmp qword [rdi + 0x290], 0
je 0x1400c7ae8
mov dl, 1
mov rcx, rdi
call fcn.14005536a
mov rdx, qword [rsp + 0x28]
mov r8d, 1
mov rcx, qword [rdi + 0x298]
call qword [rdi + 0x290]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14005536a
test ebx, ebx
je 0x1400c7ae8
mov rcx, rdi
call fcn.1400c84c0
mov eax, Ordinal_46
jmp 0x1400c7aea
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140054b7c
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x1c8]
mov rbx, rcx
mov rdi, qword [rcx + 0x18]
cmp dword [rax + 0x10], 0
je 0x1400caff3
movzx eax, byte [rdi + 0x796]
cmp al, 0xd
je 0x1400cafd5
test rdi, rdi
je 0x1400cafbb
lea r8, str.STOP
mov r8, qword [r8 + rax*8]
jmp 0x1400cafc2
lea r8, [0x140110190]
lea r9, str.RETR_PREQUOTE
lea rdx, str.__s_______s_
call fcn.14005440b
mov r8b, reloc.WS2_32.dll_listen
mov byte [rdi + 0x796], 0xd
mov dl, 1
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400cb1a0
cmp byte [rcx + 0xa5e], 0
je 0x1400cb00d
xor edx, edx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400cc4e0
cmp byte [rcx + 0xa61], 0
je 0x1400cb090
mov r9, qword [rdi + 0x740]
lea rdx, [rdi + 0x688]
test r9, r9
jne 0x1400cb057
mov r9, qword [rcx + 0x808]
test r9, r9
jne 0x1400cb04e
cmp byte [rcx + 0x1331], 0
lea rax, str.NLST
lea r9, str.LIST
cmovne r9, rax
lea r8, str.PRET__s
jmp 0x1400cb06e
cmp byte [rcx + 0x1335], 0
lea r8, str.PRET_STOR__s
jne 0x1400cb06e
lea r8, str.PRET_RETR__s
call fcn.140054645
mov edi, eax
test eax, eax
jne 0x1400cb083
mov dl, Ordinal_30
mov rcx, rbx
call fcn.1400c83f0
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400cc3c0
Function at 0x1400cb4f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1c8]
add rdx, 0x688
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x1400cb548
cmp qword [rdx + 0xb8], 0
je 0x1400cb548
xor r9d, r9d
mov qword [rsp + 0x30], rdi
lea r8, str.REST__d
call fcn.140054645
mov edi, eax
test eax, eax
jne 0x1400cb53d
mov dl, reloc.WLDAP32.dll_Ordinal_26
mov rcx, rbx
call fcn.1400c83f0
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400caf80

Function at 0x1400cbe50
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rbp, qword [rcx + 0x18]
lea eax, [rdx - 0xc8]
xor edi, edi
movzx esi, r8b
mov rbx, rcx
cmp eax, 0x64
jb 0x1400cbe92
lea rdx, str.Couldnt_set_desired_mode
call fcn.140055987
mov eax, reloc.WS2_32.dll_recvfrom
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
cmp edx, 0xc8
je 0x1400cbea9
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.1400555a4
cmp sil, 0x13
jne 0x1400cbec6
mov rdx, rbp
mov rcx, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
jmp 0x1400cb910
cmp sil, 0x14
jne 0x1400cc00a
cmp byte [rbx + 0x700], 2
mov qword [rsp + 0x58], r14
mov r14, qword [rbx + 0x18]
jne 0x1400cbf4d
mov rax, qword [rbx + 0x1c8]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400cbf4d
xor r9d, r9d
mov qword [rsp + 0x50], rdi
lea r8, [rsp + 0x50]
mov dword [rsp + 0x20], 3
xor edx, edx
call fcn.140054ab4
mov esi, eax
test eax, eax
jne 0x1400cbff6
mov rcx, qword [rsp + 0x50]
mov edx, Ordinal_50
call fcn.1400559d7
test rax, rax
je 0x1400cbf42
mov rdi, qword [rsp + 0x50]
mov ecx, 1
sub rax, rdi
cmovne rcx, rax
mov byte [rcx + rdi], sil
jmp 0x1400cbf4d
mov rcx, qword [rsp + 0x50]
call qword [0x140128010]
mov rdx, qword [rbx + 0x808]
test rdx, rdx
jne 0x1400cbf72
cmp byte [rbx + 0x1331], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1401053eb]
test rdi, rdi
mov r9, r8
lea rax, [0x140106524]
cmovne r9, rdi
lea rcx, [0x140107140]
cmovne r8, rax
call fcn.140054951
mov rcx, rdi
mov rbp, rax
call qword [0x140128010]
test rbp, rbp
jne 0x1400cbfc4
mov r14, qword [rsp + 0x58]
mov esi, reloc.WLDAP32.dll_Ordinal_27
mov eax, esi
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
lea rdx, [r14 + 0x688]
mov r9, rbp
lea r8, [0x14010213c]
mov rcx, rbx
call fcn.140054645
mov rcx, rbp
mov esi, eax
call qword [0x140128010]
test esi, esi
jne 0x1400cbff6
mov dl, Ordinal_32
mov rcx, rbx
call fcn.1400c83f0
mov r14, qword [rsp + 0x58]
mov eax, esi
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
cmp sil, 0x15
jne 0x1400cc015
mov r8b, reloc.WS2_32.dll_listen
jmp 0x1400cc01e
cmp sil, 0x16
jne 0x1400cc02a
mov r8b, ntohs
mov dl, 1
mov rcx, rbx
call fcn.1400cb1a0
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov eax, edi
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400f3440
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140128a80]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, r8
mov dword [rbp - 0x40], 8
mov rbx, rdx
mov dword [rsp + 0x20], 0xf0000040
mov rsi, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x38]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400f357a
movzx edx, byte [rdi + 1]
movzx ecx, byte [rdi]
movzx eax, dl
movzx r8d, byte [rdi + 5]
shr al, 1
mov byte [rbp - 0x1c], cl
shl cl, 7
or al, cl
shl dl, 6
movzx ecx, byte [rdi + 2]
mov byte [rbp - 0x1b], al
movzx eax, cl
shr al, 2
or al, dl
shl cl, 5
movzx edx, byte [rdi + 3]
mov byte [rbp - 0x1a], al
movzx eax, dl
shr al, 3
or al, cl
shl dl, 4
movzx ecx, byte [rdi + 4]
mov byte [rbp - 0x19], al
movzx eax, cl
shr al, 4
or al, dl
shl cl, 3
mov byte [rbp - 0x18], al
mov edx, 8
movzx eax, r8b
mov qword [rsp + 0xa0], r14
shr al, 5
xor r14d, r14d
or al, cl
shl r8b, 2
movzx ecx, byte [rdi + 6]
mov byte [rbp - 0x17], al
movzx eax, cl
add cl, cl
shr al, 6
or al, r8b
mov byte [rbp - 0x15], cl
lea rcx, [rbp - 0x1c]
mov byte [rbp - 0x16], al
mov dword [rbp - 0x28], 0x208
mov dword [rbp - 0x24], 0x6601
mov dword [rbp - 0x20], 8
call fcn.140055207
mov rcx, qword [rbp - 0x38]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x28]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
mov r8d, reloc.WS2_32.dll_sendto
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov r14, qword [rsp + 0xa0]
test eax, eax
jne 0x1400f357e
mov rcx, qword [rbp - 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x1400f35c3
mov rax, qword [rsi]
xor r9d, r9d
mov rcx, qword [rbp - 0x30]
xor r8d, r8d
mov qword [rbx], rax
xor edx, edx
mov eax, dword [rbp - 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140054b7c
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400f7a00
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140055892
movzx eax, al
test eax, eax
jne 0x1400f7a20
mov ecx, 7
call fcn.1400553c4
nop
mov byte [rsp + 0x20], 0
call fcn.140055455
mov byte [rsp + 0x21], al
cmp dword [0x140129760], 1
jne 0x1400f7a44
mov ecx, 7
call fcn.1400553c4
nop
jmp 0x1400f7a9c
cmp dword [0x140129760], 0
jne 0x1400f7a97
mov dword [0x140129760], 1
lea rdx, [0x140101660]
lea rcx, [0x140101330]
call fcn.140054b4f
test eax, eax
je 0x1400f7a78
mov eax, 0xff
jmp 0x1400f7ba1
lea rdx, [0x140101220]
lea rcx, [section..rdata]
call fcn.14005541e
mov dword [0x140129760], 2
jmp 0x1400f7a9c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140055379
call fcn.1400550f4
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400f7af9
mov rcx, qword [rsp + 0x30]
call fcn.140054956
movzx eax, al
test eax, eax
je 0x1400f7af9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14013a020]
nop
call fcn.140055211
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400f7b2d
mov rcx, qword [rsp + 0x38]
call fcn.140054956
movzx eax, al
test eax, eax
je 0x1400f7b2d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400556e4
nop
call fcn.1400f7c50
mov dword [rsp + 0x28], eax
call fcn.140055045
movzx eax, al
test eax, eax
jne 0x1400f7b4c
mov ecx, dword [rsp + 0x28]
call fcn.140054181
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400f7b5b
call fcn.14005572f
nop
xor edx, edx
mov cl, 1
call fcn.1400548de
mov eax, dword [rsp + 0x28]
jmp 0x1400f7ba1
add rsp, 0x68
ret
Function at 0x140001658
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x240
mov rax, qword [0x14001f040]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, qword [0x140020e48]
xor ebp, ebp
mov r15, r9
mov r14, r8
mov rbx, rdx
test rdx, rdx
je 0x14000179e
cmp word [rdx], bp
je 0x14000179e
lea r8d, [rbp + 4]
mov rcx, rbx
lea rdx, [0x14001bc40]
call fcn.140009798
test eax, eax
lea rdi, [rbx + 8]
lea r8d, [rbp + 2]
cmovne rdi, rbx
lea rdx, [0x14001bc4c]
mov rcx, rdi
call fcn.140009798
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
mov ebx, eax
call fcn.1400123c0
mov edx, 0x105
lea r8, [rdi + 4]
test ebx, ebx
lea rcx, [rsp + 0x20]
cmovne r8, rdi
lea r9d, [rdx - 1]
call fcn.1400097c4
lea edx, [rbp + 0x2e]
lea rcx, [rsp + 0x20]
call fcn.14000448c
mov rbx, rax
test rax, rax
je 0x140001749
mov word [rax], bp
add rbx, 2
je 0x140001749
lea rdx, str.HTML
mov rcx, rbx
call fcn.140009570
test eax, eax
je 0x140001749
lea rdx, [0x14001bc68]
mov rcx, rbx
call fcn.140009570
mov r8, rbx
test eax, eax
jne 0x14000174f
mov r8d, 0x17
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14000179e
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000179e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [r14], rax
test rax, rax
je 0x14000179e
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [r15], eax
test eax, eax
je 0x14000179e
mov al, 1
jmp 0x1400017a0
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140002920
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000336c
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400092f3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400092f3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400092f3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400092f3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400092f3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400092f3
cmp dword [rcx + 0xf8], 0
je 0x1400092f3
mov ecx, ebx
call fcn.1400093a4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140009180
nop
cmp dword [rbp + 0x20], 0
je 0x140009341
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000934c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140009284
Function at 0x14000ce1c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14000cea3
mov rsi, rbx
cmp word [rax], bp
je 0x14000ce62
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14000ce4c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14000ce48
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000d720
mov rdi, rax
test rax, rax
je 0x14000ce90
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140012780
mov rbp, rdi
xor ecx, ecx
call fcn.14000bb80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400120e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140012108
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140012108
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001bf0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140001c4d
lea rbx, [0x14013cfc0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140001c34
cmp r10, 2
jb 0x140001c34
cmp byte [r9], r8b
jne 0x140001c34
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140001c10
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140001c8f
lea rbx, [0x14013cfc0]
cmp r8b, 0x23
jne 0x140001c73
cmp byte [r9], r8b
jne 0x140001c73
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140001c60
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140001dd0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x140001dea
mov qword [r8], 0
lea rdx, [0x14013cd70]
call fcn.140001ca0
mov rbx, rax
test rax, rax
jne 0x140001e0a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call fcn.1400be03c
mov esi, eax
cmp eax, 0xffffffff
je 0x140001ed8
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.1400be3dc
test eax, eax
jne 0x140001ed8
mov rcx, rbx
call fcn.1400be03c
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140001ed8
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.1400be3dc
test eax, eax
jne 0x140001ed8
cmp rdi, 0xffffffffffffffff
je 0x140001ed8
mov rax, qword [0x1403c8180]
test rax, rax
je 0x140001e7a
inc dword [rax + 0xec]
mov rcx, rdi
call fcn.1400ba7b0
mov rsi, rax
test rax, rax
je 0x140001ed8
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.1400be6d8
mov rcx, rbx
cmp rax, rdi
je 0x140001ec6
call fcn.1400bd97c
mov rax, qword [0x1403c8180]
test rax, rax
je 0x140001ebc
dec dword [rax + 0xec]
mov rcx, rsi
call fcn.1400ba7b8
jmp 0x140001ee0
call fcn.1400bd97c
test r14, r14
je 0x140001ed3
mov qword [r14], rdi
mov rax, rsi
jmp 0x140001ee2
mov rcx, rbx
call fcn.1400bd97c
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140003be0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xc8]
mov rax, qword [rcx + 0xd0]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x14013cfc0]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
mov rax, qword [0x1403c8180]
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rax + 0x3eb4], ebx
jne 0x140003c6d
mov dword [rax + 0x3eb8], ebx
cmp dword [rax + 0x3f00], ebx
jne 0x140003c7c
mov byte [rax + 0x3f04], 1
cmp dword [rax + 0x3e9c], ebx
jne 0x140003c93
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.140014e40
mov eax, ebx
add rsp, 0x20
pop rbx
ret