joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5af0d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5af291
sub esp, 0x34
lea eax, [0x667300]
mov dword [esp], eax
call fcn.0040bcc0
mov eax, dword [esp + 4]
mov dword [esp + 0x30], eax
xor ecx, ecx
xor edx, edx
xor ebx, ebx
jmp 0x5af10f
mov eax, edx
mov ecx, ebp
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x3c]
cmp ebp, ecx
jle 0x5af238
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0x48]
mov dword [esp], edx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x50]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x54]
mov dword [esp + 0xc], esi
call ecx
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0x48]
mov dword [esp], edx
mov ebx, dword [esp + 0x30]
mov dword [esp + 4], ebx
mov dword [esp + 8], 4
mov dword [esp + 0xc], 4
call ecx
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x48]
mov dword [esp], edx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
mov ebx, dword [esp + 0x28]
mov dword [esp + 0xc], ebx
call ecx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x28], edx
mov ebx, dword [esp + 0x44]
mov ebp, dword [ebx + 0x14]
mov esi, dword [esp + 0x48]
mov dword [esp], esi
call ebp
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x20]
xor esi, esi
jmp 0x5af263
mov edx, dword [esp + 0x30]
movzx esi, byte [edx + 3]
lea edi, [esi + 1]
xchg edi, eax
mov byte [edx + 3], al
xchg edi, eax
xchg esi, eax
cmp al, 0xff
xchg esi, eax
jne 0x5af107
movzx esi, byte [edx + 2]
lea edi, [esi + 1]
xchg edi, eax
mov byte [edx + 2], al
xchg edi, eax
xchg esi, eax
cmp al, 0xff
xchg esi, eax
jne 0x5af107
movzx esi, byte [edx + 1]
lea edi, [esi + 1]
xchg edi, eax
mov byte [edx + 1], al
xchg edi, eax
xchg esi, eax
cmp al, 0xff
xchg esi, eax
jne 0x5af107
movzx esi, byte [edx]
inc esi
xchg esi, eax
mov byte [edx], al
xchg esi, eax
jmp 0x5af107
add esp, 0x34
ret
xchg edi, eax
mov byte [esp + 0x1f], al
xchg edi, eax
movzx edi, byte [ebx + esi]
xchg edi, eax
mov byte [esp + 0x1e], al
xchg edi, eax
movzx edi, byte [esp + 0x1f]
movzx ebx, byte [esp + 0x1e]
xor edi, ebx
xchg edi, eax
mov byte [ecx + ebp], al
xchg edi, eax
inc esi
inc ebp
mov ebx, dword [esp + 0x2c]
cmp esi, edx
jge 0x5af1e2
cmp eax, ebp
jle 0x5af1e2
jbe 0x5af287
movzx edi, byte [ebp + ecx]
cmp esi, edx
jb 0x5af23c
mov eax, esi
mov ecx, edx
call fcn.00463b30
mov ecx, eax
mov eax, ebp
call fcn.00463b30
nop
call fcn.004626a0
jmp fcn.005af0d0
Function at 0x5b2030
Capabilities:
Parse credit card information

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5b21a3
movzx eax, byte [esp + 4]
lea ecx, [eax - 0x61]
cmp cl, 0x19
jbe 0x5b2063
lea ecx, [eax - 0x41]
cmp cl, 0x19
jbe 0x5b2063
lea ecx, [eax - 0x30]
cmp cl, 9
ja 0x5b2069
mov byte [esp + 0xc], 0
ret
mov ecx, dword [esp + 8]
cmp ecx, 3
je 0x5b2077
cmp ecx, 4
jne 0x5b20a8
cmp al, 0x2c
ja 0x5b2090
lea edx, [eax - 0x21]
cmp dl, 1
jbe 0x5b20a2
cmp al, 0x24
je 0x5b20a2
cmp al, 0x26
jae 0x5b20a2
jmp 0x5b20a8
lea edx, [eax - 0x3a]
cmp dl, 4
jbe 0x5b20a2
cmp al, 0x5b
je 0x5b20a2
cmp al, 0x5d
jne 0x5b20a8
mov byte [esp + 0xc], 0
ret
cmp al, 0x2f
ja 0x5b20df
cmp al, 0x26
ja 0x5b20c1
cmp al, 0x24
je 0x5b20fe
cmp al, 0x26
je 0x5b20fe
jmp 0x5b2185
lea edx, [eax - 0x2b]
cmp dl, 1
jbe 0x5b20fe
lea edx, [eax - 0x2d]
cmp dl, 1
jbe 0x5b217f
cmp al, 0x2f
je 0x5b20fe
jmp 0x5b2185
cmp al, 0x3d
ja 0x5b20f6
lea edx, [eax - 0x3a]
cmp dl, 1
jbe 0x5b20fe
cmp al, 0x3d
je 0x5b20fe
jmp 0x5b2185
lea edx, [eax - 0x3f]
cmp dl, 1
ja 0x5b2175
cmp ecx, 2
jg 0x5b2139
cmp ecx, 1
je 0x5b212e
cmp ecx, 2
jne 0x5b2185
cmp al, 0x2f
je 0x5b211c
cmp al, 0x3b
je 0x5b211c
cmp al, 0x2c
jne 0x5b2123
mov eax, 1
jmp 0x5b2129
cmp al, 0x3f
sete al
mov byte [esp + 0xc], al
ret
cmp al, 0x3f
sete al
mov byte [esp + 0xc], al
ret
cmp ecx, 5
jne 0x5b215f
cmp al, 0x40
je 0x5b214d
cmp al, 0x2f
je 0x5b214d
cmp al, 0x3f
jne 0x5b2154
mov eax, 1
jmp 0x5b215a
cmp al, 0x3a
sete al
mov byte [esp + 0xc], al
ret
cmp ecx, 6
je 0x5b216f
cmp ecx, 7
jne 0x5b2185
mov byte [esp + 0xc], 0
ret
mov byte [esp + 0xc], 1
ret
cmp al, 0x5f
je 0x5b217f
cmp al, 0x7e
jne 0x5b2185
mov byte [esp + 0xc], 0
ret
cmp ecx, 7
jne 0x5b219d
cmp al, 0x21
je 0x5b2197
add eax, 0xffffffd8
cmp al, 2
ja 0x5b219d
mov byte [esp + 0xc], 0
ret
mov byte [esp + 0xc], 1
ret
call fcn.004626a0
jmp fcn.005b2030
Function at 0x5b9dc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5b9f12
sub esp, 0x28
lea eax, [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], eax
mov byte [esp + 8], 0x30
call fcn.005a3790
movzx eax, byte [esp + 0xc]
test al, al
jne 0x5b9e2a
lea eax, [0x676c40]
mov dword [esp], eax
call fcn.0040bcc0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x27
lea ecx, [0x6b7f23]
mov dword [eax], ecx
lea ecx, [0x7105e8]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
add esp, 0x28
ret
mov eax, dword [esp + 0x30]
test eax, eax
je 0x5b9efe
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov byte [esp + 0x1b], 0
lea eax, [esp + 0x2c]
mov dword [esp], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 4], ecx
lea ecx, [esp + 0x1b]
mov dword [esp + 8], ecx
mov byte [esp + 0xc], 1
call fcn.005a3e70
movzx eax, byte [esp + 0x10]
test al, al
je 0x5b9ecb
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
movzx ecx, byte [esp + 0x1b]
xor ecx, 0xffffff80
movzx ecx, cl
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test eax, eax
je 0x5b9e2a
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ebx
add esp, 0x28
ret
lea eax, [0x676c40]
mov dword [esp], eax
call fcn.0040bcc0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x26
lea ecx, [0x6b7b07]
mov dword [eax], ecx
lea ecx, [0x7105e8]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
add esp, 0x28
ret
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
add esp, 0x28
ret
call fcn.004626a0
jmp fcn.005b9dc0
Function at 0x5c51a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5c53cf
sub esp, 0x6c
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], 0
lea edi, [esp + 0x40]
xor eax, eax
call fcn.00463d45
lea ecx, [0x5c53e0]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x80]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x94]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x58], ecx
lea edx, [esp + 0x28]
mov dword [esp + 0x5c], edx
lea edx, [esp + 0x1c]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x64], edx
lea ebx, [esp + 0x88]
mov dword [esp + 0x68], ebx
mov ebx, dword [edx + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.005b72e0
mov ecx, dword [esp + 8]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x18], edx
xor eax, eax
jmp 0x5c52c5
mov dword [esp + 0x14], eax
mov ebx, dword [ecx + eax*4]
mov ebp, dword [esp + 0x40]
mov dword [esp], 2
mov dword [esp + 4], ebx
lea edx, [esp + 0x40]
call ebp
mov eax, dword [esp + 0x14]
inc eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
cmp eax, edx
jl 0x5c529c
mov eax, dword [esp + 0x84]
mov eax, dword [eax + 8]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
call fcn.005b72e0
mov eax, dword [esp + 8]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x18], ecx
xor edx, edx
jmp 0x5c5322
mov dword [esp + 0x14], edx
mov ecx, dword [eax + edx*4]
mov ebx, dword [esp + 0x40]
mov dword [esp], 1
mov dword [esp + 4], ecx
lea edx, [esp + 0x40]
call ebx
mov eax, dword [esp + 0x14]
lea edx, [eax + 1]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
cmp edx, ecx
jl 0x5c52f7
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x5c5347
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov eax, dword [esp + 0x8c]
test eax, eax
jne 0x5c53cb
mov eax, dword [esp + 0x94]
test eax, eax
jne 0x5c53cb
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x70]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
lea eax, [0x68be20]
mov dword [esp], eax
lea eax, [esp + 0x30]
mov dword [esp + 4], eax
call fcn.004093b0
mov eax, dword [esp + 8]
lea ecx, [0x710a70]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x6c
ret
call fcn.004626a0
jmp fcn.005c51a0
Function at 0x40e300
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5191a6
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0x56c36c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x37c], ebx
mov dword [ebp - 0x364], ebx
mov dword [ebp - 0x380], ebx
mov dword [ebx], 0
xor edi, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x36c], edi
mov dword [ebp - 0x368], edi
lea esi, [ebp - 0x218]
mov byte [ebp - 4], 1
mov eax, esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, 0x104
jbe 0x40e420
xor ebx, ebx
add eax, 0xa
mov dword [ebp - 0x364], eax
mov byte [ebp - 4], 2
mov esi, ebx
je 0x40e400
test ebx, ebx
je 0x40e39f
cmp eax, dword [ebp - 0x368]
jle 0x40e400
push eax
call fcn.004075b0
xor ecx, ecx
mov dword [ebp - 0x368], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047fc8b
add esp, 8
mov esi, eax
test ebx, ebx
je 0x40e3ed
mov ebx, dword [ebp - 0x368]
lea eax, [ebx - 1]
push eax
push edi
push esi
call fcn.0049ff41
xor eax, eax
push edi
mov word [esi + ebx*2 - 2], ax
call fcn.0047f232
add esp, 0x10
jmp 0x40e3f2
xor eax, eax
mov word [esi], ax
mov eax, dword [ebp - 0x364]
mov edi, esi
mov dword [ebp - 0x36c], edi
push edi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, esi
cmp eax, dword [ebp - 0x364]
ja 0x40e382
mov ebx, dword [ebp - 0x37c]
test eax, eax
je 0x40e4bc
push 1
push 0xffffffffffffffff
push 0xfde9
push esi
lea ecx, [ebp - 0x378]
call fcn.00411420
mov esi, dword [ebp - 0x374]
push dword [ebx]
mov dword [ebp - 0x374], 0
mov dword [ebp - 0x378], 0
call fcn.0047f232
add esp, 4
mov dword [ebx], esi
cmp byte [ebp - 0x370], 0
mov eax, dword [ebp - 0x374]
mov byte [ebp - 4], 3
je 0x40e48f
test eax, eax
je 0x40e48f
push dword [ebp - 0x378]
push eax
call fcn.00408000
mov eax, dword [ebp - 0x374]
add esp, 8
push eax
call fcn.0047f232
push edi
call fcn.0047f232
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047f941
mov esp, ebp
pop ebp
ret
call fcn.0049cfff
lea ecx, [ebp - 0x360]
push dword [eax]
push str.GetCurrentDirectory
call fcn.00402910
push 0x558100
lea eax, [ebp - 0x360]
push eax
call fcn.00480e30
int3
Function at 0x40f0c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519370
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
mov eax, dword [0x56c36c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0xffffffffffffffff
push 0xfde9
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x10], 0
call fcn.0042a7b0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
cmp byte [ebp - 0x10], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0
je 0x40f141
test ecx, ecx
je 0x40f141
mov eax, dword [ebp - 0x18]
add eax, eax
push eax
push ecx
call fcn.00408000
mov ecx, dword [ebp - 0x14]
add esp, 8
push ecx
call fcn.0047f232
add esp, 4
test bl, bl
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f160
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519398
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x56c36c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
mov eax, dword [eax + 4]
cmp esi, eax
mov dword [ebp + 0xc], eax
je 0x40f2d3
mov ebx, dword [ebp + 0x10]
mov edx, dword [esi]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
cmp byte [edx], 0
je 0x40f1e2
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f1b8
sub eax, edi
mov al, byte [eax + edx - 1]
cmp al, 0x5c
je 0x40f1cd
cmp al, 0x2f
jne 0x40f1e2
push ebx
push edx
lea eax, [ebp - 0x14]
push 0x529908
push eax
call fcn.00407700
add esp, 0x10
jmp 0x40f1f7
push ebx
push 0x5c
push edx
lea eax, [ebp - 0x14]
push str._s_c_s
push eax
call fcn.00407700
add esp, 0x14
mov edi, dword [ebp - 0x14]
push 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.0047f232
push dword [ebp - 0x14]
call fcn.0047f232
add esp, 8
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
push 1
push 0xffffffffffffffff
push 0xfde9
push edi
call fcn.0042a7b0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
cmp byte [ebp - 0x18], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], 1
je 0x40f27a
test ecx, ecx
je 0x40f27a
mov eax, dword [ebp - 0x20]
add eax, eax
push eax
push ecx
call fcn.00408000
mov ecx, dword [ebp - 0x1c]
add esp, 8
push ecx
call fcn.0047f232
add esp, 4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
test bl, bl
jne 0x40f2b0
push edi
call fcn.0047f232
add esi, 4
add esp, 4
cmp esi, dword [ebp + 0xc]
jmp 0x40f195
mov esi, dword [ebp + 8]
push 0
mov dword [esi], edi
call fcn.0047f232
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f2f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5193cb
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x56c36c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x27c]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push 1
push 0x52c48c
push eax
mov dword [ebp - 0x290], esi
mov dword [ebp - 4], 0
call fcn.0042a330
mov byte [ebp - 4], 1
nop
lea ecx, [ebp - 0x27c]
call fcn.0042a520
test eax, eax
je 0x40f4b2
push dword [ebp - 0x1c]
call fcn.00410830
add esp, 4
test al, al
je 0x40f3bd
push edi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x28c]
push eax
call fcn.0040f2f0
mov ecx, dword [ebp - 0x28c]
add esp, 0xc
push 0
test ecx, ecx
je 0x40f3b5
mov dword [ebp - 0x28c], 0
mov dword [esi], ecx
call fcn.0047f232
add esp, 4
lea ecx, [ebp - 0x27c]
call fcn.0042a4d0
jmp 0x40f4d1
call fcn.0047f232
add esp, 4
mov eax, dword [ebp - 0x18]
test edi, edi
je 0x40f3f7
test eax, eax
je 0x40f350
mov ecx, edi
nop word [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x40f3f0
test dl, dl
je 0x40f3ec
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x40f3f0
add ecx, 2
add eax, 2
test dl, dl
jne 0x40f3d0
xor eax, eax
jmp 0x40f3fb
sbb eax, eax
or eax, 1
jmp 0x40f3fb
neg eax
sbb eax, eax
test eax, eax
jne 0x40f350
push 1
push 0xffffffffffffffff
push 0xfde9
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x284], eax
mov byte [ebp - 0x280], al
call fcn.0042a7b0
push dword [ebp - 0x284]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
cmp byte [ebp - 0x280], 0
mov ecx, dword [ebp - 0x284]
mov byte [ebp - 4], 2
je 0x40f46d
test ecx, ecx
je 0x40f46d
mov eax, dword [ebp - 0x288]
add eax, eax
push eax
push ecx
call fcn.00408000
mov ecx, dword [ebp - 0x284]
add esp, 8
push ecx
call fcn.0047f232
add esp, 4
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 0
mov byte [ebp - 4], 1
test bl, bl
je 0x40f350
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call fcn.00407040
add esp, 8
mov dword [esi], eax
lea ecx, [ebp - 0x27c]
call fcn.0042a4d0
jmp 0x40f4d1
lea ecx, [ebp - 0x27c]
call fcn.0042a4d0
jmp 0x40f4cb
mov dword [esi], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047f941
mov esp, ebp
pop ebp
ret
Function at 0x4100c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x56c36c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push esi
push dword [ebp + 0x10]
push 1
push eax
call fcn.0049f336
add esp, 0x10
test eax, eax
jle 0x4100fc
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0047f941
mov esp, ebp
pop ebp
ret
push esi
call fcn.0049f088
add esp, 4
test eax, eax
jne 0x41012e
lea eax, [ebp - 0x14c]
push str.reading_from_file_failed
push eax
call fcn.00406390
add esp, 8
lea eax, [ebp - 0x14c]
push 0x5596cc
push eax
call fcn.00480e30
push str.End_of_file
lea ecx, [ebp - 0x148]
call fcn.0040e560
push 0x559694
lea eax, [ebp - 0x148]
push eax
call fcn.00480e30
int3

Function at 0x4101b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519590
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
mov eax, dword [0x56c36c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0xffffffffffffffff
push 0xfde9
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x10], 0
call fcn.0042a7b0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
cmp byte [ebp - 0x10], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0
je 0x410230
test ecx, ecx
je 0x410230
mov eax, dword [ebp - 0x18]
add eax, eax
push eax
push ecx
call fcn.00408000
mov ecx, dword [ebp - 0x14]
add esp, 8
push ecx
call fcn.0047f232
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4102c0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5195b0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x56c36c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test edi, edi
jle 0x41049d
dec edi
test edi, edi
jle 0x41045a
lea eax, [edi + 1]
push eax
push ecx
push ebx
lea eax, [ebp - 0x1c]
push str._s_s_d
push eax
call fcn.00402670
push edi
mov esi, dword [eax]
mov eax, dword [ebp + 0xc]
push eax
push ebx
lea eax, [ebp - 0x14]
push str._s_s_d
push eax
call fcn.00402670
add esp, 0x28
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x28], 0
mov ebx, dword [eax]
push 1
push 0xffffffffffffffff
push 0xfde9
push esi
call fcn.0042a7b0
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x410386
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x410386
cmp byte [ebp - 0x28], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0
je 0x41041a
jmp 0x410404
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
push 1
push 0xffffffffffffffff
push 0xfde9
push ebx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x34], 0
call fcn.0042a7b0
push esi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp byte [ebp - 0x34], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 4], 1
je 0x4103dd
test ecx, ecx
je 0x4103dd
mov eax, dword [ebp - 0x3c]
add eax, eax
push eax
push ecx
call fcn.00408000
mov ecx, dword [ebp - 0x38]
add esp, 8
push ecx
call fcn.0047f232
add esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
cmp byte [ebp - 0x28], 0
mov dword [ebp - 4], 2
je 0x410417
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x41041a
mov eax, dword [ebp - 0x30]
add eax, eax
push eax
push ecx
call fcn.00408000
add esp, 8
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0047f232
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
push dword [ebp - 0x14]
call fcn.0047f232
push dword [ebp - 0x1c]
call fcn.0047f232
mov ebx, dword [ebp + 8]
dec edi
mov ecx, dword [ebp + 0xc]
add esp, 8
test edi, edi
jg 0x410302
push ecx
push ebx
lea eax, [ebp - 0x14]
push str._s_s1
push eax
call fcn.00402670
mov esi, dword [eax]
mov eax, dword [ebp + 0xc]
push eax
push ebx
lea eax, [ebp - 0x1c]
push 0x529908
push eax
call fcn.00402670
push esi
push dword [eax]
call fcn.004104e0
push dword [ebp - 0x1c]
call fcn.0047f232
push dword [ebp - 0x14]
call fcn.0047f232
mov ecx, dword [ebp + 0xc]
add esp, 0x30
push ecx
push ebx
lea eax, [ebp - 0x24]
push 0x529908
push eax
call fcn.00402670
push dword [eax]
push ebx
call fcn.004104e0
push dword [ebp - 0x24]
mov bl, al
call fcn.0047f232
add esp, 0x1c
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret