joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401910
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
mov ecx, dword [esp + 0x214]
mov edx, dword [esp + 0x210]
lea eax, [esp + 4]
push ebx
push eax
push 1
push 0
push ecx
push edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x1ff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4019f8
mov edx, dword [esp + 8]
test edx, edx
je 0x4019f8
mov ebx, dword [esp + 0x224]
mov ecx, dword [esp + 4]
mov eax, dword [ebx]
cmp eax, ecx
jae 0x40196f
mov dword [esp + 4], eax
push esi
push edi
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x22c]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4019b7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
test esi, esi
pop esi
je 0x4019cc
mov eax, 3
pop ebx
add esp, 0x20c
ret 0x14
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x220]
lea eax, [esp + 0x10]
push edx
push eax
push ecx
call fcn.00409255
mov edx, dword [esp + 0x10]
add esp, 0xc
mov dword [ebx], edx
xor eax, eax
pop ebx
add esp, 0x20c
ret 0x14
mov eax, 1
pop ebx
add esp, 0x20c
ret 0x14

Function at 0x401a10
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0xc]
lea ecx, [esp]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401a83
mov eax, dword [esp]
test eax, eax
je 0x401a83
mov edx, dword [esp + 0x10]
push esi
lea ecx, [esp + 0x18]
push 4
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 4]
test eax, eax
je 0x401a75
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
neg eax
sbb eax, eax
and eax, 2
pop ecx
ret 0x10
mov eax, 1
pop ecx
ret 0x10

Function at 0x401a90
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push esi
lea ecx, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401b0d
mov esi, dword [esp + 4]
test esi, esi
je 0x401b0d
mov edx, dword [esp + 0x18]
push edi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push 1
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
pop edi
je 0x401aff
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
neg eax
sbb eax, eax
and eax, 2
pop ecx
ret 0x10
mov eax, 1
pop esi
pop ecx
ret 0x10
Function at 0x401c60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
jne 0x401c7e
xor al, al
pop esi
add esp, 0x104
ret 8
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x801a
push 0
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
test eax, eax
jge 0x401ca4
xor al, al
pop esi
add esp, 0x104
ret 8
lea ecx, [esp + 4]
push 0x5c
push ecx
call fcn.004092ef
add esp, 8
test eax, eax
je 0x401cd8
inc eax
jne 0x401cc6
xor al, al
pop esi
add esp, 0x104
ret 8
mov edx, dword [esp + 0x110]
push edx
push eax
push esi
call fcn.00409255
add esp, 0xc
mov al, 1
pop esi
add esp, 0x104
ret 8
Function at 0x402010
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, dword [str.INTEL_WLAN_APP_FRAMEWORK_MSG_ID]
sub esp, 0x260
push esi
push edi
mov esi, ecx
push eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
test eax, eax
je 0x40203d
push 0x8111
push 0
push eax
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
xor ecx, ecx
lea eax, [esp + 0x60]
mov dword [esp + 0xc], ecx
push edx
mov edx, dword [str.SOFTWAREIntelWireless]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
push eax
mov dword [esp + 0x20], ecx
mov ecx, dword [str.BinDir]
push ecx
push edx
push 0x80000002
mov ecx, esi
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x1c], 0x104
call fcn.00401910
test eax, eax
jne 0x402105
lea edi, [esp + 0x60]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x164]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x164]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [str.ZCfgSvc.exe_STOP]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x64]
push ecx
push edx
push 0
push 0x20
push 0
push 0
lea eax, [esp + 0x180]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
pop edi
pop esi
add esp, 0x260
ret
Function at 0x402840
Capabilities:
Check if file exists
Copy file
Get common file path

Disassembly:
push ecx
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ecx, dword [ebp + 0x61c]
test ecx, ecx
je 0x40285b
push str._tCAppSettingConverter::PrepareITSettingsFile_______Method_started_
call fcn.004037f0
lea ebx, [ebp + 0x310]
mov ecx, 0x41
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
push ebx
push eax
lea edi, [ebp + 0x414]
mov ecx, 0x41
push eax
push 0x8023
rep stosd dword es:[edi], eax
push eax
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
test eax, eax
jl 0x4029b0
mov eax, dword [str.IntelWirelessSettings]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
lea edi, [ebp + 0x414]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [str.ItSttngs.ini]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push eax
push ebx
call edi
mov ecx, dword [str.ItSttngs.ini.bak]
lea esi, [ebp + 0x414]
push ecx
push esi
call edi
lea edx, [ebp + 0x518]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], 0
je 0x40290f
push edx
push ebx
call fcn.00409410
add esp, 8
test eax, eax
jne 0x40290f
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jae 0x40292a
mov dword [esp + 0x10], 7
jmp 0x402990
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x402990
mov ecx, dword [ebp + 0x61c]
test ecx, ecx
je 0x40294a
push ebx
push str._tCAppSettingConverter::PrepareSettingsFile_______Back_up_the_following_template_ITSttngs.ini_file:
call fcn.00403870
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [ebp + 0x61c]
test eax, eax
jne 0x402982
test ecx, ecx
je 0x402977
push str._t_FAILED_CAppSettingConverter::PrepareITSettingsFile_______Back_up_template_ITSttngs.ini_file_failed_
call fcn.004037f0
mov ecx, dword [ebp + 0x61c]
call fcn.004039d0
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
pop ecx
ret
test ecx, ecx
je 0x402990
push str._tCAppSettingConverter::PrepareITSettingsFile_______Successfully_made_a_back_up_ITSttngs.ini_file_
call fcn.004037f0
mov ebp, dword [ebp + 0x61c]
test ebp, ebp
je 0x4029a6
push str._tCAppSettingConverter::PrepareITSettingsFile_______Method_ended_
mov ecx, ebp
call fcn.004037f0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [ebp + 0x61c]
test ecx, ecx
je 0x4029cf
push str._tCAppSettingConverter::PrepareSettingsFile_______Unable_to_get_the_name_of_the_All_Users_folder_using_SHGetFolderPath___function_
call fcn.004037f0
mov ecx, dword [ebp + 0x61c]
call fcn.004039d0
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
pop ecx
ret
Function at 0x403630
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
mov ecx, dword [esp + 0x214]
mov edx, dword [esp + 0x210]
lea eax, [esp + 4]
push ebx
push eax
push 1
push 0
push ecx
push edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x1ff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403707
mov edx, dword [esp + 8]
test edx, edx
je 0x403707
mov ebx, dword [esp + 0x224]
mov ecx, dword [esp + 4]
mov eax, dword [ebx]
cmp eax, ecx
jae 0x40368f
mov dword [esp + 4], eax
push esi
push edi
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x22c]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4036d7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
test esi, esi
pop esi
jne 0x403707
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x220]
lea eax, [esp + 0x10]
push edx
push eax
push ecx
call fcn.00409255
mov edx, dword [esp + 0x10]
add esp, 0xc
mov dword [ebx], edx
mov al, 1
pop ebx
add esp, 0x20c
ret
xor al, al
pop ebx
add esp, 0x20c
ret

Function at 0x4037f0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov edi, 0x41e18c
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esi + 4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor bl, bl
cmp edx, 0xffffffff
mov dword [esp + 0xc], ecx
jne 0x40381c
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret 4
push ebp
mov ebp, dword [esp + 0x18]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x18], eax
not ecx
push eax
lea eax, [esp + 0x1c]
dec ecx
push eax
push ecx
push ebp
push edx
call edi
test eax, eax
pop ebp
je 0x403849
mov bl, 1
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 4]
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
push 0x41e18c
push eax
call edi
pop edi
mov al, bl
pop esi
pop ebx
pop ecx
ret 4
Function at 0x403920
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov edi, 0x41e18c
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esi + 4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor bl, bl
cmp edx, 0xffffffff
mov dword [esp + 0xc], ecx
jne 0x40394c
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret 8
push ebp
mov ebp, dword [esp + 0x18]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x18], eax
not ecx
push eax
lea eax, [esp + 0x1c]
dec ecx
push eax
push ecx
push ebp
push edx
call edi
test eax, eax
pop ebp
je 0x403980
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret 8
mov eax, dword [esi + 4]
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x20]
push 4
push edx
push eax
mov dword [esp + 0x28], 0
call edi
test eax, eax
je 0x4039a2
mov bl, 1
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 4]
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
push 0x41e18c
push eax
call edi
pop edi
mov al, bl
pop esi
pop ebx
pop ecx
ret 8
Function at 0x405f60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push eax
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
test eax, eax
jl 0x405fd0
lea ecx, [esp]
push 0x5c
push ecx
call fcn.004092ef
add esp, 8
test eax, eax
je 0x405fd0
lea edx, [esp]
push 0x5c
push edx
mov byte [eax], 0
call fcn.004092ef
add esp, 8
test eax, eax
je 0x405fc5
inc eax
je 0x405fd0
mov ecx, dword [esp + 0x10c]
mov edx, dword [esp + 0x108]
push ecx
push eax
push edx
call fcn.00409255
add esp, 0xc
mov al, 1
add esp, 0x104
ret 8
xor al, al
add esp, 0x104
ret 8
Function at 0x410be4
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
dec dword [edi]
mov bh, 0x41
adc al, 0xf
mov bh, 0x71
push es
Function at 0x4015b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push esi
mov dword [eax + 0x30], edx
mov dword [eax + 0x4c], edx
mov dword [eax + 0x20], edx
mov dword [eax + 0x2c], 0x20
mov dword [eax + 0x54], 1
mov dword [eax + 0x48], 4
mov dword [eax + 0x58], edx
lea esi, [eax + 0x70]
lea ecx, [ecx]
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [esi], ecx
inc edx
add esi, 4
cmp edx, 0x100
jb 0x4015e0
pop esi
pop ebp
ret

Function at 0x405720
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor eax, eax
or ecx, 0x100
push edi
lea ebx, [ebx]
mov ebx, ecx
shr ebx, 7
mov edi, ecx
shr edi, 8
movzx edi, word [esi + edi*2]
and ebx, 1
neg ebx
sar ebx, 4
shr edi, 4
and ebx, 0x7f
xor edi, ebx
add eax, dword [edx + edi*4]
add ecx, ecx
cmp ecx, 0x10000
jb 0x405730
pop edi
pop ebx
ret

Function at 0x405760
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
mov edx, 0x100
xor eax, eax
push edi
or ecx, edx
add esi, esi
mov edi, edx
and edi, esi
add edi, edx
mov ebx, ecx
shr ebx, 8
add ebx, edi
mov edi, dword [ebp + 8]
movzx edi, word [edi + ebx*2]
mov ebx, ecx
shr ebx, 7
and ebx, 1
neg ebx
shr edi, 4
sar ebx, 4
and ebx, 0x7f
xor edi, ebx
mov ebx, dword [ebp + 0xc]
add eax, dword [ebx + edi*4]
add ecx, ecx
mov edi, ecx
xor edi, esi
not edi
and edx, edi
cmp ecx, 0x10000
jb 0x405771
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x405a20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
movzx eax, word [ebx]
mov ecx, eax
shr ecx, 4
mov edx, dword [esi + ecx*4]
movzx ecx, word [ebx + 2]
mov dword [ebp - 0xc], edx
mov edx, ecx
xor eax, 0x7f0
xor ecx, 0x7f0
shr edx, 4
mov edx, dword [esi + edx*4]
shr eax, 4
mov eax, dword [esi + eax*4]
shr ecx, 4
mov ecx, dword [esi + ecx*4]
add edx, eax
add ecx, eax
mov dword [ebp - 0x10], edx
push edi
mov dword [ebp - 0x14], ecx
xor edx, edx
jmp 0x405a70
cmp edx, dword [ebp + 0x10]
jae 0x405b90
mov eax, edx
xor edi, edi
or eax, 8
mov dword [ebp - 4], edi
cmp eax, 1
je 0x405ab9
mov edi, dword [ebp + 0xc]
mov ecx, eax
and eax, 1
shr ecx, 1
lea edi, [ecx + edi*8]
movzx edi, word [ebx + edi*2 + 4]
neg eax
sar eax, 4
shr edi, 4
and eax, 0x7f
xor edi, eax
mov eax, edi
mov edi, dword [ebp - 4]
add edi, dword [esi + eax*4]
mov eax, ecx
mov dword [ebp - 4], edi
cmp eax, 1
jne 0x405a88
add edi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + edx*4], edi
inc edx
cmp edx, 8
jb 0x405a70
cmp edx, 0x10
jae 0x405b3a
lea eax, [edx - 8]
mov dword [ebp - 8], eax
cmp edx, dword [ebp + 0x10]
jae 0x405b90
xor edi, edi
or eax, 8
mov dword [ebp - 4], edi
cmp eax, 1
je 0x405b24
lea esp, [esp]
mov edi, dword [ebp + 0xc]
mov ecx, eax
and eax, 1
shr ecx, 1
lea edi, [ecx + edi*8]
movzx edi, word [ebx + edi*2 + 0x104]
neg eax
sar eax, 4
shr edi, 4
and eax, 0x7f
xor edi, eax
mov eax, edi
mov edi, dword [ebp - 4]
add edi, dword [esi + eax*4]
mov eax, ecx
mov dword [ebp - 4], edi
cmp eax, 1
jne 0x405af0
add edi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [ecx + edx*4], edi
inc edx
inc eax
mov dword [ebp - 8], eax
cmp edx, 0x10
jb 0x405ad3
cmp edx, dword [ebp + 0x10]
jae 0x405b90
lea eax, [edx - 0x10]
mov dword [ebp - 8], eax
or eax, 0x100
xor edi, edi
cmp eax, 1
je 0x405b7a
mov ecx, eax
and eax, 1
shr ecx, 1
movzx ebx, word [ebx + ecx*2 + 0x204]
neg eax
sar eax, 4
shr ebx, 4
and eax, 0x7f
xor ebx, eax
add edi, dword [esi + ebx*4]
mov ebx, dword [ebp + 8]
mov eax, ecx
cmp eax, 1
jne 0x405b51
add edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [ecx + edx*4], edi
inc edx
inc eax
mov dword [ebp - 8], eax
cmp edx, dword [ebp + 0x10]
jb 0x405b45
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4076a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [edi + 0x32550]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
lea ebx, [ebx]
xor edx, edx
lea ecx, [edx + 1]
mov dword [ebp - 4], 4
lea esp, [esp]
movzx ebx, word [edi + ecx*2 + 0x32bf4]
mov eax, esi
and eax, 1
mov edi, eax
neg edi
sar edi, 4
and edi, 0x7f
shr ebx, 4
xor ebx, edi
mov edi, dword [ebp + 8]
add edx, dword [edi + ebx*4 + 0x30ea0]
add ecx, ecx
shr esi, 1
or ecx, eax
dec dword [ebp - 4]
jne 0x4076d0
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
inc esi
mov dword [eax], edx
add eax, 4
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp esi, 0x10
jb 0x4076c0
mov dword [edi + 0x32590], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 4
mov dword [ebp - 0x208], edi
movzx ebx, byte [edx + edi + 0x306a0]
mov ecx, ebx
mov esi, ebx
and esi, 1
shr ecx, 1
dec ecx
or esi, 2
shl esi, cl
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x210], 1
sub edi, esi
mov dword [ebp - 0x214], ecx
test ecx, ecx
je 0x4077e3
jmp 0x407796
mov ebx, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x210]
sub ecx, ebx
add ecx, esi
movzx ecx, word [edx + ecx*2 + 0x32b0e]
mov eax, edi
and eax, 1
mov ebx, eax
neg ebx
shr ecx, 4
sar ebx, 4
and ebx, 0x7f
xor ecx, ebx
mov ecx, dword [edx + ecx*4 + 0x30ea0]
add dword [ebp - 0x20c], ecx
mov ecx, dword [ebp - 0x210]
add ecx, ecx
or ecx, eax
shr edi, 1
dec dword [ebp - 0x214]
mov dword [ebp - 0x210], ecx
jne 0x407790
mov edi, dword [ebp - 0x208]
mov eax, dword [ebp - 0x20c]
mov dword [ebp + edi*4 - 0x204], eax
inc edi
mov dword [ebp - 0x208], edi
cmp edi, 0x80
jb 0x407751
lea esi, [ebp - 0x204]
sub esi, edx
lea ecx, [edx + 0x32910]
lea ebx, [edx + 0x31d58]
sub esi, 0x31d50
lea edi, [edx + 0x31950]
mov dword [ebp - 0x208], ecx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x218], 4
jmp 0x407850
xor ecx, ecx
mov dword [ebp - 0x214], ecx
cmp dword [edx + 0x32594], ecx
jbe 0x4078c0
mov eax, ecx
or eax, 0x40
xor esi, esi
cmp eax, 1
je 0x4078a8
lea esp, [esp]
mov ebx, dword [ebp - 0x208]
mov ecx, eax
and eax, 1
shr ecx, 1
movzx ebx, word [ebx + ecx*2]
neg eax
sar eax, 4
and eax, 0x7f
shr ebx, 4
xor ebx, eax
add esi, dword [edx + ebx*4 + 0x30ea0]
mov eax, ecx
cmp eax, 1
jne 0x407870
mov ebx, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x214]
mov dword [edi + ecx*4], esi
inc ecx
mov dword [ebp - 0x214], ecx
cmp ecx, dword [edx + 0x32594]
jb 0x407860
mov esi, dword [ebp - 0x210]
mov eax, 0xe
cmp dword [edx + 0x32594], eax
jbe 0x4078e6
lea ecx, [ecx]
mov ecx, eax
shr ecx, 1
sub ecx, 5
shl ecx, 4
add dword [edi + eax*4], ecx
inc eax
cmp eax, dword [edx + 0x32594]
jb 0x4078d0
mov eax, dword [edi]
mov dword [ebx - 8], eax
mov ecx, dword [edi + 4]
mov dword [ebx - 4], ecx
mov eax, dword [edi + 8]
mov dword [ebx], eax
mov ecx, dword [edi + 0xc]
mov dword [ebx + 4], ecx
mov eax, 4
lea ecx, [ebx + 8]
jmp 0x407910
movzx ebx, byte [edx + eax + 0x306a0]
mov ebx, dword [edi + ebx*4]
add ebx, dword [esi + ecx]
inc eax
mov dword [ecx], ebx
add ecx, 4
cmp eax, 0x80
jb 0x407910
mov ebx, dword [ebp - 0x20c]
sub dword [ebp - 0x208], 0xffffff80
add ebx, 0x200
sub esi, 0x200
add edi, 0x100
dec dword [ebp - 0x218]
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x210], esi
jne 0x407850
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov dword [edx + 0x3bcf8], 0
pop ebx
call fcn.005332ca
mov esp, ebp
pop ebp
ret
Function at 0x408a50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0
push ecx
push edx
push 0
push 0
call fcn.00533b94
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x408a7d
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x408a8c
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x40b6b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575243
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 4
mov dword [esi], vtable.CObjectVector_struct_NArchive::N7z::CMethodFull_.0
mov dword [ebp - 4], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0x10
mov dword [esi + 0x14], vtable.CRecordVector_struct_NArchive::N7z::CBind_.0
mov ecx, 1
mov dword [esi + 0x28], ecx
mov byte [ebp - 4], cl
lea ecx, [esi + 0x30]
mov byte [esi + 0x2c], al
push 3
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
call fcn.00408e30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret