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

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x90abdd2
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1430
call fcn.090a6f20
mov eax, dword [0x90e6610]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 8]
xor eax, eax
mov ecx, edi
mov dword [ebp - 0x1424], edi
mov dword [ebp - 0x1430], eax
mov dword [ebp - 0x1428], eax
mov dword [ebp - 0x143c], edi
call fcn.090168fd
xor ecx, ecx
push 0xf
mov eax, ecx
mov dword [ebp - 4], ecx
pop esi
mov dword [ebp - 0x142c], eax
mov dword [ebp - 0x1420], esi
xor edx, edx
mov edi, ecx
div esi
mov dword [ebp - 0x141c], edi
lea esi, [ebp - 0x416]
mov dword [ebp - 0x1434], eax
mov eax, edi
xor edx, edx
div dword [ebp - 0x1420]
mov edi, ecx
mov dword [ebp - 0x1438], eax
mov edx, dword [ebp - 0x1434]
mov byte [esi - 1], dl
xor edx, edx
mov byte [esi], al
mov eax, edi
div dword [ebp - 0x1420]
mov edx, 0xff
mov byte [esi + 1], al
add edi, edx
mov eax, dword [ebp - 0x1438]
add esi, 4
cmp edi, 0xff0
jb 0x906e460
mov edi, dword [ebp - 0x141c]
add edi, edx
mov dword [ebp - 0x141c], edi
cmp edi, 0xff0
jb 0x906e44e
push ecx
mov ecx, dword [ebp - 0x1424]
lea esi, [edx + 1]
push 0x5058595a
push 0x706c6162
push esi
lea eax, [ebp - 0x1418]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.09024e61
push esi
lea eax, [ebp - 0xc18]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.09024e61
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x141c], esi
movzx eax, word [ebp + esi - 0xc16]
movzx ecx, word [ebp + esi - 0x1416]
sub ecx, eax
mov eax, ecx
movzx ecx, word [ebp + esi - 0x1414]
cdq
mov edi, eax
movzx eax, word [ebp + esi - 0xc14]
sub ecx, eax
xor edi, edx
mov eax, ecx
sub edi, edx
mov ecx, dword [ebp - 0x141c]
cdq
mov esi, eax
xor esi, edx
movzx eax, word [ebp + ecx - 0xc12]
sub esi, edx
movzx ecx, word [ebp + ecx - 0x1412]
sub ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 0x1428]
cdq
xor eax, edx
sub eax, edx
cmp ecx, edi
cmovl ecx, edi
cmp ecx, esi
cmovl ecx, esi
mov esi, dword [ebp - 0x141c]
cmp ecx, eax
cmovl ecx, eax
add esi, 8
mov dword [ebp - 0x1428], ecx
mov dword [ebp - 0x141c], esi
cmp esi, 0x800
jb 0x906e4ed
cmp ecx, 0xa
ja 0x906e5a9
mov eax, dword [ebp - 0x142c]
mov esi, dword [ebp - 0x1420]
add eax, 0xff
mov dword [ebp - 0x142c], eax
push 0
pop ecx
cmp eax, 0xff0
jb 0x906e436
mov byte [ebp - 0x1430], 1
mov ecx, dword [ebp - 0x1424]
or dword [ebp - 4], 0xffffffff
call fcn.09016a6b
mov al, byte [ebp - 0x1430]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.09001f80
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x907dd32
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x90ac387
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x13f0
call fcn.090a6f20
mov eax, dword [0x90e6610]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x13e8], edi
mov esi, dword [ebx + 8]
push 0
mov dword [ebp - 0x13e4], esi
mov eax, dword [esi + 4]
add eax, 0x94
push eax
call fcn.09024e61
cmp dword [edi], 0
pop ecx
pop ecx
jne 0x907ddb7
push 0
push 0x9c4
push 0xf424
push dword [esi + 4]
call fcn.09024e61
add esp, 0x10
mov dword [edi], eax
mov ecx, esi
mov dword [ebp - 0x13ec], esi
call fcn.090168fd
and dword [ebp - 4], 0
lea edi, [ebp - 0x48]
push 0xc
pop ecx
mov eax, ecx
mov dword [ebp - 0x13dc], 0x18
xor edx, edx
add ecx, 0x8000
div dword [ebp - 0x13dc]
mov word [edi], ax
lea edi, [edi + 2]
cmp ecx, 0xc800c
jb 0x907ddce
and dword [ebp - 0x13e0], 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x13dc], eax
movzx eax, word [eax]
lea ecx, [ebp - 0x13cc]
xor edx, edx
mov dword [ebp - 0x13d8], eax
mov dword [ebp - 0x13d4], edx
movzx esi, word [ebp + edx*2 - 0x48]
xor edi, edi
mov edx, dword [ebp - 0x13d8]
mov ax, word [ebp + edi*2 - 0x48]
inc edi
mov word [ecx - 2], dx
mov word [ecx], si
mov word [ecx + 2], ax
add ecx, 8
cmp edi, 0x19
jb 0x907de2a
mov edx, dword [ebp - 0x13d4]
inc edx
mov dword [ebp - 0x13d4], edx
cmp edx, 0x19
jb 0x907de1d
mov ecx, dword [ebp - 0x13e4]
lea eax, [ebp - 0x13d0]
push 0
push 0x434d594b
push 0x504c4142
push 0x271
push eax
push eax
call fcn.09024e61
mov eax, dword [ebp - 0x13e8]
lea ecx, [ebp - 0x1400]
mov edi, dword [ebp - 0x13e0]
push 1
push 0x9c4
push edi
push dword [eax]
call fcn.09024e61
lea ecx, [ebp - 0x1400]
mov byte [ebp - 4], 1
call fcn.09005d4d
lea esi, [ebp - 0x13d0]
mov dword [ebp - 0x13d8], 0x19
lea edi, [eax + 2]
mov dword [ebp - 0x13d4], 0x19
mov ecx, dword [esi]
mov edx, dword [esi + 4]
add esi, 8
movzx eax, cx
imul eax, eax, 0xff
shr ecx, 0x10
add eax, 0x4000
shr eax, 0xf
mov byte [edi - 2], al
imul eax, ecx, 0xff
mov ecx, 0x4000
add eax, ecx
shr eax, 0xf
mov byte [edi - 1], al
movzx eax, dx
imul eax, eax, 0xff
shr edx, 0x10
add eax, ecx
shr eax, 0xf
mov byte [edi], al
imul eax, edx, 0xff
add eax, ecx
shr eax, 0xf
mov byte [edi + 1], al
add edi, 4
sub dword [ebp - 0x13d4], 1
jne 0x907dec6
sub dword [ebp - 0x13d8], 1
jne 0x907debc
lea ecx, [ebp - 0x1400]
mov byte [ebp - 4], 0
call fcn.09005e1d
mov edi, dword [ebp - 0x13e0]
mov eax, dword [ebp - 0x13dc]
add edi, 0x9c4
mov esi, dword [ebp - 0x13e4]
add eax, 2
mov dword [ebp - 0x13dc], eax
mov dword [ebp - 0x13e0], edi
cmp edi, 0xf424
jb 0x907de06
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.09016a6b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.09001f80
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x907df9b
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x90ac387
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x13f0
call fcn.090a6f20
mov eax, dword [0x90e6610]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x13e8], edi
mov esi, dword [ebx + 8]
push 0
mov dword [ebp - 0x13e4], esi
mov eax, dword [esi + 4]
add eax, 0x94
push eax
call fcn.09024e61
cmp dword [edi], 0
pop ecx
pop ecx
jne 0x907e020
push 0
push 0x753
push 0xb71b
push dword [esi + 4]
call fcn.09024e61
add esp, 0x10
mov dword [edi], eax
mov ecx, esi
mov dword [ebp - 0x13ec], esi
call fcn.090168fd
and dword [ebp - 4], 0
lea edi, [ebp - 0x48]
push 0xc
pop ecx
mov eax, ecx
mov dword [ebp - 0x13dc], 0x18
xor edx, edx
add ecx, 0x8000
div dword [ebp - 0x13dc]
mov word [edi], ax
lea edi, [edi + 2]
cmp ecx, 0xc800c
jb 0x907e037
and dword [ebp - 0x13e0], 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x13dc], eax
movzx eax, word [eax]
lea ecx, [ebp - 0x13cc]
xor edx, edx
mov dword [ebp - 0x13d8], eax
mov dword [ebp - 0x13d4], edx
movzx esi, word [ebp + edx*2 - 0x48]
xor edi, edi
mov edx, dword [ebp - 0x13d8]
mov ax, word [ebp + edi*2 - 0x48]
inc edi
mov word [ecx - 2], dx
mov word [ecx], si
mov word [ecx + 2], ax
add ecx, 8
cmp edi, 0x19
jb 0x907e093
mov edx, dword [ebp - 0x13d4]
inc edx
mov dword [ebp - 0x13d4], edx
cmp edx, 0x19
jb 0x907e086
mov ecx, dword [ebp - 0x13e4]
mov eax, 0x504c4142
push 0
push eax
push eax
push 0x271
lea eax, [ebp - 0x13d0]
push eax
push eax
call fcn.09024e61
mov eax, dword [ebp - 0x13e8]
lea ecx, [ebp - 0x1400]
mov edi, dword [ebp - 0x13e0]
push 1
push 0x753
push edi
push dword [eax]
call fcn.09024e61
lea ecx, [ebp - 0x1400]
mov byte [ebp - 4], 1
call fcn.09005d4d
lea esi, [ebp - 0x13d0]
mov dword [ebp - 0x13d8], 0x19
lea edi, [eax + 2]
mov dword [ebp - 0x13d4], 0x19
mov eax, dword [esi]
mov edx, dword [esi + 4]
shr eax, 0x10
imul eax, eax, 0xff
movzx ecx, dx
add ecx, 0x40
shr ecx, 7
add eax, 0x4000
shr eax, 0xf
cmp ecx, 0xff
mov byte [edi - 2], al
movzx eax, cl
mov ecx, 0xff
cmova eax, ecx
shr edx, 0x10
add edx, 0x40
mov byte [edi - 1], al
shr edx, 7
cmp edx, ecx
movzx eax, dl
cmova eax, ecx
add esi, 8
mov byte [edi], al
add edi, 3
sub dword [ebp - 0x13d4], 1
jne 0x907e12c
sub dword [ebp - 0x13d8], 1
jne 0x907e122
lea ecx, [ebp - 0x1400]
mov byte [ebp - 4], 0
call fcn.09005e1d
mov edi, dword [ebp - 0x13e0]
mov eax, dword [ebp - 0x13dc]
add edi, 0x753
mov esi, dword [ebp - 0x13e4]
add eax, 2
mov dword [ebp - 0x13dc], eax
mov dword [ebp - 0x13e0], edi
cmp edi, 0xb71b
jb 0x907e06f
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.09016a6b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.09001f80
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x907e5ad
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x90ac387
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x13f0
call fcn.090a6f20
mov eax, dword [0x90e6610]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x13e8], edi
mov esi, dword [ebx + 8]
push 0
mov dword [ebp - 0x13e4], esi
mov eax, dword [esi + 4]
add eax, 0x94
push eax
call fcn.09024e61
cmp dword [edi], 0
pop ecx
pop ecx
jne 0x907e632
push 0
push 0x9c4
push 0xf424
push dword [esi + 4]
call fcn.09024e61
add esp, 0x10
mov dword [edi], eax
mov ecx, esi
mov dword [ebp - 0x13ec], esi
call fcn.090168fd
and dword [ebp - 4], 0
lea edi, [ebp - 0x48]
push 0xc
pop ecx
mov eax, ecx
mov dword [ebp - 0x13dc], 0x18
xor edx, edx
add ecx, 0x8000
div dword [ebp - 0x13dc]
mov word [edi], ax
lea edi, [edi + 2]
cmp ecx, 0xc800c
jb 0x907e649
and dword [ebp - 0x13e0], 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x13dc], eax
movzx eax, word [eax]
lea ecx, [ebp - 0x13cc]
xor edx, edx
mov dword [ebp - 0x13d8], eax
mov dword [ebp - 0x13d4], edx
movzx esi, word [ebp + edx*2 - 0x48]
xor edi, edi
mov edx, dword [ebp - 0x13d8]
mov ax, word [ebp + edi*2 - 0x48]
inc edi
mov word [ecx - 2], dx
mov word [ecx], si
mov word [ecx + 2], ax
add ecx, 8
cmp edi, 0x19
jb 0x907e6a5
mov edx, dword [ebp - 0x13d4]
inc edx
mov dword [ebp - 0x13d4], edx
cmp edx, 0x19
jb 0x907e698
mov ecx, dword [ebp - 0x13e4]
lea eax, [ebp - 0x13d0]
push 0
push 0x434d594b
push 0x50524742
push 0x271
push eax
push eax
call fcn.09024e61
mov eax, dword [ebp - 0x13e8]
lea ecx, [ebp - 0x1400]
mov edi, dword [ebp - 0x13e0]
push 1
push 0x9c4
push edi
push dword [eax]
call fcn.09024e61
lea ecx, [ebp - 0x1400]
mov byte [ebp - 4], 1
call fcn.09005d4d
lea esi, [ebp - 0x13d0]
mov dword [ebp - 0x13d8], 0x19
lea edi, [eax + 2]
mov dword [ebp - 0x13d4], 0x19
mov ecx, dword [esi]
mov edx, dword [esi + 4]
add esi, 8
movzx eax, cx
imul eax, eax, 0xff
shr ecx, 0x10
add eax, 0x4000
shr eax, 0xf
mov byte [edi - 2], al
imul eax, ecx, 0xff
mov ecx, 0x4000
add eax, ecx
shr eax, 0xf
mov byte [edi - 1], al
movzx eax, dx
imul eax, eax, 0xff
shr edx, 0x10
add eax, ecx
shr eax, 0xf
mov byte [edi], al
imul eax, edx, 0xff
add eax, ecx
shr eax, 0xf
mov byte [edi + 1], al
add edi, 4
sub dword [ebp - 0x13d4], 1
jne 0x907e741
sub dword [ebp - 0x13d8], 1
jne 0x907e737
lea ecx, [ebp - 0x1400]
mov byte [ebp - 4], 0
call fcn.09005e1d
mov edi, dword [ebp - 0x13e0]
mov eax, dword [ebp - 0x13dc]
add edi, 0x9c4
mov esi, dword [ebp - 0x13e4]
add eax, 2
mov dword [ebp - 0x13dc], eax
mov dword [ebp - 0x13e0], edi
cmp edi, 0xf424
jb 0x907e681
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.09016a6b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.09001f80
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x909f010
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x90ace1d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xb20
mov eax, dword [0x90e6610]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 0x18]
push eax
mov dword [ebp - 0xb2c], eax
call fcn.09024e61
add esp, 4
lea ecx, [ebp - 0xb24]
push eax
call fcn.09024e61
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
push dword [ebp - 0xb24]
mov dword [ebp - 4], 0
push esi
call fcn.09008247
add esp, 0x3c
lea ecx, [ebp - 0xb20]
push eax
call fcn.09024e61
mov byte [ebp - 4], 1
xor eax, eax
nop dword [eax]
nop dword [eax + eax]
mov byte [ebp + eax - 0x118], al
inc eax
cmp eax, 0x100
jb 0x909f0c0
mov ecx, dword [ebp - 0xb20]
lea eax, [ebp - 0x918]
push 0
push 0x5058595a
push 0x67386b30
push 0x100
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.09024e61
movzx ecx, word [ebp - 0x11c]
movzx edi, word [ebp - 0x914]
mov dword [ebp - 0xb28], ecx
cmp ecx, edi
jbe 0x909f23a
mov edx, ecx
sub edx, edi
xor esi, esi
mov dword [ebp - 0xb1c], edx
movzx eax, word [ebp + esi*8 - 0x914]
cmp eax, edi
ja 0x909f131
xor eax, eax
jmp 0x909f15e
cmp eax, ecx
jb 0x909f13c
mov eax, 0x8000
jmp 0x909f15e
sub eax, edi
mov ecx, edx
shl eax, 0xf
xor edx, edx
shr ecx, 1
add eax, ecx
mov ecx, dword [ebp - 0xb28]
div dword [ebp - 0xb1c]
mov edx, dword [ebp - 0xb1c]
movzx eax, ax
mov word [ebp + esi*2 - 0xb18], ax
inc esi
cmp esi, 0x100
jb 0x909f121
lea ecx, [ebp - 0xb20]
mov byte [ebp - 4], 0
call fcn.09017177
lea ecx, [ebp - 0xb24]
mov dword [ebp - 4], 0xffffffff
call fcn.0901b295
mov esi, dword [ebp - 0xb2c]
lea eax, [esi + 8]
push eax
push 0x278
mov dword [ebp - 0xb2c], eax
call fcn.09024e61
add esp, 8
mov dword [ebp - 0xb28], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x909f1ca
push esi
mov ecx, eax
call fcn.09024e61
mov edx, eax
jmp 0x909f1cc
xor edx, edx
mov ecx, dword [ebx + 0xc]
xorps xmm0, xmm0
movsd xmm1, qword [ebx + 0x10]
mulsd xmm1, qword [0x90bee38]
mov eax, dword [ecx]
mov dword [edx + 0x68], eax
mov eax, dword [ecx + 4]
comisd xmm0, xmm1
mov dword [edx + 0x6c], eax
jbe 0x909f1fa
subsd xmm1, qword [0x90b4780]
jmp 0x909f202
addsd xmm1, qword [0x90b4780]
cvttsd2si eax, xmm1
lea edi, [edx + 0x72]
mov ecx, 0x80
lea esi, [ebp - 0xb18]
rep movsd dword es:[edi], dword [esi]
mov word [edx + 0x70], ax
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.09001f80
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x6250726f
call fcn.09024e61
int3
Function at 0x401200
Capabilities:
Delete file
Write file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
call fcn.004010e0
mov eax, dword [esp + 0x10]
push 0
push 0x80
push 2
push 0
push 0
add eax, 0xc
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 4], eax
je 0x40137e
push ebp
push esi
push edi
mov ecx, 0x8be
call fcn.0040c420
mov ebp, eax
mov ecx, 0x22f
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, 1
mov edx, 0x20
mov word [ebp + 2], ax
mov word [ebp + 4], ax
mov byte [ebp + 6], dl
mov byte [ebp + 7], dl
mov dword [ebp + 0xe], 0x8a8
mov dword [ebp + 0x12], 0x16
mov dword [ebp + 0x16], 0x28
mov dword [ebp + 0x1a], edx
mov dword [ebp + 0x1e], 0x40
mov word [ebp + 0x22], ax
mov word [ebp + 0x24], 8
mov dword [ebp + 0x2a], 0x400
mov eax, dword [0x432074]
mov ecx, 0xff
lea edi, [ebp + 0x42]
lea esi, [eax + 0x2c]
lea eax, [ebp + 0x43e]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebx]
mov ecx, 0x100
mov edi, eax
mov esi, dword [esi + 0x14]
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x400]
mov edi, 0x80
mov bl, byte [eax]
xor cl, cl
test bl, bl
jne 0x4012d7
mov cl, 0x80
mov bl, byte [eax + 1]
test bl, bl
jne 0x4012e1
or cl, 0x40
mov bl, byte [eax + 2]
test bl, bl
jne 0x4012ea
or cl, dl
mov bl, byte [eax + 3]
test bl, bl
jne 0x4012f4
or cl, 0x10
mov bl, byte [eax + 4]
test bl, bl
jne 0x4012fe
or cl, 8
mov bl, byte [eax + 5]
test bl, bl
jne 0x401308
or cl, 4
mov bl, byte [eax + 6]
test bl, bl
jne 0x401312
or cl, 2
mov bl, byte [eax + 7]
test bl, bl
jne 0x40131c
or cl, 1
add eax, 8
mov byte [esi], cl
inc esi
dec edi
jne 0x4012cd
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 0
push ecx
push 0x8be
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebp
call fcn.0040c490
pop edi
test esi, esi
pop esi
pop ebp
je 0x401370
cmp dword [esp + 8], 0x8be
jne 0x401370
lea ecx, [esp + 0x10]
call fcn.004064c0
mov al, 1
pop ebx
add esp, 8
ret 4
mov edx, dword [esp + 0x10]
add edx, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
call fcn.004064c0
xor al, al
pop ebx
add esp, 8
ret 4

Function at 0x401391
Capabilities:
Delete file

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x401411
lea ecx, [esp + 4]
call fcn.00406370
lea ecx, [esp + 4]
call fcn.00406a80
push ecx
lea edx, [esp + 8]
mov ecx, esp
push edx
call fcn.00401020
mov ecx, esi
call fcn.00401200
test al, al
je 0x401400
mov eax, dword [esp + 4]
mov ecx, dword [0x4321b0]
add eax, 0xc
push 0
push eax
push ecx
call dword [sym.imp.SHELL32.dll_ExtractIconA]
mov edx, dword [esi]
mov dword [edx + 8], eax
mov eax, dword [esi]
cmp dword [eax + 8], 1
jne 0x4013f2
mov dword [eax + 8], 0
mov eax, dword [esp + 4]
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 4]
call fcn.004064c0
mov ecx, dword [esi]
mov eax, dword [ecx + 8]
pop esi
pop ecx
ret
mov edx, dword [esi]
pop esi
mov eax, dword [edx + 8]
pop ecx
ret
Function at 0x406a80
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, 0x100
call fcn.0040c420
mov ecx, 0x200
mov esi, eax
call fcn.0040c420
mov edi, eax
push esi
mov byte [esi], 0
push 0xff
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edi
push 0
push 0x431170
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edx, edi
mov ecx, ebx
call fcn.004079a0
mov ecx, esi
call fcn.0040c490
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.0040c490

Function at 0x406b60
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
mov ecx, dword [eax]
dec ecx
mov dword [eax], ecx
jne 0x406b75
mov ecx, dword [edi]
call fcn.0040c490
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, eax
test esi, esi
jge 0x406b88
xor esi, esi
lea ecx, [esi + 0xd]
call fcn.0040c420
mov dword [edi], eax
mov dword [eax], 1
mov dword [eax + 4], esi
mov dword [eax + 8], 0xffffffff
mov byte [eax + esi + 0xc], 0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add eax, 0xc
inc ecx
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
pop edi
pop esi
pop ebx
ret 4

Function at 0x406bd0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
push ebx
push edi
mov edi, ecx
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x406c41
mov eax, dword [edi]
mov ecx, dword [eax]
dec ecx
mov dword [eax], ecx
jne 0x406bfa
mov ecx, dword [edi]
call fcn.0040c490
push esi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, eax
test esi, esi
jge 0x406c0a
xor esi, esi
lea ecx, [esi + 0xd]
call fcn.0040c420
mov dword [edi], eax
mov dword [eax], 1
mov dword [eax + 4], esi
mov dword [eax + 8], 0xffffffff
mov byte [eax + esi + 0xc], 0
mov eax, dword [edi]
mov edx, dword [eax + 4]
add eax, 0xc
inc edx
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
pop esi
pop edi
pop ebx
ret 8
mov ecx, edi
call fcn.00406800
pop edi
pop ebx
ret 8

Function at 0x406c80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebp
push esi
lea eax, [esp + 8]
push edi
push eax
mov ebp, ecx
push 0x104
mov byte [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
test esi, esi
jge 0x406caa
xor esi, esi
jmp 0x406cb7
cmp esi, 0x104
jle 0x406cb7
mov esi, 0x104
mov eax, dword [ebp]
mov ecx, dword [eax]
dec ecx
mov dword [eax], ecx
jne 0x406cc9
mov ecx, dword [ebp]
call fcn.0040c490
test esi, esi
mov edi, esi
jge 0x406cd1
xor edi, edi
lea ecx, [edi + 0xd]
call fcn.0040c420
mov dword [ebp], eax
mov dword [eax], 1
mov dword [eax + 4], edi
mov dword [eax + 8], 0xffffffff
mov ecx, esi
mov byte [eax + edi + 0xc], 0
mov edi, dword [ebp]
mov edx, ecx
lea esi, [esp + 0xc]
add edi, 0xc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
add esp, 0x104
ret
Function at 0x409eb0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
lea ecx, [esp + 4]
call fcn.004069a0
lea ecx, [esp + 4]
call fcn.004069f0
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 4]
test eax, eax
je 0x409ef8
cmp byte [eax + ecx + 0xb], 0x5c
jne 0x409ef8
dec eax
push 0x7fffffff
push eax
lea ecx, [esp + 0xc]
call fcn.00406930
lea ecx, [esp + 4]
call fcn.004069f0
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x409ecd
add ecx, 0xc
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x409f17
lea ecx, [esp + 4]
call fcn.004064c0
mov eax, 1
ret
mov eax, dword [esp + 4]
push esi
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x409f41
test al, 0x10
je 0x409f41
lea ecx, [esp + 8]
mov esi, 1
call fcn.004064c0
mov eax, esi
pop esi
ret
lea ecx, [esp + 8]
xor esi, esi
call fcn.004064c0
mov eax, esi
pop esi
ret

Function at 0x40ae60
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [0x43222c]
sub esp, 0x20
push ebx
mov bl, byte [esp + 0x28]
cmp bl, al
je 0x40af89
mov ecx, dword [0x432220]
lea eax, [esp + 4]
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
push eax
push ecx
mov byte [0x43222c], bl
call esi
mov eax, dword [0x432228]
lea edx, [esp + 0x18]
push edx
push eax
call esi
test bl, bl
je 0x40af30
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
sub ecx, esi
mov edx, dword [esp + 0x10]
add eax, ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
sub eax, ecx
push 1
push eax
mov eax, dword [esp + 0x10]
sub edx, eax
push edx
push ecx
push eax
mov eax, dword [0x432220]
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
push 0
push 0
push 0
mov esi, dword [0x432230]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call fcn.004147e0
mov ecx, dword [0x432228]
add esp, 0x2c
mov dword [0x432230], eax
push 0
push eax
push 0x30
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0x432228]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call fcn.00414b70
add esp, 4
jmp 0x40af79
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
sub eax, edx
add ecx, eax
push 0
mov dword [esp + 0x18], ecx
mov ecx, dword [0x432228]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
sub edx, eax
push 1
push edx
mov edx, dword [esp + 0x18]
sub edx, ecx
push edx
push eax
mov eax, dword [0x432220]
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [0x432180]
push ecx
call fcn.0040acd0
add esp, 4
pop esi
pop ebx
add esp, 0x20
ret

Function at 0x40af90
Capabilities:
Set console window title

Disassembly:
mov al, byte [0x4326e0]
test al, al
je 0x40afa8
mov eax, dword [0x4321f8]
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
ret