joyce8/EMBER2024-capa huggingface dataset:
Function at 0x561dd0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov esi, ecx
mov eax, dword [0x87aa4c]
xor eax, ebp
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x561df8
cmp eax, 8
jae 0x561e22
jmp 0x561e94
mov ecx, dword [0x889c90]
test ecx, ecx
jne 0x561e0f
mov eax, esp
push eax
call dword [0x834050]
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, 2
setb al
shl eax, 5
mov dword [esi + 0xc], eax
cmp eax, 8
jb 0x561e94
cmp eax, 0x1f
ja 0x561e2b
pause
jmp 0x561e94
cmp eax, 0x20
jne 0x561e39
mov ecx, esi
call fcn.00563880
jmp 0x561e94
cmp dword [esi + 8], 0
je 0x561e7a
mov eax, esp
push eax
call dword [0x83408c]
test eax, eax
jne 0x561e5d
call dword [0x834090]
mov dword [esp], eax
mov dword [esp + 4], 0
mov eax, dword [esp]
sub eax, dword [esi]
mov ecx, dword [esp + 4]
sbb ecx, dword [esi + 4]
cmp eax, dword [esi + 8]
sbb ecx, 0
jb 0x561e82
mov dword [esi + 8], 0
jmp 0x561e7e
test al, 1
jne 0x561e82
push 1
jmp 0x561e8e
call dword [0x834094]
test eax, eax
jne 0x561e94
push 0
call dword [0x8342a4]
inc dword [esi + 0xc]
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.00719989
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x564e70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
lea ecx, [esp + 0x24]
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], eax
mov ebp, dword [esp + 0x28]
mov eax, dword [ebp]
and eax, 0xfffffffe
je 0x564eaa
mov ecx, dword [ecx + 8]
movzx edx, byte [ecx]
test dl, 1
jne 0x564eb9
mov edx, dword [ecx]
shr edx, 1
mov dword [esp], edx
mov ecx, dword [ecx + 8]
mov dword [esp + 8], ecx
jmp 0x564ec3
xor esi, esi
mov bl, 1
xor edi, edi
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x564f36
jmp 0x564f38
inc ecx
mov dword [esp + 8], ecx
shr edx, 1
mov dword [esp], edx
xor edi, edi
xor esi, esi
jmp 0x564f18
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
shr eax, 1
mov edx, dword [esp]
xor ebx, ebx
cmp edx, eax
setb bl
mov esi, ebx
cmovb eax, edx
push eax
push ecx
push dword [esp + 0x10]
call fcn.007323a6
add esp, 0xc
xor ebx, ebx
test eax, eax
sets bl
cmove ebx, esi
test bl, bl
mov esi, dword [esp + 4]
cmove esi, ebp
mov eax, ebx
xor al, 1
movzx eax, al
mov eax, dword [ebp + eax*4 + 4]
inc edi
test eax, eax
je 0x564f2b
mov ebp, eax
movzx eax, byte [eax + 0xc]
test al, 1
mov dword [esp + 4], esi
je 0x564ed0
lea ecx, [ebp + 0xd]
jmp 0x564ed6
lea ecx, [esp + 0x24]
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x564f38
mov dword [eax], edi
test esi, esi
je 0x564fb0
mov eax, dword [ecx + 8]
movzx ecx, byte [esi + 0xc]
mov byte [esp + 4], cl
movzx edx, cl
mov ecx, dword [esi + 0x14]
mov dword [esp + 8], ecx
movzx ecx, byte [eax]
test cl, 1
jne 0x564f60
mov ecx, dword [eax]
mov eax, dword [eax + 8]
jmp 0x564f61
inc eax
mov dword [esp], eax
shr ecx, 1
lea edi, [esi + 0xd]
shr edx, 1
mov eax, edx
mov edx, dword [esi + 0xc]
shr edx, 1
test byte [esp + 4], 1
cmove edi, dword [esp + 8]
cmovne edx, eax
xor eax, eax
cmp edx, ecx
setb al
mov dword [esp + 4], eax
cmovae edx, ecx
push edx
push dword [esp + 4]
push edi
call fcn.007323a6
add esp, 0xc
xor ecx, ecx
test eax, eax
sets cl
cmove ecx, dword [esp + 4]
cmp cl, 1
lea ecx, [esp + 0x24]
jne 0x564fbf
mov eax, dword [ecx + 0x10]
mov byte [eax], bl
mov eax, dword [ecx + 0x10]
mov dword [eax + 4], ebp
mov al, 1
jmp 0x564fc1
xor eax, eax
mov edx, dword [esp + 0xc]
mov dword [edx], esi
mov byte [edx + 4], al
mov eax, dword [ecx]
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x567160
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x87aa4c]
xor eax, ebp
mov dword [esp + 0x10], eax
mov eax, esp
push eax
push dword [ebp + 8]
call dword [0x8340d0]
test eax, eax
je 0x567235
mov edi, dword [ebp + 0xc]
mov eax, dword [esp]
mov ecx, dword [esp + 4]
cmp eax, edi
mov edx, ecx
sbb edx, 0
jge 0x5671fc
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
push dword [ebp + 8]
call dword [0x8340d4]
cmp eax, 0xffffffff
jne 0x5671c2
call dword [0x834078]
test eax, eax
je 0x567235
sub edi, dword [esp]
je 0x567231
mov esi, dword [0x8340d8]
nop dword [eax]
cmp edi, 0x200
mov ebx, 0x200
cmovb ebx, edi
push 0
lea eax, [esp + 0x10]
push eax
push ebx
push 0x889d44
push dword [ebp + 8]
call esi
cmp dword [esp + 0xc], ebx
jne 0x567235
sub edi, ebx
jne 0x5671d0
jmp 0x567231
mov dword [esp + 0xc], 0
lea eax, [esp + 0xc]
push 0
push eax
push edi
push dword [ebp + 8]
call dword [0x8340d4]
cmp eax, 0xffffffff
jne 0x567224
call dword [0x834078]
test eax, eax
je 0x567235
push dword [ebp + 8]
call dword [0x8340dc]
test eax, eax
je 0x567235
mov bl, 1
jmp 0x567237
xor ebx, ebx
mov ecx, dword [esp + 0x10]
xor ecx, ebp
call fcn.00719989
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x56df30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x572680
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
cmp dword [edx + 0x14], 8
mov esi, edx
jb 0x56df6a
mov esi, dword [edx]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], 0
push esi
call fcn.00700361
add esp, 4
cmp eax, 7
jbe 0x56dfb4
sub esp, 0xc
movzx ecx, byte [ebp - 0x24]
mov byte [esp + 4], cl
mov dword [esp + 8], esi
mov dword [esp], eax
lea ecx, [ebp - 0x40]
call fcn.00460a10
cmp dword [ebp - 0x2c], 8
jae 0x56dfd8
lea eax, [ebp - 0x40]
jmp 0x56dfdb
mov dword [ebp - 0x30], eax
mov ecx, eax
add ecx, eax
lea edx, [ebp - 0x40]
push ecx
push esi
push edx
mov esi, eax
call fcn.00731570
add esp, 0xc
mov word [ebp + esi*2 - 0x40], 0
cmp dword [ebp - 0x2c], 8
jb 0x56dfaf
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x10], 1
sub esp, 0x1c
movaps xmm0, xmmword [0x7d6b70]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2200000
call dword [0x8340ec]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x56e04e
mov eax, dword [ebp - 0x40]
lea esi, [ecx*2 + 2]
cmp esi, 0x1000
jb 0x56e041
mov edx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, edx
cmp eax, 0x20
jae 0x56e129
add ecx, ecx
add ecx, 0x25
mov esi, ecx
mov eax, edx
push esi
push eax
call fcn.0071996d
add esp, 8
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x56e094
mov dword [ebp - 0x10], 3
mov ecx, dword [ebp - 0x28]
mov edx, eax
push dword [ebp + 8]
push dword [ebp - 0x20]
call fcn.0056f430
add esp, 8
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x56e083
mov dword [ebp - 0x10], 2
push eax
call dword [0x834070]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 3
call dword [0x834078]
cmp eax, 5
jne 0x56e110
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x56e0b3
mov eax, dword [ecx]
push eax
call dword [0x8342a0]
mov ecx, eax
cmp eax, 0xffffffff
je 0x56e10a
mov eax, 5
test ecx, 0x400
mov esi, dword [ebp + 8]
jne 0x56e113
push ecx
push dword [ebp - 0x20]
mov dword [ebp - 0x20], ecx
call fcn.00570630
mov ecx, dword [ebp - 0x20]
add esp, 8
and ecx, 0x10
cmp ecx, 1
mov ecx, 3
sbb ecx, 0
mov edx, dword [ebp - 0x28]
mov dword [edx], ecx
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
jne 0x56e075
jmp 0x56e083
call dword [0x834078]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
mov edx, eax
push esi
push dword [ebp - 0x20]
call fcn.0056f5e0
add esp, 8
jmp 0x56e06d
mov dword [ebp - 0x10], 0
call fcn.006fce21
nop word cs:[eax + eax]
push ebp
sub esp, 0x1c
add ebp, 0xc
call fcn.007311e0
nop dword [eax]
push ebp
sub esp, 0x1c
add ebp, 0xc
lea ecx, [ebp - 0x40]
call fcn.004452b0
add esp, 0x1c
pop ebp
ret
Function at 0x570af0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebx
push edi
push esi
mov ebx, edx
mov esi, ecx
test bl, 1
je 0x570b17
mov eax, ebx
and eax, 0xfffffffe
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x570b0b
mov ecx, dword [esi]
push eax
push ecx
call dword [0x834108]
test eax, eax
je 0x570b6e
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x570b21
mov eax, dword [esi]
test bl, 0x10
jne 0x570b2f
push eax
call dword [0x834124]
jmp 0x570b36
push eax
call dword [0x834128]
mov ecx, eax
mov al, 1
test ecx, ecx
je 0x570b42
pop esi
pop edi
pop ebx
ret
call dword [0x834078]
mov edi, eax
mov ecx, eax
call fcn.0056f6e0
test al, al
jne 0x570b94
test bl, 1
je 0x570b81
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x570b64
mov eax, dword [esi]
push ebx
push eax
call dword [0x834108]
jmp 0x570b81
call dword [0x834078]
mov edi, eax
mov ecx, eax
call fcn.0056f6e0
test al, al
jne 0x570b94
push 0x7d6f32
push dword [esp + 0x14]
push esi
push edi
call fcn.00578f40
add esp, 0x10
xor eax, eax
pop esi
pop edi
pop ebx
ret
Function at 0x57a050
Capabilities:
Parse pe header

Disassembly:
push edi
push esi
mov eax, dword [ecx + 4]
xor ecx, ecx
cmp word [eax], 0x5a4d
mov edx, dword [esp + 0xc]
mov esi, 0
cmove esi, eax
mov esi, dword [esi + 0x3c]
lea edi, [eax + esi]
cmp dword [eax + esi], 0x4550
cmovne edi, ecx
cmp dword [edi + 0x74], edx
mov eax, dword [esp + 0x10]
lea edx, [edi + edx*8 + 0x78]
cmovb edx, ecx
mov ecx, dword [edx + 4]
mov dword [eax], ecx
mov eax, dword [edx]
pop esi
pop edi
ret 8
Function at 0x57d2f0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
mov esi, esp
mov dword [esi + 0x58], ebp
mov ebx, ecx
nop
mov dword [esi + 0x5c], esp
mov dword [esi + 0x68], 0xffffffff
lea eax, [esi + 0x60]
mov dword [esi + 0x64], 0x57fd60
mov ecx, dword fs:[0]
mov dword [esi + 0x60], ecx
mov dword fs:[0], eax
call fcn.0057f430
mov edi, dword [ebx + 0x30]
mov dword [esi + 0x14], ebx
mov ecx, dword [ebx + 0x34]
mov dword [esi + 4], ecx
cmp edi, ecx
sete cl
or cl, byte [0x889fb8]
test cl, 1
lea edx, [0x854720]
lea ecx, [0x8546b0]
cmovne ecx, edx
lea edx, [0x85446c]
lea ebx, [0x854450]
cmovne ebx, edx
mov edx, 0x5834
sub edx, eax
mov eax, dword [ecx]
mov ecx, dword [ebx]
sub ecx, edx
add ecx, eax
nop
mov dword [esi], edx
jmp ecx
Function at 0x582830
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x140
mov ebx, ecx
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x5863a0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
cmp dword [ebx + 0x14], 0
mov dword [ebp - 0x40], ebx
lea edi, [ebp - 0x149]
je 0x582893
push 0x104
push 0
push edi
call fcn.007311f0
add esp, 0xc
mov dword [ebp - 0x44], 0
cmp dword [ebx + 0x18], 0x10
jb 0x5828f4
mov eax, dword [ebx + 4]
jmp 0x5828f7
push 0x105
push 0
push edi
call fcn.007311f0
add esp, 0xc
push edi
push 0x104
call dword [0x834268]
lea esi, [ebp - 0x38]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
push edi
call fcn.00700090
add esp, 4
cmp eax, 0xf
jbe 0x5829aa
sub esp, 0xc
movzx ecx, byte [ebp - 0x44]
mov byte [esp + 4], cl
mov dword [esp + 8], edi
mov dword [esp], eax
mov ecx, esi
call fcn.0045afa0
jmp 0x5829bf
lea eax, [ebx + 4]
lea ecx, [ebp - 0x44]
push ecx
push edi
push 0x104
push eax
call dword [0x834140]
lea esi, [ebp - 0x38]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
push edi
call fcn.00700090
add esp, 4
cmp eax, 0xf
jbe 0x582946
sub esp, 0xc
movzx ecx, byte [ebp - 0x20]
mov byte [esp + 4], cl
mov dword [esp + 8], edi
mov dword [esp], eax
mov ecx, esi
call fcn.0045afa0
jmp 0x58295b
mov dword [ebp - 0x28], eax
push eax
push edi
push esi
mov esi, eax
call fcn.00731570
add esp, 0xc
mov byte [ebp + esi - 0x38], 0
mov dword [ebp - 0x3c], 0x752c30
mov dword [ebp - 0x10], 3
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
call fcn.00586f10
mov eax, dword [ebp - 0x24]
cmp eax, 0x10
mov edi, dword [ebp - 0x40]
jb 0x582a0f
mov ecx, dword [ebp - 0x38]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x582a05
mov esi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, esi
cmp ecx, 0x20
jb 0x5829fe
mov dword [ebp - 0x10], 2
call fcn.006fce21
mov dword [ebp - 0x28], eax
push eax
push edi
push esi
mov esi, eax
call fcn.00731570
add esp, 0xc
mov byte [ebp + esi - 0x38], 0
mov dword [ebp - 0x3c], 0x752c30
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
call fcn.00586f10
mov eax, dword [ebp - 0x24]
cmp eax, 0x10
mov edi, dword [ebp - 0x40]
jb 0x582a0f
mov ecx, dword [ebp - 0x38]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x582a05
mov esi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, esi
cmp ecx, 0x20
jae 0x582a25
add eax, 0x24
mov edx, eax
mov ecx, esi
push edx
push ecx
call fcn.0071996d
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x140
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
call fcn.006fce21
nop word cs:[eax + eax]
push ebp
sub esp, 0x10
add ebp, 0xc
call fcn.007311e0
nop dword [eax]
push ebp
sub esp, 0x10
add ebp, 0xc
lea ecx, [ebp - 0x3c]
call fcn.004425f0
add esp, 0x10
pop ebp
ret
Function at 0x583690
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x13c
mov ebx, ecx
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x5863d0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
lea edi, [ebp - 0x145]
push 0x105
push 0
push edi
call fcn.007311f0
add esp, 0xc
push edi
push 0x104
call dword [0x834268]
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
push edi
call fcn.00700090
add esp, 4
cmp eax, 0xf
jbe 0x583722
sub esp, 0xc
movzx ecx, byte [ebp - 0x20]
mov byte [esp + 4], cl
mov dword [esp + 8], edi
mov dword [esp], eax
mov ecx, esi
call fcn.0045afa0
jmp 0x583737
mov dword [ebp - 0x2c], eax
push eax
push edi
push esi
mov esi, eax
call fcn.00731570
add esp, 0xc
mov byte [ebp + esi - 0x3c], 0
mov dword [ebp - 0x40], 0x752c30
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x40]
mov dword [ebp - 0x24], ebx
mov ecx, ebx
push eax
call fcn.00586f10
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
mov edi, dword [ebp - 0x24]
jb 0x58378a
mov ecx, dword [ebp - 0x3c]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x583780
mov esi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, esi
cmp ecx, 0x20
jae 0x5837a0
add eax, 0x24
mov edx, eax
mov ecx, esi
push edx
push ecx
call fcn.0071996d
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x13c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
call fcn.006fce21
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
call fcn.007311e0
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
lea ecx, [ebp - 0x40]
call fcn.004425f0
add esp, 0xc
pop ebp
ret

Function at 0x584a00
Capabilities:
Get file attributes

Disassembly:
cmp dword [ecx + 0x18], 0x10
jb 0x584a0b
mov ecx, dword [ecx + 4]
jmp 0x584a0e
add ecx, 4
push ecx
call dword [0x834148]
test al, 0x10
sete al
ret
Function at 0x58bb80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x13c
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x58bd80
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [edx + 0x18], 0xf
mov dword [edx], 0x752c30
mov dword [edx + 0x14], 0
mov byte [edx + 4], 0
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x145]
push 0x105
push eax
call dword [0x834058]
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
lea edi, [ebp - 0x145]
push edi
call fcn.00700090
add esp, 4
cmp eax, 0xf
mov dword [ebp - 0x24], esi
jbe 0x58bc87
sub esp, 0xc
movzx ecx, byte [ebp - 0x20]
mov byte [esp + 4], cl
mov dword [esp + 8], edi
mov dword [esp], eax
mov ecx, esi
call fcn.0045afa0
mov dword [ebp - 0x40], 0x751360
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x28], 0x10
jb 0x58bc3f
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x24], ecx
mov ebx, dword [ebp + 8]
lea esi, [ebx + 4]
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x18]
mov edi, edx
sub edi, ecx
cmp edi, eax
jae 0x58bcae
mov dword [ebp - 0x10], 2
sub esp, 0x10
movzx ecx, byte [ebp - 0x20]
mov byte [esp + 4], cl
mov dword [esp + 0xc], eax
mov ecx, dword [ebp - 0x24]
mov dword [esp + 8], ecx
mov dword [esp], eax
mov ecx, esi
call fcn.0045bd80
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
mov edi, dword [ebp + 8]
jae 0x58bcda
jmp 0x58bd06
mov dword [ebp - 0x2c], eax
push eax
push edi
push esi
mov esi, eax
call fcn.00731570
add esp, 0xc
mov byte [ebp + esi - 0x3c], 0
mov dword [ebp - 0x40], 0x751360
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x28], 0x10
jae 0x58bc39
jmp 0x58bc3f
lea edi, [ecx + eax]
mov dword [ebx + 0x14], edi
cmp edx, 0x10
jb 0x58bcbc
mov esi, dword [ebx + 4]
add ecx, esi
push eax
push dword [ebp - 0x24]
push ecx
call fcn.00731570
add esp, 0xc
mov byte [esi + edi], 0
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
mov edi, dword [ebp + 8]
jb 0x58bd06
mov ecx, dword [ebp - 0x3c]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x58bcfc
mov esi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, esi
cmp ecx, 0x20
jae 0x58bd1c
add eax, 0x24
mov edx, eax
mov ecx, esi
push edx
push ecx
call fcn.0071996d
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x13c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
call fcn.006fce21
nop dword [eax + eax]
push ebp
sub esp, 0x10
add ebp, 0xc
call fcn.007311e0
nop dword [eax]
push ebp
sub esp, 0x10
add ebp, 0xc
lea ecx, [ebp - 0x40]
call fcn.004425f0
add esp, 0x10
pop ebp
ret
Function at 0x58c240
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x58e060
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov dword [ecx], 0x751528
lea edx, [ecx + 4]
mov dword [ecx + 8], 0
mov dword [ebp - 0x20], ecx
mov dword [ecx + 4], 0
lea eax, [esi + 4]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x34], edx
push edx
push eax
call fcn.007314e7
add esp, 8
mov ecx, dword [ebp - 0x20]
mov dword [ecx], 0x7d7b50
mov byte [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
lea eax, [ecx + 0x14]
mov dword [ebp - 0x30], eax
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0xf
mov byte [ecx + 0x18], 0
mov dword [ecx + 0x14], 0x751360
lea eax, [ecx + 0x30]
mov dword [ebp - 0x2c], eax
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x48], 0xf
mov byte [ecx + 0x34], 0
mov dword [ecx + 0x30], 0x751360
lea eax, [ecx + 0x4c]
mov dword [ebp - 0x28], eax
mov dword [ecx + 0x60], 0
mov dword [ecx + 0x64], 0xf
mov byte [ecx + 0x50], 0
mov dword [ecx + 0x4c], 0x751360
lea eax, [ecx + 0x68]
mov dword [ebp - 0x24], eax
movsd xmm0, qword [0x7508f0]
movups xmmword [ecx + 0x7c], xmm0
mov byte [ecx + 0x6c], 0
mov dword [ecx + 0x68], 0x751360
mov dword [ebp - 0x10], 1
push dword [ebp + 8]
call fcn.0058c3b0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x20]
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x595ab0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov ebx, dword [esp + 0x44]
mov eax, dword [0x87aa4c]
xor eax, esp
mov dword [esp + 0x24], eax
xor esi, esi
test ebx, ebx
je 0x595c61
cmp dword [esp + 0x3c], 0
je 0x595c61
mov ebp, dword [esp + 0x40]
test ebp, ebp
je 0x595c61
mov edi, dword [esp + 0x48]
test edi, edi
je 0x595c61
cmp ebx, 0xf
ja 0x595b2a
mov esi, 0x10
sub esi, ebx
mov eax, dword [esp + 0x3c]
add eax, ebx
add eax, 0x28
lea ecx, [esp + 0x14]
push esi
push eax
push ecx
call fcn.00731570
add esp, 0xc
lea eax, [esp + esi]
add eax, 0x14
push ebx
push ebp
push eax
call fcn.00731570
add esp, 0xc
jmp 0x595ba7
movups xmm0, xmmword [ebp + ebx - 0x10]
movups xmmword [esp + 0x14], xmm0
mov esi, ebx
shr esi, 4
mov eax, dword [esp + 0x3c]
add eax, 0x28
mov dword [esp], eax
nop word cs:[eax + eax]
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x10]
call dword [0x834360]
lea eax, [esp + 4]
push eax
mov ebx, dword [esp + 4]
push ebx
push dword [esp + 0x44]
call ecx
add esp, 0xc
movups xmm0, xmmword [ebp]
movups xmmword [ebx], xmm0
mov eax, dword [esp + 4]
xor eax, dword [ebp]
mov dword [edi], eax
mov eax, dword [esp + 8]
xor eax, dword [ebp + 4]
mov dword [edi + 4], eax
mov eax, dword [esp + 0xc]
xor eax, dword [ebp + 8]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x10]
xor eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
add edi, 0x10
add ebp, 0x10
dec esi
jne 0x595b50
mov esi, dword [esp + 0x44]
and esi, 0xf
je 0x595c50
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x10]
lea ebx, [eax + 0x28]
call dword [0x834360]
lea eax, [esp + 4]
push eax
push ebx
push dword [esp + 0x44]
call ecx
add esp, 0xc
mov eax, dword [esp + 0x44]
and eax, 3
xor ecx, ecx
cmp esi, 4
jb 0x595c2a
sub esi, eax
xor ecx, ecx
nop word cs:[eax + eax]
movzx edx, byte [esp + ecx + 4]
xor dl, byte [ebp + ecx]
mov byte [edi + ecx], dl
movzx edx, byte [esp + ecx + 5]
xor dl, byte [ebp + ecx + 1]
mov byte [edi + ecx + 1], dl
movzx edx, byte [esp + ecx + 6]
xor dl, byte [ebp + ecx + 2]
mov byte [edi + ecx + 2], dl
movzx edx, byte [esp + ecx + 7]
xor dl, byte [ebp + ecx + 3]
mov byte [edi + ecx + 3], dl
add ecx, 4
cmp esi, ecx
jne 0x595bf0
test eax, eax
je 0x595c50
add edi, ecx
lea edx, [esp + ecx]
add edx, 4
add ebp, ecx
xor ecx, ecx
nop word [eax + eax]
movzx ebx, byte [edx + ecx]
xor bl, byte [ebp + ecx]
mov byte [edi + ecx], bl
inc ecx
cmp eax, ecx
jne 0x595c40
movups xmm0, xmmword [esp + 0x14]
mov eax, dword [esp + 0x3c]
movups xmmword [eax + 0x28], xmm0
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00719989
mov eax, esi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5a20f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
test ecx, ecx
sete dl
test eax, eax
sete dh
or dh, dl
jne 0x5a2257
mov edx, dword [esp + 0x1c]
movzx esi, word [ecx + 4]
cmp esi, 0xa001
jne 0x5a21d0
test edx, edx
je 0x5a2257
mov ebx, dword [ecx]
xor esi, esi
nop
movzx edi, byte [eax + esi]
xor edi, ebx
mov ebx, edi
shr ebx, 1
and edi, 1
neg edi
and edi, 0xa001
xor edi, ebx
mov ebx, edi
shr ebx, 1
and edi, 1
neg edi
and edi, 0xa001
xor edi, ebx
mov ebx, edi
shr ebx, 1
and edi, 1
neg edi
and edi, 0xa001
xor edi, ebx
mov ebx, edi
shr ebx, 1
and edi, 1
neg edi
and edi, 0xa001
xor edi, ebx
mov ebx, edi
shr ebx, 1
and edi, 1
neg edi
and edi, 0xa001
xor edi, ebx
mov ebx, edi
shr ebx, 1
and edi, 1
neg edi
and edi, 0xa001
xor edi, ebx
mov ebx, edi
shr ebx, 1
and edi, 1
neg edi
and edi, 0xa001
xor edi, ebx
mov ebx, edi
shr ebx, 1
and edi, 1
neg edi
and edi, 0xa001
xor edi, ebx
mov dword [ecx], edi
inc esi
mov ebx, edi
cmp edx, esi
jne 0x5a2130
jmp 0x5a2257
test edx, edx
je 0x5a2257
mov ebp, dword [ecx]
xor edi, edi
nop dword [eax]
movzx ebx, byte [eax + edi]
xor ebx, ebp
mov ebp, ebx
shr ebp, 1
and ebx, 1
neg ebx
and ebx, esi
xor ebx, ebp
mov ebp, ebx
shr ebp, 1
and ebx, 1
neg ebx
and ebx, esi
xor ebx, ebp
mov ebp, ebx
shr ebp, 1
and ebx, 1
neg ebx
and ebx, esi
xor ebx, ebp
mov ebp, ebx
shr ebp, 1
and ebx, 1
neg ebx
and ebx, esi
xor ebx, ebp
mov ebp, ebx
shr ebp, 1
and ebx, 1
neg ebx
and ebx, esi
xor ebx, ebp
mov ebp, ebx
shr ebp, 1
and ebx, 1
neg ebx
and ebx, esi
xor ebx, ebp
mov ebp, ebx
shr ebp, 1
and ebx, 1
neg ebx
and ebx, esi
xor ebx, ebp
mov ebp, ebx
shr ebp, 1
and ebx, 1
neg ebx
and ebx, esi
xor ebx, ebp
mov dword [ecx], ebx
inc edi
mov ebp, ebx
cmp edx, edi
jne 0x5a21e0
pop esi
pop edi
pop ebx
pop ebp
ret