joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442b90
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.0043a770
mov word [rbp + rax - 0x60], 0x5f
mov esi, dword [r15 + 4]
mov rcx, rbx
call fcn.0043a770
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.0043a770
mov word [rbp + rax - 0x60], 0x2e
mov esi, dword [r15]
mov rcx, rbx
call fcn.0043a770
lea rdx, [rbp + rax - 0x60]
mov r8d, 0xa
mov ecx, esi
call fcn.00446de0
mov rbx, qword [r15 + 0x38]
test rbx, rbx
je 0x442c73
mov rcx, rbx
call fcn.0043a770
mov rsi, rax
mov rcx, r14
call fcn.0043a770
mov rdi, rax
lea rcx, [rbp - 0x60]
call fcn.0043a770
add rdi, rsi
lea rdx, [rax + rdi + 3]
mov rcx, rbx
call fcn.00435220
mov rbx, rax
mov qword [r15 + 0x38], rbx
test rbx, rbx
jne 0x442cb7
jmp 0x442cfa
mov rcx, r14
call fcn.0043a770
mov rsi, rax
lea rcx, [rbp - 0x60]
call fcn.0043a770
mov rdi, rax
lea rcx, [rsi + rdi + 3]
call fcn.00435200
mov rbx, rax
mov qword [r15 + 0x38], rbx
test rbx, rbx
je 0x442cfa
mov rcx, r14
call fcn.0043a770
lea r8, [rdi + rax + 3]
xor edx, edx
mov rcx, rbx
call fcn.0043a030
mov rcx, rbx
mov rdx, r14
call fcn.0043a800
mov rsi, qword [r15 + 0x38]
mov rcx, rsi
call fcn.0043a770
mov word [rsi + rax], 0x3d
mov rcx, qword [r15 + 0x38]
lea rdx, [rbp - 0x60]
call fcn.0043a800
mov rsi, qword [r15 + 0x38]
mov rcx, rsi
call fcn.0043a770
mov word [rsi + rax], 0xa
mov eax, 1
jmp 0x442cfc
xor eax, eax
add rsp, 0x228
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
Function at 0x442d10
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.00444e30
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.00444e30
mov rcx, rbx
call fcn.00444e30
mov rcx, rdi
mov rdx, r14
call fcn.00439ab0
test rax, rax
jne 0x442e57
mov rcx, rbx
call fcn.0043a770
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.0043a2e0
xor ecx, ecx
test eax, eax
setne cl
cmove esi, r13d
add r15d, ecx
cmp r15d, 0x38
jg 0x442e0f
test esi, esi
je 0x442d80
test esi, esi
jne 0x442e57
mov edx, 0x5f
mov rcx, rdi
call fcn.0043a920
test rax, rax
jne 0x442e3b
mov edx, 0x2e
mov rcx, rdi
call fcn.0043a920
test rax, rax
je 0x442f67
mov r15d, dword [r12 + 4]
test r15d, r15d
je 0x442e4e
and r15d, 0x3ff
jmp 0x442e57
call sub.KERNEL32_GetSystemDefaultLangID
movzx r15d, ax
mov edx, 0x5f
mov rcx, rdi
call fcn.0043a920
test rax, rax
je 0x442f15
mov qword [rbp], r12
inc rax
mov edx, 0x2e
mov qword [rbp - 0x10], rax
mov rcx, rax
call fcn.0043a920
test rax, rax
je 0x442e8d
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.00444e30
mov rcx, rdi
mov rdx, qword [rbp - 0x10]
call fcn.0043a890
xor ecx, ecx
test eax, eax
setne al
mov edx, 1
cmove r12d, edx
cmove ebx, esi
test r14d, r14d
je 0x442efa
mov cl, al
add r13d, ecx
test r12d, r12d
je 0x442ea0
test r12d, r12d
je 0x442f67
mov rax, qword [rbp - 8]
test rax, rax
je 0x442f0b
mov byte [rax], 0x2e
mov r12, qword [rbp]
mov rdi, qword [rbp + 0x10]
jmp 0x442f26
and r15d, 0xfbff
or r15d, 0x400
mov ebx, r15d
mov edx, 0x2e
mov rcx, rdi
call fcn.0043a920
mov rsi, rax
test rsi, rsi
je 0x442f40
inc rsi
jmp 0x442f59
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.00446430
mov dword [r12], eax
jmp 0x442f73
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 0x444ad0
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.00435200
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.00435200
mov qword [r13], rax
test r13, r13
je 0x444b71
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 0x444b7b
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.00435200
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.00435200
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.00435200
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.00435200
mov rdi, rax
test rdi, rdi
je 0x444c8f
mov edx, 0x11
mov r9d, 4
mov ecx, r14d
mov r8, rdi
call sub.KERNEL32_GetLocaleInfoA
test eax, eax
je 0x444c9b
mov rcx, rdi
call fcn.00446430
mov word [r13 + 0x28], ax
mov rcx, rdi
call fcn.00435210
mov r15d, 1
jmp 0x444ca6
mov ecx, 0xe
call sub.KERNEL32_SetLastError
jmp 0x444ca6
mov rcx, rdi
call fcn.00435210
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 0x449a60
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 0x449b4a
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, [0x00466740]
lea rdx, [0x00454220]
mov rcx, rbx
call sub.USER32_wsprintfA
mov rcx, rbx
call fcn.0043a770
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.0043a770
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 0x449ba0
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 [0x00466768]
test rcx, rcx
mov rax, qword [0x00466760]
jne 0x449c75
test rax, rax
jne 0x449c75
cmp dword [0x00462fe0], 0
je 0x449cbf
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.004498a0
test rax, rax
jne 0x449c1d
mov edx, 0x3a
mov rcx, rdi
call fcn.004498a0
test rax, rax
je 0x449c23
inc rax
mov rdi, rax
mov dword [rbp + 0x3c], 0
call sub.KERNEL32_GetVersion
mov r9d, 0x12010
test eax, eax
jns 0x449c63
call sub.KERNEL32_GetCurrentThreadId
lea rdx, [0x00449d80]
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 0x449d33
test rax, rax
je 0x449c8f
cmp eax, 0xffffffff
je 0x449d33
mov rcx, rsi
call rax
mov rcx, qword [0x00466768]
test rcx, rcx
je 0x449d33
cmp ecx, 0xffffffff
je 0x449d33
cmp byte [rcx], 0
je 0x449d33
mov rdx, rsi
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.00449a60
mov ecx, 0xfffffff4
call sub.KERNEL32_GetStdHandle
mov rdi, rax
mov qword [rsp + 0x20], 0
lea r14, [0x00454250]
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.0043a770
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 0x44b670
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 [0x00476808]
test rax, rax
je 0x44b6b9
mov rcx, qword [rax]
test rcx, rcx
je 0x44b730
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 0x44b6a0
jmp 0x44b761
mov r14, qword [0x00476880]
test r14, r14
jne 0x44b6ec
call sub.KERNEL32_GetEnvironmentStrings
mov r14, rax
mov qword [0x00476880], r14
test r14, r14
jne 0x44b6ec
lea rcx, [0x00454360]
call fcn.00449d60
mov r14, qword [0x00476880]
mov rcx, r14
call fcn.0043a770
xor r15d, r15d
test eax, eax
je 0x44b734
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.0043a770
test eax, eax
jne 0x44b710
inc edi
movsxd rbx, edi
jmp 0x44b73b
xor esi, esi
jmp 0x44b761
mov ebx, 1
xor esi, esi
mov rcx, rbx
call fcn.00435200
mov qword [0x00476800], rax
test rax, rax
je 0x44b83b
mov rcx, rax
mov rdx, r14
mov r8, rbx
call fcn.00439d60
lea eax, [rsi + 4]
mov dword [0x00476810], eax
add esi, 5
movsxd rcx, esi
mov edx, 8
call fcn.004351f0
mov rdi, rax
test rdi, rdi
je 0x44b7d2
mov r14, qword [0x00476808]
test r14, r14
je 0x44b7d7
mov rdx, qword [r14]
test rdx, rdx
je 0x44b826
lea rax, [r14 + 8]
xor ecx, ecx
cmp byte [rdx], 0
je 0x44b7c0
mov rdx, qword [rax - 8]
movsxd rbx, ecx
mov qword [rdi + rbx*8], rdx
jmp 0x44b7c2
dec ecx
inc ecx
mov rdx, qword [rax]
add rax, 8
test rdx, rdx
jne 0x44b7a0
jmp 0x44b821
xor r15d, r15d
jmp 0x44b83b
mov rbx, qword [0x00476800]
mov rcx, rbx
call fcn.0043a770
test eax, eax
je 0x44b82e
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.0043a770
add rsi, 8
test eax, eax
jne 0x44b800
test r14, r14
je 0x44b82e
mov rcx, r14
call fcn.00435210
mov qword [0x00476808], 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 0x44c040
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
sub rsp, 0x28
xor rcx, rcx
call sub.KERNEL32_GetModuleHandleA
mov qword [0x004550a0], rax
call fcn.00439970
call fcn.00435530
call fcn.00439980
lea rax, [section..data]
lea rcx, [0x004021f0]
mov qword [rax + 0x30], rcx
lea rcx, section..text
mov qword [rax], rcx
lea rcx, [0x004012f4]
mov qword [rax + 8], rcx
lea rcx, [0x004012f4]
mov qword [rax + 0x10], rcx
lea rcx, [0x00401354]
mov qword [rax + 0x18], rcx
lea rcx, [0x0044ab40]
mov qword [rax + 0x68], rcx
lea rcx, [0x0044af40]
mov qword [rax + 0x70], rcx
lea rcx, [0x0044af70]
mov qword [rax + 0x78], rcx
lea rcx, [0x0044b520]
mov qword [rax + 0x80], rcx
lea rcx, [0x00462380]
mov qword [rax + 0x50], rcx
mov rcx, rax
push 0
jmp 0x44c040
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.0044bfe0
test edi, edi
je 0x44a6d5
test ebx, ebx
jne 0x44a6ec
test edi, edi
jne 0x44a6c6
call qword [0x00462f88]
call qword [0x00462f90]
call fcn.0044c000
mov ecx, r14d
call fcn.0044bd90
jmp 0x44a6ec
mov rcx, rsi
call fcn.0044a480
call fcn.0044beb0
call qword [0x00462f80]
test ebx, ebx
je 0x44a6b6
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.0044c000
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 [0x00462fe0], eax
mov rcx, qword [rsi + 0x50]
call fcn.0043bd10
mov rcx, qword [rsi + 0x88]
call fcn.0043bd20
mov dword [0x004768e0], 1
lea rdi, [0x004768e0]
mov qword [0x004768e8], rsi
call sub.KERNEL32_GetEnvironmentStrings
mov qword [0x00476880], rax
call sub.KERNEL32_GetCommandLineA
mov qword [0x00476890], rax
mov rcx, qword [rsi + 0x68]
mov rdx, qword [rsi + 0x70]
mov r8, qword [rsi + 0x78]
mov r9, qword [rsi + 0x80]
call fcn.0044a900
xor edx, edx
mov rcx, rdi
call fcn.0044bdb0
test byte [rsi + 0x20], 1
jne 0x44c104
mov ecx, dword [0x004768ac]
mov rdx, qword [0x004768b0]
mov r8, qword [0x004768b8]
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 0x44a690
mov rax, qword [0x00476890]
nop dword [rax + rax]
inc rax
mov cl, byte [rax - 1]
cmp cl, 9
je 0x44c110
cmp cl, 0x20
je 0x44c110
cmp cl, 0x22
jne 0x44c12e
mov cl, byte [rax]
mov edx, 0x22
jmp 0x44c136
dec rax
mov edx, 0x20
movsx edi, cl
cmp edx, edi
je 0x44c154
nop dword [rax]
test cl, cl
je 0x44c154
cmp cl, 9
je 0x44c154
movsx ecx, byte [rax + 1]
inc rax
cmp edx, ecx
jne 0x44c140
lea rdi, [rax + 1]
cmp cl, 0x22
cmovne rdi, rax
jmp 0x44c173
inc rdi
movzx eax, byte [rdi]
cmp al, 0x20
je 0x44c170
cmp al, 9
je 0x44c170
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 0x44a690
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x44c430
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 [0x004550b4], 0
je 0x44c492
mov ecx, dword [0x00476910]
call sub.KERNEL32_TlsGetValue
test rax, rax
jne 0x44c49e
call fcn.0044c280
mov edi, eax
test edi, edi
je 0x44c485
call sub.KERNEL32_GetProcessHeap
movsxd r8, edi
mov edx, 8
mov rcx, rax
call sub.KERNEL32_HeapAlloc
mov ecx, dword [0x00476910]
mov rdx, rax
call sub.KERNEL32_TlsSetValue
mov ecx, dword [0x00476910]
call sub.KERNEL32_TlsGetValue
jmp 0x44c49e
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 0x140009234
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000927e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000927e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000927e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000927e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000927e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140009280
xor al, al
add rsp, 0x28
ret
Function at 0x14000f3e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
xor ebp, ebp
mov rbx, rcx
lea r8d, [rbp + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14000f48a
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000f48a
mov rcx, rax
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov eax, 2
shr ebx, 1
lea ecx, [rbx + 1]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14000f928
add rbx, rbx
mov rdx, rsi
mov r8, rbx
mov rcx, rax
mov rdi, rax
call fcn.140010860
mov rsi, qword [rsp + 0x30]
mov rax, rdi
mov word [rbx + rdi], bp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000fca8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rcx, 0x58a7345b
jmp 0x140002b1e
dec rcx
jmp 0x140002b3f
jne 0x140002b1e
jmp 0x140005583
jmp 0x140006cd5
jmp 0x140006d2d
jmp 0x140006d81
jmp 0x140006ddb
jmp 0x140006e13
jmp 0x140006e5e
jmp 0x140006eae
jmp 0x140006f38
jmp 0x140006f5b
jmp 0x140006fd6
jmp 0x140006ffa
jmp 0x140007079
jmp 0x140007096
jmp 0x1400070ed
jmp 0x14000713b
jmp 0x1400071a8
jmp 0x14000720d
jmp 0x140007251
jmp 0x140007291
jmp 0x1400072fc
xor rcx, rcx
mov rdx, 0x6e93
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call 0x14000731c
pop rsi
add rsi, 0xe51
mov rdi, rax
mov rcx, 0x6e93
rep movsb byte [rdi], byte [rsi]
jmp rax
sub rsp, 0x28
call fcn.1400100cc
add rsp, 0x28
xor rcx, rcx
jmp 0x140001e3c

Function at 0x140010374
Capabilities:
Parse pe header

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

Function at 0x140013f74
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013da0

Function at 0x14001747c
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rbp + 0x1b8], rax
xor edi, edi
mov qword [rsp + 0x58], rdx
mov r12, rcx
test rdx, rdx
jne 0x140016f79
call fcn.140015290
lea ebx, [rdi + 0x16]
mov dword [rax], ebx
call fcn.140015170
mov eax, ebx
jmp 0x1400172af
xorps xmm0, xmm0
mov qword [rdx], rdi
mov rax, qword [rcx]
movdqu xmmword [rsp + 0x30], xmm0
mov rsi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
mov qword [rsp + 0x40], rdi
jmp 0x140016f24
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140027160]
mov dword [rax], 1
mov rax, qword [0x140027170]
mov dword [rax], 1
mov rax, qword [0x140027180]
mov dword [rax], 1
mov rax, qword [0x140027150]
mov dword [rax], 1
mov rax, qword [0x140027000]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140004383
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x1400043b3
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen
mov rdx, rax
jmp 0x1400043b8
mov edx, 0
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000e4fc
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret