joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [str.V_we], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.tascraft
push str.bamed
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401e98
xor eax, eax
jmp 0x401eb3
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4025f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0xb8], eax
push 0x4040a4
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401000
add esp, 4
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401e50
add esp, 8
test eax, eax
jne 0x402638
xor eax, eax
jmp 0x402696
push 0
push 0
push 0
lea ecx, [ebp - 0xb0]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40268a
lea edx, [ebp - 0xb0]
push edx
mov eax, dword [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0xb0]
push ecx
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x402688
lea edx, [ebp - 0xb0]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x402638
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov eax, dword [ebp - 0xa8]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x403028
push 0x403024
push 0x403020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x403028]
push dword [0x403024]
push dword [0x403020]
mov dword [0x403014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401040
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x46c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x468], eax
push esi
push 0x104
lea eax, [esp + 0x44]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40107b
mov edx, 0x4031e0
jmp 0x401134
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x24c]
push str._scmd.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [esp + 4], 0x3c
lea eax, [esp + 0x248]
mov dword [esp + 8], 0x40
xorps xmm0, xmm0
mov dword [esp + 0x14], eax
lea eax, [esp + 4]
movlpd qword [esp + 0x28], xmm0
push eax
movlpd qword [esp + 0x34], xmm0
movlpd qword [esp + 0x3c], xmm0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], str.open
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40112f
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x40112f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [esp + 0x468]
xor ecx, esp
call fcn.00401719
mov esp, ebp
pop ebp
ret
mov edx, str.ShellExecuteEx_failed.
push 0x401600
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.004013d0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov ecx, dword [esp + 0x46c]
pop esi
xor ecx, esp
call fcn.00401719
mov esp, ebp
pop ebp
ret

Function at 0x401f51
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401f90
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401f90
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], reloc.api_ms_win_crt_stdio_l1_1_0.dll___p__commode
jne 0x401f90
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401f90
cmp dword [ecx + 0x74], 0xe
jbe 0x401f90
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401e2e
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
mov eax, dword [0xa3207c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x368]
mov dword [ebp - 0x368], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401e6e
cmp dword [ebp - 0x364], 6
jne 0x401e6e
cmp dword [ebp - 0x360], 0
je 0x401e98
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401e98
push 0xc00
call eax
test eax, eax
jne 0x401f2d
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x401f2d
cmp eax, 0x104
ja 0x401f2d
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x401ed8
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.UXTHEME], 0
push esi
mov esi, str.UXTHEME
je 0x401f2c
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov edx, edi
mov cl, byte [esi]
inc esi
movzx eax, cl
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x401ef3
push str..dll
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 8
push 0
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x401ef1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00987b09
leave
ret
Function at 0x4055b9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
inc eax
push edi
push 0x20
pop ecx
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esi + 0x78], edx
cmova eax, ecx
mov dword [esi + 0x7c], edx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x70], edx
mov dword [esi + 0x88], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], edx
mov dword [esi + 0x58], edx
cmp eax, dword [esi + 0x20]
je 0x405663
lea edi, [esi + 0xc8]
mov ebx, ecx
cmp dword [edi + 8], edx
je 0x405644
push edi
call fcn.0040558e
xor edx, edx
add edi, 0x28
sub ebx, 1
jne 0x405637
cmp dword [esi + 0x5c], ebx
je 0x40565e
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
and dword [esi + 0x5c], ebx
mov eax, dword [esi]
mov dword [esi + 0x20], eax
push dword [esi + 0x10]
lea eax, [esi + 0x98]
push eax
call fcn.00405a92
mov ecx, dword [esi + 0x58]
and dword [esi + 0x24], 0
and dword [esi + 0x28], 0
lea eax, [ecx + 5]
imul ebx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
add ebx, esi
push ebx
call fcn.00405550
mov edi, eax
test edi, edi
jne 0x4056df
lea eax, [ebx + 0x20]
push eax
call fcn.004065d7
mov edi, eax
test edi, edi
jne 0x4056df
lea eax, [ebx + 0x1c]
push eax
call fcn.004065d7
mov edi, eax
test edi, edi
jne 0x4056df
push ebx
call fcn.00406490
mov edi, eax
test edi, edi
je 0x4056df
and dword [esi + 0x44], 0
lea ebx, [esi + 0xc8]
push 0x20
pop esi
push ebx
call fcn.004054d2
add ebx, 0x28
sub esi, 1
jne 0x4056ce
mov esi, dword [ebp + 8]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x4056f3
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x405707
cmp dword [esi + 0x40], edx
jne 0x405707
cmp dword [esi + 0x3c], edx
jne 0x405707
mov dword [esi + 0x44], edx
xor ecx, ecx
cmp dword [esi + 0x44], edx
pop edi
pop esi
cmovne eax, ecx
pop ebx
pop ebp
ret 4

