joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6fd25900
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
lea rax, [rsp + 0x3c]
mov rsi, rdx
mov rdi, r8
mov dword [rsp + 0x3c], 0x10
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov rdx, r9
mov r8d, dword [rsp + 0xa0]
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
mov ebx, eax
js 0x6fd25a10
test rsi, rsi
movsxd rbp, eax
je 0x6fd259e0
mov eax, dword [rsp + 0x44]
test rdi, rdi
mov qword [rsi], 4
mov dword [rsi + 8], eax
je 0x6fd25a40
movzx ecx, word [rsp + 0x42]
mov r12, qword [sym.imp.WS2_32.dll_ntohs]
call r12
mov word [rdi], ax
mov rax, qword [rsp + 0xa8]
mov qword [rax], rbp
call sym.libSFTP.dll_osSuspendAllTasks
movzx ecx, word [rsp + 0x42]
call r12
movzx edi, ax
mov rcx, rsi
xor edx, edx
call sym.libSFTP.dll_ipAddrToString
mov rsi, rax
mov ecx, 2
call qword [fcn.6fd28f30]
mov r9d, edi
mov r8, rsi
mov dword [rsp + 0x20], ebx
lea rdx, str.UDP_datagram_received_to__s__port__u___u_bytes_..._r_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
call sym.libSFTP.dll_osResumeAllTasks
xor eax, eax
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
test rdi, rdi
jne 0x6fd25a6d
mov rax, qword [rsp + 0xa8]
lea rsi, str.Unknown
mov qword [rax], rbp
call sym.libSFTP.dll_osSuspendAllTasks
movzx ecx, word [rsp + 0x42]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx edi, ax
jmp 0x6fd259a7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x6fd25a63
cmp eax, 0x274c
mov edx, 0xdc
mov eax, 0x20a
cmove eax, edx
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsp + 0xa8]
mov qword [rax], rbp
call sym.libSFTP.dll_osSuspendAllTasks
movzx ecx, word [rsp + 0x42]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx edi, ax
jmp 0x6fd2599a
mov eax, 0xdd
jmp 0x6fd259d2
movzx ecx, word [rsp + 0x42]
mov rsi, qword [sym.imp.WS2_32.dll_ntohs]
call rsi
mov word [rdi], ax
mov rax, qword [rsp + 0xa8]
mov qword [rax], rbp
call sym.libSFTP.dll_osSuspendAllTasks
movzx ecx, word [rsp + 0x42]
call rsi
lea rsi, str.Unknown
movzx edi, ax
jmp 0x6fd259a7
Function at 0x6fd25ab0
Capabilities:
Resolve dns

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rdx
mov rdi, r8
call sym.libSFTP.dll_osSuspendAllTasks
mov ecx, 2
mov rsi, qword [fcn.6fd28f30]
call rsi
lea rdx, str.Trying_to_resolve__s..._r_n
mov r8, rbx
mov rcx, rax
call sub.msvcrt.dll_fprintf
call sym.libSFTP.dll_osResumeAllTasks
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
mov rdx, rax
je 0x6fd25b64
cmp word [rdx + 0x10], 2
mov eax, 1
je 0x6fd25b10
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
cmp word [rdx + 0x12], 3
jbe 0x6fd25b04
mov rax, qword [rdx + 0x18]
mov qword [rdi], 4
mov rax, qword [rax]
mov eax, dword [rax]
mov dword [rdi + 8], eax
call sym.libSFTP.dll_osSuspendAllTasks
xor edx, edx
mov rcx, rdi
call sym.libSFTP.dll_ipAddrToString
mov ecx, 2
mov rbx, rax
call rsi
lea rdx, str.Host_name_resolved_to__s..._r_n
mov r8, rbx
mov rcx, rax
call sub.msvcrt.dll_fprintf
call sym.libSFTP.dll_osResumeAllTasks
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call sym.libSFTP.dll_osSuspendAllTasks
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 2
mov ebx, eax
call rsi
lea rdx, str.gethostbyname___error__d_n
mov r8d, ebx
mov rcx, rax
call sub.msvcrt.dll_fprintf
call sym.libSFTP.dll_osResumeAllTasks
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x6fd25ba0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor ebx, ebx
mov rdi, rdx
mov rbp, r8
call sym.libSFTP.dll_osSuspendAllTasks
mov ecx, 2
mov rsi, qword [fcn.6fd28f30]
call rsi
mov r8d, 0x2d
mov edx, 1
lea rcx, str.SFTP_Client:_Host_key_verification_callback_r_n
mov r9, rax
call sub.msvcrt.dll_fwrite
call sym.libSFTP.dll_osResumeAllTasks
movzx r9d, word [0x6fd3ce2a]
test r9w, r9w
jne 0x6fd25c00
mov eax, ebx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea r8, [0x6fd3ce2c]
mov rdx, rbp
mov rcx, rdi
call sym.libSFTP.dll_sshVerifyHostKey
cmp eax, 0xe7
mov ebx, eax
jne 0x6fd25bf0
call sym.libSFTP.dll_osSuspendAllTasks
mov ecx, 2
call rsi
mov r8d, 0x22
mov edx, 1
lea rcx, str.SFTP_Client:_Host_key_is_unknown_r_n
mov r9, rax
call sub.msvcrt.dll_fwrite
call sym.libSFTP.dll_osResumeAllTasks
jmp 0x6fd25bf0
Function at 0x6fd25c50
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rdx
call sym.libSFTP.dll_osSuspendAllTasks
mov ecx, 2
mov rdi, qword [fcn.6fd28f30]
call rdi
mov r8d, 0x2a
mov edx, 1
lea rcx, str.SFTP_Client:_SSH_initialization_callback_r_n
mov r9, rax
call sub.msvcrt.dll_fwrite
call sym.libSFTP.dll_osResumeAllTasks
mov rdx, qword [sym.libSFTP.dll_yarrowPrngAlgo]
lea r8, [0x6fd381a0]
mov rcx, rsi
call sym.libSFTP.dll_sshSetPrng
test eax, eax
mov ebx, eax
jne 0x6fd25d55
lea rdx, [0x6fd3cd2a]
mov rcx, rsi
call sym.libSFTP.dll_sshSetUsername
test eax, eax
mov ebx, eax
jne 0x6fd25d20
lea rdx, [0x6fd3cdaa]
mov rcx, rsi
call sym.libSFTP.dll_sshSetPassword
test eax, eax
mov ebx, eax
jne 0x6fd25d90
lea rdx, [sym.libSFTP.dll_sftpClientHostKeyVerifyCallback]
mov rcx, rsi
call sym.libSFTP.dll_sshRegisterHostKeyVerifyCallback
test eax, eax
mov ebx, eax
je 0x6fd25d4b
call sym.libSFTP.dll_osSuspendAllTasks
mov ecx, 2
call rdi
mov r8d, 0x3d
mov edx, 1
lea rcx, str.SFTP_Client:_Cannot_register_host_key_verification_callback_r_n
mov r9, rax
call sub.msvcrt.dll_fwrite
call sym.libSFTP.dll_osResumeAllTasks
jmp 0x6fd25d4b
call sym.libSFTP.dll_osSuspendAllTasks
mov ecx, 2
call rdi
mov r8d, 0x22
mov edx, 1
lea rcx, str.SFTP_Client:_Cannot_set_username_r_n
mov r9, rax
call sub.msvcrt.dll_fwrite
call sym.libSFTP.dll_osResumeAllTasks
mov eax, ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call sym.libSFTP.dll_osSuspendAllTasks
mov ecx, 2
call rdi
mov r8d, 0x28
mov edx, 1
lea rcx, str.SFTP_Client:_Cannot_set_PRNG_algorithm_r_n
mov r9, rax
call sub.msvcrt.dll_fwrite
call sym.libSFTP.dll_osResumeAllTasks
mov eax, ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call sym.libSFTP.dll_osSuspendAllTasks
mov ecx, 2
call rdi
mov r8d, 0x22
mov edx, 1
lea rcx, str.SFTP_Client:_Cannot_set_password_r_n
mov r9, rax
call sub.msvcrt.dll_fwrite
call sym.libSFTP.dll_osResumeAllTasks
mov eax, ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x6fd25dd0
Capabilities:
Write file on windows

