joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40db40
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.0040a820
movzx rax, word [rbp + 0x4e]
cmp word [0x00485da8], ax
ja 0x40dc28
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x004861a8]
mov word [rbp + 0x4e], ax
ja 0x40dc28
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x40dc27
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x00485da8]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x40dbe1
mov ecx, eax
sub ecx, 1
jmp 0x40dc22
lea rdx, [0x00485da8]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x40dc03
mov r8d, eax
add r8d, 1
jmp 0x40dc22
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x00485db0]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.0040d9e0
jmp 0x40dc27
cmp ecx, r8d
jae 0x40dbb0
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x40dd0a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dd0a
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.0040bd20
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040bd20
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040bd20
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x0040dd64]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x0040dd74]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040c1a0
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040a900
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x40df80
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 0x40dfeb
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00499cba]
mov r8d, 0x55
call fcn.0040bd20
lea rcx, [0x00499c90]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e0f6
lea rcx, [0x00499c90]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040a820
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e0b0
cmp byte [0x00499c88], 0
je 0x40e044
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.0040de10
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040ae50
jmp 0x40e0b0
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.0040db40
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040ae50
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x40e0b0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x40e08f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0040e144]
call fcn.0040bf90
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.0040db40
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040bf90
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.0040bc50
lea rcx, [0x00499cba]
mov edx, 0xaa
mov r8, rax
call fcn.0040d900
lea rcx, [0x00499c90]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040a900
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40eb20
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.0040a9b0
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.0040bd20
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.0040c080
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040e940
test al, al
jne 0x40ebee
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040bd20
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.0040c080
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040e940
test al, al
jne 0x40ebee
mov rcx, qword [rbp + 0x20]
call fcn.0040a820
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040a900
lea rcx, [rbp + 0x70]
call fcn.0040a820
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40ec60
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.0040a9b0
mov rcx, qword [rbp + 0x90]
call fcn.0040a9b0
nop
mov rcx, qword [rbp + 0x28]
call fcn.0040a820
cmp qword [rbp + 0x90], 0
je 0x40ee26
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040aed0
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x40ed11
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x40ed4b
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x40ed44
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.0040c290
jmp 0x40ed4b
sub eax, 1
test eax, eax
jne 0x40ed16
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.0040e830
cmp qword [rbp + 0x68], 0
je 0x40ed89
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.0040e9e0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040ae50
jmp 0x40ee25
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.0040df80
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.0040e9e0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040ae50
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40edfe
cmp byte [0x00499c88], 0
jne 0x40edfe
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.0040df80
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.0040e9e0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040ae50
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40ee25
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.0040eb20
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040ae50
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.0040a900
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040a900
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x40fad0
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 0x40faf0
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 0x40fb14
cmp eax, 1
jae 0x40fb19
cmp ecx, 5
jbe 0x40fb25
mov dword [0x004959b0], 0x7f
jmp 0x40fb2f
mov dword [0x004959b0], 0x409
add rsp, 0x28
ret
Function at 0x40fd80
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.0040fd70
mov ebx, eax
test ebx, ebx
je 0x40fdcb
cmp dword [0x00486658], 0xffffffff
jne 0x40fda4
mov ecx, 0xe2
call fcn.0040a610
mov ecx, ebx
call fcn.0040fd50
test rax, rax
jne 0x40fdbd
mov ecx, 0xe2
call fcn.0040a610
jmp 0x40fdcb
mov ecx, dword [0x00486658]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x40fde0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x00499d64], 0
je 0x40fe1b
mov ecx, dword [0x00486658]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40fe2f
call fcn.0040fd80
mov ecx, dword [0x00486658]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40fe2f
mov rax, qword [0x00499d98]
jmp 0x40fe2f
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x00486658]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x421900
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
mov rbp, rsp
movdqa xmmword [rbp + 0x20], xmm6
mov rbx, rdx
movapd xmm6, xmm2
mov rcx, rbx
mov edx, 0xa
xor r8, r8
call fcn.00406e10
movsd xmm0, qword [0x004219c0]
comisd xmm0, xmm6
jbe 0x421939
mov byte [rbx + 9], 0x80
movapd xmm0, xmm6
call fcn.004067b0
call fcn.004066c0
mov rcx, rax
xor r8, r8
jmp 0x4219a1
mov r9d, 0x64
mov rax, rcx
cqo
idiv r9
mov r9, rdx
movsxd r10, r8d
mov r11d, 0xa
mov eax, r9d
cdq
idiv r11d
mov r11, rdx
mov esi, 0xa
mov eax, r9d
cdq
idiv esi
shl eax, 4
add r11b, al
mov byte [rbx + r10], r11b
mov r9d, 0x64
mov rax, rcx
cqo
idiv r9
mov rcx, rax
add r8d, 1
test rcx, rcx
jle 0x4219ac
cmp r8d, 9
jl 0x42194f
mov rax, rbx
movdqa xmm6, xmmword [rbp + 0x20]
lea rsp, [rbp + 0x30]
pop rbx
pop rsi
pop rbp
ret

Function at 0x4258b0
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 0x4258d7
movzx rax, word [rbp + 0x2c]
jmp 0x4258d9
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret
Function at 0x426f10
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.00426cb0
mov ebx, eax
mov rax, qword [0x004940f0]
cmp byte [rax], 0
je 0x427048
mov rcx, qword [0x00493db0]
call fcn.00406d60
call fcn.00405b50
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 [0x00426ed0]
mov r8d, 1
movsxd r9, esi
call fcn.0040d430
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, [0x004270e8]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x42708e
mov rcx, qword [0x00499d68]
call fcn.0040d5a0
mov rcx, rax
mov rax, qword [0x00493d28]
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 [0x00426ed0]
call fcn.0040d470
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret

Function at 0x429190
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.0040b050
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.0040fab0
mov esi, eax
cmp esi, 0x104
jbe 0x4291ed
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00405810
mov rdi, rax
jmp 0x4291f1
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.0040fab0
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 0x429247
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 0x42922b
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x429259
mov rcx, rdi
call fcn.00405840
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x455b10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov qword [rbp + 0x60], r8
mov rcx, rsi
mov rdx, qword [rbp + 0x60]
mov r8, r9
call sub.kernel32.dll_FindResourceW
mov qword [rbx + 0x20], rax
cmp qword [rbx + 0x20], 0
jne 0x455b47
mov rcx, rbp
call fcn.00455a00
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_LoadResource
mov qword [rbx + 0x28], rax
cmp qword [rbx + 0x28], 0
jne 0x455b66
mov rcx, rbp
call fcn.00455a00
mov rcx, qword [rbx + 0x28]
call sub.kernel32.dll_LockResource
mov rdi, rax
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_SizeofResource
mov rcx, rbx
mov rdx, rdi
mov r8d, eax
call fcn.004554b0
lea rsp, [rbp + 0x28]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x45df00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbp, rsp
mov rsi, rcx
lea rdi, [rbp + 0x20]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
cmp qword [0x0049e418], 0
jne 0x45dfb5
xor rcx, rcx
mov edx, 0x1000
mov r8d, 0x1000
mov r9d, 0x40
call sub.kernel32.dll_VirtualAlloc_1
mov rbx, rax
mov rax, qword [0x0049e410]
mov qword [rbx], rax
lea rcx, [0x0048f770]
lea rdx, [rbx + 8]
mov r8d, 8
call fcn.00405be0
lea rax, [0x0045dec0]
mov qword [rbx + 0x10], rax
lea rsi, [rbx + 0x18]
mov byte [rsi], 0xe8
mov rcx, rsi
lea rdx, [rbx + 8]
call fcn.0045def0
mov dword [rsi + 1], eax
mov rax, qword [0x0049e418]
mov qword [rsi + 5], rax
mov qword [0x0049e418], rsi
add rsi, 0x15
mov rax, rbx
neg rax
lea rax, [rsi + rax]
cmp rax, 0xfed
jl 0x45df73
mov qword [0x0049e410], rbx
mov rax, qword [0x0049e418]
mov rsi, qword [0x0049e418]
mov rcx, qword [rsi + 5]
mov qword [0x0049e418], rcx
lea rdi, [rsi + 5]
lea rsi, [rbp + 0x20]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
lea rsp, [rbp + 0x38]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x46ca40
Capabilities:
Encrypt data using rc6

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rcx, qword [0x0049e4e0]
lea rdx, [rsp + 0x20]
mov r8d, 0x40
call fcn.00405be0
mov dword [0x0049e428], 0xb7e15163
mov ebx, 1
lea rax, [0x0049e428]
movsxd rcx, ebx
lea rdx, [0x0049e424]
movsxd r8, ebx
mov edx, dword [rdx + r8*4]
add edx, 0x9e3779b9
mov dword [rax + rcx*4], edx
add ebx, 1
cmp ebx, 0x2c
jne 0x46ca73
nop
xor rbx, rbx
xor rsi, rsi
xor r13, r13
xor r14, r14
mov edi, 1
lea rax, [0x0049e428]
movsxd rcx, ebx
mov ecx, dword [rax + rcx*4]
add ecx, r13d
add ecx, r14d
mov edx, 3
call fcn.0046c890
mov r13d, eax
lea rax, [0x0049e428]
movsxd rcx, ebx
mov dword [rax + rcx*4], r13d
movsxd rax, esi
mov ecx, dword [rsp + rax*4 + 0x20]
add ecx, r13d
add ecx, r14d
mov edx, r13d
add edx, r14d
call fcn.0046c890
mov r14d, eax
movsxd rax, esi
mov dword [rsp + rax*4 + 0x20], r14d
mov eax, ebx
add eax, 1
mov ecx, 0x2c
cdq
idiv ecx
mov rbx, rdx
mov eax, esi
add eax, 1
mov ecx, 0x10
cdq
idiv ecx
mov rsi, rdx
add edi, 1
cmp edi, 0x85
jne 0x46caaf
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret
Function at 0x471f80
Capabilities:
Set registry value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbp, rsp
mov rbx, rdx
mov rsi, r8
mov rdi, r9
call fcn.0040bc50
mov rcx, rdi
mov rdx, rax
xor r8, r8
lea r9, [0x00472058]
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0x2001f
mov qword [rsp + 0x30], 0
lea rax, [rbp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x54]
mov qword [rsp + 0x40], rax
call sub.advapi32.dll_RegCreateKeyExW
mov edi, eax
test edi, edi
jne 0x47202c
xor rdi, rdi
test rsi, rsi
je 0x471fea
mov edi, dword [rsi - 4]
mov rcx, rbx
call fcn.0040bc50
mov rbx, rax
mov rcx, rsi
call fcn.0040bc50
mov rcx, qword [rbp + 0x58]
mov rdx, rbx
xor r8, r8
mov r9d, 1
mov qword [rsp + 0x20], rax
add edi, 1
add edi, edi
mov dword [rsp + 0x28], edi
call sub.advapi32.dll_RegSetValueExW
mov edi, eax
mov rcx, qword [rbp + 0x58]
call sub.advapi32.dll_RegCloseKey_1
test edi, edi
je 0x47204d
mov rcx, qword [0x0046ecd8]
mov dl, 1
mov r8, qword [0x00493de0]
call fcn.004272b0
mov rcx, rax
call fcn.00409a80
lea rsp, [rbp + 0x68]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x472060
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
call fcn.0040bc50
mov rcx, rbx
mov rdx, rax
call sub.advapi32.dll_RegDeleteKeyW
add rsp, 0x20
pop rbx
ret

Function at 0x474bd0
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x30
xor rbx, rbx
call sub.kernel32.dll_GetCommandLineW_1
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x28]
xor rdx, rdx
xor r8, r8
call fcn.00474a40
jmp 0x474bf7
add ebx, 1
lea rcx, [rsp + 0x28]
xor rdx, rdx
xor r8, r8
call fcn.00474a40
test al, al
jne 0x474bf4
mov eax, ebx
add rsp, 0x30
pop rbx
ret

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbp, rsp
mov edi, ecx
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
call sub.kernel32.dll_GetTickCount_1
mov esi, eax
jmp 0x47a8ff
lea rcx, [rbp + 0x30]
xor rdx, rdx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 1
call sub.user32.dll_PeekMessageW
test eax, eax
je 0x47a8ed
lea rcx, [rbp + 0x30]
call sub.user32.dll_TranslateMessage
lea rcx, [rbp + 0x30]
call sub.user32.dll_DispatchMessageW
mov ecx, 1
call sub.kernel32.dll_Sleep_1
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
sub ebx, esi
cmp ebx, edi
jl 0x47a8bd
lea rsp, [rbp + 0x68]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x100001b54
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and qword [r11 - 0x18], 0
and qword [r11 - 0x10], 0
lea rax, [0x1000012d0]
xor r9d, r9d
mov qword [r11 - 0x28], rax
lea rax, [0x10000141c]
lea ebx, [r9 + 1]
xor r8d, r8d
xor ecx, ecx
mov edx, ebx
mov qword [r11 - 0x20], rax
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x100004710], rax
test rax, rax
jne 0x100001bb5
mov ecx, ebx
call qword [sym.imp.msvcrt.dll_exit]
int3
xor edx, edx
lea rcx, [0x100004800]
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x100004818], rax
test rax, rax
jne 0x100001bf9
mov rcx, qword [0x100004710]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.msvcrt.dll_exit]
int3
lea rcx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
mov rcx, qword [0x100004710]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x100004818]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x10000273d
Capabilities:
Encode data using xor

Disassembly:
add r13, rdi
call 0x10000273d
movabs r13, 0x10004a7a6
mov r14d, 0xe1d0
movabs r9, 0x1001d9000
call 0x10000273d
pop rdi
cmp r13, r9
jne 0x100002770
mov edi, dword [r13]
xor edi, 0x17d4a41e
mov dword [r9], edi
inc r13
inc r13
dec r14
dec r14
inc r13
inc r13
add r9, 4
dec r14
dec r14
cmp r14d, 0
jne 0x10000273d
ret
mov r14d, 0xfc
push rdi
mov r13d, 0x8000000
movabs r9, 0x100095000
mov edi, 0x10
imul r14d, edi
add r14d, 0x40
sub r9, r14
lea r14, [r9]
sub r14, r13
movabs r13, 0x100059da6

Function at 0x1000028b8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100002905
cmp rcx, 0xffffffffffffffff
je 0x100002905
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1000028fd
cmp dword [rcx + 0x3c], edx
jl 0x1000028fd
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1000028fd
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100002905
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1800012c0
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x180007040]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov dword [rsp + 0x20], 0x130
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x180001349
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
jne 0x180001349
nop word [rax + rax]
lea rdx, str.cod.exe
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov rcx, rbx
test eax, eax
je 0x18000136d
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
je 0x180001320
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180002b00
add rsp, 0x160
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x180001354

Function at 0x180001550
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180001581
xor eax, eax
lea r8, [0x180001380]
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180001920
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x180001941
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x18000196e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180001970
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1800019c9
test ecx, ecx
jle 0x1800019a9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1800019c9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1800019c9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
test byte [rax*8 + 1], ah
mov byte [rsp + 0x1c6], 0
mov byte [rsp + 0x1c7], 0
mov byte [rsp + 0x1c8], 0
mov byte [rsp + 0x1c9], 0
mov byte [rsp + 0x1ca], 0
mov byte [rsp + 0x1cb], 0
mov byte [rsp + 0x1cc], 0
mov byte [rsp + 0x1cd], 0
mov byte [rsp + 0x1ce], 0
mov byte [rsp + 0x1cf], 0
test byte [rdi + rcx*8], ah
add dword [rax], eax
add byte [rax], al