joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d0380
Capabilities:
Encrypt data using aes
Reference aes constants

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
sub esp, 8
mov eax, edx
mov dword [ebp - 4], eax
push esi
push edi
movups xmm6, xmmword [eax]
mov edi, ecx
pshufd xmm0, xmm6, 0x55
movd ecx, xmm0
pshufd xmm0, xmm6, 0xff
movups xmm5, xmmword [edi]
mov eax, ecx
pslldq xmm5, 4
shr eax, 0x10
movaps xmm4, xmm5
movzx eax, al
pxor xmm4, xmmword [edi]
pslldq xmm5, 4
movzx esi, byte [eax + str.cw]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or esi, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl esi, 8
movzx eax, byte [eax + str.cw]
or esi, eax
movzx eax, cl
movd ecx, xmm0
shl esi, 8
movzx eax, byte [eax + str.cw]
or esi, eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
movd xmm2, esi
movzx edx, byte [eax + str.cw]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or edx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, cl
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
mov eax, esi
mov ecx, edx
ror eax, 8
ror ecx, 8
xor eax, 8
xor ecx, 8
movd xmm0, edx
punpckldq xmm2, xmm0
movd xmm1, eax
movd xmm3, ecx
punpckldq xmm1, xmm3
punpckldq xmm2, xmm1
movaps xmm1, xmm5
pxor xmm1, xmm4
pslldq xmm5, 4
pshufd xmm0, xmm2, 0xff
pxor xmm1, xmm5
pxor xmm0, xmm1
movups xmmword [edi], xmm0
call fcn.004d0170
movaps xmm2, xmm6
pshufd xmm3, xmm0, 0xaa
pslldq xmm2, 4
movaps xmm1, xmm2
pslldq xmm2, 4
pxor xmm1, xmm6
movaps xmm0, xmm2
mov eax, dword [ebp - 4]
pxor xmm0, xmm1
pslldq xmm2, 4
pxor xmm0, xmm2
pxor xmm0, xmm3
pop edi
movups xmmword [eax], xmm0
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4d0550
Capabilities:
Encrypt data using aes
Reference aes constants

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
sub esp, 8
mov eax, edx
mov dword [ebp - 4], eax
push esi
push edi
movups xmm6, xmmword [eax]
mov edi, ecx
pshufd xmm0, xmm6, 0x55
movd ecx, xmm0
pshufd xmm0, xmm6, 0xff
movups xmm5, xmmword [edi]
mov eax, ecx
pslldq xmm5, 4
shr eax, 0x10
movaps xmm4, xmm5
movzx eax, al
pxor xmm4, xmmword [edi]
pslldq xmm5, 4
movzx esi, byte [eax + str.cw]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or esi, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl esi, 8
movzx eax, byte [eax + str.cw]
or esi, eax
movzx eax, cl
movd ecx, xmm0
shl esi, 8
movzx eax, byte [eax + str.cw]
or esi, eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
movd xmm2, esi
movzx edx, byte [eax + str.cw]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or edx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, cl
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
mov eax, esi
mov ecx, edx
ror eax, 8
ror ecx, 8
xor eax, 4
xor ecx, 4
movd xmm0, edx
punpckldq xmm2, xmm0
movd xmm1, eax
movd xmm3, ecx
punpckldq xmm1, xmm3
punpckldq xmm2, xmm1
movaps xmm1, xmm5
pxor xmm1, xmm4
pslldq xmm5, 4
pshufd xmm0, xmm2, 0xff
pxor xmm1, xmm5
pxor xmm0, xmm1
movups xmmword [edi], xmm0
call fcn.004d0170
movaps xmm2, xmm6
pshufd xmm3, xmm0, 0xaa
pslldq xmm2, 4
movaps xmm1, xmm2
pslldq xmm2, 4
pxor xmm1, xmm6
movaps xmm0, xmm2
mov eax, dword [ebp - 4]
pxor xmm0, xmm1
pslldq xmm2, 4
pxor xmm0, xmm2
pxor xmm0, xmm3
pop edi
movups xmmword [eax], xmm0
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x4d06b0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movups xmm3, xmmword [ecx]
movups xmm4, xmmword [edx]
pslldq xmm3, 4
movaps xmm1, xmm3
pslldq xmm3, 4
pxor xmm1, xmmword [ecx]
movaps xmm2, xmm3
pxor xmm2, xmm1
pslldq xmm3, 4
pxor xmm2, xmm3
aeskeygenassist xmm0, xmm4, 2
pshufd xmm0, xmm0, 0xff
pxor xmm2, xmm0
movups xmmword [ecx], xmm2
movaps xmm2, xmm4
pslldq xmm2, 4
movaps xmm0, xmm2
pslldq xmm2, 4
pxor xmm0, xmm4
movaps xmm1, xmm2
pxor xmm1, xmm0
pslldq xmm2, 4
aeskeygenassist xmm0, xmmword [ecx], 0
pxor xmm1, xmm2
pshufd xmm0, xmm0, 0xaa
pxor xmm1, xmm0
movups xmmword [edx], xmm1
ret
Function at 0x4d0720
Capabilities:
Encrypt data using aes
Reference aes constants

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
sub esp, 8
mov eax, edx
mov dword [ebp - 4], eax
push esi
push edi
movups xmm6, xmmword [eax]
mov edi, ecx
pshufd xmm0, xmm6, 0x55
movd ecx, xmm0
pshufd xmm0, xmm6, 0xff
movups xmm5, xmmword [edi]
mov eax, ecx
pslldq xmm5, 4
shr eax, 0x10
movaps xmm4, xmm5
movzx eax, al
pxor xmm4, xmmword [edi]
pslldq xmm5, 4
movzx esi, byte [eax + str.cw]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or esi, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl esi, 8
movzx eax, byte [eax + str.cw]
or esi, eax
movzx eax, cl
movd ecx, xmm0
shl esi, 8
movzx eax, byte [eax + str.cw]
or esi, eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
movd xmm2, esi
movzx edx, byte [eax + str.cw]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or edx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, cl
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
mov eax, esi
mov ecx, edx
ror eax, 8
ror ecx, 8
xor eax, 2
xor ecx, 2
movd xmm0, edx
punpckldq xmm2, xmm0
movd xmm1, eax
movd xmm3, ecx
punpckldq xmm1, xmm3
punpckldq xmm2, xmm1
movaps xmm1, xmm5
pxor xmm1, xmm4
pslldq xmm5, 4
pshufd xmm0, xmm2, 0xff
pxor xmm1, xmm5
pxor xmm0, xmm1
movups xmmword [edi], xmm0
call fcn.004d0170
movaps xmm2, xmm6
pshufd xmm3, xmm0, 0xaa
pslldq xmm2, 4
movaps xmm1, xmm2
pslldq xmm2, 4
pxor xmm1, xmm6
movaps xmm0, xmm2
mov eax, dword [ebp - 4]
pxor xmm0, xmm1
pslldq xmm2, 4
pxor xmm0, xmm2
pxor xmm0, xmm3
pop edi
movups xmmword [eax], xmm0
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4d08f0
Capabilities:
Encrypt data using aes
Reference aes constants

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
sub esp, 8
mov eax, edx
mov dword [ebp - 4], eax
push esi
push edi
movups xmm6, xmmword [eax]
mov edi, ecx
pshufd xmm0, xmm6, 0x55
movd ecx, xmm0
pshufd xmm0, xmm6, 0xff
movups xmm5, xmmword [edi]
mov eax, ecx
pslldq xmm5, 4
shr eax, 0x10
movaps xmm4, xmm5
movzx eax, al
pxor xmm4, xmmword [edi]
pslldq xmm5, 4
movzx esi, byte [eax + str.cw]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or esi, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl esi, 8
movzx eax, byte [eax + str.cw]
or esi, eax
movzx eax, cl
movd ecx, xmm0
shl esi, 8
movzx eax, byte [eax + str.cw]
or esi, eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
movd xmm2, esi
movzx edx, byte [eax + str.cw]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or edx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, cl
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
mov eax, esi
mov ecx, edx
ror eax, 8
ror ecx, 8
xor eax, 1
xor ecx, 1
movd xmm0, edx
punpckldq xmm2, xmm0
movd xmm1, eax
movd xmm3, ecx
punpckldq xmm1, xmm3
punpckldq xmm2, xmm1
movaps xmm1, xmm5
pxor xmm1, xmm4
pslldq xmm5, 4
pshufd xmm0, xmm2, 0xff
pxor xmm1, xmm5
pxor xmm0, xmm1
movups xmmword [edi], xmm0
call fcn.004d0170
movaps xmm2, xmm6
pshufd xmm3, xmm0, 0xaa
pslldq xmm2, 4
movaps xmm1, xmm2
pslldq xmm2, 4
pxor xmm1, xmm6
movaps xmm0, xmm2
mov eax, dword [ebp - 4]
pxor xmm0, xmm1
pslldq xmm2, 4
pxor xmm0, xmm2
pxor xmm0, xmm3
pop edi
movups xmmword [eax], xmm0
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4d8ba0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea338
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x50b06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi], vtable.Worker.0
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [0x50f30c]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
mov dword [edi + 8], eax
mov eax, dword [esi + 8]
mov dword [edi + 0xc], eax
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 eax, dword [esi + 0x10]
mov dword [edi + 0x40], eax
mov eax, dword [ecx]
call dword [eax + 0x28]
cmp eax, 1
jle 0x4d8c9d
mov ecx, dword [edi + 0x40]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
and eax, edx
cmp eax, 0xffffffff
je 0x4d8c9d
mov ecx, dword [edi + 0x40]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov esi, eax
test edx, edx
jne 0x4d8c65
cmp esi, 0x40
jb 0x4d8c7a
push str.Unable_to_set_affinity._Windows_supports_only_affinity_up_to_63.
push 0
call fcn.0040ef90
push eax
call fcn.004c7f60
add esp, 0xc
xor ecx, ecx
xor eax, eax
bts ecx, esi
cmp esi, 0x20
cmovae eax, ecx
xor ecx, eax
cmp esi, 0x40
push ecx
cmovae eax, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov ecx, dword [edi + 0x40]
mov eax, dword [ecx]
call dword [eax + 8]
cmp eax, 0xffffffff
je 0x4d8ce6
dec eax
mov ecx, 0xfffffff1
cmp eax, 4
ja case.default.0x4d8cb5
jmp dword [eax*4 + 0x4d8cfc]
or ecx, 0xffffffff
jmp case.default.0x4d8cb5
xor ecx, ecx
jmp case.default.0x4d8cb5
mov ecx, 1
jmp case.default.0x4d8cb5
mov ecx, 2
jmp case.default.0x4d8cb5
mov ecx, 0xf
push ecx
invalid
invalid
inc eax
xlatb
xchg esp, eax
Function at 0x4da7c0
Capabilities:
Manipulate user privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
push esi
push edi
call fcn.004daa10
test eax, eax
je 0x4da7df
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
xor esi, esi
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, 1
jne 0x4da8e4
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [esp + 0xc]
push eax
push esi
push esi
push 1
push dword [esp + 0x20]
mov dword [esp + 0x20], esi
call edi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4da82e
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
push eax
push esi
push 1
push dword [esp + 0x20]
call edi
push dword [esp + 0x10]
call dword [0x4eb070]
test esi, esi
je 0x4da8e4
lea eax, [esp + 0x14]
xorps xmm0, xmm0
push eax
push 0xf0fff
lea eax, [esp + 0x28]
movaps xmmword [esp + 0x28], xmm0
push eax
xor edi, edi
movq qword [esp + 0x3c], xmm0
push edi
call dword [sym.imp.ADVAPI32.dll_LsaOpenPolicy]
test eax, eax
jne 0x4da8cc
mov dword [esp + 0x18], 0x2c002a
mov eax, dword [esp + 0x18]
push 1
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push dword [esi]
mov dword [esp + 0x28], 0x4fcc0c
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_LsaAddAccountRights]
invalid
test eax, eax
jne 0x4da8c2
push str.Huge_pages_support_was_successfully_enabled__but_reboot_required_to_use_it
push 2
call fcn.0040ef90
push eax
call fcn.004c7f60
add esp, 0xc
mov edi, 1
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_LsaClose]
invalid
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x4da8e4
call fcn.004daa10
test eax, eax
jne 0x4da7d4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4dd3f0
Capabilities:
Hash data using sha256

Disassembly:
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x20], 0
ret
Function at 0x4e4efd
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
mov eax, dword [0x50b06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
and dword [ebp - 0x8c], 0
mov esi, ecx
push edi
push 2
pop ebx
cmp dword [esi + 0x200], 0x80000001
mov edi, edx
push 9
pop edx
push 0xa
pop ecx
push 0xb
pop eax
push 5
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0x7c], ebx
pop ebx
mov dword [ebp - 0x2c], 0x14
mov dword [ebp - 0x28], 0x3a
mov dword [ebp - 0x24], 0x16
mov dword [ebp - 0x20], 0x37
mov dword [ebp - 0x1c], 0x19
mov dword [ebp - 0x18], 0x3b
mov dword [ebp - 0x14], 0x1e
mov dword [ebp - 0x10], 0x39
mov dword [ebp - 0xc], 0x1f
mov dword [ebp - 8], 0x38
mov dword [ebp - 0xf4], 1
mov dword [ebp - 0xf0], 0x3f
mov dword [ebp - 0xe8], 0x40
mov dword [ebp - 0xe4], 5
mov dword [ebp - 0xe0], 0x41
mov dword [ebp - 0xdc], 6
mov dword [ebp - 0xd8], 0x43
mov dword [ebp - 0xd4], 7
mov dword [ebp - 0xd0], 0x42
mov dword [ebp - 0xcc], 8
mov dword [ebp - 0xc8], 0x44
mov dword [ebp - 0xc4], edx
mov dword [ebp - 0xc0], 0x45
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xb8], 0x46
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], 0x53
mov dword [ebp - 0xac], 0xc
mov dword [ebp - 0xa8], 0x48
mov dword [ebp - 0xa4], 0xd
mov dword [ebp - 0xa0], 0x49
mov dword [ebp - 0x9c], 0x10
mov dword [ebp - 0x98], 0x55
mov dword [ebp - 0x94], 0x15
mov dword [ebp - 0x90], 0x56
mov dword [ebp - 0x88], 0x4a
mov dword [ebp - 0x84], 1
mov dword [ebp - 0x80], 0x4b
mov dword [ebp - 0x78], 0x4c
mov dword [ebp - 0x74], 3
mov dword [ebp - 0x70], 0x4d
mov dword [ebp - 0x6c], 4
mov dword [ebp - 0x68], 0x4e
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], 0x4f
mov dword [ebp - 0x5c], 6
mov dword [ebp - 0x58], 0x50
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x50], 0x51
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], 0x5a
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], 0x5b
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0x5c
mov dword [ebp - 0x34], 0xc
mov dword [ebp - 0x30], 0x5d
jb 0x4e512f
push edi
push dword [esi + 0x21c]
mov edx, ebx
lea ecx, [ebp - 0x2c]
call fcn.004e4d04
push edi
push dword [esi + 0x218]
lea ecx, [ebp - 0xf4]
push 0xd
pop edx
call fcn.004e4d04
add esp, 0x10
cmp dword [esi + 0x200], reloc.WS2_32.dll_getsockopt
jb 0x4e5152
push edi
push dword [esi + 0x27c]
lea ecx, [ebp - 0x8c]
push 0xc
pop edx
call fcn.004e4d04
pop ecx
pop ecx
cmp dword [esi + 0x200], 0x8000001a
jb 0x4e5178
mov byte [edi + 0x16c], 1
mov eax, dword [esi + 0x3a0]
and eax, 1
inc eax
shl eax, 6
mov dword [edi + 0x168], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004879f1
mov esp, ebp
pop ebp
ret
Function at 0x517560
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x51766c
test eax, eax
je 0x51766c
push esi
push edi
mov ecx, 0x10
mov esi, 0x533008
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x517653
lea edi, [eax + 4]
jmp 0x5175b7
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x5175cc
mov dword [ebp - 4], 2
jmp 0x5175ed
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x5175e3
mov dword [ebp - 4], 1
jmp 0x5175ed
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x517663
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x517626
mov byte [ecx], 0x3d
jmp 0x517632
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x51763d
mov byte [ecx], 0x3d
jmp 0x517643
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x5175b4
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51afb0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
cmp byte [ebp + 0xc], 0
push ebx
push esi
push edi
mov esi, eax
mov ebx, ecx
jne 0x51afd9
push esi
call fcn.0051a920
test al, al
jne 0x51afd9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x48]
push eax
push ecx
call fcn.00515150
mov edi, eax
call fcn.00515510
add esp, 4
push eax
mov eax, 0x40
call fcn.00518fc0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0xc0]
push edx
push eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], 0x40
call fcn.00517560
mov ecx, dword [ebp - 4]
add esp, 0x10
xor eax, eax
push 4
lea edx, [ebp - 4]
push edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x7c], eax
mov byte [ebp - 0x80], al
push 0x10
mov eax, esi
mov byte [ebp + ecx - 0xc0], 0
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
mov dword [ebp - 0x20], 0xc3d2e1f0
call fcn.005172d0
test al, al
je 0x51b06b
mov edi, dword [ebp - 4]
jmp 0x51b06e
or edi, 0xffffffff
push 4
lea eax, [ebp - 4]
push eax
push 0xc
mov eax, esi
call fcn.005172d0
test al, al
je 0x51b086
mov eax, dword [ebp - 4]
jmp 0x51b089
or eax, 0xffffffff
push edi
push eax
push esi
lea esi, [ebp - 0x80]
call fcn.005177e0
cmp byte [ebp - 0x80], 0
mov dword [ebp - 4], 0x40
jne 0x51b0aa
call fcn.00517d10
mov byte [ebp - 0x80], 1
xor eax, eax
lea esp, [esp]
mov ecx, dword [ebp + eax*4 - 0x30]
bswap ecx
mov dword [ebp + eax*4 - 0x1c], ecx
inc eax
cmp eax, 5
jb 0x51b0b0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x1c]
push 0x14
push ecx
call fcn.00517560
mov edx, dword [ebp - 4]
add esp, 0x10
cmp byte [ebp + 0xc], 0
mov byte [ebp + edx - 0x100], 0
mov eax, 0x5333dc
jne 0x51b0f4
mov eax, 0x5333f4
push 0
push eax
mov edi, ebx
call fcn.0051ae30
mov eax, dword [ebp + 8]
push 1
push eax
call fcn.0051ae30
push 0
push 0x53340c
call fcn.0051ae30
push 1
lea ecx, [ebp - 0xc0]
push ecx
call fcn.0051ae30
push 0
push 0x533414
call fcn.0051ae30
push 1
lea edx, [ebp - 0x100]
push edx
call fcn.0051ae30
cmp byte [ebp + 0xc], 0
je 0x51b148
call fcn.0051af10
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x51b350
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
cmp byte [ebp + 0x10], 0
push ebx
push esi
push edi
jne 0x51b36f
mov ebx, dword [ebp + 8]
push eax
call fcn.0051a920
test al, al
je 0x51b3a9
mov ebx, dword [ebp + 0xc]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x51b377
sub eax, edx
mov esi, eax
push esi
mov dword [ebp + 0xc], esi
call fcn.00521d64
lea ecx, [ebp + 0xc]
push ecx
mov edi, eax
push edi
push esi
push ebx
call fcn.00517680
add esp, 0x14
test al, al
jne 0x51b3b4
push edi
call fcn.00522454
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
xor ebx, ebx
push edx
push edi
lea esi, [ebp - 0x7c]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x2c], 0x67452301
mov dword [ebp - 0x28], 0xefcdab89
mov dword [ebp - 0x24], 0x98badcfe
mov dword [ebp - 0x20], 0x10325476
mov dword [ebp - 0x1c], 0xc3d2e1f0
mov byte [ebp - 0x7c], bl
call fcn.00517790
mov dword [ebp + 0xc], 0x40
cmp byte [ebp - 0x7c], bl
jne 0x51b407
call fcn.00517d10
mov byte [ebp - 0x7c], 1
xor eax, eax
lea esp, [esp]
mov ecx, dword [ebp + eax*4 - 0x2c]
bswap ecx
mov dword [ebp + eax*4 - 0x18], ecx
inc eax
cmp eax, 5
jb 0x51b410
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x18]
push 0x14
push ecx
call fcn.00517560
mov edx, dword [ebp + 0xc]
push edi
mov byte [ebp + edx - 0xbc], bl
call fcn.00522454
mov bl, byte [ebp + 0x10]
add esp, 0x14
mov eax, 0x533438
test bl, bl
jne 0x51b45a
mov eax, 0x533450
mov edi, dword [ebp + 8]
push 0
push eax
call fcn.0051ae30
push 1
lea eax, [ebp - 0xbc]
push eax
call fcn.0051ae30
test bl, bl
je 0x51b47c
call fcn.0051af10
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403140
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4ac020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4031d8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4031b8
xor eax, eax
push ebp
push 0x4031b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4031f4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4031b8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4ac020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4ac020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403fc4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ae04c], 0
je 0x404025
cmp word [0x4ae220], 0xd7b2
jne 0x403fed
cmp dword [0x4ae228], 0
jbe 0x403fed
mov eax, 0x4ae21c
call dword [0x4ae238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ac06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40404c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ac030], 0
jne 0x404041
push 0
push 0x4ac064
push 0x4ac06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret