joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b76a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [eax], esi
mov eax, 0x5a4d
mov dword [ebp - 0xc], esi
cmp word [ebx], ax
je 0x45b790
xor eax, eax
jmp 0x45b87d
push edi
mov edi, dword [ebx + 0x3c]
add edi, ebx
cmp dword [edi], 0x4550
jne 0x45b860
push 0x40
mov dword [ebp + 8], esi
mov eax, dword [edi + 0x50]
push 0x3000
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push 0xffffffffffffffff
call dword [0xc401410]
test eax, eax
js 0x45b860
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x45b860
mov esi, dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
and dword [esi + 8], 0
mov dword [esi + 4], eax
mov dword [esi + 0xc], ecx
mov ecx, dword [edi + 0x54]
add ecx, dword [ebx + 0x3c]
mov dword [ebp - 0x10], eax
push ecx
push ebx
push eax
call fcn.0046c292
mov eax, dword [ebx + 0x3c]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
push esi
push edi
mov dword [esi], eax
push ebx
mov dword [eax + 0x34], ecx
call fcn.004573f5
mov ebx, dword [ebp - 8]
mov eax, ebx
add esp, 0x18
sub eax, dword [edi + 0x34]
je 0x45b826
push eax
mov eax, esi
call fcn.00457478
pop ecx
mov eax, esi
call fcn.004574e9
test eax, eax
je 0x45b859
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
xor edi, edi
cmp eax, edi
je 0x45b86b
add eax, ebx
cmp eax, edi
je 0x45b859
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [esi + 0x10], eax
cmp dword [ebp + 0x10], edi
je 0x45b86b
push edi
push 1
push ebx
call eax
test eax, eax
jne 0x45b864
push esi
call fcn.004575ca
pop ecx
xor eax, eax
jmp 0x45b87c
mov dword [esi + 8], 1
mov eax, dword [ebp + 0xc]
cmp dword [eax], edi
je 0x45b879
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45bb28
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.0044e15b
add esp, 0x10
test eax, eax
je 0x45bc6b
push esi
call fcn.0046b2b6
mov esi, eax
push 0xa48d6762
push esi
call fcn.0044f2fd
push 0x20088e6a
push esi
mov dword [ebp - 0xc], eax
call fcn.0044f2fd
add esp, 0x10
mov dword [ebp - 0x18], eax
test eax, eax
je 0x45bc6a
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
push 0x1d113dc3
push eax
call fcn.0044f2fd
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov esi, dword [eax + 0x68]
mov eax, dword [eax + 0x6c]
pop ecx
push 0x14
xor edx, edx
pop ecx
div ecx
add esi, ebx
dec eax
je 0x45bc6a
mov dword [ebp - 0x14], eax
push edi
mov edi, dword [esi + 0xc]
add edi, ebx
mov eax, dword [edi]
cmp eax, 0x6c64746e
je 0x45bc5d
cmp eax, 0x4c44544e
je 0x45bc5d
cmp dword [ebp - 0xc], 0
je 0x45bbe8
push edi
call dword [ebp - 0xc]
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], eax
jne 0x45bbfc
push eax
push eax
push edi
call dword [ebp - 0x18]
mov dword [ebp - 4], eax
test eax, eax
je 0x45bc5d
cmp dword [ebp - 0x10], 0
je 0x45bc0a
push dword [ebp - 4]
push 0
call dword [ebp - 0x10]
mov eax, dword [esi]
test eax, eax
je 0x45bc1a
mov ecx, dword [esi + 0x10]
lea edi, [eax + ebx]
add ecx, ebx
jmp 0x45bc21
mov edi, dword [esi + 0x10]
add edi, ebx
mov ecx, edi
mov eax, dword [edi]
test eax, eax
je 0x45bc5d
mov dword [ebp - 8], ecx
sub dword [ebp - 8], edi
test eax, eax
jns 0x45bc38
and eax, 0xffff
jmp 0x45bc3c
lea eax, [eax + ebx + 2]
push eax
push dword [ebp - 4]
call fcn.0044efe2
test eax, eax
je 0x45bc54
mov ecx, dword [ebp - 8]
cmp dword [ecx + edi], eax
je 0x45bc5d
mov dword [ecx + edi], eax
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x45bc2f
add esi, 0x14
dec dword [ebp - 0x14]
jne 0x45bbbe
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45f5ce
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, eax
and dword [edi + 0x6af50], 0
push 0x1fffc
lea eax, [edi + 0x4af54]
push 0
mov esi, 0x10000
push eax
mov byte [edi + 0x6af81], 1
mov dword [edi + 0x6af54], esi
call fcn.0046c28c
mov eax, ebx
movzx ecx, word [eax*8 + 0xc40507a]
mov dword [edi + 0x6af74], ecx
movzx ecx, word [eax*8 + 0xc405078]
mov dword [edi + 0x6af78], ecx
movzx ecx, word [eax*8 + 0xc40507c]
mov dword [edi + 0x6af7c], ecx
movzx eax, word [eax*8 + 0xc40507e]
add esp, 0xc
mov dword [edi + 0x6af70], eax
cmp ebx, 2
ja 0x45f650
mov eax, dword [ebp + 0xc]
or word [eax], 4
jmp 0x45f65c
cmp ebx, 8
jb 0x45f65c
mov eax, dword [ebp + 0xc]
or word [eax], 2
push esi
mov esi, dword [edi]
lea ebx, [edi + 0x1af54]
push ebx
call fcn.00457097
xor esi, esi
pop ecx
pop ecx
mov dword [edi + 0x6af6c], eax
cmp eax, esi
je 0x45f6bc
mov byte [edi + 0x6af80], 0
mov dword [edi + 0x6af58], esi
mov dword [edi + 0x6af64], esi
cmp eax, 0x106
jae 0x45f698
call fcn.0045b0aa
xor ecx, ecx
mov dword [edi + 0x6af5c], esi
xor eax, eax
movzx edx, byte [ebx + ecx]
shl eax, 5
xor eax, edx
and eax, 0x7fff
inc ecx
mov dword [edi + 0x6af5c], eax
cmp ecx, 2
jb 0x45f6a2
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x45f6c1
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push esi
push edi
mov edi, dword [eax + 0xc]
xor ebx, ebx
add edi, 0xc
mov esi, dword [edi]
mov dword [ebp - 4], ebx
jmp 0x45f6fd
lea ecx, [ebp - 0xc]
push ecx
push 9
mov eax, esi
mov esi, dword [esi]
push 1
push dword [eax + 0x18]
call fcn.0046b9f9
test eax, eax
je 0x45f6fd
inc dword [ebp - 4]
cmp edi, esi
jne 0x45f6e2
mov esi, dword [ebp - 4]
lea esi, [esi*4 + 4]
push esi
push ebx
call dword [0xc4011ac]
push eax
call dword [0xc4011a8]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x45f72d
push 8
call dword [0xc401234]
xor eax, eax
jmp 0x45f7a8
push esi
push ebx
push eax
call fcn.0046c28c
mov ebx, dword [edi + 4]
add esp, 0xc
jmp 0x45f795
lea ecx, [ebp - 0xc]
push ecx
push 9
mov eax, ebx
mov ebx, dword [ebx + 4]
push 1
push dword [eax + 0x18]
call fcn.0046b9f9
mov esi, eax
test esi, esi
je 0x45f795
cmp dword [ebp - 4], 0
je 0x45f7ad
mov eax, dword [esi + 4]
sub eax, dword [esi]
push eax
push 0
call dword [0xc4011ac]
push eax
call dword [0xc4011a8]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [ecx + edx*4], eax
test eax, eax
je 0x45f721
mov ecx, dword [esi]
mov edx, dword [esi + 4]
sub edx, ecx
push edx
push ecx
push eax
call fcn.0046c292
add esp, 0xc
dec dword [ebp - 4]
cmp edi, ebx
jne 0x45f73d
mov eax, dword fs:[0x18]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x2c], ecx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
push 0xffffffffffffffff
jmp 0x45f723
Function at 0x467b73
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push ebx
push edi
xor ebx, ebx
push 0x90
lea eax, [ebp - 0x90]
push ebx
push eax
xor edi, edi
mov dword [ebp - 0x94], ebx
call fcn.0046c28c
push 0x103
lea eax, [ebp - 0x197]
push ebx
push eax
mov byte [ebp - 0x198], bl
call fcn.0046c28c
add esp, 0x18
cmp byte [0xc42ffeb], bl
je 0x467c71
push 0x104
lea eax, [ebp - 0x198]
push eax
push ebx
call dword [0xc4011f4]
lea eax, [ebp - 0x198]
push 0xc405c1c
push eax
call fcn.0046c26e
pop ecx
pop ecx
test eax, eax
je 0x467c71
call fcn.0046242a
call fcn.00463d92
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [0xc4010c8]
test eax, eax
je 0x467c2f
cmp dword [ebp - 0x90], 5
jne 0x467c2f
cmp dword [ebp - 0x8c], ebx
jne 0x467c2f
mov dword [0xc4404d9], 1
push 0x3594af64
push ebx
call fcn.00458536
pop ecx
pop ecx
mov dword [0xc440338], eax
mov dword [0xc44033c], 0xc41fc78
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
push 0xc440338
mov dword [0xc4403a5], eax
call fcn.00460089
pop ecx
test eax, eax
je 0x467c71
xor edi, edi
inc edi
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x467c77
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp byte [0xc42ffec], bl
je 0x467df8
push 0x104
lea eax, [ebp - 0x158]
push eax
push ebx
call dword [0xc4011f4]
lea eax, [ebp - 0x158]
push 0xc405dcc
push eax
call fcn.0046c26e
pop ecx
pop ecx
test eax, eax
je 0x467df8
push edi
push 0x18
pop ecx
xor eax, eax
mov dword [ebp - 0x3c], ecx
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0xc], ebx
lea edi, [ebp - 8]
stosd dword es:[edi], eax
mov esi, 0xc405c58
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x10]
push eax
push ecx
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x54]
push eax
push ebx
movsw word es:[edi], word [esi]
mov esi, dword [0xc401394]
push 0xffffffffffffffff
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 1
call esi
test eax, eax
js 0x467d9c
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x400
lea eax, [ebp - 4]
push eax
call dword [0xc401378]
test eax, eax
js 0x467d9c
push 0x211
push 8
call dword [0xc4011ac]
push eax
call dword [0xc4011a8]
mov edi, eax
cmp edi, ebx
je 0x467d9c
push ebx
push 0x210
push edi
push 0x1b
push dword [ebp - 4]
call esi
test eax, eax
js 0x467d7c
cmp word [edi], bx
je 0x467d7c
cmp word [edi + 2], 0xe
jbe 0x467d7c
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0046c274
pop ecx
pop ecx
test eax, eax
jne 0x467d7c
mov dword [ebp - 0x14], ebx
mov esi, dword [0xc4011ac]
push edi
push ebx
call esi
push eax
call dword [0xc4011a4]
test eax, eax
je 0x467d9c
push edi
push ebx
call esi
push eax
call dword [0xc4011a0]
pop edi
cmp dword [ebp - 4], ebx
je 0x467dab
push dword [ebp - 4]
call dword [0xc4013d0]
cmp dword [ebp - 0x14], ebx
jne 0x467df5
call fcn.0046242a
call fcn.00463d92
push 0x3c7fe14c
push ebx
call fcn.00458536
pop ecx
pop ecx
mov dword [0xc42e830], eax
mov dword [0xc42e834], 0xc42047f
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
push 0xc42e830
mov dword [0xc42e89d], eax
call fcn.00460089
pop ecx
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4696b5
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.004653c5
push 0x9f8b3756
xor esi, esi
push esi
call fcn.00458536
pop ecx
pop ecx
mov dword [0xc426e18], eax
cmp eax, esi
jne 0x4696df
push 2
pop eax
jmp 0x469819
push 0x8a4e65b9
push esi
call fcn.00458536
pop ecx
pop ecx
mov dword [0xc440a88], eax
cmp eax, esi
jne 0x4696f9
push 3
jmp 0x4696d9
push 0x56bbcd57
push esi
call fcn.00458536
pop ecx
pop ecx
mov dword [0xc42f2f0], eax
cmp eax, esi
jne 0x469713
push 4
jmp 0x4696d9
push 0xed04f020
push esi
call fcn.00458536
pop ecx
pop ecx
mov dword [0xc42cf50], eax
cmp eax, esi
jne 0x46972d
push 5
jmp 0x4696d9
push 0xcc8bf39
push esi
call fcn.00458536
pop ecx
pop ecx
mov dword [0xc440160], eax
cmp eax, esi
jne 0x469747
push 6
jmp 0x4696d9
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
push 0xc426e18
mov dword [0xc4401cd], eax
mov dword [0xc42cfbd], eax
mov dword [0xc42f35d], eax
mov dword [0xc440af5], eax
mov dword [0xc426e85], eax
mov dword [0xc426e1c], 0xc4115fc
call fcn.00460089
mov dword [0xc440a8c], 0xc4116b2
mov dword [esp], 0xc440a88
call fcn.00460089
mov dword [0xc42f2f4], 0xc40724d
mov dword [esp], 0xc42f2f0
call fcn.00460089
mov dword [0xc42cf54], 0xc407503
mov dword [esp], 0xc42cf50
call fcn.00460089
mov dword [ebp - 4], esi
mov dword [esp], 0x52ac19c
call fcn.0046b2b6
push eax
call fcn.0044f2fd
pop ecx
pop ecx
cmp eax, esi
je 0x4697e8
lea ecx, [ebp - 4]
push ecx
push 0xffffffffffffffff
call eax
cmp dword [ebp - 4], esi
jne 0x469804
push 0xc440160
mov dword [0xc440164], 0xc422937
call fcn.00460089
pop ecx
jmp 0x469817
push 0x1a5
push esi
push 0xc440160
call fcn.0046c28c
add esp, 0xc
xor eax, eax
pop esi
leave
ret

Function at 0x46b2b6
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
and dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
push 0x78740534
push eax
call fcn.0044f2fd
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x46b358
lea eax, [ebp - 0x54]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov dword [edx], 0x65006b
add edx, 4
mov dword [edx], 0x6e0072
add edx, 4
mov dword [edx], 0x6c0065
add edx, 4
mov dword [edx], 0x320033
add edx, 4
mov dword [edx], 0x64002e
add edx, 4
mov dword [edx], 0x6c006c
add edx, 4
and dword [edx], 0
lea eax, [ebp - 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x54]
push 0x18
mov dword [ebp - 0x18], eax
pop eax
mov word [ebp - 0x1c], ax
push 0x1a
pop eax
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
and eax, 0
push eax
push eax
call dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
leave
ret
Function at 0x546ca0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bfc58
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.00541cb0
test eax, eax
jne 0x546d0c
push ebp
push 0x504dec
mov ecx, edi
call fcn.00545f20
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.005416e0
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.00530040
push ebx
mov dword [esp + 0x4c], ebp
call fcn.00541e60
add esp, 4
test eax, eax
je 0x546daf
add esi, 0x18
push esi
call fcn.00530a80
add esi, eax
push esi
call fcn.00530a80
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x5470b2
jmp dword [ecx*4 + 0x4544f0]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.00546060
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.00530a80
add esi, eax
push esi
call fcn.00530a80
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x546e00
mov ecx, dword [esi + 0x1c]
push ecx
call dword [fcn.004c245c]
test eax, eax
je 0x546e00
mov eax, 1
jmp 0x546e02
xor eax, eax
cmp ebx, 8
jge 0x547067
cmp ebx, 7
ja 0x5470b2
jmp dword [ebx*4 + 0x454500]
test eax, eax
jne 0x54707a
mov ecx, dword [esp + 0x10]
push eax
push 0x504dd8
call fcn.00545f20
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.005475c0
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], 0x4ea5b0
call fcn.00530240
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 0x54fcb0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x51add0]
xor edx, edx
cmp eax, edx
jne 0x54fcd6
xor eax, eax
mov byte [eax + 0x51acd0], al
inc eax
cmp eax, 0x100
jl 0x54fcbe
mov dword [0x51add0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x51acd0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x54fd67
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 0x54fd3a
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 0x54fd08
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x54fde0
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 0x54fe33
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 0x54fe1a
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
Function at 0x5540d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x5542f1
cmp eax, 8
jg 0x5542f1
cmp dword [esp + 0x8c], 2
jl 0x5542f1
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x5542f1
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x5542f1
mov eax, dword [esp + 0x80]
test eax, eax
je 0x554157
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x5542da
mov ebp, dword [0x4c24e4]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x554189
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x5542c1
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x5541a9
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [0x4c24f4]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x5541e8
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x4c24f0]
lea ecx, [esp + 0x28]
push ecx
call dword [0x4c24b0]
test eax, eax
jne 0x5542a8
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.005536e0
cmp eax, 1
jne 0x5542d2
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00553f90
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x55419d
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x5542da
jmp 0x554174
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.005532e0
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c
Function at 0x5568a0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x556a38
cmp ebp, ebx
jle 0x556a38
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x5568fe
dec eax
or eax, 0xfffffff8
inc eax
je 0x556905
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x556914
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x55691b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call 0x5a3418
add esp, 4
cmp eax, ebx
je 0x55693c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call 0x5a3418
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x556a2e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x556a15
mov al, byte [edx]
cmp al, 0xc0
jbe 0x556a01
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x5569f6
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x556a04
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x556a04
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x5569a0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x556991
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret