joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30011c4c
Capabilities:
Check if file exists

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
movabs rax, 0x28
call sub.KERNEL32.dll___chkstk
sub rsp, rax
mov rdi, rcx
test rdi, rdi
je 0x30011d5b
mov rcx, qword [rdi]
test rcx, rcx
je 0x30011d5b
call fcn.30021a10
mov r14d, eax
add r14d, 1
lea ecx, [r14 + r14]
mov edx, 0x106
call fcn.30021110
mov r13, rax
mov r8d, r14d
mov rdx, r13
mov rcx, qword [rdi]
call fcn.300258c0
mov r12, r13
mov rbx, r13
mov rsi, qword [rdi]
test r13, r13
je 0x30011d3f
cmp word [rbx], 0
je 0x30011ce6
cmp word [rbx], 0x3b
je 0x30011cd5
add rbx, 2
cmp word [rbx], 0
jne 0x30011cc5
cmp word [rbx], 0
je 0x30011ce6
mov word [rbx], 0
add rbx, 2
jmp 0x30011ce8
xor ebx, ebx
mov rcx, r12
call fcn.3000a71c
cmp eax, 0xffffffff
jne 0x30011d00
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x30011d37
cmp rsi, qword [rdi]
je 0x30011d0e
mov word [rsi], 0x3b
add rsi, 2
mov rax, rsi
sub rax, qword [rdi]
sar rax, 1
mov r8d, r14d
sub r8d, eax
mov rdx, rsi
mov rcx, r12
call fcn.300258c0
mov rcx, rsi
call fcn.30021a10
movsxd rax, eax
lea rsi, [rsi + rax*2]
mov r12, rbx
test rbx, rbx
jne 0x30011cbf
mov rcx, qword [rdi]
cmp rsi, rcx
jne 0x30011d53
call fcn.30021150
mov qword [rdi], 0
mov rcx, r13
call fcn.30021150
add rsp, 0x28
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x3001206c
Capabilities:
Check internet connectivity via wininet

Disassembly:
movabs rax, 0x38
call sub.KERNEL32.dll___chkstk
sub rsp, rax
mov dword [rsp + 0x20], 0
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x3001209e
mov eax, 1
jmp 0x300120ad
mov ecx, dword [rsp + 0x20]
and cl, 0x10
xor eax, eax
cmp cl, 0x10
sete al
add rsp, 0x38
ret

Function at 0x300120b4
Capabilities:
Check internet connectivity via wininet

Disassembly:
movabs rax, 0x38
call sub.KERNEL32.dll___chkstk
sub rsp, rax
mov dword [rsp + 0x20], 0
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.WININET.dll_InternetGetConnectedState]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x38
ret
Function at 0x300120ec
Capabilities:
Check internet connectivity via wininet

Disassembly:
push rbx
movabs rax, 0x60
call sub.KERNEL32.dll___chkstk
sub rsp, rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x3001211e
mov eax, 1
jmp 0x300121d7
xor eax, eax
cmp dword [0x300899f0], eax
jne 0x300121d7
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x30]
and al, 0x40
je 0x3001215a
xor edx, edx
mov ecx, 1
call qword [sym.imp.WININET.dll_InternetAutodial]
test eax, eax
je 0x300121a4
jmp 0x300121b5
mov dword [rsp + 0x38], 0x82
mov dword [rsp + 0x48], 0x83
mov dword [rsp + 0x50], 0x14
mov dword [rsp + 0x4c], 0x80
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [0x30005788]
xor r8d, r8d
mov edx, 0x70
mov rcx, qword [0x30089a38]
call fcn.30003e04
test rax, rax
je 0x300121c2
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x300121c2
mov ecx, 1
mov dword [0x30088740], ecx
jmp 0x300121c8
mov ecx, dword [0x30088740]
xor eax, eax
test ecx, ecx
sete al
mov dword [rbx], eax
mov eax, dword [0x30088740]
add rsp, 0x60
pop rbx
ret

Function at 0x300121e0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push rbx
movabs rax, 0x60
call sub.KERNEL32.dll___chkstk
sub rsp, rax
mov ebx, ecx
mov dword [rsp + 0x38], 0
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x30012263
neg ebx
sbb eax, eax
and eax, 0x10
add eax, 0x7e
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x48], 0x7f
mov dword [rsp + 0x4c], 0x80
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [0x30005788]
xor r8d, r8d
mov edx, 0x90
mov rcx, qword [0x30089a38]
call fcn.30003e04
add rsp, 0x60
pop rbx
ret

Function at 0x30012650
Capabilities:
Create http request

Disassembly:
movabs rax, 0x38
call sub.KERNEL32.dll___chkstk
sub rsp, rax
mov dword [0x300867e4], 0
mov dword [0x300867e0], 6
mov dword [rsp + 0x20], 0x10000000
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.MSDW
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [0x300867f8], rax
test rax, rax
je 0x300126bc
lea rdx, [0x30012554]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetSetStatusCallback]
xor ecx, ecx
cmp rax, 0xffffffffffffffff
setne cl
mov eax, ecx
add rsp, 0x38
ret
Function at 0x300126c4
Capabilities:
Connect to http server

Disassembly:
movabs rax, 0x48
call sub.KERNEL32.dll___chkstk
sub rsp, rax
xor ecx, ecx
mov edx, 0x800000
mov eax, dword [0x30087284]
test eax, eax
cmovne ecx, edx
neg eax
sbb r8w, r8w
and r8w, 0x16b
add r8w, 0x50
mov qword [rsp + 0x38], 1
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], 3
lea r9, [0x30037f52]
mov qword [rsp + 0x20], r9
lea rdx, [0x30086858]
mov rcx, qword [0x300867f8]
call qword [sym.imp.WININET.dll_InternetConnectA]
mov qword [0x30086800], rax
mov dword [0x3008872c], 1
mov qword [0x30086810], 0
test rax, rax
jne 0x30012760
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x30012782
xor eax, eax
jmp 0x30012787
mov dword [0x3008872c], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1427
mov rcx, qword [0x30088730]
call qword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
add rsp, 0x48
ret

Function at 0x300128ec
Capabilities:
Send data

Disassembly:
movabs rax, 0x28
call sub.KERNEL32.dll___chkstk
sub rsp, rax
mov rax, qword [0x30087298]
test rax, rax
je 0x30012958
mov dword [0x3008872c], 1
movsxd rdx, dword [0x3008728c]
add rdx, rax
lea r9, [0x30087294]
mov r8d, dword [0x30087290]
mov rcx, qword [0x30086808]
call qword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x3001294e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x30012970
xor eax, eax
jmp 0x30012975
mov dword [0x3008872c], 0
mov rcx, qword [0x30088730]
mov edx, 0x1427
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
add rsp, 0x28
ret

Function at 0x300129f8
Capabilities:
Read data from internet
Receive data

Disassembly:
push rdi
movabs rax, 0x20
call sub.KERNEL32.dll___chkstk
sub rsp, rax
lea rdx, [0x300872d0]
mov rdi, rdx
xor eax, eax
movabs rcx, 0x38
rep stosb byte [rdi], al
mov dword [0x300872d0], 0x38
lea rax, [0x3008730c]
mov qword [0x300872f0], rax
mov dword [0x300872f8], 0x1000
mov dword [0x3008872c], 1
movabs r9, 1
mov r8d, r9d
mov rcx, qword [0x30086808]
call qword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x30012a7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x30012aa1
xor eax, eax
jmp 0x30012aa6
mov dword [0x3008872c], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1427
mov rcx, qword [0x30088730]
call qword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x30013768
Capabilities:
Write file on windows

Disassembly:
push rbx
movabs rax, 0x40
call sub.KERNEL32.dll___chkstk
sub rsp, rax
mov dword [rsp + 0x20], 0x104
lea r9, [0x30085828]
lea r8, str..cab
lea rdx, [0x30085614]
lea rcx, [rsp + 0x38]
call fcn.30009be8
test eax, eax
je 0x300137e3
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rdx, qword [0x30085a50]
mov r8d, dword [rdx + 0x24]
mov rdx, qword [rdx + 0x28]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test ebx, ebx
setne al
add rsp, 0x40
pop rbx
ret
Function at 0x300137ec
Capabilities:
Get hostname
Get session user name

Disassembly:
push rbx
push rsi
push rdi
push r12
movabs rax, 0x498
call sub.KERNEL32.dll___chkstk
sub rsp, rax
mov dword [rsp + 0x30], 0x101
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x380]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x3001383f
mov r8d, 0x101
lea rdx, [rsp + 0x380]
lea rcx, str.unknown_user
call fcn.300258f0
mov dword [rsp + 0x30], 0x10
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x3001387c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov r8d, 0x10
lea rdx, [rsp + 0x38]
lea rcx, str.UNKNOWN
call fcn.300258f0
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rsi, str.crash.log
mov rcx, rsi
call fcn.300219f0
mov ebx, eax
lea rdi, [0x30085510]
mov rcx, rdi
call fcn.300219f0
lea eax, [rbx + rax + 2]
lea r12, str._s_s
cmp eax, 0x104
jg 0x3001399f
mov qword [rsp + 0x20], rsi
mov r9, rdi
mov r8, r12
movabs rdx, 0x104
lea rcx, [rsp + 0x270]
call qword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov r8d, 0x208
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.3000b05c
lea rcx, [rsp + 0x60]
call fcn.300219f0
mov ebx, 0x208
sub ebx, eax
lea rcx, [rsp + 0x60]
call fcn.300219f0
movsxd rax, eax
lea rcx, [rsp + rax + 0x60]
lea rax, [rsp + 0x380]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
lea r8, str._t_s_t_s_t
movsxd rdx, ebx
call qword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov rax, qword [0x30085a58]
mov edi, dword [rax]
lea rcx, [rsp + 0x60]
call fcn.300219f0
lea rcx, [rsp + 0x60]
mov ebx, 0x208
sub ebx, eax
call fcn.300219f0
movsxd rdx, ebx
movsxd rax, eax
lea rcx, [rsp + rax + 0x60]
test edi, edi
je 0x30013979
movsxd r9, edi
lea r8, str._d_r_n
jmp 0x30013987
mov r9, qword [0x30085820]
lea r8, str._s_r_n
call qword [sym.imp.SHLWAPI.dll_wnsprintfA]
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x60]
call fcn.3000a0ec
lea rsi, str.hits.log
mov rcx, rsi
call fcn.300219f0
mov ebx, eax
lea rdi, [0x30085614]
mov rcx, rdi
call fcn.300219f0
lea eax, [rbx + rax + 2]
cmp eax, 0x104
jg 0x30013a7a
mov qword [rsp + 0x20], rsi
mov r9, rdi
mov r8, r12
movabs rdx, 0x104
lea rcx, [rsp + 0x270]
call qword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov r8d, 0x208
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.3000b05c
lea rcx, [0x30085828]
call fcn.3000a8c4
mov rdi, rax
cmp byte [rdi], 0x5c
jne 0x30013a1e
add rdi, 1
lea rcx, [rsp + 0x60]
call fcn.300219f0
mov ebx, 0x208
sub ebx, eax
lea rcx, [rsp + 0x60]
call fcn.300219f0
movsxd rax, eax
lea rcx, [rsp + rax + 0x60]
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x380]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
lea r8, str._t_s_t_s_t_s_r_n
movsxd rdx, ebx
call qword [sym.imp.SHLWAPI.dll_wnsprintfA]
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x60]
call fcn.3000a0ec
add rsp, 0x498
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x30017a60
Capabilities:
Allocate thread local storage

Disassembly:
mov dword [rsp + 8], ecx
movabs rax, 0x28
call sub.KERNEL32.dll___chkstk
sub rsp, rax
mov dword [0x3008a0a4], 0
mov dword [0x3008a0a0], 0
mov dword [0x3008a09c], 0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x30054454], eax
cmp eax, 0xffffffff
jne 0x30017aa9
xor eax, eax
jmp 0x30017ad9
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x3008a0a8], rax
test rax, rax
je 0x30017aa5
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [0x3008a050], rax
xor ecx, ecx
test rax, rax
setne cl
mov eax, ecx
add rsp, 0x28
ret

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

Disassembly:
movabs rax, 0x28
call sub.KERNEL32.dll___chkstk
sub rsp, rax
mov ecx, dword [0x30054454]
cmp ecx, 0xffffffff
je 0x30017bb7
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x30017bb7
mov r8d, 0x8000
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor edx, edx
mov ecx, dword [0x30054454]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, 1
add rsp, 0x28
ret

Function at 0x30017bcc
Capabilities:
Get thread local storage value

Disassembly:
movabs rax, 0x28
call sub.KERNEL32.dll___chkstk
sub rsp, rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x28
ret

Function at 0x30017bec
Capabilities:
Set thread local storage value

Disassembly:
movabs rax, 0x28
call sub.KERNEL32.dll___chkstk
sub rsp, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x28
ret

Function at 0x3001b460
Capabilities:
Encode data using xor

Disassembly:
mov r10d, edx
mov r9, rcx
mov eax, r10d
shr eax, 2
test eax, eax
jle 0x3001b4aa
mov ecx, eax
movzx edx, byte [r9]
add r9, 1
movzx eax, byte [r9]
shl eax, 8
or edx, eax
add r9, 1
movzx eax, byte [r9]
shl eax, 0x10
or edx, eax
add r9, 1
movzx eax, byte [r9]
shl eax, 0x18
or edx, eax
add r9, 1
xor r8d, edx
sub rcx, 1
jne 0x3001b472
xor edx, edx
and r10d, 3
sub r10d, 1
je 0x3001b4da
sub r10d, 1
je 0x3001b4cd
sub r10d, 1
jne 0x3001b4e0
movzx edx, byte [r9]
shl edx, 0x10
add r9, 1
movzx ecx, byte [r9]
shl ecx, 8
or edx, ecx
add r9, 1
movzx ecx, byte [r9]
or edx, ecx
xor edx, r8d
mov eax, edx
ret

Function at 0x3001c700
Capabilities:
Encode data using xor

Disassembly:
mov word [rcx + 0x54], 0x8000
mov dword [rcx + 0x4c], 0x8000
lea r8, [rcx + 0x38]
mov dword [r8], 0
xor dx, dx
mov r9, qword [rcx + 0x20]
movzx eax, dx
add eax, 0x8000
movsxd rax, eax
movzx ecx, byte [rax + r9]
mov eax, dword [r8]
shl eax, 5
xor ecx, eax
and ecx, 0x7fff
mov dword [r8], ecx
add dx, 1
cmp dx, 2
jb 0x3001c71f
ret
Function at 0x3001d000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x28
mov rbx, rcx
mov rax, qword [rsp + 0x80]
mov qword [rbx + 0x28], rax
mov rax, qword [rsp + 0x78]
mov qword [rbx + 0x30], rax
mov qword [rbx + 8], r9
mov word [rbx + 0x18], 0
mov eax, dword [rsp + 0x70]
mov dword [rbx + 0x1c], eax
mov qword [rbx + 0x20], rdx
mov dword [rbx + 0x3c], r8d
mov dword [rbx + 0x40], 0
movzx r12d, byte [rsp + 0x88]
test r12b, r12b
jne 0x3001d068
lea rdi, [rdx + 0x8000]
mov rsi, rdx
movabs rcx, 0x8000
rep movsb byte [rdi], byte [rsi]
mov rcx, rbx
call fcn.3001b650
call fcn.3001c940
mov rcx, rbx
call fcn.3001c700
mov rcx, rbx
test r12b, r12b
je 0x3001d08c
call fcn.3001c680
jmp 0x3001d091
call fcn.3001c650
mov r8d, 8
mov edx, 0x43
mov rcx, rbx
call fcn.3001b660
mov edx, 0x4b
mov rcx, rbx
call fcn.3001b660
mov rcx, rbx
call fcn.3001cd30
add ax, 2
movzx ecx, ax
mov rax, qword [rsp + 0x90]
mov dword [rax], ecx
test r12b, r12b
je 0x3001d0e6
mov rdi, qword [rbx + 0x20]
lea rsi, [rdi + 0x8000]
movabs rcx, 0x8000
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rbx + 0x40]
neg eax
sbb eax, eax
and eax, 3
add rsp, 0x28
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x3002f32c
Capabilities:
Get geographical location

Disassembly:
push rbx
push rsi
push rdi
movabs rax, 0x60
call sub.KERNEL32.dll___chkstk
sub rsp, rax
mov rbx, r8
mov rdi, rdx
movzx esi, cx
cmp si, 0xffff
je 0x3002f3c7
movzx eax, si
and ax, 0x3ff
je 0x3002f3c7
call fcn.3002f284
test eax, eax
jne 0x3002f3d0
movzx esi, si
xor r9d, r9d
xor r8d, r8d
mov edx, 0x58
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x3002f3d0
mov r9d, 0x20
lea r8, [rsp + 0x20]
mov edx, 0x58
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [rsp + 0x34], 0
mov r8d, 3
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.3002f1c0
test eax, eax
je 0x3002f3c7
mov al, byte [rsp + 0x40]
mov byte [rdi], al
mov eax, dword [rsp + 0x44]
mov dword [rbx], eax
jmp 0x3002f3d0
mov byte [rdi], 1
mov dword [rbx], 0
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret

Function at 0x300317c0
Capabilities:
Parse pe header

Disassembly:
cmp word [0x30000000], 0x5a4d
jne 0x30031809
xor ecx, ecx
movzx eax, word [0x3000003c]
or ecx, eax
movzx eax, word [0x3000003e]
shl eax, 0x10
or ecx, eax
movsxd rcx, ecx
lea rax, [0x30000000]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x30031809
movzx eax, word [rcx + 0x18]
cmp eax, 0x10b
je 0x30031821
cmp eax, 0x20b
je 0x3003180c
xor eax, eax
ret
xor eax, eax
cmp dword [rcx + 0x84], 0xe
jbe 0x30031832
cmp dword [rcx + 0xf8], eax
setne al
ret
xor eax, eax
cmp dword [rcx + 0x74], 0xe
jbe 0x30031832
cmp dword [rcx + 0xe8], eax
setne al
ret
Function at 0x30031840
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
sub rsp, 0xb8
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
movabs r8, 0x94
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rbx, rbx
jne 0x30031884
mov eax, 0xff
jmp 0x30031a0f
mov dword [rbx], 0x94
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x300318b5
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xff
jmp 0x30031a0f
mov eax, dword [rbx + 0x10]
mov dword [0x3008b214], eax
mov eax, dword [rbx + 4]
mov dword [0x3008b220], eax
mov eax, dword [rbx + 8]
mov dword [0x3008b224], eax
mov eax, dword [rbx + 0xc]
and eax, 0x7fff
mov dword [0x3008b218], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x3008b214], 2
je 0x30031905
or dword [0x3008b218], 0x8000
mov eax, dword [0x3008b220]
shl eax, 8
add eax, dword [0x3008b224]
mov dword [0x3008b21c], eax
call fcn.300317c0
mov edi, eax
mov dword [rsp + 0x24], edi
xor ecx, ecx
call fcn.30033910
test eax, eax
jne 0x3003193b
mov ecx, 0x1c
call fcn.30031790
nop
call fcn.300335a0
test eax, eax
jge 0x3003194e
mov ecx, 0x1b
call fcn.30031760
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x3008b8a0], rax
call fcn.300333b0
mov qword [0x3008b1d0], rax
call fcn.300332d0
test eax, eax
jge 0x3003197a
mov ecx, 8
call fcn.30031760
call fcn.30032fb0
test eax, eax
jge 0x3003198d
mov ecx, 9
call fcn.30031760
call fcn.300322b0
mov dword [rsp + 0x28], eax
test eax, eax
je 0x300319a1
mov ecx, eax
call fcn.30031760
call fcn.30032f10
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x7c]
and cl, 1
je 0x300319bf
movzx r9d, word [rsp + 0x80]
jmp 0x300319c5
mov r9d, 0xa
mov r8, rax
xor edx, edx
lea rcx, [0x30000000]
call fcn.300036d8
mov ebx, eax
mov dword [rsp + 0x2c], ebx
test edi, edi
jne 0x300319e7
mov ecx, ebx
call fcn.300323c0
call fcn.30032400
jmp 0x30031a06
mov eax, ebx
jmp 0x30031a0f
add rsp, 0xb8
pop rdi
pop rbx
ret
Function at 0x300333b0
Capabilities:
Query environment variable

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov eax, dword [0x3008b3b8]
test eax, eax
jne 0x30033402
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdi, rax
test rdi, rdi
je 0x300333e2
mov dword [0x3008b3b8], 1
jmp 0x3003341d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x300333fc
mov dword [0x3008b3b8], 2
jmp 0x30033506
mov eax, dword [0x3008b3b8]
cmp eax, 1
jne 0x300334fd
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdi, rax
test rdi, rdi
je 0x30033565
mov rbx, rdi
cmp word [rdi], 0
je 0x3003343a
add rbx, 2
cmp word [rbx], 0
jne 0x30033426
add rbx, 2
cmp word [rbx], 0
jne 0x30033426
sub rbx, rdi
sar rbx, 1
add ebx, 1
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, ebx
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r12d, eax
test r12d, r12d
je 0x300334e3
movsxd rcx, r12d
call fcn.30033d40
mov rsi, rax
test rsi, rsi
je 0x300334e3
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rsi
mov r9d, ebx
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x300334c8
mov rcx, rsi
call fcn.30033cf0
xor esi, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
cmp eax, 2
je 0x30033506
test eax, eax
jne 0x30033565
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov rbx, rax
mov qword [rsp + 0x48], rbx
test rbx, rbx
je 0x30033565
mov qword [rsp + 0x40], rax
cmp byte [rbx], 0
je 0x3003353e
add rax, 1
cmp byte [rax], 0
jne 0x30033523
add rax, 1
mov qword [rsp + 0x40], rax
cmp byte [rax], 0
jne 0x30033523
mov eax, dword [rsp + 0x40]
sub eax, dword [rsp + 0x48]
add eax, 1
movsxd r13, eax
mov rcx, r13
call fcn.30033d40
mov r12, rax
test r12, r12
jne 0x30033576
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rdi, r12
mov rsi, rbx
mov rcx, r13
rep movsb byte [rdi], byte [rsi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rax, r12
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x30033980
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov byte [rsp + 0x26], 0
mov r9d, 6
lea r8, [rsp + 0x20]
mov edx, 0x1004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x300339ad
mov eax, 0xffffffff
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.30035540
add rsp, 0x38
ret
Function at 0x30034b60
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov ebx, r8d
mov r12, rdx
mov r13, rcx
xor esi, esi
cmp qword [0x3008b3f8], 0
jne 0x30034c39
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rdi, rdi
je 0x30034c28
lea rdx, str.MessageBoxA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x3008b3f8], rax
test rax, rax
je 0x30034c28
lea rdx, str.GetActiveWindow
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x3008b400], rax
lea rdx, str.GetLastActivePopup
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x3008b408], rax
cmp dword [0x3008b214], 2
jne 0x30034c39
lea rdx, str.GetUserObjectInformationA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x3008b418], rax
test rax, rax
je 0x30034c39
lea rdx, str.GetProcessWindowStation
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x3008b410], rax
jmp 0x30034c40
xor eax, eax
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [0x3008b410]
test rax, rax
je 0x30034c94
call rax
test rax, rax
je 0x30034c7b
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, rax
call qword [0x3008b418]
test eax, eax
je 0x30034c7b
mov eax, dword [rsp + 0x40]
and al, 1
jne 0x30034c94
cmp dword [0x3008b220], 4
jb 0x30034c8c
or ebx, 0x200000
jmp 0x30034cbe
or ebx, 0x40000
jmp 0x30034cbe
mov rax, qword [0x3008b400]
test rax, rax
je 0x30034cbe
call rax
mov rsi, rax
test rsi, rsi
je 0x30034cbe
mov rdx, qword [0x3008b408]
test rdx, rdx
je 0x30034cbe
mov rcx, rsi
call rdx
mov rsi, rax
mov r9d, ebx
mov r8, r12
mov rdx, r13
mov rcx, rsi
call qword [0x3008b3f8]
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret