joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018158
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x250
mov rax, qword [0x140050318]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor r13d, r13d
mov rbp, rdx
mov rsi, rcx
mov rbx, r13
cmp rcx, r13
je 0x1400182d2
mov rdx, qword [rcx]
cmp rdx, r13
je 0x1400182d2
lea rdi, [rdx + 2]
movzx eax, word [rdi]
cmp ax, r13w
je 0x1400182c8
cmp ax, 0x25
je 0x1400181c2
add rdi, 2
mov ax, word [rdi]
cmp ax, r13w
jne 0x1400181af
cmp word [rdi], r13w
je 0x1400182c8
mov r12d, 0x103
mov rcx, rdi
sub rcx, rdx
sar rcx, 1
inc ecx
cmp ecx, r12d
cmovb r12d, ecx
lea rcx, [rsp + 0x30]
lea rbx, [r12 + r12]
mov r8, rbx
call fcn.140008ec4
lea rax, [rdi + 2]
mov word [rsp + rbx + 0x30], r13w
mov qword [rsi], rax
movzx eax, word [rsp + 0x34]
or ax, 0x20
movzx ecx, ax
add ecx, 0xffffff9b
test ecx, 0xffffffe0
jne 0x140018268
mov eax, 1
shl eax, cl
test eax, 0x2e13
je 0x140018268
mov edi, r13d
lea rbx, str._r_ProductCode_
mov rax, qword [rbx]
lea rcx, [rsp + 0x30]
mov edx, r12d
movzx r9d, word [rax]
lea r8, [rax + 2]
mov dword [rsp + 0x20], 1
call fcn.14001acdc
cmp eax, r13d
je 0x1400182ae
lea rax, [0x140051d00]
add rbx, 8
inc edi
cmp rbx, rax
jl 0x140018231
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
mov dword [rbp], 1
call sub.KERNEL32.dll_ExpandEnvironmentStringsW
mov edx, 2
mov ecx, eax
mov edi, eax
call fcn.140009d8c
mov rbx, rax
cmp rax, r13
je 0x1400182d2
lea rcx, [rsp + 0x30]
mov r8d, edi
mov rdx, rax
call sub.KERNEL32.dll_ExpandEnvironmentStringsW
cmp eax, r13d
je 0x1400182d2
mov rax, rbx
jmp 0x1400182e8
lea rcx, [0x1400c01d0]
movsxd rax, edi
cmp qword [rcx + rax*8], r13
je 0x140018268
mov dword [rbp], r13d
mov rax, qword [rcx + rax*8]
jmp 0x1400182e8
mov dword [rbp], r13d
add qword [rcx], 2
jmp 0x1400182e6
mov dword [rbp], 1
cmp rbx, r13
je 0x1400182e6
mov rcx, rbx
call fcn.140009d1c
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140008a98
mov rbx, qword [rsp + 0x290]
add rsp, 0x250
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140019af0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx edi, dx
mov rbx, rcx
call fcn.14002ed20
test eax, eax
jne 0x140019b23
inc di
mov r8d, 0xd9
mov rcx, rbx
movzx edx, di
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
jne 0x140019b30
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140019b23
mov rcx, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LockResource]
Function at 0x1400225b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub rsp, 0x48
mov rcx, qword [0x1400c0248]
test rcx, rcx
je 0x140022603
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x1400c0254]
cmp eax, 0xea60
jbe 0x1400225fb
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x1400c0248]
mov dword [0x1400c0254], eax
mov rax, qword [rcx]
call qword [rax + 8]
mov byte [0x1400c0250], al
mov rcx, qword [0x1400c0248]
jmp 0x140022605
mov al, byte [0x1400c0250]
jmp 0x1400225f2
xor al, al
test al, al
je 0x14002262d
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
mov rax, qword [rcx]
and qword [rsp + 0x20], 0
lea rdx, str.COfficeCredStore::UninitInstance
xor r9d, r9d
xor r8d, r8d
call qword [rax]
mov rax, qword [0x1400c0240]
test rax, rax
je 0x14002268d
cmp dword [rax + 0x10], 1
jl 0x14002268d
lea rcx, [0x1400c0b38]
call sub.KERNEL32.dll_EnterCriticalSection
mov rax, qword [0x1400c0240]
and qword [0x1400c0248], 0
test rax, rax
je 0x140022681
dec dword [rax + 0x10]
mov rcx, qword [0x1400c0240]
cmp dword [rcx + 0x10], 0
jg 0x140022681
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
and qword [0x1400c0240], 0
lea rcx, [0x1400c0b38]
call sub.KERNEL32.dll_LeaveCriticalSection
add rsp, 0x48
ret

