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

Disassembly:
sub esp, 0x89c
push ebx
mov ebx, dword [esp + 0x8a4]
push ebp
push esi
push edi
push ebx
call fcn.00402ce0
add esp, 4
test al, al
je 0x40207b
mov edi, 0x4183c5
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 2
mov ecx, ebp
push eax
push eax
and ecx, 3
lea eax, [esp + 0x28]
push 0xc0000000
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402007
test ebx, ebx
mov ebp, ebx
je 0x401fc8
push 0x5c
push ebp
call fcn.00407320
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x401fc8
mov edi, 0x4183c5
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x460]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x464]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
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, 0x4183c5
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, ebp
sub eax, ebx
not ecx
lea edx, [esp + eax + 0x464]
dec ecx
lea eax, [esp + 0x464]
push eax
mov byte [edx + ecx], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x401fc1
lea ecx, [esp + 0x460]
push str.Dirs
push ecx
mov ecx, 0x411ed8
call fcn.00403b7c
inc ebp
jne 0x401f0e
push 0
push 0
push 2
push 0
push 0
lea edx, [esp + 0x28]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402007
lea eax, [esp + 0x14]
push eax
call fcn.00401d80
add esp, 4
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x89c
ret
lea ecx, [esp + 0x14]
push str.Files
push ecx
mov ecx, 0x411ed8
call fcn.00403b7c
mov eax, dword [esp + 0x8b8]
mov ecx, dword [esp + 0x8b4]
lea edx, [esp + 0x10]
push 0
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40205b
lea edx, [esp + 0x14]
push edx
call fcn.00401d80
add esp, 4
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x89c
ret
mov eax, dword [esp + 0x8c0]
mov ecx, dword [esp + 0x8bc]
push eax
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x89c
ret
Function at 0x402850
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x411fe4]
test eax, eax
je 0x402860
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x411ed4]
push esi
xor esi, esi
dec eax
cmp eax, 5
push edi
ja case.default.0x40286f
jmp dword [eax*4 + 0x4029b0]
mov esi, 0x6c
jmp case.default.0x40286f
mov cl, byte [0x4183c4]
neg cl
sbb ecx, ecx
and ecx, 0xfffffff5
add ecx, 0x70
mov esi, ecx
jmp case.default.0x40286f
mov dl, byte [0x4183c4]
neg dl
sbb edx, edx
and edx, 2
add edx, 0x73
mov esi, edx
jmp case.default.0x40286f
mov al, byte [0x4183c4]
neg al
sbb eax, eax
and al, 0xfe
add eax, 0x74
mov esi, eax
jmp case.default.0x40286f
mov cl, byte [0x4183c4]
neg cl
sbb ecx, ecx
and ecx, 0xfffffffb
add ecx, 0x6f
mov esi, ecx
jmp case.default.0x40286f
mov dl, byte [0x4183c4]
push 0xffffffffffffffff
neg dl
sbb edx, edx
add edx, 0x6e
mov esi, edx
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, dword [0x411fe0]
mov ecx, dword [0x411fdc]
push 0
push 0x402110
and esi, 0xffff
push eax
push esi
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov edx, dword [0x411fe0]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push edx
mov dword [0x411fe4], eax
call esi
mov eax, dword [0x411fe4]
push 5
push eax
call esi
mov eax, dword [0x411ed4]
cmp eax, 4
je 0x40293b
cmp eax, 3
je 0x40293b
cmp eax, 2
je 0x40293b
xor eax, eax
jmp 0x402940
mov eax, 5
mov ecx, dword [0x411fe0]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push 0x3ef
push ecx
call edi
push eax
call esi
mov eax, dword [0x411ed4]
cmp eax, 4
je 0x402975
cmp eax, 2
je 0x402975
cmp eax, 3
je 0x402975
cmp eax, 1
je 0x402975
xor eax, eax
jmp 0x40297a
mov eax, 5
mov edx, dword [0x411fe0]
push eax
push 0x3ee
push edx
call edi
push eax
call esi
cmp dword [0x411ed4], 6
jne 0x4029ab
mov eax, dword [0x411fe0]
push 0x40f79c
push 2
push eax
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
ret

Function at 0x402d00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
and eax, 0xffff
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov ecx, dword [0x411fdc]
push str.RARFILE
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x402d6a
mov edx, dword [0x411fdc]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x402d6a
mov eax, dword [0x411fdc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi], eax
pop edi
pop esi
pop ebx
ret

Function at 0x402d70
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
lea eax, [esp]
mov dword [esp], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 8]
shr eax, 0x14
add esp, 0x20
ret
Function at 0x403024
Capabilities:
Set registry value

Disassembly:
push ebx
sub esp, 0x10
mov ebx, ecx
mov edx, 0x80000002
mov dword [esp], edx
mov dword [esp + 4], 1
lea eax, [esp]
push eax
push 0xf003f
push 0
push 0x41a418
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 8]
lea eax, [esp + 4]
push eax
xor ecx, ecx
push edx
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push 0x41a424
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea edx, [esp + 8]
lea eax, [esp + 4]
push eax
xor ecx, ecx
push edx
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push 0x41a42c
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea edx, [esp + 0xc]
movzx eax, byte [ebx + 4]
mov dword [esp + 0xc], eax
mov eax, 4
push eax
push edx
push eax
push 0
push 0x41a438
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, 4
push edx
lea eax, [ebx + 0x7e0]
push eax
push edx
push 0
push 0x41a440
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0xc]
movzx eax, byte [ebx + 0x3ed]
mov dword [esp + 0xc], eax
mov eax, 4
push eax
push edx
push eax
push 0
push 0x41a450
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0xc]
movzx eax, byte [ebx + 0x3ee]
mov dword [esp + 0xc], eax
mov eax, 4
push eax
push edx
push eax
push 0
push 0x41a460
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, 4
push edx
lea eax, [ebx + 0x3f0]
push eax
push edx
push 0
push 0x41a474
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0xc]
movzx eax, byte [ebx + 0x3f4]
mov dword [esp + 0xc], eax
mov eax, 4
push eax
push edx
push eax
push 0
push 0x41a484
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0xc]
movzx eax, byte [ebx + 0x3f5]
mov dword [esp + 0xc], eax
mov eax, 4
push eax
push edx
push eax
push 0
push 0x41a498
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x3e8
lea eax, [ebx + 0x3f6]
push eax
push 1
push 0
push 0x41a4ac
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x578
add ebx, 0x7e4
push ebx
push 3
push 0
push 0x41a4c0
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x10
pop ebx
ret
Function at 0x403310
Capabilities:
Get installed programs
Query or enumerate registry value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x3f0
mov ebx, ecx
mov dword [esp], 0x80000002
mov esi, section..data1
lea edi, [esp + 4]
mov ecx, 0xfa
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x400]
lea edi, [esp + 4]
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov al, byte [edx]
add edx, 1
mov byte [edi], al
add edi, 1
test al, al
jne 0x403349
lea edx, [esp + 4]
lea eax, [esp]
push eax
push 0xf003f
push 0
push edx
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403432
lea eax, [esp + 4]
lea edi, [esp + 0x3ec]
xor edx, edx
mov byte [esp + 4], dl
push edi
push eax
push edx
push edx
push 0x41a514
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 4]
test al, al
je 0x40340c
lea edi, [esp + 4]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x4033c8
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x4033bc
lea edx, [esp + 4]
lea eax, [esp + eax + 3]
cmp eax, edx
jbe 0x4033e9
mov dl, byte [eax]
cmp dl, 0x5c
je 0x4033e9
mov byte [eax], 0
lea edx, [esp + 4]
add eax, 0xffffffff
cmp eax, edx
ja 0x4033d4
lea edi, [esp + 4]
add ebx, 5
mov esi, ebx
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x4033f2
add esp, 0x3f0
pop ebx
pop esi
pop edi
ret 8
mov edi, dword [esp + 0x404]
add ebx, 5
mov esi, ebx
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x403418
add esp, 0x3f0
pop ebx
pop esi
pop edi
ret 8
mov edi, dword [esp + 0x404]
add ebx, 5
mov esi, ebx
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x40343e
add esp, 0x3f0
pop ebx
pop esi
pop edi
ret 8
Function at 0x403458
Capabilities:
Set registry value

Disassembly:
push edi
push esi
sub esp, 0x3fc
mov edi, dword [esp + 0x408]
mov dword [esp + 4], 1
mov edx, 0x80000002
mov dword [esp], edx
lea eax, [esp]
push eax
push 0xf003f
push 0
push 0x41a418
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 8]
lea eax, [esp + 4]
push eax
xor ecx, ecx
push edx
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push 0x41a524
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea edx, [esp + 0xc]
lea eax, [esp + 4]
push eax
xor ecx, ecx
push edx
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push 0x41a52c
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea edx, [esp + 0x10]
lea eax, [esp + 4]
push eax
xor ecx, ecx
push edx
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push 0x41a538
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea esi, [esp + 0x14]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x4034fe
lea edi, [esp + 0x14]
mov edx, 0x41a56c
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov al, byte [edx]
add edx, 1
mov byte [edi], al
add edi, 1
test al, al
jne 0x403521
lea edi, [esp + 0x14]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x403549
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x40353d
lea edx, [esp + 0x14]
add eax, 1
push eax
push edx
push 1
push 0
push 0x41a580
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 3
push 0x41a590
push 1
push 0
push 0x41a588
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x47
push 0x41a5a0
push 1
push 0
push 0x41a594
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x21
push 0x41a614
push 1
push 0
push 0x41a600
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 8]
lea eax, [esp + 4]
push eax
xor ecx, ecx
push edx
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push 0x41a638
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, 1
push eax
push 0x41a670
push eax
push 0
push 0x41a660
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x3fc
pop esi
pop edi
ret 4
Function at 0x4036b0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x5f8
mov ebx, dword [esp + 0x60c]
mov edi, ebx
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x4036d9
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x4036cd
lea ebp, [esp]
lea esi, [esp]
mov ecx, eax
add ebp, ecx
mov edi, ebx
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x4036e5
lea edx, [esp]
cmp ebp, edx
je 0x403823
mov al, byte [ebp]
cmp al, 0x5c
je 0x403712
lea eax, [esp]
add ebp, 0xffffffff
cmp ebp, eax
jne 0x4036fe
mov al, byte [ebp]
cmp al, 0x5c
jne 0x40371a
mov byte [ebp], 0
lea eax, [esp + 0x3e8]
push eax
push 0x40e188
push 1
push 0
push 0x40e198
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40382b
mov eax, dword [esp + 0x3e8]
push ebx
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
mov edx, dword [esp + 0x3e8]
lea eax, [esp]
push eax
mov ecx, dword [edx]
push edx
call dword [ecx + 0x24]
mov eax, dword [esp + 0x3e8]
push dword [esp + 0x614]
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [esp + 0x3e8]
push dword [esp + 0x618]
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
mov eax, dword [esp + 0x61c]
test eax, eax
je 0x4037a6
mov edx, dword [esp + 0x3e8]
mov eax, dword [esp + 0x61c]
push eax
mov ecx, dword [edx]
push ebx
push edx
call dword [ecx + 0x44]
mov edx, dword [esp + 0x3e8]
lea eax, [esp + 0x3ec]
push eax
mov ecx, dword [edx]
push 0x40e1a8
push edx
call dword [ecx]
test eax, eax
jl 0x403836
lea eax, [esp + 0x3f0]
push 0x104
push eax
xor edx, edx
push 0xffffffffffffffff
push dword [esp + 0x61c]
push edx
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [esp + 0x3ec]
lea eax, [esp + 0x3f0]
push 1
mov ecx, dword [edx]
push eax
push edx
call dword [ecx + 0x18]
mov ebx, eax
mov edx, dword [esp + 0x3ec]
push edx
mov ecx, dword [edx]
call dword [ecx + 8]
mov edx, dword [esp + 0x3e8]
push edx
mov ecx, dword [edx]
call dword [ecx + 8]
mov eax, ebx
add esp, 0x5f8
pop ebx
pop ebp
pop esi
pop edi
ret
mov al, byte [esp + ecx]
jmp 0x403712
add esp, 0x5f8
pop ebx
pop ebp
pop esi
pop edi
ret
add esp, 0x5f8
pop ebx
pop ebp
pop esi
pop edi
ret

Function at 0x403844
Capabilities:
Get common file path

Disassembly:
push esi
mov al, byte [esp + 0xc]
test al, al
je 0x403854
mov edx, 0x10
jmp 0x403859
mov edx, 2
lea eax, [esp]
push eax
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push dword [esp + 8]
push dword [esp + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
pop ecx
ret
Function at 0x403878
Capabilities:
Set registry value

Disassembly:
push edi
push ebx
sub esp, 0xc
mov ebx, edx
mov edi, ecx
mov dword [esp + 4], 1
mov edx, 0x80000002
mov dword [esp], edx
lea eax, [esp]
push eax
push 0xf003f
push 0
push 0x41a674
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 8]
lea eax, [esp + 4]
push eax
xor ecx, ecx
push edx
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push 0x41a404
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x4038e2
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x4038d6
add eax, 1
push eax
push edi
push 1
push 0
push 0x41a6ac
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, ebx
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x403912
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x403906
add eax, 1
push eax
push ebx
push 1
push 0
push 0x41a514
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
pop ebx
pop edi
ret

Function at 0x403a20
Capabilities:
Get common file path

Disassembly:
push edi
push esi
push ebx
sub esp, 0xec
mov ebx, dword [esp + 0xfc]
mov esi, 0x4182a0
mov edi, ebx
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x403a37
mov edi, ebx
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x403a5d
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x403a51
mov dl, byte [0x4183c4]
mov byte [eax + 0x41829e], 0
test dl, dl
je 0x403a75
mov edx, 7
jmp 0x403a7a
mov edx, 1
lea eax, [esp]
push 0xc8
push eax
push edx
push 0
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0xe8]
xor edx, edx
mov dword [esp + 0xc8], edx
mov dword [esp + 0xe8], edx
push eax
push 0x11
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [esp + 0xe8]
mov dword [esp + 0xd0], 0x4182a0
xor ecx, ecx
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd8], 5
lea edx, [esp]
mov dword [esp + 0xdc], 0x40399c
mov dword [esp + 0xd4], edx
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xe4], ecx
lea esi, [esp + 0xc8]
push esi
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
mov esi, eax
test esi, esi
je 0x403b19
push ebx
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push ebx
call fcn.00403950
pop ecx
xor eax, eax
test esi, esi
setne al
add esp, 0xec
pop ebx
pop esi
pop edi
ret

Function at 0x403b34
Capabilities:
Delete file

Disassembly:
push edi
push esi
push ebp
mov ebp, ecx
mov edi, dword [esp + 0x10]
mov esi, ebp
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x403b3f
mov edx, 0x41a6c4
mov edi, ebp
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov al, byte [edx]
add edx, 1
mov byte [edi], al
add edi, 1
test al, al
jne 0x403b60
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ebp
pop esi
pop edi
ret 4
Function at 0x403b7c
Capabilities:
Read .ini file

Disassembly:
push edi
push esi
sub esp, 0x14
mov edi, ecx
mov esi, dword [esp + 0x24]
lea eax, [esp]
push edi
push 0x14
push eax
push 0x41a6dc
push 0x41a6d4
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp]
push eax
call fcn.00407467
lea edx, [esp + 4]
push 0xa
push edx
add eax, 1
push eax
call fcn.0040c43a
add esp, 0x10
lea eax, [esp]
push edi
push eax
push 0x41a6d4
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [esp]
push edi
push dword [esp + 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0x14
pop esi
pop edi
ret 8
Function at 0x4068d4
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x18
mov ebp, dword [esp + 0x2c]
mov edx, dword [ebp]
mov ebx, dword [ebp + 4]
xor ebx, dword [0x412704]
mov eax, dword [0x412700]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor esi, dword [0x412708]
xor edi, dword [0x41270c]
xor edx, eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], esi
mov dword [esp + 4], ebx
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
and esi, 3
mov edx, ebp
rol edx, 0xb
add edx, dword [esp + 0x10]
xor edx, dword [esi*4 + 0x412700]
movzx ecx, dl
movzx ecx, byte [ecx + 0x412600]
mov eax, edx
shr eax, 8
movzx edi, al
movzx eax, byte [edi + 0x412600]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x412600]
shl eax, 0x10
or ecx, eax
shr edx, 0x18
movzx eax, byte [edx + 0x412600]
shl eax, 0x18
or ecx, eax
xor ecx, dword [esp + 8]
mov eax, dword [esp + 0x10]
rol eax, 0x11
xor eax, ebp
add eax, dword [esi*4 + 0x412700]
movzx edx, al
mov ebx, eax
shr ebx, 8
movzx esi, byte [edx + 0x412600]
movzx edx, bl
movzx edx, byte [edx + 0x412600]
shl edx, 8
or esi, edx
mov edx, eax
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0x412600]
shl edx, 0x10
or esi, edx
shr eax, 0x18
movzx eax, byte [eax + 0x412600]
shl eax, 0x18
or esi, eax
mov eax, dword [esp + 0x10]
xor esi, dword [esp + 4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 4], ebp
mov dword [esp + 0x10], ecx
add eax, 1
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], eax
cmp eax, 0x20
jl 0x40691d
mov ebx, ebp
mov edx, dword [esp + 8]
mov eax, dword [esp]
mov ebp, dword [esp + 0x2c]
xor ecx, eax
mov dword [ebp], ecx
mov eax, dword [0x412704]
push ebp
xor esi, eax
mov dword [ebp + 4], esi
mov esi, dword [0x412708]
xor edx, esi
mov dword [ebp + 8], edx
mov edx, dword [0x41270c]
xor ebx, edx
mov dword [ebp + 0xc], ebx
call fcn.00406bc4
add esp, 0x1c
pop ebx
pop ebp
pop esi
pop edi
ret
Function at 0x406f78
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x10
mov edi, dword [esp + 0x24]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x406f99
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x406f8d
push eax
push edi
push 0xffffffffffffffff
call fcn.00407114
add esp, 0xc
mov word [0x4121f8], ax
shr eax, 0x10
mov word [0x4121fa], ax
xor ebp, ebp
xor eax, eax
mov word [0x4121fe], ax
mov word [0x4121fc], ax
xor ebx, ebx
mov byte [0x4121f0], al
mov byte [0x4121ec], al
mov byte [0x4121e8], al
movzx esi, byte [edi]
xor edx, edx
mov dword [esp], edx
xor edx, edx
xor ecx, ecx
test esi, esi
je 0x40706f
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov edx, dword [esp + 4]
mov ebx, dword [esp + 8]
add edx, esi
movzx ecx, dl
mov dword [esp + 4], ecx
xor ebx, esi
mov byte [0x4121e8], cl
mov ecx, dword [esi*4 + 0x412200]
movzx eax, bl
mov dword [esp + 8], eax
mov byte [0x4121ec], al
mov eax, dword [esp]
add eax, esi
movzx edx, al
lea eax, [edx + edx]
sar edx, 7
or eax, edx
mov edx, dword [esp + 0xc]
movzx eax, al
mov dword [esp], eax
mov byte [0x4121f0], al
mov eax, esi
xor eax, ecx
xor edx, eax
movzx eax, dx
mov dword [esp + 0xc], eax
mov word [0x4121fc], ax
shr ecx, 0x10
add esi, ecx
add ebp, esi
movzx ebp, bp
mov word [0x4121fe], bp
movzx esi, byte [edi + 1]
add edi, 1
test esi, esi
jne 0x406ff5
add esp, 0x10
pop ebx
pop ebp
pop esi
pop edi
ret

Function at 0x407078
Capabilities:
Hash data with crc32

Disassembly:
xor eax, eax
mov ecx, eax
shr ecx, 1
test al, 1
je 0x407088
xor ecx, 0xedb88320
test cl, 1
je 0x407097
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x407099
shr ecx, 1
test cl, 1
je 0x4070a8
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x4070aa
shr ecx, 1
test cl, 1
je 0x4070b9
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x4070bb
shr ecx, 1
test cl, 1
je 0x4070ca
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x4070cc
shr ecx, 1
test cl, 1
je 0x4070db
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x4070dd
shr ecx, 1
test cl, 1
je 0x4070ec
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x4070ee
shr ecx, 1
mov edx, ecx
shr edx, 1
test cl, 1
je 0x4070fd
xor edx, 0xedb88320
mov dword [eax*4 + 0x412200], edx
add eax, 1
cmp eax, 0x100
jl 0x40707a
ret