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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x422d78
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x422d7f
cmp ebx, dword [eax + 4]
jae 0x422d7f
xor eax, eax
jmp 0x422f6f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x422d90
xor eax, eax
inc eax
jmp 0x422f6e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x422da6
cmp ecx, edx
jae 0x422eeb
cmp dword [eax + 4], 0
je 0x422daf
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x422d97
cmp dword [ebp + 8], 0
je 0x422dd1
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x422eeb
cmp eax, esi
jae 0x422eeb
mov eax, dword [0x42f230]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x422df6
cmp dword [esi*4 + 0x42f238], edi
je 0x422eef
inc esi
cmp esi, eax
jl 0x422de4
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [fcn.0042403c]
test eax, eax
je 0x422f6b
cmp dword [ebp - 8], 0x1000000
jne 0x422f6b
test byte [ebp - 0xc], 0xcc
je 0x422e74
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x422f6b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x422f6b
cmp word [eax + 0x18], 0x10b
jne 0x422f6b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x422f6b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x422e74
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x422e74
test byte [ecx + 0x27], 0x80
jne 0x422eeb
push 1
push 0x42f278
call dword [0x4240c4]
test eax, eax
jne 0x422d88
mov ecx, dword [0x42f230]
test ecx, ecx
mov edx, ecx
jle 0x422ea8
lea eax, [ecx*4 + 0x42f234]
cmp dword [eax], edi
je 0x422ea8
dec edx
sub eax, 4
test edx, edx
jg 0x422e9c
test edx, edx
jne 0x422ed9
push 0xf
pop ebx
cmp ecx, ebx
jg 0x422eb5
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x422ecd
lea eax, [edx*4 + 0x42f238]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x422ebb
cmp ecx, 0x10
jge 0x422ed9
inc ecx
mov dword [0x42f230], ecx
push 0
push 0x42f278
call dword [0x4240c4]
jmp 0x422d88
xor eax, eax
jmp 0x422f6e
test esi, esi
jle 0x422d88
mov ebx, dword [0x4240c4]
push 1
push 0x42f278
call ebx
test eax, eax
jne 0x422d88
cmp dword [esi*4 + 0x42f238], edi
je 0x422f45
mov eax, dword [0x42f230]
lea esi, [eax - 1]
test esi, esi
jl 0x422f33
cmp dword [esi*4 + 0x42f238], edi
je 0x422f2f
dec esi
jns 0x422f23
test esi, esi
jge 0x422f43
cmp eax, 0x10
jge 0x422f3e
inc eax
mov dword [0x42f230], eax
lea esi, [eax - 1]
jmp 0x422f45
je 0x422f5d
xor ecx, ecx
test esi, esi
jl 0x422f5d
lea eax, [ecx*4 + 0x42f238]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x422f4b
push 0
push 0x42f278
call ebx
jmp 0x422d88
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c66f7
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], eax
setne al
leave
ret

Function at 0x4ccf34
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push eax
call dword [0x4212b4]
push 0
push 0x3e8
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.004d68a0
mov esi, dword [0x4212b8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x1c]
push eax
mov ebx, edx
call esi
rdtsc
and dword [ebp - 4], 0
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], eax
mov edi, 0xc350
lea eax, [ebp - 0xc]
push eax
call esi
inc dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
sbb eax, dword [ebp - 0x18]
cmp eax, ebx
ja 0x4ccfa0
jb 0x4ccf9b
cmp ecx, dword [ebp - 0x2c]
jae 0x4ccfa0
cmp dword [ebp - 4], edi
jl 0x4ccf7b
lea eax, [ebp - 0xc]
push eax
call esi
rdtsc
cmp dword [ebp - 4], edi
mov ebx, edx
mov esi, eax
jl 0x4ccfc0
mov edi, 0x6adf307c
mov eax, 0x42de30
call fcn.004c4453
push dword [ebp - 0x10]
sub esi, dword [ebp - 0x24]
push dword [ebp - 0x14]
sbb ebx, dword [ebp - 0x20]
push ebx
push esi
call fcn.004d67c0
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 8]
sbb esi, dword [ebp - 0x18]
push esi
push ecx
push edx
push eax
call fcn.004d68a0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4cfc17
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jg 0x4cfc24
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 0xc]
push ebx
push edi
push 3
pop edi
jmp 0x4cfc88
sub dword [ebp + 0x10], 4
js 0x4cfd12
movzx edx, byte [ecx]
shr edx, 2
mov dl, byte [edx + esi]
mov byte [eax], dl
movzx ebx, byte [ecx + 1]
xor edx, edx
mov dl, byte [ecx]
shr ebx, 4
add eax, 4
and edx, edi
shl edx, 4
add edx, esi
mov dl, byte [ebx + edx]
mov byte [eax - 3], dl
movzx ebx, byte [ecx + 2]
xor edx, edx
mov dl, byte [ecx + 1]
shr ebx, 6
add ebx, esi
and edx, 0xf
mov dl, byte [ebx + edx*4]
mov byte [eax - 2], dl
xor edx, edx
mov dl, byte [ecx + 2]
add ecx, edi
and edx, 0x3f
mov dl, byte [edx + esi]
sub dword [ebp + 8], edi
mov byte [eax - 1], dl
cmp dword [ebp + 8], 2
jg 0x4cfc2e
mov edx, dword [ebp + 8]
dec edx
je 0x4cfce4
dec edx
jne 0x4cfd1f
sub dword [ebp + 0x10], edi
js 0x4cfd12
movzx edx, byte [ecx]
shr edx, 2
mov dl, byte [edx + esi]
mov byte [eax], dl
movzx ebx, byte [ecx + 1]
xor edx, edx
mov dl, byte [ecx]
shr ebx, 4
and edx, edi
shl edx, 4
add edx, esi
mov dl, byte [ebx + edx]
mov byte [eax + 1], dl
movzx ecx, byte [ecx + 1]
and ecx, 0xf
mov cl, byte [esi + ecx*4]
mov byte [eax + 2], cl
add eax, edi
cmp byte [ebp + 0x14], 0
je 0x4cfd1f
mov ecx, dword [ebp + 0x10]
dec ecx
js 0x4cfd12
mov byte [eax], 0x3d
inc eax
jmp 0x4cfd1f
mov edx, dword [ebp + 0x10]
sub edx, 2
js 0x4cfd12
movzx ebx, byte [ecx]
shr ebx, 2
mov bl, byte [ebx + esi]
mov byte [eax], bl
movzx ecx, byte [ecx]
and ecx, edi
shl ecx, 4
mov cl, byte [ecx + esi]
mov byte [eax + 1], cl
inc eax
inc eax
cmp byte [ebp + 0x14], 0
je 0x4cfd1f
add edx, 0xfffffffe
jns 0x4cfd16
xor eax, eax
jmp 0x4cfd22
mov byte [eax], 0x3d
mov byte [eax + 1], 0x3d
inc eax
inc eax
sub eax, dword [ebp + 0xc]
pop edi
pop ebx
pop ebp
ret
Function at 0x4d141b
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push ebx
push esi
push edi
push 1
call dword [0x4212ac]
mov dword [ebp - 0xc], eax
mov eax, dword [0x42d48c]
mov esi, 0x42d48c
mov ecx, esi
call dword [eax + 4]
mov ebx, 0x42cd58
mov byte [ebp - 0x10], al
xor edi, edi
mov dword [ebp - 8], ebx
push dword [ebp - 8]
push dword [ebp + 8]
call dword [fcn.004210e8]
test eax, eax
je 0x4d1590
add dword [ebp - 8], 0x2a
inc edi
cmp dword [ebp - 8], 0x42cdd6
jl 0x4d144e
cmp byte [ebp - 0x10], 0
je 0x4d1480
mov eax, dword [0x42d48c]
mov ecx, esi
call dword [eax + 8]
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push dword [ebp + 8]
mov byte [ebp - 1], 0
call dword [0x421180]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4d152e
xor eax, eax
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov ecx, pe_nt_image_headers32
lea edi, [ebp - 0x42c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
push 0x400
lea eax, [ebp - 0x42c]
push eax
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0x2d1400
push dword [ebp - 8]
mov byte [ebp - 0x1c], 0
call dword [0x4212b0]
test eax, eax
je 0x4d1523
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x4d150d
push 0x425f1c
lea edx, [ebp + eax - 0x42c]
call fcn.004cfaa9
test eax, eax
pop ecx
je 0x4d150d
mov byte [ebp - 1], 1
cmp dword [ebp - 0x410], 7
je 0x4d151f
cmp dword [ebp - 0x410], 4
jne 0x4d1523
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [fcn.0042117c]
xor edi, edi
mov eax, dword [0x42d48c]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 0x10], al
mov eax, dword [0x42cd50]
imul eax, eax, 0x2a
push 0x15
push dword [ebp + 8]
add eax, ebx
push eax
call dword [fcn.004211b4]
mov eax, dword [0x42cd50]
mov bl, byte [ebp - 1]
mov byte [eax + 0x42cd54], bl
inc eax
cmp eax, 3
mov dword [0x42cd50], eax
jl 0x4d1570
mov dword [0x42cd50], edi
cmp byte [ebp - 0x10], 0
je 0x4d1580
mov eax, dword [0x42d48c]
mov ecx, esi
call dword [eax + 8]
push dword [ebp - 0xc]
call dword [0x4212ac]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
mov bl, byte [edi + 0x42cd54]
jmp 0x4d1570
Function at 0x4d655a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4d6588
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4d658f
cmp ebx, dword [eax + 4]
jae 0x4d658f
xor eax, eax
jmp 0x4d677f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4d65a0
xor eax, eax
inc eax
jmp 0x4d677e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4d65b6
cmp ecx, edx
jae 0x4d66fb
cmp dword [eax + 4], 0
je 0x4d65bf
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4d65a7
cmp dword [ebp + 8], 0
je 0x4d65e1
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4d66fb
cmp eax, esi
jae 0x4d66fb
mov eax, dword [0x42b2c0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4d6606
cmp dword [esi*4 + 0x42b2c8], edi
je 0x4d66ff
inc esi
cmp esi, eax
jl 0x4d65f4
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [fcn.004210c4]
test eax, eax
je 0x4d677b
cmp dword [ebp - 8], 0x1000000
jne 0x4d677b
test byte [ebp - 0xc], 0xcc
je 0x4d6684
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4d677b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4d677b
cmp word [eax + 0x18], 0x10b
jne 0x4d677b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4d677b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4d6684
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4d6684
test byte [ecx + 0x27], 0x80
jne 0x4d66fb
push 1
push 0x42b308
call dword [fcn.004210ec]
test eax, eax
jne 0x4d6598
mov ecx, dword [0x42b2c0]
test ecx, ecx
mov edx, ecx
jle 0x4d66b8
lea eax, [ecx*4 + 0x42b2c4]
cmp dword [eax], edi
je 0x4d66b8
dec edx
sub eax, 4
test edx, edx
jg 0x4d66ac
test edx, edx
jne 0x4d66e9
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4d66c5
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4d66dd
lea eax, [edx*4 + 0x42b2c8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4d66cb
cmp ecx, 0x10
jge 0x4d66e9
inc ecx
mov dword [0x42b2c0], ecx
push 0
push 0x42b308
call dword [fcn.004210ec]
jmp 0x4d6598
xor eax, eax
jmp 0x4d677e
test esi, esi
jle 0x4d6598
mov ebx, dword [fcn.004210ec]
push 1
push 0x42b308
call ebx
test eax, eax
jne 0x4d6598
cmp dword [esi*4 + 0x42b2c8], edi
je 0x4d6755
mov eax, dword [0x42b2c0]
lea esi, [eax - 1]
test esi, esi
jl 0x4d6743
cmp dword [esi*4 + 0x42b2c8], edi
je 0x4d673f
dec esi
jns 0x4d6733
test esi, esi
jge 0x4d6753
cmp eax, 0x10
jge 0x4d674e
inc eax
mov dword [0x42b2c0], eax
lea esi, [eax - 1]
jmp 0x4d6755
je 0x4d676d
xor ecx, ecx
test esi, esi
jl 0x4d676d
lea eax, [ecx*4 + 0x42b2c8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4d675b
push 0
push 0x42b308
call ebx
jmp 0x4d6598
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ecf2a
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], eax
setne al
leave
ret

Function at 0x4f253b
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jg 0x4f2548
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 0xc]
push ebx
push edi
push 3
pop edi
jmp 0x4f25ac
sub dword [ebp + 0x10], 4
js 0x4f2636
movzx edx, byte [ecx]
shr edx, 2
mov dl, byte [edx + esi]
mov byte [eax], dl
movzx ebx, byte [ecx + 1]
xor edx, edx
mov dl, byte [ecx]
shr ebx, 4
add eax, 4
and edx, edi
shl edx, 4
add edx, esi
mov dl, byte [ebx + edx]
mov byte [eax - 3], dl
movzx ebx, byte [ecx + 2]
xor edx, edx
mov dl, byte [ecx + 1]
shr ebx, 6
add ebx, esi
and edx, 0xf
mov dl, byte [ebx + edx*4]
mov byte [eax - 2], dl
xor edx, edx
mov dl, byte [ecx + 2]
add ecx, edi
and edx, 0x3f
mov dl, byte [edx + esi]
sub dword [ebp + 8], edi
mov byte [eax - 1], dl
cmp dword [ebp + 8], 2
jg 0x4f2552
mov edx, dword [ebp + 8]
dec edx
je 0x4f2608
dec edx
jne 0x4f2643
sub dword [ebp + 0x10], edi
js 0x4f2636
movzx edx, byte [ecx]
shr edx, 2
mov dl, byte [edx + esi]
mov byte [eax], dl
movzx ebx, byte [ecx + 1]
xor edx, edx
mov dl, byte [ecx]
shr ebx, 4
and edx, edi
shl edx, 4
add edx, esi
mov dl, byte [ebx + edx]
mov byte [eax + 1], dl
movzx ecx, byte [ecx + 1]
and ecx, 0xf
mov cl, byte [esi + ecx*4]
mov byte [eax + 2], cl
add eax, edi
cmp byte [ebp + 0x14], 0
je 0x4f2643
mov ecx, dword [ebp + 0x10]
dec ecx
js 0x4f2636
mov byte [eax], 0x3d
inc eax
jmp 0x4f2643
mov edx, dword [ebp + 0x10]
sub edx, 2
js 0x4f2636
movzx ebx, byte [ecx]
shr ebx, 2
mov bl, byte [ebx + esi]
mov byte [eax], bl
movzx ecx, byte [ecx]
and ecx, edi
shl ecx, 4
mov cl, byte [ecx + esi]
mov byte [eax + 1], cl
inc eax
inc eax
cmp byte [ebp + 0x14], 0
je 0x4f2643
add edx, 0xfffffffe
jns 0x4f263a
xor eax, eax
jmp 0x4f2646
mov byte [eax], 0x3d
mov byte [eax + 1], 0x3d
inc eax
inc eax
sub eax, dword [ebp + 0xc]
pop edi
pop ebx
pop ebp
ret
Function at 0x4f6ccc
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
or dword [ebp - 0x14], 0xffffffff
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x80004005
push 0x475744
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
call dword [fcn.0047115c]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x24], ebx
jne 0x4f6d0a
mov eax, esi
jmp 0x4f6ebf
mov esi, dword [fcn.00471188]
push 0x475734
push ebx
call esi
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x4f6e77
push 0x475b48
push ebx
call esi
cmp eax, edi
mov dword [ebp - 0x30], eax
je 0x4f6e77
push 0x475720
push ebx
call esi
cmp eax, edi
mov dword [ebp - 0x2c], eax
je 0x4f6e77
push 0x475b34
push ebx
call esi
mov ebx, eax
cmp ebx, edi
je 0x4f6e77
push 0x47570c
push dword [ebp - 0x24]
call esi
cmp eax, edi
mov dword [ebp - 0x20], eax
je 0x4f6e77
push 0x475b24
push dword [ebp - 0x24]
call esi
cmp eax, edi
mov dword [ebp - 0x38], eax
je 0x4f6e77
push edi
push edi
push edi
push edi
push edi
call dword [ebp - 0xc]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x4f6e77
mov eax, dword [ebp + 0x10]
push 4
pop esi
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 2
push dword [ebp - 4]
call ebx
push esi
lea eax, [ebp - 0x1c]
push eax
push 6
push dword [ebp - 4]
call ebx
push esi
lea eax, [ebp - 0x1c]
push eax
push 5
push dword [ebp - 4]
call ebx
push edi
push 0x80000000
push edi
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [ebp - 0x30]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x4f6e77
or dword [ebp - 0x28], 0xffffffff
push edi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x20000013
push dword [ebp - 8]
mov dword [ebp - 0x34], esi
call dword [ebp - 0x38]
cmp dword [ebp - 0x28], 0xc8
je 0x4f6e0e
mov dword [ebp - 0x18], 0x80004005
jmp 0x4f6e77
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [fcn.0047112c]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x4f6e77
mov esi, 0x10000
push esi
call fcn.004e6aa3
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, edi
jmp 0x4f6e5b
cmp dword [ebp - 0xc], edi
je 0x4f6e74
push edi
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x38], edi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [fcn.004711b4]
test eax, eax
je 0x4f6e77
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0xc], edi
push dword [ebp - 8]
call dword [ebp - 0x2c]
test eax, eax
jne 0x4f6e3d
jmp 0x4f6e77
mov dword [ebp - 0x18], edi
push dword [ebp - 0x10]
call fcn.004e6ab7
cmp dword [ebp - 8], edi
pop ecx
je 0x4f6e8b
push dword [ebp - 8]
call dword [ebp - 0x20]
cmp dword [ebp - 4], edi
je 0x4f6e96
push dword [ebp - 4]
call dword [ebp - 0x20]
cmp dword [ebp - 0x14], 0xffffffff
je 0x4f6eb3
push dword [ebp - 0x14]
call dword [fcn.004710a4]
cmp dword [ebp - 0x18], edi
jge 0x4f6eb3
push dword [ebp + 0xc]
call dword [fcn.00471208]
push dword [ebp - 0x24]
call dword [fcn.0047116c]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4f7537
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
add edx, 0x89
cmp dword [ebp + 8], eax
jbe 0x4f755f
push ebx
inc eax
mov dword [ebp - 4], eax
add al, dl
mov bl, 0x21
imul bl
xor byte [ecx], al
mov eax, dword [ebp - 4]
inc ecx
cmp eax, dword [ebp + 8]
jb 0x4f7549
pop ebx
leave
ret

Function at 0x4f81ad
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push ebx
push esi
push edi
push 1
call dword [0x471234]
mov dword [ebp - 0xc], eax
mov eax, dword [0x48ac6c]
mov esi, 0x48ac6c
mov ecx, esi
call dword [eax + 4]
mov ebx, 0x48a410
mov byte [ebp - 0x10], al
xor edi, edi
mov dword [ebp - 8], ebx
push dword [ebp - 8]
push dword [ebp + 8]
call dword [fcn.004711b8]
test eax, eax
je 0x4f8322
add dword [ebp - 8], 0x2a
inc edi
cmp dword [ebp - 8], 0x48a48e
jl 0x4f81e0
cmp byte [ebp - 0x10], 0
je 0x4f8212
mov eax, dword [0x48ac6c]
mov ecx, esi
call dword [eax + 8]
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push dword [ebp + 8]
mov byte [ebp - 1], 0
call dword [fcn.0047112c]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4f82c0
xor eax, eax
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov ecx, pe_nt_image_headers32
lea edi, [ebp - 0x42c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
push 0x400
lea eax, [ebp - 0x42c]
push eax
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0x2d1400
push dword [ebp - 8]
mov byte [ebp - 0x1c], 0
call dword [0x47123c]
test eax, eax
je 0x4f82b5
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x4f829f
push 0x475c5c
lea edx, [ebp + eax - 0x42c]
call fcn.004f2347
test eax, eax
pop ecx
je 0x4f829f
mov byte [ebp - 1], 1
cmp dword [ebp - 0x410], 7
je 0x4f82b1
cmp dword [ebp - 0x410], 4
jne 0x4f82b5
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [fcn.004710a4]
xor edi, edi
mov eax, dword [0x48ac6c]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 0x10], al
mov eax, dword [0x48a408]
imul eax, eax, 0x2a
push 0x15
push dword [ebp + 8]
add eax, ebx
push eax
call dword [fcn.00471160]
mov eax, dword [0x48a408]
mov bl, byte [ebp - 1]
mov byte [eax + 0x48a40c], bl
inc eax
cmp eax, 3
mov dword [0x48a408], eax
jl 0x4f8302
mov dword [0x48a408], edi
cmp byte [ebp - 0x10], 0
je 0x4f8312
mov eax, dword [0x48ac6c]
mov ecx, esi
call dword [eax + 8]
push dword [ebp - 0xc]
call dword [0x471234]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
mov bl, byte [edi + 0x48a40c]
jmp 0x4f8302
Function at 0x4fe2c0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push eax
call dword [0x471298]
push 0
push 0x3e8
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.005503b0
mov esi, dword [0x47129c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x1c]
push eax
mov ebx, edx
call esi
rdtsc
and dword [ebp - 4], 0
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], eax
mov edi, 0xc350
lea eax, [ebp - 0xc]
push eax
call esi
inc dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
sbb eax, dword [ebp - 0x18]
cmp eax, ebx
ja 0x4fe32c
jb 0x4fe327
cmp ecx, dword [ebp - 0x2c]
jae 0x4fe32c
cmp dword [ebp - 4], edi
jl 0x4fe307
lea eax, [ebp - 0xc]
push eax
call esi
rdtsc
cmp dword [ebp - 4], edi
mov ebx, edx
mov esi, eax
jl 0x4fe34c
mov edi, 0x6adf307c
mov eax, 0x48d0c8
call fcn.004e851f
push dword [ebp - 0x10]
sub esi, dword [ebp - 0x24]
push dword [ebp - 0x14]
sbb ebx, dword [ebp - 0x20]
push ebx
push esi
call fcn.00550370
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 8]
sbb esi, dword [ebp - 0x18]
push esi
push ecx
push edx
push eax
call fcn.005503b0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x53dfcf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 8]
cmp edx, 0xc
push esi
mov esi, dword [ebp + 0xc]
mov eax, 0x9e3779b9
push edi
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov edi, eax
jb 0x53e0d9
push ebx
mov eax, edx
push 0xc
xor edx, edx
pop ebx
div ebx
mov dword [ebp + 0xc], eax
mov eax, edi
movzx edx, byte [ecx + 7]
movzx ebx, byte [ecx + 6]
shl edx, 8
add edx, ebx
movzx ebx, byte [ecx + 5]
shl edx, 8
add edx, ebx
movzx ebx, byte [ecx + 4]
shl edx, 8
add ebx, eax
lea eax, [ebx + edx]
movzx edx, byte [ecx + 0xb]
movzx ebx, byte [ecx + 0xa]
shl edx, 8
add edx, ebx
movzx ebx, byte [ecx + 9]
shl edx, 8
add edx, ebx
movzx ebx, byte [ecx + 8]
shl edx, 8
add ebx, esi
lea esi, [ebx + edx]
movzx edx, byte [ecx + 3]
movzx ebx, byte [ecx + 2]
shl edx, 8
add edx, ebx
movzx ebx, byte [ecx + 1]
shl edx, 8
add edx, ebx
movzx ebx, byte [ecx]
shl edx, 8
add edx, ebx
sub edx, esi
sub edx, eax
add edx, edi
sub eax, esi
mov edi, esi
shr edi, 0xd
xor edx, edi
sub eax, edx
mov edi, edx
shl edi, 8
xor eax, edi
sub esi, eax
sub esi, edx
mov edi, eax
shr edi, 0xd
xor esi, edi
sub edx, esi
sub edx, eax
mov edi, esi
shr edi, 0xc
xor edx, edi
sub eax, esi
sub eax, edx
mov edi, edx
shl edi, 0x10
xor eax, edi
sub dword [ebp - 4], 0xc
sub esi, eax
sub esi, edx
mov edi, eax
shr edi, 5
xor esi, edi
sub edx, esi
sub edx, eax
mov edi, esi
shr edi, 3
xor edx, edi
sub eax, esi
mov edi, edx
shl edx, 0xa
sub eax, edi
xor eax, edx
sub esi, eax
mov edx, eax
sub esi, edi
shr edx, 0xf
xor esi, edx
add ecx, 0xc
dec dword [ebp + 0xc]
jne 0x53e001
pop ebx
add esi, dword [ebp + 8]
mov edx, dword [ebp - 4]
dec edx
cmp edx, 0xa
ja 0x53e148
jmp dword [edx*4 + 0x45b690]
sub edi, esi
sub edi, eax
sub eax, esi
mov ecx, esi
shr ecx, 0xd
xor edi, ecx
sub eax, edi
mov ecx, edi
shl ecx, 8
xor eax, ecx
sub esi, eax
sub esi, edi
mov ecx, eax
shr ecx, 0xd
xor esi, ecx
sub edi, esi
sub edi, eax
sub eax, esi
mov ecx, esi
shr ecx, 0xc
xor edi, ecx
sub eax, edi
mov ecx, edi
shl ecx, 0x10
xor eax, ecx
sub esi, eax
sub esi, edi
mov ecx, eax
shr ecx, 5
xor esi, ecx
sub edi, esi
sub edi, eax
mov ecx, esi
shr ecx, 3
xor edi, ecx
sub eax, esi
sub eax, edi
mov ecx, edi
shl ecx, 0xa
xor eax, ecx
mov ecx, dword [ebp + 0x10]
sub esi, eax
sub esi, edi
shr eax, 0xf
xor esi, eax
dec ecx
cmp ecx, 0x1f
pop edi
mov eax, esi
pop esi
ja 0x53e28c
jmp dword [ecx*4 + 0x45b6bc]
xor eax, eax
leave
ret