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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea edx, [ecx - 1]
mov ebx, edx
mov dword [ebp - 8], edi
sar ebx, 1
mov eax, edi
mov dword [ebp - 4], edx
cmp edi, ebx
jge 0x42211d
mov ecx, dword [ebp + 8]
lea esi, [eax + eax]
lea eax, [esi + 2]
imul eax, eax, 0x1c
add ecx, eax
lea eax, [ecx - 0x1c]
push eax
call fcn.0042abf1
movzx eax, al
inc esi
xor eax, 1
imul edi, edi, 0x1c
add eax, esi
imul esi, eax, 0x1c
mov dword [ebp + 0xc], eax
add edi, dword [ebp + 8]
mov ecx, edi
add esi, dword [ebp + 8]
push esi
call fcn.00402a6f
mov eax, dword [esi + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [ebp + 0xc]
mov edi, eax
cmp eax, ebx
jl 0x4220d4
mov ecx, dword [ebp + 0x10]
cmp eax, ebx
jne 0x422147
test cl, 1
jne 0x422147
imul eax, ecx, 0x1c
mov ecx, dword [ebp + 8]
imul edi, edi, 0x1c
lea esi, [ecx - 0x1c]
add esi, eax
add edi, ecx
push esi
mov ecx, edi
call fcn.00402a6f
mov eax, dword [esi + 0x18]
mov dword [edi + 0x18], eax
mov edi, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp - 8]
push edi
push ecx
call fcn.004221fc
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44563d
Capabilities:
Enumerate processes

Disassembly:
push 0x2a0
mov eax, 0x7b150f
call fcn.00720838
mov dword [ebp - 0x298], ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x29c], edi
mov dword [ebp - 0x2a0], edi
mov dword [ebp - 0x294], ebx
mov dword [ebp - 0x290], ebx
mov dword [ebp - 0x28c], ebx
push ebx
push 2
mov dword [ebp - 4], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4456a7
lea eax, [ebp - 0x294]
mov ecx, edi
push eax
call fcn.004114aa
lea ecx, [ebp - 0x294]
call fcn.0040c89c
mov eax, edi
jmp 0x44583c
lea eax, [ebp - 0x284]
mov dword [ebp - 0x284], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4456cb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x445687
mov dword [ebp - 0x2ac], ebx
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2a4], ebx
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x298]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x27c]
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x288], eax
lea eax, [ebp - 0x288]
push eax
call fcn.0044389b
test ebx, ebx
jle 0x445718
cmp dword [ebp - 0x288], ebx
jne 0x4457c8
mov eax, dword [ebp - 0x26c]
and dword [ebp - 0x18], 0
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x288]
mov ecx, edi
call fcn.0044551f
test al, al
jne 0x44579f
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x260]
push eax
call fcn.0043ffc5
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00409476
pop ecx
pop ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402a6f
lea ecx, [ebp - 0x58]
call fcn.00403a4c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004066fd
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x294]
call fcn.00443862
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00403a4c
lea eax, [ebp - 0x284]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4456ea
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x298]
lea esi, [ebx + 4]
push esi
call fcn.004038b6
pop ecx
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebx + 0x34]
call fcn.0040e17d
mov ecx, dword [ebp - 0x2a0]
lea eax, [ebp - 0x294]
push eax
call fcn.004114aa
push esi
mov byte [ebp - 4], 4
call fcn.004038d5
pop ecx
lea ecx, [ebp - 0x2ac]
call fcn.00406683
lea ecx, [ebp - 0x294]
call fcn.0040c89c
mov eax, dword [ebp - 0x2a0]
call fcn.007207e2
ret 8
Function at 0x44611e
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x44617f
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
cmp eax, 1
pop ebx
sete al
xor ecx, ebp
call fcn.007207bc
leave
ret
Function at 0x44bbe8
Capabilities:
Copy file

Disassembly:
push 0xf4
mov eax, 0x7b23b6
call fcn.00720838
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push eax
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x100], edi
call fcn.00409509
mov ebx, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00409509
add esp, 0x10
mov edi, eax
push 0
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0044b609
cmp dword [ebx + 0x14], 8
mov cl, al
jb 0x44bc42
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 8
jb 0x44bc4a
mov edi, dword [edi]
xor eax, eax
test cl, cl
sete al
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
lea ecx, [ebp - 0x28]
cmp esi, 1
sete bl
call fcn.004066fd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004066fd
cmp esi, 1
je 0x44bcf7
call fcn.00405a2d
push 2
pop esi
push esi
push eax
lea ecx, [ebp - 0xf8]
call fcn.00404fa8
lea eax, [ebp - 0xf8]
mov dword [ebp - 4], esi
push str.Failed_to_copy_from_
push eax
call fcn.00401ea3
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._due_to
push dword [ebp - 0xfc]
push 0x7e1c80
push dword [ebp - 0x100]
push esi
call fcn.00403f8c
pop ecx
pop ecx
push eax
call fcn.00401ea3
pop ecx
pop ecx
push eax
call fcn.00403f8c
pop ecx
pop ecx
push eax
call fcn.00401ea3
pop ecx
pop ecx
mov ecx, eax
call fcn.00413514
lea ecx, [ebp - 0xf8]
call fcn.004052de
mov al, bl
call fcn.007207e2
ret

Function at 0x44bcff
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00409509
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x44bd26
mov eax, dword [eax]
push ebx
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x1c]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.004066fd
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.007207bc
leave
ret
Function at 0x44bfa7
Capabilities:
Get disk size

Disassembly:
push 0x6c
mov eax, 0x7b2474
call fcn.00720838
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov edi, dword [ebp + 8]
xor ebx, ebx
push eax
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x78], ebx
push eax
movlpd qword [ebp - 0x6c], xmm0
movlpd qword [ebp - 0x74], xmm0
movlpd qword [ebp - 0x64], xmm0
call fcn.0040888f
and dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00409509
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x44bff5
mov eax, dword [eax]
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.004066fd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00403a4c
test esi, esi
jne 0x44c0cd
push dword [ebp - 0x5c]
lea eax, [ebp - 0x28]
push eax
call fcn.0044c344
pop ecx
pop ecx
xor eax, eax
inc eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], eax
cmp dword [ebp - 0x18], esi
je 0x44c08d
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040888f
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x78], 1
call fcn.00409509
add esp, 0x10
cmp dword [eax + 0x14], 8
push 3
pop ebx
jb 0x44c072
mov eax, dword [eax]
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x44c08d
mov byte [ebp - 0x5c], 0
test bl, 2
je 0x44c09d
lea ecx, [ebp - 0x40]
and ebx, 0xfffffffd
call fcn.004066fd
test bl, 1
je 0x44c0aa
lea ecx, [ebp - 0x58]
call fcn.00403a4c
cmp byte [ebp - 0x5c], 0
lea ecx, [ebp - 0x28]
je 0x44c0c8
or eax, 0xffffffff
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
call fcn.00403a4c
jmp 0x44c0fa
call fcn.00403a4c
mov ecx, dword [ebp - 0x6c]
mov eax, ecx
mov edx, dword [ebp - 0x68]
or eax, edx
jne 0x44c0e9
cmp dword [ebp - 0x64], eax
jne 0x44c0e3
cmp dword [ebp - 0x60], eax
je 0x44c0e9
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x74]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x70]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [edi + 0xc], eax
mov eax, edi
call fcn.007207e2
ret
Function at 0x44c28c
Capabilities:
Get file version info

Disassembly:
push 0x38
mov eax, 0x7b24d1
call fcn.00720838
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00409509
pop ecx
pop ecx
xor ebx, ebx
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 4], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x29]
push eax
push esi
call fcn.0044b77e
push dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x44c32c
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x7e1e7c
push dword [ebp - 0x40]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x44c32c
cmp dword [ebp - 0x30], 0x34
jb 0x44c32c
mov ecx, dword [ebp - 0x34]
mov bl, 1
movzx eax, word [ecx + 0xa]
mov dword [edi], eax
movzx eax, word [ecx + 8]
mov dword [edi + 4], eax
movzx eax, word [ecx + 0xe]
mov dword [edi + 8], eax
movzx eax, word [ecx + 0xc]
mov dword [edi + 0xc], eax
lea ecx, [ebp - 0x40]
call fcn.0040c847
lea ecx, [ebp - 0x28]
call fcn.004066fd
mov al, bl
call fcn.007207e2
ret
Function at 0x44c57b
Capabilities:
Get common file path
Query environment variable

Disassembly:
push 0x254
mov eax, 0x7b2523
call fcn.00720838
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x260], ebx
mov eax, dword fs:[0x2c]
mov ecx, dword [0x966710]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x923638]
cmp eax, dword [ecx + 0x18]
jg 0x44c702
cmp byte [0x923634], 0
jne 0x44c65a
cmp esi, 0x12
jne 0x44c61e
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x7e1e80
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00443472
pop ecx
pop ecx
mov esi, eax
mov dword [ebp - 4], 1
push 0x5c
mov ecx, esi
call fcn.00407050
push esi
mov ecx, ebx
call fcn.00402438
lea ecx, [ebp - 0x234]
call fcn.00403a4c
jmp 0x44c6fa
cmp esi, 0x13
jne 0x44c65a
push 0x104
lea eax, [ebp - 0x21c]
push eax
push str._CommonProgramW6432_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00443472
pop ecx
pop ecx
mov esi, eax
mov dword [ebp - 4], 2
jmp 0x44c5fd
and dword [ebp - 0x260], 0
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.0044cff6
mov esi, eax
lea edi, [ebp - 0x244]
pop ecx
pop ecx
lea eax, [ebp - 0x260]
movsd dword es:[edi], dword [esi]
push eax
push 0
push 0
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x244]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x44c6ec
push dword [ebp - 0x260]
lea eax, [ebp - 0x25c]
push eax
call fcn.00443472
pop ecx
pop ecx
mov esi, eax
push 0x5c
mov ecx, esi
mov dword [ebp - 4], 3
call fcn.00407050
push esi
lea ecx, [ebp - 0x234]
call fcn.00402438
lea ecx, [ebp - 0x25c]
call fcn.00403a4c
push dword [ebp - 0x260]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x234]
push eax
jmp 0x44c607
and dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
mov eax, ebx
call fcn.007207e2
ret
mov edi, 0x923638
push edi
call fcn.00721083
cmp dword [0x923638], 0xffffffff
pop ecx
jne 0x44c5b6
and dword [ebp - 4], 0
call fcn.006ae90f
push edi
cmp dword [eax + 0x1c], 1
sete byte [0x923634]
or dword [ebp - 4], 0xffffffff
call fcn.00721039
pop ecx
jmp 0x44c5b6

Function at 0x44ca3b
Capabilities:
Get disk information

Disassembly:
push 0x4c
mov eax, 0x7b25e6
call fcn.00720838
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0044c344
pop ecx
pop ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x30], ebx
jne 0x44ca6a
lea ecx, [ebp - 0x40]
call fcn.00403a4c
jmp 0x44cac5
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040888f
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.00409509
add esp, 0x10
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.004066fd
lea ecx, [ebp - 0x58]
call fcn.00403a4c
lea ecx, [ebp - 0x40]
call fcn.00403a4c
cmp esi, 3
je 0x44cac3
cmp esi, 2
je 0x44cac3
cmp esi, 6
jne 0x44cac5
mov bl, 1
mov al, bl
call fcn.007207e2
ret
Function at 0x44cacd
Capabilities:
Create directory

Disassembly:
push 0x140
mov eax, 0x7b2629
call fcn.00720838
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x90]
mov esi, dword [ebp + 0xc]
push edi
push eax
call fcn.0044c102
pop ecx
pop ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x90], ebx
jne 0x44cc06
lea ecx, [ebp - 0x88]
call fcn.0044a1c5
test al, al
je 0x44cb18
mov bl, 1
jmp 0x44cc06
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.00409388
pop ecx
pop ecx
cmp dword [ebp - 0x30], 0
mov byte [ebp - 4], 1
je 0x44cbf6
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.0044cacd
pop ecx
pop ecx
test al, al
je 0x44cbf6
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.00409509
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x44cb5a
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
je 0x44cb7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 0x149], bl
cmp eax, 0xb7
jne 0x44cb81
mov byte [ebp - 0x149], 1
lea ecx, [ebp - 0x58]
call fcn.004066fd
cmp byte [ebp - 0x149], 0
je 0x44cb97
xor eax, eax
inc eax
jmp 0x44cbf4
call fcn.00405a2d
push 2
push eax
lea ecx, [ebp - 0x148]
call fcn.00404fa8
lea eax, [ebp - 0x148]
mov byte [ebp - 4], 2
push str.Failed_to_create_directory_at_
push eax
call fcn.00401ea3
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._due_to
push edi
push esi
call fcn.00403f8c
pop ecx
pop ecx
push eax
call fcn.00401ea3
pop ecx
pop ecx
mov ecx, eax
call fcn.00413514
lea ecx, [ebp - 0x148]
call fcn.004052de
mov al, bl
mov bl, al
lea ecx, [ebp - 0x28]
call fcn.00403a4c
lea ecx, [ebp - 0x40]
call fcn.00403a4c
lea ecx, [ebp - 0x80]
call fcn.00403a4c
mov al, bl
call fcn.007207e2
ret

Function at 0x44ccc1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x30], 0xffffffff
jne 0x44ccd2
mov eax, dword [esi + 0x34]
jmp 0x44cd4e
mov ecx, dword [ebp + 0xc]
push ebx
push edi
mov edi, dword [ebp + 0x14]
mov eax, edi
cdq
mov ebx, eax
mov eax, dword [ebp + 0x10]
add ebx, ecx
adc edx, eax
cmp dword [esi + 4], edx
jl 0x44cd49
jg 0x44ccf1
cmp dword [esi], ebx
jb 0x44cd49
xor ebx, ebx
cmp eax, ebx
ja 0x44cd03
cmp ecx, 0x80000000
jae 0x44cd03
push ebx
push ebx
jmp 0x44cd0b
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push ebx
push eax
push ecx
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x44cd49
push ebx
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], ebx
push eax
push edi
push dword [ebp + 8]
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x44cd3d
cmp dword [ebp + 0x14], edi
jne 0x44cd49
xor eax, eax
jmp 0x44cd4c
test eax, eax
jne 0x44cd49
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x44cd4c
push 0x26
pop eax
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x44cd53
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x38], eax
call fcn.0044a281
test al, al
jne 0x44cda9
xor ebx, ebx
mov dword [esi], 2
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], bl
push eax
lea ecx, [esi + 4]
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], ebx
call fcn.00402438
lea ecx, [ebp - 0x1c]
jmp 0x44cea3
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00409509
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x44cdc0
mov eax, dword [eax]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 5
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call fcn.004066fd
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x44cdf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x44cd88
mov eax, dword [ebp - 0x38]
cdq
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push edi
push eax
mov dword [ebp - 0x44], edx
call fcn.0044b75b
pop ecx
pop ecx
push ebx
mov edi, dword [eax]
lea ecx, [ebp - 0x34]
push edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], bl
call fcn.0040c920
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x40]
push ebx
push ecx
push edi
mov edi, dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push edi
mov dword [ebp - 0x40], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x38]
cmp eax, 1
jne 0x44ce6b
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x40], eax
jne 0x44ce79
lea eax, [ebp - 0x34]
mov dword [esi], ebx
push eax
lea ecx, [esi + 4]
call fcn.00402438
jmp 0x44cea0
test eax, eax
jne 0x44ce79
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x44ce7f
mov dword [esi], 0x26
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
push eax
lea ecx, [esi + 4]
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], bl
call fcn.00402438
lea ecx, [ebp - 0x1c]
call fcn.00403a4c
lea ecx, [ebp - 0x34]
call fcn.00403a4c
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.007207bc
leave
ret

Function at 0x44cf2c
Capabilities:
Move file

Disassembly:
push 0x34
mov eax, 0x7b2686
call fcn.00720838
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00409509
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00409509
add esp, 0x10
cmp dword [edi + 0x14], 8
jb 0x44cf63
mov edi, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x44cf6b
mov eax, dword [eax]
push 0xb
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x28]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.004066fd
lea ecx, [ebp - 0x40]
call fcn.004066fd
mov al, bl
call fcn.007207e2
ret
Function at 0x44cf96
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push eax
call fcn.0044bab8
mov edi, eax
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00409509
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x44cfcc
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x1c]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.004066fd
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.007207bc
leave
ret

Function at 0x44d0b1
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x7b26b3
call fcn.00720838
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], ecx
push eax
call fcn.00409509
pop ecx
pop ecx
mov edi, eax
xor esi, esi
cmp dword [edi + 0x14], 8
mov dword [ebp - 4], esi
jb 0x44d0e4
mov edi, dword [edi]
push esi
push ebx
call fcn.0044bab8
pop ecx
push eax
push 2
push esi
push 4
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.004066fd
cmp edi, 0xffffffff
jne 0x44d115
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x44d15f
push esi
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
je 0x44d139
call ebx
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 1
je 0x44d14d
test esi, esi
je 0x44d151
call ebx
mov esi, eax
test esi, esi
jne 0x44d15d
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x2c], eax
push 0x27
pop ecx
cmovne esi, ecx
mov eax, esi
call fcn.007207e2
ret

Function at 0x44d7ce
Capabilities:
Read file via mapping

Disassembly:
push 0xbc
mov eax, 0x7ab2dc
call fcn.00720838
push 0x7e1ee0
xor ebx, ebx
or edi, 0xffffffff
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov esi, eax
test esi, esi
je 0x44d82a
push 8
pop eax
push eax
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x44d821
cmp byte [eax], 1
jne 0x44d81a
push 8
pop ecx
cmp word [eax + 2], cx
jb 0x44d81a
mov edi, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x44d86e
call fcn.00405a2d
push 2
push eax
lea ecx, [ebp - 0xc8]
call fcn.00404fa8
lea eax, [ebp - 0xc8]
mov dword [ebp - 4], ebx
push str.Failed_to_open_mapping_file_due_to:
push eax
call fcn.00401ea3
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00413514
lea ecx, [ebp - 0xc8]
call fcn.004052de
mov eax, edi
call fcn.007207e2
ret