joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001cd80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001fd64
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1002ed28]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
movzx eax, byte [edi + 8]
xor al, byte [esi + 8]
and al, 1
xor byte [edi + 8], al
mov cl, byte [esi + 8]
xor cl, byte [edi + 8]
and cl, 2
xor byte [edi + 8], cl
lea ecx, [edi + 0x30]
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
movups xmm0, xmmword [esi + 0x18]
movups xmmword [edi + 0x18], xmm0
mov eax, dword [esi + 0x28]
mov dword [edi + 0x28], eax
push dword [esi + 0x30]
call fcn.1001c860
push dword [esi + 0x34]
lea ecx, [edi + 0x34]
call fcn.1001c860
cmp dword [esi + 0x38], 0
je 0x1001ce2e
push 0x60
call fcn.100135ad
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x1001ce23
push dword [esi + 0x38]
mov ecx, eax
call fcn.1001cb30
mov dword [ebp - 4], 0xffffffff
jmp 0x1001ce30
xor eax, eax
mov dword [ebp - 4], 0xffffffff
jmp 0x1001ce30
xor eax, eax
mov dword [edi + 0x38], eax
lea ecx, [edi + 0x3c]
push dword [esi + 0x3c]
call fcn.1001c860
movups xmm0, xmmword [esi + 0x40]
lea ecx, [edi + 0x58]
movups xmmword [edi + 0x40], xmm0
mov eax, dword [esi + 0x50]
mov dword [edi + 0x50], eax
push dword [esi + 0x58]
call fcn.1001c860
mov edx, dword [edi + 0x5c]
mov ecx, dword [esi + 0x5c]
mov dword [ebp - 0x10], ecx
test edx, edx
je 0x1001ce77
mov eax, dword [edx]
push edx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x1002029c]
call esi
mov ecx, dword [ebp - 0x10]
mov dword [edi + 0x5c], ecx
test ecx, ecx
je 0x1001ce8e
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1002029c]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x404cdd
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jbe 0x404d08
push ebx
push edi
movzx edi, byte [edx]
movzx ebx, al
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x420fdc]
xor eax, edi
inc edx
dec esi
jne 0x404cee
pop edi
pop ebx
mov dword [ecx], eax
pop esi
ret 8

Function at 0x4063c6
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x420fd4], 0
je 0x4063e9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
neg eax
sbb eax, eax
neg eax
jmp 0x406413
push ebx
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.00406417
push dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
test eax, eax
setne bl
call fcn.00404e71
pop ecx
mov al, bl
pop ebx
leave
ret 8

Function at 0x406469
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x420fd4], 0
je 0x406489
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
jmp 0x4064af
push ebx
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.00406417
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
test eax, eax
setne bl
call fcn.00404e71
pop ecx
mov al, bl
pop ebx
leave
ret 4

Function at 0x406545
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x420fd4], 0
je 0x406567
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
sbb eax, eax
neg eax
jmp 0x406589
push ebx
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.00406417
push dword [eax]
call fcn.00406530
push dword [ebp - 0xc]
mov bl, al
call fcn.00404e71
pop ecx
mov al, bl
pop ebx
leave
ret 4

Function at 0x406787
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40679b
xor al, al
jmp 0x4067ab
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
neg eax
ret 4

Function at 0x4067ae
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x420fd4], 0
je 0x4067dc
push 0
push dword [ebp + 8]
call fcn.004063c6
test al, al
je 0x4067fe
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
jmp 0x4067fe
push ebx
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.00406417
push dword [eax]
call fcn.00406787
push dword [ebp - 0xc]
mov bl, al
call fcn.00404e71
pop ecx
mov al, bl
pop ebx
leave
ret 4
Function at 0x406c96
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x4192a0
call fcn.004184b0
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 1
mov eax, dword [esi]
push 0
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
push 0
mov dword [edi + 0x18], eax
push dword [esi + 0x1c]
call fcn.004187d0
mov ecx, dword [esi + 0x20]
xor ebx, ebx
add eax, ecx
lea ecx, [ebp - 0x18]
mov dword [edi + 0x20], eax
lea eax, [esi + 0x2c]
adc edx, ebx
push eax
mov dword [edi + 0x24], edx
call fcn.004052fb
and dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
neg eax
sbb eax, eax
inc eax
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00406d4f
push eax
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 1
call fcn.00401bd2
push dword [ebp - 0x24]
call fcn.00404e71
push dword [ebp - 0x18]
call fcn.00404e71
mov eax, dword [esi + 0x24]
pop ecx
pop ecx
mov dword [edi + 0x28], eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x406f36
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406f5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x406f5d
xor al, al
jmp 0x406f7d
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004187d0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x409f75
Capabilities:
Get process heap flags

Disassembly:
mov eax, 0x4197c6
call fcn.004184b0
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 0x10], ebx
mov al, byte [esi]
lea ecx, [ebx + 8]
mov byte [ebx], al
mov al, byte [esi + 1]
mov byte [ebx + 1], al
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
lea eax, [esi + 8]
push eax
call fcn.00401b8f
mov al, byte [esi + 0x14]
and dword [ebp - 4], 0
mov byte [ebx + 0x14], al
lea eax, [esi + 0x18]
push eax
lea ecx, [ebx + 0x18]
call fcn.00401b8f
lea eax, [esi + 0x28]
lea edx, [ebx + 0x28]
push 0xc
mov esi, eax
pop ecx
mov edi, edx
rep movsd dword es:[edi], dword [esi]
add eax, 0x30
lea ecx, [edx + 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.00401b8f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, dword [eax + 0x68]
mov dword [ebx + 0x68], eax
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40b4f3
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x419ac7
call fcn.004184b0
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
push 8
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
pop edi
mov edx, 0x41b620
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x41b618
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.0040551b
push dword [esi + 8]
mov ecx, ebx
call fcn.0040551b
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040551b
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040551b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40bb64
Capabilities:
Create thread

Disassembly:
mov eax, 0x419c81
call fcn.004184b0
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x14], esi
mov dword [esi], 0x41b69c
mov dword [esi + 4], 0x41b690
lea ecx, [esi + 0xc]
mov dword [esi + 8], edi
call fcn.0040bcd2
push 4
lea ecx, [esi + 0x5c]
pop ebx
mov dword [ebp - 4], edi
push ebx
call fcn.00406dec
mov dword [esi + 0x5c], 0x41b688
lea ecx, [esi + 0x70]
push ebx
mov byte [ebp - 4], 1
call fcn.00406dec
mov dword [esi + 0x70], 0x41b680
lea eax, [esi + 0x84]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ebx
mov dword [eax], 0x41b678
mov dword [esi + 0x98], edi
push edi
push edi
push edi
lea ecx, [esi + 0x9c]
push edi
mov byte [ebp - 4], bl
call fcn.00407554
lea eax, [esi + 0xa0]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ebx
mov dword [eax], 0x41b438
push edi
push edi
push edi
lea ecx, [esi + 0xb4]
push edi
mov byte [ebp - 4], 6
call fcn.00407554
push edi
push edi
push edi
lea ecx, [esi + 0xb8]
push 1
mov byte [ebp - 4], 7
call fcn.00407554
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 8
push eax
push edi
push esi
push 0x40bcc0
push edi
push edi
mov dword [esi], 0x41b664
mov dword [esi + 4], 0x41b658
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x98], eax
jne 0x40bc6e
lea eax, [ebp - 0x10]
push 0x41c980
push eax
mov dword [ebp - 0x10], 0x425d1
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40bfa5
Capabilities:
Create thread

