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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push ebx
mov ebx, dword [edx + 0x20]
push esi
mov esi, dword [edx + 0x6c]
imul esi, dword [edx + 0x60]
add esi, ebx
cmp ebx, esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], esi
jae 0x10033358
mov eax, 0xf0f0
push edi
mov edi, dword [edx + 0x60]
mov edx, dword [edx + 0x68]
lea edx, [ebx + edx*2]
add edi, ebx
cmp ebx, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], edx
jae 0x10033338
movzx ecx, word [edi]
movzx edx, word [edi + 2]
movzx esi, word [ebx + 2]
mov dword [ebp - 4], ecx
movzx ecx, word [ebx]
mov ebx, ecx
and bx, ax
mov edi, edx
and di, ax
mov dword [ebp - 0x1c], ecx
and ecx, 0xffff0f0f
add edi, ebx
mov ebx, dword [ebp - 4]
and bx, ax
add edi, ebx
mov ebx, esi
and bx, ax
lea edi, [edi + ebx + 0x2020]
mov ebx, edx
and ebx, 0xffff0f0f
add ebx, ecx
mov ecx, dword [ebp - 4]
and ecx, 0xffff0f0f
add ebx, ecx
mov ecx, esi
and ecx, 0xffff0f0f
lea ecx, [ebx + ecx + 0x202]
mov ebx, dword [ebp - 0xc]
shr ecx, 2
shr edi, 2
xor edi, ecx
mov ecx, dword [ebp - 0x1c]
and ecx, eax
and edx, eax
add edx, ecx
mov ecx, dword [ebp - 4]
and ecx, eax
add edx, ecx
and esi, eax
and edi, 0xffff0f0f
lea ecx, [edx + esi + 0x2020]
shr ecx, 2
xor edi, ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 2
mov word [ecx], di
mov edi, dword [ebp - 0x10]
add ebx, 4
add edi, 4
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
jb 0x10033280
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov edi, dword [edx + 4]
add ecx, dword [edi + 0x60]
mov edx, dword [edx]
mov edi, dword [edx + 0x60]
lea ebx, [ebx + edi*2]
cmp ebx, esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
jb 0x10033261
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x1003335e
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push ebx
push edi
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
mov edi, dword [eax + 0x6c]
imul edi, dword [eax + 0x60]
mov ebx, dword [eax + 0x20]
add edi, ebx
cmp ebx, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], edi
jae 0x10033476
push esi
mov esi, 0xe3
mov edx, dword [eax + 0x60]
mov eax, dword [eax + 0x68]
add eax, ebx
add edx, ebx
cmp ebx, eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], eax
jae 0x10033456
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
movzx edi, byte [ebx + 1]
mov dword [ebp - 4], ecx
movzx ecx, byte [ebx]
mov ebx, ecx
and ebx, 0x1c
mov edx, eax
and edx, 0x1c
add edx, ebx
mov ebx, dword [ebp - 4]
and ebx, 0x1c
add edx, ebx
mov dword [ebp - 0x1c], ecx
and cx, si
mov ebx, edi
and ebx, 0x1c
lea edx, [edx + ebx + 8]
mov ebx, eax
and bx, si
shr edx, 2
and ax, si
add ebx, ecx
mov ecx, dword [ebp - 4]
and cx, si
add ebx, ecx
mov ecx, edi
and cx, si
and di, si
lea ecx, [ebx + ecx + 0x42]
shr ecx, 2
xor dl, cl
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
and cx, si
and dl, 0x1c
add eax, ecx
mov ecx, dword [ebp - 4]
and cx, si
add eax, ecx
lea eax, [eax + edi + 0x42]
shr eax, 2
xor dl, al
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [eax], dl
mov edx, dword [ebp - 0x10]
inc ebx
inc ebx
inc edx
inc edx
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edx
jb 0x100333b6
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 4]
add ecx, dword [edx + 0x60]
mov eax, dword [eax]
mov edx, dword [eax + 0x60]
lea ebx, [ebx + edx*2]
cmp ebx, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
jb 0x10033398
pop esi
pop edi
xor eax, eax
pop ebx
leave
ret
Function at 0x10033508
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov eax, ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push esi
mov esi, dword [eax]
mov ebx, dword [esi + 0x20]
push edi
mov edi, dword [esi + 0x6c]
imul edi, dword [esi + 0x60]
add edi, ebx
cmp ebx, edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], edi
jae 0x1003362f
mov eax, 0xff1c
mov edx, dword [esi + 0x60]
mov esi, dword [esi + 0x68]
lea esi, [ebx + esi*2]
add edx, ebx
cmp ebx, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], esi
jae 0x10033610
movzx esi, word [edx + 2]
movzx ecx, word [edx]
movzx edx, word [ebx]
movzx edi, word [ebx + 2]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov ebx, esi
mov ecx, 0xe3
and dx, cx
and bx, cx
add ebx, edx
mov edx, dword [ebp - 4]
and dx, cx
add ebx, edx
mov edx, edi
and dx, cx
mov ecx, esi
and cx, ax
and esi, eax
lea edx, [ebx + edx + 0x42]
mov ebx, dword [ebp - 0xc]
and bx, ax
shr edx, 2
add ecx, ebx
mov ebx, dword [ebp - 4]
and bx, ax
add ecx, ebx
mov ebx, edi
and bx, ax
and edi, eax
lea ecx, [ecx + ebx + 0x208]
mov ebx, dword [ebp - 0x10]
shr ecx, 2
xor dl, cl
mov ecx, dword [ebp - 0xc]
and ecx, eax
add esi, ecx
mov ecx, dword [ebp - 4]
and ecx, eax
add esi, ecx
and edx, 0xffff00e3
lea ecx, [esi + edi + 0x208]
shr ecx, 2
xor edx, ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 2
mov word [ecx], dx
mov edx, dword [ebp - 0x14]
add ebx, 4
add edx, 4
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edx
jb 0x10033561
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, dword [edx + 4]
add ecx, dword [esi + 0x60]
mov esi, dword [edx]
mov edx, dword [esi + 0x60]
lea ebx, [ebx + edx*2]
cmp ebx, edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
jb 0x10033542
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x1003373f
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov eax, ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push esi
mov esi, dword [eax]
mov ebx, dword [esi + 0x20]
push edi
mov edi, dword [esi + 0x6c]
imul edi, dword [esi + 0x60]
add edi, ebx
cmp ebx, edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], edi
jae 0x10033866
mov eax, 0xff00
mov edx, dword [esi + 0x60]
mov esi, dword [esi + 0x68]
lea esi, [ebx + esi*2]
add edx, ebx
cmp ebx, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], esi
jae 0x10033847
movzx esi, word [edx + 2]
movzx ecx, word [edx]
movzx edx, word [ebx]
movzx edi, word [ebx + 2]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov ebx, esi
mov ecx, 0xff
and dx, cx
and bx, cx
add ebx, edx
mov edx, dword [ebp - 4]
and dx, cx
add ebx, edx
mov edx, edi
and dx, cx
mov ecx, esi
and cx, ax
and esi, eax
lea edx, [ebx + edx + 2]
mov ebx, dword [ebp - 0xc]
and bx, ax
shr edx, 2
add ecx, ebx
mov ebx, dword [ebp - 4]
and bx, ax
add ecx, ebx
mov ebx, edi
and bx, ax
and edi, eax
lea ecx, [ecx + ebx + 0x200]
mov ebx, dword [ebp - 0x10]
shr ecx, 2
xor dl, cl
mov ecx, dword [ebp - 0xc]
and ecx, eax
add esi, ecx
mov ecx, dword [ebp - 4]
and ecx, eax
add esi, ecx
and edx, 0xffff00ff
lea ecx, [esi + edi + 0x200]
shr ecx, 2
xor edx, ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 2
mov word [ecx], dx
mov edx, dword [ebp - 0x14]
add ebx, 4
add edx, 4
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edx
jb 0x10033798
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, dword [edx + 4]
add ecx, dword [esi + 0x60]
mov esi, dword [edx]
mov edx, dword [esi + 0x60]
lea ebx, [ebx + edx*2]
cmp ebx, edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
jb 0x10033779
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x1003386d
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push ebx
push edi
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
mov edi, dword [eax + 0x6c]
imul edi, dword [eax + 0x60]
mov ebx, dword [eax + 0x20]
add edi, ebx
cmp ebx, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], edi
jae 0x10033985
push esi
mov esi, 0xf0
mov edx, dword [eax + 0x60]
mov eax, dword [eax + 0x68]
add eax, ebx
add edx, ebx
cmp ebx, eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], eax
jae 0x10033965
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
movzx edi, byte [ebx + 1]
mov dword [ebp - 4], ecx
movzx ecx, byte [ebx]
mov ebx, ecx
and ebx, 0xf
mov edx, eax
and edx, 0xf
add edx, ebx
mov ebx, dword [ebp - 4]
and ebx, 0xf
add edx, ebx
mov dword [ebp - 0x1c], ecx
and cx, si
mov ebx, edi
and ebx, 0xf
lea edx, [edx + ebx + 2]
mov ebx, eax
and bx, si
shr edx, 2
and ax, si
add ebx, ecx
mov ecx, dword [ebp - 4]
and cx, si
add ebx, ecx
mov ecx, edi
and cx, si
and di, si
lea ecx, [ebx + ecx + 0x20]
shr ecx, 2
xor dl, cl
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
and cx, si
and dl, 0xf
add eax, ecx
mov ecx, dword [ebp - 4]
and cx, si
add eax, ecx
lea eax, [eax + edi + 0x20]
shr eax, 2
xor dl, al
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [eax], dl
mov edx, dword [ebp - 0x10]
inc ebx
inc ebx
inc edx
inc edx
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edx
jb 0x100338c5
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 4]
add ecx, dword [edx + 0x60]
mov eax, dword [eax]
mov edx, dword [eax + 0x60]
lea ebx, [ebx + edx*2]
cmp ebx, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
jb 0x100338a7
pop esi
pop edi
xor eax, eax
pop ebx
leave
ret
Function at 0x10044f36
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebx + 0x24]
push esi
mov dword [ebp - 8], edx
push edi
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x34]
mov esi, dword [ebx + 0x6c]
sub eax, ecx
sub eax, esi
mov dword [ebp - 4], eax
jne 0x10044f62
test ecx, ecx
jne 0x10044f6c
test esi, esi
jne 0x10044f6c
mov eax, edx
jmp 0x10044fdd
cmp eax, 0xffffffff
jne 0x10044f6c
push 0xfffffffffffffffe
pop eax
jmp 0x10044fdd
mov esi, dword [ebx + 0x24]
lea esi, [edx + esi - 0x106]
cmp ecx, esi
jb 0x10044fdd
mov edi, dword [ebx + 0x30]
mov ecx, edx
mov eax, ecx
shr ecx, 2
lea esi, [edi + edx]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x3c]
sub dword [ebx + 0x68], edx
sub dword [ebx + 0x64], edx
sub dword [ebx + 0x54], edx
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx esi, word [eax]
mov edi, esi
sub edi, edx
cmp esi, edx
sbb esi, esi
not esi
and esi, edi
dec ecx
mov word [eax], si
jne 0x10044fa2
mov eax, dword [ebx + 0x38]
mov esi, edx
lea eax, [eax + edx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edi, ecx
sub edi, edx
cmp ecx, edx
sbb ecx, ecx
not ecx
and ecx, edi
dec esi
mov word [eax], cx
jne 0x10044fc1
mov eax, dword [ebp - 4]
add eax, edx
mov esi, dword [ebx]
cmp dword [esi + 4], 0
mov dword [ebp - 0xc], esi
je 0x1004508a
mov edi, dword [ebx + 0x6c]
add edi, dword [ebx + 0x64]
mov ecx, dword [esi + 4]
add edi, dword [ebx + 0x30]
cmp ecx, eax
mov dword [ebp - 4], ecx
jbe 0x10045002
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1004500c
xor ecx, ecx
jmp 0x1004504b
sub ecx, dword [ebp - 4]
mov eax, dword [esi + 0x1c]
mov dword [esi + 4], ecx
cmp dword [eax + 0x18], 0
jne 0x1004502e
push dword [ebp - 4]
push dword [esi]
push dword [esi + 0x30]
call fcn.100457c7
mov edx, dword [ebp - 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebp - 4]
mov esi, dword [esi]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov eax, dword [ebp - 0xc]
add dword [eax], ecx
add dword [eax + 8], ecx
add dword [ebx + 0x6c], ecx
mov edi, dword [ebx + 0x6c]
cmp edi, 3
jb 0x10045076
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [ebx + 0x50]
mov dword [ebx + 0x40], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp edi, 0x106
jae 0x1004508a
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x10044f44
pop edi
pop esi
leave
ret
Function at 0x40b18d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x56d484]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x40b211
cmp byte [esi + 0x3d], 0
je 0x40b211
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40b1e3
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x40b1e7
sub eax, 1
je 0x40b1eb
dec eax
sub eax, 1
je 0x40b211
xor al, al
jmp 0x40b213
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40b208
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005015d7
add esp, 0x10
cmp edi, eax
jne 0x40b1e3
cmp byte [esi + 0x3d], 0
sete al
jmp 0x40b213
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004dc9c9
leave
ret

