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

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

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

Disassembly:
mov rdx, qword [0x140009710]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002400
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002408
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002400
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x140002400
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]
cmp rcx, r8
mov rax, r8
jb 0x140002454
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002460
add rdx, 0x28
cmp r9, rdx
jne 0x140002440
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140009710]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002492
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400024a0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002492
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002492
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140002492
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]
cmp rax, r9
mov r8, r9
jb 0x1400024f5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002508
add rdx, 0x28
cmp rdx, r10
jne 0x1400024e0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002517
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002527
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400024fe
test ecx, ecx
jg 0x140002510
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400026c1
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14003f120
mov rax, rcx
neg rcx
test rax, 7
je 0x14003f13d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x14003f198
test al, 7
jne 0x14003f130
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x14003f151
mov rdx, qword [rax - 8]
test dl, dl
je 0x14003f1c2
test dh, dh
je 0x14003f1bc
shr rdx, 0x10
test dl, dl
je 0x14003f1b6
test dh, dh
je 0x14003f1b0
shr rdx, 0x10
test dl, dl
je 0x14003f1aa
test dh, dh
je 0x14003f1a4
shr edx, 0x10
test dl, dl
je 0x14003f19e
test dh, dh
jne 0x14003f151
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400026ee
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400bbf50
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400bbad0
lea rcx, [rsp + 0x20]
call fcn.1400bbb20
movzx eax, al
test eax, eax
jne 0x1400bbf95
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1400bbb00
mov rax, qword [rsp + 0x40]
jmp 0x1400bc08f
lea rcx, [rsp + 0x20]
call fcn.1400bbc20
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1400bbbc0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.14000290a
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14000232e
lea rcx, [rsp + 0x28]
call fcn.140002bdf
movzx eax, al
test eax, eax
jne 0x1400bc02f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.140003855
lea rcx, [rsp + 0x20]
call fcn.1400bbb00
mov rax, qword [rsp + 0x50]
jmp 0x1400bc08f
lea rcx, [rsp + 0x20]
call fcn.1400bbc20
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.14000421e
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.140002897
lea rcx, [rsp + 0x28]
call fcn.1400047af
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.140003855
lea rcx, [rsp + 0x20]
call fcn.1400bbb00
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x1400029f0
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140036780
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140036100
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400367bf
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14013e020]
jmp 0x1400367c9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140002b5d
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400bbca0
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400bbad0
lea rcx, [rsp + 0x40]
call fcn.1400bbc50
movzx eax, al
test eax, eax
jne 0x1400bbce8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1400bbb00
mov rax, qword [rsp + 0x70]
jmp 0x1400bbeb9
lea rcx, [rsp + 0x40]
call fcn.1400bbc20
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1400bbbc0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.1400bbc20
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.140003616
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400bbd8e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1400bbb00
mov rax, qword [rsp + 0x80]
jmp 0x1400bbeb9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.14000290a
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400027de
lea rcx, [rsp + 0x48]
call fcn.140002482
movzx eax, al
test eax, eax
jne 0x1400bbdf5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400017b2
lea rcx, [rsp + 0x40]
call fcn.1400bbb00
mov rax, qword [rsp + 0x88]
jmp 0x1400bbeb9
lea rcx, [rsp + 0x48]
call fcn.140002e5f
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1400bbc20
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.140003616
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1400bbe8b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400017b2
lea rcx, [rsp + 0x40]
call fcn.1400bbb00
mov rax, qword [rsp + 0xa0]
jmp 0x1400bbeb9
lea rcx, [rsp + 0x48]
call fcn.1400027bb
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400017b2
lea rcx, [rsp + 0x40]
call fcn.1400bbb00
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x140002b6c
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400366b0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140036080
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400366f1
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14013e020]
jmp 0x1400366f7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x140002be9
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400b4a70
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.1400b39a0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400b4ad7
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x14013e030]
jmp 0x1400b4af9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140002428
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x140002c02
Capabilities:
Terminate process

Disassembly:
jmp 0x140014950
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140002e0a
Capabilities:
Print debug messages

Disassembly:
jmp 0x1400ce220
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x14012d040]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1400ce246
jmp 0x1400ce2c3
mov rcx, qword [rbp + 0x30]
call fcn.1400026c1
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1400ce25f
jmp 0x1400ce2c3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1400ce27c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140001906
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.140001d20
test eax, eax
jne 0x1400ce2c3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140002892
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x140002f4a
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400eb080
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov qword [rsp], rax
mov rax, qword [rsp]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400eb0a4
xor eax, eax
jmp 0x1400eb0f2
mov rax, qword [rsp]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x1400eb0cc
xor eax, eax
jmp 0x1400eb0f2
mov rax, qword [rsp + 8]
add rax, 0x18
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
movzx eax, word [rax]
cmp eax, 0x20b
je 0x1400eb0ed
xor eax, eax
jmp 0x1400eb0f2
mov eax, 1
add rsp, 0x28
ret

Function at 0x1400030da
Capabilities:
Set environment variable

Disassembly:
jmp 0x1400bde00
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret

Function at 0x1400032bf
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400156c0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400156e0
xor al, al
jmp 0x140015761
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400156f3
xor al, al
jmp 0x140015761
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001571d
xor al, al
jmp 0x140015761
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015731
xor al, al
jmp 0x140015761
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015743
xor al, al
jmp 0x140015761
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001575f
xor al, al
jmp 0x140015761
mov al, 1
add rsp, 0x38
ret
Function at 0x140003585
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x1400eaef0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov dword [rsp], 0
mov rax, qword [rsp + 0x10]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x10]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 8], rax
jmp 0x1400eaf4e
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
add rax, 0x28
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x10]
movzx eax, word [rax + 6]
cmp dword [rsp], eax
jae 0x1400eaf8d
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0xc]
cmp qword [rsp + 0x38], rax
jb 0x1400eaf8b
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 8]
add eax, dword [rcx + 8]
mov eax, eax
cmp qword [rsp + 0x38], rax
jae 0x1400eaf8b
mov rax, qword [rsp + 8]
jmp 0x1400eaf8f
jmp 0x1400eaf38
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400037b0
Capabilities:
Terminate process

Disassembly:
jmp 0x14003c550
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14003c57e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140003f12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140003f67
Capabilities:
Print debug messages

Disassembly:
jmp 0x1400ac770
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x140004007
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400367f0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140036140
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140036839
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14013e020]
jmp 0x140036848
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x140036780
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140036780
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140036100
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400367bf
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14013e020]
jmp 0x1400367c9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1400dff50
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140001906
sub rsp, rax
mov rax, qword [0x14012d040]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140130510]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_inet_ntoa
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1400e0142
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x1400e0096
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1400e0096
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x1400e007b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], reloc.WS2_32.dll_listen
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1400e0018
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400e0102
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_inet_ntoa
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400e0161
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x1400e013d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_inet_ntoa
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400e0161
jmp 0x1400dffee
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_inet_ntoa
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140002892
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1400e0210
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140001906
sub rsp, rax
mov rax, qword [0x14012d040]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140130510]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_inet_ntoa
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1400e041d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x1400e0369
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1400e0369
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x1400e0349
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, reloc.WS2_32.dll_listen
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1400e02d8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400e03dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_inet_ntoa
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400e043c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x1400e0418
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_inet_ntoa
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400e043c
jmp 0x1400e02ae
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_inet_ntoa
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140002892
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140010e10
Capabilities:
Check os version
Parse pe header

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rcx
mov rcx, qword gs:[0x30]
mov rax, qword [rcx + 0x60]
mov esi, 1
test rax, rax
je 0x140010f89
test rcx, rcx
je 0x140010f89
cmp dword [rax + 0x118], 0xa
jne 0x140010f89
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov r14, qword [rax]
mov rax, qword [r14 + 0x20]
movzx ecx, word [rax]
xor esi, esi
cmp ecx, 0x5a4d
jne 0x140010f89
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140010f89
mov ebx, dword [rax + rcx + 0x88]
add rbx, rax
movabs rax, 0x7851bda23b96393e
mov qword [rdi + 0x10], rax
movabs rax, 0x4991ecfb670d4362
mov qword [rdi + 0x28], rax
movabs rax, 0x26d9b54d3ee090f6
mov qword [rdi + 0x40], rax
movabs rax, 0xc7904b4225dbe27a
mov qword [rdi + 0x70], rax
movabs rax, 0x3ca0e7f9690a2ae2
mov qword [rdi + 0x88], rax
movabs rax, 0xb6748231d15e5782
mov qword [rdi + 0x58], rax
movabs rax, 0x7b0fb828551617ae
mov qword [rdi + 0xa0], rax
mov rcx, qword [r14 + 0x20]
mov rdx, rbx
mov r8, rdi
call fcn.140002350
test eax, eax
je 0x140010f89
lea r8, [rdi + 0x18]
mov rcx, qword [r14 + 0x20]
mov rdx, rbx
call fcn.140002350
test eax, eax
je 0x140010f89
lea r8, [rdi + 0x30]
mov rcx, qword [r14 + 0x20]
mov rdx, rbx
call fcn.140002350
test eax, eax
je 0x140010f89
lea r8, [rdi + 0x60]
mov rcx, qword [r14 + 0x20]
mov rdx, rbx
call fcn.140002350
test eax, eax
je 0x140010f89
lea r8, [rdi + 0x78]
mov rcx, qword [r14 + 0x20]
mov rdx, rbx
call fcn.140002350
test eax, eax
je 0x140010f89
lea r8, [rdi + 0x48]
mov rcx, qword [r14 + 0x20]
mov rdx, rbx
call fcn.140002350
test eax, eax
je 0x140010f89
add rdi, 0x90
mov rcx, qword [r14 + 0x20]
mov rdx, rbx
mov r8, rdi
call fcn.140002350
xor esi, esi
test eax, eax
setne sil
mov eax, esi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140011758
Capabilities:
Parse pe header

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