joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407300
Capabilities:
Delete registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x407325
xor eax, eax
ret 0xc
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x40733e
xor eax, eax
ret 0xc
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
inc eax
ret 0xc

Function at 0x407360
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
mov byte [0x41d980], 0
push eax
push 0xf003f
push 0
push ecx
push edx
mov dword [esp + 0x14], 0x100
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4073a2
xor eax, eax
add esp, 8
ret 0xc
mov edx, dword [esp + 0x14]
lea eax, [esp]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 8]
push 0x41d980
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4073da
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 8
ret 0xc
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
not eax
and eax, 0x41d980
add esp, 8
ret 0xc

Function at 0x407460
Capabilities:
Copy file
Set file attributes

Disassembly:
sub esp, 0x408
lea eax, [esp + 4]
push esi
mov esi, ecx
push 0x104
push eax
mov ecx, dword [esi + 0x200]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x20c]
lea eax, [esp + 0x10c]
push edx
lea ecx, [esp + 0x310]
push eax
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
call fcn.004103f4
add esp, 0x14
lea ecx, [esp + 0x20c]
lea edx, [esp + 0x10c]
push ecx
push edx
mov ecx, esi
call fcn.00407270
push eax
push str._s_s_s
push 0x41d87c
call fcn.0040ff2e
push 0x41d87c
call fcn.00406ef0
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0x18
push 0x80
push 0x41d87c
call esi
push 0
lea eax, [esp + 0xc]
push 0x41d87c
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x80
push 0x41d87c
call esi
mov eax, 0x41d87c
pop esi
add esp, 0x408
ret
Function at 0x4079e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
mov ebp, ecx
push esi
push edi
push str.MSGTEXT
mov eax, dword [ebp + 4]
lea edi, [ebp + 0x30]
push 0x65
push eax
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x407a8b
mov eax, dword [ebp + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov eax, dword [ebp + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x407a8b
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov cl, byte [eax + ebx - 1]
test cl, cl
je 0x407a6e
mov ecx, ebx
mov esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp ebx, 0xff
rep movsb byte es:[edi], byte [esi]
jl 0x407a58
mov ebx, 0xff
mov esi, dword [esp + 0x10]
mov byte [ebx + ebp + 0x30], 0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x100
push eax
push edi
call fcn.0040fe30
add esp, 0xc
mov byte [ebp + 0x12f], 0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x409320
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [esi + 0x14]
push edi
lea edi, [esi + 0x14]
xor ebx, ebx
test cl, cl
mov ecx, esi
setne bl
call fcn.004092c0
test ebx, ebx
je 0x40934a
inc dword [esi + 0x11c]
mov eax, dword [esp + 0x120]
test eax, eax
jne 0x40935a
mov eax, str.IDM_MUSIC
push str.MIDI
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x4093fa
mov ecx, dword [esi]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x4093fa
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esi]
push ebx
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edi
push 0
lea ecx, [esp + 0x20]
push 0x41d878
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x41b094
push edi
call fcn.004102a3
mov edx, dword [esp + 0x1c]
mov ebx, eax
mov eax, dword [esp + 0x18]
push ebx
push edx
push 1
push eax
call fcn.004106e1
push ebx
call fcn.0041039e
add esp, 0x1c
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [esi + 8]
push edi
push ecx
mov ecx, esi
call fcn.00409410
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
Function at 0x409610
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x30c
push esi
mov esi, dword [esp + 0x318]
cmp byte [esi], 0
je 0x40964d
mov al, byte [esi]
movsx ecx, al
sub ecx, 0x2d
je 0x409647
sub ecx, 4
je 0x409688
dec ecx
je 0x40965a
test al, al
je 0x409648
cmp al, 0x20
je 0x409648
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x409639
jmp 0x409648
inc esi
cmp byte [esi], 0
jne 0x409623
mov eax, 1
pop esi
add esp, 0x30c
ret
mov al, byte [esi + 2]
add esi, 2
test al, al
je 0x40967e
push esi
call fcn.004106d6
add esp, 4
test eax, eax
je 0x40967e
push esi
call fcn.004106d6
add esp, 4
test eax, eax
jne 0x409671
xor eax, eax
pop esi
add esp, 0x30c
ret
mov al, byte [esi + 2]
add esi, 2
test al, al
je 0x40973f
push ebx
push edi
push 0x41b094
push esi
call fcn.004102a3
mov edi, eax
add esp, 8
test edi, edi
jne 0x4096c0
push 0x41b094
push esi
call fcn.004102a3
mov edi, eax
add esp, 8
test edi, edi
je 0x4096ac
mov ecx, dword [esp + 0x31c]
lea eax, [esp + 0xc]
push 0x103
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0xc]
push 0x41ab68
push edx
call fcn.004102a3
mov ebx, eax
push ebx
call fcn.004108bd
add esp, 0xc
cmp eax, 0xffffffff
je 0x40970c
push edi
push eax
call fcn.00410899
push ebx
call fcn.004108bd
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4096f7
push edi
call fcn.0041039e
lea eax, [esp + 0x10]
lea ecx, [esp + 0x114]
push eax
push esi
push str._s__2__s
push ecx
call fcn.0040ff2e
add esp, 0x14
lea edx, [esp + 0x110]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x30c
ret
Function at 0x40b3e0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x50
push esi
mov esi, ecx
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x40b4cd
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x40b4cd
mov ecx, dword [esi + 8]
push ebx
push ebp
lea eax, [esp + 0xc]
push edi
mov ebp, 1
push eax
push ecx
mov dword [esi + 0x40], ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
sub edi, edx
sub ebx, ecx
mov ecx, dword [esi + 8]
or edx, 0xffffffff
push ebp
or eax, 0xffffffff
push ebx
sub edx, ebx
push edi
sub eax, edi
push edx
push eax
push ecx
mov dword [esi + 0x48], ebp
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esi + 8]
mov dword [esi + 0x48], 0
push edx
push 0x40b1d0
call dword [sym.imp.USER32.dll_EnumWindows]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
mov ebp, eax
mov eax, dword [esp + 0x14]
push eax
push ecx
push edx
push ebp
call fcn.00401600
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 4]
push eax
push ecx
push edx
push ebp
call fcn.00401600
add esp, 0x20
push ebp
xor ebp, ebp
push ebp
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 8]
push ebp
push ebx
push edi
push eax
push ecx
push edx
mov dword [esi + 0x48], 1
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esi + 8]
push ebp
push ebp
push eax
mov dword [esi + 0x48], ebp
call dword [sym.imp.USER32.dll_InvalidateRect]
mov dword [esi + 0x40], ebp
pop edi
pop ebp
pop ebx
mov edx, dword [esi + 8]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_BeginPaint]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.0040b080
mov eax, dword [esi + 8]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
pop esi
add esp, 0x50
ret 4
Function at 0x40ba60
Capabilities:
Find taskbar

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
mov edx, dword [esp + 0x20]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x28]
xor ebp, ebp
mov dword [esi + 4], eax
mov eax, dword [esp + 0x24]
push edi
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
mov dword [esi], 0x417538
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movsx ecx, ax
push ecx
call fcn.0040fa29
add esp, 4
push ebp
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebx, eax
push ebp
cmp ebx, ebp
je 0x40bb20
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
call ebp
push 0xa
push edi
mov dword [esi + 0x10], eax
call ebp
push edi
push 0
mov dword [esi + 0x14], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x10]
sub eax, edx
cmp eax, ecx
jl 0x40bb46
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x14]
sub ecx, edx
add eax, ecx
pop edi
mov dword [esi + 0x14], eax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
call ebx
push 0xa
push edi
mov dword [esi + 0x10], eax
call ebx
push edi
push ebp
mov dword [esi + 0x14], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
Function at 0x41480d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41ca10
cmp edx, dword [eax]
je 0x41482f
add eax, 8
inc ecx
cmp eax, 0x41caa0
jl 0x414820
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41ca10]
jne 0x41495d
mov eax, dword [0x41f66c]
cmp eax, 1
je 0x414937
test eax, eax
jne 0x414860
cmp dword [0x41c4e4], 1
je 0x414937
cmp edx, 0xfc
je 0x41495d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x414897
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00413cb0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00413be0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4148da
lea eax, [ebp - 0x1a4]
push eax
call fcn.00413be0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x417c00
push edi
call fcn.0040fe30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00413cb0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00413cc0
lea eax, [ebp - 0xa0]
push 0x417be0
push eax
call fcn.00413cc0
push dword [esi + 0x41ca14]
lea eax, [ebp - 0xa0]
push eax
call fcn.00413cc0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00415922
add esp, 0x2c
pop edi
jmp 0x41495d
lea eax, [ebp + 8]
lea esi, [esi + 0x41ca14]
push 0
push eax
push dword [esi]
call fcn.00413be0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.1001861e
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.1001861e
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret
Function at 0x425061
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x425070
pop dword [ebp - 0x50]
mov eax, 0x446d9360
add eax, 0xbbd4bd10
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x4fc33
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x466e
xor edx, edx
add edx, eax
mov ebx, 0x488e00
add ebx, dword [ebp - 0x50]
mov edi, 0xdae9f2c1
add dword [ebp - 0x38], ecx
mov esi, dword [ebx]
sub dword [ebp - 0x34], ebx
xor esi, edi
sub dword [ebp - 0x20], esi
mov dword [edx], esi
xor dword [ebp - 0x48], 0x74ad4823
add edx, 0x837405e1
add edx, 0x7c8bfa23
add ebx, 0x82fba5b5
sub ebx, 0x82fba5b1
loop 0x4250ba
add eax, 0x10c8b
mov ebx, eax
add eax, 5
mov ecx, 0xaccbf833
add ecx, 0x537407cd
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x10022e70
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d9c9b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x3c
push esi
mov eax, dword [0x100f2040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x1011cb20]
test al, 1
jne 0x10022fbb
or eax, 1
mov dword [0x1011cb20], eax
mov dword [ebp - 4], 0
mov eax, 0x10
movaps xmm0, xmmword [0x100e70f0]
xorps xmm0, xmmword [0x100e7440]
mov dword [ebp - 0x20], 0xf9e6f9e6
mov dword [ebp - 0x1c], 0x9ff99be1
mov word [ebp - 0x18], 0xd9e8
movups xmmword [ebp - 0x30], xmm0
xor byte [ebp + eax - 0x30], 0xd9
inc eax
cmp eax, 0x1a
jb 0x10022ef3
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x48], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022f20
sub ecx, edx
lea eax, [ebp - 0x30]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.1002c3c0
mov byte [ebp - 4], 1
mov edx, dword [0x10132f7c]
test edx, edx
je 0x10022f49
mov edx, dword [edx + 0x50]
jmp 0x10022f4b
xor edx, edx
mov eax, dword [0x10132f74]
test eax, eax
je 0x10022f59
mov eax, dword [eax + 0x18]
jmp 0x10022f5b
xor eax, eax
lea ecx, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.10022960
mov eax, dword [ebp - 0x14]
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
mov dword [0x1011cb24], eax
cmp ecx, 0xf
jbe 0x10022fb2
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10022fa3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10022fa3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100d7f21
mov eax, dword [0x1011cb24]
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x10022fc0
mov eax, dword [0x1011cb24]
test eax, eax
je 0x10022fc8
mov ecx, esi
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x1002c1c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100da075
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x100f2040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x10], ecx
push 0x458
call fcn.100d7ac2
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
lea edi, [eax + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], edi
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], 0x100e55dc
mov eax, dword [esi]
mov dword [edi + 0xc], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x3e8], 0
mov dword [edi + 0x3ec], 0
mov dword [edi + 0x3f0], 0
mov byte [edi + 0x3f4], 0
mov dword [edi + 0x3f8], 0
mov byte [edi + 0x3fc], 0
mov dword [edi + 0x400], 0
mov dword [edi + 0x404], 0
mov dword [edi + 0x408], 0
mov dword [edi + 0x40c], 0
mov dword [edi + 0x410], 0
mov dword [edi + 0x414], 0
mov word [edi + 0x424], 0
movups xmmword [edi + 0x430], xmm0
mov dword [edi + 0x440], 0
mov dword [edi + 0x444], 0xf
mov byte [edi + 0x430], 0
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.10023090
mov ecx, dword [ebp - 0x10]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x14]
movq qword [ecx], xmm0
mov dword [ecx + 4], 0
mov dword [ecx + 4], eax
mov eax, ecx
mov dword [ecx], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10031060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], 0xbcbdb694
xor eax, eax
mov dword [ebp - 0xc], 0xbcadf9b5
mov dword [ebp - 8], 0xabacada1
mov word [ebp - 4], 0xaabc
mov byte [ebp - 2], 0xd9
xor byte [ebp + eax - 0x10], 0xd9
inc eax
cmp eax, 0xf
jb 0x10031087
movaps xmm0, xmmword [0x100e6e20]
mov eax, 0x10
xorps xmm0, xmmword [0x100e70f0]
mov dword [ebp - 0x18], 0xacbaadb7
mov word [ebp - 0x14], 0xbcbb
mov byte [ebp - 0x12], 0xd9
movups xmmword [ebp - 0x28], xmm0
nop word [eax + eax]
xor byte [ebp + eax - 0x28], 0xd9
inc eax
cmp eax, 0x17
jb 0x100310c0
mov ecx, dword [0x10132fe8]
lea edx, [ebp - 0x10]
push 0
push 1
push edx
mov eax, dword [ecx]
lea edx, [ebp - 0x28]
push edx
mov eax, dword [eax + 0x150]
call eax
mov ecx, eax
mov dword [0x10131630], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov dword [ebp - 0x10], 0xbcbdb694
xor eax, eax
mov dword [ebp - 0xc], 0xbcadf9b5
mov dword [ebp - 8], 0xabacada1
mov word [ebp - 4], 0xaabc
mov byte [ebp - 2], 0xd9
xor byte [ebp + eax - 0x10], 0xd9
inc eax
cmp eax, 0xf
jb 0x10031117
movaps xmm0, xmmword [0x100e6f20]
mov eax, 0x10
xorps xmm0, xmmword [0x100e70f0]
mov dword [ebp - 0x18], 0xd9adb8b5
movups xmmword [ebp - 0x28], xmm0
xor byte [ebp + eax - 0x28], 0xd9
inc eax
cmp eax, 0x14
jb 0x10031140
mov ecx, dword [0x10132fe8]
lea edx, [ebp - 0x10]
push 0
push 1
push edx
mov eax, dword [ecx]
lea edx, [ebp - 0x28]
push edx
mov eax, dword [eax + 0x150]
call eax
mov ecx, eax
mov dword [0x10131634], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov esp, ebp
pop ebp
ret