joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4023b8
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42781c
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x4362ec]
xor eax, esp
mov dword [esp + 0x294], eax
push ebx
push esi
mov eax, dword [0x4362ec]
xor eax, esp
push eax
lea eax, [esp + 0x2a8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x2c]
mov esi, ecx
push eax
xor ebx, ebx
push esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x40244b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
mov esi, dword [esp + 0x14]
push str.GetDiskFreeSpaceEx_on___s__failed__Error___d
add esi, 0x3c
call fcn.00406a13
add esp, 0xc
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], eax
and dword [esp + 0x10], 0x80000000
and eax, 0x7fffffff
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
fild qword [esp + 0x1c]
mov dword [esp + 0xc], ebx
fild qword [esp + 0xc]
fchs
faddp st(1)
fmul qword [0x42f488]
call fcn.00423b36
mov esi, dword [ebp + 0x10]
cmp esi, edx
mov dword [edi], eax
mov dword [edi + 4], edx
jb 0x4025b5
ja 0x4024a4
mov eax, dword [ebp + 0xc]
cmp eax, dword [edi]
jbe 0x4025b5
push 0x28
lea eax, [esp + 0x48]
push ebx
push eax
call fcn.00414b10
add esp, 0xc
push 0x14
lea eax, [esp + 0x48]
push eax
push esi
push dword [ebp + 0xc]
mov esi, dword [sym.imp.SHLWAPI.dll_StrFormatByteSizeW]
call esi
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
call fcn.00407ade
mov dword [esp + 0x2b0], ebx
push 0x28
lea eax, [esp + 0x70]
push ebx
push eax
call fcn.00414b10
add esp, 0xc
push 0x14
lea eax, [esp + 0x70]
push eax
push dword [edi + 4]
push dword [edi]
call esi
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
call fcn.00407ade
mov byte [esp + 0x2b0], 1
mov dword [esp + 0x18], ebx
mov byte [esp + 0x2b0], 2
push 0x104
lea eax, [esp + 0x98]
push eax
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
je 0x402550
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x1c]
call fcn.00407ade
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x14]
push str.Data_migration_requires__s_of_disk_space_on_drive__s_but_only__s_is_available.
push dword [esp + 0x3c]
call fcn.00407ac5
add esp, 0x14
mov byte [esp + 0x2b0], 1
cmp dword [esp + 0x18], ebx
je 0x402584
lea ecx, [esp + 0x18]
call fcn.00407c65
mov byte [esp + 0x2b0], bl
cmp dword [esp + 0x1c], ebx
je 0x40259a
lea ecx, [esp + 0x1c]
call fcn.00407c65
or dword [esp + 0x2b0], 0xffffffff
cmp dword [esp + 0xc], ebx
je 0x4025b1
lea ecx, [esp + 0xc]
call fcn.00407c65
xor al, al
jmp 0x4025b7
mov al, 1
mov ecx, dword [esp + 0x2a8]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x294]
xor ecx, esp
call fcn.004147b8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402648
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4277cd
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x4362ec]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x4362ec]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x34]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x1c
mov edi, ecx
push ebx
mov dword [esp + 0x2c], edi
call esi
test eax, eax
jl 0x402788
mov dword [esp + 0x10], ebx
mov dword [esp + 0x250], ebx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
call fcn.00407ade
push dword [esp + 0x10]
lea eax, [esp + 0x14]
push str._sGroove_NetworksGroove_
push eax
call fcn.00407ac5
add esp, 0xc
lea eax, [esp + 0x17]
push eax
push dword [esp + 0x14]
mov ecx, edi
mov byte [esp + 0x1f], bl
call fcn.00405386
test al, al
je 0x402771
push ebx
push ebx
push 3
lea ecx, [esp + 0x2c]
call fcn.0040a360
mov byte [esp + 0x250], 1
push 0x20006
lea edi, [esp + 0x24]
call fcn.0040a631
test eax, eax
jne 0x402761
push 0x42aedc
push dword [esp + 0x14]
call fcn.0040aa04
test eax, eax
jne 0x402761
push dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
push str.Found_mulitple_id.xss_in_speculative_UserRoot___s_
add esi, 0x3c
call fcn.00406a13
pop ecx
pop ecx
push dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
call fcn.00407ade
mov byte [esp + 0x250], bl
jmp 0x40284e
mov byte [esp + 0x250], bl
lea ecx, [esp + 0x20]
call fcn.0040a400
or dword [esp + 0x250], 0xffffffff
cmp dword [esp + 0x10], ebx
je 0x402788
lea ecx, [esp + 0x10]
call fcn.00407c65
lea eax, [esp + 0x34]
push eax
push ebx
push ebx
push 0x26
push ebx
call esi
test eax, eax
jl 0x40286e
mov dword [esp + 0x10], ebx
mov dword [esp + 0x250], 2
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
call fcn.00407ade
push dword [esp + 0x10]
lea eax, [esp + 0x14]
push str._sGrooveData_
push eax
call fcn.00407ac5
mov ecx, dword [esp + 0x24]
add esp, 0xc
lea eax, [esp + 0x17]
push eax
push dword [esp + 0x14]
mov byte [esp + 0x1f], bl
call fcn.00405386
test al, al
je 0x402857
push ebx
push ebx
push 3
lea ecx, [esp + 0x2c]
call fcn.0040a360
mov byte [esp + 0x250], 3
push 0x20006
lea edi, [esp + 0x24]
call fcn.0040a631
test eax, eax
jne 0x402846
push 0x42aef4
push dword [esp + 0x14]
call fcn.0040aa04
test eax, eax
jne 0x402846
push dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
push str.Found_mulitple_id.xss_in_speculative_UserRoot___s_
add esi, 0x3c
call fcn.00406a13
pop ecx
pop ecx
push dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
call fcn.00407ade
mov byte [esp + 0x250], 2
lea ecx, [esp + 0x20]
call fcn.0040a400
or dword [esp + 0x250], 0xffffffff
cmp dword [esp + 0x10], ebx
je 0x40286e
lea ecx, [esp + 0x10]
call fcn.00407c65
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.004147b8
mov esp, ebp
pop ebp
ret 4
Function at 0x404319
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push 3
push dword [ebp + 0xc]
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x404356
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x50
jne 0x404374
push dword [ebp + 0xc]
push esi
push str.Target_already_exisited_for_MoveFile_of___s__to___s_
lea esi, [edi + 0x3c]
call fcn.00406a13
add esp, 0xc
xor ebx, ebx
push dword [ebp + 0xc]
lea esi, [edi + 0x3c]
push dword [ebp + 8]
push str.Moved___s__to___s_
call fcn.00406a13
add esp, 0xc
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
cmp ebx, 5
jne 0x404383
push edi
mov ebx, esi
call fcn.0040439e
mov ebx, eax
test ebx, ebx
je 0x404356
push ebx
push dword [ebp + 0xc]
push esi
push str.MoveFile_of___s__to___s__failed__Error___d
lea esi, [edi + 0x3c]
call fcn.00406a13
add esp, 0x10
jmp 0x40436c

Function at 0x40503d
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor ebx, ebx
push ebx
mov edi, eax
push str._Classes
call fcn.004078de
test al, al
je 0x40505a
mov al, 1
jmp 0x4050c0
push esi
mov esi, str..DEFAULT
mov edx, edi
call fcn.004072d5
test eax, eax
je 0x405096
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
jne 0x40507e
xor al, al
jmp 0x4050bf
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
cmp eax, ebx
je 0x40509a
push dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x40509a
mov al, 1
jmp 0x4050bf
xor esi, esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
test eax, eax
jne 0x4050b2
inc esi
cmp esi, 0x3d
jbe 0x40509c
jmp 0x4050b4
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, bl
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x405386
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x427564
mov eax, dword fs:[0]
push eax
sub esp, 0xa88
mov eax, dword [0x4362ec]
xor eax, esp
mov dword [esp + 0xa80], eax
push ebx
push esi
push edi
mov eax, dword [0x4362ec]
xor eax, esp
push eax
lea eax, [esp + 0xa98]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
and dword [esp + 0x14], 0
lea eax, [esp + 0x67c]
push eax
mov dword [esp + 0x1c], ecx
call fcn.004061c1
and dword [esp + 0xaa0], 0
push ebx
push 0x42cffc
lea ecx, [esp + 0x684]
call fcn.0040999a
pop ecx
pop ecx
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x680]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x40545e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
or dword [esp + 0xaa0], 0xffffffff
lea eax, [esp + 0x67c]
push eax
call fcn.0040e135
mov al, bl
mov ecx, dword [esp + 0xa98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa80]
xor ecx, esp
call fcn.004147b8
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esp + 0x1c]
and esi, 0x10
je 0x4054ed
mov eax, 0x42bf9c
lea ecx, [esp + 0x48]
call fcn.00407380
test al, al
jne 0x4054ed
mov eax, 0x42bfa0
lea ecx, [esp + 0x48]
call fcn.00407380
test al, al
jne 0x4054ed
lea eax, [esp + 0x26c]
push eax
call fcn.004061c1
mov byte [esp + 0xaa0], 1
lea eax, [esp + 0x48]
push eax
push ebx
push 0x42bfa8
lea ecx, [esp + 0x278]
call fcn.0040999a
mov ecx, dword [esp + 0x24]
add esp, 0xc
push edi
push dword [esp + 0x270]
call fcn.00405386
test al, al
jne 0x40555a
mov byte [esp + 0xaa0], al
lea eax, [esp + 0x26c]
push eax
call fcn.0040e135
jmp 0x40550a
test esi, esi
jne 0x40550a
mov esi, str.id.xss
lea edx, [esp + 0x48]
call fcn.004072d5
test eax, eax
jne 0x40550a
cmp byte [edi], al
jne 0x405580
mov byte [edi], 1
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405540
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
mov dword [esp + 0x14], eax
je 0x405540
mov esi, dword [esp + 0x18]
push eax
push str.FindNextFile_failed__Error___d
add esi, 0x3c
call fcn.00406a13
pop ecx
pop ecx
cmp dword [esp + 0x14], 0
je 0x40545e
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40541f
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0xaa0], 0
lea eax, [esp + 0x26c]
push eax
call fcn.0040e135
mov bl, 1
jmp 0x405421
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x405579
Function at 0x4059ec
Capabilities:
Persist via run registry key

Disassembly:
push 0x34
mov eax, 0x426e96
call fcn.00423fbc
xor ebx, ebx
push ebx
push ebx
push 2
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0xd], bl
call fcn.0040a360
mov dword [ebp - 4], ebx
mov esi, 0x2001f
push esi
lea edi, [ebp - 0x2c]
call fcn.0040a5e3
test eax, eax
jne 0x405a3d
push ebx
mov ecx, 0x42b824
lea edx, [ebp - 0x18]
mov ebx, edi
call fcn.0040a6bb
test eax, eax
jne 0x405a3b
cmp dword [ebp - 0x18], eax
jbe 0x405a3b
mov byte [ebp - 0xd], 1
xor ebx, ebx
mov byte [ebp - 0xe], bl
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
lea eax, [ebp - 0x40]
push eax
mov ecx, SysReAllocStringLen
call fcn.0040a3c4
mov byte [ebp - 4], 2
push esi
lea edi, [ebp - 0x40]
call fcn.0040a5e3
test eax, eax
je 0x405a75
push 0xf003f
call fcn.0040a631
push ebx
mov esi, 0x42b84c
mov ecx, esi
lea ebx, [ebp - 0x14]
lea edi, [ebp - 0x40]
call fcn.0040a771
test eax, eax
jne 0x405a90
mov byte [ebp - 0xe], 1
cmp byte [ebp - 0xd], 0
je 0x405adb
cmp byte [ebp - 0xe], 0
je 0x405aca
mov bl, 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0040a400
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00406432
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040a400
mov al, bl
call fcn.00424094
ret
push 0x42b824
lea edi, [ebp - 0x2c]
call fcn.0040aa49
xor bl, bl
jmp 0x405a9e
push 0x42b824
push 1
lea edi, [ebp - 0x2c]
call fcn.0040a9ca
push esi
push 0x42d26c
lea edi, [ebp - 0x40]
call fcn.0040aa04
jmp 0x405a9c
Function at 0x405afa
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push 0x480
mov eax, 0x4274b0
call fcn.00424025
xor ebx, ebx
push ebx
push ebx
push 2
lea ecx, [ebp - 0x48c]
call fcn.0040a360
mov dword [ebp - 4], ebx
push 0x20019
lea edi, [ebp - 0x48c]
call fcn.0040a5e3
test eax, eax
jne 0x405b6b
push ebx
mov ecx, str.SkipMigratorRebootCheck
lea edx, [ebp - 0x438]
mov ebx, edi
call fcn.0040a6bb
test eax, eax
jne 0x405b69
cmp dword [ebp - 0x438], eax
jbe 0x405b69
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48c]
call fcn.0040a400
mov al, bl
call fcn.004240a8
ret
xor ebx, ebx
push str.SystemCurrentControlSetControlSession_Manager
lea eax, [ebp - 0x478]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push eax
mov ecx, esi
call fcn.0040a3c4
mov byte [ebp - 4], 1
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push edi
lea eax, [ebp - 0x450]
push eax
mov ecx, esi
call fcn.0040a3c4
mov byte [ebp - 4], 2
push edi
lea eax, [ebp - 0x464]
push eax
mov ecx, SysReAllocStringLen
call fcn.0040a3c4
mov byte [ebp - 4], 3
mov esi, 0x20019
push esi
lea edi, [ebp - 0x464]
call fcn.0040a5e3
test eax, eax
jne 0x405c2a
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x21c]
push eax
push ebx
push dword [ebp - 0x460]
mov dword [ebp - 0x434], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x405c2a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x464]
call fcn.0040a400
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x450]
call fcn.0040a400
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x478]
call fcn.0040a400
mov bl, 1
jmp 0x405b52
push esi
lea edi, [ebp - 0x450]
call fcn.0040a5e3
test eax, eax
jne 0x405cb3
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x428]
push eax
push ebx
push dword [ebp - 0x44c]
mov dword [ebp - 0x43c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x405cb3
push 0x20006
call fcn.0040a5e3
test eax, eax
je 0x405bf7
call fcn.004059ec
mov byte [ebp - 0x429], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x464]
call fcn.0040a400
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.0040a400
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x478]
call fcn.0040a400
mov bl, byte [ebp - 0x429]
jmp 0x405b52
mov dword [ebp - 0x430], ebx
mov byte [ebp - 4], 4
push esi
lea edi, [ebp - 0x478]
call fcn.0040a5e3
test eax, eax
jne 0x405d16
push ebx
mov ecx, str.PendingFileRenameOperations
lea ebx, [ebp - 0x430]
call fcn.0040a771
test eax, eax
jne 0x405d14
mov byte [ebp - 4], 3
mov ecx, ebx
call fcn.00406432
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x464]
call fcn.0040a400
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x450]
call fcn.0040a400
mov byte [ebp - 4], 0
jmp 0x405c18
xor ebx, ebx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x430]
call fcn.00406432
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x464]
call fcn.0040a400
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x450]
call fcn.0040a400
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x478]
call fcn.0040a400
jmp 0x405b52
Function at 0x4064e8
Capabilities:
Hide graphical window

Disassembly:
push 8
mov eax, 0x4273d5
call fcn.00423fbc
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x408
push dword [edi + 4]
call ebx
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 0
push 0x3ea
push dword [edi + 4]
call ebx
push eax
call esi
push dword [0x439254]
lea esi, [ebp - 0x14]
push 0x81
call fcn.004062f3
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push eax
push 0
push 0xc
push 2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push 1
push 2
push dword [edi + 4]
call ebx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 5
push 2
push dword [edi + 4]
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [edi + 8], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406432
call fcn.00424094
ret

Function at 0x406b39
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp byte [esi + 8], 0
je 0x406b70
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x3f1
push dword [esi + 4]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push 0
push 0x3ec
push dword [esi + 4]
call edi
push eax
call ebx
pop edi
pop ebx
push 0
push dword [ebp + 8]
push 0x402
push 0x3e9
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
pop ebp
ret 4
Function at 0x408daf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x426c48
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1144
call fcn.00420cd0
mov eax, dword [0x4362ec]
xor eax, esp
mov dword [esp + 0x1140], eax
push ebx
push esi
push edi
mov eax, dword [0x4362ec]
xor eax, esp
push eax
lea eax, [esp + 0x1158]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [esp + 0x93c]
push eax
call fcn.004095d3
xor ebx, ebx
mov dword [esp + 0x1160], ebx
cmp esi, ebx
je 0x408e70
push 1
lea ebx, [esp + 0x1c]
call fcn.00408a58
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov byte [esp + 0x1160], 1
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x93c]
mov edi, eax
je 0x408e4e
push eax
call fcn.0040628c
push edi
mov ecx, eax
lea edx, [esp + 0x940]
call fcn.004099ab
xor ebx, ebx
mov byte [esp + 0x1160], bl
cmp dword [esp + 0x14], ebx
je 0x408e66
lea ecx, [esp + 0x14]
call fcn.00407c65
push ebx
mov ecx, esi
call fcn.004088b5
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x408f22
call fcn.0040f775
push eax
push 0x2d53
lea eax, [esp + 0x24]
push eax
call fcn.0040955f
mov byte [esp + 0x1160], 2
call fcn.0040f775
lea ecx, [esp + 0x13c]
mov dword [esp + 0x12c], ecx
mov dword [esp + 0x130], 0x400
mov byte [esp + 0x134], bl
mov dword [esp + 0x138], ebx
mov word [esp + 0x13c], bx
mov byte [esp + 0x1160], 3
push eax
push dword [ebp + 0xc]
lea esi, [esp + 0x134]
call fcn.00409a2d
mov byte [esp + 0x1160], 4
push 0x12010
push dword [esp + 0x20]
push dword [esp + 0x134]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [esp + 0x1160], 2
mov eax, esi
push eax
call fcn.0040e135
mov byte [esp + 0x1160], bl
lea eax, [esp + 0x1c]
push eax
call fcn.0040e135
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
or dword [esp + 0x1160], 0xffffffff
lea eax, [esp + 0x93c]
push eax
call fcn.0040e135
mov ecx, dword [esp + 0x1158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1140]
xor ecx, esp
call fcn.004147b8
mov esp, ebp
pop ebp
ret 0x14

Function at 0x409dab
Capabilities:
Get thread local storage value

Disassembly:
push 8
mov eax, 0x42584a
call fcn.00423fbc
push dword [0x4394d8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
xor edi, edi
cmp ebx, edi
jne 0x409e01
push 0x10
call fcn.0040d2c1
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
cmp eax, edi
je 0x409dee
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov byte [ebp - 4], 0
jmp 0x409df0
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov ebx, eax
push eax
mov eax, 0x4394d8
call fcn.00409c96
mov esi, dword [ebx + 4]
cmp esi, edi
mov al, byte [ebp + 8]
mov byte [ebp - 0x14], al
jge 0x409e1d
push 0x80070057
push 0x2e73696d
call fcn.00406375
cmp esi, dword [ebx + 4]
jl 0x409e3f
lea eax, [esi + 1]
push eax
call fcn.0040a07b
cmp esi, dword [ebx + 4]
jl 0x409e3f
push 0x80070057
push 0x2e736977
call fcn.00406375
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x14]
mov dword [ebx + esi*8], eax
mov dword [ebx + esi*8 + 4], edi
call fcn.00424094
ret 4
Function at 0x40a6bb
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x4265e4
call fcn.00423fbc
mov edi, ecx
mov esi, edx
and dword [esi], 0
cmp byte [0x43925c], 0
je 0x40a72b
test edi, edi
je 0x40a72b
lea edx, [ebp - 0x18]
mov ecx, ebx
call fcn.0040ad82
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push eax
call fcn.0040b00b
test eax, eax
je 0x40a71f
cmp dword [eax], 2
jne 0x40a71f
mov eax, dword [eax + 8]
mov dword [esi], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406432
mov eax, dword [ebp + 8]
test eax, eax
je 0x40a71b
mov dword [eax], 4
xor eax, eax
jmp 0x40a769
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406432
mov ecx, ebx
call fcn.0040aeca
test al, al
je 0x40a73b
push 2
pop eax
jmp 0x40a769
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp + 8]
mov eax, ebx
neg eax
push 0
lea ecx, [ebx + 4]
sbb eax, eax
push edi
and eax, ecx
push dword [eax]
mov dword [ebp - 0x14], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, ebx
call fcn.0040abe4
call fcn.00424094
ret 4

Function at 0x40a771
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1060
call fcn.00420cd0
mov eax, dword [0x4362ec]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, ebx
mov dword [ebp - 0x1058], eax
call fcn.00406432
push ebx
mov edx, esi
mov ecx, edi
call fcn.0040ae56
test al, al
je 0x40a7c0
mov eax, dword [ebp - 0x1058]
test eax, eax
je 0x40a7b9
mov dword [eax], 1
xor eax, eax
jmp 0x40a841
mov ecx, edi
call fcn.0040aeca
test al, al
je 0x40a7d0
push 2
pop eax
jmp 0x40a841
and word [ebp - 0x1054], 0
push 0x1046
lea eax, [ebp - 0x1052]
push 0
push eax
call fcn.00414b10
add esp, 0xc
lea eax, [ebp - 0x105c]
push eax
lea eax, [ebp - 0x1054]
push eax
push dword [ebp - 0x1058]
mov eax, edi
neg eax
push 0
lea ecx, [edi + 4]
sbb eax, eax
push esi
and eax, ecx
push dword [eax]
mov dword [ebp - 0x105c], 0x1048
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, edi
call fcn.0040abe4
mov esi, eax
test esi, esi
jne 0x40a83f
lea eax, [ebp - 0x1054]
push eax
mov ecx, ebx
call fcn.00407ade
mov eax, esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.004147b8
leave
ret 4
Function at 0x40a850
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4272c2
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1064
call fcn.00420cd0
mov eax, dword [0x4362ec]
xor eax, esp
mov dword [esp + 0x1060], eax
push ebx
push esi
push edi
mov eax, dword [0x4362ec]
xor eax, esp
push eax
lea eax, [esp + 0x1078]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi]
xor ebx, ebx
mov dword [eax - 4], ebx
mov eax, dword [edi]
mov esi, ecx
mov byte [edi + 8], bl
mov word [eax], bx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1080], ebx
lea eax, [esp + 0x14]
push eax
call fcn.0040ae56
test al, al
je 0x40a8f1
mov esi, dword [esp + 0x14]
call fcn.00406245
or dword [esp + 0x1080], 0xffffffff
cmp dword [esp + 0x14], ebx
je 0x40a8ea
lea ecx, [esp + 0x14]
call fcn.00407c65
xor eax, eax
jmp 0x40a9a4
mov ecx, esi
call fcn.0040aeca
test al, al
je 0x40a91b
or dword [esp + 0x1080], 0xffffffff
cmp dword [esp + 0x14], ebx
je 0x40a913
lea ecx, [esp + 0x14]
call fcn.00407c65
push 2
pop eax
jmp 0x40a9a4
push 0x1046
lea eax, [esp + 0x2a]
push ebx
push eax
mov word [esp + 0x30], bx
call fcn.00414b10
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push ebx
mov eax, esi
add esi, 4
neg eax
push ebx
push dword [esp + 0x28]
sbb eax, eax
and eax, esi
push dword [eax]
mov dword [esp + 0x38], 0x1048
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [esp + 0x1c]
call fcn.0040abe4
mov esi, eax
cmp esi, ebx
jne 0x40a98b
lea eax, [esp + 0x24]
cmp eax, dword [edi]
je 0x40a98b
push eax
call fcn.0040628c
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
mov edx, edi
call fcn.004099ab
or dword [esp + 0x1080], 0xffffffff
cmp dword [esp + 0x14], ebx
je 0x40a9a2
lea ecx, [esp + 0x14]
call fcn.00407c65
mov eax, esi
mov ecx, dword [esp + 0x1078]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1060]
xor ecx, esp
call fcn.004147b8
mov esp, ebp
pop ebp
ret 4