joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c15c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6c
call fcn.1007c5e0
mov eax, dword [0x10111770]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push ebx
mov dword [esp + 4], eax
xor ebx, ebx
mov eax, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov dword [esp + 0x14], eax
xor esi, esi
mov dword [eax], ebx
lea eax, [esp + 0x1c]
push edi
mov edi, dword [esp + 0x8c]
push eax
call fcn.10091c60
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.10091ac0
add esp, 0xc
test eax, eax
je 0x100c16c2
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.100917c0
add esp, 0xc
test eax, eax
je 0x100c16c2
lea eax, [esp + 0x20]
push eax
call fcn.10091a00
mov esi, dword [ebp]
add esp, 4
test byte [esi + 0xc], 4
je 0x100c16e0
push edi
call fcn.1009c7c0
push ebx
push edi
mov dword [esp + 0x28], eax
call fcn.100968a0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x100c16c2
push esi
call fcn.100b1aa0
add esp, 4
test eax, eax
jle 0x100c16c2
push dword [ebp]
push ebx
push 1
push 0xf8
push 0xffffffffffffffff
push esi
call fcn.10096640
add esp, 0x18
test eax, eax
jle 0x100c16c2
push dword [esp + 0x14]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
push esi
call fcn.100b19b0
add esp, 0x14
test eax, eax
jle 0x100c16c2
mov ecx, dword [esp + 0x18]
mov ebx, 1
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
push esi
call fcn.10096830
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.1005f2f1
add esp, 0x6c
ret
xor eax, eax
lea ecx, [esi + 0x2c]
mov edx, dword [ecx]
test edx, edx
je 0x100c16f8
cmp dword [edi], edx
je 0x100c1722
inc eax
add ecx, 4
cmp eax, 4
jl 0x100c16e5
push 0x7b
push str..cryptoevpp_sign.c
push 0x6e
push 0x6b
push 6
call fcn.10085030
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.1005f2f1
add esp, 0x6c
ret
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x100c1756
push 0x80
push str..cryptoevpp_sign.c
push 0x68
push 0x6b
push 6
call fcn.10085030
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.1005f2f1
add esp, 0x6c
ret
push dword [edi + 0x14]
mov ecx, dword [esp + 0x1c]
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x44]
push dword [esp + 0x20]
push ecx
push dword [esi]
call eax
mov ecx, dword [esp + 0x90]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005f2f1
add esp, 0x6c
ret
Function at 0x100cb7a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x30
call fcn.1007c5e0
mov eax, dword [0x10111770]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
push ebx
push ebp
movzx ebx, byte [eax]
push esi
push edi
lea edi, [eax + 1]
mov ebp, dword [esp + 0x60]
mov edx, edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x24], edi
mov esi, dword [ebp]
movzx eax, byte [edx]
shl eax, 8
or ebx, eax
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 1]
shl eax, 0x10
or ebx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ecx, eax
mov dword [esp + 0x18], ebx
movzx eax, byte [edx + 5]
mov dword [esp + 0x34], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [esp + 0x34]
shl ecx, 8
or ecx, eax
mov byte [esp + 0x34], bl
mov eax, ebx
shl ecx, 0x10
shr eax, 8
or edx, ecx
mov byte [esp + 0x35], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x36], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x37], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x39], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x3a], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x3b], al
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x38], dl
test eax, eax
je 0x100cb97d
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x44]
sub ecx, ebp
mov dword [esp + 0x10], ecx
xor edi, edi
lea ebx, [ebx]
dec eax
mov dword [esp + 0x4c], eax
test esi, esi
jne 0x100cb90d
push dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push dword [esp + 0x24]
push dword [esp + 0x30]
push eax
call fcn.100056e0
mov ebx, dword [esp + 0x28]
add esp, 0x10
mov edx, dword [esp + 0x1c]
mov eax, ebx
shr eax, 8
mov byte [esp + 0x35], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x36], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x37], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x39], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x3a], al
mov eax, edx
shr eax, 0x18
inc edi
mov byte [esp + 0x34], bl
mov byte [esp + 0x38], dl
mov byte [esp + 0x3b], al
mov al, byte [esp + esi + 0x34]
inc esi
xor al, byte [ebp]
and esi, 7
mov byte [ecx + ebp], al
inc ebp
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x100cb8a0
test edi, edi
mov edi, dword [esp + 0x24]
je 0x100cb964
mov eax, dword [esp + 0x30]
mov byte [eax], bl
mov eax, ebx
shr eax, 8
mov byte [edi], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 1], al
mov eax, edx
shr ebx, 0x18
mov byte [edi + 2], bl
shr eax, 8
mov byte [edi + 3], dl
mov byte [edi + 4], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [edi + 5], al
mov byte [edi + 6], dl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1005f2f1
add esp, 0x30
ret
mov ecx, dword [esp + 0x3c]
pop edi
mov dword [ebp], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005f2f1
add esp, 0x30
ret
Function at 0x100d07c0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov eax, dword [ebp + 4]
cmp eax, dword [ecx + 4]
jge 0x100d07d7
mov ebx, ecx
jmp 0x100d07db
mov ebx, ebp
mov ebp, ecx
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + 4]
cmp eax, dword [edi + 8]
jg 0x100d07eb
mov eax, edi
jmp 0x100d07f5
push eax
push edi
call fcn.1008bfd0
add esp, 8
test eax, eax
jne 0x100d07fd
pop edi
pop ebp
pop ebx
ret
push esi
xor esi, esi
cmp dword [ebp + 4], esi
jle 0x100d081b
mov eax, dword [ebx]
mov ecx, dword [ebp]
mov edx, dword [eax + esi*4]
mov eax, dword [edi]
xor edx, dword [ecx + esi*4]
mov dword [eax + esi*4], edx
inc esi
cmp esi, dword [ebp + 4]
jl 0x100d0805
cmp esi, dword [ebx + 4]
jge 0x100d0830
mov eax, dword [ebx]
mov ecx, dword [edi]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebx + 4]
jl 0x100d0820
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
pop esi
test ecx, ecx
jle 0x100d0854
mov edx, dword [edi]
add edx, 0xfffffffc
lea edx, [edx + ecx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x100d0851
dec ecx
test ecx, ecx
jg 0x100d0843
mov dword [edi + 4], ecx
cmp dword [edi + 4], 0
jne 0x100d0861
mov dword [edi + 0xc], 0
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x100d17f0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push ebp
xor edi, edi
call fcn.100acaf0
push ebp
call fcn.100aca10
mov esi, eax
add esp, 8
test esi, esi
je 0x100d19f9
push ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 4]
add eax, eax
cmp eax, dword [esi + 8]
jg 0x100d1825
mov eax, esi
jmp 0x100d182f
push eax
push esi
call fcn.1008bfd0
add esp, 8
test eax, eax
je 0x100d19f8
mov ebp, dword [ebx + 4]
dec ebp
js 0x100d19a8
mov eax, dword [ebx]
mov edx, dword [eax + ebp*4]
mov ecx, edx
shr ecx, 1
mov eax, edx
and eax, 0x20000
and ecx, 0x8000
or ecx, eax
mov eax, edx
and eax, 0x40000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x80000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x100000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x200000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x400000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x800000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x1000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x2000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x4000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x8000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x10000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x20000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x40000000
shr ecx, 1
or ecx, eax
and edx, reloc.WS2_32.dll_accept
mov eax, dword [esi]
shr ecx, 1
or ecx, edx
shr ecx, 1
mov dword [eax + ebp*8 + 4], ecx
mov eax, dword [ebx]
mov ecx, dword [eax + ebp*4]
mov edx, ecx
and edx, 0x8000
mov eax, ecx
add edx, edx
and eax, 0x4000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x2000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x1000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x800
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x400
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x200
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x100
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x80
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x40
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x20
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x10
or edx, eax
mov eax, ecx
add edx, edx
and eax, 8
or edx, eax
mov eax, ecx
add edx, edx
and eax, 4
or edx, eax
mov eax, ecx
add edx, edx
and eax, 2
or edx, eax
and ecx, 1
mov eax, dword [esi]
add edx, edx
or edx, ecx
mov dword [eax + ebp*8], edx
dec ebp
jns 0x100d1841
mov eax, dword [ebx + 4]
add eax, eax
mov dword [esi + 4], eax
test eax, eax
jle 0x100d19d1
mov ecx, dword [esi]
lea edx, [eax - 1]
lea edx, [ecx + edx*4]
lea esp, [esp]
mov ecx, dword [edx]
lea edx, [edx - 4]
test ecx, ecx
jne 0x100d19ce
dec eax
test eax, eax
jg 0x100d19c0
mov dword [esi + 4], eax
cmp dword [esi + 4], edi
jne 0x100d19d9
mov dword [esi + 0xc], edi
push dword [esp + 0x1c]
push esi
push dword [esp + 0x1c]
call fcn.100d0900
mov ebp, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
mov ecx, 1
cmovne edi, ecx
pop ebx
push ebp
call fcn.100ac9a0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x100d41d0
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
test esi, esi
jle 0x100d42bc
push edi
mov edi, dword [esp + 0x14]
inc edi
lea ebx, [ebx]
movzx edx, byte [edi - 1]
cmp esi, 3
jl 0x100d424e
movzx ecx, byte [edi]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + 0x10101fa8]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x10101fa8]
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + 0x10101fa8]
mov byte [eax + 2], cl
movzx ecx, byte [edx + 0x10101fa8]
mov byte [eax + 3], cl
jmp 0x100d429f
shl edx, 0x10
cmp esi, 2
jne 0x100d425e
movzx ecx, byte [edi]
shl ecx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + 0x10101fa8]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x10101fa8]
mov byte [eax + 1], cl
cmp esi, 1
jne 0x100d428b
lea ecx, [esi + 0x3c]
jmp 0x100d4298
shr edx, 6
and edx, 0x3f
movzx ecx, byte [edx + 0x10101fa8]
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
sub esi, 3
add eax, 4
add ebx, 4
add edi, 3
test esi, esi
jg 0x100d41f0
pop edi
mov byte [eax], 0
mov eax, ebx
pop esi
pop ebx
ret
mov byte [eax], bl
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x401814
Capabilities:
Delete directory
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc], 0x8004ffff
lea ebx, [esi + 0x10]
je 0x40185d
xor edi, edi
cmp dword [esi + 0x14], edi
je 0x401842
push edi
mov ecx, ebx
call fcn.00402570
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, dword [esi + 0x14]
jne 0x40182c
mov ecx, ebx
call fcn.00402595
lea edi, [esi + 0x1c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, edi
call fcn.0040285f
jmp 0x401860
lea edi, [esi + 0x1c]
lea ecx, [esi + 0x20]
call fcn.00402b5c
mov ecx, edi
call fcn.00402b5c
mov ecx, ebx
call fcn.00402595
lea ecx, [esi + 8]
call fcn.00402b5c
pop edi
lea ecx, [esi + 4]
pop esi
pop ebx
jmp fcn.00402b5c

Function at 0x401c75
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401ca3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401ca3
xor al, al
jmp 0x401d18
lea ecx, [ebp + 8]
call fcn.004027fc
or dword [ebp - 8], 0xffffffff
lea eax, [ebp + 8]
push 0x104
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.00402823
push eax
push ebx
push 0x41d010
push dword [edi]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.0040254a
test edi, edi
je 0x401d0e
cmp edi, 0x6f
je 0x401d0e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x401d0e
mov ecx, dword [ebp - 4]
lea eax, [ebp + 8]
push eax
add ecx, 0x1c
call fcn.004026ec
mov bl, 1
lea ecx, [ebp + 8]
call fcn.00402b5c
mov al, bl
pop edi
pop ebx
leave
ret 4

Function at 0x401d1e
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
mov edi, ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x401d38
xor al, al
jmp 0x401deb
push ebx
push esi
lea ecx, [ebp - 8]
call fcn.004027fc
or dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 8]
push 0x104
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.00402823
push eax
xor ebx, ebx
mov dword [ebp - 0x10], eax
push ebx
push ebx
push 0x8026
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.0040254a
test esi, esi
js 0x401ddf
push dword [ebp - 8]
lea ecx, [ebp - 4]
call fcn.0040279d
push 0x41ced0
lea ecx, [ebp - 4]
call fcn.004024f1
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401dad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401dd7
push str.Temp
lea ecx, [ebp - 4]
call fcn.004024f1
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.00401c75
test al, al
je 0x401dd7
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x20]
call fcn.004026ec
mov bl, 1
lea ecx, [ebp - 4]
call fcn.00402b5c
lea ecx, [ebp - 8]
call fcn.00402b5c
pop esi
mov al, bl
pop ebx
pop edi
leave
ret
Function at 0x401e65
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x41f018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
mov edi, ecx
or esi, 0xffffffff
call fcn.00405c40
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x41d024
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x401f62
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call fcn.0040279d
lea eax, [ebp - 0x214]
push eax
lea ecx, [edi + 0x10]
call fcn.004025ce
lea ecx, [ebp - 0x214]
call fcn.00402b5c
push 0x41cecc
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x401f62
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401f62
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401f62
xor eax, eax
push eax
push eax
push 4
push eax
push eax
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401f62
push esi
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov ecx, edi
call fcn.004021aa
pop ecx
test eax, eax
jne 0x401f58
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x401f62
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405814
leave
ret
Function at 0x4021aa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x41f018]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x98], eax
push edi
mov edi, ecx
cmp esi, 0xd
jae 0x4021da
or eax, 0xffffffff
jmp 0x402380
lea eax, [ebp - 0x90]
mov dword [ebp - 0x90], 0x40218e
push eax
xor ebx, ebx
mov dword [ebp - 0x8c], 0x40219c
push ecx
mov edx, edi
mov dword [ebp - 0x68], ebx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x6c], ebx
call fcn.00404ac5
mov ecx, dword [edi + 5]
xor eax, eax
inc eax
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x30], eax
sub esi, 0xd
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 9]
add edi, 0xd
push ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x84], esi
call fcn.004152e8
add esp, 0xc
mov dword [ebp - 0x88], ebx
mov esi, eax
lea eax, [ebp - 0x88]
mov edx, esi
mov dword [ebp - 0xa0], esi
push eax
push ecx
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x80]
push edi
push eax
lea ecx, [ebp - 0x7c]
call fcn.00404967
mov ecx, dword [ebp - 0x8c]
add esp, 0x14
mov edi, eax
push dword [ebp - 0x6c]
cmp ecx, 0x40219c
jne 0x40228d
call fcn.004150fe
jmp 0x402297
lea eax, [ebp - 0x90]
push eax
call ecx
pop ecx
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x6c], ebx
pop ecx
push dword [ebp - 0x68]
cmp eax, 0x40219c
jne 0x4022b2
call fcn.004150fe
jmp 0x4022bc
lea ecx, [ebp - 0x90]
push ecx
call eax
pop ecx
mov dword [ebp - 0x68], ebx
pop ecx
test edi, edi
je 0x4022cc
or esi, 0xffffffff
jmp 0x402372
mov edx, dword [esi]
lea ecx, [esi + 4]
mov eax, dword [ecx]
push 4
mov dword [ebp - 0x94], eax
pop eax
add ecx, eax
mov dword [ebp - 0x84], edx
push edx
mov ebx, dword [ecx]
add ecx, eax
mov edi, dword [ecx]
add ecx, eax
mov esi, dword [ecx]
add ecx, eax
mov dword [ebp - 0x80], ecx
call fcn.004152e8
pop ecx
push dword [ebp - 0x84]
mov ecx, dword [ebp - 0x94]
mov edx, ecx
push eax
push esi
mov dword [ebp - 0x88], eax
lea esi, [edi + ebx]
mov eax, dword [ebp - 0x80]
add esi, ecx
add esi, eax
push esi
lea esi, [ebx + ecx]
push edi
add esi, eax
add eax, ecx
mov ecx, dword [ebp - 0x80]
push esi
push ebx
push eax
call fcn.00404b3b
mov edi, dword [ebp - 0x88]
add esp, 0x20
xor esi, esi
test eax, eax
je 0x402340
inc esi
jmp 0x40236b
mov ebx, dword [ebp - 0x84]
lea eax, [ebp - 0x9c]
push esi
push eax
push ebx
push edi
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402368
cmp dword [ebp - 0x9c], ebx
je 0x40236b
or esi, 0xffffffff
push edi
call fcn.004150fe
pop ecx
push dword [ebp - 0xa0]
call fcn.004150fe
pop ecx
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405814
leave
ret
Function at 0x402ef4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.00402f8c
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x402f84
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x402f7d
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x402f74
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x402f74
mov ecx, dword [ebp - 0x10]
mov al, 1
mov dword [esi + 0x10], ecx
jmp 0x402f86
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00402f8c
xor al, al
pop edi
pop esi
leave
ret 4

Function at 0x402fca
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x10], edi
je 0x402fed
push edi
lea ecx, [esi + 0xc]
call fcn.00402570
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, dword [esi + 0x10]
jne 0x402fd6
lea ecx, [esi + 0xc]
call fcn.00402595
pop edi
mov ecx, esi
pop esi
pop ebx
jmp fcn.00402b5c
Function at 0x402fff
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40228
call fcn.00414e30
mov eax, dword [0x41f018]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40218]
xor ebx, ebx
mov dword [ebp - 0x40214], 1
push ebx
push eax
mov esi, ecx
lea eax, [ebp - 0x4020c]
push 0x200
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403212
cmp dword [ebp - 0x40218], 0x200
jne 0x403212
push 4
lea eax, [ebp - 0x4010b]
push 0x41d07c
push eax
call fcn.004153d2
add esp, 0xc
test eax, eax
jne 0x403081
inc eax
mov byte [edi], al
jmp 0x403214
push 5
lea eax, [ebp - 0x4010b]
push str.ustar
push eax
call fcn.004153d2
add esp, 0xc
test eax, eax
jne 0x403212
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.00402b77
add eax, 0x10
lea ecx, [ebp - 0x40210]
push 0x41d0b0
mov dword [ebp - 0x40210], eax
call fcn.00403225
lea eax, [ebp - 0x4020c]
push eax
lea ecx, [ebp - 0x40210]
call fcn.00403225
push ebx
push pe_nt_image_headers32
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x40210]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40224], eax
cmp eax, 0xffffffff
je 0x403203
push 8
lea eax, [ebp - 0x40190]
push ebx
push eax
call fcn.0040df88
add esp, 0xc
mov dword [ebp - 0x40220], eax
push 1
push ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x40220]
mov edi, ecx
neg edi
add eax, ecx
and edi, 0x1ff
add edi, eax
test ecx, ecx
je 0x4031b0
mov eax, 0x40000
mov dword [ebp - 0x4021c], eax
cmp ecx, eax
jae 0x403152
mov eax, ecx
mov dword [ebp - 0x4021c], ecx
push ebx
lea ecx, [ebp - 0x40218]
push ecx
push eax
lea eax, [ebp - 0x4000c]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4031aa
push ebx
lea eax, [ebp - 0x40218]
push eax
push dword [ebp - 0x4021c]
lea eax, [ebp - 0x4000c]
push eax
push dword [ebp - 0x40224]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4031aa
mov ecx, dword [ebp - 0x40220]
sub ecx, dword [ebp - 0x4021c]
mov dword [ebp - 0x40220], ecx
jne 0x40313b
jmp 0x4031b0
mov byte [ebp - 0x40214], bl
push dword [ebp - 0x40224]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x40214], bl
je 0x4031ec
cmp byte [esi + 8], bl
je 0x4031d8
lea eax, [ebp - 0x40210]
push eax
lea ecx, [esi + 0xc]
call fcn.004025ce
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4031ec
push dword [ebp - 0x40210]
push dword [esi + 0x1c]
call eax
pop ecx
pop ecx
cmp edi, 0xffffffff
je 0x4031fd
push ebx
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov bl, byte [ebp - 0x40214]
lea ecx, [ebp - 0x40210]
call fcn.00402b5c
mov al, bl
jmp 0x403214
xor al, al
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405814
leave
ret 4