joyce8/EMBER2024-capa huggingface dataset:
Function at 0x116a6c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
mov eax, ebx
call fcn.000bcde0
xor edx, edx
push ebp
push 0x116ade
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebx + 0x70]
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 4]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 8]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0xc]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x10]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x14]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x18]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x1c]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov eax, dword [eax + 0x20]
mov byte [eax + 0x30], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x116ae8
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4019c3
Capabilities:
Hide graphical window

Disassembly:
push ebp
sub esp, 0x40
push esp
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
add esp, 0x40
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
loop 0x4019da
push esp
mov eax, 0x400000
mov dword [0x403160], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 0x401719
mov dword [ebp - 4], str.risiliency
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x403160]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.ebsement
push str.risiliency
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403168], eax
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401a78
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401a5f
pop ebp
ret 0x10
Function at 0x4078d0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44dbc8
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
mov esi, ecx
cmp byte [esi + 0x10], 0xaa
je 0x4078fb
push 0
call fcn.004058a0
add esp, 4
lea ecx, [esp + 4]
call fcn.00406c80
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x38], 0
call fcn.00406500
test al, al
jne 0x407943
lea ecx, [esp + 4]
mov dword [esp + 0x34], 0xffffffff
call fcn.00406f80
xor al, al
pop esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4
push ebx
mov ecx, esi
call fcn.00405ae0
lea ecx, [esp + 8]
call fcn.004057e0
push eax
lea ecx, [esp + 0xc]
call fcn.004276a0
push eax
mov ecx, esi
call fcn.00406730
lea ecx, [esp + 8]
mov bl, al
mov dword [esp + 0x38], 0xffffffff
call fcn.00406f80
mov ecx, dword [esp + 0x30]
mov al, bl
pop ebx
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 4
Function at 0x40bb60
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44e1fb
push eax
mov eax, 0x18a0
mov dword fs:[0], esp
call fcn.00429320
lea ecx, [esp]
call fcn.004254b0
lea ecx, [esp]
mov dword [esp + 0x18a8], 0
call fcn.00425500
test al, al
je 0x40bbc9
lea eax, [esp + 0x98]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x18b4]
call fcn.00409d90
jmp 0x40bc1d
lea edx, [esp + 0x89c]
push edx
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x40bc09
lea eax, [esp + 0x98]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x18b4]
call fcn.00409d90
jmp 0x40bc1d
mov ecx, dword [esp + 0x18b0]
lea edx, [esp + 0x89c]
push edx
call fcn.00409fe0
lea ecx, [esp]
mov dword [esp + 0x18a8], 0xffffffff
call fcn.004254f0
mov ecx, dword [esp + 0x18a0]
mov dword fs:[0], ecx
add esp, 0x18ac
ret

Function at 0x40bc50
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44e21b
push eax
mov eax, 0x20a4
mov dword fs:[0], esp
call fcn.00429320
lea ecx, [esp]
call fcn.004254b0
lea ecx, [esp]
mov dword [esp + 0x20ac], 0
call fcn.00425500
test al, al
je 0x40bcb9
lea eax, [esp + 0x89c]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x89c]
push ecx
mov ecx, dword [esp + 0x20b8]
call fcn.00409d90
jmp 0x40bd18
lea edx, [esp + 0x10a0]
push edx
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40bd04
lea eax, [esp + 0x98]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40bcee
mov byte [esp + 0x98], al
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x20b8]
call fcn.00409d90
jmp 0x40bd18
mov ecx, dword [esp + 0x20b4]
lea edx, [esp + 0x10a0]
push edx
call fcn.00409fe0
lea ecx, [esp]
mov dword [esp + 0x20ac], 0xffffffff
call fcn.004254f0
mov ecx, dword [esp + 0x20a4]
mov dword fs:[0], ecx
add esp, 0x20b0
ret
Function at 0x40bf50
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x44e29c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
push ebx
push esi
lea ecx, [esp + 8]
call fcn.00409ba0
mov eax, dword [esp + 0x248]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x244], 0
call fcn.0040ab50
push 0x5c
push 0x2f
lea ecx, [esp + 0x10]
call fcn.0040b070
lea ecx, [esp + 0x118]
call fcn.004254b0
lea ecx, [esp + 0x118]
mov byte [esp + 0x240], 1
call fcn.00425500
test al, al
lea ecx, [esp + 8]
je 0x40bfdd
call fcn.0040a490
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne bl
jmp 0x40c0aa
call fcn.00409ce0
cmp eax, 0x104
jle 0x40c0eb
lea ecx, [esp + 0x1b0]
call fcn.00409ba0
lea ecx, [esp + 0x1b0]
lea edx, [esp + 8]
push ecx
push edx
mov byte [esp + 0x248], 2
call fcn.0040ba50
add esp, 8
lea ecx, [esp + 0x90]
call fcn.00409ba0
push 0x45b8a0
lea ecx, [esp + 0x94]
mov byte [esp + 0x244], 3
call fcn.0040a830
lea ecx, [esp + 0x1b0]
call fcn.0040a900
push eax
lea ecx, [esp + 0x94]
call fcn.0040a830
lea ecx, [esp + 0x90]
call fcn.0040a060
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x40c07f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40c07d
mov esi, 1
test esi, esi
lea ecx, [esp + 0x90]
mov byte [esp + 0x240], 2
setne bl
call fcn.00409c70
lea ecx, [esp + 0x1b0]
mov byte [esp + 0x240], 1
call fcn.00409c70
lea ecx, [esp + 0x118]
mov byte [esp + 0x240], 0
call fcn.004254f0
lea ecx, [esp + 8]
mov dword [esp + 0x240], 0xffffffff
call fcn.00409c70
mov al, bl
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
add esp, 0x23c
ret
push edi
lea ecx, [esp + 0xc]
call fcn.0040a060
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
test edi, edi
jne 0x40c141
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x250]
mov ebx, eax
test esi, esi
je 0x40c135
push ebp
push ebx
mov ecx, esi
call fcn.0041e260
mov ebp, dword [esi]
lea ecx, [esp + 0x10]
call fcn.0040a900
push eax
push str.failedToDeleteFilepath
mov ecx, esi
call dword [ebp + 0x2c]
pop ebp
cmp ebx, 2
jne 0x40c13f
mov edi, 1
test edi, edi
lea ecx, [esp + 0x11c]
mov byte [esp + 0x244], 0
setne bl
call fcn.004254f0
lea ecx, [esp + 0xc]
mov dword [esp + 0x244], 0xffffffff
call fcn.00409c70
mov ecx, dword [esp + 0x23c]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x23c
ret
Function at 0x40cea0
Capabilities:
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44e351
push eax
mov dword fs:[0], esp
sub esp, 0x1a8
push ebp
mov ebp, dword [esp + 0x1c4]
push esi
mov esi, dword [esp + 0x1c4]
push edi
mov edi, dword [esp + 0x1c4]
mov dword [ebp], 0
mov ecx, edi
mov dword [esi], 0xffffffff
call fcn.00409ce0
test eax, eax
jne 0x40cf07
mov ecx, dword [esp + 0x1d0]
test ecx, ecx
je 0x40cf00
mov eax, dword [ecx]
push str.GetAttributes:_filename_is_empty
call dword [eax + 0x14]
xor al, al
jmp 0x40d03b
push ebx
lea ecx, [esp + 0x10]
call fcn.00409ba0
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c4], 0
call fcn.0040ab50
push 0x5c
push 0x2f
lea ecx, [esp + 0x18]
call fcn.0040b070
lea ecx, [esp + 0x10]
call fcn.00409ce0
lea ecx, [esp + 0x120]
mov edi, eax
call fcn.004254b0
mov bl, 1
cmp edi, 0x104
mov byte [esp + 0x1c0], bl
jge 0x40cf93
lea ecx, [esp + 0x10]
call fcn.0040a230
test al, al
jne 0x40cf78
lea ecx, [esp + 0x120]
call fcn.00425500
test al, al
je 0x40cf93
lea ecx, [esp + 0x10]
call fcn.0040a490
push eax
call fcn.0040ed10
add esp, 4
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x40d00a
jmp 0x40d001
test edi, edi
jle 0x40cfea
lea ecx, [esp + 0x98]
call fcn.00409ba0
lea ecx, [esp + 0x98]
lea edx, [esp + 0x10]
push ecx
push edx
mov byte [esp + 0x1c8], 2
call fcn.0040be40
add esp, 8
lea ecx, [esp + 0x98]
call fcn.0040a070
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [esp + 0x98]
mov dword [esi], eax
mov byte [esp + 0x1c0], bl
call fcn.00409c70
jmp 0x40cffc
lea ecx, [esp + 0x10]
call fcn.0040a070
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esi], eax
cmp dword [esi], 0xffffffff
jne 0x40d00d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp], eax
cmp dword [esi], 0xffffffff
lea ecx, [esp + 0x120]
mov byte [esp + 0x1c0], 0
setne bl
call fcn.004254f0
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c0], 0xffffffff
call fcn.00409c70
mov al, bl
pop ebx
mov ecx, dword [esp + 0x1b4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1b4
ret
Function at 0x40d570
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x44e3ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d0
push ebx
push esi
push edi
lea ecx, [esp + 0x34]
call fcn.00409ba0
mov eax, dword [esp + 0x1ec]
lea ecx, [esp + 0x34]
push eax
mov dword [esp + 0x1e8], 0
call fcn.0040ab50
push 0x5c
push 0x2f
lea ecx, [esp + 0x3c]
call fcn.0040b070
lea ecx, [esp + 0x144]
call fcn.004254b0
mov bl, 1
lea ecx, [esp + 0x144]
mov byte [esp + 0x1e4], bl
call fcn.00425500
test al, al
je 0x40d5fb
push 0
lea ecx, [esp + 0x38]
call fcn.0040a490
push eax
call fcn.0040ecd0
add esp, 8
jmp 0x40d66f
lea ecx, [esp + 0x34]
call fcn.00409ce0
test eax, eax
jle 0x40d65d
lea ecx, [esp + 0xbc]
call fcn.00409ba0
lea ecx, [esp + 0xbc]
lea edx, [esp + 0x34]
push ecx
push edx
mov byte [esp + 0x1ec], 2
call fcn.0040be40
add esp, 8
lea ecx, [esp + 0xbc]
push 0
call fcn.0040a060
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0xbc]
mov esi, eax
mov byte [esp + 0x1e4], bl
call fcn.00409c70
jmp 0x40d671
push 0
lea ecx, [esp + 0x38]
call fcn.0040a060
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x40d6c4
mov edi, dword [esp + 0x1f0]
test edi, edi
je 0x40d6c2
push ebp
lea ecx, [esp + 0x10]
call fcn.00406c80
lea ecx, [esp + 0x10]
mov byte [esp + 0x1e8], 3
call fcn.00407c20
mov ebp, dword [edi]
lea ecx, [esp + 0x10]
call fcn.004276a0
push eax
push str.errorMsg
mov ecx, edi
call dword [ebp + 0x2c]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1e8], bl
call fcn.00406f80
pop ebp
test esi, esi
lea ecx, [esp + 0x144]
mov byte [esp + 0x1e4], 0
setne bl
call fcn.004254f0
lea ecx, [esp + 0x34]
mov dword [esp + 0x1e4], 0xffffffff
call fcn.00409c70
mov ecx, dword [esp + 0x1dc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1dc
ret
Function at 0x40d710
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x44e421
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a8
push ebx
push esi
lea ecx, [esp + 8]
call fcn.00409ba0
mov eax, dword [esp + 0x1c0]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x1bc], 0
call fcn.0040ab50
push 0x5c
push 0x2f
lea ecx, [esp + 0x10]
call fcn.0040b070
lea ecx, [esp + 0x118]
call fcn.004254b0
mov bl, 1
lea ecx, [esp + 0x118]
mov byte [esp + 0x1b8], bl
call fcn.00425500
test al, al
lea ecx, [esp + 8]
je 0x40d796
call fcn.0040a490
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x40d802
call fcn.00409ce0
test eax, eax
jle 0x40d7f2
lea ecx, [esp + 0x90]
call fcn.00409ba0
lea ecx, [esp + 0x90]
lea edx, [esp + 8]
push ecx
push edx
mov byte [esp + 0x1c0], 2
call fcn.0040be40
add esp, 8
lea ecx, [esp + 0x90]
call fcn.0040a060
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x90]
mov esi, eax
mov byte [esp + 0x1b8], bl
call fcn.00409c70
jmp 0x40d804
lea ecx, [esp + 8]
call fcn.0040a060
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, eax
test esi, esi
lea ecx, [esp + 0x118]
mov byte [esp + 0x1b8], 0
setne bl
call fcn.004254f0
lea ecx, [esp + 8]
mov dword [esp + 0x1b8], 0xffffffff
call fcn.00409c70
mov ecx, dword [esp + 0x1b0]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1b4
ret

Function at 0x40d8b0
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x44e451
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a8
push ebx
push esi
lea ecx, [esp + 8]
call fcn.00409ba0
mov eax, dword [esp + 0x1c0]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x1bc], 0
call fcn.0040ab50
push 0x5c
push 0x2f
lea ecx, [esp + 0x10]
call fcn.0040b070
mov ebx, 1
push 0
lea ecx, [esp + 0xc]
push ebx
push ecx
call fcn.0040c190
add esp, 0xc
lea ecx, [esp + 0x118]
call fcn.004254b0
lea ecx, [esp + 0x118]
mov byte [esp + 0x1b8], bl
call fcn.00425500
test al, al
je 0x40d95b
mov edx, dword [esp + 0x1c4]
lea ecx, [esp + 8]
push edx
call fcn.0040a490
push eax
call fcn.0040ecf0
add esp, 8
and eax, 0xff
jmp 0x40d9db
lea ecx, [esp + 8]
call fcn.00409ce0
test eax, eax
jle 0x40d9c3
lea ecx, [esp + 0x90]
call fcn.00409ba0
lea eax, [esp + 0x90]
lea ecx, [esp + 8]
push eax
push ecx
mov byte [esp + 0x1c0], 2
call fcn.0040be40
mov edx, dword [esp + 0x1cc]
add esp, 8
lea ecx, [esp + 0x90]
push edx
call fcn.0040a060
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x90]
mov esi, eax
mov byte [esp + 0x1b8], bl
call fcn.00409c70
jmp 0x40d9dd
mov eax, dword [esp + 0x1c4]
lea ecx, [esp + 8]
push eax
call fcn.0040a060
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, eax
test esi, esi
lea ecx, [esp + 0x118]
mov byte [esp + 0x1b8], 0
setne bl
call fcn.004254f0
lea ecx, [esp + 8]
mov dword [esp + 0x1b8], 0xffffffff
call fcn.00409c70
mov ecx, dword [esp + 0x1b0]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1b4
ret
Function at 0x40df80
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x44e506
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
lea ecx, [esp + 4]
call fcn.00409ba0
mov eax, dword [esp + 0x124]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x120], 0
call fcn.0040ab50
push 0x5c
push 0x2f
lea ecx, [esp + 0xc]
call fcn.0040b070
lea ecx, [esp + 4]
call fcn.00409ce0
test eax, eax
jle 0x40e02f
lea ecx, [esp + 0x8c]
call fcn.00409ba0
lea ecx, [esp + 0x8c]
lea edx, [esp + 4]
push ecx
push edx
mov byte [esp + 0x124], 1
call fcn.0040be40
add esp, 8
lea ecx, [esp + 0x8c]
call fcn.0040a060
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x8c]
mov esi, eax
mov byte [esp + 0x11c], 0
call fcn.00409c70
jmp 0x40e041
lea ecx, [esp + 4]
call fcn.0040a060
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
pop esi
jne 0x40e081
mov ecx, dword [esp + 0x124]
test ecx, ecx
je 0x40e056
call fcn.0041e1d0
lea ecx, [esp]
mov dword [esp + 0x118], 0xffffffff
call fcn.00409c70
xor al, al
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
add esp, 0x11c
ret
lea ecx, [esp]
mov dword [esp + 0x118], 0xffffffff
call fcn.00409c70
mov ecx, dword [esp + 0x110]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x11c
ret

