joyce8/EMBER2024-capa huggingface dataset:
Function at 0xaf48cd
Capabilities:
Packed with generic packer
Parse pe header

Disassembly:
call fcn.00af406a
push dword [esp + 1]
mov dword [esp + 4], eax
lea esp, [esp + 4]
jmp 0xaf4065

Function at 0xaf4903
Capabilities:
Access peb ldr_data
Get number of processors
Packed with generic packer
Parse pe header

Disassembly:
mov eax, dword [eax]
jmp 0xaf48e3
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0xaf48a9
mov eax, dword [eax + 8]
call fcn.00af48cd
mov dword [esp + 0x30], edi
lea esp, [esp + 0x30]
jmp 0xaf48bf

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x7aeb6a33
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4320d2
nop
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3ec93897
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3a953e88
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6be22244
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x100034af
Capabilities:
Create directory

Disassembly:
push esi
mov esi, eax
mov al, byte [esi]
cmp al, 0x31
jl 0x1000350c
cmp al, 0x33
jg 0x1000350c
push str.e:_dchmi_
call sub.MSVCR90.dll__mkdir
mov al, byte [esi]
pop ecx
cmp al, 0x31
jne 0x100034d4
push str.e:_dchmi_1
jmp 0x100034e8
cmp al, 0x32
jne 0x100034df
push str.e:_dchmi_2
jmp 0x100034e8
cmp al, 0x33
jne 0x100034ee
push str.e:_dchmi_3
call sub.MSVCR90.dll__mkdir
pop ecx
lea eax, [esi + 2]
push eax
movsx eax, byte [esi]
sub eax, 0x30
push eax
push str.e:_dchmi__d__s
mov esi, 0x116dddf8
push esi
call sub.MSVCR90.dll_sprintf
add esp, 0x10
mov eax, esi
pop esi
ret

Function at 0x10003510
Capabilities:
Read file on windows

Disassembly:
push esi
call fcn.100034af
push 0x8000
push eax
call dword [sym.imp.MSVCR90.dll__open]
mov esi, eax
or eax, 0xffffffff
pop ecx
pop ecx
cmp esi, eax
je 0x10003559
push edi
push 0
push dword [esp + 0x18]
push esi
call dword [sym.imp.MSVCR90.dll__lseek]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push esi
call dword [sym.imp.MSVCR90.dll__read]
push esi
mov edi, eax
call dword [sym.imp.MSVCR90.dll__close]
add esp, 0x1c
mov eax, edi
pop edi
pop esi
ret
Function at 0x10008ee5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, esi
test esi, esi
je 0x10008f4c
cmp dword [ebp + 8], 0x14
jle 0x10008f4c
cmp dword [esi], 0xaa55a55a
jne 0x10008f4c
mov ebx, dword [esi + 8]
mov edi, dword [esi + 4]
mov ecx, dword [esi + 0xc]
mov edx, ebx
shr edx, 2
mov dword [ebp - 4], edi
test edx, edx
jbe 0x10008f1f
lea eax, [esi + 0x10]
xor dword [eax], ecx
add eax, 4
dec edx
jne 0x10008f17
inc edi
push edi
call sub.MSVCR90.dll_malloc
mov edi, eax
pop ecx
test edi, edi
je 0x10008f45
lea ecx, [ebp - 4]
push ecx
lea eax, [esi + 0x14]
mov ecx, ebx
mov edx, edi
call fcn.10078af0
mov eax, dword [ebp - 4]
pop ecx
mov byte [eax + edi], 0
push esi
call sub.MSVCR90.dll_free
pop ecx
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x1000c537
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x148
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x144], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp edi, 0x40
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov esi, edx
mov dword [esp + 8], eax
jle 0x1000c595
lea eax, [esp + 0x10]
call fcn.1000c376
push esi
mov eax, edi
lea ecx, [esp + 0x14]
call fcn.1000c39a
pop ecx
lea esi, [esp + 0x10]
lea edi, [esp + 0xa8]
call fcn.1000c42a
push 0x10
mov esi, edi
pop edi
push 0x41
lea eax, [esp + 0x104]
push 0
push eax
call sub.MSVCR90.dll_memset
push 0x41
lea eax, [esp + 0xc8]
push 0
push eax
call sub.MSVCR90.dll_memset
push edi
lea eax, [esp + 0x11c]
push esi
push eax
call sub.MSVCR90.dll_memcpy
push edi
lea eax, [esp + 0xe0]
push esi
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0x30
xor eax, eax
xor byte [esp + eax + 0x100], 0x36
xor byte [esp + eax + 0xb8], 0x5c
inc eax
cmp eax, 0x40
jl 0x1000c5da
lea eax, [esp + 0x10]
call fcn.1000c376
lea eax, [esp + 0x100]
push eax
push 0x40
pop eax
lea ecx, [esp + 0x14]
call fcn.1000c39a
push dword [esp + 0x10]
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x18]
call fcn.1000c39a
mov edi, dword [esp + 0x10]
lea esi, [esp + 0x18]
call fcn.1000c42a
mov eax, esi
call fcn.1000c376
lea eax, [esp + 0xc0]
push eax
push 0x40
pop eax
mov ecx, esi
call fcn.1000c39a
push edi
push 0x10
pop eax
mov ecx, esi
call fcn.1000c39a
add esp, 0x10
call fcn.1000c42a
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
xor ecx, esp
call fcn.1007b2de
mov esp, ebp
pop ebp
ret

