joyce8/EMBER2024-capa huggingface dataset:
Function at 0x70ff10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x7249fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x710002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00713dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x710002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.0070b6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0071420b
push 0x10
call fcn.007141d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x70ffc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.007001c0
jmp 0x70ffc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.0070fb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x70fff0
mov ecx, edi
call fcn.007002c0
push edi
call fcn.007141c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x710021
inc ebx
cmp ebx, 0x20
jb 0x70ff3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x711250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x725808
push 0x715288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x711329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x711329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.007141d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x711329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x711329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x71132c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00711351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x712000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x712131
push esi
call fcn.00715145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00704080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x712131
push 0
push ebp
call fcn.007043a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00704260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x71208b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.007042f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x712121
push 0x72a918
push edi
call fcn.007133f0
push eax
push ebx
push esi
call fcn.00711f60
push 0x72a8f8
push edi
call fcn.007133f0
push eax
push ebx
push esi
call fcn.00711f60
push 0x72a8d8
push edi
call fcn.007133f0
push eax
push ebx
push esi
call fcn.00711f60
push 0x72a8c0
push edi
call fcn.007133f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00711f60
push 0x72a8a0
push edi
call fcn.007133f0
push eax
push ebx
push esi
call fcn.00711f60
push 0x72a888
push edi
call fcn.007133f0
push eax
push ebx
push esi
call fcn.00711f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x7131b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00713140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00713140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00713140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00713140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x713bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x713c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x72587c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x713c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x713c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x402f30
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x508
push esi
xor esi, esi
mov dword [esp + 4], esi
mov eax, dword [0x432f64]
test eax, eax
jne 0x402ff3
lea eax, [esp + 4]
push eax
call fcn.0040b9d2
mov ecx, dword [esp + 8]
mov eax, dword [0x42a7a0]
add esp, 4
cmp ecx, eax
jb 0x402ff3
push 0x42a5a4
push str.24.03.01
push 0x42a5a4
lea edx, [esp + 0x118]
push str.This_version_of__s____s_is_obsolete_and_needs_updating._Go_to_www.electrasoft.com_or_look_in_the__s_README_to_find_out_where_you_can_get_a_new_version._n_nBe_sure_that_the_time_and_date_on_this_computer_is_correct._n_nWould_you_like_to_download_the_newest_version_now_
push edx
call fcn.0040b8ea
mov ecx, dword [esp + 0x524]
add esp, 0x14
lea eax, [esp + 0x10c]
push 0x24
push 0x42a5a4
push eax
call fcn.0041cb63
cmp eax, 6
jne 0x402fb1
mov esi, 1
push str.getmbc.htm
push 0x42a264
push 0x431980
lea ecx, [esp + 0x14]
push str._s_s_s
push ecx
call fcn.0040b8ea
mov eax, dword [esp + 0x528]
add esp, 0x14
lea edx, [esp + 8]
push 3
push 0x431980
push 0
push edx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, esi
pop esi
add esp, 0x508
ret

Function at 0x403220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x200
push ebx
push ebp
push esi
push edi
xor ebp, ebp
call fcn.00420831
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x218]
and eax, 0xffff
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4032f2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4032f2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
jbe 0x4032f2
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4032f2
mov ecx, dword [esp + 0x21c]
push 0x180
push 0x8302
push ecx
call fcn.0040be8c
mov edi, eax
add esp, 0xc
test edi, edi
jl 0x4032f2
push esi
push ebx
push edi
call fcn.0040bc9c
add esp, 0xc
cmp eax, esi
je 0x4032e4
mov edx, dword [esp + 0x21c]
lea eax, [esp + 0x10]
push edx
push str.Could_not_save__email_addresses_to_send_to__file:_n_s_nCheck_hard_drive.
push eax
call fcn.0040b8ea
add esp, 0xc
lea ecx, [esp + 0x10]
push 0x10
push 0x42a5a4
push ecx
mov ecx, dword [esp + 0x220]
call fcn.0041cb63
jmp 0x4032e9
mov ebp, 1
push edi
call fcn.0040bbbc
add esp, 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x200
ret
Function at 0x404bb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x432ff8]
push esi
push edi
mov esi, 1
xor edi, edi
cmp eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0x104
jne 0x404be9
push 0
push 0x14
call fcn.00402e40
mov eax, dword [0x432ff8]
add esp, 8
cmp eax, esi
je 0x404bd4
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x234]
push eax
push 0x42a264
push ecx
lea edx, [esp + 0x124]
push str._s_s_s
push edx
mov dword [0x432ff8], esi
call fcn.0040b8ea
add esp, 0x14
lea eax, [esp + 8]
lea ecx, [esp + 0x118]
push eax
push 0xf003f
push 0
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404ca4
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x228]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404c66
mov edi, esi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x404ca4
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x404ca4
mov edx, dword [esp + 0x230]
mov edi, dword [esp + 0x22c]
lea eax, [esp + 0x14]
push edx
push eax
push edi
call fcn.004041a0
add esp, 0xc
jmp 0x404cd4
mov eax, dword [esp + 0x228]
test eax, eax
je 0x404cca
mov ecx, dword [esp + 0x230]
mov edi, dword [esp + 0x22c]
push ecx
push eax
push edi
call fcn.004041a0
add esp, 0xc
jmp 0x404cd4
mov edi, dword [esp + 0x22c]
mov byte [edi], 0
or ecx, 0xffffffff
xor eax, eax
mov dword [0x432ff8], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
mov eax, ecx
pop esi
add esp, 0x214
ret
Function at 0x404d00
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
mov eax, dword [0x432ff8]
sub esp, 0x210
push ebx
push ebp
push esi
push edi
mov ebp, 1
xor edi, edi
cmp eax, ebp
jne 0x404d2f
push 0
push 0x14
call fcn.00402e40
mov eax, dword [0x432ff8]
add esp, 8
cmp eax, ebp
je 0x404d1a
mov ebx, dword [esp + 0x228]
mov dword [0x432ff8], ebp
test ebx, ebx
jne 0x404d95
mov eax, dword [esp + 0x230]
lea ecx, [esp + 0x18]
push eax
push 0x42b980
push ecx
call fcn.0040b8ea
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push 0xf003f
push ebx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404e75
mov ecx, dword [esp + 0x224]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x404e68
mov esi, dword [esp + 0x22c]
test esi, esi
jne 0x404dfd
mov ecx, dword [esp + 0x224]
mov edx, dword [esp + 0x230]
push ecx
push 0x42a264
push edx
lea eax, [esp + 0x24]
push str._s_s_s
push eax
call fcn.0040b8ea
add esp, 0x14
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0xf003f
push esi
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404e75
mov eax, dword [esp + 0x10]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x404e6d
mov edx, dword [esp + 0x224]
mov eax, dword [esp + 0x230]
push edx
push 0x42a264
push eax
lea ecx, [esp + 0x24]
push str._s_s_s
push ecx
call fcn.0040b8ea
add esp, 0x14
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404e75
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x10]
not ecx
push ecx
push esi
push ebp
push eax
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, ebp
mov eax, edi
pop edi
pop esi
pop ebp
mov dword [0x432ff8], 0
pop ebx
add esp, 0x210
ret
Function at 0x405770
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x148
mov cx, word [0x42bca8]
mov edx, dword [0x42bc98]
mov eax, dword [str.kaefr]
mov word [esp + 0x14], cx
mov ecx, dword [0x42bca0]
mov dword [esp + 0x38], edx
mov edx, dword [str.Doug_Krahmer]
mov dword [esp + 0x40], ecx
mov ecx, dword [0x42bc90]
mov dword [esp + 0x10], eax
mov eax, dword [0x42bc9c]
mov dword [esp + 0x18], edx
mov dl, byte [0x42bc94]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x42bc7c]
mov dword [esp + 0x3c], eax
mov eax, dword [0x42bc8c]
mov byte [esp + 0x24], dl
mov edx, dword [0x42bc80]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [str.Bill_Krahmer]
lea ecx, [esp + 0x10]
push esi
mov dword [esp + 0x34], edx
push ecx
mov dword [esp + 0x30], eax
mov al, byte [0x42bc84]
push 0x431980
lea edx, [esp + 0x50]
push str._s_s
push edx
mov byte [esp + 0x48], al
call fcn.0040b8ea
lea eax, [esp + 0x58]
push 0
push eax
call fcn.0040c5e5
add esp, 0x18
test eax, eax
jne 0x40592a
lea ecx, [esp + 0x48]
push 0x8000
push ecx
call fcn.0040be8c
mov esi, eax
add esp, 8
test esi, esi
jl 0x40592a
xor edx, edx
push edi
mov dword [esp + 8], edx
lea eax, [esp + 8]
mov dword [esp + 0xc], edx
push 0x10
mov dword [esp + 0x14], edx
push eax
mov word [esp + 0x1c], dx
push esi
mov byte [esp + 0x22], dl
call fcn.0040c95e
push esi
call fcn.0040bbbc
add esp, 0x10
mov dl, 0xa
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 7], 0x20
je 0x4058b0
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 7], 0xd
je 0x4058b0
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 7], dl
jne 0x4058c4
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 7], al
jmp 0x405872
lea ecx, [esp + 8]
push 0x432d90
push ecx
call fcn.00410f90
add esp, 8
test eax, eax
pop edi
jne 0x40592a
lea edx, [esp + 0x3c]
lea eax, [esp + 4]
push edx
push eax
call fcn.00410f90
add esp, 8
test eax, eax
je 0x40591d
lea ecx, [esp + 0x1c]
lea edx, [esp + 4]
push ecx
push edx
call fcn.00410f90
add esp, 8
test eax, eax
je 0x40591d
lea eax, [esp + 0x2c]
lea ecx, [esp + 4]
push eax
push ecx
call fcn.00410f90
add esp, 8
test eax, eax
jne 0x40592a
mov eax, 1
pop esi
add esp, 0x148
ret
xor eax, eax
pop esi
add esp, 0x148
ret
Function at 0x405d10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc4
push ebx
push esi
push edi
mov ecx, 5
mov esi, str.PROCESSOR_ARCHITECTURE
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [str.AMD64]
mov bl, byte [0x42be22]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov si, word [0x42be20]
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x5f]
mov dword [esp + 0x58], edx
mov word [esp + 0x5c], si
mov byte [esp + 0x5e], bl
mov dword [esp + 0x18], edx
rep stosd dword es:[edi], eax
mov cx, word [0x42be18]
mov word [esp + 0x1c], si
stosb byte es:[edi], al
mov eax, dword [str.IA64]
mov word [esp + 0x3c], cx
mov dword [esp + 0x38], eax
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x3e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x1f]
mov byte [esp + 0x1e], bl
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0xf
mov esi, str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
lea edi, [esp + 0x90]
lea edx, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
push edx
push 0x20019
lea eax, [esp + 0x98]
push 0
push eax
push closesocket
mov dword [esp + 0x24], 0x20
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405e30
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x84]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405e25
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x18]
push ecx
push edx
push eax
call fcn.00414710
mov esi, eax
mov ecx, 8
neg esi
sbb esi, esi
xor eax, eax
mov edi, 0x42a328
push 0x1f
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
add esi, 2
push ecx
push 0x42a328
call fcn.0040c860
add esp, 0x18
mov ax, si
pop edi
pop esi
pop ebx
add esp, 0xc4
ret
Function at 0x406b90
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4223c4
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov ecx, 9
mov eax, dword [0x432f74]
push ebp
push esi
push edi
mov esi, str.https:__ssl.electrasoft.com_mbc4.htm
lea edi, [esp + 0xc]
mov ebp, 1
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor edi, edi
cmp eax, edi
je 0x406be0
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
mov dword [0x432f74], 1
call fcn.00406de0
mov ecx, dword [esp + 0x44]
mov dword [0x432f98], eax
cmp ecx, edi
je 0x406cda
mov edx, dword [0x432f64]
cmp edx, edi
je 0x406c24
mov dword [0x432f74], edi
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
cmp eax, 0x10
jae 0x406c48
cmp ecx, 1
jne 0x406c48
mov dword [0x432f74], edi
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
cmp eax, 0x18
jae 0x406c7e
cmp ecx, 1
jne 0x406c7e
mov ecx, dword [0x42a430]
inc ecx
cmp ecx, 0x40
mov dword [0x42a430], ecx
jg 0x406c84
mov dword [0x432f74], edi
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
mov ecx, dword [0x42a430]
cmp eax, 0x28
jae 0x406caf
inc ecx
cmp ecx, 0x20
mov dword [0x42a430], ecx
jg 0x406caf
mov dword [0x432f74], edi
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
cmp eax, 0x2d
jb 0x406cda
inc ecx
cmp ecx, 4
mov dword [0x42a430], ecx
jg 0x406cda
mov dword [0x432f74], edi
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
push edi
push 0x64
mov dword [0x42a430], edi
call fcn.00402e40
push 0x5c
call fcn.0041a7ed
add esp, 0xc
mov dword [esp + 0x44], eax
cmp eax, edi
mov dword [esp + 0x3c], edi
je 0x406d08
push edi
mov ecx, eax
call fcn.00407ee0
jmp 0x406d0a
xor eax, eax
mov dword [0x432fec], eax
mov edx, dword [eax]
or esi, 0xffffffff
mov ecx, eax
mov dword [esp + 0x3c], esi
call dword [edx + 0xb8]
cmp eax, 1
jne 0x406d29
xor ebp, ebp
jmp 0x406da6
push 0x64
call fcn.0041a7ed
add esp, 4
mov dword [esp + 0x44], eax
cmp eax, edi
mov dword [esp + 0x3c], 1
je 0x406d4d
push edi
mov ecx, eax
call fcn.00408bd0
jmp 0x406d4f
xor eax, eax
mov dword [0x432ff0], eax
mov edx, dword [eax]
mov ecx, eax
mov dword [esp + 0x3c], esi
call dword [edx + 0xb8]
cmp dword [0x432f70], 1
je 0x406d87
mov eax, dword [0x431f04]
cmp eax, 2
je 0x406d87
cmp dword [0x432f98], 0x1e
jae 0x406d87
cmp eax, 1
jne 0x406da6
xor ebp, ebp
jmp 0x406da6
mov ecx, dword [0x431b0c]
push 3
push 0x431980
lea eax, [esp + 0x14]
push edi
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 1
push edi
call fcn.00406ad0
mov ecx, dword [0x432ff4]
add esp, 8
push 8
call fcn.0041ddf0
mov ecx, dword [esp + 0x34]
mov dword [0x432f74], edi
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x40abf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x6c
push ebx
push esi
push edi
mov ecx, 5
mov esi, str.SoftwareWinSetStrCmp
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x42dbe0]
mov dx, word [0x42dbe4]
mov eax, dword [str.StrCmpMbc]
mov ebx, dword [esp + 0x7c]
movsw word es:[edi], word [esi]
mov esi, dword [esp + 0x80]
mov dword [esp + 0x18], ecx
mov ecx, esi
mov word [esp + 0x1c], dx
mov edx, ecx
mov dword [esp + 0x14], eax
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x10], 1
and ecx, 3
mov dword [esp + 0xc], esi
rep stosb byte es:[edi], al
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
push eax
push 0x20019
push 0
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40acc7
lea edx, [esp + 0xc]
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x88]
push ecx
lea edx, [esp + 0x20]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40acb9
lea ecx, [esp + 0x38]
push esi
push ecx
push ebx
call fcn.004041a0
add esp, 0xc
mov edx, dword [esp + 0x80]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
pop esi
mov eax, ecx
pop ebx
add esp, 0x6c
ret

Function at 0x40ace0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x2c
mov eax, dword [str.StrCmpMbc]
push ebx
push esi
push edi
mov ecx, 5
mov esi, str.SoftwareWinSetStrCmp
lea edi, [esp + 0x20]
mov dx, word [0x42dbe4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x42dbe0]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
xor ebx, ebx
push eax
push ecx
push ebx
push 0xf003f
mov word [esp + 0x2c], dx
push ebx
push ebx
lea edx, [esp + 0x38]
push ebx
push edx
push closesocket
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40ad79
mov edx, dword [esp + 0x3c]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 1
push eax
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2c
ret
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x40c5e5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40c605
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040e4b1
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40c628
test byte [esp + 8], 2
je 0x40c628
call fcn.0040e524
mov dword [eax], 0xd
call fcn.0040e52d
mov dword [eax], 5
jmp 0x40c601
xor eax, eax
ret