Function at 0x40b6d8
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x56d484]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x40b6fd
xor eax, eax
jmp 0x40b7cd
mov eax, dword [esi + 0x20]
push ebp
mov ecx, dword [eax]
test ecx, ecx
je 0x40b72b
mov edx, dword [esi + 0x30]
mov ebp, dword [edx]
lea eax, [ecx + ebp]
cmp ecx, eax
jae 0x40b72b
lea ecx, [ebp - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x40b7cc
cmp dword [esi + 0x4c], 0
je 0x40b7ca
mov ecx, esi
call fcn.0040b37f
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x40b757
push dword [esi + 0x4c]
push eax
call fcn.004084c8
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x40b7ca
mov byte [esp + 0x10], al
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x21]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x40b7ca
cmp eax, 1
jle 0x40b79b
cmp eax, 3
jne 0x40b7ca
push dword [esi + 0x4c]
push dword [esp + 0x14]
jmp 0x40b749
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x1c]
sub ebp, eax
je 0x40b7ba
push dword [esi + 0x4c]
push ebp
push 1
push eax
call fcn.005015d7
add esp, 0x10
cmp ebp, eax
jne 0x40b7ca
lea eax, [esp + 0x10]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x18], eax
mov eax, ebx
jne 0x40b7cc
mov eax, edi
pop ebp
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004dc9c9
add esp, 0x30
ret 4
Function at 0x40b868
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
lea ebp, [esp - 0x158]
sub esp, 0x158
push 0xffffffffffffffff
push 0x51fad9
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x56d484]
xor eax, ebp
mov dword [ebp + 0x154], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
and dword [ebp - 4], 0
lea ecx, [ebp + 0x54]
mov eax, dword [ebp + 0x160]
mov esi, dword [ebp + 0x164]
mov ebx, dword [ebp + 0x168]
mov dword [ebp - 0x20], eax
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], eax
call fcn.00417685
push 0x23
push esi
lea ecx, [ebp + 0x54]
mov dword [ebp - 4], 1
call fcn.00417708
lea eax, [edi + 0x138]
push eax
lea eax, [edi + 0xc]
push eax
lea eax, [edi + 0x30]
push eax
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0040b9f7
add esp, 0x14
lea edi, [ebp]
mov esi, eax
lea eax, [ebp + 0x32]
push 0x15
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x18]
mov ecx, edi
push 0x20
push eax
call fcn.0040436a
mov esi, dword [ebp - 0x10]
lea eax, [ebp + 0x22]
push eax
push ebx
push edi
lea eax, [esi + 0x20]
mov dword [ebp - 0x1c], 1
push eax
push dword [esi + 0x1c]
lea eax, [ebp - 0x30]
push eax
call fcn.00418298
add esp, 0x18
lea eax, [ebp + 0x22]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x30]
sub esp, 0x10
mov ecx, esp
push eax
call fcn.004042e5
lea eax, [ebp - 0x14]
push eax
call fcn.0040858a
mov al, byte [ebp + 0x53]
and al, 1
mov dword [ebp + method.std::_Func_impl_no_alloc_class__lambda_28c1a0c5b050cba10f6f20dd76da5862___unsigned_char___.virtual_0], vtable.std::_Func_impl_no_alloc_class__lambda_28c1a0c5b050cba10f6f20dd76da5862___unsigned_char___.0
mov byte [ebp - 0x10], al
mov al, byte [ebp + 0x52]
mov byte [ebp + 0x130], al
lea eax, [ebp + 0x12c]
mov dword [ebp + 0x150], eax
push eax
push dword [ebp - 0x10]
mov byte [ebp - 4], 4
lea eax, [ebp + 0x54]
push esi
push dword [ebp - 0x14]
push eax
call fcn.00417a07
add esp, 0x30
lea ecx, [ebp + 0x12c]
call fcn.00406686
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40b9b8
mov edx, dword [ecx]
push 1
call dword [edx]
lea ecx, [ebp - 0x30]
call fcn.00402068
lea ecx, [ebp + 0x54]
call fcn.00409a53
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x154]
xor ecx, ebp
call fcn.004dc9c9
add ebp, 0x158
leave
ret 0xc
Function at 0x40c1a3
Capabilities:
Read file on windows

Disassembly:
push ecx
push ecx
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x40c1c4
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.0040c27c
jmp 0x40c276
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ecx, dword [eax]
mov dword [esp + 0x10], ebx
push esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], esi
test ecx, ecx
je 0x40c1e7
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x40c1e9
xor eax, eax
cdq
mov ebp, eax
mov eax, edx
mov dword [esp + 0x20], eax
test ebx, ebx
jl 0x40c267
jg 0x40c1fc
test esi, esi
je 0x40c267
test eax, eax
jl 0x40c238
jg 0x40c206
test ebp, ebp
je 0x40c238
cmp ebx, eax
jg 0x40c216
jl 0x40c210
cmp esi, ebp
jae 0x40c216
mov ebp, esi
mov dword [esp + 0x20], ebx
push ebp
push ecx
push dword [esp + 0x24]
call fcn.004f3930
mov eax, dword [edi + 0x2c]
add esp, 0xc
add dword [esp + 0x1c], ebp
sub esi, ebp
sbb ebx, dword [esp + 0x20]
sub dword [eax], ebp
mov eax, dword [edi + 0x1c]
add dword [eax], ebp
mov ebp, dword [esp + 0x1c]
test ebx, ebx
jl 0x40c267
jg 0x40c246
test esi, esi
je 0x40c267
cmp dword [edi + 0x4c], 0
je 0x40c267
mov ecx, edi
call fcn.0040b37f
push dword [edi + 0x4c]
push esi
push 1
push ebp
call fcn.00500f50
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, esi
pop esi
pop ebp
sbb edx, ebx
pop ebx
pop edi
pop ecx
pop ecx
ret 0xc

Function at 0x40c350
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40c371
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.0040c426
jmp 0x40c420
mov eax, dword [ebx + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esp + 0xc], esi
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x40c394
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x40c396
xor eax, eax
cdq
mov ebp, eax
mov eax, edx
mov dword [esp + 0x20], eax
test edi, edi
jl 0x40c411
jg 0x40c3a9
test esi, esi
je 0x40c411
test eax, eax
jl 0x40c3e9
jg 0x40c3b3
test ebp, ebp
je 0x40c3e9
cmp edi, eax
jg 0x40c3c3
jl 0x40c3bd
cmp esi, ebp
jae 0x40c3c3
mov ebp, esi
mov dword [esp + 0x20], edi
push ebp
push dword [esp + 0x20]
push ecx
call fcn.004f3930
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [ebx + 0x30]
add ecx, ebp
sub esi, ebp
sbb edi, dword [esp + 0x20]
sub dword [eax], ebp
mov eax, dword [ebx + 0x20]
add dword [eax], ebp
jmp 0x40c3ed
mov ecx, dword [esp + 0x1c]
test edi, edi
jl 0x40c411
jg 0x40c3f7
test esi, esi
je 0x40c411
cmp dword [ebx + 0x4c], 0
je 0x40c411
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.005015d7
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0xc
Function at 0x4125ff
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push str.rstrtmgr.dll
call esi
push str.Kernel32.dll
mov ebx, eax
call esi
mov ebp, eax
test ebx, ebx
je 0x41267a
test ebp, ebp
je 0x41267a
push edi
push 0x14
call fcn.004dc986
mov edi, eax
pop ecx
test edi, edi
je 0x41266f
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.RmStartSession
push ebx
call esi
push str.RmRegisterResources
push ebx
mov dword [edi], eax
call esi
push str.RmGetList
push ebx
mov dword [edi + 4], eax
call esi
push str.RmEndSession
push ebx
mov dword [edi + 8], eax
call esi
push str.QueryFullProcessImageNameW
push ebp
mov dword [edi + 0xc], eax
call esi
mov dword [edi + 0x10], eax
jmp 0x412671
xor edi, edi
mov eax, dword [esp + 0x14]
mov dword [eax], edi
pop edi
jmp 0x412681
mov eax, dword [esp + 0x10]
and dword [eax], 0
pop esi
pop ebp
pop ebx
ret 4

Function at 0x412687
Capabilities:
Get disk information

Disassembly:
push 0x58
mov eax, 0x5209b0
call fcn.004dca45
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x5c], eax
push ecx
mov dword [ebp - 0x48], ecx
mov edi, dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsA]
push ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x4c], eax
call edi
mov esi, eax
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0x41]
push eax
push esi
call fcn.00412100
push dword [ebp - 0x58]
mov dword [ebp - 4], 1
push esi
call edi
mov esi, dword [ebp - 0x4c]
mov ecx, esi
and dword [esi], 0
and dword [esi + 4], 0
call fcn.004053a4
mov dword [esi], eax
mov edi, dword [ebp - 0x58]
mov dword [ebp - 0x48], 1
cmp edi, dword [ebp - 0x54]
je 0x412799
mov byte [ebp - 0x4c], 0
movsx ax, byte [edi]
xor ecx, ecx
and dword [ebp - 0x30], 0
mov word [ebp - 0x40], cx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
movzx eax, ax
push eax
push 1
call fcn.00413d93
push 0x531340
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00413d6e
push dword [ebp - 0x4c]
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
and dword [ebp - 0x14], 0
push eax
call fcn.00405355
or dword [ebp - 0x48], 2
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.004066d6
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
add eax, 0xfffffffe
cmp eax, 2
ja 0x412783
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00410a3b
push eax
add eax, 0x10
mov ecx, esi
push eax
push 0
lea eax, [ebp - 0x64]
push eax
call fcn.004110d6
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004066d6
inc edi
cmp edi, dword [ebp - 0x54]
jne 0x4126f4
lea ecx, [ebp - 0x58]
call fcn.00413c59
mov eax, esi
call fcn.004dc9ef
ret 4