joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433e77
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [eax]
push edi
mov edi, ecx
mov eax, esi
mov dword [esp + 0x14], edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x433e97
sub eax, edx
add eax, esi
mov ecx, esi
mov edx, 0x811c9dc5
cmp esi, eax
je 0x433ebd
movsx ebx, byte [ecx]
imul edx, edx, 0x1000193
inc ecx
xor edx, ebx
cmp ecx, eax
jne 0x433ead
mov eax, dword [edi + 0x20]
mov ecx, eax
and ecx, edx
mov dword [esp + 0x10], ecx
cmp dword [edi + 0x24], ecx
ja 0x433eda
shr eax, 1
or edx, 0xffffffff
sub edx, eax
add ecx, edx
mov dword [esp + 0x10], ecx
mov eax, dword [edi + 4]
lea edx, [edi + 4]
mov edi, dword [edi + 0x10]
lea ecx, [edi + ecx*8]
mov edi, dword [ecx]
mov dword [esp + 0xc], edx
cmp edi, eax
jne 0x433ef4
mov ebx, eax
jmp 0x433ef9
mov eax, dword [ecx + 4]
mov ebx, dword [eax]
cmp ebx, edi
je 0x433f38
mov ebx, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov eax, esi
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x433f27
test dl, dl
je 0x433f23
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x433f27
add eax, 2
add ecx, 2
test dl, dl
jne 0x433f07
xor eax, eax
jmp 0x433f2c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x433f77
cmp ebx, edi
jne 0x433efd
mov edx, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
cmp ebx, eax
je 0x433f52
push eax
push ecx
push ebx
mov ecx, edx
call fcn.004340e7
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0xc]
mov esi, dword [edx]
mov edi, dword [esp + 0x14]
mov edx, dword [edi + 0x10]
mov eax, dword [esp + 0x10]
lea eax, [edx + eax*8]
mov edx, dword [eax]
cmp edx, esi
jne 0x433fcc
mov dword [eax], ecx
mov edx, dword [edi + 0x10]
mov eax, dword [esp + 0x10]
mov dword [edx + eax*8 + 4], ecx
jmp 0x433ff0
mov eax, dword [ebx + 8]
mov ecx, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x433f9c
test dl, dl
je 0x433f98
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x433f9c
add eax, 2
add ecx, 2
test dl, dl
jne 0x433f7c
xor eax, eax
jmp 0x433fa1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x433fa9
mov ebx, dword [ebx]
jmp 0x433f34
mov ecx, dword [ebp + 0x10]
mov esi, dword [esp + 0xc]
push ecx
lea edi, [esp + 0x18]
call fcn.004322e7
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edx, ebx
je 0x433fee
mov edx, dword [eax + 4]
mov edx, dword [edx]
mov dword [eax + 4], edx
cmp edx, ecx
je 0x433ff0
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x10]
mov edx, dword [eax + ecx*8 + 4]
lea eax, [eax + ecx*8 + 4]
mov ecx, dword [edx + 4]
mov dword [eax], ecx
call fcn.00434017
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
pop edi
pop esi
mov dword [eax], edx
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x435cd7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0xc]
push ebx
push edi
xor edi, edi
mov ebx, 1
cmp eax, edi
je 0x435d0a
lea ecx, [ebp - 4]
push ecx
push eax
call dword [0x1012b08c]
test eax, eax
je 0x435d0a
xor eax, eax
cmp dword [ebp - 4], 0x103
sete al
cmp eax, edi
jne 0x435d74
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x435d2e
push eax
call dword [0x1012b158]
xor eax, eax
xor ecx, ecx
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edi
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x10], edx
lea edx, [esi + 8]
push edx
push edi
push esi
push 0x1002cb80
push edi
push edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edi
call fcn.0051b94c
add esp, 0x18
mov dword [esi + 0xc], eax
cmp eax, edi
jne 0x435d89
push 0x65f
call dword [0x1012b170]
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x139f
call dword [0x1012b170]
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x436717
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10127dd2
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x1019efd0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0xa]
mov dword [esi + 8], eax
lea eax, [esi + 0x30]
push edx
xor edi, edi
push eax
mov dword [esi], 1
mov dword [esi + 4], edi
mov dword [esi + 0xc], ecx
call fcn.0041f437
lea ecx, [ebp + 0xa]
lea eax, [esi + 0x5c]
push ecx
push eax
mov dword [ebp - 4], edi
call fcn.0041f437
mov byte [ebp - 4], 1
mov edx, dword [0x1019eb58]
mov eax, dword [edx + 0xc]
mov ecx, 0x1019eb58
call eax
add eax, 0x10
mov dword [esi + 0x88], eax
mov byte [ebp - 4], 2
mov edx, dword [0x1019eb58]
mov eax, dword [edx + 0xc]
mov ecx, 0x1019eb58
call eax
add eax, 0x10
mov dword [esi + 0x8c], eax
mov byte [ebp - 4], 3
mov eax, dword [esi]
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 0xffff0001
add ecx, 0xffff
mov word [esi + 0x90], cx
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], edi
cmp eax, edi
je 0x436812
push 0x20
call fcn.00517f70
add esp, 4
cmp eax, edi
je 0x436839
push 0x100184e0
push 0x10018520
push 7
lea edi, [eax + 4]
push 4
push edi
mov dword [eax], 7
call fcn.00519ec0
jmp 0x436839
push 4
call fcn.00518025
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x436839
mov edx, dword [0x1019eb58]
mov eax, dword [edx + 0xc]
mov ecx, 0x1019eb58
call eax
add eax, 0x10
mov dword [ebx], eax
mov edi, ebx
mov eax, esi
mov dword [esi + 0x94], edi
call fcn.0041ef37
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x43a847
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0xc], 0
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0
jbe 0x43a990
push esi
push edi
push 0
push 0
push ebx
push 0x10032390
push 0
push 0
call fcn.0051b94c
mov edi, eax
add esp, 0x18
mov dword [ebp - 4], edi
test edi, edi
je 0x43a973
mov eax, dword [ebx + 0x74]
lea esi, [ebx + 0x70]
lea ecx, [ebp - 4]
cmp ecx, eax
jae 0x43a8fd
mov edx, dword [esi]
cmp edx, ecx
ja 0x43a8fd
mov edi, ecx
mov ecx, dword [esi + 8]
sub edi, edx
sar edi, 2
cmp eax, ecx
jne 0x43a8ed
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x43a969
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x43a8ed
mov edx, ecx
shr edx, 1
mov ebx, 0x3fffffff
sub ebx, edx
cmp ebx, ecx
jae 0x43a8dc
xor ecx, ecx
jmp 0x43a8de
add ecx, edx
cmp ecx, eax
jae 0x43a8e4
mov ecx, eax
push ecx
call fcn.0043d097
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x43a949
mov edx, dword [esi]
mov ecx, dword [edx + edi*4]
mov dword [eax], ecx
jmp 0x43a949
mov ecx, dword [esi + 8]
cmp eax, ecx
jne 0x43a940
mov edx, dword [esi]
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x43a969
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x43a940
mov edx, ecx
shr edx, 1
mov ebx, 0x3fffffff
sub ebx, edx
cmp ebx, ecx
jae 0x43a92f
xor ecx, ecx
jmp 0x43a931
add ecx, edx
cmp ecx, eax
jae 0x43a937
mov ecx, eax
push ecx
call fcn.0043d097
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x43a949
mov dword [eax], edi
mov eax, dword [ebp - 8]
add dword [esi + 4], 4
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebx + 0xc]
jb 0x43a86b
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x1017d3fc
call fcn.00517f9d
call dword [0x1012b174]
push eax
mov dword [ebx + 0x50], 8
call dword [0x1012b170]
pop edi
mov dword [ebp - 0xc], 0
pop esi
mov eax, dword [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43d1c7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0xb4]
push edi
call edx
test eax, eax
je 0x43d2d5
lea ebx, [esi + 0x144]
call fcn.0040f097
mov eax, dword [esi + 0x44]
cmp eax, 3
jne 0x43d2b9
xor ebx, ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x144], ebx
mov edx, dword [esi]
mov eax, dword [edx + 0xb8]
mov ecx, esi
call eax
xor ecx, ecx
mov word [ebp - 0x3c], cx
mov ecx, dword [ebp + 0x14]
xor edx, edx
lea eax, [ebp - 0x20]
push eax
push ecx
mov ecx, dword [ebp + 8]
mov word [ebp - 0x20], dx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x3c]
push eax
push ecx
push esi
mov dword [esi + 8], 1
mov dword [esi + 0xc], 5
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
call fcn.0043d487
test eax, eax
je 0x43d324
lea ecx, [ebp - 0x20]
mov edi, esi
call fcn.004420a7
test eax, eax
je 0x43d315
mov edi, dword [0x1012b170]
push ebx
call edi
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov edx, dword [edx + 0x7c]
push eax
mov ecx, esi
call edx
cmp eax, 2
je 0x43d2fd
mov eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x3c]
call fcn.0043d587
test eax, eax
je 0x43d2ee
lea ecx, [esi + 0x38]
push ecx
push ebx
push esi
push 0x10034160
push ebx
push ebx
call fcn.0051b94c
add esp, 0x18
mov dword [esi + 0x34], eax
cmp eax, ebx
je 0x43d2e0
pop edi
pop esi
lea eax, [ebx + 1]
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x10dd
mov dword [esi + 0x3c], 1
call dword [0x1012b170]
mov dword [esi + 0x144], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [esi + 0x3c], 8
push 0x65f
jmp 0x43d338
call dword [0x1012b304]
mov dword [esi + 0x3c], 0xb
jmp 0x43d337
call dword [0x1012b174]
cmp eax, ebx
jne 0x43d30c
mov eax, 0x4c7
mov dword [esi + 0x3c], 5
jmp 0x43d337
call dword [0x1012b304]
mov dword [esi + 0x3c], 4
jmp 0x43d331
call dword [0x1012b304]
mov dword [esi + 0x3c], 3
mov edi, dword [0x1012b170]
push eax
call edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], 5
mov dword [esi + 0x10], ebx
call dword [0x1012b174]
mov edx, dword [esi]
mov ebx, eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
push ebx
call edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43e867
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0xc], 0
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0
jbe 0x43e9b0
push esi
push edi
push 0
push 0
push ebx
push 0x10036570
push 0
push 0
call fcn.0051b94c
mov edi, eax
add esp, 0x18
mov dword [ebp - 4], edi
test edi, edi
je 0x43e993
mov eax, dword [ebx + 0x64]
lea esi, [ebx + 0x60]
lea ecx, [ebp - 4]
cmp ecx, eax
jae 0x43e91d
mov edx, dword [esi]
cmp edx, ecx
ja 0x43e91d
mov edi, ecx
mov ecx, dword [esi + 8]
sub edi, edx
sar edi, 2
cmp eax, ecx
jne 0x43e90d
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x43e989
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x43e90d
mov edx, ecx
shr edx, 1
mov ebx, 0x3fffffff
sub ebx, edx
cmp ebx, ecx
jae 0x43e8fc
xor ecx, ecx
jmp 0x43e8fe
add ecx, edx
cmp ecx, eax
jae 0x43e904
mov ecx, eax
push ecx
call fcn.0043d097
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x43e969
mov edx, dword [esi]
mov ecx, dword [edx + edi*4]
mov dword [eax], ecx
jmp 0x43e969
mov ecx, dword [esi + 8]
cmp eax, ecx
jne 0x43e960
mov edx, dword [esi]
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x43e989
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x43e960
mov edx, ecx
shr edx, 1
mov ebx, 0x3fffffff
sub ebx, edx
cmp ebx, ecx
jae 0x43e94f
xor ecx, ecx
jmp 0x43e951
add ecx, edx
cmp ecx, eax
jae 0x43e957
mov ecx, eax
push ecx
call fcn.0043d097
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x43e969
mov dword [eax], edi
mov eax, dword [ebp - 8]
add dword [esi + 4], 4
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebx + 0xc]
jb 0x43e88b
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x1017d3fc
call fcn.00517f9d
call dword [0x1012b174]
push eax
mov dword [ebx + 0x5c], 8
call dword [0x1012b170]
pop edi
mov dword [ebp - 0xc], 0
pop esi
mov eax, dword [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4432f7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0xc], 0
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0
jbe 0x443440
push esi
push edi
push 0
push 0
push ebx
push 0x1003ace0
push 0
push 0
call fcn.0051b94c
mov edi, eax
add esp, 0x18
mov dword [ebp - 4], edi
test edi, edi
je 0x443423
mov eax, dword [ebx + 0x58]
lea esi, [ebx + 0x54]
lea ecx, [ebp - 4]
cmp ecx, eax
jae 0x4433ad
mov edx, dword [esi]
cmp edx, ecx
ja 0x4433ad
mov edi, ecx
mov ecx, dword [esi + 8]
sub edi, edx
sar edi, 2
cmp eax, ecx
jne 0x44339d
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x443419
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x44339d
mov edx, ecx
shr edx, 1
mov ebx, 0x3fffffff
sub ebx, edx
cmp ebx, ecx
jae 0x44338c
xor ecx, ecx
jmp 0x44338e
add ecx, edx
cmp ecx, eax
jae 0x443394
mov ecx, eax
push ecx
call fcn.0043d097
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x4433f9
mov edx, dword [esi]
mov ecx, dword [edx + edi*4]
mov dword [eax], ecx
jmp 0x4433f9
mov ecx, dword [esi + 8]
cmp eax, ecx
jne 0x4433f0
mov edx, dword [esi]
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x443419
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x4433f0
mov edx, ecx
shr edx, 1
mov ebx, 0x3fffffff
sub ebx, edx
cmp ebx, ecx
jae 0x4433df
xor ecx, ecx
jmp 0x4433e1
add ecx, edx
cmp ecx, eax
jae 0x4433e7
mov ecx, eax
push ecx
call fcn.0043d097
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x4433f9
mov dword [eax], edi
mov eax, dword [ebp - 8]
add dword [esi + 4], 4
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebx + 0xc]
jb 0x44331b
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x1017d3fc
call fcn.00517f9d
call dword [0x1012b174]
push eax
mov dword [ebx + 0x4c], 8
call dword [0x1012b170]
pop edi
mov dword [ebp - 0xc], 0
pop esi
mov eax, dword [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x443457
Capabilities:
Create thread

Disassembly:
cmp dword [esi + 0x2c], 0
mov eax, 1
jbe 0x44348a
cmp dword [esi + 0x30], 0
jbe 0x44348a
push 0
push 0
push esi
push 0x1003bab0
push 0
push 0
call fcn.0051b94c
xor ecx, ecx
add esp, 0x18
test eax, eax
setne cl
mov dword [esi + 0x50], eax
mov eax, ecx
ret
Function at 0x47f587
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
xor cl, cl
test edi, edi
je 0x47f5ac
sub esi, eax
push ebx
mov dl, byte [esi + eax]
mov bl, byte [eax]
xor dl, bl
or cl, dl
inc eax
dec edi
jne 0x47f59e
pop ebx
pop edi
movzx eax, cl
pop esi
ret
Function at 0x494d07
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x40
lea eax, [ecx + 1]
ret
Function at 0x4b2b67
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [esp + 4]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, edi
mov ecx, ebp
cmp edi, 4
jb 0x4b2b8f
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x4b2b93
sub esi, 4
add ecx, 4
add edx, 4
cmp esi, 4
jae 0x4b2b7b
test esi, esi
je 0x4b2bed
movzx eax, byte [edx]
movzx ebx, byte [ecx]
sub eax, ebx
jne 0x4b2bce
cmp esi, 1
jbe 0x4b2bed
movzx eax, byte [edx + 1]
movzx ebx, byte [ecx + 1]
sub eax, ebx
jne 0x4b2bce
cmp esi, 2
jbe 0x4b2bed
movzx eax, byte [edx + 2]
movzx ebx, byte [ecx + 2]
sub eax, ebx
jne 0x4b2bce
cmp esi, 3
jbe 0x4b2bed
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
jle 0x4b2bed
push 0x159
push 0x10154d94
push 0x10154d64
call fcn.0047f557
add esp, 0xc
mov ebx, dword [esp + 0x10]
xor edx, edx
test edi, edi
jle 0x4b2c0a
mov esi, ebx
mov eax, ebp
sub esi, ebp
mov cl, byte [esi + eax]
cmp cl, byte [eax]
jne 0x4b2c0a
inc edx
inc eax
cmp edx, edi
jl 0x4b2bfd
lea eax, [edi - 1]
test eax, eax
js 0x4b2c27
mov esi, ebx
lea ecx, [eax + ebp]
sub esi, ebp
cmp byte [ecx + esi], 0
jne 0x4b2c27
cmp byte [ecx], 0xff
jne 0x4b2c27
dec ecx
dec eax
jns 0x4b2c18
cmp edx, eax
jl 0x4b2c9f
jle 0x4b2c38
pop esi
pop ebp
lea eax, [edx*8]
pop ebx
ret
mov cl, byte [edx + ebx]
mov bl, byte [edx + ebp]
mov al, bl
xor al, cl
mov byte [esp + 0x10], cl
movzx ecx, al
dec ecx
cmp ecx, 0x7e
ja 0x4b2c9f
movzx ecx, byte [ecx + 0x100a97b0]
jmp dword [ecx*4 + 0x100a9790]
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
Function at 0x4d0547
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x28
call fcn.0051bfd7
mov eax, dword [esp + 0x2c]
push ebx
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
mov edi, edx
push ebp
mov esi, 1
push eax
mov ebx, ecx
shl esi, cl
mov dword [esp + 0x18], edi
call fcn.0048e917
add esp, 8
test eax, eax
jne 0x4d0582
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
cmp ebx, 3
jg 0x4d05e4
xor ebx, ebx
test ebp, ebp
jle 0x4d0747
lea ebx, [ebx]
xor edx, edx
xor ecx, ecx
test esi, esi
jle 0x4d05c6
mov eax, ecx
xor eax, dword [esp + 0x44]
inc ecx
lea ebp, [eax - 1]
shr ebp, 0x1f
not eax
shr eax, 0x1f
and ebp, eax
mov eax, dword [edi + ecx*4 - 4]
neg ebp
and ebp, 1
neg ebp
and ebp, eax
or edx, ebp
cmp ecx, esi
jl 0x4d059f
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov dword [eax + ebx*4], edx
lea eax, [esi*4]
inc ebx
add edi, eax
cmp ebx, dword [esp + 0x40]
jl 0x4d0597
jmp 0x4d0747
mov edx, dword [esp + 0x44]
lea ecx, [ebx - 2]
mov eax, edx
sar eax, cl
mov edi, 1
shl edi, cl
lea ebx, [eax - 1]
shr ebx, 0x1f
lea ecx, [edi - 1]
and edx, ecx
mov dword [esp + 0x44], edx
mov edx, eax
not edx
shr edx, 0x1f
and ebx, edx
mov ecx, eax
xor ecx, 1
lea edx, [ecx - 1]
not ecx
shr ecx, 0x1f
shr edx, 0x1f
and edx, ecx
mov ecx, eax
xor ecx, 2
lea ebp, [ecx - 1]
not ecx
shr ecx, 0x1f
shr ebp, 0x1f
and ebp, ecx
xor eax, 3
lea ecx, [eax - 1]
shr ecx, 0x1f
not eax
shr eax, 0x1f
and ecx, eax
neg ebx
neg edx
neg ebp
neg ecx
and ebx, 1
and edx, 1
and ebp, 1
and ecx, 1
xor eax, eax
neg edx
neg ebp
neg ecx
neg ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x40], eax
jle 0x4d0747
lea edx, [esi*4]
mov dword [esp + 0x34], edx
mov edi, edi
xor esi, esi
mov dword [esp + 0x20], esi
cmp edi, esi
jle 0x4d0723
mov eax, dword [esp + 0x10]
lea edx, [eax + edi*4]
mov dword [esp + 0x1c], edx
lea edx, [eax + edi*8]
mov dword [esp + 0x18], edx
lea edx, [edi + edi*2]
lea eax, [eax + edx*4]
mov dword [esp + 0x14], eax
lea ebx, [ebx]
mov edx, dword [esp + 0x14]
mov edx, dword [edx]
and edx, ecx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
and ecx, ebp
or ecx, edx
mov edx, dword [esp + 0x1c]
mov edx, dword [edx]
and edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x24]
or edx, ecx
mov eax, esi
xor eax, dword [esp + 0x44]
inc esi
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + esi*4 - 4]
neg ecx
and ecx, 1
and eax, ebx
neg ecx
or eax, edx
and ecx, eax
or dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x28]
mov eax, 4
add dword [esp + 0x14], eax
add dword [esp + 0x18], eax
add dword [esp + 0x1c], eax
cmp esi, edi
jl 0x4d06b7
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
mov edx, dword [edx]
mov esi, dword [esp + 0x20]
mov dword [edx + eax*4], esi
mov edx, dword [esp + 0x34]
add dword [esp + 0x10], edx
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x40]
jl 0x4d0687
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
push eax
mov dword [eax + 4], ecx
call fcn.0048e4d7
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret
Function at 0x50ac5e
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.0051bfd7
mov eax, dword [0x1019efd0]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
test eax, eax
je 0x50adc1
push ebx
dec eax
push edi
lea edi, [ebp + 0xc]
shr eax, 3
add ebp, 0x14
inc eax
mov dword [esp + 0x18], eax
movzx eax, byte [esi + 1]
movzx ebx, byte [esi]
movzx ecx, byte [esi + 2]
movzx edx, byte [esi + 3]
shl eax, 8
or ebx, eax
movzx eax, byte [esi + 4]
shl ecx, 0x10
or ebx, ecx
movzx ecx, byte [esi + 5]
shl edx, 0x18
or ebx, edx
movzx edx, byte [esi + 6]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 7]
shl edx, 0x10
or eax, edx
mov dl, byte [edi]
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov al, byte [ebp]
and dl, 0xdf
and al, 0xbf
or dl, 0x40
or al, 0x20
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
add esi, 8
mov byte [edi], dl
mov byte [ebp], al
call fcn.004ad567
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.004ad5e7
push 1
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.004aa087
push ebp
call fcn.004ad567
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.004ad5e7
push 1
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.004aa087
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
xor eax, dword [esp + 0x40]
mov edx, dword [esp + 0x58]
xor dword [esp + 0x40], edx
xor ecx, ebx
xor ebx, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, edi
mov byte [eax], bl
mov edx, ebx
shr edx, 8
mov byte [eax + 1], dl
mov edx, ebx
shr edx, 0x10
mov byte [eax + 2], dl
mov edx, dword [esp + 0x44]
shr ebx, 0x18
mov byte [eax + 3], bl
mov ebx, edx
add esp, 0x30
mov byte [eax + 4], dl
shr ebx, 8
mov byte [eax + 5], bl
mov ebx, edx
shr edx, 0x18
shr ebx, 0x10
mov byte [eax + 6], bl
mov byte [eax + 7], dl
mov eax, ebp
mov byte [eax], cl
mov edx, ecx
shr edx, 8
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 2], dl
shr ecx, 0x18
mov byte [eax + 3], cl
mov ecx, dword [esp + 0x10]
mov edx, ecx
shr edx, 8
mov byte [eax + 4], cl
mov byte [eax + 5], dl
mov edx, ecx
shr edx, 0x10
shr ecx, 0x18
dec dword [esp + 0x18]
mov byte [eax + 6], dl
mov byte [eax + 7], cl
jne 0x50ac7a
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
xor ecx, esp
call fcn.00518016
add esp, 0xa0
ret
Function at 0x6763ac
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0067655c
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x6764aa
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x67644d
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x676490
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x676464
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x67647f
test al, 0x40
je 0x676476
mov ecx, dword [edi + 0x20]
jmp 0x67647d
test al, 0x80
je 0x676490
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x676490
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x67641c
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret