joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002480
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140009780]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400024a0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400024a8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400024a0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400024f0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400024e7
test rcx, rcx
je 0x1400024a0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400024d8
xor eax, eax
ret

Function at 0x140002500
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140009780]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002560
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002568
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002560
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002560
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400025b4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400025c0
add rdx, 0x28
cmp r9, rdx
jne 0x1400025a0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140009780]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400025f2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002600
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025f2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400025f2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400025f2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002655
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002668
add rdx, 0x28
cmp rdx, r10
jne 0x140002640
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002677
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002687
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000265e
test ecx, ecx
jg 0x140002670
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140025130
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x460
mov rax, qword [0x140074050]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x38], rcx
xor edi, edi
mov dword [rsp + 0x34], edi
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], recv
mov byte [rcx], dil
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 1]
lea rcx, str.HTTPGET
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r15, rax
test rax, rax
je 0x14002529f
cmp qword [rbx + 0x18], 0x10
jb 0x1400251b3
mov rbx, qword [rbx]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbp, rax
test rax, rax
je 0x140025296
mov dword [rsp + 0x40], edi
lea r9, [rsp + 0x40]
mov r8d, 0x400
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14002528d
movzx ebx, byte [rsp + 0x30]
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14002528d
mov edi, eax
mov rcx, qword [r14 + 0x10]
mov rdx, qword [r14 + 0x18]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x140025253
lea rax, [rcx + rdi]
mov qword [r14 + 0x10], rax
mov rax, r14
cmp rdx, 0x10
jb 0x140025239
mov rax, qword [r14]
lea rsi, [rax + rcx]
mov r8, rdi
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140031070
mov byte [rsi + rdi], 0
jmp 0x14002526c
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x50]
movzx r8d, bl
mov rdx, rdi
mov rcx, r14
call fcn.140012290
lea r9, [rsp + 0x40]
mov r8d, 0x400
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140025208
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rax, r14
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14002f130
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x460
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140025d70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x140074050]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
xor r8d, r8d
lea rdx, [0x1400668f2]
lea rcx, [rsp + 0x20]
call fcn.140011d40
nop
nop dword [rax]
lea rax, [rsp + 0x20]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
cmovae rax, rcx
cmp qword [rsp + 0x30], 2
jne 0x140025dfb
cmp byte [rax], 0x4f
jne 0x140025dee
cmp byte [rax + 1], 0x4b
jne 0x140025dee
xor eax, eax
jmp 0x140025df3
sbb eax, eax
or eax, 1
test eax, eax
je 0x140025e7b
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0x400
jae 0x140025ec9
mov byte [rsp + rcx + 0x40], 0
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140025e33
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.14000f180
cmp byte [0x1400784f8], 0
je 0x140025dc0
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rdx, qword [rsp + 0x20]
lea rcx, str.RepSocketOK:__s_n
call fcn.1400012b0
jmp 0x140025dc0
cmp rdx, 0x10
jb 0x140025eaa
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025ea5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025ec3
call fcn.14002f150
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14002f130
add rsp, 0x450
pop rbx
ret
call fcn.14003e0bc
nop
call fcn.14002f520
nop
int3

Function at 0x140025ed0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x440
mov rax, qword [0x140074050]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor eax, eax
mov dword [rsp + 0x20], eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
xor r8d, r8d
lea rdx, [0x1400668f2]
call fcn.140011d40
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0x400
jae 0x140025fbd
mov byte [rsp + rcx + 0x30], 0
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140025f60
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000f180
cmp byte [0x1400784f8], 0
je 0x140025f99
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140025f8d
mov rdx, qword [rdi]
lea rcx, str.RepSocket:__s_n
call fcn.1400012b0
mov rax, rdi
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.14002f130
mov rbx, qword [rsp + 0x460]
add rsp, 0x440
pop rdi
ret
call fcn.14002f520
int3
Function at 0x140026080
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp byte [0x1400784f8], 0
mov rsi, rdx
mov rbx, rcx
je 0x1400260b7
cmp qword [rcx + 0x18], 0x10
mov rdx, rcx
jb 0x1400260ab
mov rdx, qword [rcx]
lea rcx, str.Send_To_Menu:__s_n
call fcn.1400012b0
cmp qword [rbx + 0x18], 0x10
mov rax, 0xffffffffffffffff
jb 0x1400260e0
mov rcx, qword [rbx]
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1400260d0
mov rdx, rcx
jmp 0x1400260ec
inc rax
cmp byte [rbx + rax], 0
jne 0x1400260e0
mov rdx, rbx
xor r9d, r9d
mov r8d, eax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140026131
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14002612c
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140026154
mov rcx, r8
call fcn.14002f150
mov rsi, qword [rsp + 0x48]
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], recv
mov byte [rbx], 0
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
call fcn.14003e0bc
int3
Function at 0x14002da74
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14002daa2
xor eax, eax
jmp 0x14002db88
cmp qword [rcx + 0x68], 0
je 0x14002dab3
call fcn.14000ccf0
jmp 0x14002db88
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14002daca
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14002dacc
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14002dafe
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140031070
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14002db82
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14002db35
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14002db5e
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14003fa68
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14002db82
cmp rsi, rbx
ja 0x14002db3c
test rsi, rsi
je 0x14002db82
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14003fa68
sub rsi, rax
sub rbp, rsi
mov rax, rbp
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

Function at 0x14002fe34
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002fe7e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002fe7e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002fe7e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002fe7e
cmp dword [rcx + 0x84], 0xe
jbe 0x14002fe7e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002fe80
xor al, al
add rsp, 0x28
ret
Function at 0x140035900
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 0x14003576b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003576b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003576b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003576b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003576b
cmp dword [rcx + 0x84], 0xe
jbe 0x14003576b
cmp dword [rcx + 0xf8], 0
je 0x14003576b
mov ecx, ebx
call fcn.14003581c
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.1400355f8
nop
cmp dword [rbp + 0x20], 0
je 0x1400357b9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400357c4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400356fc

Function at 0x14003ec98
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14003eccf
call fcn.14003d9e4
mov dword [rax], socket
call fcn.14003e09c
xor eax, eax
jmp 0x14003ed5d
mov rdx, r9
mov rcx, r8
call fcn.14003ec34
mov rbx, rax
test rax, rax
je 0x14003ed5a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14003eb60]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14003ed47
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003d958
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14003ed2e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14003ed3d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140044438
jmp 0x14003ed5a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14003ed57
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14004ab58
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14002fa40
sub rsp, rax
mov rax, qword [0x140074050]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140046dcc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14004aba7
mov rax, rbp
jmp 0x14004acaf
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x77f50]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14004bc78
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x77f50]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14004acab
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004acab
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14004bc78
test rax, rax
js 0x14004acab
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14004acab
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14004ac9d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14004ac9d
cmp byte [rcx], 0xd
jne 0x14004ac83
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14004ac92
cmp byte [rcx + 1], 0xa
jne 0x14004ac92
inc rcx
jmp 0x14004ac92
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x74440]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14004ac65
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14004acaf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002f130
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14004aed0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14004aee6
mov al, 1
jmp 0x14004af46
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14004aef7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14004af44
mov ecx, dword [rcx + 0x18]
nop
call fcn.14004f7b0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004af44
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14004af44
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14004af44
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14004af46
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14004b018
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140077f50]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14004b06f
cmp word [rdx], r13w
jne 0x14004b06f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14004b074
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14004b199
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14004b1ba
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14004b0ad
mov rdx, r9
mov word [rbx], cx
jmp 0x14004b0d4
cmp r9, r8
jae 0x14004b0e4
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14004b08e
jmp 0x14004b199
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004b18e
cmp dword [rsp + 0x80], esi
je 0x14004b18e
lea r8, [0x140077f50]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14004b166
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14004b136
mov word [rbx], r13w
jmp 0x14004b196
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14004b143
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14004b196
cmp word [rsp + 0x70], r13w
jne 0x14004b173
cmp rbx, r14
je 0x14004b130
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14004bc80
cmp word [rsp + 0x70], r13w
je 0x14004b199
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140077f50]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14004b193
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14004b199
Function at 0x14004ebac
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14004ebdc
xor eax, eax
jmp 0x14004ec9f
mov rbp, rbx
cmp word [rax], si
je 0x14004ec01
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004ebe8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004ebe4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14004d320
movsxd r14, eax
test eax, eax
jne 0x14004ec3f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004ebd5
mov rcx, r14
call fcn.140045c48
mov rdi, rax
test rax, rax
jne 0x14004ec58
xor ecx, ecx
call fcn.140044438
jmp 0x14004ec34
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14004d320
test eax, eax
jne 0x14004ec89
mov rcx, rdi
call fcn.140044438
jmp 0x14004ec93
xor ecx, ecx
call fcn.140044438
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140051d04
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400457fc
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140051da5
cmp ebx, dword [rsp + 0x30]
je 0x140051d9e
test esi, esi
je 0x140051d9e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140051d79
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140051d86
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140051d63
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140051d8a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140051da7
mov eax, 1
jmp 0x140051da7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400552ec
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140036694
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140055376
cmp byte [rbp - 0x21], r15b
je 0x140055371
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400553ac
call fcn.140044794
test eax, eax
jne 0x140055398
cmp byte [rbp - 0x21], r15b
je 0x140055390
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400553ac
cmp byte [rbp - 0x21], r15b
je 0x1400553a9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400411a0
test eax, eax
jne 0x14005544c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140036694
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400553eb
cmp byte [rbp - 0x21], r15b
je 0x140055420
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140055420
call fcn.140044794
test eax, eax
jne 0x14005540c
cmp byte [rbp - 0x21], r15b
je 0x140055405
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140055420
cmp byte [rbp - 0x21], r15b
je 0x14005541d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400411a0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14005544c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14005544f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14005545d
mov rcx, rdi
call fcn.140044438
cmp byte [rbp + 0x3f], r15b
je 0x14005546c
mov rcx, qword [rbp + 0x27]
call fcn.140044438
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140056d90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140056db8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140056db8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret