joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b52a0
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x204
mov eax, dword [0x61f138]
xor eax, esp
mov dword [esp + 0x200], eax
lea eax, [esp]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
lea eax, [eax + 2]
test cx, cx
jne 0x4b52d0
mov ecx, dword [str.Aeroadmin_]
mov dword [eax], ecx
mov ecx, dword [0x5f3458]
mov dword [eax + 4], ecx
mov ecx, dword [0x5f345c]
mov dword [eax + 8], ecx
mov ecx, dword [0x5f3460]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x5f3464]
push esi
mov dword [eax + 0x10], ecx
mov ecx, dword [0x5f3468]
push edi
mov dword [eax + 0x14], ecx
lea eax, [esp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edi, [esp + 8]
add edi, 0xfffffffe
jmp 0x4b5330
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4b5330
mov ecx, 6
mov esi, str.contacts.csv
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 8]
lea edx, [ecx + 2]
movsw word es:[edi], word [esi]
pop edi
pop esi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b5353
sub ecx, edx
lea eax, [esp]
sar ecx, 1
push ecx
push eax
mov ecx, 0x6aaecc
call fcn.00445cb0
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.0056eeb4
add esp, 0x204
ret
Function at 0x4b5390
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bec90
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x61f138]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [edi], vtable.DialogContactBook.0
call fcn.004b6020
lea eax, [ebp - 0x20]
push eax
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREAeroAdmin
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4b5450
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
shl ecx, 0x10
movzx eax, dx
or ecx, eax
mov eax, dword [ebp - 0x18]
sub eax, edx
mov dword [ebp - 0x28], ecx
movzx ecx, ax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
shl eax, 0x10
push 4
or ecx, eax
lea eax, [ebp - 0x28]
push eax
push 4
push 0
push 0x5f3580
push dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
call esi
push 4
lea eax, [ebp - 0x2c]
push eax
push 4
push 0
push str.contactsWindowSize
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [edi + 0x27fc]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [edi + 0x2800]
mov dword [0x6c4e58], 0
test eax, eax
je 0x4b54f6
push dword [edi + 0x2804]
push eax
call fcn.004bc8f0
mov ecx, dword [edi + 0x2808]
mov eax, 0x88888889
mov esi, dword [edi + 0x2800]
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
shl ecx, 4
sub ecx, eax
shl ecx, 2
cmp ecx, 0x1000
jb 0x4b54ce
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x4b556f
mov esi, edx
push ecx
push esi
call fcn.0056eec5
mov dword [edi + 0x2800], 0
add esp, 8
mov dword [edi + 0x2804], 0
mov dword [edi + 0x2808], 0
mov eax, dword [edi + 0xac]
test eax, eax
je 0x4b554d
mov ecx, dword [edi + 0xb4]
sub ecx, eax
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4b5525
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b556f
mov eax, edx
push ecx
push eax
call fcn.0056eec5
mov dword [edi + 0xac], 0
add esp, 8
mov dword [edi + 0xb0], 0
mov dword [edi + 0xb4], 0
mov ecx, edi
call fcn.00528720
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056eeb4
mov esp, ebp
pop ebp
ret
call fcn.00591dc6
int3
Function at 0x4beb60
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1d0
mov eax, dword [0x61f138]
xor eax, esp
mov dword [esp + 0x1cc], eax
push ebx
push esi
push edi
lea eax, [esp + 0x10]
mov esi, edx
push eax
mov edi, ecx
call dword [sym.imp.USER32.dll_GetKeyboardState]
push 0
and esi, 0xffff0000
lea eax, [esp + 0x10]
push eax
neg esi
lea eax, [esp + 0x18]
push eax
sbb esi, esi
neg esi
push esi
push edi
call dword [sym.imp.USER32.dll_ToAscii]
movsx ecx, byte [esp + 0xc]
xor ebx, ebx
test ecx, ecx
mov esi, eax
lea eax, [esp + 0x110]
cmovns ebx, ecx
push ebx
push str.return_value___d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x1e4]
add esp, 0xc
xor eax, eax
cmp esi, 1
cmovne ebx, eax
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.0056eeb4
add esp, 0x1d0
ret

Function at 0x4c2ab0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor ecx, ecx
test esi, esi
je 0x4c2ada
mov edx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x4c2ac4
pop edi
mov eax, edx
pop esi
ret
mov eax, dword [esp + 8]
pop esi
ret