Function at 0x4066e4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.009d9776
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x406710
call fcn.004065f6
mov esi, eax
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x407f6b
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x9fa593
call fcn.00987daa
cmp byte [0xa33ad0], 0
mov edi, dword [ebp + 8]
jne 0x407fa7
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00407564
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.00987d65
pop ecx
test esi, esi
jmp 0x407fb3
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407fb9
mov al, 1
jmp 0x407fff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x407fca
xor al, al
jmp 0x407fff
lea ecx, [ebp - 0x50]
call fcn.0040862d
lea ecx, [ebp - 0x28]
call fcn.00406bce
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.004087f5
test al, al
je 0x407ff4
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.00987d65
pop ecx
mov al, bl
call fcn.00987d78
ret 4

Function at 0x408007
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa33ad0], 0
jne 0x40803d
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00407564
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00987d65
pop ecx
test esi, esi
pop esi
jmp 0x40804a
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x408050
mov al, 1
jmp 0x408052
xor al, al
leave
ret 4

Function at 0x40819d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00408e2b
cmp eax, 0xffffffff
je 0x4081ca
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x4081ca
and eax, 0xfffffffe
push eax
push esi
call fcn.0040859f
test al, al
je 0x408202
cmp byte [0xa33ad0], 0
push esi
jne 0x4081f4
lea eax, [ebp - 0xc]
push eax
call fcn.00407564
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00987d65
pop ecx
test esi, esi
jmp 0x4081fc
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x408202
mov al, 1
jmp 0x408204
xor al, al
pop esi
leave
ret 4

Function at 0x40832e
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa33ad0], 0
jne 0x408362
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00407564
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00987d65
pop ecx
test esi, esi
pop esi
jmp 0x40836d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x408373
mov al, 1
jmp 0x408375
xor al, al
leave
ret 4
Function at 0x40859f
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa33ad0], 0
jne 0x4085d6
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00407564
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00987d65
pop ecx
test esi, esi
pop esi
jmp 0x4085e4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4085ea
mov al, 1
jmp 0x4085ec
xor al, al
leave
ret 8

Function at 0x408e2b
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa33ad0], 0
jne 0x408e5f
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00407564
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00987d65
pop ecx
mov eax, esi
pop esi
jmp 0x408e72
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
leave
ret 4

Function at 0x409068
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409092
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x409092
xor al, al
jmp 0x4090a6
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x414795
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x9fa7cb
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0xa3207c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edx, edx
mov dword [esi], vtable.CInFileStreamVol.0
mov dword [esi + 4], vtable.CInFileStreamVol.1.0
mov dword [esi + 8], vtable.CInFileStreamVol.2.0
mov dword [esi + 0xc], vtable.CInFileStreamVol.3.0
cmp dword [esi + 0x30], edx
je 0x4147e8
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0x74]
mov eax, dword [esi + 0x28]
mov byte [ecx + eax], dl
mov ecx, dword [esi + 0x30]
mov dword [ebp - 4], edx
test ecx, ecx
je 0x4147f8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, esi
call fcn.00410c35
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret

Function at 0x4187b6
Capabilities:
Hide graphical window

Disassembly:
push 0xc
mov eax, 0x9fa3fb
call fcn.00987daa
mov esi, ecx
push 0
push dword [ebp + 0xc]
lea ecx, [esi + 0x68]
push dword [ebp + 8]
call fcn.00418329
push 0xce4
lea eax, [ebp - 0x18]
push eax
call fcn.00409de5
push dword [ebp - 0x18]
and dword [ebp - 4], 0
push dword [esi + 0x6c]
call fcn.0040a0f6
push dword [ebp - 0x18]
call fcn.00987d65
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
call fcn.00987d78
ret 8
Function at 0x418f49
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push dword [ebp + 8]
push 0x418f64
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret 8

Function at 0x4194ec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1804
call fcn.009884d0
mov eax, dword [0xa3207c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x1800
xor esi, esi
lea eax, [ebp - 0x1804]
push esi
push eax
call fcn.009d5a90
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x1804]
add esp, 0xc
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x419526
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x1004]
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x419540
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x804]
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x41955a
push esi
push esi
lea eax, [ebp - 0x1804]
push eax
push 0x41959a
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
cmp eax, 0xffffffff
je 0x41958e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00987b09
leave
ret

Function at 0x4197e2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0xa3207c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 8]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push 0
push edx
push eax
push ecx
call fcn.004196d8
add esp, 0x10
test al, al
je 0x41982f
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x1c]
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00987b09
leave
ret
Function at 0x41983d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0xa3207c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 8
pop ecx
mov ebx, dword [ebp + 0x10]
lea edi, [ebp - 0x28]
mov esi, str.SoftwareClasses
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 0x20]
or eax, 0x2001f
movsw word es:[edi], word [esi]
push eax
push 0
lea eax, [ebp - 0x28]
push eax
movzx eax, byte [ebp + 8]
sub eax, 0x7fffffff
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4198cc
push dword [ebp + 0x20]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call fcn.004196d8
add esp, 0x10
test al, al
je 0x4198cc
push dword [ebp + 0x18]
push dword [ebp - 0x38]
push dword [ebp + 0x1c]
push 0
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00987b09
leave
ret
Function at 0x4925c0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0xa3207c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
or esi, 0xffffffff
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push 3
push ecx
push eax
call dword [ebx + 0x18]
mov edi, eax
cmp edi, esi
je 0x492614
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push ecx
push ecx
push 0x2d1080
push edi
call dword [ebx + 8]
test eax, eax
push edi
cmovne esi, dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00987b09
leave
ret 4
Function at 0x944c11
Capabilities:
Hash data with md5

Disassembly:
and dword [ecx + 0x14], 0
and dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x9676b6
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
push eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], eax
add ecx, 0x14
push 0x9ffdd2
call fcn.00435b87
ret
Function at 0x9870fd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov eax, ecx
xor edx, edx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [eax]
mov dword [ebp - 4], edx
xor esi, esi
test eax, eax
jle 0x987136
mov ebx, dword [ebp + 0xc]
add ebx, edx
mov edx, dword [ebp - 8]
mov ecx, dword [edi]
mov al, byte [ebx]
lea ebx, [ebx + 4]
xor byte [ecx + esi], al
inc esi
mov eax, dword [edx]
cmp esi, eax
jl 0x987122
mov edx, dword [ebp - 4]
inc edx
add edi, 4
mov dword [ebp - 4], edx
cmp edx, 4
jl 0x987114
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x987605
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov bl, 1
dec esi
test esi, esi
jle 0x98762e
mov dl, bl
add dl, dl
mov al, dl
xor al, 0x1b
test bl, bl
movzx ecx, al
movzx eax, dl
cmovns ecx, eax
mov bl, cl
sub esi, 1
jne 0x987614
mov eax, dword [ebp + 8]
xor ecx, ecx
pop esi
mov byte [eax], bl
mov word [eax + 2], cx
mov byte [eax + 1], cl
pop ebx
pop ebp
ret 8

Function at 0x987783
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0xa3207c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x2c], eax
lea edi, [ebx + 0x64]
mov dword [ebp - 0x4c], eax
mov al, byte [ebp + 0x14]
push edi
mov dword [ebp - 0x48], ecx
mov byte [ebp - 0x2c], al
call fcn.00987d5c
push edi
push 0
push eax
mov dword [ebp - 0x40], eax
call fcn.009d5a90
push ebx
push esi
push dword [ebp - 0x40]
call fcn.009d5bf0
add esp, 0x1c
mov eax, ebx
test ebx, ebx
je 0x9877df
mov byte [esi], 0
inc esi
sub eax, 1
jne 0x9877d6
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x48]
xor eax, eax
mov byte [ebp - 8], al
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x3c]
mov word [ebp - 0xe], 0x4441
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0xc], 0x32394531
push eax
lea eax, [ebx + 0xf]
mov dword [ebp - 0x13], 0x30413436
mov ebx, dword [ebp - 0x40]
and eax, 0xfffffff0
push eax
push ebx
mov dword [ebp - 0x28], 0x41454642
mov word [ebp - 0x15], 0x4334
mov dword [ebp - 0x1a], 0x32413745
mov dword [ebp - 0x23], 0x45384545
mov byte [ebp - 0xf], 0x42
mov byte [ebp - 0x24], 0x34
mov dword [ebp - 0x1e], 0x42343339
mov byte [ebp - 0x1f], 0x46
mov byte [ebp - 0x16], 0x42
call fcn.00987297
mov dword [ebp - 0x2c], eax
mov edx, ebx
test edi, edi
je 0x98786d
mov byte [edx], 0
inc edx
sub edi, 1
jne 0x987864
push dword [ebp - 0x44]
mov esi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
push eax
push esi
call fcn.009878f6
push ebx
call fcn.00987d65
push dword [ebp - 0x2c]
call fcn.00987d65
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00987b09
leave
ret 0x10
Function at 0x9878a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x9878c9
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
sub esi, ecx
sub edi, ecx
mov al, byte [esi + ecx]
xor al, byte [ecx]
mov byte [edi + ecx], al
inc ecx
sub edx, 1
jne 0x9878b9
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x9878cd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
sub edx, ecx
push edi
push 4
sub esi, ecx
pop edi
mov al, byte [edx + ecx]
xor al, byte [ecx]
mov byte [esi + ecx], al
inc ecx
sub edi, 1
jne 0x9878e2
pop edi
pop esi
pop ebp
ret 0xc