joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419cc0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479a01
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x51384c]
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 esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x130]
call fcn.004080d0
lea ecx, [ebp - 0x1b8]
mov dword [ebp - 4], 0
call fcn.004080d0
push esi
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 1
call fcn.00409330
push edi
lea ecx, [ebp - 0x1b8]
call fcn.00409330
push 0x5c
push 0x2f
lea ecx, [ebp - 0x130]
call fcn.00408ec0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x1b8]
call fcn.00408ec0
lea ecx, [ebp - 0xa8]
call fcn.00422df0
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 2
call fcn.00422e20
test al, al
je 0x419d92
xor eax, eax
cmp byte [ebp + 0x10], al
lea ecx, [ebp - 0x1b8]
setne al
push eax
call fcn.00408880
push eax
lea ecx, [ebp - 0x130]
call fcn.00408880
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x419db9
xor ecx, ecx
cmp byte [ebp + 0x10], cl
setne cl
push ecx
lea ecx, [ebp - 0x1b8]
call fcn.00409190
push eax
lea ecx, [ebp - 0x130]
call fcn.00409190
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
lea ecx, [ebp - 0xa8]
setne bl
mov byte [ebp - 4], 1
call fcn.00422e10
lea ecx, [ebp - 0x1b8]
mov byte [ebp - 4], 0
call fcn.00408180
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 0xffffffff
call fcn.00408180
mov al, bl
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.00462838
mov esp, ebp
pop ebp
ret
Function at 0x419ef0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479a5c
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x51384c]
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 edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x134]
call fcn.004080d0
push edi
lea ecx, [ebp - 0x134]
mov dword [ebp - 4], 0
call fcn.00409330
push 0x5c
push 0x2f
lea ecx, [ebp - 0x134]
call fcn.00408ec0
lea ecx, [ebp - 0xa8]
call fcn.00422df0
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
call fcn.00422e20
lea ecx, [ebp - 0x134]
test al, al
je 0x419f88
call fcn.00408880
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jmp 0x41a0a0
call fcn.00409080
cmp eax, 0x104
jle 0x41a040
lea ecx, [ebp - 0x244]
call fcn.004080d0
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x134]
push ecx
mov byte [ebp - 4], 2
call fcn.004199e0
add esp, 8
lea ecx, [ebp - 0x1bc]
call fcn.004080d0
push 0x4b391c
lea ecx, [ebp - 0x1bc]
mov byte [ebp - 4], 3
call fcn.00409260
lea ecx, [ebp - 0x244]
call fcn.00408b00
push eax
lea ecx, [ebp - 0x1bc]
call fcn.00409260
lea ecx, [ebp - 0x1bc]
call fcn.00409190
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x41a01d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x41a01b
mov esi, 1
test esi, esi
lea ecx, [ebp - 0x1bc]
setne bl
mov byte [ebp - 4], 2
call fcn.00408180
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.00408180
jmp 0x41a0a3
lea ecx, [ebp - 0x134]
call fcn.00409190
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0xac], eax
test eax, eax
jne 0x41a099
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
je 0x41a08a
push edi
mov ecx, esi
call fcn.00420880
mov ebx, dword [esi]
lea ecx, [ebp - 0x134]
call fcn.00408b00
mov edx, dword [ebx + 0x28]
push eax
push str.failedToDeleteFilepath
mov ecx, esi
call edx
cmp edi, 2
jne 0x41a099
mov dword [ebp - 0xac], 1
cmp dword [ebp - 0xac], 0
setne bl
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0
call fcn.00422e10
lea ecx, [ebp - 0x134]
mov dword [ebp - 4], 0xffffffff
call fcn.00408180
mov al, bl
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.00462838
mov esp, ebp
pop ebp
ret
Function at 0x41abe0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479bc6
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x51384c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0xa8]
call fcn.00422df0
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], 0
call fcn.00422e20
test al, al
je 0x41ac43
mov eax, dword [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne bl
jmp 0x41ac88
lea ecx, [ebp - 0x130]
call fcn.004080d0
push esi
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 1
call fcn.00408370
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x130]
call fcn.00409190
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
lea ecx, [ebp - 0x130]
setne bl
mov byte [ebp - 4], 0
call fcn.00408180
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], 0xffffffff
call fcn.00422e10
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00462838
mov esp, ebp
pop ebp
ret

Function at 0x41acc0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479c06
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x51384c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0xa8]
call fcn.00422df0
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], 0
call fcn.00422e20
test al, al
je 0x41ad1b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
jmp 0x41ad59
lea ecx, [ebp - 0x130]
call fcn.004080d0
push esi
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 1
call fcn.00408370
lea ecx, [ebp - 0x130]
call fcn.00409190
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x130]
mov esi, eax
mov byte [ebp - 4], 0
call fcn.00408180
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], 0xffffffff
call fcn.00422e10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00462838
mov esp, ebp
pop ebp
ret
Function at 0x41ae60
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479c67
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x51384c]
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 eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x134]
mov dword [ebp - 0xac], eax
call fcn.004080d0
lea ecx, [ebp - 0x1bc]
mov dword [ebp - 4], 0
call fcn.004080d0
push esi
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 1
call fcn.00409330
push edi
lea ecx, [ebp - 0x1bc]
call fcn.00409330
push 0x5c
push 0x2f
lea ecx, [ebp - 0x134]
call fcn.00408ec0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x1bc]
call fcn.00408ec0
lea ecx, [ebp - 0xa8]
call fcn.00422df0
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 2
call fcn.00422e20
test al, al
je 0x41af3a
lea ecx, [ebp - 0x1bc]
call fcn.00408880
push eax
lea ecx, [ebp - 0x134]
call fcn.00408880
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
setne bl
jmp 0x41b008
lea ecx, [ebp - 0x134]
call fcn.00409080
test eax, eax
jg 0x41af80
lea ecx, [ebp - 0x1bc]
call fcn.00409080
test eax, eax
jg 0x41af80
lea ecx, [ebp - 0x1bc]
call fcn.00409190
push eax
lea ecx, [ebp - 0x134]
call fcn.00409190
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
jmp 0x41b008
lea ecx, [ebp - 0x244]
call fcn.004080d0
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 3
call fcn.004080d0
lea ecx, [ebp - 0x244]
push ecx
lea edx, [ebp - 0x134]
push edx
mov byte [ebp - 4], 4
call fcn.00419e10
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x1bc]
push ecx
call fcn.00419e10
add esp, 0x10
lea ecx, [ebp - 0x2cc]
call fcn.00409190
push eax
lea ecx, [ebp - 0x244]
call fcn.00409190
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
lea ecx, [ebp - 0x2cc]
setne bl
mov byte [ebp - 4], 3
call fcn.00408180
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 2
call fcn.00408180
test bl, bl
jne 0x41b01b
mov ecx, dword [ebp - 0xac]
test ecx, ecx
je 0x41b01b
call fcn.004207e0
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
call fcn.00422e10
lea ecx, [ebp - 0x1bc]
mov byte [ebp - 4], 0
call fcn.00408180
lea ecx, [ebp - 0x134]
mov dword [ebp - 4], 0xffffffff
call fcn.00408180
mov al, bl
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.00462838
mov esp, ebp
pop ebp
ret

Function at 0x41b070
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419cc0

Function at 0x41b080
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419ef0
Function at 0x41b090
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479cb1
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x51384c]
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 eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, edi
mov dword [ebp - 0xac], eax
mov dword [esi], 0xffffffff
call fcn.00409080
test eax, eax
jne 0x41b100
test ebx, ebx
je 0x41b0f9
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
push str.GetAttributes:_filename_is_empty
mov ecx, ebx
call edx
xor al, al
jmp 0x41b226
lea ecx, [ebp - 0x134]
call fcn.004080d0
push edi
lea ecx, [ebp - 0x134]
mov dword [ebp - 4], 0
call fcn.00409330
push 0x5c
push 0x2f
lea ecx, [ebp - 0x134]
call fcn.00408ec0
lea ecx, [ebp - 0x134]
call fcn.00409080
lea ecx, [ebp - 0xa8]
mov edi, eax
call fcn.00422df0
mov bl, 1
mov byte [ebp - 4], bl
cmp edi, 0x104
jge 0x41b189
lea ecx, [ebp - 0x134]
call fcn.00408660
test al, al
jne 0x41b170
lea ecx, [ebp - 0xa8]
call fcn.00422e20
test al, al
je 0x41b189
lea ecx, [ebp - 0x134]
call fcn.00408880
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [esi], eax
cmp eax, 0xffffffff
jmp 0x41b1ed
test edi, edi
jle 0x41b1d6
lea ecx, [ebp - 0x1bc]
call fcn.004080d0
lea edx, [ebp - 0x1bc]
push edx
lea eax, [ebp - 0x134]
push eax
mov byte [ebp - 4], 2
call fcn.00419e10
add esp, 8
lea ecx, [ebp - 0x1bc]
call fcn.004084f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x1bc]
mov dword [esi], eax
mov byte [ebp - 4], bl
call fcn.00408180
jmp 0x41b1ea
lea ecx, [ebp - 0x134]
call fcn.004084f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esi], eax
cmp dword [esi], 0xffffffff
jne 0x41b1fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xac]
mov dword [ecx], eax
cmp dword [esi], 0xffffffff
lea ecx, [ebp - 0xa8]
setne bl
mov byte [ebp - 4], 0
call fcn.00422e10
lea ecx, [ebp - 0x134]
mov dword [ebp - 4], 0xffffffff
call fcn.00408180
mov al, bl
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.00462838
mov esp, ebp
pop ebp
ret
Function at 0x41b250
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479d0c
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x51384c]
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 esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x158]
call fcn.004080d0
push esi
lea ecx, [ebp - 0x158]
mov dword [ebp - 4], 0
call fcn.00409330
push 0x5c
push 0x2f
lea ecx, [ebp - 0x158]
call fcn.00408ec0
lea ecx, [ebp - 0xa8]
call fcn.00422df0
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
call fcn.00422e20
lea ecx, [ebp - 0x158]
test al, al
je 0x41b2e5
call fcn.00408880
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x41b34e
call fcn.00409080
test eax, eax
jle 0x41b33a
lea ecx, [ebp - 0x1e0]
call fcn.004080d0
lea eax, [ebp - 0x1e0]
push eax
lea ecx, [ebp - 0x158]
push ecx
mov byte [ebp - 4], 2
call fcn.00419e10
add esp, 8
push 0
lea ecx, [ebp - 0x1e0]
call fcn.00409190
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x1e0]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.00408180
jmp 0x41b350
push 0
lea ecx, [ebp - 0x158]
call fcn.00409190
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x41b39d
test edi, edi
je 0x41b39b
lea ecx, [ebp - 0xd0]
call fcn.00406590
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 3
call fcn.00407f00
mov ebx, dword [edi]
lea ecx, [ebp - 0xd0]
call fcn.00405cb0
mov edx, dword [ebx + 0x28]
push eax
push str.errorMsg
mov ecx, edi
call edx
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 1
call fcn.004067b0
test esi, esi
lea ecx, [ebp - 0xa8]
setne bl
mov byte [ebp - 4], 0
call fcn.00422e10
lea ecx, [ebp - 0x158]
mov dword [ebp - 4], 0xffffffff
call fcn.00408180
mov al, bl
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.00462838
mov esp, ebp
pop ebp
ret
Function at 0x41bd50
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041ae60

Function at 0x41e870
Capabilities:
Hash data with md5

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

Function at 0x41ea70
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], eax
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
call fcn.004095c0
push eax
mov ecx, edi
call fcn.00405cb0
push eax
mov ecx, esi
call fcn.0041e8b0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, esi
call fcn.0041e9a0
pop edi
pop esi
pop ebp
ret 8

Function at 0x41ead0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], eax
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
call fcn.0045f620
push eax
mov ecx, edi
call fcn.00405cb0
push eax
mov ecx, esi
call fcn.0041e8b0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, esi
call fcn.0041e9a0
pop edi
pop esi
pop ebp
ret 8
Function at 0x41efd0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x51384c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x11c], edi
test esi, esi
je 0x41f1c8
test eax, eax
je 0x41f1c8
lea ecx, [esi + esi*4 + 0xa]
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx + ecx]
cdq
idiv esi
push 0x3f0
lea ecx, [ecx + eax + 3]
push ecx
mov ecx, edi
call fcn.004060b0
mov eax, 0x55555556
imul dword [ebp + 0xc]
mov eax, edx
shr eax, 0x1f
add eax, edx
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x120], eax
test eax, eax
jle 0x41f122
mov dword [ebp - 0x118], eax
mov edi, edi
mov edx, dword [ebp - 0x110]
movzx eax, byte [edx + esi]
movzx edi, byte [edx + esi + 1]
movzx edx, byte [edx + esi + 2]
mov dword [ebp - 0x114], edx
mov edx, eax
sar edx, 2
and edx, 0x3f
movzx edx, byte [edx + ebx]
mov byte [ebp + ecx - 0x10c], dl
mov edx, edi
sar edx, 4
and eax, 3
and edx, 0xf
shl eax, 4
or edx, eax
movzx eax, byte [edx + ebx]
mov byte [ebp + ecx - 0x10b], al
mov eax, dword [ebp - 0x114]
and edi, 0xf
mov edx, eax
sar edx, 6
add edi, edi
and edx, 3
add edi, edi
or edx, edi
movzx edx, byte [edx + ebx]
mov edi, dword [ebp - 0x11c]
and eax, 0x3f
movzx eax, byte [eax + ebx]
mov byte [ebp + ecx - 0x10a], dl
mov byte [ebp + ecx - 0x109], al
add ecx, 4
add esi, 3
cmp ecx, 0x100
jl 0x41f0fd
push ecx
lea ecx, [ebp - 0x10c]
push ecx
mov ecx, edi
call fcn.00406390
xor ecx, ecx
dec dword [ebp - 0x118]
jne 0x41f060
test ecx, ecx
je 0x41f11c
push ecx
lea edx, [ebp - 0x10c]
push edx
mov ecx, edi
call fcn.00406390
mov eax, dword [ebp - 0x120]
lea ecx, [eax + eax*2]
mov eax, dword [ebp + 0xc]
sub eax, ecx
dec eax
je 0x41f187
dec eax
jne 0x41f1c8
mov ecx, dword [ebp - 0x110]
movzx eax, byte [ecx + esi]
movzx esi, byte [ecx + esi + 1]
mov dword [ebp - 0x114], eax
sar eax, 2
and eax, 0x3f
movzx edx, byte [eax + ebx]
push edx
mov ecx, edi
call fcn.00405ec0
mov eax, dword [ebp - 0x114]
mov ecx, esi
sar ecx, 4
and eax, 3
and ecx, 0xf
shl eax, 4
or ecx, eax
movzx edx, byte [ecx + ebx]
push edx
mov ecx, edi
call fcn.00405ec0
and esi, 0xf
movzx eax, byte [ebx + esi*4]
push eax
jmp 0x41f1b8
mov ecx, dword [ebp - 0x110]
movzx esi, byte [ecx + esi]
mov edx, esi
sar edx, 2
and edx, 0x3f
movzx eax, byte [edx + ebx]
push eax
mov ecx, edi
call fcn.00405ec0
and esi, 3
add esi, esi
movzx ecx, byte [ebx + esi*8]
push ecx
mov ecx, edi
call fcn.00405ec0
push 0x3d
mov ecx, edi
call fcn.00405ec0
push 0x3d
mov ecx, edi
call fcn.00405ec0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00462838
mov esp, ebp
pop ebp
ret
Function at 0x41ff40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov byte [eax], 0
mov ebx, ecx
mov dword [edi], 0
test esi, esi
je 0x41fff3
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x41fff3
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x41ffba
push 0
push edi
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41ffa6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x41ffe4
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x420006
push eax
call fcn.00420880
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0x14
cmp dword [edi], 0
jne 0x41ffb1
mov edx, dword [ebp + 0x14]
mov byte [edx], 1
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 0x14
mov eax, dword [ebx + 8]
test eax, eax
je 0x420006
push eax
push esi
push 1
push ecx
call fcn.00466419
add esp, 0x10
mov dword [edi], eax
cmp eax, esi
je 0x41ffea
mov eax, dword [ebx + 8]
push eax
call fcn.004661a7
add esp, 4
test eax, eax
jne 0x420006
mov ecx, dword [ebp + 0x14]
mov byte [ecx], 1
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 0x14
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x420006
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push str.NULL_buf_or_bufSize
call eax
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0x14
Function at 0x420010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a6f8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x51384c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
cmp dword [ecx + 4], 0xffffffff
jne 0x420070
cmp dword [ecx + 8], 0
jne 0x420070
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x42005a
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push str.Failed_to_write_because_file_is_not_open.
call edx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
test edi, edi
je 0x420087
mov dword [edi], 0
mov dword [edi + 4], 0
mov edx, dword [ebp + 0xc]
mov eax, edx
or eax, dword [ebp + 0x10]
je 0x420177
cmp dword [ebp + 0x10], 0
jl 0x4200ac
jg 0x4200a5
cmp edx, 0x989680
jbe 0x4200ac
mov esi, 0x989680
jmp 0x4200ae
mov esi, edx
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x42012f
push 0
lea ecx, [ebp + 8]
push ecx
push esi
push ebx
push eax
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4200d5
cmp dword [ebp + 8], esi
je 0x42014b
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x420119
lea ecx, [ebp - 0x38]
call fcn.00406590
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call fcn.00407f00
mov esi, dword [edi]
lea ecx, [ebp - 0x38]
call fcn.00405cb0
mov edx, dword [esi + 0x28]
push eax
push str.WriteFileError
mov ecx, edi
call edx
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.004067b0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ecx + 8]
test eax, eax
je 0x420151
push eax
push 1
push esi
push ebx
call fcn.0046658d
add esp, 0x10
cmp eax, 1
jne 0x42018d
mov dword [ebp + 8], esi
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
add ebx, esi
sub edx, esi
mov eax, 0
sbb dword [ebp + 0x10], eax
mov dword [ebp + 0xc], edx
cmp edi, eax
je 0x42016c
mov esi, dword [ebp + 8]
add dword [edi], esi
adc dword [edi + 4], eax
mov eax, edx
or eax, dword [ebp + 0x10]
jne 0x420095
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4201a0
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push str.fwrite_failed.
call edx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14