joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b962
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x184
push 8
push dword [0x9e55a0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x9e6b48]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x9e6b4c], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.00462065
mov dword [esi + 0x58], 0x45b8d4
mov dword [esi + 0x5c], 0x45b920
mov dword [esi + 0x10], fcn.0045aa5f
mov dword [esi + 0x30], 0x45abe7
mov dword [esi + 0x64], 0x45acf4
mov dword [esi + 0x60], 0x45ad42
mov dword [esi + 0x34], 0x45b469
mov dword [esi + 0x24], 0x45b308
mov dword [esi + 0x28], 0x45b331
mov dword [esi + 0x2c], 0x45b35c
mov dword [esi + 0x44], 0x45b75e
mov eax, esi
pop esi
ret 4

Function at 0x45ce5d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x20], 0
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ecx + 0xd4]
mov dword [ebp - 4], esi
je 0x45cee4
imul esi, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
imul eax, dword [ebp + 0x18]
neg dword [ebp + 0x10]
add eax, dword [ebp + 8]
push ebx
lea edx, [eax + edx*4]
push edi
mov eax, dword [ecx + 0xcc]
imul eax, dword [ebp + 0x14]
add eax, dword [ecx + 0xc8]
mov edi, edx
add eax, esi
cmp dword [ebp + 0x1c], 0
jle 0x45cec5
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x18], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add eax, dword [ebp - 4]
add edi, 4
dec dword [ebp + 0x18]
jne 0x45ceaa
dec dword [ebp + 0x20]
inc dword [ebp + 0x14]
cmp dword [ecx + 0xe8], 0
jne 0x45ced9
add edx, dword [ebp + 0x10]
jmp 0x45cedc
add edx, dword [ebp + 0xc]
cmp dword [ebp + 0x20], 0
jne 0x45ce8a
pop edi
pop ebx
pop esi
leave
ret 0x1c

Function at 0x45de07
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x20], 0
mov edx, dword [ecx + 0xd4]
push edi
mov edi, dword [ebp + 0xc]
je 0x45de95
mov dword [ebp - 4], edi
imul edi, dword [ebp + 0x18]
imul eax, eax, 3
add edi, dword [ebp + 8]
neg dword [ebp - 4]
push ebx
push esi
mov esi, edx
imul esi, dword [ebp + 0x10]
add edi, eax
mov dword [ebp + 0x10], edi
mov eax, dword [ecx + 0xcc]
imul eax, dword [ebp + 0x14]
add eax, dword [ecx + 0xc8]
add eax, esi
cmp dword [ebp + 0x1c], 0
jle 0x45de70
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x18], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add edi, 3
add eax, edx
dec dword [ebp + 0x18]
jne 0x45de56
dec dword [ebp + 0x20]
inc dword [ebp + 0x14]
cmp dword [ecx + 0xe8], 0
mov edi, dword [ebp + 0x10]
jne 0x45de87
add edi, dword [ebp - 4]
jmp 0x45de8a
add edi, dword [ebp + 0xc]
cmp dword [ebp + 0x20], 0
mov dword [ebp + 0x10], edi
jne 0x45de38
pop esi
pop ebx
pop edi
leave
ret 0x1c
Function at 0x45defe
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
imul eax, eax, 3
cmp dword [ebp + 0x18], 0
mov dword [ebp - 8], eax
je 0x45dfaa
mov eax, dword [ebp + 0xc]
imul ecx, ecx, 3
neg eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x14]
add eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
imul esi, esi, 3
add ecx, eax
mov dword [ebp + 0x14], ecx
mov edx, dword [ebp - 8]
mov dword [ebp + 8], ecx
mov ecx, dword [edi + 0xcc]
imul ecx, dword [ebp + 0x10]
add ecx, dword [edi + 0xc8]
add ecx, esi
test edx, edx
jle 0x45df85
mov eax, 0xff
sub eax, dword [ebp + 0x1c]
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 8]
movzx edx, byte [edx]
movzx eax, byte [ecx]
imul edx, dword [ebp + 0x1c]
imul eax, dword [ebp - 0xc]
add eax, edx
cdq
mov ebx, 0xff
idiv ebx
inc dword [ebp + 8]
mov byte [ecx], al
inc ecx
dec dword [ebp - 4]
jne 0x45df5f
dec dword [ebp + 0x18]
inc dword [ebp + 0x10]
cmp dword [edi + 0xe8], 0
mov ecx, dword [ebp + 0x14]
jne 0x45df9c
add ecx, dword [ebp - 0x10]
jmp 0x45df9f
add ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x18], 0
mov dword [ebp + 0x14], ecx
jne 0x45df35
pop esi
pop ebx
leave
ret 0x18
Function at 0x431001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x101654e7
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 edi, dword [0x1029b948]
add edi, 0x2307
mov dword [0x1029b944], edi
mov dword [0x1029b950], 0
mov byte [0x1029b954], 0
mov dword [0x1029b948], 0x1492
mov dword [0x1029b94c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x10165551
xor eax, eax
mov dword [0x1029b94c], 0
mov dword [ebp - 0x20], eax
jmp 0x1016558d
mov eax, dword [ebp - 0x1c]
mov dword [0x1029b948], 0x11fa
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x1029b944], 0xfffff39e
mov eax, dword [0x1029b94c]
add eax, 1
mov dword [0x1029b94c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10165551
jmp 0x10165540
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x1029b958], 0
mov dword [0x1029b944], 0x113b
mov edx, dword [0x1029b950]
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 [0x1029b958], edi
mov dword [0x1029b948], 0x977
mov eax, edi
cdq
idiv ecx
mov dword [0x1029b950], edx
mov dword [0x1029b944], 0x182
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x1029b954], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x1029b954]
mov edx, dword [0x1029b950]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov dword [0x1029b948], 0x1ee0
mov edx, dword [0x1029b94c]
add edx, 1
mov dword [0x1029b94c], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x1016558d
mov dword [0x1029b948], 0x5b8
mov eax, dword [0x1029b944]
add eax, 0x1964
mov dword [0x1029b944], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10165674
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x168
mov eax, dword [ebp + 8]
mov dword [ebp - 0x130], eax
xor eax, eax
mov dword [0x1029b944], 0x1498
mov ecx, eax
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jmp 0x1016581f
lea eax, [0x1026a102]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x1029b944], 0xb3f
mov dword [0x1029b948], 0x16e8
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x140], ecx
call fcn.101654e7
mov dword [0x1029b944], 0x1454
mov eax, dword [ebp - 0x13c]
mov dword [esp], eax
mov ecx, dword [ebp - 0x144]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x148]
mov dword [esp + 0xc], edx
call fcn.101660fa
mov eax, dword [ebp - 0x144]
add eax, 0xf3b41
mov ecx, dword [ebp - 0x130]
mov dword [ecx], eax
mov dword [0x1029b944], 0x1719
mov dword [ecx + 4], 0x12f600
mov eax, dword [ebp - 0x144]
add eax, 0x35018
mov dword [ecx + 8], eax
xor eax, eax
mov ecx, dword [ebp - 0x130]
mov dword [ecx + 0xc], 0x2010
mov edx, dword [0x1029b944]
add edx, 0xffffe743
mov dword [0x1029b944], edx
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x150]
lea edx, section..data
mov esi, dword [ebp - 0x144]
add esi, eax
imul edi, ecx, 0x78
mov ebx, edx
add ebx, edi
add ebx, 0x40
imul edi, ecx, 0x78
mov dword [ebp - 0x154], eax
mov eax, edx
add eax, edi
imul edi, ecx, 0x78
add edx, edi
add edx, 4
add ecx, 1
mov edi, dword [ebx]
mov eax, dword [eax]
movzx edx, word [edx]
xor edx, edi
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x15c], ecx
call fcn.10165a09
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 0x154]
add eax, ecx
mov edx, dword [ebp - 0x15c]
cmp edx, 0x67a
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x14c], eax
je 0x101656a8
jmp 0x1016577b
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, eax, 0x78
mov edi, edx
add edi, esi
add edi, 0x40
mov esi, dword [edi]
imul edi, eax, 0x78
add edx, edi
add edx, 4
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x67a
mov ecx, edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x1016581f
lea eax, [0x1026a0f4]
mov ecx, 0xe
lea edx, [ebp - 0x12c]
mov dword [0x1029b944], 0x3528
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x164], ecx
call fcn.10166356
mov dword [0x1029b944], 0xee1
call fcn.101666d1
mov dword [esp], eax
mov eax, dword [ebp - 0x160]
mov dword [esp + 4], eax
call fcn.10165202
mov ecx, eax
mov dword [0x1029b964], eax
mov eax, esp
mov edx, dword [ebp - 0x148]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x14c], ecx
jmp 0x1016577b
Function at 0x10165aa7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [ebp + 8]
mov dword [0x1029b944], 0x2289
mov dword [ebp - 0x10], eax
call fcn.10165073
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x10165aed
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov dword [0x1029b944], 0x5d8
mov esi, dword [edx + eax + 0x24]
mov dword [0x1029b948], 0xa39
mov edi, dword [edx + eax + 0x18]
cmp edi, 0
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
je 0x10165c1d
jmp 0x10165b61
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x1029b944], 0xf
mov dword [ebp - 0x34], edi
jmp 0x10165c1d
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [ebp - 0x48]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x51], bh
mov byte [ebp - 0x52], cl
je 0x10165bdd
mov al, byte [ebp - 0x51]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x50]
add edx, 1
mov ah, byte [ebp - 0x52]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x4c], edx
jne 0x10165b8b
mov al, byte [ebp - 0x52]
test al, 1
jne 0x10165b39
jmp 0x10165bea
mov eax, dword [ebp - 0x38]
add eax, 2
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], ecx
xor eax, eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x30]
cmp ecx, edx
mov esi, dword [ebp - 0x58]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x34], eax
jb 0x10165b71
mov eax, dword [ebp - 0x34]
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10165c8e
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x3c
mov dword [ebp - 8], 0
mov dword [0x1029b948], 0x4f5
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov dword [0x1029b944], 0x650
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
jmp 0x10165d73
mov dword [0x1029b944], 0xe50
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x10165dc9
jmp 0x10165e1c
mov eax, dword [0x1029b948]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x10165d48
mov dword [0x1029b948], 0xab6
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
setl cl
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x2d], cl
mov eax, 0xab6
mov cl, byte [ebp - 0x2d]
test cl, 1
mov edx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x14], esi
jne 0x10165d73
jmp 0x10165d48
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, ecx
add edx, 0xffffde47
mov dword [0x1029b948], edx
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x34], ecx
je 0x10165d8a
jmp 0x10165e1c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
mov dword [ebp - 0x20], eax
je 0x10165cf4
jmp 0x10165d0a
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
shl eax, 1
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x38]
cmp word [eax], 0x6f
jne 0x10165e1c
mov eax, dword [ebp - 0x34]
add eax, 0xffffff23
mov dword [0x1029b944], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x10165cd2
jmp 0x10165e1c
mov dword [0x1029b944], 0x1419
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x10165e1c
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff8
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x3c]
cmp word [eax + ecx*2], 0x6c
jne 0x10165e1c
mov eax, 1
mov dword [0x1029b948], 0x7a0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x40], eax
je 0x10165e2d
mov dword [0x1029b948], 0x1280
xor eax, eax
mov dword [ebp - 0x40], eax
jmp 0x10165e2d
mov eax, dword [ebp - 0x40]
add esp, 0x3c
pop esi
pop ebp
ret
Function at 0x10165e36
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x1026a0f4]
mov esi, 0xe
lea edi, [ebp - 0x28]
mov dword [0x1029b944], 0x117a
mov dword [0x1029b948], 0x2413
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0xe
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
call fcn.10166356
mov dword [0x1029b948], 0x182b
mov dword [0x1029b944], 0xee1
call fcn.101666d1
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.10165202
mov dword [ebp - 0x3c], eax
xor eax, eax
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0
mov dword [ebp - 0x40], eax
je 0x10165f81
jmp 0x10165ee7
mov eax, dword [ebp - 0x44]
add eax, 0x1719
mov dword [0x1029b944], 0x13f8
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x40], eax
jmp 0x10165f81
mov dword [0x1029b948], 0x686
mov eax, dword [ebp - 0x3c]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x1029b948], 0x1c5a
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x44], eax
call fcn.10165397
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov dword [0x1029b948], 0x145
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x38], ecx
mov ecx, dword [ebp - 0x44]
mov dword [edx], ecx
mov dword [0x1029b944], 0x640
cmp ecx, 0
mov dword [ebp - 0x40], eax
jne 0x10165ec7
mov eax, dword [ebp - 0x40]
add esp, 0x50
pop esi
pop edi
pop ebp
ret
Function at 0x101660fa
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, dword [0x1029b944]
add ebx, 0x510
mov dword [0x1029b948], ebx
mov dword [0x1029b94c], 0
mov dword [0x1029b950], 0
mov dword [0x1029b95c], 0
mov dword [0x1029b944], 0x16c5
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x101662a5
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x1029b948], 0x47c
mov edi, eax
add edi, 1
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x1029b94c], edx
mov dword [0x1029b944], 0xd85
mov ecx, dword [ebp - 0x20]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x30]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x1029b950], edx
mov dword [0x1029b944], 0x237c
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x1029b954], cl
mov dword [0x1029b948], 0x46d
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov dword [0x1029b948], 0x7f8
mov cl, byte [0x1029b954]
mov edx, dword [0x1029b950]
mov byte [ebx + edx], cl
mov dword [0x1029b944], 0x14d6
mov edx, dword [0x1029b94c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x1029b950]
movzx ecx, byte [ebx + ecx]
add ecx, edx
mov dword [0x1029b948], 0x16e2
and ecx, 0xff
mov dword [0x1029b95c], ecx
mov dword [0x1029b944], 0xaf
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov ch, byte [edx + esi]
mov byte [0x1029b961], ch
mov byte [0x1029b962], cl
xor ch, cl
mov byte [0x1029b960], ch
mov dword [0x1029b944], 0xa4e
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x38], edi
je 0x101662a5
mov eax, dword [0x1029b94c]
mov ecx, dword [0x1029b950]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], edx
jmp 0x1016616f
mov dword [0x1029b944], 0xb72
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1016641a
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
mov eax, dword [0x1029b944]
add eax, 0xffffddc7
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
mov dword [0x1029b944], eax
call fcn.1000107a
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x30], ecx
je 0x101664b9
jmp 0x101665df
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x8c], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x70], edx
mov dword [0x1029b944], 0xebf
call fcn.10165c8e
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
je 0x1016658a
jmp 0x101665d7
mov dword [0x1029b948], 0x773
mov eax, dword [esp + 0x2c]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
jmp 0x10166551
lea eax, [esp + 0x38]
lea ecx, [esp + 0x48]
mov edx, dword [0x1029b948]
add edx, 0xffffd0b8
mov dword [0x1029b944], edx
mov dword [esp], eax
mov dword [esp + 0x18], ecx
call fcn.10165674
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x5c], 0x12f600
mov dword [0x1029b948], 0x1eb7
mov ecx, dword [0x1029b930]
mov dword [esp + 0x98], ecx
mov ecx, dword [0x1029b934]
mov dword [esp + 0x50], ecx
mov ecx, dword [0x1029b938]
mov dword [esp + 0x84], ecx
mov ecx, dword [0x1029b93c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
lea eax, [0x10165c28]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x58], ecx
mov edx, dword [0x1029b940]
mov dword [esp + 0x78], edx
mov dword [0x1029b944], 0x19e4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x2c], eax
jne 0x10166490
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax + ecx]
mov dword [esp + 0x28], ecx
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
cmp eax, 0x4550
je 0x10166454
jmp 0x10166490
lea eax, [esp + 0x38]
mov dword [0x1029b944], 0x1b81
add eax, 8
mov dword [esp + 8], eax
lea eax, [esp + 0x48]
mov ecx, dword [esp + 8]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.10165e36
mov dword [0x1029b948], 0xecc
mov ecx, esp
lea edx, [esp + 0x48]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
mov esp, ebp
pop ebp
ret