joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10050277
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10050314
push ebx
push esi
call fcn.10050240
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1004a96b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100502c1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10050313
push edi
push eax
call fcn.10048880
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100502e1
call fcn.10046b2c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10050312
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1004a96b
add esp, 0x20
test eax, eax
jne 0x10050300
push edi
call fcn.10046b2c
jmp 0x10050308
push ebx
call fcn.10046b2c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10050317
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10050328
pop esi
ret
push ebx
push edi
push esi
call fcn.10050240
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10048880
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10050350
push ebx
push esi
push edi
call fcn.10033c50
add esp, 0xc
push 0
call fcn.10046b2c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10050aaa
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100505c5

Function at 0x10052ccd
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10046ed0
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10052d3c
cmp esi, dword [ebp - 4]
je 0x10052d37
cmp dword [ebp + 0xc], 0
je 0x10052d37
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10052d14
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1005281f
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10052d3e
xor eax, eax
inc eax
jmp 0x10052d3e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10052da3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10077180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10046ed0
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10046ed0
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10052e1a
cmp word [ecx], dx
je 0x10052e1a
mov eax, dword [0x10067564]
push edi
dec eax
push eax
push 0x10067450
call fcn.10052d42
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10052e8d
cmp word [eax], dx
je 0x10052e8d
mov eax, dword [edi]
test eax, eax
je 0x10052e3e
cmp word [eax], dx
je 0x10052e3e
lea eax, [ebp - 0x10]
push eax
call fcn.10052725
jmp 0x10052e47
lea eax, [ebp - 0x10]
push eax
call fcn.100527c0
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10052eb7
mov eax, dword [0x1006744c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10067140
call fcn.10052d42
add esp, 0xc
test al, al
je 0x10052eb7
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10052e82
cmp word [eax], di
je 0x10052e82
lea eax, [ebp - 0x10]
push eax
call fcn.10052725
pop ecx
jmp 0x10052eb9
lea eax, [ebp - 0x10]
push eax
call fcn.100527c0
jmp 0x10052e7f
mov eax, dword [edi]
test eax, eax
je 0x10052ea4
cmp word [eax], dx
je 0x10052ea4
lea eax, [ebp - 0x10]
push eax
call fcn.100526da
pop ecx
jmp 0x10052eb7
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10052f82
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10052bc7
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10052f82
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10052f82
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10052f82
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10052f0f
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1004b0ea
test ebx, ebx
je 0x10052f7d
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1004b0ea
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10052f82
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10052f82
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10056f76
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10052f84
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10032307
leave
ret
Function at 0x10059bd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10059bfd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10059bfd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100b077
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor eax, eax
cmp dword [ebp + 8], eax
push 0x57
mov dword [ebp - 4], eax
pop esi
mov dword [ebp - 8], eax
je 0x100b155
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, eax
je 0x100b154
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp byte [esi + ebx - 1], 0x5c
jne 0x100b0da
lea eax, [esi + 1]
push eax
call fcn.0100a087
mov edi, eax
test edi, edi
je 0x100b0d6
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov byte [esi + edi - 1], 0
mov dword [ebp - 8], 1
jmp 0x100b0dc
push 8
jmp 0x100b137
mov edi, ebx
lea eax, [ebp - 4]
push eax
push 0xf003f
xor esi, esi
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100b135
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push esi
lea eax, [ebp + 0xc]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x100b135
cmp dword [ebp + 0xc], esi
jne 0x100b131
cmp dword [ebp + 0x10], esi
jne 0x100b123
cmp dword [ebp - 0xc], esi
jne 0x100b131
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
jmp 0x100b138
push 0x50
jmp 0x100b137
push 2
pop esi
cmp dword [ebp - 4], 0
je 0x100b147
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x100b153
push edi
call fcn.0100a0a7
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x430006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
mov eax, section..pdata
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x1cfe7979
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..pdata_1
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x1d6d6842
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push 0x100
call fcn.00414eef
mov esi, dword [sym.imp.ole32.dll_CLSIDFromProgID]
add esp, 4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], 0x100
push eax
push str.HPSdpApp.WebConnector.4
call esi
test eax, eax
je 0x401999
lea ecx, [ebp - 0x20]
push ecx
push str.HPSdpApp.WebConnector.3
call esi
test eax, eax
je 0x401999
lea edx, [ebp - 0x20]
push edx
push str.HPSdpApp.WebConnector.2
call esi
test eax, eax
je 0x401999
lea eax, [ebp - 0x20]
push eax
push str.HPSdpApp.WebConnector.1
call esi
test eax, eax
je 0x401999
push 0x10
push str.Error
push str.Rubik_not_installed
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 8]
lea edx, [ebp - 0x20]
push ecx
push edx
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov eax, dword [ebp - 8]
test eax, eax
mov ebx, eax
jne 0x4019b4
xor esi, esi
jmp 0x4019e3
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0040c710
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push str.LocalServer32
push esi
push str.SOFTWAREClassesCLSID_
lea eax, [ebp - 0x320]
push str._s_s_s
push eax
call fcn.0040c6b2
add esp, 0x14
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0x320]
push ecx
push 1
push 0
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401a77
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x120]
push eax
push ecx
push 0
push 0
push 0x424bf0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401a77
mov eax, dword [ebp - 4]
mov ecx, 0x40
add eax, 4
lea esi, [ebp - 0x120]
mov edi, eax
push 0x5c
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0040c26b
mov byte [eax], 0
add esp, 8
mov eax, 1
lea esp, [ebp - 0x32c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esp, [ebp - 0x32c]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401a90
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x314
push ebx
mov ebx, dword [esp + 0x31c]
push esi
push edi
push 0x5c
push ebx
call fcn.0040c26b
mov edi, eax
or ecx, 0xffffffff
inc edi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401b70
add esp, 0xc
mov edi, eax
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401b4f
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push 4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x401b4f
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x118]
push 0x104
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
lea eax, [esp + 0x21c]
push 0x104
lea ecx, [esp + 0x11c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
lea edx, [esp + 0x21c]
push ebx
push edx
call fcn.0040c0d6
add esp, 8
test eax, eax
je 0x401b4f
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x314
ret 4

Function at 0x401b70
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x401bfc
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], pe_nt_image_headers32
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401bfc
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x401bfc
mov edi, dword [esp + 0x138]
lea edx, [esp + 0x30]
push edi
push edx
call fcn.0040c0d6
add esp, 8
test eax, eax
je 0x401bf8
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401bc4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x128
ret
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x128
ret
Function at 0x401c10
Capabilities:
Get geographical location

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x2c
xor ebp, ebp
call fcn.0040c780
add esp, 4
mov esi, eax
push esi
push 0x10004
push ebp
mov dword [esi], 0x2c
call sub.TAPI32.dll_lineGetTranslateCapsA
test eax, eax
jne 0x401c90
mov edi, dword [esi + 4]
push edi
call fcn.0040c780
add esp, 4
mov esi, eax
push esi
push 0x10004
push ebp
mov dword [esi], edi
call sub.TAPI32.dll_lineGetTranslateCapsA
test eax, eax
jne 0x401c90
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
add eax, esi
xor ebx, ebx
test ecx, ecx
jbe 0x401c90
lea edi, [eax + 0x34]
mov eax, dword [edi]
push eax
push str.Country_id_:__d_n
call fcn.0040c73f
mov ecx, dword [edi - 0x34]
mov eax, dword [esi + 0x18]
add esp, 8
cmp ecx, eax
jne 0x401c85
mov ebp, dword [edi]
mov eax, dword [esi + 0xc]
inc ebx
add edi, 0x44
cmp ebx, eax
jb 0x401c69
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov edx, dword [esp + 0x18]
pop edi
pop esi
mov dword [edx], eax
mov eax, dword [esp + 0xc]
mov dword [eax], ebp
pop ebp
pop ebx
ret 8
Function at 0x403ad0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 8], 0
test edi, edi
je 0x403b2a
mov eax, dword [esp + 0x10]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403b2a
mov edx, dword [esp + 0x14]
lea ecx, [esp + 8]
push 0
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc

Function at 0x4042b0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40432b
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], pe_nt_image_headers32
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40432b
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40432b
mov edi, dword [esp + 0x138]
lea edx, [esp + 0x30]
push edi
push edx
call fcn.0040c0d6
add esp, 8
test eax, eax
je 0x404327
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x404304
jmp 0x40432b
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x128
ret 4

Function at 0x404340
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x450
push esi
push edi
mov edi, dword [esp + 0x45c]
lea eax, [esp + 0x250]
push edi
push str._s.lnk
mov dword [esp + 0x10], ecx
push eax
call fcn.0040c6b2
add esp, 0xc
lea ecx, [esp + 0xc]
lea edx, [esp + 0x250]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404433
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push ebp
mov ebp, dword [esp + 0x468]
lea eax, [esp + 0x40]
push 0x4215c0
push eax
call fcn.0040c8ba
add esp, 8
test eax, eax
je 0x404421
lea ecx, [esp + 0x40]
push 0x4215bc
push ecx
call fcn.0040c8ba
add esp, 8
test eax, eax
je 0x404421
lea edx, [esp + 0x40]
lea eax, [esp + 0x154]
push edx
push edi
push 0x4215b4
push eax
call fcn.0040c6b2
mov al, byte [esp + 0x24]
add esp, 0x10
test al, 0x10
jne 0x404421
lea ecx, [esp + 0x35c]
lea edx, [esp + 0x154]
push ecx
mov ecx, dword [esp + 0x14]
push edx
call fcn.004041a0
lea eax, [esp + 0x35c]
push ebp
push eax
call fcn.0040c0d6
add esp, 8
test eax, eax
jne 0x404421
lea ecx, [esp + 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x14]
push edx
push esi
call ebx
test eax, eax
jne 0x404396
pop ebp
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
add esp, 0x450
ret 8
Function at 0x404670
Capabilities:
Acquire debug privileges

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x18
lea eax, [esp + 0x1c]
push eax
push 0x28
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40468f
add esp, 0x18
ret 4
lea edx, [esp]
push edx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x4046b8
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x18
ret 4
mov ecx, dword [esp]
mov edx, dword [esp + 4]
push 0
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x24]
push 0x10
push eax
push 0
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x404707
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x18
ret 4
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x18
ret 4
Function at 0x406f80
Capabilities:
Encrypt data using des

Disassembly:
push 0xffffffffffffffff
push 0x41a063
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x14], ebp
mov dword [ebp], 0x41b598
push 0x80
mov dword [esp + 0x2c], 0
mov dword [ebp + 4], 0x20
call fcn.00414eef
mov dword [ebp + 8], eax
push 0x78
mov byte [esp + 0x30], 1
mov dword [ebp], 0x41b674
call fcn.00414eef
mov ebx, eax
mov esi, 0x41b5dc
add esp, 8
sub esi, ebx
mov dword [esp + 0x1c], ebx
lea edi, [ebx + 0x70]
mov ecx, ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0x38
jmp 0x406fff
mov esi, dword [esp + 0x14]
xor eax, eax
mov al, byte [esi + ecx]
mov esi, dword [esp + 0x30]
dec eax
mov edx, eax
and eax, 7
sar edx, 3
mov dl, byte [edx + esi]
test byte [eax*4 + 0x41b654], dl
setne al
mov byte [ecx], al
mov eax, dword [esp + 0x10]
inc ecx
dec eax
mov dword [esp + 0x10], eax
jne 0x406ffb
mov dword [esp + 0x30], 0
mov edx, edi
xor ecx, ecx
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov edx, dword [esp + 0x30]
xor eax, eax
mov al, byte [edx + 0x41b614]
xor edx, edx
add eax, ecx
cmp ecx, 0x1c
setge dl
dec edx
mov esi, eax
and edx, 0xffffffe4
add edx, 0x38
cmp eax, edx
jl 0x407063
lea esi, [eax - 0x1c]
mov al, byte [ebx + esi]
mov byte [ecx + ebx + 0x38], al
inc ecx
cmp ecx, 0x38
jl 0x40703d
xor ecx, ecx
xor edx, edx
mov dl, byte [ecx + 0x41b624]
mov al, byte [edx + ebx + 0x37]
test al, al
je 0x4070b1
mov eax, 0x2aaaaaab
mov ebx, 6
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
lea esi, [edx + edi]
cdq
idiv ebx
mov al, byte [esi]
mov ebx, dword [esp + 0x1c]
mov edx, dword [edx*4 + 0x41b654]
sar edx, 2
or al, dl
mov byte [esi], al
inc ecx
cmp ecx, 0x30
jl 0x407072
xor eax, eax
mov esi, dword [esp + 0x30]
mov al, byte [edi + 2]
xor ecx, ecx
mov ah, byte [edi]
mov cl, byte [edi + 4]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [edi + 6]
shl eax, 8
or eax, edx
xor edx, edx
mov dword [ecx + esi*8], eax
mov dh, byte [edi + 1]
mov dl, byte [edi + 3]
xor eax, eax
mov al, byte [edi + 5]
xor ecx, ecx
mov cl, byte [edi + 7]
shl edx, 8
or edx, eax
mov eax, dword [ebp + 8]
shl edx, 8
or edx, ecx
mov dword [eax + esi*8 + 4], edx
inc esi
cmp esi, 0x10
mov dword [esp + 0x30], esi
jl 0x407034
cmp dword [esp + 0x34], 1
jne 0x40714a
xor ecx, ecx
mov eax, 0x7c
mov edx, dword [ebp + 8]
sub eax, 8
mov edi, dword [eax + edx + 4]
mov esi, dword [ecx + edx]
mov dword [ecx + edx], edi
mov dword [eax + edx + 4], esi
mov edx, dword [ebp + 8]
add ecx, 8
cmp eax, 0x3c
mov edi, dword [eax + edx + 8]
mov esi, dword [ecx + edx - 4]
mov dword [ecx + edx - 4], edi
mov dword [eax + edx + 8], esi
jg 0x40711b
mov ecx, 0x1e
xor eax, eax
mov edi, ebx
push ebx
rep stosd dword es:[edi], eax
call fcn.00414f18
mov ecx, dword [esp + 0x24]
add esp, 4
mov eax, ebp
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
Function at 0x4071b0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [ecx + 8]
push ebx
push ebp
mov edx, dword [eax]
mov eax, dword [esp + 0x10]
push esi
push edi
mov esi, dword [eax]
add ecx, 8
mov edi, 8
mov ebx, dword [ecx - 8]
mov eax, esi
ror eax, 4
xor eax, ebx
add ecx, 0x10
mov ebx, eax
mov ebp, eax
shr ebx, 0x18
and ebx, 0x3f
shr ebp, 0x10
mov ebx, dword [ebx*4 + 0x41bb38]
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x41bd38]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
and eax, 0x3f
xor ebx, dword [ebp*4 + 0x41bf38]
mov ebp, dword [eax*4 + 0x41c138]
mov eax, dword [ecx - 0x14]
xor ebx, ebp
xor eax, esi
xor edx, ebx
mov ebx, eax
shr ebx, 0x18
mov ebp, eax
and ebx, 0x3f
shr ebp, 0x10
mov ebx, dword [ebx*4 + 0x41bc38]
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x41be38]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
and eax, 0x3f
xor ebx, dword [ebp*4 + 0x41c038]
mov ebp, dword [eax*4 + 0x41c238]
xor ebx, ebp
xor edx, ebx
mov ebx, dword [ecx - 0x10]
mov eax, edx
ror eax, 4
xor eax, ebx
mov ebx, eax
mov ebp, eax
shr ebx, 0x18
and ebx, 0x3f
shr ebp, 0x10
mov ebx, dword [ebx*4 + 0x41bb38]
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x41bd38]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
and eax, 0x3f
xor ebx, dword [ebp*4 + 0x41bf38]
mov ebp, dword [eax*4 + 0x41c138]
mov eax, dword [ecx - 0xc]
xor ebx, ebp
xor eax, edx
xor esi, ebx
mov ebx, eax
shr ebx, 0x18
mov ebp, eax
and ebx, 0x3f
shr ebp, 0x10
mov ebx, dword [ebx*4 + 0x41bc38]
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x41be38]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
and eax, 0x3f
xor ebx, dword [ebp*4 + 0x41c038]
mov ebp, dword [eax*4 + 0x41c238]
xor ebx, ebp
xor esi, ebx
dec edi
jne 0x4071cb
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], edx
mov edx, dword [esp + 0x14]
mov dword [edx], esi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x4094e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, eax
push esi
mov esi, dword [esp + 0x10]
or edx, ecx
or edx, esi
test dl, 3
jne 0x409514
mov edx, esi
shr edx, 2
je 0x409529
push edi
sub ecx, eax
mov esi, dword [ecx + eax]
mov edi, dword [eax]
xor edi, esi
mov dword [eax], edi
add eax, 4
dec edx
jne 0x409502
pop edi
pop esi
ret
test esi, esi
jbe 0x409529
push ebx
sub ecx, eax
mov dl, byte [eax + ecx]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec esi
jne 0x40951b
pop ebx
pop esi
ret