joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423b87
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, 0x4711cc
call fcn.004549fc
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov edi, dword [esi + 0x2c]
mov eax, dword [esi + 0x30]
and dword [ebp - 4], 0
cmp edi, eax
je 0x423bc9
push ebx
lea ebx, [edi + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x423bb6
mov eax, 0x476650
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add edi, 0x28
add ebx, 0x28
cmp edi, dword [esi + 0x30]
jne 0x423bab
pop ebx
mov eax, dword [esi + 8]
test eax, eax
jne 0x423bd5
mov eax, 0x476650
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esi + 0x28]
call fcn.004079c5
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00402424
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4272e8
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4717ae
call fcn.004549fc
push ecx
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x14], ebx
call fcn.00456534
mov eax, 0x477c38
lea edi, [ebx + 0x10]
mov esi, eax
and dword [ebp - 4], 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x20]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x30]
lea eax, [ebp - 0xd]
mov edi, 0x4765e0
mov esi, 0x4765d8
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.0040190c
lea ecx, [ebx + 0x58]
lea eax, [ebp - 0xe]
push 0
push eax
mov byte [ebp - 4], 1
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.0040190c
mov eax, dword [ebp + 8]
mov ecx, ebx
mov byte [ebp - 4], 2
mov dword [ebx], 0x476808
mov dword [ebx + 0xc], eax
call fcn.00427476
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x42737a
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4717d6
call fcn.004549fc
push ecx
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x14], ebx
call fcn.00456534
and dword [ebp - 4], 0
lea edi, [ebx + 0x30]
lea eax, [ebp - 0xd]
mov esi, 0x4765d8
push 0
push eax
mov ecx, edi
mov dword [edi], 0x4765e0
mov dword [edi + 0x20], esi
call fcn.0040190c
lea ecx, [ebx + 0x58]
lea eax, [ebp - 0xe]
push 0
push eax
mov byte [ebp - 4], 1
mov dword [ecx], 0x4765e0
mov dword [ecx + 0x20], esi
call fcn.0040190c
mov esi, dword [ebp + 8]
mov dword [ebx], 0x476808
mov ecx, edi
mov byte [ebp - 4], 2
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [esi + 0x30]
push eax
call fcn.00401d42
lea eax, [esi + 0x58]
lea ecx, [ebx + 0x58]
push eax
call fcn.00401d42
add esi, 0x20
lea edi, [ebx + 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x10]
lea edi, [ebx + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x429b52
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
and dword [ebp - 0x14], 0
push esi
push edi
mov edi, ecx
call fcn.0040116a
push 1
lea eax, [ebp - 0x150]
pop esi
mov dword [ebp - 0x150], 0x114
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 4], eax
sub eax, 0
mov dword [ebp - 8], ecx
je 0x429c02
dec eax
je 0x429bf7
dec eax
jne 0x429c09
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], 2
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x3c]
push 4
dec eax
pop ecx
je 0x429be7
dec eax
je 0x429bde
dec eax
jne 0x429bea
mov dword [ebp - 0x18], 5
jmp 0x429bea
mov dword [ebp - 0x18], 3
jmp 0x429bea
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x14c], ecx
jb 0x429c09
mov dword [ebp - 0x14], esi
jmp 0x429c09
movzx eax, cx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jmp 0x429c09
mov dword [ebp - 0x18], 7
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00401166
mov ecx, eax
call fcn.0042af2e
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x42a049
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, edx
dec edx
test eax, eax
je 0x42a086
mov eax, dword [ecx + 0xd8]
push esi
lea esi, [edx + 1]
mov edx, dword [ebp + 8]
push edi
mov ecx, dword [ebp + 0x10]
movzx edi, byte [edx]
and ecx, 0xff
xor ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 8
mov ecx, dword [eax + ecx*4]
inc edx
xor edi, ecx
dec esi
mov dword [ebp + 0x10], edi
jne 0x42a064
pop edi
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc
Function at 0x42cff9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x42d03e
mov eax, dword [ebp + 8]
test eax, eax
je 0x42d013
and dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42d09a
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0042cef3
lea eax, [ebp - 0x4c]
push 0x482388
push eax
call fcn.00455bf6
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42d09a
cmp dword [ebp + 8], 0
jne 0x42d073
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0042cb69
lea eax, [ebp - 0x48]
push 0x4821d8
push eax
call fcn.00455bf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42d09a
push 1
add esi, 0xc
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.0042ce2c
lea eax, [ebp - 0x48]
push 0x4821d8
push eax
call fcn.00455bf6
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x42f0dc
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x472365
call fcn.004549fc
sub esp, 0x8d0
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x8da]
mov word [ebp - 0x8dc], bx
push 0x400
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x8dc]
lea ecx, [esi + 0x18]
push eax
push 0x494ad8
push 0x48e988
push 0x48a360
call fcn.00402b35
cmp word [ebp - 0x8dc], bx
jne 0x42f13e
xor eax, eax
jmp 0x42f29a
lea eax, [ebp - 0xdc]
mov ecx, esi
push eax
call fcn.0042affa
mov eax, dword [eax + 8]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x42f15b
mov eax, 0x476650
mov edi, 0x4765e0
mov esi, 0x4765d8
cmp eax, ebx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], esi
jne 0x42f174
mov eax, 0x494ad8
lea ecx, [ebp - 0xe]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004011a9
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 2
call fcn.00402424
lea eax, [ebp - 0x8dc]
mov dword [ebp - 0x64], edi
test eax, eax
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x8dc]
jne 0x42f1ac
mov eax, 0x494ad8
lea ecx, [ebp - 0xd]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x64]
call fcn.004011a9
push ebx
lea eax, [ebp - 0xb4]
push ebx
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.00411c74
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
push ecx
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, eax
call fcn.0040aa61
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.00401d42
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 4
call fcn.00401093
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 3
call fcn.00401093
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00401093
push 4
lea eax, [ebp - 0xd]
sub esp, 0x28
lea ecx, [ebp - 0x38]
mov esi, esp
mov dword [ebp - 0x14], esp
push 1
push eax
call fcn.004303a2
push eax
mov ecx, esi
call fcn.00402d75
call fcn.0043a884
add esp, 0x2c
cmp al, bl
jne 0x42f266
lea eax, [ebp - 0x8dc]
test eax, eax
lea eax, [ebp - 0x8dc]
jne 0x42f25d
mov eax, 0x494ad8
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040b326
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x42f272
mov eax, 0x4765fc
push 1
push ebx
push ebx
push eax
push 0x48e9ac
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
lea ecx, [ebp - 0x3c]
sbb esi, esi
or dword [ebp - 4], 0xffffffff
neg esi
call fcn.00401093
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4309fa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x430a0e
push 1
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x430a42
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0044d397
test al, al
jne 0x430a75
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0042cef3
lea eax, [ebp - 0x4c]
push 0x482388
push eax
call fcn.00455bf6
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x430a75
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0042cb69
lea eax, [ebp - 0x48]
push 0x4821d8
push eax
call fcn.00455bf6
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x430a7d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x430a91
push 8
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x430ac5
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0044d397
test al, al
jne 0x430af8
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0042cef3
lea eax, [ebp - 0x4c]
push 0x482388
push eax
call fcn.00455bf6
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x430af8
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0042cb69
lea eax, [ebp - 0x48]
push 0x4821d8
push eax
call fcn.00455bf6
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x4341ed
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esp + 8], 0
je 0x434209
mov ecx, esi
call fcn.0043420d
pop esi
ret 4

Function at 0x434503
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x472e36
call fcn.004549fc
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x18], esi
or dword [esi + 0x220], 0xffffffff
lea eax, [esi + 0x228]
mov dword [esi + 0x20c], edi
mov dword [esi + 0x210], edi
mov byte [esi + 0x214], 1
mov byte [esi + 0x215], 1
mov byte [esi + 0x216], 1
mov dword [esi + 0x21c], edi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
push dword [ebp + 8]
lea ebx, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], 0x47706c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 1
push ebx
call fcn.004346c5
pop ecx
mov dword [esi + 0x218], eax
pop ecx
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x20c], eax
jne 0x4345b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x21c], eax
jmp 0x4346b2
push 0x2e
mov dword [esi + 0x210], 1
call fcn.00454b4e
push 0x2e
push edi
push eax
mov dword [esi + 0x224], eax
call fcn.004550b0
add esp, 0x10
mov ecx, esi
push edi
push edi
push dword [esi + 0x218]
push dword [esi + 0x20c]
call fcn.00435884
test eax, eax
je 0x4346b2
lea eax, [ebp - 0x14]
push edi
push eax
push 0x2e
push dword [esi + 0x224]
push dword [esi + 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x4346b2
cmp dword [ebp - 0x14], edi
je 0x4346b2
mov ecx, esi
call fcn.00434bdb
test eax, eax
je 0x434638
mov eax, dword [esi + 0x224]
mov ax, word [eax + 0xe]
cmp ax, di
jne 0x4346a7
push edi
push ebx
call fcn.004346c5
cmp eax, dword [esi + 0x218]
pop ecx
pop ecx
jbe 0x43464f
mov dword [esi + 0x218], eax
push edi
push edi
push dword [esi + 0x218]
mov ecx, esi
push dword [esi + 0x20c]
call fcn.00435884
test eax, eax
je 0x4346b2
lea eax, [ebp - 0x10]
push edi
push eax
push 0x2e
push dword [esi + 0x224]
push dword [esi + 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x4346b2
cmp dword [ebp - 0x14], edi
je 0x4346b2
mov ecx, esi
call fcn.00434bdb
test eax, eax
je 0x4346b2
mov eax, dword [esi + 0x224]
mov ax, word [eax + 0xe]
cmp ax, di
je 0x4346b2
movzx eax, ax
push eax
mov ecx, esi
call fcn.00435782
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x434986
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
mov eax, 0x472e6c
call fcn.004549fc
sub esp, 0x4c
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov esi, dword [edi + 0xa8]
cmp esi, eax
je 0x434a91
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4349cf
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
push edi
push 0x48ecd0
call fcn.00434ae1
pop ecx
test eax, eax
pop ecx
je 0x4349fb
cmp dword [eax + 0xc], esi
jne 0x4349fb
mov ecx, dword [eax + 0x14]
mov edx, dword [edi + 0xac]
mov dword [ebp + 0xc], edx
mov edi, ecx
lea eax, [ecx + ebx]
mov dword [ebp + 0x10], edx
jmp 0x434a4e
push edi
push 0x48ecc8
call fcn.00434ae1
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x434a21
push edi
push 0x48ecc0
call fcn.00434ae1
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x434a91
mov edi, dword [edi + 0xac]
push 0x1c
mov dword [ebp + 0x10], edi
mov eax, edi
xor edx, edx
pop edi
div edi
test eax, eax
mov dword [ebp + 0xc], eax
je 0x434a91
sub esi, dword [ecx + 0xc]
mov eax, dword [ecx + 0x14]
lea ecx, [eax + esi]
mov edi, ecx
lea eax, [ecx + ebx]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x10], ecx
mov ecx, eax
sub ecx, ebx
cmp ecx, dword [ebp - 0x18]
jbe 0x434a9c
cmp dword [ebp + 8], 0
je 0x434a9c
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, edi
xor edx, edx
div dword [ebp - 0x3c]
xor edx, edx
mov esi, eax
mov eax, edi
div dword [ebp - 0x3c]
imul esi, dword [ebp - 0x3c]
add edx, dword [ebp + 0x10]
push edx
push esi
push 0
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x434a95
xor eax, eax
jmp 0x434ad2
mov dword [ebp - 0x10], eax
sub eax, esi
add eax, edi
mov edx, dword [ebp + 0xc]
test edx, edx
jbe 0x434abb
add eax, 0x10
mov ecx, dword [eax]
mov esi, dword [eax + 8]
add esi, ecx
cmp esi, dword [ebp + 0x14]
jbe 0x434ab5
add dword [ebp - 0x14], ecx
add eax, 0x1c
dec edx
jne 0x434aa6
cmp dword [ebp - 0x10], 0
je 0x434acf
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x434acf
push dword [ebp - 0x10]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x434fe6
Capabilities:
Get common file path

Disassembly:
mov eax, 0x472ee8
call fcn.004549fc
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0xd]
mov ebx, 0x476628
mov esi, 0x476620
push 0
push eax
mov dword [ebp - 0x14], edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.00403bf5
and dword [ebp - 4], 0
lea eax, [ebp - 0xe]
push 0
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x28], esi
call fcn.00403bf5
mov esi, 0x104
lea eax, [ebp - 0x20]
push esi
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00402dad
mov ecx, dword [eax]
mov byte [ebp - 4], 2
mov byte [eax + 4], 1
call fcn.00403dc2
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00402ebf
lea eax, [ebp - 0x20]
push esi
push eax
mov ecx, edi
call fcn.00402dad
mov ecx, dword [eax]
mov byte [ebp - 4], 3
mov byte [eax + 4], 1
call fcn.00403dc2
mov ecx, dword [ebp - 0x40]
mov eax, dword [eax]
test ecx, ecx
jne 0x435090
mov ecx, 0x476650
push eax
push 0
push 0x48ecd8
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00402ebf
and byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00402424
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x435782
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
jle 0x4357ff
mov esi, 0x138
push esi
call fcn.00454b4e
mov ebx, eax
push esi
push 0
push ebx
call fcn.004550b0
add esp, 0x10
lea eax, [ebp - 8]
push 0
push eax
push esi
push ebx
push dword [edi + 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4357ff
cmp dword [ebp - 8], 0
je 0x4357ff
push ebx
lea ecx, [edi + 0x228]
call fcn.00435b3b
push 1
push 0
push dword [ebx + 0x10c]
mov ecx, edi
push dword [edi + 0x20c]
call fcn.00435884
test eax, eax
je 0x4357ff
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jl 0x43579b
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4358c0
Capabilities:
Clear file content
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
push ebx
push esi
push edi
xor esi, esi
push 0x2e
lea eax, [ebp - 0x40]
push esi
mov edi, ecx
push eax
call fcn.004550b0
add esp, 0xc
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.0043519a
test eax, eax
je 0x435a10
push esi
push 0x80
push 3
push esi
lea eax, [edi + 4]
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp + 8], ebx
je 0x435a04
cmp dword [edi + 0x230], 1
jbe 0x435971
mov eax, dword [edi + 0x218]
push 1
push esi
push eax
push ebx
mov ecx, edi
call fcn.00435884
test eax, eax
je 0x435a10
push dword [0x48ecac]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [edi + 0x230]
push esi
dec eax
mov word [ebp - 0x32], ax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push 0x2e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xc]
push esi
add eax, 0xfffffec8
push esi
push eax
push ebx
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.00435884
test eax, eax
je 0x435a10
mov eax, dword [ebp - 0x10]
push esi
push dword [ebp + 8]
mov ebx, dword [eax + 0x10c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0xc]
add ecx, ebx
cmp ecx, eax
jne 0x4359d8
cmp dword [edi + 0x230], 1
jne 0x4359ca
push esi
push esi
push dword [edi + 0x218]
mov ecx, edi
push dword [ebp + 8]
call fcn.00435884
test eax, eax
je 0x435a10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x435a8e
mov eax, dword [ebp - 8]
push esi
push 0x80
push 3
lea ebx, [ebx + eax + 0x138]
push esi
push 3
lea eax, [edi + 4]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x435a19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x21c], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push 1
push esi
push ebx
push eax
mov ecx, edi
call fcn.00435884
test eax, eax
je 0x435a10
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x440]
push 0x400
push eax
push dword [ebp - 8]
call ebx
test eax, eax
je 0x435a7c
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x440]
push dword [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 4], esi
je 0x435a7c
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x440]
push 0x400
push eax
push dword [ebp - 8]
jmp 0x435a43
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
mov ecx, edi
call fcn.00435aa9
push 1
pop eax
jmp 0x435a12
Function at 0x43623a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
mov esi, 0x494ad8
push edi
push esi
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x10], edi
call ebx
push esi
push dword [ebp + 0x10]
call ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
je 0x4363c1
push esi
call fcn.00456983
push esi
push edi
push eax
mov dword [ebp - 8], eax
call fcn.004550b0
add esp, 0x10
push dword [ebp - 8]
push esi
push edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4363b8
lea eax, [ebp - 0x44]
push 0x34
mov dword [ebp + 8], eax
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.004550b0
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp + 8]
push eax
push 0x48c2b8
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4362fc
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
shr ecx, 0x10
push edx
push ecx
movzx ecx, ax
shr eax, 0x10
push ecx
push eax
push 0x48ee14
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push 0x34
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call fcn.004550b0
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x48ede0
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4363b8
push 0x7f
mov word [ebp - 0x244], di
mov esi, dword [ebp - 4]
pop ecx
xor eax, eax
lea edi, [ebp - 0x242]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
xor edi, edi
shr esi, 2
test esi, esi
mov dword [ebp + 0xc], eax
jle 0x4363b8
and dword [ebp - 0xc], 0
test edi, edi
jle 0x43635e
add dword [ebp + 0xc], 4
push 4
lea eax, [ebp - 0xc]
push dword [ebp + 0xc]
push eax
call fcn.004553b0
movzx eax, word [ebp - 0xc]
add esp, 0xc
test edi, edi
push eax
jne 0x43638f
lea eax, [ebp - 0x244]
push 0x48df7c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x4363a7
push dword [ebp + 0x10]
lea eax, [ebp - 0x244]
push 0x48edd4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 0x10]
call ebx
inc edi
cmp edi, esi
jl 0x436352
push dword [ebp - 8]
call fcn.0045689a
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4365ef
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push dword [0x48ece0]
lea eax, [ebp - 0x800]
push dword [ebp + 8]
push eax
call fcn.0043691c
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
lea eax, [ebp - 0x800]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x436634
xor eax, eax
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
pop eax
leave
ret