joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438530
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rsi
sub rsp, 0x58
lea rbp, [rsp + 0x50]
cmp dword [0x00467d50], 0
jg 0x43859c
mov eax, dword [0x00467d50]
test eax, eax
jg 0x43859c
mov esi, 0xffffffff
nop word cs:[rax + rax]
test eax, eax
jne 0x438570
xor eax, eax
lock cmpxchg dword [0x00467d50], esi
je 0x438585
xor ecx, ecx
xor edx, edx
call sub.KERNEL32_SleepEx
mov eax, dword [0x00467d50]
test eax, eax
jle 0x438560
jmp 0x43859c
lea rcx, [0x00467d58]
call fcn.00452508
mov eax, 1
xchg dword [0x00467d50], eax
lea rcx, [0x00467d58]
call fcn.004523d8
cmp qword [0x00467950], 0
jne 0x43862a
lea rcx, [rbp - 0x28]
call sub.KERNEL32_GetSystemInfo
mov eax, dword [rbp]
lea ecx, [rax - 1]
test rcx, rax
jne 0x43863e
mov edx, 0xffffffff
mov ecx, dword [rbp - 0x24]
add edx, ecx
test rdx, rcx
jne 0x43863e
mov qword [0x00467960], rax
mov qword [0x00467958], rcx
movaps xmm0, xmmword [0x00455440]
movups xmmword [0x00467968], xmm0
mov dword [0x00467978], 7
mov dword [0x00467cf0], 7
lea rcx, [0x00467cf8]
mov edx, 0x80000fa0
call sub.KERNEL32_InitializeCriticalSectionAndSpinCount
call sub.KERNEL32_GetTickCount
and eax, 0xfffffff0
xor eax, 0x55555558
mov qword [0x00467950], rax
lea rcx, [0x00467d58]
call fcn.00452538
nop
add rsp, 0x58
pop rsi
pop rbp
ret
call fcn.0044bbe0
ud2

Function at 0x43c1e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, edx
call sub.KERNEL32_GetFileAttributesA
mov ecx, eax
cmp ecx, 0xffffffff
je 0x43c21d
xor eax, eax
test sil, 2
je 0x43c216
and ecx, 1
je 0x43c216
call fcn.0044b3c0
mov dword [rax], 5
mov eax, 0xffffffff
add rsp, 0x28
pop rsi
pop rbp
ret
add rsp, 0x28
pop rsi
pop rbp
jmp fcn.0043eb30
jmp 0x43c1e0
Function at 0x43c610
Capabilities:
Check if file exists

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov ebx, edx
mov r14, rcx
mov qword [rbp + 0x48], r9
mov qword [rbp + 0x40], r8
call fcn.0043dfd0
test bh, 0xc0
jne 0x43c646
mov rax, qword [0x00464c70]
mov ecx, 0xc000
and ecx, dword [rax]
or ebx, ecx
mov eax, ebx
and eax, 0x700
add eax, 0xffffff00
shr eax, 8
mov edi, 3
cmp eax, 6
ja 0x43c671
shl rax, 0x28
sar rax, 0x28
lea rcx, [0x004554a0]
mov edi, dword [rcx + rax*4]
test bh, 1
je 0x43c696
lea rax, [rbp + 0x48]
mov qword [rbp - 0x18], rax
mov al, byte [0x00460440]
and al, byte [rbp + 0x40]
mov eax, 0x80
mov ecx, 1
cmovs ecx, eax
jmp 0x43c6a6
mov rcx, r14
call sub.KERNEL32_GetFileAttributesA
xor ecx, ecx
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, ebx
and al, 3
je 0x43c6bf
cmp al, 2
je 0x43c6c6
cmp al, 1
jne 0x43c7a6
mov edx, 0x40000000
jmp 0x43c6cb
mov edx, 0x80000000
jmp 0x43c6cb
mov edx, 0xc0000000
mov eax, ebx
and eax, 0x70
add eax, 0xfffffff0
shr eax, 4
cmp eax, 3
mov esi, 3
cmovb esi, eax
xor r8d, r8d
cmp edx, 0x80000000
sete r8b
test bl, 4
cmove r8d, esi
mov dword [rbp - 0x18], 0x18
mov qword [rbp - 0x10], 0
mov eax, ebx
shr eax, 7
not eax
and eax, 1
mov dword [rbp - 8], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x30], 0
lea r9, [rbp - 0x18]
mov rcx, r14
call sub.KERNEL32_CreateFileA
mov rsi, rax
cmp rsi, 0xffffffffffffffff
je 0x43c786
mov edi, ebx
shr edi, 1
not edi
and edi, 0x4000
or edi, ebx
mov ecx, esi
call fcn.0043c550
mov edx, edi
or edx, 0x2000
test eax, eax
cmove edx, edi
and edx, 0xfffff8ff
mov ecx, esi
call fcn.0043e1c0
mov edi, eax
cmp edi, 0xffffffff
jne 0x43c7b2
mov ecx, 4
call fcn.0043ea70
mov rcx, rsi
call sub.KERNEL32_CloseHandle
mov edi, 0xffffffff
jmp 0x43c7b2
call sub.KERNEL32_GetLastError
movzx eax, ax
test bh, 1
mov edx, 0x50
mov ecx, 2
cmovne ecx, edx
cmp eax, 0x6e
cmovne ecx, eax
jmp 0x43c7ab
mov ecx, 1
call fcn.0043ea70
mov edi, eax
call fcn.0043e030
mov eax, edi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret

Function at 0x43d070
Capabilities:
Read file on windows

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
cmp dword [0x00464450], ecx
jbe 0x43d0ac
movsxd rax, ecx
lea rcx, [0x004685a0]
movsxd rcx, dword [rcx + rax*4]
mov qword [rsp + 0x20], 0
lea r9, [rbp - 4]
call sub.KERNEL32_ReadFile
cmp eax, 1
jne 0x43d0bd
mov eax, dword [rbp - 4]
jmp 0x43d0b6
mov ecx, 6
call fcn.0043ea70
nop
add rsp, 0x30
pop rbp
ret
call sub.KERNEL32_GetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
je 0x43d0b6
jmp 0x43d0b1

Function at 0x43d100
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
cmp dword [0x00464450], ecx
jbe 0x43d13c
movsxd rax, ecx
lea rcx, [0x004685a0]
movsxd rcx, dword [rcx + rax*4]
mov qword [rsp + 0x20], 0
lea r9, [rbp - 4]
call sub.KERNEL32_WriteFile
cmp eax, 1
jne 0x43d148
mov eax, dword [rbp - 4]
jmp 0x43d14d
mov ecx, 6
call fcn.0043ea70
jmp 0x43d14d
call fcn.0043eb30
nop
add rsp, 0x30
pop rbp
ret
Function at 0x440a50
Capabilities:
Delete file

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
call sub.KERNEL32_DeleteFileA
cmp eax, 1
jne 0x440a6c
xor eax, eax
add rsp, 0x20
pop rbp
ret
add rsp, 0x20
pop rbp
jmp fcn.0043eb30

Function at 0x440cf0
Capabilities:
Timestomp file

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov rdi, rdx
call fcn.0043f480
mov rsi, rax
cmp rsi, 0xffffffffffffffff
je 0x440d37
test rdi, rdi
je 0x440d3e
mov rcx, qword [rdi]
lea rdx, [rbp - 8]
call fcn.00440a80
cmp eax, 1
jne 0x440d71
mov rcx, qword [rdi + 8]
lea rdx, [rbp - 0x10]
call fcn.00440a80
cmp eax, 1
je 0x440d5e
jmp 0x440d71
mov ecx, 0xffffffff
jmp 0x440d7e
lea rdi, [rbp - 0x20]
mov rcx, rdi
call sub.KERNEL32_GetLocalTime
lea rdx, [rbp - 8]
mov rcx, rdi
call sub.KERNEL32_SystemTimeToFileTime
mov rax, qword [rbp - 8]
mov qword [rbp - 0x10], rax
lea r8, [rbp - 8]
lea rdx, [rbp - 0x10]
mov rcx, rsi
mov r9, rdx
call sub.KERNEL32_SetFileTime
xor ecx, ecx
test eax, eax
jne 0x440d7e
call fcn.0043eb30
mov ecx, eax
mov eax, ecx
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x442320
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, edx
call sub.KERNEL32_GetFileAttributesA
mov ecx, eax
cmp ecx, 0xffffffff
je 0x43c21d
xor eax, eax
test sil, 2
je 0x43c216
and ecx, 1
je 0x43c216
call fcn.0044b3c0
mov dword [rax], 5
mov eax, 0xffffffff
add rsp, 0x28
pop rsi
pop rbp
ret
add rsp, 0x28
pop rsi
pop rbp
jmp fcn.0043eb30
jmp 0x43c1e0
Function at 0x4443f0
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.0043bfd0
mov word [rbp + rax - 0x60], 0x5f
mov esi, dword [r15 + 4]
mov rcx, rbx
call fcn.0043bfd0
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.0043bfd0
mov word [rbp + rax - 0x60], 0x2e
mov esi, dword [r15]
mov rcx, rbx
call fcn.0043bfd0
lea rdx, [rbp + rax - 0x60]
mov r8d, 0xa
mov ecx, esi
call fcn.00448640
mov rbx, qword [r15 + 0x38]
test rbx, rbx
je 0x4444d3
mov rcx, rbx
call fcn.0043bfd0
mov rsi, rax
mov rcx, r14
call fcn.0043bfd0
mov rdi, rax
lea rcx, [rbp - 0x60]
call fcn.0043bfd0
add rdi, rsi
lea rdx, [rax + rdi + 3]
mov rcx, rbx
call fcn.00436a80
mov rbx, rax
mov qword [r15 + 0x38], rbx
test rbx, rbx
jne 0x444517
jmp 0x44455a
mov rcx, r14
call fcn.0043bfd0
mov rsi, rax
lea rcx, [rbp - 0x60]
call fcn.0043bfd0
mov rdi, rax
lea rcx, [rsi + rdi + 3]
call fcn.00436a60
mov rbx, rax
mov qword [r15 + 0x38], rbx
test rbx, rbx
je 0x44455a
mov rcx, r14
call fcn.0043bfd0
lea r8, [rdi + rax + 3]
xor edx, edx
mov rcx, rbx
call fcn.0043b890
mov rcx, rbx
mov rdx, r14
call fcn.0043c060
mov rsi, qword [r15 + 0x38]
mov rcx, rsi
call fcn.0043bfd0
mov word [rsi + rax], 0x3d
mov rcx, qword [r15 + 0x38]
lea rdx, [rbp - 0x60]
call fcn.0043c060
mov rsi, qword [r15 + 0x38]
mov rcx, rsi
call fcn.0043bfd0
mov word [rsi + rax], 0xa
mov eax, 1
jmp 0x44455c
xor eax, eax
add rsp, 0x228
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
Function at 0x444570
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.00446690
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.00446690
mov rcx, rbx
call fcn.00446690
mov rcx, rdi
mov rdx, r14
call fcn.0043b310
test rax, rax
jne 0x4446b7
mov rcx, rbx
call fcn.0043bfd0
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.0043bb40
xor ecx, ecx
test eax, eax
setne cl
cmove esi, r13d
add r15d, ecx
cmp r15d, 0x38
jg 0x44466f
test esi, esi
je 0x4445e0
test esi, esi
jne 0x4446b7
mov edx, 0x5f
mov rcx, rdi
call fcn.0043c180
test rax, rax
jne 0x44469b
mov edx, 0x2e
mov rcx, rdi
call fcn.0043c180
test rax, rax
je 0x4447c7
mov r15d, dword [r12 + 4]
test r15d, r15d
je 0x4446ae
and r15d, 0x3ff
jmp 0x4446b7
call sub.KERNEL32_GetSystemDefaultLangID
movzx r15d, ax
mov edx, 0x5f
mov rcx, rdi
call fcn.0043c180
test rax, rax
je 0x444775
mov qword [rbp], r12
inc rax
mov edx, 0x2e
mov qword [rbp - 0x10], rax
mov rcx, rax
call fcn.0043c180
test rax, rax
je 0x4446ed
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.00446690
mov rcx, rdi
mov rdx, qword [rbp - 0x10]
call fcn.0043c0f0
xor ecx, ecx
test eax, eax
setne al
mov edx, 1
cmove r12d, edx
cmove ebx, esi
test r14d, r14d
je 0x44475a
mov cl, al
add r13d, ecx
test r12d, r12d
je 0x444700
test r12d, r12d
je 0x4447c7
mov rax, qword [rbp - 8]
test rax, rax
je 0x44476b
mov byte [rax], 0x2e
mov r12, qword [rbp]
mov rdi, qword [rbp + 0x10]
jmp 0x444786
and r15d, 0xfbff
or r15d, 0x400
mov ebx, r15d
mov edx, 0x2e
mov rcx, rdi
call fcn.0043c180
mov rsi, rax
test rsi, rsi
je 0x4447a0
inc rsi
jmp 0x4447b9
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.00447c90
mov dword [r12], eax
jmp 0x4447d3
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 0x446330
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.00436a60
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.00436a60
mov qword [r13], rax
test r13, r13
je 0x4463d1
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 0x4463db
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.00436a60
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.00436a60
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.00436a60
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.00436a60
mov rdi, rax
test rdi, rdi
je 0x4464ef
mov edx, 0x11
mov r9d, 4
mov ecx, r14d
mov r8, rdi
call sub.KERNEL32_GetLocaleInfoA
test eax, eax
je 0x4464fb
mov rcx, rdi
call fcn.00447c90
mov word [r13 + 0x28], ax
mov rcx, rdi
call fcn.00436a70
mov r15d, 1
jmp 0x446506
mov ecx, 0xe
call sub.KERNEL32_SetLastError
jmp 0x446506
mov rcx, rdi
call fcn.00436a70
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 0x44b2c0
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 0x44b3aa
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, [0x00469030]
lea rdx, [0x00456230]
mov rcx, rbx
call sub.USER32_wsprintfA
mov rcx, rbx
call fcn.0043bfd0
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.0043bfd0
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 0x44b400
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 [0x00469058]
test rcx, rcx
mov rax, qword [0x00469050]
jne 0x44b4d5
test rax, rax
jne 0x44b4d5
cmp dword [0x004658c0], 0
je 0x44b51f
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.0044b100
test rax, rax
jne 0x44b47d
mov edx, 0x3a
mov rcx, rdi
call fcn.0044b100
test rax, rax
je 0x44b483
inc rax
mov rdi, rax
mov dword [rbp + 0x3c], 0
call sub.KERNEL32_GetVersion
mov r9d, 0x12010
test eax, eax
jns 0x44b4c3
call sub.KERNEL32_GetCurrentThreadId
lea rdx, [0x0044b5e0]
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 0x44b593
test rax, rax
je 0x44b4ef
cmp eax, 0xffffffff
je 0x44b593
mov rcx, rsi
call rax
mov rcx, qword [0x00469058]
test rcx, rcx
je 0x44b593
cmp ecx, 0xffffffff
je 0x44b593
cmp byte [rcx], 0
je 0x44b593
mov rdx, rsi
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.0044b2c0
mov ecx, 0xfffffff4
call sub.KERNEL32_GetStdHandle
mov rdi, rax
mov qword [rsp + 0x20], 0
lea r14, [0x00456260]
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.0043bfd0
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 0x44ced0
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 [0x004790f8]
test rax, rax
je 0x44cf19
mov rcx, qword [rax]
test rcx, rcx
je 0x44cf90
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 0x44cf00
jmp 0x44cfc1
mov r14, qword [0x00479170]
test r14, r14
jne 0x44cf4c
call sub.KERNEL32_GetEnvironmentStrings
mov r14, rax
mov qword [0x00479170], r14
test r14, r14
jne 0x44cf4c
lea rcx, [0x00456370]
call fcn.0044b5c0
mov r14, qword [0x00479170]
mov rcx, r14
call fcn.0043bfd0
xor r15d, r15d
test eax, eax
je 0x44cf94
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.0043bfd0
test eax, eax
jne 0x44cf70
inc edi
movsxd rbx, edi
jmp 0x44cf9b
xor esi, esi
jmp 0x44cfc1
mov ebx, 1
xor esi, esi
mov rcx, rbx
call fcn.00436a60
mov qword [0x004790f0], rax
test rax, rax
je 0x44d09b
mov rcx, rax
mov rdx, r14
mov r8, rbx
call fcn.0043b5c0
lea eax, [rsi + 4]
mov dword [0x00479100], eax
add esi, 5
movsxd rcx, esi
mov edx, 8
call fcn.00436a50
mov rdi, rax
test rdi, rdi
je 0x44d032
mov r14, qword [0x004790f8]
test r14, r14
je 0x44d037
mov rdx, qword [r14]
test rdx, rdx
je 0x44d086
lea rax, [r14 + 8]
xor ecx, ecx
cmp byte [rdx], 0
je 0x44d020
mov rdx, qword [rax - 8]
movsxd rbx, ecx
mov qword [rdi + rbx*8], rdx
jmp 0x44d022
dec ecx
inc ecx
mov rdx, qword [rax]
add rax, 8
test rdx, rdx
jne 0x44d000
jmp 0x44d081
xor r15d, r15d
jmp 0x44d09b
mov rbx, qword [0x004790f0]
mov rcx, rbx
call fcn.0043bfd0
test eax, eax
je 0x44d08e
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.0043bfd0
add rsi, 8
test eax, eax
jne 0x44d060
test r14, r14
je 0x44d08e
mov rcx, r14
call fcn.00436a70
mov qword [0x004790f8], 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 0x44d8a0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
sub rsp, 0x28
xor rcx, rcx
call sub.KERNEL32_GetModuleHandleA
mov qword [0x004570a0], rax
call fcn.0043b1d0
call fcn.00436d90
call fcn.0043b1e0
lea rax, [section..data]
lea rcx, [0x00402200]
mov qword [rax + 0x30], rcx
lea rcx, section..text
mov qword [rax], rcx
lea rcx, [0x0040130c]
mov qword [rax + 8], rcx
lea rcx, [0x0040130c]
mov qword [rax + 0x10], rcx
lea rcx, [0x0040136c]
mov qword [rax + 0x18], rcx
lea rcx, [0x0044c3a0]
mov qword [rax + 0x68], rcx
lea rcx, [0x0044c7a0]
mov qword [rax + 0x70], rcx
lea rcx, [0x0044c7d0]
mov qword [rax + 0x78], rcx
lea rcx, [0x0044cd80]
mov qword [rax + 0x80], rcx
lea rcx, [0x00464c60]
mov qword [rax + 0x50], rcx
mov rcx, rax
push 0
jmp 0x44d8a0
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rsi, r9
mov r14d, r8d
mov ebx, edx
mov edi, ecx
call fcn.0044d840
test edi, edi
je 0x44bf35
test ebx, ebx
jne 0x44bf4c
test edi, edi
jne 0x44bf26
call qword [0x00465868]
call qword [0x00465870]
call fcn.0044d860
mov ecx, r14d
call fcn.0044d5f0
jmp 0x44bf4c
mov rcx, rsi
call fcn.0044bce0
call fcn.0044d710
call qword [0x00465860]
test ebx, ebx
je 0x44bf16
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.0044d860
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov eax, dword [rsi + 0x20]
and eax, 1
mov dword [0x004658c0], eax
mov rcx, qword [rsi + 0x50]
call fcn.0043d570
mov rcx, qword [rsi + 0x88]
call fcn.0043d580
mov dword [0x004791d0], 1
lea rdi, [0x004791d0]
mov qword [0x004791d8], rsi
call sub.KERNEL32_GetEnvironmentStrings
mov qword [0x00479170], rax
call sub.KERNEL32_GetCommandLineA
mov qword [0x00479180], rax
mov rcx, qword [rsi + 0x68]
mov rdx, qword [rsi + 0x70]
mov r8, qword [rsi + 0x78]
mov r9, qword [rsi + 0x80]
call fcn.0044c160
xor edx, edx
mov rcx, rdi
call fcn.0044d610
test byte [rsi + 0x20], 1
jne 0x44d964
mov ecx, dword [0x0047919c]
mov rdx, qword [0x004791a0]
mov r8, qword [0x004791a8]
call qword [rsi + 0x30]
xor ecx, ecx
xor edx, edx
mov r9, 0xffffffffffffffff
mov r8d, eax
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop rbp
jmp 0x44bef0
mov rax, qword [0x00479180]
nop dword [rax + rax]
inc rax
mov cl, byte [rax - 1]
cmp cl, 9
je 0x44d970
cmp cl, 0x20
je 0x44d970
cmp cl, 0x22
jne 0x44d98e
mov cl, byte [rax]
mov edx, 0x22
jmp 0x44d996
dec rax
mov edx, 0x20
movsx edi, cl
cmp edx, edi
je 0x44d9b4
nop dword [rax]
test cl, cl
je 0x44d9b4
cmp cl, 9
je 0x44d9b4
movsx ecx, byte [rax + 1]
inc rax
cmp edx, ecx
jne 0x44d9a0
lea rdi, [rax + 1]
cmp cl, 0x22
cmovne rdi, rax
jmp 0x44d9d3
inc rdi
movzx eax, byte [rdi]
cmp al, 0x20
je 0x44d9d0
cmp al, 9
je 0x44d9d0
mov rbx, qword [rsi + 0x30]
xor ecx, ecx
call sub.KERNEL32_GetModuleHandleA
mov rsi, rax
lea rcx, [rbp - 0x60]
call sub.KERNEL32_GetStartupInfoA
mov eax, dword [rbp - 0x24]
test al, 1
movzx eax, word [rbp - 0x20]
mov r9d, 0xa
cmovne r9d, eax
xor edx, edx
mov rcx, rsi
mov r8, rdi
call rbx
xor ecx, ecx
xor edx, edx
mov r9, 0xffffffffffffffff
mov r8d, eax
call 0x44bef0
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x44dc90
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 [0x004570b4], 0
je 0x44dcf2
mov ecx, dword [0x00479200]
call sub.KERNEL32_TlsGetValue
test rax, rax
jne 0x44dcfe
call fcn.0044dae0
mov edi, eax
test edi, edi
je 0x44dce5
call sub.KERNEL32_GetProcessHeap
movsxd r8, edi
mov edx, 8
mov rcx, rax
call sub.KERNEL32_HeapAlloc
mov ecx, dword [0x00479200]
mov rdx, rax
call sub.KERNEL32_TlsSetValue
mov ecx, dword [0x00479200]
call sub.KERNEL32_TlsGetValue
jmp 0x44dcfe
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 0x140016640
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x1400167cb
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [str._bx_r_]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.140033c00
xorps xmm15, xmm15
mov r14, qword [0x1402d6850]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x1400166a5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x1400166b4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x1400166d3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x1400166e3
cmp rbx, 0x1000
jae 0x1400166ab
jmp 0x14001674d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x1400166f5
xor edx, edx
jmp 0x140016744
mov rcx, qword [str._bx_r_]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.140033c00
xorps xmm15, xmm15
mov r14, qword [0x1402d6850]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x1400166d9
jmp 0x1400166c8
call fcn.1400644c0
xorps xmm15, xmm15
mov r14, qword [0x1402d6850]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.140038020
lea rax, [0x14012b114]
mov ebx, 0x18
nop dword [rax]
call fcn.1400388a0
mov rax, qword [rsp + 0x38]
call fcn.1400385e0
lea rax, [0x14012b7a4]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.1400388a0
mov rax, qword [rsp + 0x30]
call fcn.1400385e0
call fcn.140038260
call fcn.140038080
lea rax, [0x14012df37]
mov ebx, 0x21
call fcn.140036680
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.140060e00
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.140016640