Function at 0x1000cfa4
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
xor al, al
cmp cx, word [esp + 8]
jae 0x1000cfbe
mov ecx, dword [esp + 4]
movzx edx, word [esp + 8]
xor al, byte [ecx]
inc ecx
dec edx
jne 0x1000cfb8
ret

Function at 0x10013994
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
test eax, eax
jle 0x10013a2d
lea edx, [eax + ebx - 1]
push esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
push edi
mov al, byte [0x136ec3c0]
test al, al
je 0x10013a14
movzx eax, al
mov al, byte [eax + 0x10082e90]
xor esi, esi
test ebx, ebx
jle 0x100139fe
movzx eax, al
mov dword [ebp - 8], eax
mov eax, dword [ebx*4 + 0x10083468]
movzx eax, byte [eax + esi]
add eax, dword [ebp - 8]
mov edi, 0xff
cdq
idiv edi
lea ecx, [esi + 0x136ec3c0]
movzx eax, dl
mov al, byte [eax + 0x10082d90]
xor al, byte [ecx + 1]
inc esi
cmp esi, ebx
mov byte [ecx], al
jl 0x100139cc
mov edx, dword [ebp - 0xc]
cmp ebx, edx
jge 0x10013a26
mov ecx, edx
lea edi, [ebx + 0x136ec3c0]
lea esi, [ebx + 0x136ec3c1]
sub ecx, ebx
jmp 0x10013a24
test edx, edx
jle 0x10013a26
mov ecx, edx
mov esi, 0x136ec3c1
mov edi, 0x136ec3c0
rep movsb byte es:[edi], byte [esi]
dec dword [ebp - 4]
jne 0x100139ae
pop edi
pop esi
leave
ret
Function at 0x10014d28
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
test al, al
je 0x10014dce
cmp al, 1
je 0x10014dce
push esi
cmp al, 2
je 0x10014d97
cmp al, 3
je 0x10014d97
cmp al, 6
je 0x10014d97
cmp al, 4
je 0x10014d55
cmp al, 5
je 0x10014d55
cmp al, 7
jne 0x10014dcd
movzx ecx, word [ebp + 8]
shr ecx, 3
test ecx, ecx
jle 0x10014dcd
lea eax, [ebx + 4]
mov esi, ecx
movzx edx, word [eax + 2]
xor word [eax - 4], dx
movzx ecx, word [eax - 4]
xor ecx, edx
movzx edx, word [eax]
xor word [eax - 4], cx
xor word [eax - 2], dx
mov word [eax + 2], cx
movzx ecx, word [eax - 2]
xor ecx, edx
xor word [eax - 2], cx
mov word [eax], cx
add eax, 8
dec esi
jne 0x10014d65
jmp 0x10014dcd
and dword [ebp - 4], 0
push edi
movzx edi, word [ebp + 8]
shr edi, 2
test edi, edi
jle 0x10014dcc
mov eax, dword [ebp - 4]
shl eax, 2
lea edx, [eax + ebx + 2]
movzx esi, word [edx]
add eax, ebx
xor word [eax], si
movzx ecx, word [eax]
xor ecx, esi
xor word [eax], cx
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
mov word [edx], cx
jl 0x10014da7
pop edi
pop esi
leave
ret

Function at 0x1001b012
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp byte [ebp + 0x10], bl
je 0x1001b062
mov eax, dword [ebp + 8]
dec byte [ebp + 0x10]
or eax, dword [ebp + 0xc]
jne 0x1001b039
cmp byte [ebp + 0x14], bl
je 0x1001b05e
mov byte [esi + edi], 0x30
inc esi
jmp 0x1001b059
push ebx
push 0xa
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1007bed0
add cl, 0x30
mov byte [esi + edi], cl
mov dword [ebp - 4], ebx
inc esi
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], edx
xor ebx, ebx
cmp byte [ebp + 0x10], bl
jne 0x1001b022
cmp esi, ebx
jne 0x1001b068
xor esi, esi
mov byte [edi], 0x30
inc esi
mov eax, esi
cdq
lea ecx, [esi + edi]
sub eax, edx
mov esi, eax
sar esi, 1
cmp esi, ebx
mov byte [ecx], bl
jle 0x1001b090
dec ecx
mov al, byte [ecx]
xor byte [ebx + edi], al
mov dl, byte [ebx + edi]
xor byte [ecx], dl
mov dl, byte [ecx]
xor byte [ebx + edi], dl
inc ebx
dec ecx
cmp ebx, esi
jl 0x1001b07b
pop esi
pop ebx
leave
ret

Function at 0x1001c70d
Capabilities:
Encode data using xor

Disassembly:
movzx ax, al
push edi
xor edi, edi
call fcn.10028de2
mov ecx, eax
test ecx, ecx
je 0x1001c762
push esi
mov esi, dword [ecx + 0x28]
xor eax, eax
mov edi, ebx
push ebx
stosd dword es:[edi], eax
call fcn.10004679
cmp byte [esp + 0x10], 0
pop ecx
movzx edi, ax
je 0x1001c761
movzx eax, di
mov esi, eax
shr esi, 1
xor edx, edx
test esi, esi
jle 0x1001c761
lea eax, [ebx + eax*4 - 4]
mov ecx, dword [eax]
xor dword [ebx + edx*4], ecx
mov ecx, dword [ebx + edx*4]
xor dword [eax], ecx
mov ecx, dword [eax]
xor dword [ebx + edx*4], ecx
inc edx
sub eax, 4
cmp edx, esi
jl 0x1001c74a
pop esi
mov ax, di
pop edi
ret

Function at 0x10029410
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or eax, 0xffffffff
xor ecx, ecx
push esi
mov edx, dword [esp + 8]
movzx edx, byte [ecx + edx]
push 7
xor eax, edx
pop edx
mov esi, eax
and esi, 1
neg esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jns 0x10029423
inc ecx
cmp ecx, 0x88a
jl 0x10029416
not eax
pop esi
ret
Function at 0x1002afd0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x1002b021
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push 0x1c
push 1
push esi
call ecx
mov dword [esi + 0x190], eax
mov dword [eax], 0x1002ae40
mov dword [eax + 4], 0x1002afa0
mov byte [eax + 8], 0
add esp, 0xc
mov eax, esi
call fcn.1002aca0
cmp byte [esi + 0x40], 0
je 0x1002b01a
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x1002b09b
mov edx, dword [esi + 0x1a0]
cmp byte [edx + 0x10], 0
je 0x1002b08b
mov eax, dword [esi + 8]
test eax, eax
je 0x1002b046
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov ecx, dword [esi + 0x1a0]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
test eax, eax
je 0x1002b087
cmp eax, 2
je 0x1002b08b
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1002b037
cmp eax, 3
je 0x1002b06e
cmp eax, 1
jne 0x1002b037
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x1002b037
mov edx, dword [esi + 0x120]
add dword [eax + 8], edx
jmp 0x1002b037
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.1002b0d0
pop esi
ret
cmp eax, 0xcc
je 0x1002b0bd
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.1002b0d0
pop esi
ret
Function at 0x1002f560
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x24]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1b8]
mov dword [esp + 0x18], esi
jne 0x1002f587
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x1002f593
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0x14], ecx
jle 0x1002f6a6
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x14], edx
jmp 0x1002f5d8
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [edx]
cdq
idiv edi
cmp dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
je 0x1002f5f9
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov ebp, dword [edx + ecx*4]
lea eax, [edi + 0xfe]
lea esi, [edi + edi - 2]
cdq
idiv esi
xor ebx, ebx
mov dword [esp + 0x24], ebp
xor esi, esi
mov edx, eax
cmp esi, edx
jle 0x1002f64f
mov ecx, ebx
lea ebp, [edi + edi - 2]
imul ecx, ecx, 0x1fe
jmp 0x1002f630
add ecx, 0x1fe
lea eax, [ecx + edi + 0xfe]
cdq
idiv ebp
inc ebx
mov edx, eax
cmp esi, edx
jg 0x1002f630
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov al, byte [esp + 0x18]
imul bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0xff
jle 0x1002f616
cmp dword [esp + 0x10], 0
je 0x1002f68d
mov eax, 1
lea edx, [ebp - 1]
movzx ebx, byte [ebp]
mov byte [edx], bl
movzx ebx, byte [ebp + 0xff]
mov byte [eax + ebp + 0xff], bl
inc eax
dec edx
cmp eax, 0xff
jle 0x1002f670
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], 4
inc ecx
cmp ecx, dword [eax + 0x64]
mov dword [esp + 0x1c], ecx
jl 0x1002f5d0
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x10036b40
Capabilities:
Query environment variable

Disassembly:
sub esp, 8
push esi
push edi
xor edi, edi
push 0x54
mov dword [ebx + 4], edi
mov dword [esp + 0x10], 0xf4240
call sub.MSVCR90.dll_malloc
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x10036b7a
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x38
mov ecx, dword [ebx]
mov dword [ecx + 0x18], edi
mov edx, dword [ebx]
mov eax, dword [edx]
push ebx
call eax
add esp, 4
mov dword [esi], fcn.10035fe0
mov dword [esi + 4], fcn.10036130
mov dword [esi + 8], fcn.100361f0
mov dword [esi + 0xc], fcn.100362a0
mov dword [esi + 0x10], 0x10036350
mov dword [esi + 0x14], 0x100363c0
mov dword [esi + 0x18], 0x10036430
mov dword [esi + 0x1c], 0x10036780
mov dword [esi + 0x20], 0x100368c0
mov dword [esi + 0x24], fcn.10036a10
mov dword [esi + 0x28], 0x10036b00
mov dword [esi + 0x30], 0x3b9aca00
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x38], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [ebx + 4], esi
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
cmp eax, edi
je 0x10036c55
lea edx, [esp + 0xb]
push edx
lea ecx, [esp + 0x10]
push ecx
push str._ld_c
push eax
mov byte [esp + 0x1b], 0x78
call sub.MSVCR90.dll_sscanf
add esp, 0x10
test eax, eax
jle 0x10036c55
mov al, byte [esp + 0xb]
cmp al, 0x6d
je 0x10036c2f
cmp al, 0x4d
jne 0x10036c48
mov eax, dword [esp + 0xc]
imul eax, eax, 0x3e8
imul eax, eax, 0x3e8
pop edi
mov dword [esi + 0x2c], eax
pop esi
add esp, 8
ret
mov eax, dword [esp + 0xc]
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
add esp, 8
ret
Function at 0x100459d0
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x100459ea
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x100459ea
mov edx, dword [esp + 8]
push edx
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1004c000
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
mov bl, byte [ecx + 8]
push esi
mov esi, dword [esp + 0x20]
cmp bl, 3
je 0x1004c19f
push ebp
mov ebp, dword [ecx]
push edi
mov dword [esp + 0x10], 0
test bl, 2
je 0x1004c056
movzx eax, byte [ecx + 9]
movzx esi, byte [edx]
mov edi, eax
sub edi, esi
movzx esi, byte [edx + 1]
mov dword [esp + 0x14], edi
mov edi, eax
sub edi, esi
movzx esi, byte [edx + 2]
sub eax, esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov edi, 3
jmp 0x1004c069
movzx eax, byte [edx + 3]
movzx edi, byte [ecx + 9]
sub edi, eax
mov dword [esp + 0x14], edi
mov edi, 1
test bl, 4
je 0x1004c07d
movzx edx, byte [edx + 4]
movzx eax, byte [ecx + 9]
sub eax, edx
mov dword [esp + edi*4 + 0x14], eax
inc edi
xor edx, edx
xor eax, eax
cmp edi, edx
jle case.0x1004c0cb.3
lea esp, [esp]
cmp dword [esp + eax*4 + 0x14], edx
jg 0x1004c09c
mov dword [esp + eax*4 + 0x14], edx
jmp 0x1004c0a4
mov dword [esp + 0x10], 1
inc eax
cmp eax, edi
jl 0x1004c090
cmp word [esp + 0x10], dx
je case.0x1004c0cb.3
movzx eax, byte [ecx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x1004c0cb.3
movzx eax, byte [eax + 0x1004c1bc]
jmp dword [eax*4 + 0x1004c1a8]
mov ecx, dword [ecx + 4]
mov eax, esi
cmp ecx, edx
jbe case.0x1004c0cb.3
nop
mov dl, byte [eax]
shr dl, 1
and dl, 0x55
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x1004c0e0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
mov edi, dword [ecx + 4]
mov edx, dword [esp + 0x14]
mov ecx, edx
mov eax, pe_nt_image_headers32
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x1004c0cb.3
lea ebx, [ebx]
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x1004c120
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x1004c0cb.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [esp + edx*4 + 0x14]
shr byte [esi - 1], cl
cmp ebx, ebp
jb 0x1004c142
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x1004c0cb.3
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, 0x100
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [esp + edx*4 + 0x14]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, ebp
jb 0x1004c166
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x100546c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x14], eax
push 0
call dword [sym.imp.MSVCR90.dll__time64]
mov ecx, dword [esp + 0x20]
add esp, 4
lea edx, [esp]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov ecx, 0x10
lea edx, [esp + 0x13]
push esi
xor eax, ecx
mov dword [esp + 0x10], 0x100810c0
mov dword [esp + 0x14], fcn.10054c20
sub edx, ecx
push edi
movzx esi, byte [edx + ecx]
mov edi, eax
shl edi, 5
add esi, edi
mov edi, eax
shr edi, 2
add esi, edi
dec ecx
xor eax, esi
cmp ecx, 1
jae 0x10054707
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.1007b2de
add esp, 0x18
ret

Function at 0x1005a0b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x88
push esi
push edi
mov edi, eax
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.10059c50
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
mov dword [esp + 0x20], eax
mov esi, eax
call fcn.10059cd0
add esp, 0x14
add esi, eax
cmp dword [edi + 8], 0x13
jne 0x1005a1c5
mov eax, dword [edi]
mov edi, dword [edi + 4]
test edi, edi
jl 0x1005a1c5
jg 0x1005a183
test eax, eax
jbe 0x1005a1c5
test edi, edi
ja 0x1005a1c5
jb 0x1005a190
cmp eax, 0x80000000
ja 0x1005a1c5
test eax, eax
je 0x1005a1c5
dec eax
xor ecx, ecx
cmp eax, 0x100
jb 0x1005a1ad
mov edi, edi
shr eax, 8
add ecx, 8
cmp eax, 0x100
jae 0x1005a1a0
movzx eax, byte [eax + 0x100810d0]
add eax, ecx
inc dword [esp + eax*4 + 0x10]
lea eax, [esp + eax*4 + 0x10]
mov eax, 1
jmp 0x1005a1c7
xor eax, eax
add dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.10059bf0
sub esi, dword [esp + 0x14]
mov edx, dword [esp + 0x9c]
inc esi
push esi
push eax
push edx
mov eax, ebx
call fcn.10059ee0
add esp, 0x14
pop edi
pop esi
add esp, 0x88
ret