joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002b97
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1005004]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x214], eax
push 0x105
lea eax, [ebp - 0x210]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1002bdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x1001850
jmp 0x1002bff
push 2
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 0x218], eax
jne 0x1002c0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x10017e0
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
pop ecx
mov eax, esi
jmp 0x1002cc1
push ebx
push edi
push esi
push esi
push 0x10017cc
push esi
push esi
lea ecx, [ebp - 0x210]
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push 0x1001770
push 0x100175c
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, dword [sym.imp.msvcrt.dll_wprintf]
mov ebx, eax
cmp ebx, esi
jne 0x1002c5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001740
call fcn.01002720
pop ecx
pop ecx
jmp 0x1002c9c
mov eax, dword [ebp - 0x214]
push 0x1001710
mov dword [ebp - 0x214], eax
call edi
pop ecx
lea eax, [ebp - 0x214]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x1002c95
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001690
call edi
pop ecx
pop ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.01002ab2
mov ebx, eax
cmp ebx, esi
je 0x1002cbd
push ebx
push 0x1001608
call edi
pop ecx
pop ecx
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.010037fc
leave
ret 4

Function at 0x1002cd3
Capabilities:
Delete service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push 2
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, esi
jne 0x1002d0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x1001960
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
pop ecx
mov eax, esi
jmp 0x1002d6b
push edi
push 0x10000
push 0x100175c
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jne 0x1002d40
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001928
mov dword [ebp - 4], eax
call fcn.01002720
pop ecx
pop ecx
jmp 0x1002d64
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1002d61
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10018f0
mov dword [ebp - 4], eax
call fcn.01002720
pop ecx
pop ecx
push edi
call esi
push ebx
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002e79
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1005004]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push 0x1001bdc
mov dword [ebp - 0x214], eax
call fcn.01002720
cmp word [esi], 0x22
mov edi, dword [sym.imp.ntdll.dll_wcsncpy]
pop ecx
pop ecx
jne 0x1002f26
mov ebx, esi
inc ebx
inc ebx
cmp word [ebx], 0x22
je 0x1002eb6
push 0x22
push ebx
call dword [sym.imp.ntdll.dll_wcschr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1002ff3
push 0x20
push ebx
call dword [sym.imp.ntdll.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x1002f09
cmp eax, esi
jae 0x1002f09
sub esi, ebx
sar esi, 1
lea eax, [esi + 2]
push eax
add ebx, 0xfffffffe
lea eax, [ebp - 0x210]
push ebx
push eax
call edi
add esp, 0xc
and word [ebp + esi*2 - 0x20c], 0
jmp 0x1002f67
sub esi, ebx
sar esi, 1
push esi
lea eax, [ebp - 0x210]
push ebx
push eax
call edi
add esp, 0xc
and word [ebp + esi*2 - 0x210], 0
jmp 0x1002f67
lea eax, [esi + 2]
push 0x20
push eax
call dword [sym.imp.ntdll.dll_wcschr]
test eax, eax
pop ecx
pop ecx
jne 0x1002f4a
lea eax, [ebp - 0x210]
push esi
push eax
call dword [sym.imp.ntdll.dll_wcscpy]
pop ecx
pop ecx
jmp 0x1002f67
sub eax, esi
mov ebx, eax
sar ebx, 1
push ebx
lea eax, [ebp - 0x210]
push esi
push eax
call edi
add esp, 0xc
and word [ebp + ebx*2 - 0x210], 0
lea eax, [ebp - 0x210]
push eax
push 0x1001ba4
call fcn.01002720
pop ecx
pop ecx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1002fa3
push eax
lea eax, [ebp - 0x210]
push eax
push 0x1001b58
call fcn.01002720
add esp, 0xc
jmp 0x1002ff3
test al, 0x50
je 0x1002fb5
lea eax, [ebp - 0x210]
push eax
push 0x1001b08
jmp 0x1002fec
cmp word [ebp - 0x210], 0x22
lea ebx, [ebp - 0x20e]
je 0x1002fcb
lea ebx, [ebp - 0x210]
lea eax, [ebp - 0x210]
push 0x5c
push eax
call dword [sym.imp.ntdll.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
jne 0x1002ff7
lea eax, [ebp - 0x210]
push eax
push 0x1001ac4
call fcn.01002720
pop ecx
pop ecx
xor eax, eax
jmp 0x1003025
sub eax, ebx
mov esi, eax
sar esi, 1
push esi
push ebx
mov ebx, dword [ebp - 0x214]
push ebx
call edi
and word [ebx + esi*2], 0
push ebx
lea eax, [ebp - 0x210]
push eax
push 0x1001a9c
call fcn.01002720
xor eax, eax
add esp, 0x18
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010037fc
leave
ret 8
Function at 0x1003039
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x88c
mov eax, dword [0x1005004]
mov edx, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 4], eax
xor eax, eax
push 0x11
pop ecx
lea edi, [ebp - 0x88c]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x848]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push edx
lea eax, [ebp - 0x624]
push eax
mov dword [ebp - 0x88c], 0x44
call dword [sym.imp.ntdll.dll_wcscpy]
lea eax, [ebp - 0x624]
push eax
push 0x1001dc8
call fcn.01002720
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
xor ebx, ebx
lea eax, [ebp - 0x624]
push eax
mov word [ebp - 0x210], bx
mov dword [ebp - 0x838], ebx
mov dword [ebp - 0x834], ebx
call fcn.01002e79
test eax, eax
jne 0x10030c8
push 2
pop eax
jmp 0x1003218
cmp word [ebp - 0x210], bx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x1003133
lea eax, [ebp - 0x830]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1003124
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x100310b
mov dword [ebp - 0x838], 1
jmp 0x1003133
lea eax, [ebp - 0x210]
push eax
call esi
push eax
push 0x1001d68
call fcn.01002720
add esp, 0xc
jmp 0x1003133
call esi
push eax
push 0x1001d34
call fcn.01002720
pop ecx
pop ecx
lea eax, [ebp - 0x624]
push eax
push 0x1001d08
call fcn.01002720
pop ecx
pop ecx
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x88c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x624]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1003185
call esi
lea ecx, [ebp - 0x624]
push ecx
push eax
push 0x1001cd4
call fcn.01002720
add esp, 0xc
jmp 0x10031ed
push 0x1001cac
call fcn.01002720
pop ecx
push 0xffffffffffffffff
push dword [ebp - 0x848]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x834]
push eax
push dword [ebp - 0x848]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x10031d7
cmp dword [ebp - 0x834], ebx
je 0x10031d7
push dword [ebp - 0x834]
lea eax, [ebp - 0x624]
push eax
push 0x1001c60
call fcn.01002720
add esp, 0xc
push dword [ebp - 0x848]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x844]
call edi
cmp dword [ebp - 0x838], ebx
je 0x1003215
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x1003215
call esi
push eax
push 0x1001c08
call fcn.01002720
pop ecx
pop ecx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.010037fc
leave
ret 4
Function at 0x10034ca
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1005004]
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1003512
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push 0x1002210
call fcn.01002720
pop ecx
pop ecx
call esi
jmp 0x10035f9
lea eax, [ebp - 0x210]
push 0x2e
push eax
call dword [sym.imp.ntdll.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
jne 0x1003545
push 0x7b
lea eax, [ebp - 0x210]
push eax
push 0x10021b8
call fcn.01002720
add esp, 0xc
push 0x7b
pop eax
jmp 0x10035f9
push edi
add eax, 2
push 0x10021b0
push eax
call dword [sym.imp.ntdll.dll_wcscpy]
pop ecx
pop ecx
mov esi, 0x1001fe8
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.0100337e
mov edi, eax
test edi, edi
je 0x100357c
push edi
push 0x1002170
call fcn.01002720
pop ecx
pop ecx
push 0x104
lea eax, [ebp - 0x418]
push eax
push esi
call fcn.0100322b
test eax, eax
je 0x10035c0
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0100337e
mov edi, eax
test edi, edi
je 0x10035c4
lea eax, [ebp - 0x418]
push eax
push edi
push 0x1002120
call fcn.01002720
add esp, 0xc
test edi, edi
jne 0x10035f6
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10035e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10020c8
jmp 0x10035ef
lea eax, [ebp - 0x210]
push eax
push 0x1002080
call fcn.01002720
pop ecx
pop ecx
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.010037fc
leave
ret

Function at 0x10037fc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1005004]
jne 0x100380d
test ecx, 0xffff0000
jne 0x100380d
ret
jmp fcn.01003817
Function at 0x402349
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x4048c8
call fcn.00402ab4
push 1
call fcn.00402611
pop ecx
test al, al
jne 0x4021f2
push 7
call fcn.0040287f
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004025dc
mov byte [ebp - 0x24], al
mov eax, dword [0x40641c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4021eb
test eax, eax
jne 0x40225c
mov dword [0x40641c], ecx
push 0x40416c
push 0x40415c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40223f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402343
push 0x404158
push 0x404150
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x40641c], 2
jmp 0x402261
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0040276e
pop ecx
call fcn.00402873
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x402291
push esi
call fcn.004026e1
pop ecx
test al, al
je 0x402291
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00402aae
call esi
call fcn.00402879
mov esi, eax
cmp dword [esi], edi
je 0x4022af
push esi
call fcn.004026e1
pop ecx
test al, al
je 0x4022af
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.00402994
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.004029c7
test al, al
jne 0x4022e8
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x4022f1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0040278b
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x402343
call fcn.00402afa
ret
call fcn.00402063
jmp 0x4021d3

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x42e005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x1001761
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10017ca
push esi
lea eax, [ebp - 0xc]
push eax
push 0x10011e4
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x10017c0
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push esi
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push 0x80010002
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
leave
ret
Function at 0x1004318
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x10061a0]
push edi
push 2
xor edi, edi
cmp dword [ebp + 0x1a4], edi
mov dword [ebp + 0x194], eax
pop eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x7c], edi
jne 0x100435a
cmp dword [ebp + 0x1a8], eax
jl 0x100435a
mov ecx, dword [ebp + 0x1ac]
mov eax, dword [ecx]
cmp word [eax], di
jne 0x1004362
push 3
pop eax
jmp 0x1004429
push ebx
mov ebx, dword [ecx + 4]
cmp word [ebx], di
jne 0x1004373
push 3
pop eax
jmp 0x1004428
push esi
push edi
lea ecx, [ebp - 0x74]
push ecx
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, esi
jae 0x1004424
cmp eax, edi
je 0x1004424
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1004424
push 0x1001514
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [ebp - 0x80], eax
je 0x100441f
push 0x10014f0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, edi
je 0x1004416
lea eax, [ebp - 0x74]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ebx
add eax, 0x20
push 0xeeae
push eax
call fcn.01001650
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
push 1
lea eax, [ebp - 0x74]
push eax
push ebx
push edi
call esi
test eax, eax
je 0x1004416
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push 0xeeb2
push eax
call fcn.01001650
xor eax, eax
cmp dword [ebp - 0x7c], edi
pop ecx
setne al
pop ecx
mov dword [ebp - 0x78], eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x78]
jmp 0x1004427
push 2
pop eax
pop esi
pop ebx
mov ecx, dword [ebp + 0x194]
pop edi
call fcn.01005203
add ebp, 0x198
leave
ret 0x10

Function at 0x1005203
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov edx, dword [0x10061b4]
test edx, edx
mov eax, dword [0x10061a0]
mov dword [ebp + 0x2a4], eax
je 0x1005153
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x80], 0xc0000409
call edx
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.01005203
add ebp, 0x2a8
leave
ret
cmp ecx, dword [0x10061a0]
jne 0x100520c
ret
jmp 0x10050fe
Function at 0x407370
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
xorps xmm0, xmm0
mov esi, edx
mov edi, ecx
mov ebp, esp
movups xmmword [esp + 0x10], xmm0
movups xmmword [esp], xmm0
push 2
push 0x20
push ebp
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x4073ac
mov ebx, eax
push 0x20
push ebp
call dword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x4073f5
movups xmm0, xmmword [esp]
movups xmm1, xmmword [esp + 0x10]
movups xmmword [edi], xmm0
xorps xmm0, xmm0
movups xmmword [edi + 0x10], xmm1
movsd qword [edi + 0x20], xmm0
movsd qword [edi + 0x28], xmm0
mov dword [edi + 0x40], 0
mov ecx, 0xffffff00
mov edx, esi
mov eax, dword [edi + 0x34]
add ecx, dword [edi + 0x30]
adc eax, 0xffffffff
mov dword [edi + 0x38], ecx
mov ecx, edi
mov dword [edi + 0x3c], eax
call fcn.0040c970
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [0x90320d]
xor ecx, ecx
mov edx, 4
call fcn.0049d570
test eax, eax
je 0x407425
and ebx, 0x7fffffff
mov dword [eax], ebx
push eax
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x4073c9
ud2
Function at 0x411800
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov ebx, dword [esp + 0x54]
mov dword [esp + 0xc], edx
mov dword [esp], ecx
xor ecx, ecx
xor edi, edi
movzx eax, byte [0x90320d]
mov edx, ebx
call fcn.0049d570
test eax, eax
je 0x4119a7
movzx ecx, byte [esp + 0x58]
mov esi, eax
mov edx, dword [esp + 0x50]
mov ebp, ebx
and ebx, 0x7fffffe0
movzx eax, cl
movd xmm0, eax
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
pshufd xmm1, xmm0, 0
nop word cs:[eax + eax]
nop
movdqu xmm2, xmmword [edx + edi]
movdqu xmm3, xmmword [edx + edi + 0x10]
pxor xmm2, xmm1
pxor xmm3, xmm1
movdqu xmmword [esi + edi], xmm2
movdqu xmmword [esi + edi + 0x10], xmm3
add edi, 0x20
cmp ebx, edi
jne 0x411860
cmp ebx, ebp
je 0x4118ce
mov eax, ebp
test al, 0x18
je 0x4118bb
mov edi, eax
and edi, 0x7ffffff8
nop word [eax + eax]
movq xmm1, qword [edx + ebx]
pxor xmm1, xmm0
movq qword [esi + ebx], xmm1
add ebx, 8
cmp edi, ebx
jne 0x4118a0
cmp edi, eax
jne 0x4118c0
jmp 0x4118ce
mov edi, ebx
nop dword [eax]
movzx eax, byte [edx + edi]
xor al, cl
mov byte [esi + edi], al
inc edi
cmp ebp, edi
jne 0x4118c0
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
pxor xmm0, xmm0
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 7
lea ecx, [esp + 4]
movq qword [esp + 0x2e], xmm0
movq qword [esp + 0x28], xmm0
mov byte [esp + 0x31], 1
mov word [esp + 0x33], 0x101
push eax
push dword [esp + 0x50]
call fcn.0048ea90
add esp, 8
cmp byte [esp + 4], 4
jne 0x411930
mov ebx, dword [esp + 8]
jmp 0x41193c
mov eax, dword [esp + 4]
mov ebx, dword [esp + 8]
cmp al, 4
jne 0x411977
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ebp
push esi
call fcn.00403c90
add esp, 8
cmp byte [esp + 0x14], 4
jne 0x411961
mov eax, dword [esp]
mov byte [eax], 4
jmp 0x41196e
movq xmm0, qword [esp + 0x14]
mov eax, dword [esp]
movq qword [eax], xmm0
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x411990
mov edx, dword [esp]
mov ecx, eax
shr ecx, 8
mov word [edx + 1], cx
mov ecx, eax
shr ecx, 0x18
mov byte [edx + 3], cl
mov byte [edx], al
mov dword [edx + 4], ebx
push esi
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
Function at 0x422510
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0x80
jb 0x4226e4
movdqu xmm4, xmmword [edx]
not ecx
movdqu xmm3, xmmword [edx + 0x10]
movdqu xmm2, xmmword [edx + 0x20]
movdqu xmm1, xmmword [edx + 0x30]
movdqa xmm5, xmmword [0x4f34d0]
add edx, 0x40
add eax, 0xffffffc0
movd xmm0, ecx
pxor xmm0, xmm4
movq xmm4, qword [0x4f34c0]
nop word cs:[eax + eax]
nop dword [eax]
movdqa xmm6, xmm0
movdqa xmm7, xmm0
movdqu xmm0, xmmword [edx]
add eax, 0xffffffc0
pclmulqdq xmm6, xmm4, 0
pclmulqdq xmm7, xmm5, 0x11
pxor xmm0, xmm6
movdqu xmm6, xmmword [edx + 0x10]
pxor xmm0, xmm7
movdqa xmm7, xmm3
pclmulqdq xmm3, xmm5, 0x11
pclmulqdq xmm7, xmm4, 0
pxor xmm7, xmm6
movdqu xmm6, xmmword [edx + 0x20]
pxor xmm3, xmm7
movdqa xmm7, xmm2
pclmulqdq xmm2, xmm5, 0x11
pclmulqdq xmm7, xmm4, 0
pxor xmm7, xmm6
movdqu xmm6, xmmword [edx + 0x30]
add edx, 0x40
cmp eax, 0x3f
pxor xmm2, xmm7
movdqa xmm7, xmm1
pclmulqdq xmm1, xmm5, 0x11
pclmulqdq xmm7, xmm4, 0
pxor xmm7, xmm6
pxor xmm1, xmm7
ja 0x422560
movq xmm4, qword [0x4f34e0]
pmovzxdq xmm5, qword [0x4f3520]
movdqa xmm6, xmm0
cmp eax, 0x10
pclmulqdq xmm6, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm6
pxor xmm0, xmm3
movdqa xmm3, xmm0
pclmulqdq xmm0, xmm5, 0x11
pclmulqdq xmm3, xmm4, 0
pxor xmm0, xmm3
pxor xmm0, xmm2
movdqa xmm2, xmm0
pclmulqdq xmm0, xmm5, 0x11
pclmulqdq xmm2, xmm4, 0
pxor xmm0, xmm2
pxor xmm0, xmm1
jb 0x422677
nop word cs:[eax + eax]
nop
movdqu xmm1, xmmword [edx]
movdqa xmm2, xmm0
add eax, 0xfffffff0
pclmulqdq xmm0, xmm5, 0x11
add edx, 0x10
pclmulqdq xmm2, xmm4, 0
cmp eax, 0xf
pxor xmm2, xmm1
pxor xmm0, xmm2
ja 0x422650
pmovzxdq xmm1, qword [0x4f3520]
pxor xmm2, xmm2
test eax, eax
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
pblendw xmm2, xmm0, 3
psrldq xmm0, 4
pclmulqdq xmm2, xmmword [0x4f34f0], 0
pxor xmm0, xmm2
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
pclmulqdq xmm2, xmmword [0x4f3500], 0x10
pblendw xmm2, xmm1, 0xfc
pclmulqdq xmm2, xmmword [0x4f3510], 0
pxor xmm2, xmm0
pextrd ecx, xmm2, 1
not ecx
je 0x4226ee
push eax
call fcn.00422170
add esp, 4
ret
mov eax, ecx
ret

Function at 0x4244b0
Capabilities:
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x128
cmp dword [esp + 0x140], 0
call fcn.004244c7