joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a420
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x44de5c
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.00408c00
mov eax, dword [esp + 0x248]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x244], 0
call fcn.00409a50
push 0x5c
push 0x2f
lea ecx, [esp + 0x10]
call fcn.00409d50
lea ecx, [esp + 0x118]
call fcn.004252a0
lea ecx, [esp + 0x118]
mov byte [esp + 0x240], 1
call fcn.004252f0
test al, al
lea ecx, [esp + 8]
je 0x40a4ad
call fcn.00409400
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne bl
jmp 0x40a57a
call fcn.00408d40
cmp eax, 0x104
jle 0x40a5bb
lea ecx, [esp + 0x1b0]
call fcn.00408c00
lea ecx, [esp + 0x1b0]
lea edx, [esp + 8]
push ecx
push edx
mov byte [esp + 0x248], 2
call fcn.00409f20
add esp, 8
lea ecx, [esp + 0x90]
call fcn.00408c00
push 0x45c874
lea ecx, [esp + 0x94]
mov byte [esp + 0x244], 3
call fcn.00409750
lea ecx, [esp + 0x1b0]
call fcn.00409820
push eax
lea ecx, [esp + 0x94]
call fcn.00409750
lea ecx, [esp + 0x90]
call fcn.00409070
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x40a54f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40a54d
mov esi, 1
test esi, esi
lea ecx, [esp + 0x90]
mov byte [esp + 0x240], 2
setne bl
call fcn.00408cd0
lea ecx, [esp + 0x1b0]
mov byte [esp + 0x240], 1
call fcn.00408cd0
lea ecx, [esp + 0x118]
mov byte [esp + 0x240], 0
call fcn.004252e0
lea ecx, [esp + 8]
mov dword [esp + 0x240], 0xffffffff
call fcn.00408cd0
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.00409070
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
test edi, edi
jne 0x40a611
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x250]
mov ebx, eax
test esi, esi
je 0x40a605
push ebp
push ebx
mov ecx, esi
call fcn.00425470
mov ebp, dword [esi]
lea ecx, [esp + 0x10]
call fcn.00409820
push eax
push str.failedToDeleteFilepath
mov ecx, esi
call dword [ebp + 0x28]
pop ebp
cmp ebx, 2
jne 0x40a60f
mov edi, 1
test edi, edi
lea ecx, [esp + 0x11c]
mov byte [esp + 0x244], 0
setne bl
call fcn.004252e0
lea ecx, [esp + 0xc]
mov dword [esp + 0x244], 0xffffffff
call fcn.00408cd0
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 0x40ad60
Capabilities:
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44dee1
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.00408d40
test eax, eax
jne 0x40adc7
mov ecx, dword [esp + 0x1d0]
test ecx, ecx
je 0x40adc0
mov eax, dword [ecx]
push str.GetAttributes:_filename_is_empty
call dword [eax + 0x10]
xor al, al
jmp 0x40aefb
push ebx
lea ecx, [esp + 0x10]
call fcn.00408c00
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c4], 0
call fcn.00409a50
push 0x5c
push 0x2f
lea ecx, [esp + 0x18]
call fcn.00409d50
lea ecx, [esp + 0x10]
call fcn.00408d40
lea ecx, [esp + 0x120]
mov edi, eax
call fcn.004252a0
mov bl, 1
cmp edi, 0x104
mov byte [esp + 0x1c0], bl
jge 0x40ae53
lea ecx, [esp + 0x10]
call fcn.004091f0
test al, al
jne 0x40ae38
lea ecx, [esp + 0x120]
call fcn.004252f0
test al, al
je 0x40ae53
lea ecx, [esp + 0x10]
call fcn.00409400
push eax
call fcn.0040ca90
add esp, 4
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x40aeca
jmp 0x40aec1
test edi, edi
jle 0x40aeaa
lea ecx, [esp + 0x98]
call fcn.00408c00
lea ecx, [esp + 0x98]
lea edx, [esp + 0x10]
push ecx
push edx
mov byte [esp + 0x1c8], 2
call fcn.0040a310
add esp, 8
lea ecx, [esp + 0x98]
call fcn.00409080
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [esp + 0x98]
mov dword [esi], eax
mov byte [esp + 0x1c0], bl
call fcn.00408cd0
jmp 0x40aebc
lea ecx, [esp + 0x10]
call fcn.00409080
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esi], eax
cmp dword [esi], 0xffffffff
jne 0x40aecd
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.004252e0
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c0], 0xffffffff
call fcn.00408cd0
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 0x40b3a0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x44df7c
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.00408c00
mov eax, dword [esp + 0x1ec]
lea ecx, [esp + 0x34]
push eax
mov dword [esp + 0x1e8], 0
call fcn.00409a50
push 0x5c
push 0x2f
lea ecx, [esp + 0x3c]
call fcn.00409d50
lea ecx, [esp + 0x144]
call fcn.004252a0
mov bl, 1
lea ecx, [esp + 0x144]
mov byte [esp + 0x1e4], bl
call fcn.004252f0
test al, al
je 0x40b42b
push 0
lea ecx, [esp + 0x38]
call fcn.00409400
push eax
call fcn.0040ca50
add esp, 8
jmp 0x40b49f
lea ecx, [esp + 0x34]
call fcn.00408d40
test eax, eax
jle 0x40b48d
lea ecx, [esp + 0xbc]
call fcn.00408c00
lea ecx, [esp + 0xbc]
lea edx, [esp + 0x34]
push ecx
push edx
mov byte [esp + 0x1ec], 2
call fcn.0040a310
add esp, 8
lea ecx, [esp + 0xbc]
push 0
call fcn.00409070
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0xbc]
mov esi, eax
mov byte [esp + 0x1e4], bl
call fcn.00408cd0
jmp 0x40b4a1
push 0
lea ecx, [esp + 0x38]
call fcn.00409070
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x40b4f4
mov edi, dword [esp + 0x1f0]
test edi, edi
je 0x40b4f2
push ebp
lea ecx, [esp + 0x10]
call fcn.00406140
lea ecx, [esp + 0x10]
mov byte [esp + 0x1e8], 3
call fcn.00406d30
mov ebp, dword [edi]
lea ecx, [esp + 0x10]
call fcn.0040f350
push eax
push str.errorMsg
mov ecx, edi
call dword [ebp + 0x28]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1e8], bl
call fcn.00406430
pop ebp
test esi, esi
lea ecx, [esp + 0x144]
mov byte [esp + 0x1e4], 0
setne bl
call fcn.004252e0
lea ecx, [esp + 0x34]
mov dword [esp + 0x1e4], 0xffffffff
call fcn.00408cd0
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 0x40b540
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x44dfb1
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.00408c00
mov eax, dword [esp + 0x1c0]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x1bc], 0
call fcn.00409a50
push 0x5c
push 0x2f
lea ecx, [esp + 0x10]
call fcn.00409d50
lea ecx, [esp + 0x118]
call fcn.004252a0
mov bl, 1
lea ecx, [esp + 0x118]
mov byte [esp + 0x1b8], bl
call fcn.004252f0
test al, al
lea ecx, [esp + 8]
je 0x40b5c6
call fcn.00409400
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x40b632
call fcn.00408d40
test eax, eax
jle 0x40b622
lea ecx, [esp + 0x90]
call fcn.00408c00
lea ecx, [esp + 0x90]
lea edx, [esp + 8]
push ecx
push edx
mov byte [esp + 0x1c0], 2
call fcn.0040a310
add esp, 8
lea ecx, [esp + 0x90]
call fcn.00409070
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x90]
mov esi, eax
mov byte [esp + 0x1b8], bl
call fcn.00408cd0
jmp 0x40b634
lea ecx, [esp + 8]
call fcn.00409070
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.004252e0
lea ecx, [esp + 8]
mov dword [esp + 0x1b8], 0xffffffff
call fcn.00408cd0
mov ecx, dword [esp + 0x1b0]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1b4
ret

Function at 0x40b680
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x44dfe1
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.00408c00
mov eax, dword [esp + 0x1c0]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x1bc], 0
call fcn.00409a50
push 0x5c
push 0x2f
lea ecx, [esp + 0x10]
call fcn.00409d50
lea ecx, [esp + 8]
push 0
push ecx
call fcn.0040a660
add esp, 8
lea ecx, [esp + 0x118]
call fcn.004252a0
mov bl, 1
lea ecx, [esp + 0x118]
mov byte [esp + 0x1b8], bl
call fcn.004252f0
test al, al
je 0x40b727
mov edx, dword [esp + 0x1c4]
lea ecx, [esp + 8]
push edx
call fcn.00409400
push eax
call fcn.0040ca70
add esp, 8
and eax, 0xff
jmp 0x40b7a7
lea ecx, [esp + 8]
call fcn.00408d40
test eax, eax
jle 0x40b78f
lea ecx, [esp + 0x90]
call fcn.00408c00
lea eax, [esp + 0x90]
lea ecx, [esp + 8]
push eax
push ecx
mov byte [esp + 0x1c0], 2
call fcn.0040a310
mov edx, dword [esp + 0x1cc]
add esp, 8
lea ecx, [esp + 0x90]
push edx
call fcn.00409070
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x90]
mov esi, eax
mov byte [esp + 0x1b8], bl
call fcn.00408cd0
jmp 0x40b7a9
mov eax, dword [esp + 0x1c4]
lea ecx, [esp + 8]
push eax
call fcn.00409070
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.004252e0
lea ecx, [esp + 8]
mov dword [esp + 0x1b8], 0xffffffff
call fcn.00408cd0
mov ecx, dword [esp + 0x1b0]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1b4
ret
Function at 0x40bd40
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x44e096
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
lea ecx, [esp + 4]
call fcn.00408c00
mov eax, dword [esp + 0x124]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x120], 0
call fcn.00409a50
push 0x5c
push 0x2f
lea ecx, [esp + 0xc]
call fcn.00409d50
lea ecx, [esp + 4]
call fcn.00408d40
test eax, eax
jle 0x40bdef
lea ecx, [esp + 0x8c]
call fcn.00408c00
lea ecx, [esp + 0x8c]
lea edx, [esp + 4]
push ecx
push edx
mov byte [esp + 0x124], 1
call fcn.0040a310
add esp, 8
lea ecx, [esp + 0x8c]
call fcn.00409070
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x8c]
mov esi, eax
mov byte [esp + 0x11c], 0
call fcn.00408cd0
jmp 0x40be01
lea ecx, [esp + 4]
call fcn.00409070
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
pop esi
jne 0x40be41
mov ecx, dword [esp + 0x124]
test ecx, ecx
je 0x40be16
call fcn.004253e0
lea ecx, [esp]
mov dword [esp + 0x118], 0xffffffff
call fcn.00408cd0
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.00408cd0
mov ecx, dword [esp + 0x110]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x11c
ret

Function at 0x40ca70
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 0x40ca90
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret

Function at 0x40fa80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44e573
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0041e710
mov eax, dword [esp + 0x20]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x18], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov byte [esi + 0x24], bl
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov byte [esi + 0x38], 0xce
mov dword [esi], vtable.TreeNode.0
je 0x40fae6
cmp byte [eax], bl
je 0x40fae6
push eax
mov ecx, esi
call fcn.004105d0
mov edi, dword [esp + 0x24]
cmp edi, ebx
je 0x40fb18
cmp byte [edi], bl
je 0x40fb18
push 0x28
call fcn.0042928a
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebx
mov byte [esp + 0x18], 1
je 0x40fb13
push edi
mov ecx, eax
call fcn.00406040
jmp 0x40fb15
xor eax, eax
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x41e040
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 0x41e208
mov ebx, dword [esp + 0x120]
test ebx, ebx
je 0x41e208
push ebp
push ebp
call fcn.0041e010
mov edi, dword [esp + 0x130]
add esp, 8
mov ecx, edi
push 0x3f0
push eax
call fcn.00405af0
mov eax, 0x55555556
xor esi, esi
imul ebp
mov eax, edx
xor ecx, ecx
shr eax, 0x1f
add edx, eax
test edx, edx
jle 0x41e161
mov dword [esp + 0x10], edx
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]
inc esi
mov ebp, edx
mov edx, eax
sar edx, 2
and edx, 0x3f
and eax, 3
shl eax, 4
mov dl, byte [edx + 0x454938]
mov byte [esp + ecx + 0x14], dl
mov edx, edi
sar edx, 4
and edx, 0xf
and edi, 0xf
or edx, eax
inc ecx
shl edi, 2
mov al, byte [edx + 0x454938]
mov edx, ebp
sar edx, 6
and edx, 3
mov byte [esp + ecx + 0x14], al
or edx, edi
inc ecx
and ebp, 0x3f
inc ecx
mov al, byte [edx + 0x454938]
mov dl, byte [ebp + 0x454938]
mov byte [esp + ecx + 0x13], al
mov byte [esp + ecx + 0x14], dl
inc ecx
cmp ecx, 0x100
jl 0x41e12e
lea eax, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x12c]
push eax
call fcn.00405ec0
xor ecx, ecx
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x41e0a4
test ecx, ecx
je 0x41e153
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x130]
call fcn.00405ec0
mov edi, dword [esp + 0x128]
mov ebp, dword [esp + 0x124]
mov eax, ebp
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x41e1c5
dec edx
jne 0x41e208
xor edx, edx
xor eax, eax
mov dl, byte [esi + ebx]
mov al, byte [esi + ebx + 1]
mov ebp, edx
mov esi, eax
mov ecx, ebp
sar ecx, 2
and ecx, 0x3f
mov dl, byte [ecx + 0x454938]
mov ecx, edi
push edx
call fcn.00405720
mov eax, esi
and ebp, 3
sar eax, 4
and eax, 0xf
shl ebp, 4
or eax, ebp
mov cl, byte [eax + 0x454938]
push ecx
mov ecx, edi
call fcn.00405720
and esi, 0xf
mov dl, byte [esi*4 + 0x454938]
push edx
jmp 0x41e1f8
xor eax, eax
mov al, byte [esi + ebx]
mov esi, eax
mov ecx, esi
sar ecx, 2
and ecx, 0x3f
mov dl, byte [ecx + 0x454938]
mov ecx, edi
push edx
call fcn.00405720
and esi, 3
mov ecx, edi
shl esi, 4
mov al, byte [esi + 0x454938]
push eax
call fcn.00405720
push 0x3d
mov ecx, edi
call fcn.00405720
push 0x3d
mov ecx, edi
call fcn.00405720
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x41fac0
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 0x41fb82
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x41fb82
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x41fb49
push 0
push edi
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41fb37
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x41fb20
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 0x41fb94
push eax
call fcn.00425470
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x14
cmp dword [edi], 0
jne 0x41fb40
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 0x41fb94
push eax
push esi
push 1
push ecx
call fcn.0042a589
add esp, 0x10
cmp eax, esi
mov dword [edi], eax
jne 0x41fb6c
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0x14
mov eax, dword [ebx + 8]
test byte [eax + 0xc], 0x20
jne 0x41fb94
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 0x41fb94
mov edx, dword [ecx]
push str.NULL_buf_or_bufSize
call dword [edx + 0x10]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x14
Function at 0x41fba0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x44f7f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
call fcn.0041f680
test al, al
jne 0x41fbe2
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x41fbdb
mov eax, dword [ecx]
push str.Failed_to_write_because_file_is_not_open.
call dword [eax + 0x10]
xor al, al
jmp 0x41fcb6
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x50]
test edi, edi
je 0x41fbfb
mov dword [edi], 0
mov dword [edi + 4], 0
mov ebp, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov ecx, ebp
or ecx, eax
je 0x41fcb4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x58]
test eax, eax
jl 0x41fc2a
jg 0x41fc23
cmp ebp, 0x989680
jbe 0x41fc2a
mov esi, 0x989680
jmp 0x41fc2c
mov esi, ebp
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x41fc5e
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 0x41fccb
mov edx, dword [esp + 0x10]
cmp edx, esi
jne 0x41fccb
jmp 0x41fc81
mov eax, dword [ecx + 8]
test eax, eax
je 0x41fc81
push eax
push 1
push esi
push ebx
call fcn.0042a671
add esp, 0x10
cmp eax, 1
jne 0x41fd18
mov edx, esi
mov dword [esp + 0x10], edx
add ebx, esi
sub ebp, esi
mov esi, dword [esp + 0x58]
mov eax, 0
sbb esi, eax
cmp edi, eax
mov dword [esp + 0x58], esi
je 0x41fca6
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 + 0x58]
mov eax, ebp
or eax, ecx
jne 0x41fc11
mov al, 1
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x14
mov esi, dword [esp + 0x60]
test esi, esi
je 0x41fd14
lea ecx, [esp + 0x18]
call fcn.00406140
lea ecx, [esp + 0x18]
mov dword [esp + 0x48], 0
call fcn.00406d30
mov edi, dword [esi]
lea ecx, [esp + 0x18]
call fcn.0040f350
push eax
push str.WriteFileError
mov ecx, esi
call dword [edi + 0x28]
lea ecx, [esp + 0x18]
mov dword [esp + 0x48], 0xffffffff
call fcn.00406430
xor al, al
jmp 0x41fcb6
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x41fd2a
mov edx, dword [ecx]
push str.fwrite_failed.
call dword [edx + 0x10]
xor al, al
jmp 0x41fcb6
Function at 0x41fd30
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44f818
push eax
mov dword fs:[0], esp
mov eax, dword [ecx + 4]
sub esp, 0x28
cmp eax, 0xffffffff
je 0x41fdc5
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41fdb0
mov esi, dword [esp + 0x40]
test esi, esi
je 0x41fdb0
push ebx
lea ecx, [esp + 0xc]
call fcn.00406140
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], 0
call fcn.00406d30
mov ebx, dword [esi]
lea ecx, [esp + 0xc]
call fcn.0040f350
push eax
mov ecx, esi
call dword [ebx + 0x10]
mov eax, dword [esi]
push str.Failed_to_get_file_size__32_
mov ecx, esi
call dword [eax + 0x10]
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], edi
call fcn.00406430
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x41fdec
push ecx
call fcn.0044d270
push eax
call fcn.0042a77b
add esp, 8
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4
mov ecx, dword [esp + 0x28]
or eax, 0xffffffff
mov dword fs:[0], ecx
add esp, 0x34
ret 4

Function at 0x41fe00
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44f838
push eax
mov dword fs:[0], esp
mov eax, dword [ecx + 4]
sub esp, 0x2c
cmp eax, 0xffffffff
push edi
je 0x41fec2
lea ecx, [esp + 4]
xor edi, edi
push ecx
push eax
mov dword [esp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x41fea2
push esi
mov esi, dword [esp + 0x44]
cmp esi, edi
je 0x41fe89
lea ecx, [esp + 0xc]
call fcn.00406140
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], edi
call fcn.00406d30
mov edi, dword [esi]
lea ecx, [esp + 0xc]
call fcn.0040f350
push eax
mov ecx, esi
call dword [edi + 0x10]
mov edx, dword [esi]
push str.Failed_to_get_file_size__64_
mov ecx, esi
call dword [edx + 0x10]
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00406430
or eax, 0xffffffff
pop esi
or edx, 0xffffffff
pop edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 4
mov ecx, dword [esp + 4]
push ecx
push eax
call fcn.0041f4e0
add esp, 8
pop edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 4
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x41feea
push ecx
call fcn.0044d270
push eax
call fcn.0042a7f3
add esp, 8
pop edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 4
mov ecx, dword [esp + 0x30]
or eax, 0xffffffff
or edx, 0xffffffff
pop edi
mov dword fs:[0], ecx
add esp, 0x38
ret 4

Function at 0x41ff10
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
ret
Function at 0x420b80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44f85b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea edi, [esi + 8]
mov ecx, edi
call fcn.00406140
xor eax, eax
mov ecx, edi
push eax
mov dword [esp + 0x18], eax
mov dword [esi + 0x34], eax
mov dword [esi], vtable.ParseEngine.0
call fcn.00405430
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x30], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x420c00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44f87b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 8]
mov ecx, edi
call fcn.00406140
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x18], 0
mov ecx, ebx
mov dword [esi + 0x34], 0
mov dword [esi], vtable.ParseEngine.0
call fcn.0040ce90
push eax
mov ecx, ebx
call fcn.0040f350
push eax
mov ecx, edi
call fcn.00405ec0
push 0
mov ecx, edi
call fcn.00405430
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x30], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4