joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2e03d79f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x2e0d530c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.2e046a1a
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
push dword [ebp + 8]
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, 0x80070057
jne 0x2e03d826
push 0x2e004a48
lea eax, [ebp - 0x424]
push 0x1d
push eax
call fcn.2e037fce
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x2e0c8a64
lea eax, [ebp - 0x318]
lea edi, [ebp - 0x318]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e045e33
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.2e035e87
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.2e046266
leave
ret 8

Function at 0x2e03d8ef
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0x104
mov ecx, esi
call fcn.2e0384c0
mov edi, dword [esi + 0x18]
push 0
mov ecx, esi
call fcn.2e038039
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x2e03d95c
push 0x2e004aa8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.2e038002
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x2e0c8a64
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e045e33
push 0
push eax
mov ecx, esi
call fcn.2e0384c0
pop edi
pop esi
leave
ret 4

Function at 0x2e03df51
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x2e03df62
mov eax, dword [eax + 4]
jmp 0x2e03df65
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x2e03df75
xor al, al
jmp 0x2e03df7a
shr al, 4
and al, 1
pop ebp
ret 4

Function at 0x2e03df7e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x2e03df99
mov eax, dword [esi]
jmp 0x2e03df9b
mov eax, esi
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x2e03dff2
cmp eax, 0x50
je 0x2e03dff2
cmp eax, 0xb7
je 0x2e03dff2
cmp dword [edi + 0x18], 8
jb 0x2e03dfbe
mov esi, dword [esi]
push esi
push 0x2e004ae8
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.2e038002
add esp, 0x10
push 0x43
pop ecx
mov esi, eax
push 0x2e0c8a64
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e045e33
pop edi
pop esi
leave
ret 4
Function at 0x2e03dff8
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x218
cmp dword [eax + 0x18], 8
jb 0x2e03e00f
mov eax, dword [eax + 4]
jmp 0x2e03e012
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x2e03e056
push 0x2e004b18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.2e038002
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x2e0c8a64
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e045e33
leave
ret 4
Function at 0x2e03e38b
Capabilities:
Enumerate files on windows

Disassembly:
push 0x4cc
mov eax, 0x2e0c31c8
call fcn.2e0462de
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push ebx
mov dword [ebp - 0x2a4], esi
mov dword [ebp - 0x2a0], ebx
mov dword [ebp - 0x29c], eax
call fcn.2e03df51
test al, al
jne 0x2e03e402
cmp dword [ebx + 0x18], 8
jb 0x2e03e3ca
mov ebx, dword [ebx + 4]
jmp 0x2e03e3cd
add ebx, 4
push ebx
push 0x2e004bbc
lea eax, [ebp - 0x4d8]
push 0x22
push eax
call fcn.2e037fce
add esp, 0x10
push 0x43
pop ecx
mov esi, eax
push 0x2e0c8a64
lea eax, [ebp - 0x3cc]
lea edi, [ebp - 0x3cc]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e045e33
mov ecx, esi
call fcn.2e039a4d
xor edi, edi
push edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], 7
call fcn.2e035a4a
push 0xffffffffffffffff
push edi
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], edi
call fcn.2e035d86
mov esi, 0x2e004a1c
push esi
lea ecx, [ebp - 0x2c]
call fcn.2e035ead
push 1
push eax
push ebx
mov byte [ebp - 4], 1
call fcn.2e03f34b
mov bl, al
neg bl
push edi
sbb bl, bl
push 1
lea ecx, [ebp - 0x2c]
inc bl
mov byte [ebp - 4], 0
call fcn.2e035b71
test bl, bl
je 0x2e03e488
push esi
lea ecx, [ebp - 0x2c]
call fcn.2e035ead
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.2e03685d
push edi
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.2e035b71
push 0xffffffffffffffff
push edi
push dword [ebp - 0x29c]
lea ecx, [ebp - 0x48]
call fcn.2e03685d
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x2e03e4a5
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x298]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x29c], eax
cmp eax, 0xffffffff
jne 0x2e03e4f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x2e03e5cb
cmp eax, 2
je 0x2e03e5cb
push 0x2e004b84
push eax
lea eax, [ebp - 0x4d8]
push eax
call fcn.2e038002
add esp, 0xc
jmp 0x2e03e3e4
push dword [ebp - 0x2a0]
lea ecx, [ebp - 0x2c]
call fcn.2e03692c
push esi
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 3
call fcn.2e035ead
push 1
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 4
call fcn.2e03f34b
mov bl, al
neg bl
push edi
sbb bl, bl
push 1
lea ecx, [ebp - 0x2c0]
inc bl
mov byte [ebp - 4], 3
call fcn.2e035b71
test bl, bl
je 0x2e03e56a
push esi
lea ecx, [ebp - 0x2c0]
call fcn.2e035ead
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.2e03685d
push edi
push 1
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 3
call fcn.2e035b71
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.2e036ab7
lea eax, [ebp - 0x2c]
push eax
call fcn.2e041f5b
test al, al
je 0x2e03e595
mov ecx, dword [ebp - 0x2a4]
lea eax, [ebp - 0x2c]
push eax
call fcn.2e039e0f
push edi
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.2e035b71
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x29c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x2e03e4f0
push dword [ebp - 0x29c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.2e035b71
call fcn.2e046361
ret 0xc
Function at 0x2e03f679
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10220
call fcn.2e047888
mov eax, dword [0x2e0d530c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x10008], 0
cmp dword [eax + 0x18], 8
push esi
push edi
mov edi, dword [ebp + 8]
jb 0x2e03f6aa
mov eax, dword [eax + 4]
jmp 0x2e03f6ad
add eax, 4
mov esi, 0x7fff
push esi
lea ecx, [ebp - 0x10004]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x2e03f6e9
cmp eax, esi
ja 0x2e03f6e9
lea eax, [ebp - 0x10004]
push eax
mov ecx, edi
call fcn.2e035ead
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.2e046266
leave
ret 8
push 0x2e004c6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10220]
push eax
call fcn.2e038002
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x2e0c8a64
lea eax, [ebp - 0x10114]
lea edi, [ebp - 0x10114]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e045e33
int3

Function at 0x2e03f723
Capabilities:
Accept command line arguments

Disassembly:
push 0x240
mov eax, 0x2e0c342b
call fcn.2e0462de
mov eax, dword [ebp + 8]
and dword [ebp - 0x30], 0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
jne 0x2e03f78c
push 0x2e004c94
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.2e038002
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x2e0c8a64
lea eax, [ebp - 0x140]
lea edi, [ebp - 0x140]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e045e33
xor esi, esi
cmp dword [ebp - 0x30], esi
jle 0x2e03f7c4
push dword [edi + esi*4]
lea ecx, [ebp - 0x2c]
call fcn.2e035ead
mov ecx, dword [ebp - 0x34]
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.2e039e0f
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.2e035b71
inc esi
cmp esi, dword [ebp - 0x30]
jl 0x2e03f793
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call fcn.2e046361
ret 4

Function at 0x2e0401c5
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push esi
push edi
xor ecx, ecx
xor eax, eax
lea edi, [ebp - 4]
mov dword [ebp - 8], ecx
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x2e0401eb
mov eax, dword [esi]
jmp 0x2e0401ed
mov eax, esi
push ecx
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x2e040240
cmp dword [edi + 0x18], 8
jb 0x2e040206
mov esi, dword [esi]
push esi
push 0x2e004f10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.2e038002
add esp, 0x10
push 0x43
pop ecx
mov esi, eax
push 0x2e0c8a64
lea eax, [ebp - 0x114]
lea edi, [ebp - 0x114]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e045e33
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
pop esi
leave
ret 4
Function at 0x2e0403a7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x218
lea ecx, [eax - 0x41]
push esi
cmp cx, 0x19
ja 0x2e0403c5
movzx esi, ax
sub esi, 0x41
jmp 0x2e0403d4
lea ecx, [eax - 0x61]
cmp cx, 0x19
ja 0x2e040424
movzx esi, ax
sub esi, 0x61
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
test eax, eax
jne 0x2e040419
push 0x2e004ff8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push 0xf
push eax
call fcn.2e039f88
add esp, 0x10
push 0x43
pop ecx
mov esi, eax
push 0x2e0c8a64
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e045e33
mov ecx, esi
shr eax, cl
pop esi
and al, 1
leave
ret 4
push 0x2e004fdc
lea eax, [ebp - 0x218]
push 0x1d
push eax
call fcn.2e037fce
add esp, 0xc
jmp 0x2e0403fb

Function at 0x2e0407b1
Capabilities:
Get common file path
Get file version info

Disassembly:
push 0x264
mov eax, 0x2e0c357c
call fcn.2e0462de
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x14], 7
call fcn.2e035a4a
push ebx
push 0x104
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.2e0384c0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
push ebx
call fcn.2e038039
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
jne 0x2e040839
push 0x2e005120
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.2e038002
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x2e0c8a64
lea eax, [ebp - 0x164]
lea edi, [ebp - 0x164]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e045e33
push ebx
push eax
lea ecx, [ebp - 0x2c]
call fcn.2e0384c0
mov esi, 0x2e004a1c
push esi
lea ecx, [ebp - 0x2c]
call fcn.2e036ab7
push 0x2e005110
lea ecx, [ebp - 0x58]
call fcn.2e035ead
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.2e03685d
push ebx
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.2e035b71
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x2e040888
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x38]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x30], eax
cmp eax, ebx
jbe 0x2e0408fb
push 1
push 0x1b4
push 0x2e0050ec
push eax
call fcn.2e03fcc7
mov edi, eax
cmp edi, ebx
je 0x2e0408fb
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x2e0408bd
lea eax, [ebp - 0x28]
push edi
push dword [ebp - 0x30]
push dword [ebp - 0x38]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x2e0408f5
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
push esi
push edi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x3c], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x2e0408f5
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 8]
cmp eax, dword [ebp + 8]
sbb eax, eax
mov dword [ebp - 0x34], eax
push edi
call fcn.2e03fc9f
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.2e035b71
mov eax, dword [ebp - 0x34]
call fcn.2e046361
ret 4
Function at 0x2e041a12
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [ebp + 8]
and dword [ebp - 8], 0
push ebx
push esi
push edi
push 0x10
mov esi, ecx
push 1
push dword [esi + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x2e041a87
cmp dword [esi + 0x24], 8
jb 0x2e041a48
mov esi, dword [esi + 0x10]
jmp 0x2e041a4b
add esi, 0x10
push esi
push 0x2e005480
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x220]
push 0x48
push eax
call fcn.2e039f88
add esp, 0x14
push 0x43
pop ecx
mov esi, eax
push 0x2e0c8a64
lea eax, [ebp - 0x114]
lea edi, [ebp - 0x114]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e045e33
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x2e041aad
cmp dword [esi + 0x24], 8
jb 0x2e041aa2
mov esi, dword [esi + 0x10]
jmp 0x2e041aa5
add esi, 0x10
push esi
push 0x2e005444
jmp 0x2e041a51
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x2e041ad1
cmp dword [esi + 0x24], 8
jb 0x2e041ac6
mov esi, dword [esi + 0x10]
jmp 0x2e041ac9
add esi, 0x10
push esi
push 0x2e005410
jmp 0x2e041a51
mov ecx, dword [ebp - 4]
shr edi, 1
dec edi
push edi
push eax
call fcn.2e041978
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x2e041c3a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx + 0x24]
sub esp, 0x21c
push esi
cmp edx, 0xffffffff
jne 0x2e041c80
push 0x2e005534
lea eax, [ebp - 0x21c]
push 0x15
push eax
call fcn.2e037fce
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x2e0c8a64
lea eax, [ebp - 0x110]
lea edi, [ebp - 0x110]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e045e33
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
cmp dword [eax + 0x18], 8
jb 0x2e041c92
mov ecx, dword [eax + 4]
jmp 0x2e041c95
lea ecx, [eax + 4]
mov eax, dword [eax + 0x14]
push 0
lea esi, [ebp - 4]
push esi
add eax, eax
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x2e041cc7
push 0x2e00551c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.2e038002
jmp 0x2e041c5f
pop esi
leave
ret 4
Function at 0x2e041ccc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x24], 0xffffffff
jne 0x2e041d13
push 0x2e005560
lea eax, [ebp - 0x21c]
push 0x15
push eax
call fcn.2e037fce
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x2e0c8a64
lea eax, [ebp - 0x110]
lea edi, [ebp - 0x110]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e045e33
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
cmp dword [eax + 0x18], 0x10
jb 0x2e041d25
mov esi, dword [eax + 4]
jmp 0x2e041d28
lea esi, [eax + 4]
push 0
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x2e041d5e
push 0x2e00551c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.2e038002
jmp 0x2e041cf2
pop edi
pop esi
leave
ret 4

Function at 0x2e041d64
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x24]
sub esp, 0x21c
cmp eax, 0xffffffff
jne 0x2e041da9
push 0x2e005594
lea eax, [ebp - 0x21c]
push 0x15
push eax
call fcn.2e037fce
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x2e0c8a64
lea eax, [ebp - 0x110]
lea edi, [ebp - 0x110]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e045e33
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x2e041dde
push 0x2e00551c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.2e038002
jmp 0x2e041d88
leave
ret 8

Function at 0x2e041de2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x24]
sub esp, 0x218
cmp eax, 0xffffffff
jne 0x2e041e27
push 0x2e005594
lea eax, [ebp - 0x218]
push 0x15
push eax
call fcn.2e037fce
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x2e0c8a64
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e045e33
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x2e041e57
push 0x2e0055c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.2e038002
jmp 0x2e041e06
leave
ret 0xc

Function at 0x2e041edc
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
mov esi, ecx
cmp dword [esi + 0x24], 0xffffffff
jne 0x2e041f22
push 0x2e00564c
lea eax, [ebp - 0x218]
push 0x15
push eax
call fcn.2e037fce
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x2e0c8a64
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e045e33
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.2e041e5b
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x2e041f56
push 0x2e00562c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.2e038002
jmp 0x2e041f01
pop esi
leave
ret 8
Function at 0x2e042046
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x2e042061
mov eax, dword [esi]
jmp 0x2e042063
mov eax, esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x2e0420b6
cmp dword [edi + 0x18], 8
jb 0x2e042079
mov esi, dword [esi]
push dword [ebp + 0xc]
push esi
push 0x2e00567c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.2e038002
add esp, 0x14
push 0x43
pop ecx
mov esi, eax
push 0x2e0c8a64
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e045e33
pop edi
pop esi
leave
ret 8

Function at 0x2e0420bc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x2e0420d7
mov eax, dword [esi]
jmp 0x2e0420d9
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x2e042157
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 5
jne 0x2e042116
push 0x80
push edi
call fcn.2e042046
cmp dword [edi + 0x18], 8
jb 0x2e042107
mov eax, dword [esi]
jmp 0x2e042109
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x2e042156
call ebx
test eax, eax
je 0x2e042156
cmp dword [edi + 0x18], 8
jb 0x2e042122
mov esi, dword [esi]
push esi
push 0x2e0056ec
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.2e038002
add esp, 0x10
push 0x43
pop ecx
mov esi, eax
push 0x2e0c8a64
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e045e33
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x2e0421d3
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
cmp byte [ebp + 0x10], 0
mov dword [ebp - 4], 0xc
jne 0x2e0421f0
mov dword [ebp - 4], 0xd
push ebx
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0x18], 8
push esi
push edi
jb 0x2e042203
add ebx, 4
mov ecx, dword [ebx]
jmp 0x2e042208
add ebx, 4
mov ecx, ebx
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], 8
jb 0x2e042218
add edi, 4
mov eax, dword [edi]
jmp 0x2e04221d
add edi, 4
mov eax, edi
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileExW]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ecx
push eax
call esi
test eax, eax
jne 0x2e0422f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4d3
je 0x2e0422f2
cmp eax, 5
jne 0x2e04229d
push 0x80
push dword [ebp + 0xc]
call fcn.2e042046
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
jb 0x2e04226b
mov ecx, dword [ebx]
jmp 0x2e04226d
mov ecx, ebx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x2e04227a
mov eax, dword [edi]
jmp 0x2e04227c
mov eax, edi
push dword [ebp - 4]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ecx
push eax
call esi
test eax, eax
jne 0x2e0422f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4d3
je 0x2e0422f2
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
jb 0x2e0422a8
mov ebx, dword [ebx]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x2e0422b5
mov eax, dword [edi]
jmp 0x2e0422b7
mov eax, edi
push ebx
push eax
push 0x2e005708
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.2e038002
add esp, 0x14
push 0x43
pop ecx
mov esi, eax
push 0x2e0c8a64
lea eax, [ebp - 0x110]
lea edi, [ebp - 0x110]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e045e33
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x2e043078
Capabilities:
Allocate thread local storage

Disassembly:
push 0x21c
mov eax, 0x2e0c5f65
call fcn.2e046275
mov esi, ecx
mov dword [ebp - 0x10], esi
or dword [esi], 0xffffffff
push dword [0x2e10a2e8]
lea ecx, [esi + 4]
push 0x1e
push 0x2e005a28
push 0x9b
call fcn.2e037a11
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x2e0430f3
push 0x2e005a14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.2e038002
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x2e0c8a64
lea eax, [ebp - 0x11c]
lea edi, [ebp - 0x11c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e045e33
mov eax, esi
call fcn.2e04634d
ret

Function at 0x2e0430fb
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
sub esp, 0x218
cmp eax, 0xffffffff
jne 0x2e04313f
push 0x2e005a58
lea eax, [ebp - 0x218]
push 0x3d
push eax
call fcn.2e037fce
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x2e0c8a64
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e045e33
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
leave
ret 4