joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427561
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
or dword [ebp - 4], 0xffffffff
cmp dword [0x40dc64], 0
jne 0x4275ee
push 0x400
call fcn.0042d4e5
pop ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x40dc64], eax
and dword [ebp - 8], 0
jmp 0x427597
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x100
jge 0x4275ee
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 8
jmp 0x4275b6
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4275dd
mov eax, dword [ebp - 0xc]
and eax, 1
je 0x4275d3
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, 0xedb88320
mov dword [ebp - 0xc], eax
jmp 0x4275db
mov eax, dword [ebp - 0xc]
shr eax, 1
mov dword [ebp - 0xc], eax
jmp 0x4275af
mov edx, dword [ebp - 0xc]
mov ecx, dword [0x40dc64]
mov eax, dword [ebp - 8]
mov dword [ecx + eax*4], edx
jmp 0x427590
and dword [ebp - 0x14], 0
jmp 0x4275fb
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
jae 0x427637
and dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
movsx eax, byte [eax]
xor eax, dword [ebp - 4]
and eax, 0xff
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [0x40dc64]
mov eax, dword [ebp - 4]
shr eax, 8
and eax, 0xffffff
xor eax, dword [edx + ecx*4]
mov dword [ebp - 4], eax
jmp 0x4275f4
mov eax, dword [ebp - 4]
not eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x428e83
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
pop ebp
ret 4
Function at 0x42c3a2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
or dword [ebp - 0x14], 0xffffffff
and dword [ebp - 0x40], 0
mov dword [ebp - 8], 0x4000
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0
push 0
push 2
call fcn.0042d515
or eax, eax
je 0x42c3dd
jmp 0x42c57e
push dword [ebp - 8]
push 0x40
call dword [0x4090b8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42c3f6
jmp 0x42c57e
mov dword [ebp - 0x3c], 0x74654e57
mov dword [ebp - 0x38], 0x6d756e45
mov dword [ebp - 0x34], 0x6f736552
mov dword [ebp - 0x30], 0x65637275
mov dword [ebp - 0x2c], 0x41
lea eax, [ebp - 0x3c]
push eax
push 0x409e70
call dword [0x409104]
push eax
call dword [0x4090f4]
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
push 0
push dword [ebp - 0xc]
call fcn.0042d4d9
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x42c555
and dword [ebp - 0x44], 0
jmp 0x42c46d
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x14]
jae 0x42c553
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax + 0xc]
and eax, 1
je 0x42c52d
or dword [ebp - 0x154], 0xffffffff
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 0x14]
push 0x409e78
lea eax, [ebp - 0x150]
push eax
call dword [0x409210]
sub esp, 0xfffffff4
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x150]
push eax
call dword [0x4090c4]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0xffffffff
je 0x42c52d
push dword [ebp - 0x154]
call dword [0x409110]
lea eax, [ebp - 0x150]
push eax
call dword [0x409118]
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 0x14]
push 0x409a34
lea eax, [ebp - 0x150]
push eax
call dword [0x409210]
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
call fcn.0042a7ed
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax + 0xc]
and eax, 2
je 0x42c54e
mov eax, dword [ebp - 0x44]
shl eax, 5
add eax, dword [ebp - 0xc]
push eax
call fcn.0042c3a2
jmp 0x42c466
jmp 0x42c560
cmp dword [ebp - 0x40], 0x103
je 0x42c560
jmp 0x42c56d
cmp dword [ebp - 0x40], 0x103
jne 0x42c432
push dword [ebp - 0xc]
call dword [0x4090a0]
push dword [ebp - 4]
call fcn.0042d50f
leave
ret 4
Function at 0x401a60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46ce60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
push 0x3f0
mov ecx, edi
mov dword [esp + 0x3c], 0
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
cmp dword [esp + 0x40], 2
jne 0x401acc
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x147
push eax
call ebp
cmp eax, 0xffffffff
je 0x401acc
lea ecx, [esp + 0xc]
push ecx
push eax
mov ecx, esi
call sub.MFC42.DLL_CComboBox::GetLBText
jmp 0x401add
lea edx, [esp + 0xc]
mov ecx, edi
push edx
push 0x3f0
call sub.MFC42.DLL_CWnd::GetDlgItemTextA
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
push 0x28
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CString::Find
push 0x29
lea ecx, [esp + 0x10]
mov esi, eax
call sub.MFC42.DLL_CString::ReverseFind
cmp esi, 0xffffffff
je 0x401b45
cmp eax, 0xffffffff
je 0x401b45
sub eax, esi
cmp eax, 2
jl 0x401b45
dec eax
inc esi
push eax
lea eax, [esp + 0x44]
push esi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 1
call fcn.00417940
jmp 0x401b53
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0x3ef
mov ecx, edi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov esi, eax
push 0
push 0
push 0x184
mov edx, dword [esi + 0x20]
push edx
call ebp
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, dword [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 3
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x401bd9
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov edx, dword [esp + 0x14]
push 0x10
lea ecx, [esp + 0x18]
mov edi, eax
call dword [edx + 0x40]
test eax, eax
jne 0x401bd5
lea eax, [esp + 0x40]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
mov ecx, dword [esi + 0x20]
push eax
push 0
push 0x180
push ecx
call ebp
lea ecx, [esp + 0x40]
call fcn.00417940
test edi, edi
jne 0x401b92
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 1
call fcn.00417a90
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
call fcn.00417940
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.00417940
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x410f90
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x4d9af4]
sub esp, 0x100
push ebx
mov ebx, dword [esp + 0x108]
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
test eax, eax
jle 0x411026
mov eax, dword [0x4d9af8]
mov esi, ebx
mov eax, dword [eax + ebp*4]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x410fdc
test cl, cl
je 0x410fd8
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x410fdc
add eax, 2
add esi, 2
test cl, cl
jne 0x410fb8
xor eax, eax
jmp 0x410fe1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x411014
mov eax, dword [0x4d9afc]
or ecx, 0xffffffff
mov edi, dword [eax + ebp*4]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x118]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 1
mov eax, dword [0x4d9af4]
inc ebp
cmp ebp, eax
jl 0x410fae
test edi, edi
jne 0x411132
mov esi, dword [sym.imp.MSVCRT.dll_getenv]
push ebx
call esi
add esp, 4
test eax, eax
jne 0x411108
mov esi, str.HT_SYSTEM
mov eax, ebx
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x411069
test cl, cl
je 0x411065
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x411069
add eax, 2
add esi, 2
test cl, cl
jne 0x411041
xor eax, eax
jmp 0x41106e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4110e3
lea eax, [esp + 0x10]
push 0x100
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x41109d
mov byte [eax], 0
jmp 0x4110b2
mov dx, word [0x486c6c]
mov al, byte [0x486c6e]
mov word [esp + 0x10], dx
mov byte [esp + 0x12], al
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x118]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
mov eax, dword [esp + 0x118]
mov cx, word [0x486c6c]
pop edi
pop esi
mov word [eax], cx
mov dl, byte [0x486c6e]
pop ebp
mov byte [eax + 2], dl
pop ebx
add esp, 0x100
ret
push ebx
call esi
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x118]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
Function at 0x416b10
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x48784c]
sub esp, 0xc8
test eax, eax
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fprintf]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fclose]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fopen]
je 0x416ba8
push str.LM_DEBUG_FILE
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov dword [0x4dc47c], eax
test eax, eax
jne 0x416b55
mov eax, dword [str.lm_debug.txt]
mov dword [0x4dc47c], eax
mov ecx, dword [0x48784c]
test ecx, ecx
je 0x416ba8
test eax, eax
je 0x416ba8
push 0x487be4
push eax
call esi
add esp, 8
mov dword [0x4dc260], eax
test eax, eax
jne 0x416ba2
mov eax, dword [sym.imp.MSVCRT.dll__iob]
mov ecx, dword [0x4dc47c]
add eax, 0x20
push ecx
push str.VALSYS_:_Cannot_open_debug_file__s_n
push eax
mov dword [0x4dc260], eax
call ebx
add esp, 0xc
mov dword [0x4dc47c], 0
jmp 0x416ba8
push eax
call ebp
add esp, 4
mov edx, dword [esp + 0xdc]
mov eax, dword [esp + 0xd8]
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [0x48784c], 0
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [0x4dc47c]
add esp, 0xc
test eax, eax
je 0x416be9
push 0x487be4
push eax
call esi
add esp, 8
mov dword [0x4dc260], eax
mov eax, dword [0x4dc260]
lea edx, [esp + 0xc]
push edx
push str.VALSYS_:__s
push eax
call ebx
mov ecx, dword [0x4dc260]
push ecx
call dword [sym.imp.MSVCRT.dll_fflush]
mov eax, dword [0x4dc47c]
add esp, 0x10
test eax, eax
je 0x416c20
mov edx, dword [0x4dc260]
push edx
call ebp
add esp, 4
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret
Function at 0x416f18
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], edx
mov edx, eax
lea edi, [ebp - 0x28]
mov dword [ebp - 0xc], edx
add eax, 7
and eax, 0xfffffff8
cmp eax, 0x1000
jle 0x416f57
sub edi, 0x1000
sub eax, 0x1000
test dword [edi], eax
cmp eax, 0x1000
jg 0x416f43
sub edi, eax
test dword [edi], eax
mov esp, edi
mov dword [ebp - 0x10], esp
mov ecx, edx
mov esi, dword [ebp + 8]
call sub.DFORMD.dll__OtsMove
mov eax, dword [ebp - 0xc]
mov ecx, esp
mov dword [ebp - 0xc], eax
add eax, 7
and eax, 0xfffffff8
cmp eax, 0x1000
jle 0x416f97
sub ecx, 0x1000
sub eax, 0x1000
test dword [ecx], eax
cmp eax, 0x1000
jg 0x416f83
sub ecx, eax
test dword [ecx], eax
mov esp, ecx
mov edi, ecx
mov dword [ebp - 0x14], esp
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov eax, edx
call sub.DFORMD.dll__OtsMoveMinimum
mov eax, 0x20
call sub.DFORMD.dll__OtsFill
mov edx, dword [ebp - 0xc]
push edx
mov esi, dword [ebp - 0x14]
push esi
call sub.DFORMD.dll_for_len_trim
cmp eax, 0x104
jle 0x416fdf
lea esp, [ebp - 0x28]
lea ebx, [0x46ec70]
sub esp, 4
push ebx
jmp 0x417115
test eax, eax
lea esp, [ebp - 0x28]
jge 0x416fe8
xor eax, eax
lea edx, [0x4dc498]
lea ebx, [0x4dc498]
mov dword [ebp - 0xc], eax
mov esi, eax
sub esp, 4
push esi
mov esi, 2
push dword [ebp + 8]
push edx
call fcn.004171fc
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
add esp, 4
xor ebx, ebx
test eax, eax
mov dword [ebp - 0x10], eax
jge 0x417022
mov ebx, 2
mov edx, dword [ebp - 8]
test edx, edx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edx
jle 0x417108
mov ecx, 0
mov esi, ecx
mov dword [ebp - 0x14], ecx
add esi, dword [ebp + 0x10]
mov cl, byte [esi]
mov byte [0x4dc494], cl
mov cl, byte [0x4dc494]
mov byte [ebp - 0x18], cl
test dword [ebp - 0x30], eax
lea esp, [ebp - 0x30]
mov byte [ebp - 0x30], cl
movzx eax, byte [ebp - 0x30]
mov edi, esp
lea esi, [ebp - 0x18]
cmp eax, 0x77
je 0x4170d2
cmp eax, 0x57
je 0x4170d2
cmp eax, 0x78
je 0x4170a1
cmp eax, 0x58
je 0x4170a1
cmp eax, 0x72
je 0x4170f0
cmp eax, 0x52
je 0x4170f0
cmp eax, 0x20
mov edx, 0x16
jne 0x41709c
mov edx, dword [ebp - 4]
mov dword [ebp - 4], edx
jmp 0x4170f0
xor ecx, ecx
mov ebx, dword [ebp - 0xc]
cmp dword [ebp - 4], 0
push ebx
sete cl
push dword [ebp + 8]
mov edi, ecx
neg edi
call fcn.00417260
not eax
and edi, eax
mov edx, dword [ebp - 4]
mov ebx, edi
and ebx, 1
je 0x4170cd
mov edx, 0xd
mov dword [ebp - 4], edx
jmp 0x4170f0
mov ecx, dword [ebp - 0x10]
mov eax, 0xd
and ecx, 1
jg 0x4170e2
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 4]
cmp dword [ebp - 4], 0
jne 0x4170ed
mov edi, eax
mov dword [ebp - 4], edi
lea esp, [ebp - 0x28]
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 8]
inc ebx
dec esi
test esi, esi
mov ecx, ebx
mov dword [ebp - 8], esi
jg 0x417038
cmp dword [ebp - 4], 0
lea eax, [ebp - 4]
je 0x417120
sub esp, 4
push eax
call fcn.00417375
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42ce28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
add eax, 0x80000002
mov dword [ebp - 8], eax
cmp dword [ebp + 0x14], 0
je 0x42ce4c
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042df6a
add esp, 8
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x18]
push edx
push 1
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042b4ab
add esp, 4
cmp dword [ebp - 0xc], 0
jne 0x42cf5e
lea eax, [ebp - 0x10]
push eax
push 0
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42cf4d
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x530], 0
je 0x42cedc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x530]
push eax
call fcn.0042b4ab
add esp, 4
mov ecx, dword [ebp - 0x10]
add ecx, 1
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042b3d0
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x530], eax
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x530]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x14], 0
je 0x42cf2b
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
cmp dword [ebp - 0xc], 0
jne 0x42cf4d
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x530]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x42cfc4
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x42cfc4
cmp dword [ebp - 0xc], 2
jne 0x42cf6b
mov eax, 1
jmp 0x42cfc4
cmp dword [ebp - 0xc], 5
jne 0x42cfbf
cmp dword [ebp + 8], 0
je 0x42cfbf
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
je 0x42cf91
xor ecx, ecx
test ecx, ecx
je 0x42cf91
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x1c], eax
jmp 0x42cf98
mov dword [ebp - 0x1c], 0xffffffc1
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0x14], edx
push 0
push 0xff
push 0
push 0
push 0x193
push 0xffffffffffffffc1
mov eax, dword [ebp + 8]
push eax
call fcn.0042afe0
add esp, 0x1c
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x42d070
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
add eax, 0x80000002
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042df6a
add esp, 8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0x20006
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x42d14e
push 0
call fcn.0042d1dc
add esp, 4
push 1
call fcn.0042d1dc
add esp, 4
lea eax, [ebp - 8]
push eax
push 0x20006
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x42d14e
mov eax, dword [ebp - 0xc]
push eax
call fcn.0042b4ab
add esp, 4
cmp dword [ebp + 8], 0
je 0x42d144
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 0
je 0x42d116
xor edx, edx
test edx, edx
je 0x42d116
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x14], ecx
jmp 0x42d11d
mov dword [ebp - 0x14], 0xffffffc1
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x14], eax
push 0
push 0xff
push 0
push 0
push 0x1de
push 0xffffffffffffffc1
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042afe0
add esp, 0x1c
mov eax, 1
jmp 0x42d1d8
mov edx, dword [ebp - 0xc]
push edx
call fcn.0042b4ab
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x42d176
cmp dword [ebp + 0x14], 0
jne 0x42d186
mov eax, dword [ebp + 0x10]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
test eax, eax
jne 0x42d186
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x42d1cc
cmp dword [ebp + 0x14], 0
je 0x42d194
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
jmp 0x42d1a6
mov ecx, dword [ebp + 0x10]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 1
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x14]
neg ecx
sbb ecx, ecx
and ecx, 2
add ecx, 1
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x42e07a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
pop ebp
ret

Function at 0x4312a7
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push esi
push edi
mov byte [ebp - 0x404], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x403]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x80c], 0
mov dword [ebp - 0x808], 0
mov byte [ebp - 0x804], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x803]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 4], 0x400
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x50]
push ecx
push 0x48b840
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
push 0x20007
push 0
push 0x48b84c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x431399
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 0
je 0x43135a
xor edx, edx
test edx, edx
je 0x43135a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x810], ecx
jmp 0x431364
mov dword [ebp - 0x810], 0xffffff86
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x810]
mov dword [edx + 0x14], eax
push 0
push 0xff
push 0
push 0
push 0x267
push 0xffffffffffffff86
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042afe0
add esp, 0x1c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
jmp 0x4314bc
push 0
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x804]
push ecx
mov edx, dword [ebp - 0x808]
mov dword [ebp - 0x814], edx
mov eax, dword [ebp - 0x814]
push eax
mov ecx, dword [ebp - 0x80c]
push ecx
mov edx, dword [ebp - 0x808]
add edx, 1
mov dword [ebp - 0x808], edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x4314ad
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x804], 0
lea ecx, [ebp - 0x404]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
lea edx, [ebp - 0x404]
push edx
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4314a1
mov ecx, dword [ebp + 0xc]
add ecx, 4
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
mov edx, dword [ebp + 0xc]
add edx, 4
push edx
lea eax, [ebp - 0x804]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov esi, eax
mov ecx, dword [ebp + 0xc]
add ecx, 4
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
sub esi, eax
lea edx, [ebp + esi - 0x804]
push edx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4314a1
lea eax, [ebp - 0x804]
push eax
mov ecx, dword [ebp - 0x80c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.LM_BORROW
mov edx, dword [ebp - 0x80c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004314c2
add esp, 8
mov dword [ebp - 4], 0x400
jmp 0x431399
mov edx, dword [ebp - 0x80c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret