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

Disassembly:
push rbp
sub rsp, 0x1d0
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x40], rdx
mov word [rbp + 0x4e], r8w
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
call fcn.00410080
movzx rax, word [rbp + 0x4e]
cmp word [0x00b1ed60], ax
ja 0x414898
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x00b1f160]
mov word [rbp + 0x4e], ax
ja 0x414898
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x414897
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x00b1ed60]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x414851
mov ecx, eax
sub ecx, 1
jmp 0x414892
lea rdx, [0x00b1ed60]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x414873
mov r8d, eax
add r8d, 1
jmp 0x414892
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x00b1ed68]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.00414650
jmp 0x414897
cmp ecx, r8d
jae 0x414820
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x41497a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x41497a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x59
lea r8, [rbp + 0x126]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x5a
lea r8, [rbp + 0x7c]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x68]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.00411f10
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.00411f10
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.00411f10
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x004149d4]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x004149e4]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.00412390
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.00410160
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x414bf0
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov word [rbp + 0x36], dx
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
nop
lea rcx, [0x00bbdc90]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00bbdcb8], ax
jne 0x414c5b
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00bbdcba]
mov r8d, 0x55
call fcn.00411f10
lea rcx, [0x00bbdc90]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x414d67
lea rcx, [0x00bbdc90]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.00410080
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x414d20
cmp byte [0x00bbdc88], 0
je 0x414cb4
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.00414a80
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.004106d0
jmp 0x414d20
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.004147b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.004106d0
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x414d20
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x414cff
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00414db4]
call fcn.00412180
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.004147b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.00412180
lea rcx, [0x00bbdc90]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00bbdcb8], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.00411e10
lea rcx, [0x00bbdcba]
mov rdx, rax
mov r8d, 0xaa
call sub.kernel32.dll_lstrcpynW
lea rcx, [0x00bbdc90]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.00410160
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x415770
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x70], r8
mov rcx, qword [rbp + 0x70]
call fcn.00410210
nop
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx ecx, ax
mov edx, 3
lea r8, [rbp + 0x48]
mov r9d, 4
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x38]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.00411f10
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.00412270
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.00415590
test al, al
jne 0x41583e
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.00411f10
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.00412270
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.00415590
test al, al
jne 0x41583e
mov rcx, qword [rbp + 0x20]
call fcn.00410080
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.00410160
lea rcx, [rbp + 0x70]
call fcn.00410080
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x4158b0
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov rcx, qword [rbp + 0x88]
call fcn.00410210
mov rcx, qword [rbp + 0x90]
call fcn.00410210
nop
mov rcx, qword [rbp + 0x28]
call fcn.00410080
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.00410750
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x415953
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x41598d
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x415986
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.00412480
jmp 0x41598d
sub eax, 1
test eax, eax
jne 0x415958
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.00415480
cmp qword [rbp + 0x68], 0
je 0x4159cb
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.00415630
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.004106d0
jmp 0x415a67
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.00414bf0
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.00415630
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.004106d0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x415a40
cmp byte [0x00bbdc88], 0
jne 0x415a40
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.00414bf0
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.00415630
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.004106d0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x415a67
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.00415770
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.004106d0
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.00410160
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.00410160
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x416ae0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x416b00
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call sub.kernel32.dll_GetVersion
mov ecx, eax
and ecx, 0xff
and eax, 0xff00
shr eax, 8
cmp ecx, 5
jne 0x416b24
cmp eax, 1
jae 0x416b29
cmp ecx, 5
jbe 0x416b35
mov dword [0x00bb99b0], 0x7f
jmp 0x416b3f
mov dword [0x00bb99b0], 0x409
add rsp, 0x28
ret
Function at 0x4182e0
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.004182d0
mov ebx, eax
test ebx, ebx
je 0x41832b
cmp dword [0x00b1fc24], 0xffffffff
jne 0x418304
mov ecx, 0xe2
call fcn.0040fd30
mov ecx, ebx
call fcn.004182b0
test rax, rax
jne 0x41831d
mov ecx, 0xe2
call fcn.0040fd30
jmp 0x41832b
mov ecx, dword [0x00b1fc24]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x418340
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x00bbdd64], 0
je 0x41837b
mov ecx, dword [0x00b1fc24]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x41838f
call fcn.004182e0
mov ecx, dword [0x00b1fc24]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x41838f
mov rax, qword [0x00bbdd98]
jmp 0x41838f
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x00b1fc24]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x424e30
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov esi, edx
test esi, esi
je 0x424f0b
test esi, esi
setl r14b
mov rcx, rbx
mov edx, 0xb
xor r8, r8
call fcn.00411590
mov edi, 0xb
mov ecx, 0xa
mov eax, esi
cdq
idiv ecx
mov rax, rdx
movsxd rcx, eax
shr rcx, 0x20
xor eax, ecx
mov r13d, eax
sub r13d, ecx
mov ecx, 0xa
mov eax, esi
cdq
idiv ecx
mov rsi, rax
mov rcx, rbx
call fcn.004109d0
movsxd rcx, edi
add r13b, 0x30
mov byte [rax + rcx - 1], r13b
sub edi, 1
test esi, esi
jne 0x424e65
test r14b, r14b
je 0x424ec3
mov rcx, rbx
call fcn.004109d0
movsxd rcx, edi
mov byte [rax + rcx - 1], 0x2d
sub edi, 1
test edi, edi
jle 0x424f1a
mov rcx, rbx
call fcn.004109d0
mov rsi, rax
mov rcx, rbx
call fcn.004109d0
movsxd rcx, edi
lea rcx, [rsi + rcx]
mov rdx, rax
mov r8d, 0xb
sub r8d, edi
movsxd r8, r8d
call fcn.00408cc0
mov rcx, rbx
mov edx, 0xb
sub edx, edi
xor r8, r8
call fcn.00411590
jmp 0x424f1a
mov rcx, rbx
lea rdx, [0x00424f38]
call fcn.004107e0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret

Function at 0x424f40
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov esi, edx
test esi, esi
je 0x42501c
test esi, esi
setl r14b
mov rcx, rbx
mov edx, 0xb
call fcn.004120a0
mov edi, 0xb
mov ecx, 0xa
mov eax, esi
cdq
idiv ecx
mov rax, rdx
movsxd rcx, eax
shr rcx, 0x20
xor eax, ecx
mov r13d, eax
sub r13d, ecx
mov ecx, 0xa
mov eax, esi
cdq
idiv ecx
mov rsi, rax
mov rcx, rbx
call fcn.004109c0
movsxd rcx, edi
add r13w, 0x30
mov word [rax + rcx*2 - 2], r13w
sub edi, 1
test esi, esi
jne 0x424f72
test r14b, r14b
je 0x424fd4
mov rcx, rbx
call fcn.004109c0
movsxd rcx, edi
mov word [rax + rcx*2 - 2], 0x2d
sub edi, 1
test edi, edi
jle 0x42502b
mov rcx, rbx
call fcn.004109c0
mov rsi, rax
mov rcx, rbx
call fcn.004109c0
movsxd rcx, edi
lea rcx, [rsi + rcx*2]
mov rdx, rax
mov r8d, 0xb
sub r8d, edi
add r8d, r8d
movsxd r8, r8d
call fcn.00408cc0
mov rcx, rbx
mov edx, 0xb
sub edx, edi
call fcn.004120a0
jmp 0x42502b
mov rcx, rbx
lea rdx, [0x00425048]
call fcn.004106d0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret
Function at 0x4267a0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
cmp byte [0x00b2095c], 0
jne 0x4267e4
call sub.kernel32.dll_GetThreadLocale
mov ecx, eax
mov edx, 0xe
lea r8, [rsp + 0x2e]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x4267dd
movzx rax, byte [rsp + 0x2e]
mov byte [0x00b2095c], al
jmp 0x4267e4
mov byte [0x00b2095c], 0x2c
movzx rax, byte [0x00b2095c]
add rsp, 0x38
ret

Function at 0x426800
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
cmp word [0x00b20a38], 0
jne 0x426848
call sub.kernel32.dll_GetThreadLocale
mov ecx, eax
mov edx, 0xe
lea r8, [rsp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x42683f
movzx rax, word [rsp + 0x2c]
mov word [0x00b20a38], ax
jmp 0x426848
mov word [0x00b20a38], 0x2c
movzx rax, word [0x00b20a38]
add rsp, 0x38
ret
Function at 0x427a40
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, rbx
call fcn.004107e0
mov rcx, rbx
call fcn.004109f0
mov rcx, qword [rbx]
call fcn.004108b0
mov ecx, 1
mov edx, eax
mov eax, ecx
cmp eax, edx
jg 0x427a84
add edx, 1
mov rcx, qword [rbx]
movsxd r8, eax
xor byte [rcx + r8 - 1], 0x55
add eax, 1
cmp eax, edx
jne 0x427a71
nop
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x42d080
Capabilities:
Get file version info

Disassembly:
push rbp
push rbx
sub rsp, 0xb8
mov rbp, rsp
mov qword [rbp + 0x38], rcx
mov qword [rbp + 0x40], rdx
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0xa0], 0
nop
mov rcx, qword [rbp + 0x38]
call fcn.00410080
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
je 0x42d11e
lea rcx, [rbp + 0x70]
mov rdx, qword [rbp + 0x40]
xor r8, r8
call fcn.00411660
lea rcx, [rbp + 0x78]
mov rdx, qword [rbp + 0x70]
call qword [0x00b20fa8]
mov rcx, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x78]
call fcn.00411f60
jmp 0x42d2f9
mov rcx, qword [rbp + 0x40]
call fcn.00411e10
mov rcx, rax
lea rdx, [rbp + 0xa8]
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [rbp + 0xac], eax
cmp dword [rbp + 0xac], 0
je 0x42d2f8
lea rcx, [rbp + 0xa0]
mov edx, dword [rbp + 0xac]
call fcn.004120a0
mov rcx, qword [rbp + 0x40]
call fcn.00411e10
mov rcx, rax
mov edx, dword [rbp + 0xa8]
mov r8d, dword [rbp + 0xac]
mov r9, qword [rbp + 0xa0]
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42d2f8
mov rcx, qword [rbp + 0xa0]
lea rdx, [0x0042d3d8]
lea r8, [rbp + 0x98]
lea r9, [rbp + 0xac]
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42d1f1
mov rax, qword [rbp + 0x98]
cmp dword [rax + 8], 0
jne 0x42d1c7
mov rax, qword [rbp + 0x98]
cmp dword [rax + 0xc], 0
je 0x42d1f1
mov rcx, qword [rbp + 0x38]
mov rax, qword [rbp + 0x98]
mov eax, dword [rax + 8]
shl rax, 0x20
mov rdx, qword [rbp + 0x98]
mov edx, dword [rdx + 0xc]
lea rdx, [rax + rdx]
call fcn.0042cc50
jmp 0x42d2f8
mov rcx, qword [rbp + 0xa0]
lea rdx, [0x0042d3dc]
lea r8, [rbp + 0x90]
lea r9, [rbp + 0xac]
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42d2f8
cmp qword [rbp + 0x90], 0
je 0x42d2f8
mov rax, qword [rbp + 0x90]
mov ecx, dword [rax]
call fcn.00421ac0
mov ecx, eax
mov rax, qword [rbp + 0x90]
movzx rdx, word [rax]
call fcn.00421ab0
lea rcx, [rbp + 0x58]
mov edx, eax
mov r8d, 8
mov r9w, 0x30
call fcn.00425b70
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x58]
mov r8d, 2
mov r9d, 0x7fffffff
call fcn.00412480
lea rcx, [rbp + 0x68]
mov edx, 3
lea r8, [0x0042d41c]
mov r9, qword [rbp + 0x60]
lea rax, [0x0042d44c]
mov qword [rsp + 0x20], rax
call fcn.00412390
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x68]
call fcn.00411fc0
mov rcx, qword [rbp + 0x50]
call fcn.004117b0
mov rcx, qword [rbp + 0xa0]
mov rdx, rax
lea r8, [rbp + 0x88]
lea r9, [rbp + 0xac]
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42d2f8
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x88]
call fcn.00411eb0
mov rcx, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x48]
mov rbx, qword [0x00bb7620]
call qword [rbx]
nop
lea rcx, [rbp + 0x48]
call fcn.00410080
lea rcx, [rbp + 0x50]
call fcn.00410120
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.00410160
lea rcx, [rbp + 0x70]
mov edx, 2
call fcn.00410190
lea rcx, [rbp + 0xa0]
call fcn.00410080
mov rax, qword [rbp + 0x38]
lea rsp, [rbp + 0xb8]
pop rbx
pop rbp
ret
Function at 0x42e9a0
Capabilities:
Parse pe header

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x38], 0
nop
mov rcx, qword [rbp + 0x50]
mov edx, 2
call fcn.004304c0
test al, al
jne 0x42ea10
mov rax, qword [rbp + 0x50]
cmp word [rax], 0x5a4d
jne 0x42ea10
mov rax, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x50]
mov ecx, dword [rcx + 0x3c]
lea rax, [rax + rcx]
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x38]
cmp dword [rax], 0x4550
je 0x42ea10
mov qword [rbp + 0x38], 0
jmp 0x42ea10
mov rax, qword [rbp + 0x38]
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x42ec70
Capabilities:
Read file via mapping

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbx, rcx
xor rsi, rsi
cmp byte [0x00b20fe0], 0
jne 0x42edf5
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x42ecf3
mov ecx, 0x40
mov edx, 0x10000
call sub.kernel32.dll_LocalAlloc
mov rdi, rax
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x8000
call sub.kernel32.dll_GetModuleFileNameW
mov rcx, rdi
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov rbx, rax
jmp 0x42ed4d
mov ecx, 0x40
mov edx, 0x105
call sub.kernel32.dll_LocalAlloc
mov rdi, rax
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x104
call sub.kernel32.dll_GetModuleFileNameA
mov rcx, rdi
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileA
mov rbx, rax
mov rcx, rdi
call sub.kernel32.dll_LocalFree
cmp rbx, 0xffffffffffffffff
je 0x42edf5
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x42ed97
mov rcx, rbx
xor rdx, rdx
mov r8d, 2
xor r9, r9
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call sub.kernel32.dll_CreateFileMappingW
mov rdi, rax
jmp 0x42edc0
mov rcx, rbx
xor rdx, rdx
mov r8d, 2
xor r9, r9
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call sub.kernel32.dll_CreateFileMappingA
mov rdi, rax
test rdi, rdi
je 0x42eded
mov rcx, rdi
mov edx, 4
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_MapViewOfFile
mov rsi, rax
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
mov rax, rsi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
Function at 0x42f510
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x20]
call fcn.004100d0
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x42f583
mov rcx, qword [rbp + 0x38]
call fcn.00411e10
mov rcx, qword [rbp + 0x28]
mov rdx, rax
mov r8, qword [rbp + 0x30]
call sub.kernel32.dll_FindResourceW
mov rbx, rax
jmp 0x42f612
mov rcx, qword [rbp + 0x30]
movzx rax, cl
cmp rax, rcx
jne 0x42f5be
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x38]
xor r8, r8
call fcn.00411660
mov rcx, qword [rbp + 0x58]
call fcn.00411320
mov rcx, qword [rbp + 0x28]
mov rdx, rax
mov r8, qword [rbp + 0x30]
call sub.kernel32.dll_FindResourceA
mov rbx, rax
jmp 0x42f612
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x38]
xor r8, r8
call fcn.00411660
mov rcx, qword [rbp + 0x50]
call fcn.00411320
mov rbx, rax
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x30]
call fcn.00411eb0
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
xor r8, r8
call fcn.00411660
mov rcx, qword [rbp + 0x40]
call fcn.00411320
mov rcx, qword [rbp + 0x28]
mov rdx, rbx
mov r8, rax
call sub.kernel32.dll_FindResourceA
mov rbx, rax
test rbx, rbx
je 0x42f664
mov rcx, qword [rbp + 0x28]
mov rdx, rbx
call sub.kernel32.dll_LoadResource
mov rsi, rax
test rsi, rsi
je 0x42f664
mov rcx, rsi
call sub.kernel32.dll_LockResource
mov rdi, rax
mov rcx, qword [rbp + 0x28]
mov rdx, rbx
call sub.kernel32.dll_SizeofResource
mov rcx, qword [rbp + 0x20]
mov rdx, rdi
mov r8d, eax
xor r9, r9
call fcn.004103f0
mov rcx, rsi
call fcn.00421af0
mov rcx, rsi
call sub.kernel32.dll_FreeResource
nop
lea rcx, [rbp + 0x40]
call fcn.004100d0
lea rcx, [rbp + 0x48]
call fcn.00410080
lea rcx, [rbp + 0x50]
mov edx, 2
call fcn.00410190
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x68]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x43c0c0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
lea rax, [rbx + rbp + 0xb0]
mov rcx, rbp
neg rcx
cmp qword [rax + rcx], 0
je 0x43c33d
lea rax, [rbx + rbp + 0xd8]
mov rcx, rbp
neg rcx
cmp qword [rax + rcx], 0
je 0x43c108
cmp dword [rsi + 8], 0
jne 0x43c33d
lea rax, [rbx + rbp + 0xc0]
mov rcx, rbp
neg rcx
cmp qword [rax + rcx], 0
je 0x43c15f
lea rax, [rbx + rbp + 0xd8]
mov rcx, rbp
neg rcx
cmp qword [rax + rcx], 0
je 0x43c15f
lea rax, [rbx + rbp + 0xd8]
mov rcx, rbp
neg rcx
mov rcx, qword [rax + rcx]
call sub.kernel32.dll_UnmapViewOfFile
lea rax, [rbx + rbp + 0xd8]
mov rcx, rbp
neg rcx
mov qword [rax + rcx], 0
mov ecx, 0x100000
lea rax, [rbx + rbp + 0xe8]
mov rdx, rbp
neg rdx
mov rax, qword [rax + rdx]
mov rdx, qword [rsi + 0x10]
neg rdx
lea rdx, [rax + rdx]
call fcn.0043c010
mov dword [rsi + 8], eax
cmp dword [rsi + 8], 0
je 0x43c33d
lea rax, [rbx + rbp + 0xc0]
mov rcx, rbp
neg rcx
cmp qword [rax + rcx], 0
jne 0x43c299
lea rax, [rbx + rbp + 0x98]
mov rcx, rbp
neg rcx
cmp qword [rax + rcx], 0
jne 0x43c1f0
xor rcx, rcx
mov edx, 0x100000
mov r8d, 0x1000
mov r9d, 4
call sub.kernel32.dll_VirtualAlloc
lea rcx, [rbx + rbp + 0x98]
mov rdx, rbp
neg rdx
mov qword [rcx + rdx], rax
lea rax, [rbx + rbp + 0xb0]
mov rcx, rbp
neg rcx
mov rcx, qword [rax + rcx]
mov rdx, qword [rsi + 0x10]
xor r8, r8
xor r9, r9
call fcn.0043c020
test al, al
je 0x43c281
lea rax, [rbx + rbp + 0xb0]
mov rcx, rbp
neg rcx
mov rcx, qword [rax + rcx]
lea rax, [rbx + rbp + 0x98]
mov rdx, rbp
neg rdx
mov rdx, qword [rax + rdx]
mov r8d, dword [rsi + 8]
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x43c281
mov eax, dword [rbp + 0x3c]
cmp eax, dword [rsi + 8]
jne 0x43c281
lea rax, [rbx + rbp + 0xd8]
mov rcx, rbp
neg rcx
lea rdx, [rbx + rbp + 0x98]
mov r8, rbp
neg r8
mov rdx, qword [rdx + r8]
mov qword [rax + rcx], rdx
jmp 0x43c2d0
lea rax, [rbx + rbp + 0xd8]
mov rcx, rbp
neg rcx
mov qword [rax + rcx], 0
jmp 0x43c2d0
lea rax, [rbx + rbp + 0xc0]
mov rcx, rbp
neg rcx
mov rcx, qword [rax + rcx]
mov edx, 4
mov r8, qword [rsi + 0x10]
mov r9d, dword [rsi + 8]
call fcn.0043c090
lea rcx, [rbx + rbp + 0xd8]
mov rdx, rbp
neg rdx
mov qword [rcx + rdx], rax
lea rax, [rbx + rbp + 0xd8]
mov rcx, rbp
neg rcx
mov rax, qword [rax + rcx]
mov qword [rsi], rax
lea rax, [rbx + rbp + 0xf8]
mov rcx, rbp
neg rcx
cmp qword [rax + rcx], 0
je 0x43c33d
lea rax, [rbx + rbp + 0xf8]
mov rcx, rbp
neg rcx
mov rax, qword [rax + rcx]
mov ecx, dword [rax]
lea rax, [rbx + rbp + 0xd8]
mov rdx, rbp
neg rdx
mov rdx, qword [rax + rdx]
mov r8d, dword [rsi + 8]
call fcn.00442a90
lea rcx, [rbx + rbp + 0xf8]
mov rdx, rbp
neg rdx
mov rcx, qword [rcx + rdx]
mov dword [rcx], eax
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rbp
ret
Function at 0x43c350
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x48
mov rbp, rsp
lea rax, [rcx + rbp + 0xb8]
mov r8, rbp
neg r8
cmp qword [rax + r8], 0
je 0x43c40f
lea rax, [rcx + rbp + 0xc8]
mov r8, rbp
neg r8
cmp qword [rax + r8], 0
jne 0x43c40f
cmp qword [rdx + 0x28], 0
jle 0x43c40f
mov r8d, 0x100000
mov rax, qword [rdx + 0x28]
cqo
idiv r8
mov rbx, rdx
test ebx, ebx
jne 0x43c3af
mov ebx, 0x100000
lea rax, [rcx + rbp + 0xb8]
mov rdx, rbp
neg rdx
mov rax, qword [rax + rdx]
lea rcx, [rcx + rbp + 0x90]
mov rdx, rbp
neg rdx
mov rdx, qword [rcx + rdx]
mov r8d, ebx
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
mov rcx, rax
call sub.kernel32.dll_WriteFile
test eax, eax
je 0x43c3f4
cmp ebx, dword [rbp + 0x3c]
je 0x43c40f
mov rcx, qword [0x00422418]
lea rdx, [0x0043c424]
call fcn.00422680
mov rcx, rax
call fcn.0040f120
lea rsp, [rbp + 0x48]
pop rbx
pop rbp
ret