joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460580
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a7a88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
nop
nop
nop
nop
nop
nop
push 0
lea ecx, [esp + 0x20]
call fcn.0049fa96
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0045fee0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0049f9c4
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0049c282
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0049c282
push 1
push 0
push 0
mov ecx, esi
call fcn.0049c22a
push 1
push 0
push 1
mov ecx, esi
call fcn.0049c22a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0049fb08
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x460700
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a7aa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0049fa96
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0045fee0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0049f9c4
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4607c4
cmp dword [esp + 0x40], 1
jne 0x4607c2
cmp ecx, eax
jge 0x4607c4
mov eax, ecx
cmp eax, 0xc8
jge 0x4607d0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00460580
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
nop
nop
nop
nop
nop
nop
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0049fb08
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x460fd0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a7b53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0049a69f
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x830328
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x830270
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
nop
nop
nop
nop
nop
nop
push eax
mov ecx, edi
call fcn.0049fd3e
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004a125a
test eax, eax
je 0x4610ec
mov ecx, dword [esp + 0x3c]
call fcn.0049fd6b
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4aa694]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4610b0
push edi
mov ecx, esi
call fcn.0049d3cc
mov ecx, esi
call fcn.00461290
cmp dword [esp + 0x38], 1
jne 0x4610e5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0049d507
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x4632e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x463313
push esi
call fcn.00466440
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x46330c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x463399
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x463382
mov eax, dword [esi + 8]
test eax, eax
je 0x463337
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46337e
cmp eax, 2
je 0x463382
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46332a
cmp eax, 3
je 0x46335d
cmp eax, 1
jne 0x46332a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x46332a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x46332a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004633c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4633a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004633c0
add esp, 4
pop esi
ret
Function at 0x472ec0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a81f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00472aa0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.00472b10
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00472df0
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.00472ac0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10

Function at 0x472ed8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a81f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00472aa0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.00472b10
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00472df0
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.00472ac0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x475890
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x47589b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x47599e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x832bd4]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x832bd4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x832bd4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x832bd4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x832bd4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x832bd4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x832bd4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x832bd4]
xor eax, edx
inc ecx
dec edi
jne 0x4758b6
pop edi
test esi, esi
je 0x4759c0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x832bd4]
xor eax, edx
inc ecx
dec esi
jne 0x4759a2
pop esi
pop ebx
not eax
ret
Function at 0x4819c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a8800
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00481570
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004815f0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004815f0
lea ecx, [esi + 0xc]
call fcn.0049906a
lea ecx, [esi + 0x10]
call fcn.0049906a
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00482b80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00482b80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00482b80
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004990df
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004990df
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x483f50
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + 0x853edc]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x853e6c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x483f63
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x483fa4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x853f14]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x483fd6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x483fda
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x483fcb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x483ff8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x483ffc
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x483fed
xor ecx, ecx
mov eax, 0x853e7c
xor ebx, ebx
mov bl, byte [ecx + 0x853f24]
cmp byte [esp + ebx + 0x14], 0
je 0x484027
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x853f3c]
cmp byte [esp + ebx + 0x14], 0
je 0x48403e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, 0x853edc
jl 0x48400e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x483f97
lea edx, [esp + 0x84]
push edx
call fcn.00484080
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4b825c
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1201bb28
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x12021210]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x38]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.004b93ec
mov dword [esp + 0x30], 0
cmp dword [eax + 0x18], 0x10
jb 0x4b82a6
mov eax, dword [eax + 4]
jmp 0x4b82a9
add eax, 4
push eax
push 0x1201c50c
call fcn.004b6cec
add esp, 8
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x24], 0x10
jb 0x4b82d3
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004c10e8
add esp, 4
movzx eax, word [esi + 2]
add eax, 0xfffffffb
cmp eax, 5
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
ja 0x4b8321
jmp dword [eax*4 + 0x1200299c]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 4
Function at 0x4ba1dc
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
sub esp, 0x204
mov eax, dword [0x12021210]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
push ebp
push esi
xor ecx, ecx
mov al, 1
push edi
lea esp, [esp]
movzx edx, al
mov byte [esp + edx + 0x10], cl
mov dl, al
and dl, 0x80
mov byte [esp + ecx + 0x110], al
add ecx, 1
neg dl
sbb dl, dl
mov bl, al
add bl, bl
and edx, 0x1b
xor dl, bl
xor al, dl
cmp ecx, 0x100
jl 0x4ba1fc
mov al, 1
mov ecx, 0x12023d08
movzx edx, al
shl edx, 0x18
mov dword [ecx], edx
mov dl, al
and dl, 0x80
add ecx, 4
neg dl
sbb dl, dl
add al, al
and edx, 0x1b
xor al, dl
cmp ecx, 0x12023d30
jl 0x4ba230
mov dword [0x12023108], 0x63
mov dword [0x120262bc], 0
mov edx, 1
movzx eax, byte [esp + edx + 0x10]
lea ecx, [esp + 0x20f]
sub ecx, eax
mov cl, byte [ecx]
mov al, cl
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor al, cl
xor al, 0x63
movzx eax, al
mov dword [edx*4 + 0x12023108], eax
mov dword [eax*4 + 0x12026130], edx
add edx, 1
cmp edx, 0x100
jl 0x4ba26c
xor ecx, ecx
mov dl, byte [ecx + 0x12023108]
mov al, dl
and al, 0x80
neg al
sbb al, al
mov bl, dl
add bl, bl
movzx edx, dl
and eax, 0x1b
xor al, bl
movzx esi, al
mov eax, esi
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, esi
xor eax, edx
mov dword [ecx + 0x12025d30], eax
ror eax, 8
mov dword [ecx + 0x12025930], eax
ror eax, 8
mov dword [ecx + 0x12025530], eax
ror eax, 8
mov dword [ecx + 0x12025130], eax
mov al, byte [ecx + 0x12026130]
test al, al
je 0x4ba365
movzx edx, al
movzx esi, byte [esp + edx + 0x10]
movzx eax, byte [esp + 0x1b]
add eax, esi
cdq
mov edi, 0xff
idiv edi
movzx eax, byte [esp + 0x1d]
add eax, esi
movzx ebp, byte [esp + edx + 0x110]
cdq
idiv edi
movzx eax, byte [esp + 0x19]
add eax, esi
movzx ebx, byte [esp + edx + 0x110]
cdq
idiv edi
movzx eax, byte [esp + 0x1e]
add eax, esi
mov esi, 0xff
movzx edi, byte [esp + edx + 0x110]
cdq
idiv esi
movzx eax, byte [esp + edx + 0x110]
jmp 0x4ba36d
xor ebp, ebp
xor ebx, ebx
xor edi, edi
xor eax, eax
shl eax, 8
xor eax, edi
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, ebp
mov dword [ecx + 0x12024d30], eax
ror eax, 8
mov dword [ecx + 0x12024930], eax
ror eax, 8
mov dword [ecx + 0x12023908], eax
ror eax, 8
mov dword [ecx + 0x12023508], eax
add ecx, 4
cmp ecx, 0x400
jl 0x4ba2ae
mov ecx, dword [esp + 0x210]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c1698
add esp, 0x204
ret
Function at 0x4bbb6c
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
ret
Function at 0x4e0f24
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1201bb28
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x12021210]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x38]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.004e20b4
mov dword [esp + 0x30], 0
cmp dword [eax + 0x18], 0x10
jb 0x4e0f6e
mov eax, dword [eax + 4]
jmp 0x4e0f71
add eax, 4
push eax
push 0x1201c50c
call fcn.004df9b4
add esp, 8
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x24], 0x10
jb 0x4e0f9b
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004e9db0
add esp, 4
movzx eax, word [esi + 2]
add eax, 0xfffffffb
cmp eax, 5
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
ja 0x4e0fe9
jmp dword [eax*4 + 0x1200299c]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 4
Function at 0x4e2ea4
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
sub esp, 0x204
mov eax, dword [0x12021210]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
push ebp
push esi
xor ecx, ecx
mov al, 1
push edi
lea esp, [esp]
movzx edx, al
mov byte [esp + edx + 0x10], cl
mov dl, al
and dl, 0x80
mov byte [esp + ecx + 0x110], al
add ecx, 1
neg dl
sbb dl, dl
mov bl, al
add bl, bl
and edx, 0x1b
xor dl, bl
xor al, dl
cmp ecx, 0x100
jl 0x4e2ec4
mov al, 1
mov ecx, 0x12023d08
movzx edx, al
shl edx, 0x18
mov dword [ecx], edx
mov dl, al
and dl, 0x80
add ecx, 4
neg dl
sbb dl, dl
add al, al
and edx, 0x1b
xor al, dl
cmp ecx, 0x12023d30
jl 0x4e2ef8
mov dword [0x12023108], 0x63
mov dword [0x120262bc], 0
mov edx, 1
movzx eax, byte [esp + edx + 0x10]
lea ecx, [esp + 0x20f]
sub ecx, eax
mov cl, byte [ecx]
mov al, cl
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor al, cl
xor al, 0x63
movzx eax, al
mov dword [edx*4 + 0x12023108], eax
mov dword [eax*4 + 0x12026130], edx
add edx, 1
cmp edx, 0x100
jl 0x4e2f34
xor ecx, ecx
mov dl, byte [ecx + 0x12023108]
mov al, dl
and al, 0x80
neg al
sbb al, al
mov bl, dl
add bl, bl
movzx edx, dl
and eax, 0x1b
xor al, bl
movzx esi, al
mov eax, esi
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, esi
xor eax, edx
mov dword [ecx + 0x12025d30], eax
ror eax, 8
mov dword [ecx + 0x12025930], eax
ror eax, 8
mov dword [ecx + 0x12025530], eax
ror eax, 8
mov dword [ecx + 0x12025130], eax
mov al, byte [ecx + 0x12026130]
test al, al
je 0x4e302d
movzx edx, al
movzx esi, byte [esp + edx + 0x10]
movzx eax, byte [esp + 0x1b]
add eax, esi
cdq
mov edi, 0xff
idiv edi
movzx eax, byte [esp + 0x1d]
add eax, esi
movzx ebp, byte [esp + edx + 0x110]
cdq
idiv edi
movzx eax, byte [esp + 0x19]
add eax, esi
movzx ebx, byte [esp + edx + 0x110]
cdq
idiv edi
movzx eax, byte [esp + 0x1e]
add eax, esi
mov esi, 0xff
movzx edi, byte [esp + edx + 0x110]
cdq
idiv esi
movzx eax, byte [esp + edx + 0x110]
jmp 0x4e3035
xor ebp, ebp
xor ebx, ebx
xor edi, edi
xor eax, eax
shl eax, 8
xor eax, edi
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, ebp
mov dword [ecx + 0x12024d30], eax
ror eax, 8
mov dword [ecx + 0x12024930], eax
ror eax, 8
mov dword [ecx + 0x12023908], eax
ror eax, 8
mov dword [ecx + 0x12023508], eax
add ecx, 4
cmp ecx, 0x400
jl 0x4e2f76
mov ecx, dword [esp + 0x210]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ea360
add esp, 0x204
ret
Function at 0x4e4834
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
ret
Function at 0x5309a4
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10079068
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push ebp
push eax
push ecx
lea ecx, [edi + 0x104]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.0052b8e4
test eax, eax
jne 0x530a10
push ebp
push 0x102b5e98
mov ecx, edi
call fcn.0052fc24
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
push esi
push ebp
push ebp
push ebx
lea ecx, [edx + 0x14]
call fcn.0052b464
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.005210f4
push ebx
mov dword [esp + 0x4c], ebp
call fcn.0052ba94
add esp, 4
test eax, eax
je 0x530ab3
add esi, 0x18
push esi
call fcn.00521b44
add esi, eax
push esi
call fcn.00521b44
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x530db6
jmp dword [ecx*4 + 0x10022780]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.0052fd64
mov ebx, dword [esp + 0x58]
mov ebp, eax
lea edi, [esi + 0x18]
mov edx, dword [ebp + 0x28]
lea ecx, [ebx + ebx*4]
mov esi, edi
lea eax, [edx + ecx*4]
push esi
mov dword [esp + 0x5c], eax
call fcn.00521b44
add esi, eax
push esi
call fcn.00521b44
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x530b04
mov ecx, dword [esi + 0x1c]
push ecx
call dword [0x1007d514]
test eax, eax
je 0x530b04
mov eax, 1
jmp 0x530b06
xor eax, eax
cmp ebx, 8
jge 0x530d6b
cmp ebx, 7
ja 0x530db6
jmp dword [ebx*4 + 0x10022790]
test eax, eax
jne 0x530d7e
mov ecx, dword [esp + 0x10]
push eax
push 0x102b5e84
call fcn.0052fc24
push 6
call dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
xor ecx, ecx
add ebx, 0xfffffff8
push edx
mov dword [esp + 0x20], ecx
push ebx
push esi
mov dword [esp + 0x2c], ecx
call eax
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.005312c4
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0x102a1f10
call fcn.005212f4
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov edx, edi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
Function at 0x539a64
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x102ce8c0]
xor edx, edx
cmp eax, edx
jne 0x539a8a
xor eax, eax
mov byte [eax + 0x102ce7c0], al
inc eax
cmp eax, 0x100
jl 0x539a72
mov dword [0x102ce8c0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x102ce7c0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x539b1b
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x539aee
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x539abc
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x539b94
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x539be7
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x539bce
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret