joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004fd0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0xe]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r11d, r11d
lea rsi, str.Fileupload_tautoresp_tmsi_tguides_tkenchikukoji_treddog_tpic_tprivate_tdbms_tadnetwork_tcrescent_timoveis_tinitiatelogon_tcatalogtest_tholidays_ttypesofwells_tkentucky_tpre_tmujucet_tpbp_texterno_tadmin_tAdminService_tinspiration_tlike_tprofiling_tacctlogin_tbids_tnikita_tdns_timagecaptcha_ttdn_testaticashtml_tcgihtml_tcmsmessaging_tfor_tallgemein_tenuk_tadminarea_tall_tinforma_tconstruction_tmarkallread_tcasestudy_tadobe_ttransport_tobjectremove_tkimberly_tbuynow_tloaders_tforward_tcmsadmin_texercises_tthemebackup_ttrovaprezzi_tlambda_tblind_tdistricts_tnewlayout
mov r10, rax
sub rbx, rax
movabs rdi, 0xff803fe00ff803ff
lea r9, [rax + 2]
nop dword [rax + rax]
movsxd r8, r11d
mov rax, rdi
mul r8
mov rcx, r8
shr rdx, 9
imul rax, rdx, 0x201
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 1]
xor al, byte [rbx + r9 - 2]
movsx eax, al
mov word [r9 - 2], ax
mov rax, rdi
mul rcx
shr rdx, 9
imul rax, rdx, 0x201
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 2]
xor al, byte [rbx + r9]
movsx eax, al
mov word [r9], ax
mov rax, rdi
mul rcx
shr rdx, 9
imul rax, rdx, 0x201
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 3]
xor al, byte [rbx + r9 + 2]
movsx eax, al
mov word [r9 + 2], ax
mov rax, rdi
mul rcx
shr rdx, 9
imul rax, rdx, 0x201
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 4]
xor al, byte [rbx + r9 + 4]
movsx eax, al
mov word [r9 + 4], ax
mov rax, rdi
mul rcx
shr rdx, 9
imul rax, rdx, 0x201
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 5]
xor al, byte [rbx + r9 + 6]
movsx eax, al
mov word [r9 + 6], ax
mov rax, rdi
mul rcx
shr rdx, 9
imul rax, rdx, 0x201
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 6]
xor al, byte [rbx + r9 + 8]
movsx eax, al
mov word [r9 + 8], ax
mov rax, rdi
mul rcx
shr rdx, 9
imul rax, rdx, 0x201
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 7]
xor al, byte [rbx + r9 + 0xa]
movsx eax, al
mov word [r9 + 0xa], ax
mov rax, rdi
mul rcx
shr rdx, 9
imul rax, rdx, 0x201
sub rcx, rax
movzx eax, byte [rcx + rsi]
xor al, byte [rbx + r9 + 0xc]
movsx eax, al
mov word [r9 + 0xc], ax
lea rcx, [r8 + 8]
mov rax, rdi
mul rcx
add r11d, 0xb
lea r9, [r9 + 0x16]
shr rdx, 9
imul rax, rdx, 0x201
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 9]
xor al, byte [rbx + r9 - 8]
movsx eax, al
mov word [r9 - 8], ax
mov rax, rdi
mul rcx
shr rdx, 9
imul rax, rdx, 0x201
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 0xa]
xor al, byte [rbx + r9 - 6]
movsx eax, al
mov word [r9 - 6], ax
mov rax, rdi
mul rcx
shr rdx, 9
imul rax, rdx, 0x201
sub rcx, rax
movzx eax, byte [rcx + rsi]
xor al, byte [rbx + r9 - 4]
movsx eax, al
mov word [r9 - 4], ax
cmp r11d, 0xb
jb 0x140005020
mov rbx, qword [rsp + 0x30]
mov rax, r10
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140009210
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r13d, 9
mov dword [rbp - 0x20], 0x2c000d
lea rcx, [rbp - 0x20]
mov word [rbp - 0xc], r13w
mov dword [rbp - 0x1c], 0x2b003e
mov dword [rbp - 0x18], 0x3c0030
mov dword [rbp - 0x14], 0x2e002e
mov dword [rbp - 0x10], 0x210032
call fcn.140004fd0
mov rcx, rax
call 0x140009300
mov qword [0x1400161b8], rax
lea rcx, [rbp - 0x20]
mov eax, 0x61
mov dword [rbp - 0x20], 0x2c000d
mov word [rbp - 0x10], ax
mov dword [rbp - 0x1c], 0x2b003e
mov dword [rbp - 0x18], 0x3c0030
mov dword [rbp - 0x14], 0x5d005f
call fcn.1400022a0
mov rcx, rax
call 0x140009300
lea rcx, [rbp - 0x20]
mov qword [0x1400161a8], rax
mov dword [rbp - 0x20], 0x1d0028
mov dword [rbp - 0x1c], 0x90008
mov dword [rbp - 0x18], 0x700019
call fcn.140004e60
mov rcx, rax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rbp
jmp 0x140009300
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x140009362
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
mov r8, rax
call fcn.14000c800
test al, al
jne 0x140009374
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x140009330
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140009300
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r13d, 9
mov dword [rbp - 0x20], 0x2c000d
lea rcx, [rbp - 0x20]
mov word [rbp - 0xc], r13w
mov dword [rbp - 0x1c], 0x2b003e
mov dword [rbp - 0x18], 0x3c0030
mov dword [rbp - 0x14], 0x2e002e
mov dword [rbp - 0x10], 0x210032
call fcn.140004fd0
mov rcx, rax
call 0x140009300
mov qword [0x1400161b8], rax
lea rcx, [rbp - 0x20]
mov eax, 0x61
mov dword [rbp - 0x20], 0x2c000d
mov word [rbp - 0x10], ax
mov dword [rbp - 0x1c], 0x2b003e
mov dword [rbp - 0x18], 0x3c0030
mov dword [rbp - 0x14], 0x5d005f
call fcn.1400022a0
mov rcx, rax
call 0x140009300
lea rcx, [rbp - 0x20]
mov qword [0x1400161a8], rax
mov dword [rbp - 0x20], 0x1d0028
mov dword [rbp - 0x1c], 0x90008
mov dword [rbp - 0x18], 0x700019
call fcn.140004e60
mov rcx, rax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rbp
jmp 0x140009300
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x140009362
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
mov r8, rax
call fcn.14000c800
test al, al
jne 0x140009374
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x140009330
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000b5e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
movsxd rax, dword [rcx + 0x3c]
mov r12, rdx
mov rdx, rcx
mov ecx, dword [rax + rcx + 0x88]
xor eax, eax
add rcx, rdx
mov dword [rbp - 0x2c], eax
mov qword [rbp - 0x28], rcx
mov r8d, dword [rcx + 0x1c]
mov r9d, dword [rcx + 0x20]
add r8, rdx
mov r10d, dword [rcx + 0x24]
add r9, rdx
add r10, rdx
mov qword [rbp - 0x20], r8
mov qword [rbp - 0x18], r9
mov qword [rbp - 0x10], r10
cmp dword [rcx + 0x18], eax
jbe 0x14000b80e
mov word [rbp + 0x50], 0x6946
mov word [rbp + 0x58], 0x6946
nop
mov esi, dword [r9 + rax*4]
lea rcx, [rbp + 0x50]
movzx eax, word [r10 + rax*2]
add rsi, rdx
xor edi, edi
mov r15d, dword [r8 + rax*4]
add r15, rdx
mov qword [rbp - 8], r15
call fcn.140001770
movzx ecx, byte [rax]
cmp byte [rsi], cl
je 0x14000b694
nop dword [rax]
lea rcx, [rbp + 0x50]
inc rdi
call fcn.140001770
movzx ecx, byte [rax]
cmp byte [rdi + rsi], cl
jne 0x14000b680
lea rcx, [rbp + 0x58]
xor ebx, ebx
call fcn.140001770
movzx ecx, byte [rax]
cmp byte [r12], cl
je 0x14000b6c5
nop dword [rax + rax]
lea rcx, [rbp + 0x58]
inc rbx
call fcn.140001770
movzx ecx, byte [rax]
cmp byte [rbx + r12], cl
jne 0x14000b6b0
cmp rdi, rbx
jne 0x14000b7e2
mov r13, rsi
mov word [rbp - 0x50], 0x6946
sub r13, r12
mov r14, r12
nop dword [rax]
lea rcx, [rbp - 0x50]
xor ebx, ebx
call fcn.140001770
movzx ecx, byte [rax]
cmp byte [rsi], cl
je 0x14000b706
lea rcx, [rbp - 0x50]
inc rbx
call fcn.140001770
movzx ecx, byte [rax]
cmp byte [rbx + rsi], cl
jne 0x14000b6f2
mov rax, r14
sub rax, r12
dec rbx
cmp rax, rbx
jae 0x14000b808
movsx r15d, byte [r14 + r13]
lea rcx, [rbp - 0x4e]
mov dword [rbp - 0x4e], 0x690027
call fcn.140002490
movzx eax, word [rax]
cmp r15d, eax
jl 0x14000b778
lea rcx, [rbp - 0x4a]
mov dword [rbp - 0x4a], 0x69003c
call fcn.140002490
movzx ecx, word [rax]
cmp r15d, ecx
jg 0x14000b778
lea rcx, [rbp - 0x46]
mov dword [rbp - 0x46], 0x690027
mov dword [rbp - 0x42], 0x690007
call fcn.140002490
lea rcx, [rbp - 0x42]
movzx ebx, byte [rax]
call fcn.140002490
movzx ecx, byte [rax]
sub cl, bl
add r15b, cl
movsx edi, byte [r14]
lea rcx, [rbp - 0x3e]
mov dword [rbp - 0x3e], 0x690027
call fcn.140002490
movzx eax, word [rax]
cmp edi, eax
jl 0x14000b7d5
lea rcx, [rbp - 0x3a]
mov dword [rbp - 0x3a], 0x69003c
call fcn.140002490
movzx ecx, word [rax]
cmp edi, ecx
jg 0x14000b7d5
lea rcx, [rbp - 0x36]
mov dword [rbp - 0x36], 0x690027
mov dword [rbp - 0x32], 0x690007
call fcn.140002490
lea rcx, [rbp - 0x32]
movzx ebx, byte [rax]
call fcn.140002490
movzx ecx, byte [rax]
sub cl, bl
add dil, cl
cmp r15b, dil
jne 0x14000b7e2
inc r14
jmp 0x14000b6e0
mov eax, dword [rbp - 0x2c]
mov rcx, qword [rbp - 0x28]
inc eax
mov dword [rbp - 0x2c], eax
cmp eax, dword [rcx + 0x18]
jae 0x14000b80e
mov rdx, qword [rbp + 0x40]
mov r8, qword [rbp - 0x20]
mov r9, qword [rbp - 0x18]
mov r10, qword [rbp - 0x10]
jmp 0x14000b650
mov rax, qword [rbp - 8]
jmp 0x14000b810
xor eax, eax
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000ca50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rbx, qword [0x1400161c0]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x10015
mov dword [rbp - 0x1c], 0x90009
mov dword [rbp - 0x18], 0x430019
mov dword [rbp - 0x14], 0x41005e
mov dword [rbp - 0x10], 0x80005
mov dword [rbp - 0xc], 0x610065
call fcn.1400029c0
mov rcx, rax
call rbx
mov rbx, qword [0x1400161c0]
lea rcx, [rbp - 0x20]
mov qword [0x1400161a0], rax
mov dword [rbp - 0x20], 0x11
mov dword [rbp - 0x1c], 0xc0002
mov dword [rbp - 0x18], 0x15001b
mov dword [rbp - 0x14], 0x410018
mov dword [rbp - 0x10], 0x80005
mov dword [rbp - 0xc], 0x610065
call fcn.1400029c0
mov rcx, rax
call rbx
movdqa xmm0, xmmword [0x140015430]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x140016130]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x1400161b0], rax
mov word [rbp - 0x10], 0x2413
mov byte [rbp - 0xe], 0x70
call fcn.140004620
mov rcx, qword [0x1400161a0]
mov rdx, rax
call rbx
mov rbx, qword [0x140016130]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x9090115
mov dword [rbp - 0x1c], 0xa143519
mov dword [rbp - 0x18], 0x47d1102
mov word [rbp - 0x14], 0x7422
call fcn.140001180
mov rcx, qword [0x1400161a0]
mov rdx, rax
call rbx
mov rbx, qword [0x140016130]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x18070f
mov dword [rbp - 0x1c], 0x1b091e07
mov dword [rbp - 0x18], 0xf6c142e
mov word [rbp - 0x14], 0x7434
call fcn.140001180
mov rcx, qword [0x1400161b0]
mov rdx, rax
call rbx
movdqa xmm0, xmmword [0x140015500]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x140016130]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x1400160e8], rax
mov byte [rbp - 0x10], 0x65
call fcn.140004330
mov rcx, qword [0x1400161b0]
mov rdx, rax
call rbx
movdqa xmm0, xmmword [0x140015490]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x140016130]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x1400160f0], rax
mov dword [rbp - 0x10], 0x9151f01
call fcn.140002660
mov rcx, qword [0x1400161b0]
mov rdx, rax
call rbx
movdqa xmm0, xmmword [0x140015450]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x140016130]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x1400160e0], rax
mov byte [rbp - 0x10], 0x65
call fcn.140004330
mov rcx, qword [0x1400161b0]
mov rdx, rax
call rbx
movdqa xmm0, xmmword [0x1400153e0]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x140016130]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x1400160d8], rax
mov dword [rbp - 0x10], 0x481e1c0c
mov byte [rbp - 0xc], 0x6d
call fcn.140003130
mov rcx, qword [0x1400161b0]
mov rdx, rax
call rbx
movdqa xmm0, xmmword [0x1400154a0]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x140016130]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x10], 0x320b
mov byte [rbp - 0xe], 0x70
call fcn.140004620
mov rcx, qword [0x1400161b0]
mov rdx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rbp
jmp rax
Function at 0x40170f
Capabilities:
Create process on windows
Create process suspended
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x8f8
test r8, r8
mov r12, rcx
mov ebx, edx
mov r13, r8
je 0x40160f
cmp byte [r8], 0
jne 0x40161a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x4016d2
lea rsi, [rsp + 0x870]
xor eax, eax
mov ecx, 0x1a
lea rbp, [rsp + 0x8d8]
mov r8d, 0x400
lea rdx, [rsp + 0x70]
mov rdi, rsi
rep stosd dword [rdi], eax
mov rdi, rbp
mov dword [rsp + 0x870], 0x68
mov cl, 6
rep stosd dword [rdi], eax
lea rcx, str.windir
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea r9, [rsp + 0x70]
lea r8, str._sSystem32_s
mov edx, 0x400
lea rcx, [rsp + 0x470]
mov qword [rsp + 0x20], r13
call qword [sym.imp.msvcrt.dll__snprintf]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rsi
lea rdx, [rsp + 0x470]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4016ff
mov rax, qword [rsp + 0x8d8]
test rax, rax
je 0x4016ff
lea rdi, [rsp + 0x50]
lea rsi, [rsp + 0x8d8]
mov ecx, 6
rep movsd dword [rdi], dword [rsi]
lea rdx, [rsp + 0x50]
movsxd r9, ebx
mov r8, r12
mov rcx, rax
call fcn.0040154d
nop
add rsp, 0x8f8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor eax, eax
jmp 0x401722
and r9d, 3
mov r9b, byte [r8 + r9]
xor byte [rcx + rax], r9b
inc rax
cmp eax, edx
mov r9d, eax
jl 0x401713
lea r8, str.rundll32.exe
jmp 0x4015ed