Function at 0x4c2bf0
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
cmp word [0x6d6410], 0
jne 0x4c2cdf
push 0x6d6410
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4c2ca8
mov ecx, 0x6d6410
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4c2c21
mov eax, dword [str.Aeroadmin]
mov dword [ecx], eax
mov eax, dword [0x5f3d40]
mov dword [ecx + 4], eax
mov eax, dword [0x5f3d44]
mov dword [ecx + 8], eax
mov eax, dword [0x5f3d48]
mov dword [ecx + 0xc], eax
mov eax, dword [0x5f3d4c]
mov dword [ecx + 0x10], eax
mov ax, word [0x5f3d50]
push 0x6d6410
mov word [ecx + 0x14], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c2c72
test al, 0x10
jne 0x4c2c8b
push 0
push 0x6d6410
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4c2c8b
mov word [0x6d6410], ax
jmp 0x4c2ca8
push edi
mov edi, 0x6d6410
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4c2c94
mov eax, dword [0x5f210c]
mov dword [edi], eax
pop edi
mov edx, 0x6d6410
add edx, 0xfffffffe
mov ax, word [edx + 2]
lea edx, [edx + 2]
test ax, ax
jne 0x4c2cb0
mov ecx, dword [str.log.txt]
mov dword [edx], ecx
mov ecx, dword [0x5f3d30]
mov dword [edx + 4], ecx
mov ecx, dword [0x5f3d34]
mov dword [edx + 8], ecx
mov ecx, dword [0x5f3d38]
mov dword [edx + 0xc], ecx
mov eax, 0x6d6410
ret
Function at 0x4c2cf0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push edi
push 2
mov ebx, ecx
mov ebp, edx
push 0
push ebx
call fcn.00598fdb
push ebx
call fcn.0059dc83
add esp, 0x10
cmp eax, 0x40000
jl 0x4c2d90
push esi
push 0
add eax, 0xfffc2000
push eax
push ebx
call fcn.00598fdb
add esp, 4
lea ecx, [esp + 0x18]
call fcn.004c4200
mov edi, dword [esp + 0x10]
push ebx
push 0x3e000
push 1
push edi
call fcn.005994ad
push ebx
mov esi, eax
call fcn.005995d3
push 0x5f3d64
push ebp
call fcn.0059a65c
push ebx
push esi
push 1
push edi
call fcn.00599289
add esp, 0x2c
pop esi
test edi, edi
je 0x4c2d90
mov ecx, dword [esp + 0x14]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x4c2d86
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c2d99
push ecx
push edi
call fcn.0056eec5
add esp, 8
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret
call fcn.00591dc6
int3
Function at 0x4cfc90
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x234
mov eax, dword [0x61f138]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push ebp
push 0
push 2
mov ebp, ecx
mov dword [esp + 0x14], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [esp + 8], ebx
cmp ebx, 0xffffffff
jne 0x4cfcde
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0056eeb4
add esp, 0x234
ret
push esi
push edi
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
lea eax, [esp + 0x38]
mov ecx, ebp
push eax
call fcn.004cfdb0
test eax, eax
je 0x4cfd81
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x4cfd72
lea eax, [esp + 0x38]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4cfd17
sub eax, edx
mov edi, ebp
sar eax, 1
cmp dword [ebp + 0x14], 8
jb 0x4cfd31
mov edi, dword [ebp]
mov ebx, dword [ebp + 0x10]
lea edx, [esp + 0x38]
cmp eax, ebx
mov esi, ebx
cmovb esi, eax
test esi, esi
je 0x4cfd58
mov ecx, edx
sub edi, ecx
mov cx, word [edi + edx]
cmp cx, word [edx]
jne 0x4cfd5e
add edx, 2
sub esi, 1
jne 0x4cfd47
cmp ebx, eax
jb 0x4cfd5e
jbe 0x4cfd7d
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4cfd10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4cfd8c
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x240]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0056eeb4
add esp, 0x234
ret

Function at 0x4d4d00
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
mov ebx, edx
test cl, 3
jne 0x4d4d52
test bl, 3
jne 0x4d4d52
mov edx, dword [esp + 0xc]
xor eax, eax
push edi
mov edi, edx
shr edi, 2
test edi, edi
je 0x4d4d44
push ebp
mov ebp, ebx
mov dword [esp + 0xc], edi
push esi
mov esi, ecx
sub ebp, ecx
lea ebx, [ebx]
mov eax, dword [esi + ebp]
lea esi, [esi + 4]
xor dword [esi - 4], eax
sub edi, 1
jne 0x4d4d30
mov eax, dword [esp + 0x10]
pop esi
pop ebp
shl eax, 2
pop edi
sub edx, eax
je 0x4d4d6e
add ecx, eax
add ebx, eax
jmp 0x4d4d56
mov edx, dword [esp + 0xc]
test edx, edx
je 0x4d4d6e
sub ebx, ecx
lea esp, [esp]
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x4d4d60
pop ebx
pop ecx
ret
Function at 0x4d4d80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov dword [esp], ecx
push ebx
mov ebx, edx
push esi
test cl, 3
jne 0x4d4def
test bl, 3
jne 0x4d4def
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
test al, 3
jne 0x4d4df7
push edi
mov edi, edx
xor esi, esi
shr edi, 2
test edi, edi
je 0x4d4ddf
push ebp
mov ebp, ebx
mov dword [esp + 0x18], edi
sub ebp, eax
mov esi, eax
sub ecx, eax
mov edx, ecx
jmp 0x4d4dc0
mov ecx, dword [esi + ebp]
lea esi, [esi + 4]
xor ecx, dword [esi - 4]
mov dword [edx + esi - 4], ecx
sub edi, 1
jne 0x4d4dc0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
pop ebp
shl esi, 2
pop edi
sub edx, esi
je 0x4d4e17
add ecx, esi
add ebx, esi
add eax, esi
jmp 0x4d4df7
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
test edx, edx
je 0x4d4e17
sub ebx, eax
sub ecx, eax
mov dword [esp + 8], ecx
mov esi, ecx
mov cl, byte [eax + ebx]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [eax + esi - 1], cl
sub edx, 1
jne 0x4d4e05
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x4d4e20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
xor cl, cl
push ebp
push esi
test bl, 3
jne 0x4d4ea5
test dl, 3
jne 0x4d4ea5
mov esi, dword [esp + 0x18]
xor eax, eax
push edi
mov edi, esi
mov dword [esp + 0x10], eax
shr edi, 2
xor ecx, ecx
test edi, edi
je 0x4d4e74
mov esi, ebx
mov dword [esp + 0x14], edi
sub esi, edx
mov ecx, edx
xor ebp, ebp
mov eax, dword [esi + ecx]
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
or ebp, eax
sub edi, 1
jne 0x4d4e56
mov esi, dword [esp + 0x1c]
mov eax, ebp
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ebp
shl ecx, 2
pop edi
sub esi, ecx
jne 0x4d4e88
pop esi
test eax, eax
pop ebp
sete al
pop ebx
add esp, 8
ret
add ebx, ecx
add edx, ecx
mov ecx, eax
shr eax, 0x10
shr ecx, 0x18
or cl, al
mov eax, dword [esp + 0xc]
shr eax, 8
or cl, al
or cl, byte [esp + 0xc]
jmp 0x4d4ea9
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4d4ec0
sub ebx, edx
nop
mov al, byte [edx + ebx]
lea edx, [edx + 1]
xor al, byte [edx - 1]
or cl, al
sub esi, 1
jne 0x4d4eb0
pop esi
test cl, cl
pop ebp
sete al
pop ebx
add esp, 8
ret
Function at 0x4d4f90
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c0b78
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x61f138]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
mov ecx, eax
mov dword [ebp - 0x60], ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
mov dword [ebp - 0x58], eax
test eax, eax
je 0x4d50d5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
mov edi, eax
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x3c]
mov ebx, eax
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x24]
mov edi, eax
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x20]
push 1
lea ebx, [eax + edi*2]
push ebx
push dword [esi + 0x10]
push dword [esi + 0x14]
call fcn.00464780
mov edi, dword [ebp - 0x5c]
mov dword [esi + 0x10], ebx
mov ebx, dword [ebp - 0x58]
mov dword [esi + 0x14], eax
mov dword [esi + 0xc], 0xffffffff
cmp edi, ebx
ja 0x4d5046
push edi
push dword [ebp - 0x54]
push eax
call fcn.00586300
add esp, 0xc
jmp 0x4d5065
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
push edi
push dword [ebp - 0x54]
mov ecx, eax
mov edx, dword [eax]
push dword [esi + 0x14]
call dword [edx + 0x30]
mov ecx, dword [ebp - 0x60]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edi, eax
mov ecx, ebx
sub ecx, edi
push ecx
mov ecx, dword [esi + 0x14]
add ecx, edi
push 0
push ecx
call fcn.00586880
add esp, 0xc
mov dword [ebp - 0x54], 0
test ebx, ebx
je 0x4d50b7
mov eax, dword [esi]
mov ecx, esi
mov ebx, dword [esi + 0x14]
call dword [eax + 0x3c]
mov edi, dword [esi + 0x14]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, dword [ebp - 0x54]
lea ecx, [eax + edi]
mov al, byte [ebx + edx]
xor al, 0x5c
mov byte [ecx + edx], al
mov eax, dword [esi + 0x14]
xor byte [eax + edx], 0x36
inc edx
mov dword [ebp - 0x54], edx
cmp edx, dword [ebp - 0x58]
jb 0x4d5085
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056eeb4
mov esp, ebp
pop ebp
ret 0xc
push str.HMAC:_can_only_be_used_with_a_block_based_hash_function
lea ecx, [ebp - 0x28]
call fcn.004416c0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x50]
call fcn.00461ea0
push 0x61acf0
lea eax, [ebp - 0x50]
push eax
call fcn.005869da
int3
Function at 0x4d9915
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
jmp 0x4d9928
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x100
jge 0x4d99cf
mov eax, dword [ebp - 8]
mov al, byte [eax + str.cw]
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
shl eax, 1
movzx ecx, byte [ebp - 1]
sar ecx, 7
and ecx, 1
imul ecx, ecx, 0x11b
xor eax, ecx
movzx ecx, byte [ebp - 1]
xor eax, ecx
movzx ecx, byte [ebp - 1]
shl ecx, 8
or eax, ecx
movzx ecx, byte [ebp - 1]
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [ebp - 1]
shl ecx, 1
movzx edx, byte [ebp - 1]
sar edx, 7
and edx, 1
imul edx, edx, 0x11b
xor ecx, edx
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x10], eax
and dword [ebp - 0xc], 0
jmp 0x4d999e
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 4
jge 0x4d99ca
mov eax, dword [ebp - 0xc]
shl eax, 8
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax*4 + 0x6d4140], ecx
mov eax, dword [ebp - 0x10]
shl eax, 0x18
mov ecx, dword [ebp - 0x10]
shr ecx, 8
or ecx, eax
mov dword [ebp - 0x10], ecx
jmp 0x4d9997
jmp 0x4d9921
mov byte [0x6d407e], 1
leave
ret
Function at 0x4d99d8
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
and dword [ebp - 8], 0
jmp 0x4d99ec
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x100
jge 0x4d9be9
mov eax, dword [ebp - 8]
mov al, byte [eax + 0x5e54a0]
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
shl eax, 3
movzx ecx, byte [ebp - 1]
sar ecx, 5
and ecx, 1
imul ecx, ecx, 0x11b
xor eax, ecx
movzx ecx, byte [ebp - 1]
sar ecx, 5
and ecx, 2
imul ecx, ecx, 0x11b
xor eax, ecx
movzx ecx, byte [ebp - 1]
sar ecx, 5
and ecx, 4
imul ecx, ecx, 0x11b
xor eax, ecx
movzx ecx, byte [ebp - 1]
shl ecx, 1
movzx edx, byte [ebp - 1]
sar edx, 7
and edx, 1
imul edx, edx, 0x11b
xor ecx, edx
xor eax, ecx
movzx ecx, byte [ebp - 1]
xor eax, ecx
movzx ecx, byte [ebp - 1]
shl ecx, 3
movzx edx, byte [ebp - 1]
sar edx, 5
and edx, 1
imul edx, edx, 0x11b
xor ecx, edx
movzx edx, byte [ebp - 1]
sar edx, 5
and edx, 2
imul edx, edx, 0x11b
xor ecx, edx
movzx edx, byte [ebp - 1]
sar edx, 5
and edx, 4
imul edx, edx, 0x11b
xor ecx, edx
movzx edx, byte [ebp - 1]
shl edx, 2
movzx esi, byte [ebp - 1]
sar esi, 6
and esi, 1
imul esi, esi, 0x11b
xor edx, esi
movzx esi, byte [ebp - 1]
sar esi, 6
and esi, 2
imul esi, esi, 0x11b
xor edx, esi
xor ecx, edx
movzx edx, byte [ebp - 1]
xor ecx, edx
shl ecx, 8
or eax, ecx
movzx ecx, byte [ebp - 1]
shl ecx, 3
movzx edx, byte [ebp - 1]
sar edx, 5
and edx, 1
imul edx, edx, 0x11b
xor ecx, edx
movzx edx, byte [ebp - 1]
sar edx, 5
and edx, 2
imul edx, edx, 0x11b
xor ecx, edx
movzx edx, byte [ebp - 1]
sar edx, 5
and edx, 4
imul edx, edx, 0x11b
xor ecx, edx
movzx edx, byte [ebp - 1]
xor ecx, edx
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [ebp - 1]
shl ecx, 3
movzx edx, byte [ebp - 1]
sar edx, 5
and edx, 1
imul edx, edx, 0x11b
xor ecx, edx
movzx edx, byte [ebp - 1]
sar edx, 5
and edx, 2
imul edx, edx, 0x11b
xor ecx, edx
movzx edx, byte [ebp - 1]
sar edx, 5
and edx, 4
imul edx, edx, 0x11b
xor ecx, edx
movzx edx, byte [ebp - 1]
shl edx, 2
movzx esi, byte [ebp - 1]
sar esi, 6
and esi, 1
imul esi, esi, 0x11b
xor edx, esi
movzx esi, byte [ebp - 1]
sar esi, 6
and esi, 2
imul esi, esi, 0x11b
xor edx, esi
xor ecx, edx
movzx edx, byte [ebp - 1]
shl edx, 1
movzx esi, byte [ebp - 1]
sar esi, 7
and esi, 1
imul esi, esi, 0x11b
xor edx, esi
xor ecx, edx
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x10], eax
and dword [ebp - 0xc], 0
jmp 0x4d9bb8
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 4
jge 0x4d9be4
mov eax, dword [ebp - 0xc]
shl eax, 8
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax*4 + 0x6d5140], ecx
mov eax, dword [ebp - 0x10]
shl eax, 0x18
mov ecx, dword [ebp - 0x10]
shr ecx, 8
or ecx, eax
mov dword [ebp - 0x10], ecx
jmp 0x4d9bb1
jmp 0x4d99e5
mov byte [0x6d407d], 1
pop esi
leave
ret
Function at 0x4e83a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c1d94
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x61f138]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x60
call fcn.0056eed3
mov edi, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edi + 0xc], 0xffffffff
mov dword [edi], vtable.CryptoPP::MessageQueue.1.0
mov dword [edi + 4], vtable.CryptoPP::MessageQueue.0
mov dword [edi + 0x18], eax
push 0x1c
mov dword [edi + 0x10], vtable.CryptoPP::ByteQueue.1.0
mov dword [edi + 0x14], vtable.CryptoPP::ByteQueue.0
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
mov byte [edi + 0x34], al
mov byte [edi + 0x1c], al
mov dword [edi + 0x20], 0x100
call fcn.0056eed3
mov esi, eax
add esp, 8
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 5
mov ecx, dword [edi + 0x20]
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], ecx
test ecx, ecx
jne 0x4e8442
xor eax, eax
jmp 0x4e8447
call fcn.004d4f00
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi], 0
mov dword [edi + 0x28], esi
mov dword [edi + 0x24], esi
mov byte [ebp - 4], 7
lea esi, [edi + 0x38]
mov dword [ebp - 0x10], esi
push 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.0056eed3
mov dword [esi], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 8
push eax
push ecx
mov ecx, esi
call fcn.004f99b0
mov byte [ebp - 4], 9
lea esi, [edi + 0x4c]
mov dword [ebp - 0x18], esi
push 8
mov dword [ebp - 0x10], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.0056eed3
mov dword [esi], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0xa
push eax
push ecx
mov ecx, esi
call fcn.004f8ca0
mov eax, 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 0x4e9100
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c1e49
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x61f138]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea eax, [esi + 0x18]
mov dword [ebp - 4], 2
mov dword [eax], vtable.CryptoPP::FilterPutSpaceHelper.0
mov dword [ebp - 0x10], eax
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov byte [ebp - 4], 4
lea ecx, [esi + 0x3c]
mov dword [eax], vtable.CryptoPP::HashFilter.0
mov eax, dword [ebp + 8]
push 0x6aaf18
mov dword [esi], vtable.CryptoPP::HashFilter.2.0
mov dword [esi + 4], vtable.CryptoPP::HashFilter.1.0
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
call fcn.00441720
push 0x6aaf18
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 5
call fcn.00441720
mov byte [ebp - 4], 6
mov ecx, dword [esi + 0x2c]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dword [esi + 0x34], eax
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4e91ee
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [ebp + 0xc]
mov eax, esi
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x18

Function at 0x4ef970
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c1db8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x61f138]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000000
push 1
push 0
push 0
push esi
mov dword [esi], 0
call edi
test eax, eax
jne 0x4ef9e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 8
push 1
push 0
push str.Crypto_RNG
push esi
mov ebx, eax
call edi
test eax, eax
jne 0x4ef9e6
push 0x28
push 1
push eax
push str.Crypto_RNG
push esi
call edi
test eax, eax
je 0x4efa04
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056eeb4
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CryptAcquireContext
lea ecx, [ebp - 0x28]
call fcn.004416c0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x50]
call fcn.004ef520
push 0x61b9ec
lea eax, [ebp - 0x50]
push eax
call fcn.005869da
int3