joyce8/EMBER2024-capa huggingface dataset:
Function at 0x513a50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x541760
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x58ab78]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.004a1537
mov dword [esi], vtable.cptboost::system::system_error.0
lea ecx, [esi + 0x14]
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
lea eax, [edi + 0x14]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov dword [esp + 0x24], 0
mov byte [ecx], 0
call fcn.00431c30
mov dword [esi], vtable.cptboost::log::v2s_mt_nt5::system_error.0
mov dword [esi + 0x2c], vtable.cptboost::exception.0
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x18], 1
mov dword [esi + 0x30], ecx
test ecx, ecx
je 0x513ae2
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, esi
mov dword [esi], vtable.cptboost::exception_detail::error_info_injector_class_cptboost::log::v2s_mt_nt5::system_error_.0
mov dword [esi + 0x2c], vtable.cptboost::exception_detail::error_info_injector_class_cptboost::log::v2s_mt_nt5::system_error_.1.0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x513b20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x541218
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x58ab78]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
push esi
call fcn.004a1537
mov dword [edi], vtable.cptboost::system::system_error.0
lea ecx, [edi + 0x14]
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea eax, [esi + 0x14]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov dword [esp + 0x24], 0
mov byte [ecx], 0
call fcn.00431c30
mov dword [edi + 0x2c], vtable.cptboost::exception.0
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi], vtable.cptboost::exception_detail::error_info_injector_class_cptboost::log::v2s_mt_nt5::system_error_.0
mov dword [edi + 0x2c], vtable.cptboost::exception_detail::error_info_injector_class_cptboost::log::v2s_mt_nt5::system_error_.1.0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x5179d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x54295c
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x58ab78]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [edi], vtable.cptboost::detail::thread_data_base.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
lea ecx, [edi + 0x14]
mov dword [edi + 0x10], 0
mov dword [esp + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.00517f40
mov dword [edi + 0x14], eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
push 0
push 1
mov byte [esp + 0x20], 3
call fcn.0050c1b0
mov dword [edi + 0x34], eax
add esp, 8
mov byte [edi + 0x38], 1
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x518080
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x542a28
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x58ab78]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x58c3cc]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x38], 0
cmp eax, 0xffffffff
je 0x5180c6
push eax
call edi
mov esi, eax
test esi, esi
jne 0x5180de
call fcn.00518fd0
mov eax, dword [0x58c3cc]
cmp eax, 0xffffffff
jne 0x5180d9
xor esi, esi
jmp 0x5180de
push eax
call edi
mov esi, eax
push dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
sub esp, 8
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x54]
mov dword [ecx + 4], eax
test eax, eax
je 0x518104
lea ecx, [eax + 4]
mov eax, 1
lock xadd dword [ecx], eax
lea ecx, [esp + 0x20]
call fcn.00517aa0
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00517980
add esp, 0xc
push eax
lea ecx, [esi + 0x14]
mov byte [esp + 0x3c], 2
call fcn.005173f0
push eax
add eax, 0x10
lea ecx, [esi + 0x14]
push eax
push 0
lea eax, [esp + 0x18]
push eax
call fcn.00517690
mov esi, dword [esp + 0x28]
or edi, 0xffffffff
mov byte [esp + 0x38], 1
test esi, esi
je 0x51817c
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x51817c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
mov edx, edi
lock xadd dword [eax], edx
cmp edx, 1
jne 0x51817c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov esi, dword [esp + 0x18]
mov byte [esp + 0x38], 0
test esi, esi
je 0x5181b3
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x5181b3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
mov edx, edi
lock xadd dword [eax], edx
cmp edx, 1
jne 0x5181b3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x38], 0xffffffff
test esi, esi
je 0x5181eb
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x5181eb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], edi
cmp edi, 1
jne 0x5181eb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret

Function at 0x518200
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x58c3cc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xffffffff
je 0x518218
push eax
call esi
test eax, eax
jne 0x518241
call fcn.00518fd0
mov eax, dword [0x58c3cc]
cmp eax, 0xffffffff
jne 0x51823e
xor eax, eax
lea esi, [eax + 0xc]
lea eax, [esp + 8]
push esi
push eax
call fcn.00517870
add esp, 8
mov dword [esi], eax
pop esi
ret
push eax
call esi
lea esi, [eax + 0xc]
lea eax, [esp + 8]
push esi
push eax
call fcn.00517870
add esp, 8
mov dword [esi], eax
pop esi
ret
Function at 0x5184a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x519360
push 0xffffffffffffffff
push 0x542b08
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58ab78]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x58c3cc]
cmp eax, 0xffffffff
jne 0x519395
xor ebx, ebx
jmp 0x51939e
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [esp + 0x14], ebx
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x24], 0
test ebx, ebx
je 0x5193e5
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x519425
test esi, esi
jne 0x519430
push 0x5184b0
push 0x59da04
call fcn.00518260
mov eax, dword [0x58c3cc]
add esp, 8
cmp eax, 0xffffffff
je 0x5193e5
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x24], 0xffffffff
test ebx, ebx
je 0x519411
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x519411
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
test esi, esi
je 0x51946a
lea esp, [esp]
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x519457
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x519430
cmp dword [ebx + 0x18], 0
je 0x5193b4
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x51948d
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x51948d
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [ebx + 0x14]
call fcn.00518660
cmp dword [ebx + 0x18], 0
jne 0x519474
jmp 0x5193b4

Function at 0x5188e0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x58c3cc]
sub esp, 8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xffffffff
je 0x5188fb
push eax
call esi
test eax, eax
jne 0x518911
call fcn.00518fd0
mov eax, dword [0x58c3cc]
cmp eax, 0xffffffff
jne 0x51890e
xor eax, eax
jmp 0x518911
push eax
call esi
lea esi, [eax + 0x14]
lea eax, [esp + 0x10]
mov ecx, esi
push eax
lea eax, [esp + 8]
push eax
call fcn.00518000
push dword [esp + 8]
lea eax, [esp + 8]
mov ecx, esi
push dword [esp + 8]
push eax
call fcn.005185a0
pop esi
add esp, 8
ret
Function at 0x518cd0
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov dword [esp + 8], eax
mov eax, dword [0x58c3cc]
cmp eax, 0xffffffff
je 0x518d16
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x518d16
push esi
lea esi, [eax + 0x14]
lea eax, [esp + 0xc]
mov ecx, esi
push eax
lea eax, [esp + 8]
push eax
call fcn.004f8e70
mov eax, dword [esp + 4]
cmp eax, dword [esi]
pop esi
je 0x518d16
add eax, 0x14
je 0x518d16
mov eax, dword [eax + 8]
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x518fd0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542ab0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x58ab78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.005177d0
mov esi, eax
mov dword [ebp - 4], 0
push 0x5184b0
push 0x59da04
mov dword [ebp - 0x14], esi
call fcn.00518260
mov eax, dword [0x58c3cc]
add esp, 8
cmp eax, 0xffffffff
je 0x519030
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
jmp 0x519360
push 0xffffffffffffffff
push 0x542b08
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58ab78]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x58c3cc]
cmp eax, 0xffffffff
jne 0x519395
xor ebx, ebx
jmp 0x51939e
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [esp + 0x14], ebx
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x24], 0
test ebx, ebx
je 0x5193e5
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x519425
test esi, esi
jne 0x519430
push 0x5184b0
push 0x59da04
call fcn.00518260
mov eax, dword [0x58c3cc]
add esp, 8
cmp eax, 0xffffffff
je 0x5193e5
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x24], 0xffffffff
test ebx, ebx
je 0x519411
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x519411
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
test esi, esi
je 0x51946a
lea esp, [esp]
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x519457
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x519430
cmp dword [ebx + 0x18], 0
je 0x5193b4
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x51948d
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x51948d
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [ebx + 0x14]
call fcn.00518660
cmp dword [ebx + 0x18], 0
jne 0x519474
jmp 0x5193b4
Function at 0x5194b0
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x542b38
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x58ab78]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x58c3cc]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], edi
cmp eax, 0xffffffff
je 0x519561
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x519561
lea esi, [eax + 0x14]
lea eax, [esp + 0x24]
mov ecx, esi
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004f8e70
mov eax, dword [esp + 0x10]
cmp eax, dword [esi]
je 0x519561
lea esi, [eax + 0x14]
test esi, esi
je 0x519561
cmp byte [esp + 0x34], 0
je 0x519536
mov ecx, dword [esi]
test ecx, ecx
je 0x519536
mov edx, dword [esi + 8]
test edx, edx
je 0x519536
mov eax, dword [ecx]
push edx
call dword [eax + 4]
cmp dword [esp + 0x28], 0
mov ebx, dword [esp + 0x30]
jne 0x519550
test ebx, ebx
jne 0x519550
push edi
call fcn.005188e0
add esp, 4
jmp 0x519599
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.00517d70
mov dword [esi + 8], ebx
jmp 0x519599
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
test ecx, ecx
jne 0x519571
test eax, eax
je 0x519599
push eax
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], ecx
test ecx, ecx
je 0x519590
add ecx, 4
mov eax, 1
lock xadd dword [ecx], eax
push edi
call fcn.00518080
add esp, 0x10
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
test esi, esi
je 0x5195d4
or edi, 0xffffffff
lea ecx, [esi + 4]
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x5195d4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], edi
cmp edi, 1
jne 0x5195d4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x519bbf
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push esi
mov byte [ebp - 0x48], 0x24
mov byte [ebp - 0x47], 0x6f
mov byte [ebp - 0x46], 0x44
mov byte [ebp - 0x45], 0x41
mov byte [ebp - 0x44], 0x42
mov byte [ebp - 0x43], 0x41
mov byte [ebp - 0x42], 0x36
mov byte [ebp - 0x41], 0x42
mov byte [ebp - 0x40], 0x74
mov byte [ebp - 0x3f], 0x79
mov byte [ebp - 0x3e], 0x7a
mov byte [ebp - 0x3d], 0x6c
mov byte [ebp - 0x3c], 0x6b
mov byte [ebp - 0x3b], 0x4a
mov byte [ebp - 0x3a], 0x67
mov byte [ebp - 0x39], 0x63
mov byte [ebp - 0x38], 0x74
mov byte [ebp - 0x37], 0x53
mov byte [ebp - 0x36], 0x64
mov byte [ebp - 0x35], 0x55
mov byte [ebp - 0x34], 0x73
mov byte [ebp - 0x33], 0x66
mov byte [ebp - 0x32], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x54], 0
mov eax, 0x6b
mov word [ebp - 0xa4], ax
mov ecx, 0x65
mov word [ebp - 0xa2], cx
mov edx, 0x72
mov word [ebp - 0xa0], dx
mov eax, 0x6e
mov word [ebp - 0x9e], ax
mov ecx, 0x65
Function at 0x51a4df
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x10], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
jmp 0x51a542
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 0x18]
jae 0x51a584
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0051a43f
add esp, 4
cmp eax, dword [ebp + 0xc]
jne 0x51a582
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + edx*2]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
jmp 0x51a586
jmp 0x51a539
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x51cc23
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x402150
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a808
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x425040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, cl
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
mov edx, 0x421e9c
lea ecx, [ebp - 0x24c]
call fcn.004047c0
push 0x421e98
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.00404900
add esp, 8
lea ecx, [ebp + 8]
push eax
call fcn.00404140
mov ecx, dword [ebp - 0x220]
cmp ecx, 7
jbe 0x4021fb
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4021f1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402349
push ecx
push edx
call fcn.004067bc
add esp, 8
mov ecx, dword [ebp - 0x238]
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
cmp ecx, 7
jbe 0x402258
mov edx, dword [ebp - 0x24c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40224e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402349
push ecx
push edx
call fcn.004067bc
add esp, 8
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00407ec0
cmp dword [ebp + 0x1c], 7
lea eax, [ebp + 8]
cmova eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040ac33
add esp, 0x18
lea eax, [ebp - 0x21c]
push eax
push 0x20006
push 0
push 0x421ea0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4022b1
xor bl, bl
jmp 0x4022f7
test bl, bl
je 0x4022d8
push 0x104
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push 0x421efc
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4022e9
push 0x421f24
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
mov ecx, dword [ebp + 0x1c]
cmp ecx, 7
jbe 0x40232d
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402323
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40234e
push ecx
push edx
call fcn.004067bc
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040652d
mov esp, ebp
pop ebp
ret
call fcn.0040afce
call fcn.0040afce
int3
Function at 0x40701d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40705c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40705c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40705c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40705c
cmp dword [ecx + 0x74], 0xe
jbe 0x40705c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40fa99
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41e260
push 0x41e258
push str.FlsAlloc
push 0x1e
call fcn.0040f906
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40facd
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b158]
call esi
jmp 0x40fad3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40fb17
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41e270
push 0x41e268
push str.FlsGetValue
push 0x20
call fcn.0040f906
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fb4e
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4131ad
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41324a
push ebx
push esi
call fcn.00413176
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00411ea5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4131f7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x413249
push edi
push eax
call fcn.0040fdef
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x413217
call fcn.0040f002
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x413248
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00411ea5
add esp, 0x20
test eax, eax
jne 0x413236
push edi
call fcn.0040f002
jmp 0x41323e
push ebx
call fcn.0040f002
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x41a2c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41a2ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41a2ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret