joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4076cb
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x408], ebx
mov dword [ebp - 0x420], ebx
cmp byte [0x40c6b5], bl
jne 0x40770c
call fcn.00407596
push edi
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
mov edi, 0xfde9
push edi
mov dword [ebp - 0x40c], eax
call esi
mov dword [ebp - 0x410], eax
cmp eax, 0x400
jbe 0x40775d
push eax
call fcn.00408be4
pop ecx
mov dword [ebp - 0x40c], eax
cmp eax, ebx
jne 0x40775d
mov dword [ebp - 0x408], 0x8007000e
jmp 0x407827
push ebx
push ebx
push dword [ebp - 0x410]
push dword [ebp - 0x40c]
push dword [ebp + 0xc]
push dword [ebp - 0x41c]
push ebx
push edi
call esi
mov esi, dword [ebp - 0x414]
cmp dword [esi + 0x10], 0xffffffff
je 0x407827
call fcn.00406625
test eax, eax
jne 0x4077a0
mov dword [ebp - 0x408], 0x80240fff
jmp 0x407827
push 2
push ebx
push ebx
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4077c1
call fcn.00407e2b
mov dword [ebp - 0x408], eax
jmp 0x407817
push ebx
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x410]
push dword [ebp - 0x40c]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4077b4
test dword [esi + 0xc], 8
je 0x4077f4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [0x40cadc], ebx
je 0x407817
test byte [esi + 0xc], 0x14
mov eax, 0x200000
je 0x40780c
mov eax, 0x2d00000
cmp edi, eax
jbe 0x407817
mov ecx, esi
call fcn.00406866
mov eax, dword [0x40c6ac]
cmp eax, ebx
je 0x407827
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea eax, [ebp - 0x404]
pop edi
cmp dword [ebp - 0x40c], eax
je 0x40786a
push dword [ebp - 0x40c]
call fcn.00408c32
mov dword [esp], 0x402e00
push 2
lea eax, [ebp - 0x418]
push ebx
push eax
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x414], 1
call fcn.0040752c
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x408]
pop esi
xor ecx, ebp
pop ebx
call fcn.00405ae0
leave
ret 8
Function at 0x407885
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0x18]
xor esi, esi
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x1c]
xor ebx, ebx
inc esi
push edi
mov edi, ecx
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x40c], ebx
cmp dword [ebp + 0xc], esi
jne 0x4078db
test byte [edi + 0xc], 0x10
jne 0x4078ed
mov dword [ebp - 0x408], esi
jmp 0x407a18
cmp dword [ebp + 0xc], 2
jne 0x4078ed
test byte [edi + 0xc], 4
jne 0x4078ed
cmp dword [ebp + 8], 2
ja 0x4078d0
test byte [edi + 0xc], 3
je 0x407a2f
mov eax, dword [ebp + 8]
cmp eax, dword [edi + 8]
ja 0x407a2f
xor eax, eax
push 0x3fe
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push ebx
push eax
call sub.msvcrt.dll_memset
and dword [ebp - 0x414], ebx
add esp, 0xc
and dword [ebp - 0x410], 0
mov esi, 0x200
lea ebx, [ebp - 0x404]
push dword [ebp - 0x424]
lea eax, [ebp - 0x414]
push dword [ebp - 0x420]
mov ecx, edi
push dword [ebp - 0x418]
push eax
lea eax, [ebp - 0x408]
push eax
push esi
push ebx
push dword [ebp + 8]
push dword [ebp + 0x10]
call fcn.00407092
mov dword [ebp - 0x408], eax
test eax, eax
jge 0x4079b1
cmp eax, 0x8007007a
jne 0x4079df
and dword [ebp - 0x408], 0
cmp dword [ebp - 0x410], 0
jne 0x4079b1
push 2
push 0x800
call fcn.00408c56
test eax, eax
je 0x4079b1
mov ebx, eax
xor eax, eax
inc eax
mov esi, 0x800
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x410], eax
jmp 0x407939
test dword [edi + 0xc], 1
je 0x4079c1
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test dword [edi + 0xc], 2
je 0x4079df
sub esi, dword [ebp - 0x414]
mov ecx, edi
push esi
push ebx
call fcn.004076cb
mov dword [ebp - 0x408], eax
xor esi, esi
inc esi
cmp dword [ebp - 0x40c], 0
je 0x407a18
push ebx
call fcn.00408c32
and dword [ebp - 0x41c], 0
mov dword [esp], 0x402e90
push 2
lea eax, [ebp - 0x41c]
push 0
push eax
mov dword [ebp - 0x418], esi
call fcn.0040752c
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x408]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405ae0
leave
ret 0x18
mov dword [ebp - 0x408], esi
jmp 0x4079e2
Function at 0x407e45
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
test ebx, ebx
jne 0x407e62
mov eax, 0x80070057
jmp 0x407ee5
push edi
push 9
xor eax, eax
pop ecx
lea edi, [ebp - 0x2c]
mov word [ebx], ax
rep stosd dword es:[edi], eax
call fcn.00407d4b
pop edi
test eax, eax
je 0x407e86
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x407edc
push 0x40222c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x407e9e
call fcn.00407e2b
mov esi, eax
jmp 0x407ee3
push 0x403124
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x407ed6
call fcn.00407e2b
and dword [ebp - 8], 0
mov esi, eax
push esi
xor eax, eax
inc eax
push 0x4030a8
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push 0
push eax
call fcn.0040752c
add esp, 0x14
jmp 0x407ee3
lea ecx, [ebp - 0x2c]
push ecx
call eax
mov ax, word [ebp - 0x2c]
mov word [ebx], ax
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x408241
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push edi
mov dword [ebp - 0x210], esi
call fcn.00407d83
test eax, eax
je 0x408274
push esi
call fcn.00408217
jmp 0x40831a
lea eax, [ebp - 0x210]
push eax
call fcn.00407fa2
mov edi, eax
cmp edi, esi
jl 0x40831c
push 0x40336c
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00409d65
mov edi, eax
cmp edi, esi
jl 0x408307
push ebx
push 0x44
pop ebx
push ebx
lea eax, [ebp - 0x264]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x264]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x264], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4082f0
call fcn.00407e2b
mov edi, eax
jmp 0x408306
push dword [ebp - 0x220]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 0x21c]
call ebx
pop ebx
push dword [ebp - 0x210]
call fcn.00408029
cmp edi, esi
jl 0x40831c
cmp eax, esi
jge 0x40831c
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00405ae0
leave
ret
Function at 0x4089f2
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
push 0x403be4
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp + 0x10]
push 0x403b58
mov dword [ebp - 0x440], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
xor edi, edi
push eax
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x430], 0x20019
call fcn.0040a3e4
test eax, eax
jl 0x408ba5
lea eax, [ebp - 0x430]
push eax
push 1
call fcn.00408eb3
cmp eax, edi
jge 0x408a91
push eax
push 0x403dd0
push 2
lea eax, [ebp - 0x438]
push edi
push eax
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x434], 1
call fcn.0040752c
add esp, 0x14
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x430]
lea eax, [ebp - 0x414]
push edi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x408ba5
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x428], edi
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x424]
push eax
push edi
push edi
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x420]
mov dword [ebp - 0x424], edi
push dword [ebp - 0x41c]
mov dword [ebp - 0x42c], 4
mov dword [ebp - 0x444], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, edi
jne 0x408b56
cmp dword [ebp - 0x42c], 4
jne 0x408b5d
push dword [ebp - 0x424]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x408b5d
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x418], eax
jae 0x408ba5
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x424]
mov edx, dword [ebp - 0x440]
mov dword [edx + eax*4], ecx
inc eax
mov dword [ebp - 0x418], eax
cmp eax, dword [ebp + 8]
jae 0x408ba5
jmp 0x408b8c
cmp eax, 0x103
je 0x408ba5
lea eax, [ebp - 0x434]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0040898c
test eax, eax
jl 0x408b8c
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x408b92
inc dword [ebp - 0x420]
inc dword [ebp - 0x428]
cmp dword [ebp - 0x428], 0x64
jl 0x408ac5
push dword [ebp - 0x41c]
call fcn.00409e55
mov eax, dword [ebp + 8]
pop edi
pop esi
cmp dword [ebp - 0x418], eax
jbe 0x408bc3
mov dword [ebp - 0x418], eax
mov ecx, dword [ebp - 0x43c]
mov eax, dword [ebp - 0x418]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405ae0
leave
ret 0xc
Function at 0x408f0f
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x20]
mov dword [ebp - 4], 2
call fcn.00408eb3
mov edi, eax
xor esi, esi
cmp edi, esi
jl 0x408f91
push esi
lea eax, [ebp + 0x20]
push eax
push esi
push dword [ebp - 4]
push dword [ebp + 0x24]
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x408f60
jle 0x408f5c
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x408f91
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
je 0x408f88
jle 0x408f86
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push dword [ebp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 0x20

Function at 0x409175
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x14]
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
cmp ebx, edi
jne 0x4091a2
mov eax, 0x80070057
jmp 0x409276
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x18]
mov dword [ebx], edi
call fcn.00408eb3
cmp eax, edi
mov dword [ebp + 0x14], eax
jl 0x40925a
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x409246
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 8]
call esi
cmp eax, edi
jne 0x409246
cmp dword [ebp - 4], edi
je 0x409252
cmp dword [ebp - 0xc], 1
je 0x409204
mov dword [ebp + 0x14], 0x8007000d
jmp 0x40925a
add dword [ebp - 4], 2
push dword [ebp - 4]
call fcn.00408be4
pop ecx
mov dword [ebx], eax
cmp eax, edi
jne 0x409220
mov dword [ebp + 0x14], 0x8007000e
jmp 0x40925a
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 8]
call esi
cmp eax, edi
jne 0x409246
mov eax, dword [ebp - 4]
mov ecx, dword [ebx]
shr eax, 1
xor edx, edx
mov word [ecx + eax*2 - 2], dx
jmp 0x409255
jle 0x409252
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0x14], eax
cmp dword [ebp + 0x14], edi
jge 0x409264
push dword [ebx]
call fcn.00408c32
pop ecx
mov dword [ebx], edi
pop esi
cmp dword [ebp - 8], edi
je 0x409273
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
pop edi
pop ebx
leave
ret 0x14
Function at 0x40957e
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x4095cb
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp + 8]
push eax
push 8
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4095de
cmp dword [ebp + 8], 2
je 0x4095c8
lea eax, [ebp - 4]
push eax
push 2
push 1
push edi
push 8
push esi
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x4095cb
jmp 0x4095de
mov dword [ebp - 4], esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4095e5
call fcn.00407e2b
mov edi, eax
cmp dword [ebp - 4], esi
je 0x4095f3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret 0xc

Function at 0x409838
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
inc ebx
jmp 0x409886
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x409863
cmp eax, 5
jne 0x4098a2
mov ecx, dword [ebp + 0x10]
inc ecx
cmp ebx, ecx
jae 0x40993e
push dword [ebp + 0x14]
call fcn.00409803
mov dword [ebp - 4], eax
cmp eax, 0x800704c7
je 0x40994f
inc ebx
push edi
call esi
cmp eax, 0xffffffff
je 0x409853
test al, 0x10
jne 0x40994f
mov dword [ebp - 4], 0x80070057
jmp 0x40994f
cmp eax, 3
je 0x4098b0
cmp eax, 2
jne 0x40993e
mov eax, dword [ebp + 0xc]
lea esi, [edi + eax*2 - 2]
jmp 0x4098c6
cmp word [esi], 0x5c
je 0x4098ca
test eax, eax
jbe 0x4098cc
dec esi
dec esi
dec eax
cmp esi, edi
ja 0x4098b9
test eax, eax
je 0x409896
cmp esi, edi
je 0x409896
cmp eax, 2
jbe 0x4098f6
push dword [ebp + 0x14]
xor ecx, ecx
push dword [ebp + 0x10]
mov word [esi], cx
push eax
push edi
call fcn.00409838
push 0x5c
pop ecx
mov dword [ebp - 4], eax
mov word [esi], cx
test eax, eax
jl 0x40994f
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ebx, ebx
inc ebx
jmp 0x40992c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x409911
cmp eax, 5
jne 0x409937
mov ecx, dword [ebp + 0x10]
inc ecx
cmp ebx, ecx
jae 0x40993e
push dword [ebp + 0x14]
call fcn.00409803
mov dword [ebp - 4], eax
cmp eax, 0x800704c7
je 0x40994f
inc ebx
push 0
push edi
call esi
test eax, eax
je 0x409901
jmp 0x40994f
cmp eax, 0xb7
je 0x40994f
test eax, eax
jle 0x40994c
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40995e
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [ebp + 8], edi
je 0x409a6e
push dword [ebp + 8]
call fcn.004097be
test eax, eax
je 0x409a6e
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 4], edi
push edi
jmp 0x4099c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x4099a0
cmp eax, 5
jne 0x4099d6
mov ecx, dword [ebp + 0xc]
inc ecx
cmp dword [ebp - 4], ecx
jae 0x409a5e
push dword [ebp + 0x10]
call fcn.00409803
mov ebx, eax
cmp ebx, 0x800704c7
je 0x409a73
inc dword [ebp - 4]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x409990
jmp 0x409a73
cmp eax, 0xb7
je 0x409a73
cmp eax, 3
jne 0x409a5e
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4099ec
sub eax, edx
sar eax, 1
mov esi, eax
lea eax, [esi + esi + 2]
push eax
call fcn.00408be4
mov edi, eax
pop ecx
test edi, edi
jne 0x409a14
mov ebx, 0x8007000e
jmp 0x409a73
push dword [ebp + 8]
lea eax, [esi + 1]
push eax
push edi
call fcn.004069a9
movzx ebx, word [edi + 6]
xor eax, eax
push edi
mov word [edi + 6], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409a49
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x409a49
mov ebx, 0x80070003
jmp 0x409a73
push dword [ebp + 0x10]
mov word [edi + 6], bx
push dword [ebp + 0xc]
push esi
push edi
call fcn.00409838
mov ebx, eax
jmp 0x409a73
test eax, eax
jle 0x409a5a
and eax, 0xffff
or eax, 0x80070000
jmp 0x409a5a
mov ebx, 0x80070057
push edi
call fcn.00408c32
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x409d65
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x10]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [eax + esi + 1]
cmp ecx, dword [ebp + 0xc]
jb 0x409d97
mov ebx, 0x8007007a
jmp 0x409dc1
test eax, eax
jne 0x409da4
call fcn.00407e2b
mov ebx, eax
jmp 0x409dc1
push 0x5c
pop ecx
lea eax, [edi + eax*2]
mov word [eax], cx
lea ecx, [esi + esi + 2]
push ecx
push dword [ebp + 0x10]
add eax, 2
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
Function at 0x40a588
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
cmp edi, esi
jne 0x40a5a1
cmp ebx, esi
jne 0x40a5a5
cmp ebx, esi
jge 0x40a5d6
mov dword [ebp - 4], 0x80070057
test edi, edi
je 0x40a5b9
test ebx, ebx
jle 0x40a5b9
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40a5c2
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
pop esi
test eax, eax
je 0x40a5cf
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
leave
ret 0x14
lea eax, [ebx + ebx]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 8]
test eax, eax
je 0x40a60a
jle 0x40a605
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x40a619
test edi, edi
jne 0x40a61e
test ecx, ecx
jbe 0x40a61e
mov dword [ebp - 4], 0x800700ea
cmp dword [ebp - 4], esi
jl 0x40a646
mov edx, dword [ebp + 8]
xor eax, eax
cmp dword [ebp + 0x10], 2
sete al
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x10], edx
je 0x40a649
cmp edx, 1
jne 0x40a63d
cmp dword [ebp + 0x10], 2
je 0x40a649
mov dword [ebp - 4], 0x8007065d
jmp 0x40a649
mov edx, dword [ebp + 8]
cmp dword [ebp - 4], 0x800700ea
jne 0x40a666
xor eax, eax
shr ecx, 1
cmp edx, 7
sete al
inc eax
add ecx, eax
mov esi, ecx
jmp 0x40a5ac
cmp dword [ebp - 4], esi
jl 0x40a5ac
shr ecx, 1
mov esi, ecx
je 0x40a67d
cmp word [edi + esi*2 - 2], 0
je 0x40a67e
inc esi
cmp edx, 7
jne 0x40a691
cmp esi, 2
jl 0x40a690
cmp word [edi + esi*2 - 4], 0
je 0x40a691
inc esi
cmp esi, ebx
jle 0x40a6a1
mov dword [ebp - 4], 0x800700ea
jmp 0x40a5ac
dec esi
xor ecx, ecx
lea eax, [edi + esi*2]
mov word [eax], cx
cmp edx, 7
jne 0x40a5b9
mov word [eax - 2], cx
jmp 0x40a5b9
Function at 0x40a6c1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov ebx, 0x80070057
cmp dword [ebp + 0x14], esi
je 0x40a74b
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 4], esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x40a711
cmp eax, 0xea
je 0x40a711
cmp eax, esi
jle 0x40a745
and eax, 0xffff
or eax, 0x80070000
jmp 0x40a745
mov ebx, dword [ebp - 4]
shr ebx, 1
inc ebx
inc ebx
lea eax, [ebx + ebx]
push eax
call fcn.00408be4
mov edi, eax
pop ecx
cmp edi, esi
jne 0x40a72f
mov ebx, 0x8007000e
jmp 0x40a74b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040a588
mov ebx, eax
cmp ebx, esi
jge 0x40a754
push edi
call fcn.00408c32
pop ecx
xor edi, edi
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x40a75d
mov dword [eax], edi
mov eax, dword [ebp + 0x18]
cmp eax, esi
je 0x40a769
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
cmp eax, esi
je 0x40a775
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x18

Function at 0x40a9fb
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov ebx, eax
mov edi, ecx
mov esi, 0x80070057
je 0x40aab9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esi + esi + 2]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x40aa3c
mov esi, 0x8007000e
jmp 0x40aaa9
inc esi
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x40aa55
call fcn.00407e2b
mov esi, eax
jmp 0x40aaa9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x40aa97
cmp eax, 2
je 0x40aa97
cmp eax, 3
je 0x40aa93
cmp eax, 4
je 0x40aa7f
jbe 0x40aa78
cmp eax, 6
jbe 0x40aa97
mov esi, 0x80070057
jmp 0x40aaa9
neg edi
sbb edi, edi
and edi, 0x7ff8fffb
add edi, 0x80070005
mov esi, edi
jmp 0x40aaa9
xor esi, esi
jmp 0x40aaa9
neg ebx
sbb ebx, ebx
and ebx, 0x7ff8fffb
add ebx, 0x80070005
mov esi, ebx
cmp dword [ebp - 4], 0
je 0x40aab9
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4