joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438df0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4cf040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
xor eax, eax
push edi
mov edi, dword [0x4d1a04]
xorps xmm0, xmm0
push eax
push 0x20
mov word [ebp - 0x38], ax
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x3c], 1
call esi
mov word [ebp - 0x36], ax
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], 8
movups xmm0, xmmword [ebp - 0x3c]
push ecx
mov dword [ebp - 8], eax
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0xa
movq xmm0, qword [ebp - 0x2c]
movq qword [ebp - 0x10], xmm0
call fcn.00438a20
lea edx, [ebp - 0x20]
call fcn.00438a20
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
push dword [0x4d1a08]
call ebx
push 0
push 0xa2
mov dword [ebp - 0x3c], 1
call esi
push ecx
lea edx, [ebp - 0x3c]
mov word [ebp - 0x36], ax
mov dword [ebp - 0x34], 8
call fcn.00438a20
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
add esp, 4
push edi
call esi
test ax, ax
jns 0x438ebc
nop
push 0xa
call ebx
push edi
call esi
test ax, ax
js 0x438eb0
push ecx
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x34], 0xa
call fcn.00438a20
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.00453580
mov esp, ebp
pop ebp
ret
Function at 0x43ac40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x43ac72
jl 0x43ac65
test ecx, ecx
jne 0x43ac72
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x43ad32
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.0043e3b0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x43acde
jg 0x43ac9d
test esi, esi
je 0x43acde
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x43acb5
mov eax, dword [esp + 0x10]
jl 0x43acaf
cmp eax, esi
jae 0x43acb5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.00457c60
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x43acff
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x43ad1b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x43ac84
jl 0x43ad1b
test ecx, ecx
jne 0x43ac84
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
sbb esi, edx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x43ad70
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x43ad70
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.00457c60
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x43add9
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x43ad96
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x43adc4
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0046cf00
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x43add9
cmp edi, eax
ja 0x43ada2
test edi, edi
je 0x43add9
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0046cf00
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43fe60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a68b0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4cf040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0x2b
push str.D:ProgramasVS_CommunityVCToolsMSVC14.39.33519includexlocale
push 2
lea edi, [esi + 4]
mov dword [ebp - 0x10], esi
lea ebx, [esi + 8]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
push 8
mov dword [edi], 0
mov dword [ebx], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.00479e60
add esp, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
je 0x43ffd9
xorps xmm0, xmm0
movq qword [eax], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00455550
mov ecx, dword [ebp - 0x10]
lea edi, [esi + 4]
lea edx, [esi + 0x24]
add esp, 4
mov dword [ecx + 4], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x34], ecx
lea ecx, [esi + 0x18]
mov dword [ebx], 0
mov dword [ecx], 0
mov dword [esi + 0x28], 0
mov dword [edi], 0
mov dword [eax], 0
mov dword [edx], 0
mov dword [esi + 0xc], edi
lea edi, [esi + 0x28]
mov dword [esi + 0x1c], eax
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], 0
mov byte [esi + 0x3d], 0
mov dword [esi + 0x10], ebx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], edi
mov dword [ebx], 0
mov dword [ecx], 0
mov dword [esi + 0x28], 0
mov dword [esi + 4], 0
mov dword [eax], 0
mov eax, esi
mov dword [edx], 0
mov dword [esi + 0x4c], 0
mov ecx, dword [0x4d1a14]
mov edx, dword [0x4d1a18]
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], edx
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00454960
int3
Function at 0x441700
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a69b0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4cf040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x2b
push str.D:ProgramasVS_CommunityVCToolsMSVC14.39.33519includexlocale
push 2
lea ebx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
push 8
mov dword [ebx], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.00479e60
mov edi, eax
add esp, 0x10
test edi, edi
je 0x441815
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00455550
mov dword [edi + 4], eax
lea ecx, [esi + 0x14]
mov dword [esi + 0x34], edi
lea eax, [esi + 8]
mov dword [esi + 0xc], ebx
lea edx, [esi + 0x18]
mov dword [esi + 0x10], eax
lea edi, [esi + 0x24]
mov dword [esi + 0x1c], ecx
lea ebx, [esi + 0x28]
mov dword [esi + 0x20], edx
add esp, 4
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], ebx
mov dword [eax], 0
mov eax, esi
mov dword [edx], 0
mov dword [esi + 0x28], 0
mov dword [esi + 4], 0
mov dword [ecx], 0
mov dword [edi], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00454960
int3
Function at 0x45afa0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.0045abc0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x45afd2
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x4a8224]
call dword [ebp - 8]
jmp 0x45afdc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret
Function at 0x486760
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00486000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x486794
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x4a8224]
call dword [ebp - 8]
jmp 0x48679a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esp, ebp
pop ebp
ret 4

Function at 0x4867f0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00486040
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x486824
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x4a8224]
call dword [ebp - 8]
jmp 0x48682e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret 4

Function at 0x486840
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00486060
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x486878
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
call dword [0x4a8224]
call dword [ebp - 8]
jmp 0x486886
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esp, ebp
pop ebp
ret 8

Function at 0x486890
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.004860e0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4868d0
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x4a8224]
call dword [ebp - 8]
jmp 0x4868ee
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00486ae0
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x487eb0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.004a39b0
mov eax, dword [0x4cf040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x4d14d8]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x488088
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x487fd7
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x487fd7
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x487fb5
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x487f39
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x488041
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x4880a8
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x488083
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x4880a8
jmp 0x487f12
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453580
mov esp, ebp
pop ebp
ret
Function at 0x4880c0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.004a39b0
mov eax, dword [0x4cf040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x4d14d8]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x4882ab
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x4881f6
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x4881f6
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x4881d2
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x488149
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x488264
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x4882cb
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x4882a6
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x4882cb
jmp 0x488122
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453580
mov esp, ebp
pop ebp
ret
Function at 0x492700
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
lea ecx, [ebp - 4]
call fcn.0045b900
lea ecx, [ebp - 4]
call fcn.00492610
movzx eax, al
test eax, eax
jne 0x49273d
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 4]
call fcn.004925f0
mov eax, dword [ebp - 0x14]
jmp 0x4927f7
lea ecx, [ebp - 4]
call fcn.0045b9d0
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00492690
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0xc]
sar edx, 1
mov dword [ebp - 0x10], edx
push 0x40
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
call fcn.00479e60
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.0045b900
lea ecx, [ebp - 8]
call fcn.0047c230
movzx ecx, al
test ecx, ecx
jne 0x4927ad
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 8]
call fcn.0045c4b0
lea ecx, [ebp - 4]
call fcn.004925f0
mov eax, dword [ebp - 0x1c]
jmp 0x4927f7
lea ecx, [ebp - 4]
call fcn.0045b9d0
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 8]
call fcn.0045b9d0
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x10]
shl edx, 1
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00457c60
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.0045c4d0
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 8]
call fcn.0045c4b0
lea ecx, [ebp - 4]
call fcn.004925f0
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret
Function at 0x401d00
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20c
mov eax, dword [0x48e0ec]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
push eax
call fcn.00401bc0
mov eax, dword [esp + 0x21c]
mov dword [esp + 8], eax
mov eax, dword [esi]
test eax, eax
je 0x401d58
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push 0
push dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x401d58
mov bl, 1
jmp 0x401d5a
xor bl, bl
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
cmp eax, ecx
je 0x401d6f
push eax
call fcn.00423c95
add esp, 4
mov ecx, dword [esp + 0x210]
mov al, bl
pop esi
pop ebx
xor ecx, esp
call fcn.00423c9a
add esp, 0x20c
ret 8

Function at 0x401d90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45cedb
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x48e0ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x418]
mov esi, dword [ebp + 8]
push eax
call fcn.00401bc0
push esi
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], 0
call fcn.00401bc0
mov esi, dword [edi]
test esi, esi
je 0x401e27
mov edx, dword [ebp - 0x418]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401df6
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp - 0x214]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x401e27
mov bl, 1
jmp 0x401e29
xor bl, bl
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x210]
cmp eax, ecx
je 0x401e42
push eax
call fcn.00423c95
add esp, 4
mov eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x414]
cmp eax, ecx
je 0x401e5b
push eax
call fcn.00423c95
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00423c9a
mov esp, ebp
pop ebp
ret 8

Function at 0x402070
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x14
mov eax, dword [0x48e0ec]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
mov esi, dword [esp + 0x1c]
lea eax, [esp + 4]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
je 0x4020bb
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 4]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
je 0x4020bb
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00423c9a
add esp, 0x14
ret
push esi
push 0xd7
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x4020a9
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4020d0
push dword [esp + 0x10]
sub ecx, edx
push dword [esp + 0x10]
sar ecx, 1
push dword [esp + 0x10]
push dword [esp + 0x10]
lea eax, [esi + ecx*2]
push str.spot__.8X_.8X_.8X_.8X.tmp
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov ecx, dword [esp + 0x14]
mov al, 1
pop esi
xor ecx, esp
call fcn.00423c9a
add esp, 0x14
ret
Function at 0x402120
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0x214
mov eax, dword [0x48e0ec]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x218]
push esi
push 0x104
mov esi, ecx
lea ecx, [esp + 0x10]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
jne 0x402176
xor al, al
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00423c9a
add esp, 0x214
ret 4
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x40215c
push edi
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
mov dword [esp + 8], edi
cmp edi, 0xffffffff
je 0x40220c
cmp dword [esp + 0xc], 0
ja 0x40220c
jb 0x4021c4
cmp edi, 0x7fffffff
ja 0x40220c
push 0
push 0
push 0
push 2
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
mov dword [esi], eax
test eax, eax
je 0x40220c
push edi
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [esi + 4], eax
test eax, eax
jne 0x402227
mov eax, dword [esi]
test eax, eax
je 0x4021ff
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi], 0
mov dword [esi + 4], 0
xor al, al
mov ecx, dword [esp + 0x218]
pop edi
pop esi
xor ecx, esp
call fcn.00423c9a
add esp, 0x214
ret 4
mov eax, dword [esp + 8]
mov dword [esi + 0xc], eax
mov al, 1
jmp 0x40220e