Function at 0x401740
Capabilities:
Connect pipe
Create pipe
Write file on windows
Write pipe

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r8d, r8d
mov r9d, 1
mov rdi, rcx
mov esi, edx
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov edx, 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea rcx, [0x0044a9b0]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov rbx, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x4017ec
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
mov rbp, qword [sym.imp.KERNEL32.dll_WriteFile]
jne 0x4017de
jmp 0x4017ec
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call rbp
test eax, eax
je 0x4017e2
mov eax, dword [rsp + 0x4c]
mov edx, eax
sub esi, eax
add rdi, rdx
test esi, esi
jg 0x4017b6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x401812
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r9d, r9d
mov r8d, 3
mov rdi, rcx
mov ebx, edx
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea rcx, [0x0044a9b0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
xor eax, eax
mov rbp, qword [sym.imp.KERNEL32.dll_ReadFile]
cmp rsi, 0xffffffffffffffff
jne 0x401897
jmp 0x4018a9
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call rbp
test eax, eax
je 0x40189b
mov eax, dword [rsp + 0x4c]
mov edx, eax
sub ebx, eax
add rdi, rdx
test ebx, ebx
jg 0x40186f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x401905
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x26aa
xor edx, edx
mov r9d, 0x5c
div ecx
lea rcx, [0x0044a9b0]
mov r8d, 0x5c
mov dword [rsp + 0x50], 0x5c
mov dword [rsp + 0x48], 0x65
mov dword [rsp + 0x40], 0x70
mov dword [rsp + 0x38], 0x69
mov dword [rsp + 0x30], 0x70
mov dword [rsp + 0x28], 0x5c
mov dword [rsp + 0x20], 0x2e
mov dword [rsp + 0x58], edx
lea rdx, str._c_c_c_c_c_c_c_c_cMSSE__d_server
call sub.msvcrt.dll_sprintf
lea r8, [0x004017f5]
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
add rsp, 0x68
jmp fcn.004018b2
Function at 0x402290
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, 0x98
test r8, r8
mov rbx, rcx
mov rdi, rdx
mov rsi, r8
jne 0x4022c0
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov ecx, dword [0x0044a360]
test ecx, ecx
jle 0x402497
mov rax, qword [0x0044a358]
xor ebp, ebp
nop word [rax + rax]
mov rdx, qword [rax + 8]
cmp rbx, rdx
jb 0x4022fd
mov r8, qword [rax + 0x10]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x402410
add ebp, 1
add rax, 0x18
cmp ebp, ecx
jne 0x4022e0
mov rcx, rbx
call fcn.00402910
test rax, rax
mov r12, rax
je 0x40249e
movsxd rbp, ebp
lea r13, [rbp + rbp*2]
shl r13, 3
mov rbp, r13
add rbp, qword [0x0044a358]
mov qword [rbp + 0x10], rax
mov dword [rbp], 0
call fcn.00402a00
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x50]
mov qword [rbp + 8], rax
mov rax, qword [0x0044a358]
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, qword [rax + r13 + 8]
call rbp
test rax, rax
je 0x4024ad
mov eax, dword [rsp + 0x74]
cmp eax, 4
jne 0x4023d0
add dword [0x0044a360], 1
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call rbp
test rax, rax
je 0x4024ca
mov eax, dword [rsp + 0x44]
cmp eax, 4
jne 0x402420
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
cmp eax, 0x40
je 0x402380
mov r9, qword [0x0044a358]
mov r8d, 0x40
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
add r9, r13
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x402380
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00402220
nop dword [rax]
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualQuery]
jmp 0x402387
cmp eax, 0x40
je 0x4023a9
lea r9, [rsp + 0x8c]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rbp
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call sub.msvcrt.dll_memcpy
mov eax, dword [rsp + 0x44]
cmp eax, 0x40
je 0x4022ad
cmp eax, 4
je 0x4022ad
mov r8d, dword [rsp + 0x8c]
mov rdx, qword [rsp + 0x38]
lea r9, [rsp + 0x8c]
mov rcx, qword [rsp + 0x20]
call rbp
nop
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor ebp, ebp
jmp 0x402308
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00402220
mov rax, qword [0x0044a358]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + r13 + 8]
call fcn.00402220
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, rbx
mov edx, 0x30
call fcn.00402220
nop
nop

Function at 0x4027f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
je 0x402800
repz ret
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x4027f9
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x402e80
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0044a940]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0044a968]
test rbx, rbx
je 0x402ed4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rdi
mov rbp, rax
call rsi
test eax, eax
jne 0x402ecb
test rbp, rbp
je 0x402ecb
mov rax, qword [rbx + 8]
mov rcx, rbp
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402eb0
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x0044a940]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
Function at 0x180005700
Capabilities:
Query environment variable

Disassembly:
push rbp
sub rsp, 0x90
lea rbp, [rsp + 0x30]
lea rcx, [0x1800e26f9]
call fcn.180031cb0
mov dword [rbp], 0
mov qword [rbp + 8], 0
lea rcx, str.BACNET_BBMD_PORT
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x18000576a
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
mov dword [0x180043024], eax
cmp dword [0x180043024], 0xffff
jle 0x18000576a
mov dword [0x180043024], 0xbac0
lea rcx, str.BACNET_BBMD_TIMETOLIVE
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x1800057ab
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
mov dword [0x180043020], eax
cmp dword [0x180043020], 0xffff
jle 0x1800057ab
mov dword [0x180043020], 0xffff
lea rcx, str.BACNET_BBMD_ADDRESS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x1800057d1
mov rcx, qword [rbp + 8]
call fcn.18001fde0
mov dword [0x1800485f8], eax
cmp dword [0x1800485f8], 0
je 0x18000588c
mov eax, dword [0x1800485f8]
mov dword [rbp + 0x10], eax
mov ecx, dword [rbp + 0x10]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov qword [rbp + 0x58], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov ecx, dword [0x180043020]
mov dword [rsp + 0x20], ecx
mov r9d, dword [0x180043024]
mov rcx, qword [rbp + 0x58]
mov r8, rcx
lea rdx, str.Registering_with_BBMD_at__s:_ld_for__ld_seconds_n
mov rcx, rax
call fcn.180001270
movzx ecx, word [0x180043024]
call qword [sym.imp.WS2_32.dll_htons]
movzx r8d, word [0x180043020]
movzx edx, ax
mov ecx, dword [0x1800485f8]
call fcn.180023100
mov dword [rbp], eax
cmp dword [rbp], 0
jge 0x18000587e
mov ecx, dword [rbp + 0x10]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov qword [rbp + 0x58], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, qword [rbp + 0x58]
mov r8, rcx
lea rdx, str.FAILED_to_Register_with_BBMD_at__s__n
mov rcx, rax
call fcn.180001270
movzx eax, word [0x180043020]
mov word [0x1800485f4], ax
mov eax, dword [rbp]
mov dword [0x1800485fc], eax
mov eax, dword [rbp]
lea rsp, [rbp + 0x60]
pop rbp
ret