Function at 0x40ecf0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret

Function at 0x40ed10
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret
Function at 0x41d840
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x10c
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
push esi
test ebp, ebp
push edi
je 0x41da03
mov ebx, dword [esp + 0x120]
test ebx, ebx
je 0x41da03
push ebp
push ebp
call fcn.0041d7e0
mov edi, dword [esp + 0x134]
add esp, 8
mov ecx, edi
push 0x3f0
push eax
call fcn.004062b0
mov eax, 0x55555556
xor esi, esi
imul ebp
mov ebp, dword [esp + 0x128]
mov eax, edx
shr eax, 0x1f
add edx, eax
xor ecx, ecx
test edx, edx
jle 0x41d962
mov dword [esp + 0x10], edx
jmp 0x41d8b4
mov ebx, dword [esp + 0x120]
xor eax, eax
xor edx, edx
mov al, byte [esi + ebx]
mov dl, byte [esi + ebx + 1]
inc esi
mov edi, edx
inc esi
xor edx, edx
mov dl, byte [esi + ebx]
mov ebx, eax
sar ebx, 2
and ebx, 0x3f
and eax, 3
shl eax, 4
mov bl, byte [ebx + ebp]
inc esi
mov byte [esp + ecx + 0x14], bl
mov ebx, edi
sar ebx, 4
and ebx, 0xf
inc ecx
or ebx, eax
and edi, 0xf
shl edi, 2
mov al, byte [ebx + ebp]
mov byte [esp + ecx + 0x14], al
mov eax, edx
sar eax, 6
and eax, 3
inc ecx
or eax, edi
and edx, 0x3f
inc ecx
mov al, byte [eax + ebp]
mov byte [esp + ecx + 0x13], al
mov dl, byte [edx + ebp]
mov byte [esp + ecx + 0x14], dl
inc ecx
cmp ecx, 0x100
jl 0x41d934
mov edi, dword [esp + 0x12c]
lea eax, [esp + 0x14]
push ecx
push eax
mov ecx, edi
call fcn.00406730
xor ecx, ecx
jmp 0x41d93b
mov edi, dword [esp + 0x12c]
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x41d8ad
test ecx, ecx
je 0x41d95b
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.00406730
mov ebx, dword [esp + 0x120]
mov eax, dword [esp + 0x124]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x41d9c6
dec edx
jne 0x41da03
xor eax, eax
xor edx, edx
mov al, byte [esi + ebx]
mov dl, byte [esi + ebx + 1]
mov dword [esp + 0x10], eax
mov ecx, edi
sar eax, 2
and eax, 0x3f
mov esi, edx
mov al, byte [eax + ebp]
push eax
call fcn.00405c00
mov eax, dword [esp + 0x10]
mov ecx, esi
sar ecx, 4
and eax, 3
and ecx, 0xf
shl eax, 4
or ecx, eax
mov dl, byte [ecx + ebp]
mov ecx, edi
push edx
call fcn.00405c00
and esi, 0xf
mov al, byte [ebp + esi*4]
push eax
jmp 0x41d9f3
xor ecx, ecx
mov cl, byte [esi + ebx]
mov esi, ecx
mov ecx, edi
mov edx, esi
sar edx, 2
and edx, 0x3f
mov al, byte [edx + ebp]
push eax
call fcn.00405c00
and esi, 3
shl esi, 4
mov cl, byte [esi + ebp]
push ecx
mov ecx, edi
call fcn.00405c00
push 0x3d
mov ecx, edi
call fcn.00405c00
push 0x3d
mov ecx, edi
call fcn.00405c00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x41f310
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov byte [ebp], 0
test esi, esi
mov ebx, ecx
mov dword [edi], 0
je 0x41f3fa
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x41f3fa
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x41f39d
push 0
push edi
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41f38b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x41f370
pop edi
mov byte [ebp], 1
pop esi
pop ebp
mov al, 1
pop ebx
ret 0x14
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x41f40c
push eax
call fcn.0041e260
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x14
cmp dword [edi], 0
jne 0x41f394
mov byte [ebp], 1
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0x14
mov eax, dword [ebx + 8]
test eax, eax
je 0x41f3df
push eax
push esi
push 1
push ecx
call fcn.0042a3ef
add esp, 0x10
cmp eax, esi
mov dword [edi], eax
jne 0x41f3c0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0x14
mov eax, dword [ebx + 8]
test byte [eax + 0xc], 0x20
je 0x41f363
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x41f40c
call fcn.0041e1d0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x14
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x41f40c
mov edx, dword [ecx]
push str.No_file_is_open.
call dword [edx + 0x14]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x14
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x41f40c
mov eax, dword [ecx]
push str.NULL_buf_or_bufSize
call dword [eax + 0x14]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x14
Function at 0x41f420
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
call fcn.0041edc0
test al, al
jne 0x41f452
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x41f446
mov eax, dword [ecx]
push str.Failed_to_write_because_file_is_not_open.
call dword [eax + 0x14]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret 0x14
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
test edi, edi
je 0x41f46b
mov dword [edi], 0
mov dword [edi + 4], 0
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, ebp
or ecx, eax
je 0x41f520
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
test eax, eax
jl 0x41f49a
jg 0x41f493
cmp ebp, 0x989680
jbe 0x41f49a
mov esi, 0x989680
jmp 0x41f49c
mov esi, ebp
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x41f4ce
lea edx, [esp + 0x10]
push 0
push edx
push esi
push ebx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41f52c
mov edx, dword [esp + 0x10]
cmp edx, esi
jne 0x41f52c
jmp 0x41f4ed
mov eax, dword [ecx + 8]
test eax, eax
je 0x41f4ed
push eax
push 1
push esi
push ebx
call fcn.0042a4d7
add esp, 0x10
cmp eax, 1
jne 0x41f55c
mov edx, esi
mov dword [esp + 0x10], edx
add ebx, esi
sub ebp, esi
mov esi, dword [esp + 0x24]
mov eax, 0
sbb esi, eax
cmp edi, eax
mov dword [esp + 0x24], esi
je 0x41f512
mov esi, dword [edi]
add esi, edx
mov dword [edi], esi
mov ecx, dword [edi + 4]
adc ecx, eax
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x24]
mov eax, ebp
or eax, ecx
jne 0x41f481
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret 0x14
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x41f550
mov edx, dword [esi]
push 1
push str.WriteFileError
mov ecx, esi
call dword [edx + 0x24]
mov ecx, esi
call fcn.0041e1d0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret 0x14
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x41f56e
mov edx, dword [ecx]
push str.fwrite_failed.
call dword [edx + 0x14]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret 0x14