Disassembly:
mov eax, 0x419d1b
call fcn.004184b0
sub esp, 0xcc
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x78]
mov ecx, dword [edi + 0x18]
push dword [ecx + eax*8 + 4]
lea eax, [ecx + eax*8]
lea ecx, [ebp - 0xd8]
push dword [eax]
call fcn.0040b670
lea esi, [edi + 0x70]
lea eax, [ebp - 0xd8]
xor ebx, ebx
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0040c8e4
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx + eax*4 - 4]
call fcn.0040b7b9
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov eax, dword [edi + 0xb8]
mov ecx, dword [edx + ecx*4 - 4]
mov dword [ecx + 0x64], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + eax*4 - 4]
lea ecx, [edi + 0xa0]
mov eax, dword [eax + 0x68]
push dword [eax]
call fcn.0040c7f1
mov dword [ebp - 0x14], ebx
add edi, 0x84
push ebx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0040c98f
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edx, dword [edi + 0xc]
mov eax, dword [ecx + eax*4 - 4]
mov ecx, dword [edi + 8]
lea esi, [edx + ecx*4 - 4]
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
push 0x40c09b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
pop edi
pop esi
cmp eax, ebx
pop ebx
jne 0x40c080
lea eax, [ebp - 0x10]
push 0x41c980
push eax
mov dword [ebp - 0x10], 0x425d0
call sub.MSVCRT.dll__CxxThrowException
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.0040b82e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x41761d
Capabilities:
Hash data using sha256

Disassembly:
and dword [ecx + 0x20], 0
and dword [ecx + 0x24], 0
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
ret
Function at 0x418846
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41bcd8
push 0x41895c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x426504], 0xffffffff
or dword [0x426508], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x42146c]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x421468]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x426500], eax
call fcn.0041898f
cmp dword [0x420fc0], 0
jne 0x4188c9
push 0x41898c
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0041897a
push 0x420038
push 0x420034
call sub.MSVCRT.dll__initterm
mov eax, dword [0x421464]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x421460]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x420030
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.004039f1
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x8e5a30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edx
xor esi, esi
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, dword [eax + 0x20]
mov ebx, dword [eax + 0x1c]
add ecx, edi
mov ebp, dword [eax + 0x24]
add ebx, edi
mov eax, dword [eax + 0x18]
add ebp, edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
test eax, eax
je 0x8e5a81
mov ecx, dword [ecx + esi*4]
add ecx, edi
call fcn.008e59e7
cmp eax, dword [esp + 0x10]
je 0x8e5a8b
mov ecx, dword [esp + 0x18]
inc esi
cmp esi, dword [esp + 0x14]
jb 0x8e5a66
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
movzx eax, word [ebp + esi*2]
mov eax, dword [ebx + eax*4]
add eax, edi
jmp 0x8e5a83
Function at 0x10012d60
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10012f41
pushal
mov esi, section.HUY1
lea edi, [esi - 0xc000]
lea eax, [edi + 0xdc20]
push dword [eax]
mov dword [eax], 0x309e504f
push eax
push edi
or ebp, 0xffffffff
jmp 0x10012d9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10012da1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10012d90
mov eax, 1
add ebx, ebx
jne 0x10012db3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10012da8
jne 0x10012dc4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10012da8
xor ecx, ecx
sub eax, 3
jb 0x10012dd8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10012e4a
mov ebp, eax
add ebx, ebx
jne 0x10012de3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10012df0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10012e14
inc ecx
add ebx, ebx
jne 0x10012e00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10012df5
jne 0x10012e11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10012df5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10012e34
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10012e25
jmp 0x10012d96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10012e34
add edi, ecx
jmp 0x10012d96
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x2ca
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10012e56
cmp byte [edi], 4
jne 0x10012e56
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10012e5b
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x10012ed3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x131dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x13294]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10012e88
mov ecx, edi
jns 0x10012eb7
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x13298]
or eax, eax
je 0x10012ecd
mov dword [ebx], eax
add ebx, 4
jmp 0x10012ea5
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10012f04
cmp al, 0xef
ja 0x10012ef7
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10012ed9
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10012ee6
mov ebp, dword [esi + 0x1329c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x10012f38
sub esp, 0xffffff80
jmp 0x100096c5
Function at 0x44f740
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x463594], 0
push esi
jne 0x44f6b3
call fcn.0044f5d9
test eax, eax
je 0x44f6f6
mov eax, dword [0x463594]
cmp eax, 1
jne 0x44f6d4
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x44f6f6
pop esi
ret
push eax
call dword [0x46359c]
test eax, eax
jne 0x44f73e
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x44f6fa
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x463594]
call dword [0x46359c]
mov edi, eax
test edi, edi
je 0x44f71f
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x44f73b
mov edi, esi
add esi, 0xff0
push edi
push dword [0x463594]
call dword [0x463598]
add edi, 0x10
cmp edi, esi
jb 0x44f727
mov eax, edi
pop edi
pop esi
ret
jmp 0x44f6a0
Function at 0x102a5bbc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
cmp ecx, 0
sete bl
cmp eax, 0
sete bh
and bl, bh
test bl, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x102a5d99
jmp 0x102a5c43
mov dword [0x102c4354], 0xffffc994
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
jmp 0x102a5d99
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
xor eax, eax
mov ecx, dword [ebp - 0x24]
mov dx, word [ecx]
mov dword [0x102c4350], 0x26b6
shr dx, 1
movzx esi, dx
cmp dx, 0
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], eax
je 0x102a5c93
jmp 0x102a5cf6
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov dword [0x102c4354], 0x25ed
mov dword [0x102c4350], 0x14fc
mov edx, dword fs:[0x18]
mov dword [0x102c4350], 0xffffeafc
mov eax, dword [edx + 0x30]
mov dword [0x102c4354], 0xffffd3cf
mov eax, dword [eax + 0xc]
add eax, 0x14
mov edx, eax
mov byte [ebp - 0x35], cl
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov eax, dword [eax]
mov edx, dword [ebp - 0x3c]
cmp eax, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], ecx
je 0x102a5d99
mov dword [0x102c4350], 0xe77
mov eax, dword [ebp - 0x28]
add eax, 0x24
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x28]
mov esi, dword [ecx + 0x10]
mov edi, dword [ebp - 0x10]
cmp esi, edi
sete bl
mov bh, byte [ebp - 0x35]
and bh, bl
test bh, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x1c], esi
jne 0x102a5ce6
jmp 0x102a5c0c
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff8
mov dword [ebp - 0x18], eax
jmp 0x102a5d99
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x40]
mov dx, word [ecx + eax*2]
mov si, dx
add si, 0xffbf
mov di, dx
add di, 0x20
cmp si, 0x1a
mov dword [ebp - 0x44], eax
mov word [ebp - 0x46], dx
mov word [ebp - 0x48], di
jb 0x102a5d2a
mov ax, word [ebp - 0x46]
mov word [ebp - 0x48], ax
mov ax, word [ebp - 0x48]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x44]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
sete bh
mov al, bl
xor al, 1
or bh, al
test bh, 1
mov byte [ebp - 0x49], bl
jne 0x102a5d83
mov dword [0x102c4350], 0x667
mov eax, dword [ebp - 0x44]
add eax, 1
mov ecx, dword [ebp - 0x30]
cmp eax, ecx
setb dl
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x51], dl
mov al, byte [ebp - 0x51]
test al, 1
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x34], ecx
jne 0x102a5cf6
jmp 0x102a5d83
mov al, byte [ebp - 0x49]
test al, 1
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
jne 0x102a5bf7
jmp 0x102a5c93
mov eax, dword [ebp - 0x18]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x102a61b6
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x102c435c], 0
mov byte [0x102c4360], 0
mov dword [0x102c4350], 0x1f87
mov dword [0x102c4358], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x102c4358]
add eax, 1
mov dword [0x102c4358], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x102a61fb
mov dword [0x102c4350], 0xd51
xor eax, eax
mov dword [0x102c4358], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x102c4364], 0
mov dword [0x102c4350], 0x17de
mov edx, dword [0x102c435c]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x102c4364], edi
mov dword [0x102c4354], 0x51e
mov dword [0x102c4350], 0xffffe312
mov eax, edi
cdq
idiv ecx
mov dword [0x102c435c], edx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x102c4360], cl
mov dword [0x102c4350], 0x1980
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov ecx, dword [0x102c4350]
add ecx, 0x1ff7
mov dword [0x102c4354], ecx
mov cl, byte [0x102c4360]
mov edx, dword [0x102c435c]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov dword [0x102c4350], 0x5e6
mov edx, dword [0x102c4354]
add edx, 0xfffffd1a
mov dword [0x102c4354], edx
mov edx, dword [0x102c4358]
add edx, 1
mov dword [0x102c4358], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x102a623a
mov dword [0x102c4350], 0x1e31
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret