joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414c30
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x64]
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.004145a0
push eax
call fcn.00410ee0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x414c85
push 0x1cb2
push 0xc
call fcn.00413b00
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov ebx, dword [esp + 0x6c]
mov eax, dword [ebx + 0x70]
mov edi, dword [ebx + 0x6c]
add eax, edi
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x74]
lea ecx, [eax + edx*2]
mov edx, dword [ebp]
lea eax, [ecx + ecx + 0x7a]
mov ecx, ebp
push eax
mov dword [esp + 0x68], eax
call dword [edx + 8]
mov edi, eax
push edi
mov dword [esp + 0x14], edi
call fcn.004a2973
mov esi, eax
add esp, 4
test esi, esi
jne 0x414cd9
push 0x1cbc
push 0x21
call fcn.00413b00
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x6c]
lea edi, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x68]
push ecx
push esi
push eax
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
push ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
call dword [edx + 0x10]
test eax, eax
je 0x414dc1
mov edi, dword [esp + 0x68]
mov ebp, dword [esp + 0x60]
mov ebx, dword [edi + 0x378]
mov eax, dword [edi + 0x37c]
test ebx, ebx
mov dword [esp + 0x64], eax
jne 0x414d5a
test eax, eax
jne 0x414d5a
lea edx, [esp + 0x64]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [esp + 0x64]
push 0
push eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x18]
push 0
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414dca
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x6c]
push edx
push esi
mov dword [edi + 0x378], ebx
mov dword [edi + 0x37c], eax
mov dword [edi + 0x380], ecx
call fcn.004289c0
add esp, 8
mov dword [edi + 0x384], eax
mov dword [esp + 0x14], 1
jmp 0x414dd9
push 0x1cc8
push 0x11
jmp 0x414dd1
push 0x1cd7
push 0xe
call fcn.00413b00
add esp, 8
push esi
call fcn.004a299c
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x416950
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x64]
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
and ecx, 0xffff
push eax
push ecx
call fcn.004145a0
push eax
call fcn.00410ee0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x4169ab
push 0x245e
push 0xc
call fcn.00413b00
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov eax, dword [esp + 0x70]
mov edx, dword [ebp]
push eax
mov ecx, ebp
call dword [edx + 8]
mov ebx, eax
push ebx
call fcn.004a2973
mov esi, eax
add esp, 4
test esi, esi
jne 0x4169e2
push 0x2467
push 0x21
call fcn.00413b00
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x70]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x64], eax
lea eax, [esp + 0x64]
lea edi, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x70]
push ebx
push esi
push ecx
push eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [ebp]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
call dword [edx + 0x10]
test eax, eax
je 0x416aa2
mov ebp, dword [esp + 0x60]
lea edx, [esp + 0x18]
xor ebx, ebx
push 1
push edx
push ebx
push ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x6c]
push ebx
push ecx
mov dword [esp + 0x1c], eax
mov dword [edi], eax
mov eax, dword [esp + 0x20]
push edx
push esi
push ebp
mov dword [edi + 4], eax
mov dword [esp + 0x80], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x416aab
mov eax, dword [esp + 0x70]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x64]
push eax
push esi
mov dword [edi + 8], eax
call fcn.004289c0
add esp, 8
mov dword [edi + 0xc], eax
mov dword [esp + 0x10], 1
jmp 0x416aba
push 0x2473
push 0x15
jmp 0x416ab2
push 0x247f
push 0xe
call fcn.00413b00
add esp, 8
push esi
call fcn.004a299c
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x416ad0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0x14]
sub esp, 0x44
mov ecx, dword [eax]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x5c]
cmp ecx, dword [esi + 0x10]
jae 0x416afd
push 0x249a
push 1
call fcn.00413b00
add esp, 8
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov edx, dword [esi + 8]
push edx
call fcn.004a2973
mov ebp, eax
xor ebx, ebx
add esp, 4
cmp ebp, ebx
jne 0x416b29
push 0x24a1
push 0x21
call fcn.00413b00
add esp, 8
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov ecx, dword [esi + 8]
push edi
mov edx, ecx
xor eax, eax
mov edi, ebp
push ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x5c]
and ecx, 3
mov dword [esp + 0x14], ebx
rep stosb byte es:[edi], al
mov ecx, dword [esi + 8]
lea eax, [esp + 0x64]
push eax
push ecx
push ebp
push edx
mov dword [esp + 0x74], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416c34
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x60]
cmp ecx, eax
jb 0x416c34
mov ecx, dword [esi + 0xc]
push ecx
push eax
push ebp
call fcn.00428990
add esp, 0xc
test eax, eax
je 0x416c19
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x14]
push 0x40
and eax, 0xffff
push edx
push eax
call fcn.004145a0
push eax
call fcn.00410ee0
mov edx, eax
add esp, 0x10
cmp edx, ebx
je 0x416c22
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + 0x68]
lea ecx, [esp + 0x58]
mov eax, dword [edx]
push ecx
mov ecx, dword [ebx]
push ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x70], eax
lea edi, [esp + 0x1c]
mov ecx, dword [ecx]
xor eax, eax
push ecx
mov ecx, dword [esi + 8]
push ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebp
push ecx
lea eax, [esp + 0x2c]
mov ecx, edx
mov edx, dword [esp + 0x80]
push eax
call dword [edx + 0x14]
test eax, eax
je 0x416c2b
mov eax, dword [esp + 0x58]
mov dword [esp + 0x10], 1
mov dword [ebx], eax
jmp 0x416c43
push 0x24b6
push 0x1c
jmp 0x416c3b
push 0x24c1
push 0xc
jmp 0x416c3b
push 0x24c9
push 0x12
jmp 0x416c3b
push 0x24af
push 0xd
call fcn.00413b00
add esp, 8
push ebp
call fcn.004a299c
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret

Function at 0x417970
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
jne 0x41798c
push 0x276d
push 1
call fcn.00413b00
add esp, 8
xor eax, eax
pop ebx
ret
push esi
push edi
mov ecx, 0x66
xor eax, eax
mov edi, ebx
mov esi, 0x4f58c0
rep stosd dword es:[edi], eax
mov ecx, 0x66
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x4e192c]
pop edi
cmp eax, 0xffffffff
pop esi
je 0x4179c1
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4179c1
mov dword [ebx + 0x20], eax
push ebx
call fcn.004288f0
add esp, 4
mov eax, 1
pop ebx
ret
Function at 0x417ba0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
cmp ebp, 0xffffffff
je 0x417c18
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x417c18
mov esi, dword [esp + 0x18]
test esi, esi
je 0x417c18
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x417c27
mov ecx, esi
push edi
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x18], 0
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
pop edi
jne 0x417c0f
push 0x27f5
push 0xd
call fcn.00413b00
add esp, 8
xor eax, eax
pop esi
pop ebp
pop ebx
ret
pop esi
pop ebp
mov eax, 1
pop ebx
ret
push 0x27e8
push 1
call fcn.00413b00
add esp, 8
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x417c30
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
cmp edx, 0xffffffff
je 0x417c7f
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x417c7f
mov eax, dword [esp + 0xc]
test eax, eax
je 0x417c7f
push esi
lea esi, [esp + 8]
push 0
push esi
push eax
push ecx
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop esi
jne 0x417c79
push 0x2807
push 0xe
call fcn.00413b00
add esp, 8
xor eax, eax
ret
mov eax, 1
ret
push 0x2800
push 1
call fcn.00413b00
add esp, 8
xor eax, eax
ret
Function at 0x41c0e0
Capabilities:
Access peb ldr_data
Timestomp file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b1b08
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
push edi
call fcn.0041b3f0
mov esi, dword [esp + 0x44]
add esp, 4
cmp esi, edi
je 0x41c208
push esi
call fcn.004386b2
add esp, 4
test eax, eax
je 0x41c208
mov ebx, dword [esp + 0x44]
cmp ebx, edi
je 0x41c208
push esi
lea ecx, [esp + 0x28]
call fcn.00428820
push edi
push edi
push 3
push edi
push 1
push 0xc0000000
push esi
mov dword [esp + 0x54], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41c187
push 0x1946
push 3
call fcn.0041b3d0
add esp, 8
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], esi
call fcn.004288c0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
push esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov eax, dword [esp + 0x48]
push eax
push ebx
push esi
call fcn.0041d2f0
add esp, 0xc
lea ecx, [esp + 0xc]
mov edi, eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
call fcn.004288c0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
push 0x1934
push 1
call fcn.0041b3d0
mov ecx, dword [esp + 0x38]
add esp, 8
xor eax, eax
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x41ce90
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x10
mov eax, 0xfff001
push ebx
mul dword [esp + 0x24]
push ebp
mov eax, dword [esp + 0x24]
push esi
push edi
mov edi, edx
mov ecx, dword [eax + 0x24]
shr edi, 4
xor ebx, ebx
inc edi
shl edi, 0xc
mov esi, edi
mov dword [esp + 0x1c], edi
sub esi, ecx
je 0x41d068
mov ebp, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push ecx
push ebp
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x41d056
or edx, 0xffffffff
sub edx, esi
cmp edx, eax
jb 0x41d056
push ebx
mov ebx, dword [esp + 0x2c]
add eax, esi
push eax
push ebx
call fcn.00429600
add esp, 0xc
test eax, eax
je 0x41d00b
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push ebp
call esi
push 0
push 0
push 0
push ebx
call esi
cmp edi, 0x10000
ja 0x41d024
push 0x10000
call fcn.004a2973
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41d03d
mov ebp, 1
mov dword [esp + 0x30], 0
mov ecx, 0x4000
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
xor edi, edi
mov eax, 0x10000
cmp ebp, edi
je 0x41cf6b
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x24]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push edi
push ecx
push eax
push ebx
push edx
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41cfbb
mov esi, dword [esp + 0x14]
cmp esi, edi
je 0x41cfe2
cmp ebp, edi
je 0x41cf96
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x18]
push edi
push eax
push esi
push ebx
push ecx
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41cfc4
cmp dword [esp + 0x18], esi
jb 0x41cfcb
xor ebp, ebp
jmp 0x41cf4e
push 0x1b2e
push 0xd
jmp 0x41cfd2
push 0x1b42
jmp 0x41cfd0
push 0x1b4a
push 0xe
call fcn.0041b3d0
add esp, 8
mov dword [esp + 0x30], 1
push ebx
call fcn.004a299c
mov eax, dword [esp + 0x34]
add esp, 4
cmp eax, edi
jne 0x41d01a
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword [ecx + 0x24], edx
pop ebx
add esp, 0x10
ret
push 0x1b08
push 0x25
call fcn.0041b3d0
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
push 0x1b15
push 0xf
call fcn.0041b3d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x1b1c
push 0x21
call fcn.0041b3d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x1b01
push 0x10009
call fcn.0041b3d0
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x41e070
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push 0xffffffffffffffff
push 0x110
mov ecx, esi
call fcn.0044afa0
mov ecx, esi
call fcn.0044b340
mov ebx, eax
mov ecx, 0x44
mov esi, 0x4f5fe0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x4e192c]
cmp eax, 0xffffffff
je 0x41e0b4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41e0b4
mov dword [ebx + 0x28], eax
add ebx, 0x48
push ebx
call fcn.004288f0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x41e190
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
cmp ebp, 0xffffffff
je 0x41e208
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x41e208
mov esi, dword [esp + 0x18]
test esi, esi
je 0x41e208
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x41e217
mov ecx, esi
push edi
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x18], 0
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
pop edi
jne 0x41e1ff
push 0x1f05
push 0xd
call fcn.0041b3d0
add esp, 8
xor eax, eax
pop esi
pop ebp
pop ebx
ret
pop esi
pop ebp
mov eax, 1
pop ebx
ret
push 0x1ef8
push 1
call fcn.0041b3d0
add esp, 8
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x41e220
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
cmp edx, 0xffffffff
je 0x41e26f
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x41e26f
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41e26f
push esi
lea esi, [esp + 8]
push 0
push esi
push eax
push ecx
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop esi
jne 0x41e269
push 0x1f17
push 0xe
call fcn.0041b3d0
add esp, 8
xor eax, eax
ret
mov eax, 1
ret
push 0x1f10
push 1
call fcn.0041b3d0
add esp, 8
xor eax, eax
ret
Function at 0x424560
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x4f654c]
sub esp, 0x218
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
je 0x424705
mov ebp, dword [esp + 0x22c]
cmp ebp, ebx
je 0x424705
push 0x4f6550
call fcn.004386b2
add esp, 4
test eax, eax
je 0x424705
xor eax, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x16], eax
push ecx
mov dword [esp + 0x1e], eax
mov word [esp + 0x18], bx
mov dword [esp + 0x22], eax
mov word [esp + 0x26], ax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x2a]
mov word [esp + 0x28], bx
mov edx, dword [0x4f6548]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1e]
push edx
mov edx, dword [esp + 0x20]
and ecx, 0xffff
stosw word es:[edi], ax
mov eax, dword [esp + 0x24]
and edx, 0xffff
and eax, 0xffff
push eax
mov eax, dword [esp + 0x22]
push ecx
mov ecx, dword [esp + 0x22]
push edx
mov edx, dword [esp + 0x24]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x44]
push str.__04d__02d__02d__02d:_02d:_02d____d_
push eax
call fcn.00438ab8
add esp, 0x24
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x10000000
push 0x4f6550
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x424705
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jne 0x424683
lea ecx, [esp + 0x10]
push ebx
push ecx
lea edx, [esp + 0x2c]
push 2
push edx
push esi
mov dword [esp + 0x38], 0xfeff
call edi
lea eax, [esp + 0x10]
push ebx
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.004386b2
add esp, 4
lea edx, [esp + 0x30]
shl eax, 1
push eax
push edx
push esi
call edi
push ebp
call fcn.004386b2
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4246ee
lea eax, [esp + 0x10]
push 0
push eax
push ebp
call fcn.004386b2
add esp, 4
shl eax, 1
push eax
push ebp
push esi
call edi
cmp word [ebp + ebx*2 - 2], 0xa
je 0x4246ee
lea ecx, [esp + 0x10]
push 0
push ecx
push 0x4e08c8
call fcn.004386b2
add esp, 4
shl eax, 1
push eax
push 0x4e08c8
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x218
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret

Function at 0x425150
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
cmp edx, 0xffffffff
je 0x42519f
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x42519f
mov eax, dword [esp + 0xc]
test eax, eax
je 0x42519f
push esi
lea esi, [esp + 8]
push 0
push esi
push eax
push ecx
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop esi
jne 0x425199
push 0x23e
push 0xe
call fcn.00424810
add esp, 8
xor eax, eax
ret
mov eax, 1
ret
push 0x237
push 1
call fcn.00424810
add esp, 8
xor eax, eax
ret
Function at 0x426ae0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x58
xor edx, edx
push ebp
mov ebp, dword [esp + 0x64]
push esi
cmp ebp, edx
push edi
je 0x426c0f
mov esi, dword [esp + 0x68]
mov ecx, 0xe2
xor eax, eax
mov edi, ebp
cmp esi, edx
rep stosd dword es:[edi], eax
je 0x426c0f
mov al, byte [esi + 6]
push ebx
mov ebx, eax
mov ecx, 0xf
shr eax, 1
and eax, 1
lea edi, [esp + 0x29]
mov dword [esp + 0x14], eax
xor eax, eax
mov byte [esp + 0x28], dl
mov dword [esp + 0x70], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x6c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x6c], edx
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x74]
push ecx
mov ecx, dword [esi + 0x10]
push edx
lea eax, [esp + 0x34]
and ebx, 1
push 0x40
xor edx, edx
push eax
mov dl, byte [esi + 5]
push ebx
push ecx
push edx
call fcn.00424d20
xor eax, eax
mov edx, dword [esp + 0x90]
mov dword [esp + 0x39], eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x3d], eax
push ecx
mov dword [esp + 0x45], eax
push edx
mov word [esp + 0x4d], ax
mov byte [esp + 0x40], 0
mov byte [esp + 0x4f], al
lea eax, [esp + 0x50]
push eax
call fcn.0042f280
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
lea ecx, [ebp + 0x28]
add esp, 0x2c
mov dword [ecx], edx
mov edx, dword [esp + 0x20]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x24]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x18]
mov dword [ebp + 0x18], ecx
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov ecx, 0x20
call fcn.00438dc0
xor edx, edx
mov dword [ebp + 0x1c], eax
mov dl, byte [esi + 7]
xor eax, eax
mov dword [ebp + 0x24], edx
mov al, byte [esi + 5]
mov dword [ebp + 0x20], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x1ec], ecx
mov edx, dword [esi + 0x10]
mov dword [ebp + 0x1f4], ebx
pop ebx
mov dword [ebp + 0x1f0], eax
pop edi
mov dword [ebp + 0x1e8], edx
mov eax, 1
pop esi
pop ebp
add esp, 0x58
ret
pop edi
pop esi
mov eax, edx
pop ebp
add esp, 0x58
ret
Function at 0x4282b0
Capabilities:
Get file size

Disassembly:
sub esp, 0x18
mov ecx, dword [esp + 0x1c]
push ebp
push esi
lea eax, [esp + 0x14]
push edi
xor edi, edi
push eax
push ecx
mov dword [esp + 0x1c], edi
xor ebp, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
cmp eax, edi
jne 0x4282e6
cmp ecx, edi
je 0x4283d1
xor esi, esi
xor edx, edx
or esi, eax
or ecx, edx
mov dword [esp + 0x20], ecx
ja 0x4282fd
cmp esi, 0x20
jbe 0x4283ec
push ebx
push 0x200
call fcn.004a2973
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x428404
mov ecx, 0x80
xor eax, eax
mov edi, ebx
push eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x30]
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x24]
test eax, eax
ja 0x42833e
cmp esi, 0x200
jbe 0x428343
mov esi, 0x200
mov ecx, dword [esp + 0x30]
push 0
lea eax, [esp + 0x14]
push 0
push eax
push esi
push ebx
push edi
push ecx
mov dword [esp + 0x2c], 0
call fcn.004296b0
add esp, 0x1c
test eax, eax
je 0x42840d
cmp esi, dword [esp + 0x10]
jne 0x428416
add esi, esi
push esi
call fcn.004a2973
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x42841f
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ebx
push ecx
push ebp
mov dword [esp + 0x24], esi
call fcn.00470d60
test eax, eax
jne 0x428428
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add edx, 0x20
cmp edx, eax
ja 0x428431
mov dword [esp + 0x18], 1
jmp 0x428440
push 0xfd7
push 0x1000b
call fcn.00424810
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x18
ret
push 0xfdf
push 0x30
call fcn.00424810
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x18
ret
push 0xfe6
push 0x21
jmp 0x428438
push 0xff3
push 0xd
jmp 0x428438
push 0xff9
push 0xd
jmp 0x428438
push 0x1003
push 0x21
jmp 0x428438
push 0x100c
push 0x2f
jmp 0x428438
push 0x1012
push 0x30
call fcn.00424810
add esp, 8
test ebx, ebx
je 0x42844d
push ebx
call fcn.004a299c
add esp, 4
test ebp, ebp
pop ebx
je 0x42845b
push ebp
call fcn.004a299c
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
add esp, 0x18
ret

Function at 0x428820
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4b20cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4bc794]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 4]
mov dword [edi], eax
mov ebp, dword [esp + 0x24]
xor ebx, ebx
push ebp
mov ecx, edi
mov dword [esp + 0x20], ebx
mov dword [esi], 0x4b7e1c
call fcn.00447e90
mov edi, dword [edi]
mov dword [esi + 8], ebx
push edi
call fcn.00428910
mov ebx, eax
add esp, 4
test bl, 1
je 0x428889
and ebx, 0xfffffffe
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x428889
mov dword [esi + 8], ebx
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4