Disassembly:
push r15
mov eax, 0x8048
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.6fd286f0
sub rsp, rax
xor edx, edx
mov r8d, 0x8000
lea rbp, [rsp + 0x40]
mov rsi, rcx
mov rcx, rbp
call sub.msvcrt.dll_memset
lea rdx, [0x6fd30006]
mov rcx, rsi
mov qword [rsp + 0x38], 0
call sub.msvcrt.dll_fopen
test rax, rax
mov rbx, rax
je 0x6fd26012
xor edx, edx
mov r8d, 2
mov rcx, rax
call fcn.6fd287e0
test eax, eax
jne 0x6fd25fbc
mov rcx, rbx
call fcn.6fd28c30
test rax, rax
js 0x6fd25fbc
mov rdi, rax
mov rcx, rbx
call sub.msvcrt.dll_rewind
test rdi, rdi
je 0x6fd26006
mov eax, dword [0x6fd38160]
cmp eax, 9
je 0x6fd26006
cmp rdi, 0x8000
mov r12, qword [fcn.6fd28f30]
lea r13, [rsp + 0x38]
lea rsi, [rsp + 0x8040]
lea r14, [0x6fd38500]
jbe 0x6fd25f40
nop dword [rax]
mov r15, rbp
mov rcx, rbx
add r15, 1
call sub.msvcrt.dll_fgetc
mov byte [r15 - 1], al
cmp r15, rsi
jne 0x6fd25ea3
mov dword [rsp + 0x20], 0
mov r9, r13
mov r8d, 0x8000
mov rdx, rbp
mov rcx, r14
call sym.libSFTP.dll_sftpClientWriteFile
test eax, eax
jne 0x6fd26040
call sym.libSFTP.dll_osSuspendAllTasks
mov r15, qword [rsp + 0x38]
mov ecx, 2
call r12
lea rdx, str.SFTP_Client:_Bytes_Written:__lld_n
mov rcx, rax
mov r8, r15
call sub.msvcrt.dll_fprintf
call sym.libSFTP.dll_osResumeAllTasks
mov rax, qword [rsp + 0x38]
mov rdx, qword [0x6fd38178]
sub rdx, rax
sub rdi, rax
mov qword [0x6fd38178], rdx
je 0x6fd26006
mov eax, dword [0x6fd38160]
cmp eax, 9
je 0x6fd26006
cmp rdi, 0x8000
ja 0x6fd25ea0
xor esi, esi
mov rcx, rbx
call sub.msvcrt.dll_fgetc
mov byte [rbp + rsi], al
add rsi, 1
cmp rdi, rsi
ja 0x6fd25f42
mov dword [rsp + 0x20], 1
mov r9, r13
mov r8, rdi
mov rdx, rbp
lea rcx, [0x6fd38500]
call sym.libSFTP.dll_sftpClientWriteFile
test eax, eax
mov esi, eax
jne 0x6fd26040
call sym.libSFTP.dll_osSuspendAllTasks
mov rdi, qword [rsp + 0x38]
mov ecx, 2
call r12
lea rdx, str.SFTP_Client:_Bytes_Written:__lld_n
mov rcx, rax
mov r8, rdi
call sub.msvcrt.dll_fprintf
call sym.libSFTP.dll_osResumeAllTasks
mov rax, qword [0x6fd38178]
sub rax, qword [rsp + 0x38]
mov qword [0x6fd38178], rax
jmp 0x6fd26008
call sym.libSFTP.dll_osSuspendAllTasks
mov ecx, 2
call qword [fcn.6fd28f30]
lea rdx, str.SFTP_Client:_Cannot_get_the_size_of_the_file__s_n
mov r8, rsi
mov esi, 0x12c
mov rcx, rax
call sub.msvcrt.dll_fprintf
call sym.libSFTP.dll_osResumeAllTasks
mov rcx, rbx
call sub.msvcrt.dll_fclose
mov eax, esi
add rsp, 0x8048
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor esi, esi
mov rcx, rbx
call sub.msvcrt.dll_fclose
jmp 0x6fd25ff0
call sym.libSFTP.dll_osSuspendAllTasks
mov ecx, 2
call qword [fcn.6fd28f30]
lea rdx, str.SFTP_Client:_Cannot_open_file__s_r_n
mov r8, rsi
mov esi, 0x12e
mov rcx, rax
call sub.msvcrt.dll_fprintf
call sym.libSFTP.dll_osResumeAllTasks
jmp 0x6fd25ff0
call sym.libSFTP.dll_osSuspendAllTasks
mov ecx, 2
mov esi, 1
call r12
mov r8d, 0x1e
mov edx, 1
lea rcx, str.SFTP_Client:_Cannot_send_data_n
mov r9, rax
call sub.msvcrt.dll_fwrite
call sym.libSFTP.dll_osResumeAllTasks
jmp 0x6fd26008
Function at 0x6fd27770
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6fd4dc24]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6fd278f8
mov rax, qword [0x6fd4dc28]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6fd277bc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6fd27845
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6fd277a0
mov rcx, rbx
call fcn.6fd28410
test rax, rax
mov r12, rax
je 0x6fd2792d
mov rax, qword [0x6fd4dc28]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.6fd28540
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6fd4dc28]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6fd27910
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6fd2783e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6fd278a0
add dword [0x6fd4dc24], 1
cmp edi, 8
jae 0x6fd27873
test dil, 4
jne 0x6fd278e4
test edi, edi
je 0x6fd27868
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6fd278ff
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6fd27868
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6fd2788c
jmp 0x6fd27868
add rsi, qword [0x6fd4dc28]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6fd2783e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.6fd290d0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6fd27868
xor esi, esi
jmp 0x6fd277c7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6fd27868
mov rax, qword [0x6fd4dc28]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.6fd290d0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.6fd290d0
nop
nop dword [rax]

Function at 0x6fd28080
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6fd4df00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6fd4dee0]
test rbx, rbx
je 0x6fd280d4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6fd280cb
test rsi, rsi
je 0x6fd280cb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6fd280b0
lea rcx, [0x6fd4df00]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6fd28410
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6fd30920]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6fd2847d
mov rcx, r8
call fcn.6fd282f0
test eax, eax
je 0x6fd2847d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6fd2847d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6fd28474
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6fd2847f
add rax, 0x28
cmp rax, r9
jne 0x6fd28460
xor eax, eax
add rsp, 0x28
ret

Function at 0x6fd290d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.6fd28f30
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.6fd28f30
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
push rbp
mov rbp, rsp
pop rbp
jmp fcn.6fd01390
Function at 0x409640
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x004950a8], 0
je 0x4096de
cmp word [0x004953b8], 0xd7b2
jne 0x409673
cmp dword [0x004953c0], 0
jbe 0x409673
lea rcx, [0x004953b0]
call qword [0x004953d8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x004855f4]
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rbx, rax
lea rcx, [0x00409714]
call fcn.0040a950
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x409700
cmp byte [0x00484052], 0
jne 0x409700
xor rcx, rcx
lea rdx, [0x004855f4]
lea r8, [0x00485504]
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40caa0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00499c90]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00499cb8], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00499c88], al
cmp byte [0x00499c88], 0
je 0x40cb3f
lea rcx, [0x0040cb44]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040cb5e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00499c70], rax
lea rcx, [0x0040cb44]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040cb7c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00499c78], rax
lea rcx, [0x0040cb44]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040cb9a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00499c80], rax
add rsp, 0x28
ret
Function at 0x40ce10
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.00409af0
movzx rax, word [rbp + 0x4e]
cmp word [0x00485c48], ax
ja 0x40cef8
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x00486048]
mov word [rbp + 0x4e], ax
ja 0x40cef8
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x40cef7
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x00485c48]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x40ceb1
mov ecx, eax
sub ecx, 1
jmp 0x40cef2
lea rdx, [0x00485c48]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x40ced3
mov r8d, eax
add r8d, 1
jmp 0x40cef2
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x00485c50]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.0040ccb0
jmp 0x40cef7
cmp ecx, r8d
jae 0x40ce80
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x40cfda
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40cfda
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.0040aff0
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040aff0
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040aff0
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x0040d034]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x0040d044]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040b470
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.00409bd0
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x40d250
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, [0x00499c90]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00499cb8], ax
jne 0x40d2bb
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00499cba]
mov r8d, 0x55
call fcn.0040aff0
lea rcx, [0x00499c90]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40d3c6
lea rcx, [0x00499c90]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.00409af0
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d380
cmp byte [0x00499c88], 0
je 0x40d314
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.0040d0e0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040a120
jmp 0x40d380
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.0040ce10
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040a120
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x40d380
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x40d35f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0040d414]
call fcn.0040b260
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.0040ce10
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040b260
lea rcx, [0x00499c90]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00499cb8], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040af20
lea rcx, [0x00499cba]
mov edx, 0xaa
mov r8, rax
call fcn.0040cbd0
lea rcx, [0x00499c90]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.00409bd0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40ddf0
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.00409c80
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.0040aff0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.0040b350
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040dc10
test al, al
jne 0x40debe
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040aff0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.0040b350
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040dc10
test al, al
jne 0x40debe
mov rcx, qword [rbp + 0x20]
call fcn.00409af0
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.00409bd0
lea rcx, [rbp + 0x70]
call fcn.00409af0
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40df30
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.00409c80
mov rcx, qword [rbp + 0x90]
call fcn.00409c80
nop
mov rcx, qword [rbp + 0x28]
call fcn.00409af0
cmp qword [rbp + 0x90], 0
je 0x40e0f6
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040a1a0
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x40dfe1
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x40e01b
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x40e014
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.0040b560
jmp 0x40e01b
sub eax, 1
test eax, eax
jne 0x40dfe6
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.0040db00
cmp qword [rbp + 0x68], 0
je 0x40e059
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.0040dcb0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040a120
jmp 0x40e0f5
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.0040d250
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.0040dcb0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040a120
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40e0ce
cmp byte [0x00499c88], 0
jne 0x40e0ce
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.0040d250
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.0040dcb0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040a120
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40e0f5
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.0040ddf0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040a120
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.00409bd0
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.00409bd0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x40ed50
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 0x40ed70
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 0x40ed94
cmp eax, 1
jae 0x40ed99
cmp ecx, 5
jbe 0x40eda5
mov dword [0x004959b0], 0x7f
jmp 0x40edaf
mov dword [0x004959b0], 0x409
add rsp, 0x28
ret