Function at 0x1400228b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov rcx, qword [0x1400c0248]
mov rbx, rdx
test rcx, rcx
je 0x14002290f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x1400c0254]
cmp eax, 0xea60
jbe 0x140022907
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x1400c0248]
mov dword [0x1400c0254], eax
mov rax, qword [rcx]
call qword [rax + 8]
mov byte [0x1400c0250], al
mov rcx, qword [0x1400c0248]
jmp 0x140022911
mov al, byte [0x1400c0250]
jmp 0x1400228fe
xor al, al
test al, al
je 0x140022939
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
mov rax, qword [rcx]
and qword [rsp + 0x20], 0
lea rdx, str.COfficeCredStore::InitInstance
xor r9d, r9d
xor r8d, r8d
call qword [rax]
mov rdx, rbx
mov ecx, 0x28
call fcn.14002f254
test rax, rax
je 0x14002295e
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call fcn.140022838
mov rcx, rax
jmp 0x140022960
xor ecx, ecx
test rcx, rcx
je 0x14002297c
xor eax, eax
lock cmpxchg qword [0x1400c0240], rcx
je 0x14002297c
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [0x1400c0240]
test rax, rax
je 0x140022994
lock add dword [rax + 0x10], 1
mov rax, qword [0x1400c0240]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rdx, rcx
xor ecx, ecx
jmp 0x1400228b0
Function at 0x1400229a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov rcx, qword [0x1400c0248]
mov rbx, rdx
test rcx, rcx
je 0x14002290f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x1400c0254]
cmp eax, 0xea60
jbe 0x140022907
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x1400c0248]
mov dword [0x1400c0254], eax
mov rax, qword [rcx]
call qword [rax + 8]
mov byte [0x1400c0250], al
mov rcx, qword [0x1400c0248]
jmp 0x140022911
mov al, byte [0x1400c0250]
jmp 0x1400228fe
xor al, al
test al, al
je 0x140022939
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
mov rax, qword [rcx]
and qword [rsp + 0x20], 0
lea rdx, str.COfficeCredStore::InitInstance
xor r9d, r9d
xor r8d, r8d
call qword [rax]
mov rdx, rbx
mov ecx, 0x28
call fcn.14002f254
test rax, rax
je 0x14002295e
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call fcn.140022838
mov rcx, rax
jmp 0x140022960
xor ecx, ecx
test rcx, rcx
je 0x14002297c
xor eax, eax
lock cmpxchg qword [0x1400c0240], rcx
je 0x14002297c
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [0x1400c0240]
test rax, rax
je 0x140022994
lock add dword [rax + 0x10], 1
mov rax, qword [0x1400c0240]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rdx, rcx
xor ecx, ecx
jmp 0x1400228b0

Function at 0x1400229bc
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x140050318]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
xor edi, edi
cmp eax, edi
je 0x140022ac8
cmp dword [rsp + 0x30], 2
mov ecx, dword [rsp + 0x28]
mov al, byte [rsp + 0xba]
mov dword [0x1400c0278], ecx
mov byte [0x1400c027e], al
jne 0x140022aad
mov eax, dword [rsp + 0x24]
movzx edx, word [rsp + 0xb4]
mov dword [0x1400c0274], eax
mov word [0x1400c027c], dx
cmp eax, 5
jne 0x140022a8a
lea esi, [rdi + 1]
cmp ecx, esi
jae 0x140022a68
lea r8, [0x1400514d0]
lea rcx, [0x1400514d0]
xor r9d, r9d
mov edx, 0x3535796e
call fcn.140016320
mov ecx, dword [rsp + 0x28]
mov dx, word [rsp + 0xb4]
cmp ecx, esi
jne 0x140022a8a
cmp dx, si
ja 0x140022a8a
lea r8, [0x1400514d0]
lea rcx, [0x1400514d0]
xor r9d, r9d
mov edx, 0x3535796f
call fcn.140016320
movzx ecx, word [rsp + 0xb8]
mov eax, ecx
and eax, 0x110
and ecx, 0x100
mov dword [0x1400c0288], ecx
mov dword [0x1400c0284], eax
jmp 0x140022ac8
lea r8, [0x1400514d0]
lea rcx, [0x1400514d0]
xor r9d, r9d
mov edx, 0x31343461
call fcn.140016320
mov ecx, 0x56
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, edi
setne dil
mov dword [0x1400c0280], edi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140008a98
mov rsi, qword [rsp + 0xe0]
add rsp, 0xd0
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140022baa
test al, 0x10
je 0x140022baa
mov eax, 1
jmp 0x140022bac
xor eax, eax
add rsp, 0x28
ret
Function at 0x14002360c
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, 0x80
mov edi, edx
mov rbx, rcx
cmp word [rcx], ax
jb 0x14002362c
xor eax, eax
jmp 0x14002377d
cmp word [rcx], 0x20
jbe 0x140023778
cmp word [rcx], 0x7f
je 0x140023778
cmp word [rcx], 0x25
jne 0x1400236d1
test r8b, 0x40
jne 0x140023778
cmp edx, 2
jle 0x140023673
movzx ecx, word [rcx + 2]
call fcn.14001acb0
test eax, eax
je 0x140023673
movzx ecx, word [rbx + 4]
call fcn.14001acb0
test eax, eax
jne 0x140023625
cmp edi, 5
jle 0x140023778
movzx eax, word [rbx + 2]
or ax, 0x20
cmp ax, 0x75
jne 0x140023778
movzx ecx, word [rbx + 4]
call fcn.14001acb0
test eax, eax
je 0x140023778
movzx ecx, word [rbx + 6]
call fcn.14001acb0
test eax, eax
je 0x140023778
movzx ecx, word [rbx + 8]
call fcn.14001acb0
test eax, eax
je 0x140023778
movzx ecx, word [rbx + 0xa]
call fcn.14001acb0
test eax, eax
jmp 0x140023772
movzx ecx, word [rcx]
cmp ecx, 0x3d
jg 0x140023747
je 0x1400237a1
cmp ecx, 0x27
jg 0x140023721
je 0x140023718
cmp ecx, 0x21
je 0x1400237a1
jle 0x140023625
cmp ecx, 0x23
jle 0x140023778
cmp ecx, 0x24
je 0x1400237a1
cmp ecx, 0x26
jne 0x140023625
and r8d, 0x500000
jmp 0x14002379c
and r8d, 0x100020
jmp 0x14002379c
cmp ecx, 0x28
jl 0x140023625
cmp ecx, 0x2c
jle 0x1400237a1
cmp ecx, 0x2f
je 0x1400237a1
cmp ecx, 0x39
jle 0x140023625
cmp ecx, 0x3b
jle 0x1400237a1
cmp ecx, 0x3c
jmp 0x140023772
sub ecx, 0x3e
je 0x140023778
sub ecx, 1
je 0x1400237b3
sub ecx, 1
je 0x1400237a1
sub ecx, 0x1b
je 0x140023788
sub ecx, 2
je 0x140023788
sub ecx, 1
je 0x140023778
sub ecx, 2
je 0x140023778
sub ecx, 0x1b
je 0x140023778
cmp ecx, 2
jne 0x140023625
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test r9d, r9d
jne 0x140023625
shr r8d, 0x1d
not r8d
and r8d, 1
mov eax, r8d
jmp 0x14002377d
test r9d, r9d
jne 0x140023625
and r8d, 0x100000
jmp 0x14002379c
and r8d, 0x140000
jmp 0x14002379c

Function at 0x140023e88
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
cmp dword [0x1400b3600], 0xffffffff
jne 0x140023f2a
mov rdx, qword [str.SOFTWAREMicrosoftOfficeCommon]
lea r9, [rsp + 0x58]
mov r8d, 0x20019
mov rcx, 0xffffffff80000001
mov dword [0x1400b3600], 1
call fcn.140022c8c
test eax, eax
jne 0x140023f2a
mov rdx, qword [str.AllowConsecutiveSlashesInUrlPathComponent]
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x48]
xor r8d, r8d
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140023f1f
cmp dword [rsp + 0x48], 4
jne 0x140023f1f
mov eax, dword [0x1400b3600]
cmp dword [rsp + 0x50], 0
mov ecx, 3
cmovne eax, ecx
mov dword [0x1400b3600], eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1400b3600]
add rsp, 0x38
ret
Function at 0x140024474
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
lea rax, [r11 + 0x20]
lea r9, [r11 - 0x18]
xor ebx, ebx
mov qword [r11 - 0x20], rax
lea rax, [r11 + 0x18]
xor r8d, r8d
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x68], 4
mov qword [r11 - 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x1400244b6
cmp dword [rsp + 0x30], 4
jne 0x1400244b6
mov ebx, dword [rsp + 0x60]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x14002d67c
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r12
sub rsp, 0x30
mov edi, r8d
mov rsi, rdx
mov r12, rcx
and qword [rax - 0x18], 0
and qword [rax + 0x20], 0
xor ebx, ebx
mov eax, dword [0x1400b52f4]
test eax, eax
je 0x14002d6c3
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1400b52f4]
test eax, eax
jne 0x14002d6d0
call section..text
test eax, eax
je 0x14002d6ec
lea rdx, [rsp + 0x58]
mov rcx, qword [0x140082890]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
test ebx, ebx
jne 0x14002d6f4
xor eax, eax
jmp 0x14002d73f
mov r8d, edi
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x20], rax
xor ebx, ebx
test rax, rax
sete bl
test ebx, ebx
je 0x14002d721
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14002d723
xor edi, edi
mov rdx, qword [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14002d73c
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r12
ret

Function at 0x14002d894
Capabilities:
Print debug messages

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002d894
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
call fcn.14002d618
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14002d67c
Function at 0x14002e0e4
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x100
mov rax, qword [0x140050318]
xor rax, rsp
mov qword [rsp + 0xf0], rax
lock add dword [0x1400b79e0], 1
cmp qword [0x1400b79a8], 0
jne 0x14002e259
cmp byte [0x1400b7990], 0
jne 0x14002e1da
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14002e14a
cmp dword [rsp + 0x54], 6
setb al
mov byte [0x1400b7991], al
test al, al
jne 0x14002e1ad
lea rcx, str.advapi32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x14002e1a5
lea rdx, str.EventWrite
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400b7998], rax
test rax, rax
je 0x14002e1a5
lea rdx, str.EventRegister
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140082b08], rax
test rax, rax
jne 0x14002e1b6
lea rax, [0x14000a5dc]
mov qword [0x140082b08], rax
mov al, 1
mov byte [0x1400b7991], al
mov byte [0x1400b7990], 1
jmp 0x14002e1e0
lea rdx, str.EventUnregister
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400b79a0], rax
test rax, rax
je 0x14002e197
mov al, byte [0x1400b7991]
jmp 0x14002e1ad
mov al, byte [0x1400b7991]
test al, al
jne 0x14002e208
lea r9, [0x1400b79a8]
lea r8, [0x1400b79b0]
lea rdx, [0x14000a5a4]
lea rcx, [0x140050850]
call qword [0x140082b08]
jmp 0x14002e259
and qword [rsp + 0x48], 0
lea rdx, [0x1400b79b0]
lea rax, [0x140050850]
mov qword [rsp + 0x38], rdx
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rcx, [rsp + 0x40]
mov r9d, 1
mov r8, rax
mov qword [rsp + 0x20], rcx
lea rcx, [0x14000a518]
mov qword [0x1400b79a8], rdx
mov qword [rsp + 0x40], rax
call qword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsA]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140008a98
add rsp, 0x100
pop rbx
ret

Function at 0x14002e274
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
mov qword [0x1400c0b60], rcx
cmp edx, 6
je 0x14002e29d
lea rcx, [0x1400514d0]
xor r9d, r9d
mov edx, 0x33616738
mov r8, rcx
call fcn.140016320
jmp 0x14002e2a7
mov dword [reloc.OLEAUT32.dll_SysStringLen], 6
call fcn.14002e0e4
add rsp, 0x28
jmp fcn.1400229bc
Function at 0x140030c1c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x140050318]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov eax, dword [0x1400c1b78]
mov ebx, 1
test eax, eax
jne 0x140030cc1
lea rcx, [rsp + 0x20]
mov edx, 0xf5
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140030cdd
lea rdx, [rsp + 0x20]
lea rcx, str._normaliz.dll
mov r8d, 0x104
call fcn.14001b1bc
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 8]
call fcn.14002d67c
mov rdi, rax
test rax, rax
je 0x140030cbb
lea rdx, str.IdnToAscii
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.IdnToUnicode
mov rcx, rdi
mov qword [0x1400c1b80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c1b88], rax
mov dword [0x1400c1b78], ebx
mov rax, qword [0x1400c1b80]
test rax, rax
je 0x140030cd9
mov rax, qword [0x1400c1b88]
test rax, rax
jne 0x140030cdb
xor ebx, ebx
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140008a98
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret

Function at 0x140031074
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov eax, dword [0x1400c1b94]
test eax, eax
jg 0x140031097
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x48]
mov dword [0x1400c1b94], eax
add rsp, 0x58
ret

Function at 0x140031c68
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
sub rsp, 0x838
mov rax, qword [0x140050318]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov r8, rcx
lea r9, [r11 + 0x10]
lea rcx, [rsp + 0x20]
mov edx, 0x7ff
call qword [sym.imp.MSVCR90.dll__vsnprintf]
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x81f], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.140008a98
add rsp, 0x838
ret

Function at 0x1400361c8
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x90
mov rbx, rcx
mov eax, 1
lock xadd dword [0x1400c2084], eax
inc eax
cmp eax, 1
jne 0x140036229
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
movzx eax, word [rsp + 0x40]
mov r11d, dword [rsp + 0x48]
mov word [0x1400c208c], ax
mov eax, dword [rsp + 0x58]
mov dword [0x1400c2088], r11d
mov dword [0x1400c2090], eax
mov eax, dword [rsp + 0x24]
mov dword [0x1400c2094], eax
mov rax, rbx
add rsp, 0x90
pop rbx
ret
Function at 0x1400378f8
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov eax, dword [rcx]
mov ebp, 1
mov sil, r8b
mov rdi, rdx
cmp eax, ebp
je 0x14003794d
lea ebx, [rbp + 1]
cmp eax, ebx
je 0x14003794d
cmp eax, 3
je 0x14003794d
cmp dword [rdx], 0
je 0x14003794f
dec eax
xor edx, edx
div dword [rdi]
inc eax
mov dword [rcx], eax
cmp eax, 8
ja 0x140037941
mov ebx, ebp
jmp 0x14003794f
cmp eax, 0x200
sbb ebx, ebx
add ebx, 3
jmp 0x14003794f
mov ebx, eax
cmp dword [rdi], 0
jne 0x14003799d
mov ecx, dword [0x1400c20a4]
test ecx, ecx
jne 0x140037973
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x40]
mov dword [0x1400c20a4], ecx
mov edx, ebx
sub edx, ebp
je 0x14003798f
sub edx, ebp
je 0x140037988
cmp edx, ebp
jne 0x140037996
mov eax, ecx
shl eax, 2
jmp 0x14003798b
lea eax, [rcx + rcx]
mov dword [rdi], eax
jmp 0x140037996
cmp ecx, ebp
cmovl ecx, ebp
mov dword [rdi], ecx
test sil, sil
je 0x14003799d
mov dword [rdi], ebp
mov ecx, dword [rdi]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov eax, 0x40
cmp ecx, eax
cmova ecx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov dword [rdi], ecx
add rsp, 0x50
pop rdi
ret

Function at 0x140038950
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
xor ebx, ebx
cmp dword [0x1400c20c4], ebx
jne 0x140038a7d
lea eax, [rbx + 1]
xchg dword [0x1400c20c8], eax
cmp eax, ebx
je 0x14003898f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r11d, 1
xchg dword [0x1400c20c8], r11d
cmp r11d, ebx
jne 0x140038975
cmp dword [0x1400c20c4], ebx
jne 0x140038a77
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
cmp rax, rbx
je 0x1400389f3
lea rdx, str.SwitchToThread
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.TryEnterCriticalSection
mov rcx, rdi
mov qword [0x1400c20a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14006d3f0]
mov rcx, rdi
mov qword [0x1400c20b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r11, rax
jmp 0x1400389fa
mov r11, qword [0x1400c20b8]
mov rax, qword [0x1400c20a8]
lea rcx, [fcn.1400220a8]
cmp rax, rbx
cmove rax, rcx
lea rcx, [fcn.1400220a8]
mov qword [0x1400c20a8], rax
mov rax, qword [0x1400c20b0]
cmp rax, rbx
cmove rax, rcx
cmp r11, rbx
mov qword [0x1400c20b0], rax
lea rax, [fcn.1400220a8]
cmove r11, rax
mov eax, dword [0x1400c20a4]
mov qword [0x1400c20b8], r11
cmp eax, ebx
jne 0x140038a66
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov dword [0x1400c20a4], eax
mov ecx, 1
mov dword [0x1400c20c0], eax
xchg dword [0x1400c20c4], ecx
xchg dword [0x1400c20c8], ebx
mov eax, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x14003b5b0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140050318]
xor rax, rsp
mov qword [rsp + 0x280], rax
and dword [rsp + 0x30], 0
mov rbx, rcx
lea rcx, [0x1400c2a68]
xor esi, esi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [rbx + 0x33], 2
jne 0x14003b7dc
mov rdx, qword [rbx + 0x20]
test rdx, rdx
je 0x14003b612
lea rcx, [0x1400c2ad8]
call fcn.1400429b4
and qword [rbx + 0x20], rsi
mov byte [rbx + 0x31], sil
mov ecx, dword [rbx + 0x10]
mov edi, 8
lea r8, [rsp + 0x70]
mov r9d, edi
mov edx, 0x1004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14003b714
lea rcx, [rsp + 0x40]
lea r8, [rsp + 0x70]
lea rdx, str.CpgScript
mov qword [rsp + 0x20], rcx
xor ecx, ecx
xor r9d, r9d
call fcn.14003fca4
mov dword [rsp + 0x30], eax
test eax, eax
js 0x14003b714
lea rcx, [rdi - 9]
mov rax, rdi
lea esi, [rdi - 7]
mul qword [rsp + 0x48]
cmovo rax, rcx
lea rcx, [0x1400c2ad8]
mov rdx, rax
call fcn.14004297c
mov qword [rbx + 0x20], rax
test rax, rax
je 0x14003b72c
xor edi, edi
cmp qword [rsp + 0x48], rdi
jbe 0x14003b6db
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + rdi*8]
call fcn.14003a624
mov dword [rsp + 0x30], eax
test eax, eax
js 0x14003b6ca
movzx edx, byte [rbx + 0x31]
mov rcx, qword [rbx + 0x20]
mov rax, qword [rsp + 0x38]
mov qword [rcx + rdx*8], rax
inc byte [rbx + 0x31]
jmp 0x14003b6d1
cmp eax, 0x8007000e
je 0x14003b6f6
inc rdi
cmp rdi, qword [rsp + 0x48]
jb 0x14003b699
cmp byte [rbx + 0x31], 0
jne 0x14003b7ca
mov rax, qword [rbx + 0x20]
mov byte [rbx + 0x31], sil
and qword [rax], 0
jmp 0x14003b7ca
mov rdx, qword [rbx + 0x20]
lea rcx, [0x1400c2ad8]
call fcn.1400429b4
and qword [rbx + 0x20], 0
mov byte [rbx + 0x31], 0
jmp 0x14003b7dc
lea rcx, [0x1400c2ad8]
mov rdx, rdi
call fcn.14004297c
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x14003b739
mov dword [rsp + 0x30], 0x8007000e
jmp 0x14003b7dc
mov byte [rbx + 0x31], 1
and qword [rax], rsi
call fcn.140042e00
test al, al
je 0x14003b770
cmp dword [rbx + 0x10], 0x1000
jne 0x14003b770
mov rcx, qword [rbx + 8]
lea r8, [rsp + 0x80]
mov r9d, pe_nt_image_headers64
mov edx, 4
call fcn.140042bd4
jmp 0x14003b78c
mov ecx, dword [rbx + 0x10]
lea r8, [rsp + 0x80]
mov r9d, pe_nt_image_headers64
mov edx, 4
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14003b7ca
and dword [rsp + 0x38], esi
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x80]
call fcn.140039194
test rax, rax
je 0x14003b7c0
mov ecx, dword [rsp + 0x38]
lea rdx, [rsp + 0x30]
call fcn.140041e3c
mov rcx, qword [rbx + 0x20]
mov qword [rcx], rax
cmp dword [rsp + 0x30], 0x8007000e
je 0x14003b7dc
cmp dword [rbx + 0x10], 0xc00
je 0x14003b7d7
or byte [rbx + 0x33], 2
and dword [rsp + 0x30], 0
lea rcx, [0x1400c2a68]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x14003b7f7
lea rcx, [rsp + 0x40]
call fcn.14003fd40
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140008a98
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret