joyce8/EMBER2024-capa huggingface dataset:
Function at 0x511350
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov esi, 0x30
mov edi, 0x56605c
mov ecx, dword [esp]
lea edx, [esp + 0xc]
movzx ebx, byte [edi]
movzx ebx, byte [eax + ebx - 1]
xor bl, byte [ecx]
mov byte [edx], bl
inc edx
inc ecx
inc edi
dec esi
jne 0x51136f
mov esi, 1
mov edx, 0x566164
mov ecx, esi
dec ecx
mov eax, ecx
add eax, eax
lea eax, [eax + eax*2]
add ecx, ecx
add ecx, ecx
movzx ebx, byte [esp + eax + 0xc]
mov edi, ebx
add edi, edi
movzx ebx, byte [esp + eax + 0x11]
add edi, ebx
movzx ebx, byte [esp + eax + 0xd]
add ebx, ebx
add ebx, ebx
add ebx, ebx
movzx ebp, byte [esp + eax + 0xe]
add ebp, ebp
add ebp, ebp
add ebx, ebp
movzx ebp, byte [esp + eax + 0xf]
add ebp, ebp
add ebx, ebp
movzx eax, byte [esp + eax + 0x10]
add ebx, eax
mov dword [esp + 8], ebx
mov eax, 1
mov ebx, eax
dec ebx
je 0x5113e8
dec ebx
je 0x51140a
dec ebx
je 0x51142c
dec ebx
je 0x51144d
jmp 0x511467
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 8
movzx ebx, bl
shr ebx, 3
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x511467
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 4
movzx ebx, bl
shr ebx, 2
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x511467
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 2
movzx ebx, bl
shr ebx, 1
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x511467
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 1
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
inc eax
cmp eax, 5
jne 0x5113d8
inc esi
add edx, 0x40
cmp esi, 9
jne 0x51138b
mov esi, 0x20
mov eax, 0x56608c
mov edx, dword [esp + 4]
movzx ecx, byte [eax]
movzx ecx, byte [esp + ecx + 0x3b]
mov byte [edx], cl
inc edx
inc eax
dec esi
jne 0x51148c
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5114c8
Capabilities:
Encrypt data using des

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], ecx
mov esi, eax
movzx eax, dl
movzx ebx, byte [eax + 0x566113]
test bl, bl
jbe 0x5114f9
lea eax, [esi + 0x3e0]
call fcn.005114a4
lea eax, [esi + 0x3fc]
call fcn.005114a4
dec bl
jne 0x5114df
mov cl, 0x30
mov edi, 0x5660e4
mov eax, dword [esp]
movzx edx, byte [edi]
cmp dl, 0x1c
ja 0x51151a
movzx edx, dl
movzx edx, byte [esi + edx + 0x3df]
mov byte [eax], dl
jmp 0x511527
movzx edx, dl
movzx edx, byte [esi + edx + 0x3df]
mov byte [eax], dl
inc eax
inc edi
dec cl
jne 0x511503
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x511534
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbdc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov bl, 1
lea esi, [ebp - 0x421]
mov eax, edi
mov edx, ebx
call fcn.005112e8
mov byte [esi], al
inc ebx
inc esi
cmp bl, 0x41
jne 0x511550
mov bl, 0x1c
mov esi, str.91__
lea edi, [ebp - 0x41]
movzx edx, byte [esi]
mov eax, dword [ebp - 8]
call fcn.005112e8
mov byte [edi], al
movzx edx, byte [esi + 0x1c]
mov eax, dword [ebp - 8]
call fcn.005112e8
mov byte [edi + 0x1c], al
inc edi
inc esi
dec bl
jne 0x51156c
mov bl, 1
lea esi, [ebp - 0x3a1]
mov ecx, esi
lea eax, [ebp - 0x421]
mov edx, ebx
call fcn.005114c8
inc ebx
add esi, 0x30
cmp bl, 0x11
jne 0x511596
mov bl, 1
mov eax, 0x565fdc
lea edx, [ebp - 0xa1]
cmp bl, 0x20
ja 0x5115cf
movzx ecx, byte [eax]
movzx ecx, byte [ebp + ecx - 0x422]
mov byte [edx], cl
jmp 0x5115dc
movzx ecx, byte [eax]
movzx ecx, byte [ebp + ecx - 0x422]
mov byte [edx], cl
inc ebx
inc edx
inc eax
cmp bl, 0x41
jne 0x5115bb
mov byte [ebp - 9], 1
lea esi, [ebp - 0x3a1]
cmp byte [ebp + 8], 0
je 0x511606
lea ecx, [ebp - 0x61]
mov edx, esi
lea eax, [ebp - 0x81]
call fcn.00511350
jmp 0x51162d
movzx eax, byte [ebp - 9]
mov edx, 0x11
sub edx, eax
mov eax, edx
add eax, eax
lea eax, [eax + eax*2]
lea edx, [ebp + eax*8 - 0x3d1]
lea ecx, [ebp - 0x61]
lea eax, [ebp - 0x81]
call fcn.00511350
mov bl, 0x20
lea eax, [ebp - 0xa1]
movzx edx, byte [eax]
xor byte [eax + 0x40], dl
inc eax
dec bl
jne 0x511635
push esi
lea esi, [ebp - 0x81]
lea edi, [ebp - 0xa1]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
lea esi, [ebp - 0x61]
lea edi, [ebp - 0x81]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
inc byte [ebp - 9]
add esi, 0x30
cmp byte [ebp - 9], 0x11
jne 0x5115ee
mov bl, 0x40
mov esi, 0x56601c
lea eax, [ebp - 0x3e1]
movzx edx, byte [esi]
cmp dl, 0x20
ja 0x51169b
movzx edx, dl
movzx edx, byte [ebp + edx - 0x82]
mov byte [eax], dl
jmp 0x5116a8
movzx edx, dl
movzx edx, byte [ebp + edx - 0xc2]
mov byte [eax], dl
inc eax
inc esi
dec bl
jne 0x511684
mov bl, 1
lea esi, [ebp - 0x3e1]
movzx ecx, byte [esi]
mov eax, dword [ebp - 4]
mov edx, ebx
call fcn.00511310
inc ebx
inc esi
cmp bl, 0x41
jne 0x5116b6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x512214
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, ecx
mov dword [esp], edx
mov esi, eax
movzx edx, byte [esi]
mov byte [esp + 4], dl
shl edx, 7
and dl, 0xff
movzx eax, byte [esi + 1]
movzx ecx, al
shr ecx, 1
or dl, cl
mov byte [esp + 5], dl
shl eax, 6
and al, 0xff
movzx edx, byte [esi + 2]
movzx ecx, dl
shr ecx, 2
or al, cl
mov byte [esp + 6], al
shl edx, 5
and dl, 0xff
movzx eax, byte [esi + 3]
movzx ecx, al
shr ecx, 3
or dl, cl
mov byte [esp + 7], dl
shl eax, 4
and al, 0xff
movzx edx, byte [esi + 4]
shr edx, 4
or al, dl
mov byte [esp + 8], al
movzx eax, byte [esi + 4]
add eax, eax
add eax, eax
add eax, eax
and al, 0xff
movzx edx, byte [esi + 5]
shr edx, 5
or al, dl
mov byte [esp + 9], al
movzx eax, byte [esi + 5]
add eax, eax
add eax, eax
and al, 0xff
movzx edx, byte [esi + 6]
shr edx, 6
or al, dl
mov byte [esp + 0xa], al
movzx eax, byte [esi + 6]
add eax, eax
and al, 0xff
mov byte [esp + 0xb], al
mov ebp, 8
lea eax, [esp + 4]
mov edx, 1
xor esi, esi
mov ecx, edx
movzx ebx, byte [eax]
shl ebx, cl
mov ecx, ebx
xor ecx, esi
and ecx, 1
mov esi, ecx
inc edx
cmp edx, 8
jne 0x5122c5
movzx edx, byte [eax]
and dl, 0xfe
mov ecx, esi
or dl, cl
mov byte [eax], dl
inc eax
dec ebp
jne 0x5122c0
mov eax, edi
xor ecx, ecx
mov edx, 8
call fcn.00405d10
push 1
mov eax, edi
call fcn.00405ca4
mov edx, eax
lea ecx, [esp + 8]
mov eax, dword [esp + 4]
call fcn.00511534
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x519094
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov esi, eax
mov byte [esp], 0
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
mov edi, 1
jmp 0x5190b5
inc edi
mov eax, esi
call fcn.00405830
cmp edi, eax
jg 0x5190c7
cmp byte [esi + edi - 1], 0x20
je 0x5190b4
mov eax, esi
test eax, eax
je 0x5190d2
sub eax, 4
mov eax, dword [eax]
cmp eax, edi
jl 0x519194
cmp byte [esi + edi - 1], 0x2e
je 0x5191b8
jmp 0x519194
cmp byte [esi + edi - 1], 0x2e
jne 0x51913c
inc dword [esp + 4]
cmp dword [esp + 4], 3
jg 0x5191b8
cmp dword [esp + 8], 0xff
jg 0x5191b8
xor eax, eax
mov dword [esp + 8], eax
mov ebp, esi
test ebp, ebp
je 0x519120
sub ebp, 4
mov ebp, dword [ebp]
cmp ebp, edi
jg 0x519128
mov bl, 1
jmp 0x519136
movzx eax, byte [esi + edi]
add al, 0xd0
sub al, 0xa
setb bl
xor bl, 1
test bl, bl
jne 0x5191b8
jmp 0x519193
movzx eax, byte [esi + edi - 1]
add al, 0xd0
sub al, 0xa
jae 0x519161
mov eax, dword [esp + 8]
add eax, eax
lea eax, [eax + eax*4]
movzx edx, byte [esi + edi - 1]
add eax, edx
sub eax, 0x30
mov dword [esp + 8], eax
jmp 0x519193
inc edi
mov eax, esi
call fcn.00405830
cmp edi, eax
jg 0x519173
cmp byte [esi + edi - 1], 0x20
je 0x519160
mov dword [esp + 0xc], esi
cmp dword [esp + 0xc], 0
je 0x51918b
mov eax, dword [esp + 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [esp + 0xc], eax
cmp edi, dword [esp + 0xc]
jle 0x5191b8
jmp 0x5191a3
inc edi
mov eax, esi
call fcn.00405830
cmp edi, eax
jle 0x5190ea
cmp dword [esp + 4], 3
jne 0x5191b8
cmp dword [esp + 8], 0xff
jg 0x5191b8
mov byte [esp], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x54a12c
Capabilities:
Encode data using base64
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
add eax, eax
add eax, eax
mov ecx, 3
cdq
idiv ecx
mov edx, eax
add edx, 4
mov ecx, esi
xor eax, eax
call fcn.00405da8
cmp byte [ebp - 1], 0
jne 0x54a18c
mov eax, esi
call fcn.00405ca4
movzx edx, byte [ebp - 0xc]
dec edx
and dl, 0x3f
add dl, 0x21
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
add eax, 2
mov ecx, 3
cdq
idiv ecx
lea eax, [eax + eax*2]
mov dword [ebp - 0xc], eax
mov edi, 2
xor eax, eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x54a1a6
sub al, 2
jb 0x54a1ad
jmp 0x54a1b2
mov ebx, 2
jmp 0x54a1b2
mov ebx, 1
mov eax, esi
call fcn.00405ca4
mov byte [eax + ebx - 1], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jge 0x54a296
test edi, edi
jle 0x54a20e
mov eax, esi
call fcn.00405ca4
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shl eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
and eax, edx
mov ecx, edi
shr eax, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
sub edi, 6
inc ebx
mov eax, esi
call fcn.00405ca4
mov byte [eax + ebx - 1], 0
jmp 0x54a28a
test edi, edi
jge 0x54a254
mov eax, edi
cdq
xor eax, edx
sub eax, edx
mov edi, eax
mov eax, esi
call fcn.00405ca4
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shr eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
and al, byte [edx + ecx]
mov ecx, edi
shl al, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
mov eax, 8
sub eax, edi
mov edi, eax
inc dword [ebp - 0x10]
jmp 0x54a28a
mov eax, esi
call fcn.00405ca4
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
and dl, 0x3f
mov ecx, dword [esi]
movzx ecx, byte [ecx + ebx - 1]
or dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
inc dword [ebp - 0x10]
mov eax, esi
call fcn.00405ca4
mov byte [eax + ebx - 1], 0
mov edi, 2
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jl 0x54a1ca
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x54a2a7
sub al, 2
jb 0x54a2e1
jmp 0x54a329
cmp edi, 2
jne 0x54a2ad
dec ebx
mov eax, ebx
sub eax, 2
jl 0x54a329
inc eax
mov dword [ebp - 0x14], eax
mov edi, 2
mov eax, esi
call fcn.00405ca4
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x56652c]
movzx edx, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x54a2bd
jmp 0x54a329
cmp edi, 2
jne 0x54a2e7
dec ebx
test ebx, ebx
jle 0x54a324
mov dword [ebp - 0x14], ebx
mov edi, 1
mov eax, esi
call fcn.00405ca4
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x566530]
movzx edx, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x54a2f3
jmp 0x54a324
inc ebx
mov eax, esi
call fcn.00405ca4
mov byte [eax + ebx - 1], 0x3d
test bl, 3
jne 0x54a317
mov eax, esi
xor ecx, ecx
mov edx, ebx
call fcn.00405d10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x54d340
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], eax
mov eax, 0xedb88320
xor esi, esi
mov ebx, dword [esp]
mov edx, esi
mov ecx, 0xfffffff8
mov edi, edx
and edi, 1
dec edi
jne 0x54d366
shr edx, 1
xor edx, eax
jmp 0x54d368
shr edx, 1
inc ecx
jne 0x54d358
mov dword [ebx], edx
inc esi
add ebx, 4
cmp esi, 0x100
jne 0x54d351
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x54fc8c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x54fd0c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
mov ecx, 0x54fd24
mov edx, 0x59
call fcn.004139c8
push dword [ebp - 4]
push 0x54fd38
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
mov ecx, 0x54fd48
mov edx, 0x5a
call fcn.004139c8
push dword [ebp - 8]
mov eax, ebx
mov edx, 3
call fcn.00406830
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54fd13
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406270
ret
Function at 0x4016e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x407ab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x68]
test eax, eax
jne 0x40178a
push esi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401771
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x401771
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x68], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004074ce
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4017a0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret 8
Function at 0x402de0
Capabilities:
Create http request
Create thread
Terminate thread

Disassembly:
sub esp, 0x28
push esi
xor esi, esi
push edi
push esi
push esi
mov edi, ecx
push esi
push esi
push str.Microsoft_Internet_Explorer
mov dword [edi + 0xe4], esi
mov dword [edi + 0xe8], esi
mov dword [edi + 0xec], esi
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, esi
mov dword [edi + 0xe8], eax
je 0x402f5c
push str.Sensapi.DLL
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
je 0x402f45
push str.IsNetworkAlive
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x402f45
lea ecx, [esp + 0x10]
push ecx
call eax
cmp eax, esi
je 0x402f45
push ebx
push edi
push esi
push 0x402f70
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov ebx, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
push 0x1f4
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x402ef5
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push ebp
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [esp + 0x10], 0xa
jge 0x402eee
push 1
push 0
push 0
lea edx, [esp + 0x28]
push 0
push edx
call esi
test eax, eax
je 0x402ece
lea eax, [esp + 0x1c]
push eax
call ebx
lea ecx, [esp + 0x1c]
push ecx
call ebp
push 1
push 0
push 0
lea edx, [esp + 0x28]
push 0
push edx
call esi
test eax, eax
jne 0x402ead
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc ecx
push 0x1f4
push eax
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x402e93
mov ebx, dword [esp + 0x14]
xor esi, esi
pop ebp
cmp ebx, esi
je 0x402f05
push 0x4b0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [edi + 0xec]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, esi
je 0x402f1e
push eax
call ebx
mov dword [edi + 0xec], esi
mov eax, dword [edi + 0xe8]
cmp eax, esi
je 0x402f31
push eax
call ebx
mov dword [edi + 0xe8], esi
mov ecx, dword [edi + 0xe4]
xor eax, eax
cmp ecx, esi
pop ebx
pop edi
pop esi
setne al
add esp, 0x28
ret
mov eax, dword [edi + 0xe8]
cmp eax, esi
je 0x402f5c
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [edi + 0xe8], esi
pop edi
xor eax, eax
pop esi
add esp, 0x28
ret
Function at 0x4045e0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x407fe0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov esi, ecx
push 0x40c988
lea ecx, [esp + 0x10]
mov dword [esp + 0x4c], 2
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x58]
mov ebx, 3
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov byte [esp + 0x50], bl
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x54], 4
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
mov byte [esp + 0x54], bl
call fcn.00404020
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 5
call fcn.00407534
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], bl
call fcn.004074ce
mov ecx, dword [esp + 0xc]
push 0x40c988
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x40469e
lea ecx, [esp + 0xc]
mov byte [esp + 0x48], 2
call fcn.004074ce
mov byte [esp + 0x48], 1
jmp 0x40472f
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push 0
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404686
mov edi, dword [esp + 0x58]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x20]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, ebx
mov ebx, 1
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x24]
push ecx
push ebx
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40476d
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov byte [esp + 0x48], 2
call fcn.004074ce
mov byte [esp + 0x48], bl
lea ecx, [esp + 0x50]
call fcn.004074ce
lea ecx, [esp + 0x54]
mov byte [esp + 0x48], 0
call fcn.004074ce
lea ecx, [esp + 0x58]
mov dword [esp + 0x48], 0xffffffff
call fcn.004074ce
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x40
ret 0xc
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov byte [esp + 0x48], 2
call fcn.004074ce
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], bl
call fcn.004074ce
lea ecx, [esp + 0x54]
mov byte [esp + 0x48], 0
call fcn.004074ce
lea ecx, [esp + 0x58]
mov dword [esp + 0x48], 0xffffffff
call fcn.004074ce
mov ecx, dword [esp + 0x40]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x40
ret 0xc
Function at 0x4047d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x408003
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x410
push ebx
push ebp
push esi
push edi
push 0x40c988
lea ecx, [esp + 0x14]
mov dword [esp + 0x42c], 0
mov dword [esp + 0x1c], 0x400
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x430]
lea ecx, [esp + 0x10]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
push str._s_s
push ecx
mov byte [esp + 0x438], 1
mov dword [esp + 0x2c], 1
call sub.MFC42.DLL_CString::Format_1
add esp, 0x10
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeLower
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x14]
push edx
push 1
push 0
push eax
push 0x80000002
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40489d
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push str.Path
push ecx
call ebp
mov edx, dword [esp + 0x14]
mov esi, eax
push edx
call ebx
test esi, esi
je 0x4048ee
push str..exe
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 1
push 0
push eax
push 0x80000002
call edi
test eax, eax
jne 0x404937
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push str.Path
push ecx
call ebp
mov edx, dword [esp + 0x14]
mov esi, eax
push edx
call ebx
test esi, esi
jne 0x404937
mov ecx, dword [esp + 0x434]
lea eax, [esp + 0x20]
push eax
push 0x40c6bc
push ecx
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x428], 0
call fcn.004074ce
lea ecx, [esp + 0x430]
mov dword [esp + 0x428], 0xffffffff
call fcn.004074ce
mov eax, 1
jmp 0x404961
lea ecx, [esp + 0x10]
mov byte [esp + 0x428], 0
call fcn.004074ce
lea ecx, [esp + 0x430]
mov dword [esp + 0x428], 0xffffffff
call fcn.004074ce
xor eax, eax
mov ecx, dword [esp + 0x420]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x41c
ret 8
Function at 0x404980
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x408023
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x410
push ebx
push ebp
push esi
push 0x40c988
lea ecx, [esp + 0x10]
mov dword [esp + 0x428], 0
mov dword [esp + 0x18], 0x400
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x42c]
lea ecx, [esp + 0xc]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
push str._s_s
push ecx
mov byte [esp + 0x434], 1
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CString::Format_1
add esp, 0x10
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::MakeLower
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x10]
push edx
push 1
push 0
push eax
push 0x80000002
call esi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x404a4b
lea ecx, [esp + 0x14]
push edi
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push 0
push ecx
call ebp
mov edx, dword [esp + 0x14]
mov edi, eax
push edx
call ebx
test edi, edi
pop edi
je 0x404a99
push str..exe
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push 1
push 0
push eax
push 0x80000002
call esi
test eax, eax
jne 0x404ae2
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push 0
push ecx
call ebp
mov edx, dword [esp + 0x10]
mov esi, eax
push edx
call ebx
test esi, esi
jne 0x404ae2
mov ecx, dword [esp + 0x430]
lea eax, [esp + 0x1c]
push eax
push 0x40c6bc
push ecx
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
lea ecx, [esp + 0xc]
mov byte [esp + 0x424], 0
call fcn.004074ce
lea ecx, [esp + 0x42c]
mov dword [esp + 0x424], 0xffffffff
call fcn.004074ce
mov eax, 1
jmp 0x404b0c
lea ecx, [esp + 0xc]
mov byte [esp + 0x424], 0
call fcn.004074ce
lea ecx, [esp + 0x42c]
mov dword [esp + 0x424], 0xffffffff
call fcn.004074ce
xor eax, eax
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x41c
ret 8