joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3007b58e
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x30008648]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push edi
call fcn.30085b71
test eax, eax
jne 0x3007b5bb
call fcn.3008589f
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x300bb8d0
call fcn.3007a79d
test eax, eax
je 0x3007b5af
push esi
call fcn.3007a8ba
test eax, eax
je 0x3007b5af
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push edi
push esi
mov ebx, 0x300bdd14
push 0x300bb840
mov ecx, ebx
mov dword [ebp - 0x14], eax
call fcn.3007a98a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, 0x30007ed0
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
mov dword [0x300bdd44], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
movsw word es:[edi], word [esi]
xor esi, esi
mov dword [ebp - 0x10], esi
call fcn.3007a873
mov edi, eax
cmp edi, esi
je 0x3007b65f
mov esi, dword [sym.imp.KERNEL32.dll_CompareStringW]
push 0xffffffffffffffff
push 0x30007eb8
push 0xffffffffffffffff
push edi
push 1
push 0x7f
call esi
cmp eax, 2
je 0x3007b687
push 0xffffffffffffffff
push 0x30007ea4
push 0xffffffffffffffff
push edi
push 1
push 0x7f
call esi
cmp eax, 2
je 0x3007b687
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.3007a873
mov edi, eax
test edi, edi
jne 0x3007b623
xor esi, esi
mov ecx, ebx
call fcn.3007adeb
push 1
push 4
mov ecx, ebx
call fcn.3007aecb
push esi
push 0x3a98
push esi
push esi
call dword [sym.imp.USER32.dll_SetTimer]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x3007b6b1
mov dword [ebp - 0x10], 0x80004001
xor esi, esi
jmp 0x3007b6d0
cmp dword [ebp - 0x2c], 0x113
jne 0x3007b6a7
call fcn.3005deef
call fcn.3005df80
jmp 0x3007b6b1
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
push esi
lea eax, [ebp - 0x30]
push eax
call edi
test eax, eax
jne 0x3007b692
mov ecx, ebx
call fcn.3007af0d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.3007b387
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [0x300bdd10], esi
pop ebx
je 0x3007b6fe
call dword [sym.imp.MSO.dll_Ordinal_1916]
push dword [0x300bdd10]
call dword [sym.imp.MSO.dll_Ordinal_894]
mov dword [0x300bdd10], esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop edi
xor ecx, ebp
pop esi
call fcn.30085c36
leave
ret 0x10

Function at 0x3007bb6f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
mov ebx, ecx
jne 0x3007bb88
push 0x80004005
call fcn.3001b6ad
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x3007bb8a
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x3007c0d2
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x30008648]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], esi
call fcn.3007bae2
mov edi, eax
cmp edi, esi
je 0x3007c132
lea ecx, [ebp - 0x208]
call fcn.3007ba7d
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30085c36
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x3007c150
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x208]
call fcn.3007c0d2
cmp eax, esi
jne 0x3007c198
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call edi
test eax, eax
je 0x3007c13a
lea ecx, [ebp - 0x208]
call fcn.3007ba7d
push dword [ebp - 0x210]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.3007ba7d
mov eax, esi
jmp 0x3007c121
Function at 0x3007d426
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x300a6afa
call fcn.300866aa
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
call dword [str.DU_b0]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x428], ebx
jne 0x3007d495
call fcn.3007b9b2
mov esi, eax
jmp 0x3007d597
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x3007d4b8
call fcn.3007b9b2
jmp 0x3007d589
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 0x420], eax
je 0x3007d4ae
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp - 0x41c], edi
jae 0x3007d514
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x3007d4fa
lea ecx, [ebp - 0x418]
call fcn.300505ca
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.30025219
mov eax, esi
call fcn.30086703
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.3007c4f5
mov dword [ebp - 4], 1
jmp 0x3007d53b
mov ebx, dword [ebp - 0x418]
cmp ebx, esi
jne 0x3007d54c
mov esi, 0x8007000e
jmp 0x3007d58b
call dword [str.DU_b0]
push edi
push ebx
push edi
push dword [ebp - 0x420]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x3007d4ae
mov ecx, dword [ebp - 0x418]
push dword [ebp + 0x14]
mov word [ecx + eax*2], si
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.3007d2c3
mov esi, eax
push dword [ebp - 0x428]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x3007d4ff
lea ecx, [ebp - 0x418]
call fcn.300505ca
jmp 0x3007d4ff
Function at 0x30081eb3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov esi, ecx
push ebx
push dword [esi + 0x11c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x30081ef4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x30081f77
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ebx
push ebx
mov dword [ebp - 0x28], eax
setge cl
lea eax, [ebp - 8]
push eax
push 0x18
lea eax, [ebp - 0x28]
push eax
push dword [esi + 0x11c]
dec ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x30081f32
cmp dword [ebp - 8], 0x18
je 0x30081f4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.300440d4
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x30081f9b
mov dword [ebp - 4], 0x8003001d
jmp 0x30081f9b
push 2
push ebx
push dword [ebp + 8]
push dword [esi + 0x11c]
call edi
cmp eax, 0xffffffff
je 0x30081f71
push dword [esi + 0x11c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x30081f8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.300440d4
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x30081f9b
mov dword [ebp - 4], 0x80030019
jmp 0x30081f9b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x30082a71
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 4], 0
push esi
mov esi, ecx
cmp byte [esi + 0x30], 0
jne 0x30082b72
push ebx
mov ebx, dword [esi + 0x20]
push edi
mov edi, dword [esi + 0x24]
lea eax, [ebp - 0x1c]
lea ecx, [esi + 8]
push eax
call fcn.300672be
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
lea eax, [esi + 8]
push eax
push dword [eax + 4]
lea ecx, [ebp - 0x1c]
call fcn.30035a7d
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.3001cec7
test al, al
jne 0x30082b70
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x14]
push ebx
mov dword [ebp - 8], edi
push dword [eax + 0x11c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x30082b0c
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x30082b0c
call edi
push eax
call fcn.300440d4
test eax, eax
mov dword [ebp - 4], eax
jl 0x30082b50
mov dword [ebp - 4], 0x80030019
jmp 0x30082b50
lea ecx, [ebp - 0x14]
call fcn.30035a57
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0x18
push eax
mov eax, dword [esi + 0x14]
push dword [eax + 0x11c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x30082b36
cmp dword [ebp - 0xc], 0x18
je 0x30082b50
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.300440d4
test eax, eax
mov dword [ebp - 4], eax
jl 0x30082b50
mov dword [ebp - 4], 0x8003001d
lea ecx, [ebp - 0x14]
call fcn.30035a57
mov ebx, dword [eax + 0x10]
mov edi, dword [eax + 0x14]
lea ecx, [ebp - 0x14]
call fcn.3004a319
cmp dword [ebp - 4], 0
jge 0x30082aa7
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x3008402e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov esi, ecx
xor eax, eax
lea edi, [esi + 8]
push edi
push dword [edi + 4]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
call fcn.30035a7d
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call fcn.300672be
push dword [ebp - 0x18]
mov ecx, edi
push dword [ebp - 0x1c]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call fcn.300873fc
mov eax, dword [esi + 0x24]
mov ebx, dword [esi + 0x24]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x1c], eax
mov eax, ebx
or eax, dword [ebp - 0x1c]
je 0x30084174
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x1c]
mov eax, dword [esi + 0x14]
mov dword [ebp - 8], ebx
push dword [eax + 0x11c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x300840c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x3008415a
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
lea eax, [ebp - 0x44]
push eax
mov eax, dword [esi + 0x14]
push dword [eax + 0x11c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x300840e7
cmp dword [ebp - 0xc], 0x18
je 0x30084101
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.300440d4
test eax, eax
mov dword [ebp - 4], eax
jl 0x30084174
mov dword [ebp - 4], 0x8004022d
cmp dword [ebp - 4], 0
jl 0x30084174
lea eax, [ebp - 0x44]
push eax
mov ecx, edi
call fcn.30082e25
mov eax, dword [ebp - 0x3c]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
adc dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
mov edx, eax
or edx, ecx
je 0x30084147
cmp dword [ebp - 0x1c], ecx
jne 0x30084133
cmp ebx, eax
je 0x3008413d
cmp dword [ebp - 0x24], ecx
jne 0x30084147
cmp dword [ebp - 0x20], eax
jne 0x30084147
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
jmp 0x30084089
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], ecx
mov ebx, eax
jmp 0x30084089
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.300440d4
test eax, eax
mov dword [ebp - 4], eax
jl 0x30084174
mov dword [ebp - 4], 0x8004022d
mov eax, dword [esi + 0x14]
cmp dword [eax + 8], 0
je 0x3008419d
mov ecx, dword [esi + 0x18]
inc ecx
imul ecx, ecx, 0x18
add eax, ecx
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax]
jne 0x30084195
mov edx, dword [ebp - 0x10]
cmp edx, dword [eax + 4]
je 0x3008419d
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x30085429
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x30008648]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.300853be
mov eax, 0x30000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x30085478
cmp dword [ebp - 0x1c], 5
jb 0x30085490
jmp 0x3008548c
cmp dword [ebp - 0x10], 1
jne 0x30085490
cmp dword [ebp - 0x1c], 4
ja 0x3008548c
jne 0x30085490
cmp dword [ebp - 0x18], 0
jbe 0x30085490
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x30008440
call fcn.3001cc4f
test eax, eax
jge 0x300854b1
mov byte [0x300bc89c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.30085c36
add ebp, 0x78
leave
ret

Function at 0x3008572e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x30008648]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x474], eax
push 0x105
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor esi, esi
cmp eax, esi
jne 0x3008576a
xor eax, eax
jmp 0x30085890
add eax, eax
lea ecx, [ebp + eax - 0x260]
cmp word [ecx], 0x5c
je 0x30085786
mov word [ecx], 0x5c
mov word [ebp + eax - 0x25e], si
push ebx
push edi
push 0x106
lea eax, [ebp - 0x260]
push eax
mov edi, 0x30008550
push edi
call fcn.30085703
push 8
push esi
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
jne 0x300857c6
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
je 0x30085878
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x3000853c
push ebx
call edi
push 0x3000851c
push ebx
mov dword [ebp - 0x478], eax
call edi
cmp eax, esi
mov dword [ebp - 0x470], eax
je 0x30085878
cmp dword [ebp - 0x474], esi
mov ebx, 0x30008508
mov edi, 0x300084b8
je 0x30085850
cmp dword [ebp - 0x478], esi
je 0x30085878
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x474]
call dword [ebp - 0x478]
cmp eax, esi
jne 0x30085849
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x468]
push eax
push esi
push esi
lea eax, [ebp - 0x54]
push eax
push esi
push ebx
push edi
mov dword [ebp - 0x46c], 0x104
call dword [ebp - 0x470]
cmp eax, esi
je 0x3008587c
cmp eax, 0x642
je 0x3008587c
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x468]
push eax
push esi
push esi
push esi
push esi
push ebx
push edi
mov dword [ebp - 0x46c], 0x104
call dword [ebp - 0x470]
test eax, eax
je 0x3008587c
xor eax, eax
jmp 0x3008588e
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x300bde08], eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.30085c36
leave
ret 4
Function at 0x3008596c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x30008648]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x30008450
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], ebx
xor esi, esi
mov dword [ebp - 0x218], 0x208
mov word [ebp - 0x210], bx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push ebx
push 0x300085d4
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x214], ebx
je 0x300859f7
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x218]
cmp eax, ebx
je 0x30085a22
cmp eax, 0x208
ja 0x30085a22
shr eax, 1
mov esi, eax
je 0x30085a22
lea eax, [ebp + esi*2 - 0x212]
cmp word [eax], 0x5c
je 0x30085a22
dec esi
dec eax
dec eax
cmp esi, ebx
jne 0x30085a15
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push eax
mov word [ebp + esi*2 - 0x210], bx
call fcn.300858de
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.30085c36
leave
ret 4

Function at 0x30085a4c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x30008648]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor esi, esi
push esi
push 0x30008580
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push 0x30008560
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x218]
shr eax, 1
cmp dword [ebp - 0x214], esi
mov word [ebp + eax*2 - 0x210], si
je 0x30085ad4
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0x300085f0
call fcn.30085703
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
pop esi
jne 0x30085b06
push 0x300085e4
call fcn.3008596c
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.30085c36
leave
ret
Function at 0x30085c36
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x30008648]
jne 0x30086ac9
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x300bdf38], eax
mov dword [0x300bdf34], ecx
mov dword [0x300bdf30], edx
mov dword [0x300bdf2c], ebx
mov dword [0x300bdf28], esi
mov dword [0x300bdf24], edi
mov word [0x300bdf50], ss
mov word [0x300bdf44], cs
mov word [0x300bdf20], ds
mov word [0x300bdf1c], es
mov word [0x300bdf18], fs
mov word [0x300bdf14], gs
pushfd
pop dword [0x300bdf48]
mov eax, dword [ebp]
mov dword [0x300bdf3c], eax
mov eax, dword [ebp + 4]
mov dword [0x300bdf40], eax
lea eax, [ebp + 8]
mov dword [0x300bdf4c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x300bde88], 0x10001
mov eax, dword [0x300bdf40]
mov dword [0x300bde3c], eax
mov dword [0x300bde30], 0xc0000409
mov dword [0x300bde34], 1
mov eax, dword [0x30008648]
mov dword [ebp - 0x328], eax
mov eax, dword [0x300bc414]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x300bde80], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x300089a8
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x300bde80], 0
jne 0x30086bb9
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x30085c4e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x30008694
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x30085ca6
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0
push 0
push 0x3000868c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x30085ca6
mov al, 1
jmp 0x30085ca8
xor al, al
leave
ret 8
Function at 0x3009c710
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 0xc], edi
jmp 0x3009c723
mov edi, dword [ebp - 0xc]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
cmp eax, edx
mov dword [ebp - 4], ebx
jb 0x3009c7a1
mov eax, dword [esi + 0x38]
push edi
lea ecx, [edi + eax]
push ecx
push eax
call sub.MSVCR80.dll_memcpy
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x3009c771
sub eax, edi
jmp 0x3009c773
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x3009c762
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x3009c792
sub eax, edi
jmp 0x3009c794
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x3009c783
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x3009c852
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 4]
mov ebx, ecx
cmp ebx, edx
mov dword [ebp - 8], eax
jbe 0x3009c7c7
mov ebx, edx
test ebx, ebx
je 0x3009c814
mov edx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [edi + 4], ecx
mov ecx, dword [edx + 0x18]
cmp ecx, 1
jne 0x3009c7ea
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
push eax
push ecx
call fcn.3009de20
jmp 0x3009c7fc
cmp ecx, 2
jne 0x3009c802
mov edx, dword [edi]
mov eax, dword [edi + 0x30]
push ebx
push edx
push eax
call fcn.3009a35e
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 8]
mov ecx, dword [edi]
push ebx
push ecx
push eax
call sub.MSVCR80.dll_memcpy
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x3009c83e
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
add edx, eax
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x3009c852
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x3009c720
pop edi
pop ebx
mov esp, ebp
pop ebp
ret