joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4249ac
Capabilities:
Parse pe header

Disassembly:
push 0x4c
mov eax, 0x44bf29
call fcn.0043d0ef
mov ebx, dword [ebp + 0x14]
xor edi, edi
cmp ebx, edi
jne 0x4249c9
xor eax, eax
call fcn.0043d1c7
ret
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x4249c1
mov esi, dword [ebx + 0x3c]
add esi, ebx
cmp dword [esi], 0x4550
jne 0x4249c1
push 4
call fcn.00438f06
pop ecx
cmp eax, edi
je 0x4249f3
lea ecx, [ebp - 0x3c]
mov dword [eax], ecx
jmp 0x4249f5
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 1
mov edi, dword [esi + 0x80]
add edi, ebx
jmp 0x424a37
mov eax, dword [edi + 0xc]
push dword [ebp + 8]
add eax, ebx
push eax
call fcn.0043cc6b
pop ecx
pop ecx
test eax, eax
jne 0x424a34
lea ebx, [ebp - 0x18]
lea esi, [ebp - 0x3c]
call fcn.00424b5b
mov ebx, dword [ebp + 0x14]
add edi, 0x14
xor esi, esi
mov dword [ebp - 0x18], edi
cmp dword [edi + 0xc], esi
jne 0x424a12
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x30]
test eax, 0xfffffffc
jne 0x424a77
cmp dword [ebp - 0x30], esi
je 0x424a5c
push dword [ebp - 0x30]
call fcn.00438e12
pop ecx
push dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
call fcn.00438e12
pop ecx
mov eax, esi
jmp 0x4249c3
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.DLL_VirtualProtect]
sub eax, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x1c
mov edi, dword [ebp - 0x2c]
sub edi, dword [ebp - 0x30]
and dword [ebp - 0x10], 0
sar edi, 2
test edi, edi
jbe 0x424b37
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x10]
sar eax, 2
cmp esi, eax
jb 0x424abf
call fcn.00438e02
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + esi*4]
mov esi, dword [eax + 0x10]
add esi, dword [ebp + 0x14]
cmp dword [esi], 0
je 0x424b2b
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + ecx]
cmp dword [esi], eax
je 0x424ae7
add esi, 4
cmp dword [esi], 0
jne 0x424ad9
jmp 0x424b2b
push 0x1c
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
lea eax, [ebp - 0x44]
push eax
push 4
push dword [ebp - 0x4c]
push dword [ebp - 0x58]
call ebx
test eax, eax
jne 0x424b12
push 1
push 6
call dword [sym.imp.USER32.dll_SetLastErrorEx]
jmp 0x424b2b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [esi], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x44]
push dword [ebp - 0x4c]
push dword [ebp - 0x58]
call ebx
inc dword [ebp - 0x18]
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edi
jb 0x424aaa
add dword [ebp - 0x14], 4
dec dword [ebp - 0x1c]
jne 0x424a95
cmp dword [ebp - 0x30], 0
je 0x424b53
push dword [ebp - 0x30]
call fcn.00438e12
pop ecx
mov esi, dword [ebp - 0x18]
jmp 0x424a5c
Function at 0x4329bc
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44ef1e
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4651b0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
mov ecx, dword [ebp + 0xc]
and dword [ebx + 0xd8], 0
lea eax, [esp + 0x1c]
push eax
lea eax, [ebx + 0x68]
push eax
call fcn.0041d0fc
and dword [esp + 0x38], 0
lea esi, [ebx + 0x78]
mov dword [esp + 0x14], esi
call fcn.00417180
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0041d5d7
lea eax, [ebx + 0x38]
push eax
mov ecx, esi
call fcn.0041d8d1
push eax
mov eax, dword [ebx + 0x30]
call fcn.0041ef69
mov dword [esp + 0x1c], eax
test al, 1
je 0x432bdb
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.0041d608
lea edi, [ebx + 0x70]
mov esi, edi
mov dword [esp + 0x38], 1
call fcn.00417180
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00420b7d
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.00420bfb
lea esi, [ebx + 0x80]
mov dword [esp + 0x38], 2
call fcn.00417180
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004210dc
mov eax, edi
call fcn.0041d0f7
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x98], eax
lea edi, [ebx + 0x88]
call fcn.0041d8e4
push eax
call fcn.00424569
mov ecx, dword [esp + 0x14]
call fcn.0041d8dc
push eax
call fcn.0041fdc2
mov ecx, dword [esp + 0x14]
call fcn.0041d968
push eax
call fcn.0041fdd0
push 0x10
xor edi, edi
lea eax, [ebx + 0xe8]
push edi
push eax
call fcn.0043ad60
add esp, 0xc
mov ecx, esi
call fcn.0042111b
mov ecx, esi
mov dword [ebx + 0xf8], eax
mov dword [ebx + 0xfc], edx
mov dword [ebx + 0x108], edi
call fcn.0042110d
mov ecx, esi
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], edx
call fcn.0042111b
mov dword [ebx + 0x60], eax
mov eax, dword [ebx + 0x8c]
lea esi, [ebx + 0x50]
push esi
mov dword [ebx + 0x64], edx
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx]
push eax
push dword [ebx + 0x40]
call dword [edx + 0x1c]
mov dword [esp + 0x1c], eax
test al, 1
je 0x432bdb
push edi
push 1
push dword [esi]
mov dword [ebx + 0x100], edi
mov dword [ebx + 0x104], edi
add ebx, 0xa0
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call fcn.004344da
mov ecx, dword [esp + 0x14]
call fcn.0041d960
test eax, eax
jne 0x432ba4
mov eax, ebx
call fcn.00421271
push dword [eax + 8]
mov esi, dword [esp + 0x1c]
push 3
push dword [esi + 0x54]
lea ebx, [esi + 0xbc]
call fcn.004344da
mov dword [esi + 0xdc], 1
jmp 0x432bbe
mov eax, dword [esp + 0x18]
push 0
push 1
push dword [eax + 0x54]
lea ebx, [eax + 0xbc]
call fcn.004344da
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esi + 0x10c]
push 0
push dword [eax + 4]
push dword [eax]
mov eax, dword [esi + 0x24]
push dword [ebp + 8]
call fcn.0042141d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x432e5f
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44eeeb
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4651b0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x1c]
push eax
lea eax, [ebx + 0x68]
push eax
call fcn.0041d0fc
and dword [esp + 0x38], 0
lea esi, [ebx + 0x78]
mov dword [esp + 0x14], esi
call fcn.00417180
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0041d5d7
lea eax, [ebx + 0x38]
push eax
mov ecx, esi
call fcn.0041d8d1
push eax
mov eax, dword [ebx + 0x30]
call fcn.0041ef69
mov dword [esp + 0x1c], eax
test al, 1
je 0x43304a
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.0041d608
lea edi, [ebx + 0x70]
mov esi, edi
mov dword [esp + 0x38], 1
call fcn.00417180
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00420b7d
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x24]
push eax
push edi
call fcn.00420bfb
lea esi, [ebx + 0x80]
mov dword [esp + 0x38], 2
call fcn.00417180
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.004210dc
mov eax, edi
call fcn.0041d0f7
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x98], eax
lea edi, [ebx + 0x88]
call fcn.0041d8e4
push eax
call fcn.00424569
mov ecx, dword [esp + 0x14]
call fcn.0041d8dc
push eax
call fcn.0041fdc2
mov ecx, dword [esp + 0x14]
call fcn.0041d968
push eax
call fcn.0041fdd0
push 0x10
xor edi, edi
lea eax, [ebx + 0xe8]
push edi
push eax
call fcn.0043ad60
add esp, 0xc
mov ecx, esi
call fcn.0042111b
mov ecx, esi
mov dword [ebx + 0xf8], eax
mov dword [ebx + 0xfc], edx
mov dword [ebx + 0x108], edi
call fcn.0042110d
mov ecx, esi
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], edx
call fcn.0042111b
mov dword [ebx + 0x60], eax
mov eax, dword [ebx + 0x8c]
lea esi, [ebx + 0x50]
push esi
mov dword [ebx + 0x64], edx
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx]
push eax
push dword [ebx + 0x40]
call dword [edx + 0x1c]
mov dword [esp + 0x1c], eax
test al, 1
je 0x43304a
push edi
push 1
push dword [esi]
mov dword [ebx + 0x100], edi
mov dword [ebx + 0x104], edi
add ebx, 0xa0
call fcn.004344da
mov ecx, dword [esp + 0x14]
call fcn.0041d960
test eax, eax
jne 0x433034
mov eax, ebx
call fcn.00421271
push dword [eax + 8]
mov esi, dword [esp + 0x1c]
push 3
push dword [esi + 0x54]
lea ebx, [esi + 0xbc]
call fcn.004344da
mov dword [esi + 0xdc], 1
jmp 0x43304a
mov eax, dword [esp + 0x18]
push 0
push 1
push dword [eax + 0x54]
lea ebx, [eax + 0xbc]
call fcn.004344da
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4332d7
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44eeeb
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4651b0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x1c]
push eax
lea eax, [edi + 0x68]
push eax
call fcn.0041d0fc
xor ebx, ebx
lea esi, [edi + 0x78]
mov dword [esp + 0x38], ebx
call fcn.00417180
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0041d5d7
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x78]
call fcn.0041d608
lea esi, [edi + 0x70]
mov dword [esp + 0x38], 1
call fcn.00417180
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00420b7d
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00420bfb
lea esi, [edi + 0x80]
mov dword [esp + 0x38], 2
call fcn.00417180
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.004210dc
push 0x10
lea eax, [edi + 0xe8]
push ebx
push eax
mov dword [edi + 0xf8], ebx
mov dword [edi + 0xfc], ebx
call fcn.0043ad60
add esp, 0xc
mov ecx, esi
call fcn.0042110d
mov dword [edi + 0x100], eax
mov eax, 0x8000
lea ecx, [edi + 0x78]
mov dword [edi + 0x104], edx
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], ebx
call fcn.0041d7c8
push ebx
push 1
push dword [edi + 0x50]
lea ebx, [edi + 0xa0]
mov dword [edi + 0xd8], eax
call fcn.004344da
xor eax, eax
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call fcn.00421131
push edx
push eax
push dword [ebp + 8]
mov eax, dword [edi + 0x24]
call fcn.0042141d
xor eax, eax
inc eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4335a4
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44eeeb
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4651b0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x1c]
push eax
lea eax, [edi + 0x68]
push eax
call fcn.0041d0fc
xor ebx, ebx
lea esi, [edi + 0x78]
mov dword [esp + 0x38], ebx
call fcn.00417180
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0041d5d7
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.0041d608
lea esi, [edi + 0x70]
mov dword [esp + 0x38], 1
call fcn.00417180
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00420b7d
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x24]
push eax
lea eax, [edi + 0x70]
push eax
call fcn.00420bfb
lea esi, [edi + 0x80]
mov dword [esp + 0x38], 2
call fcn.00417180
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.004210dc
mov ecx, esi
call fcn.0042114b
mov dword [edi + 0xd8], eax
lea eax, [edi + 0x70]
mov dword [edi + 0xf8], ebx
mov dword [edi + 0xfc], ebx
call fcn.0041d0f7
push 0x10
mov dword [edi + 0x98], eax
lea eax, [edi + 0xe8]
push ebx
push eax
call fcn.0043ad60
add esp, 0xc
mov ecx, esi
call fcn.0042110d
push ebx
mov dword [edi + 0x100], eax
mov eax, 0x4000
lea ecx, [edi + 0xa0]
push 1
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x64], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
push eax
mov ebx, ecx
mov dword [edi + 0x104], edx
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
mov dword [edi + 0x58], eax
mov dword [edi + 0x60], eax
call fcn.004344da
lea ecx, [edi + 0x78]
call fcn.0041d960
test eax, eax
jne 0x4336f5
lea eax, [edi + 0xa0]
call fcn.00421271
push dword [eax + 8]
push 3
jmp 0x4336f9
push 0
push 1
push dword [edi + 0x54]
lea ebx, [edi + 0xbc]
call fcn.004344da
lea eax, [esp + 0x14]
push eax
push 0
mov ecx, esi
call fcn.00421131
push edx
push eax
push dword [ebp + 8]
mov eax, dword [edi + 0x24]
call fcn.0042141d
xor eax, eax
inc eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x433867
Capabilities:
Check for peb ntglobalflag flag
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44c699
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4651b0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
lea eax, [edi + 0x68]
push eax
call fcn.0041d0fc
and dword [esp + 0x30], 0
lea esi, [edi + 0x78]
call fcn.00417180
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0041d5d7
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.0041d608
lea ebx, [edi + 0x70]
mov esi, ebx
mov dword [esp + 0x30], 1
call fcn.00417180
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00420b7d
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.00420bfb
lea esi, [edi + 0x80]
mov dword [esp + 0x30], 2
call fcn.00417180
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004210dc
mov ecx, esi
call fcn.0042114b
and dword [edi + 0xf8], 0
and dword [edi + 0xfc], 0
mov dword [edi + 0xd8], eax
mov eax, ebx
call fcn.0041d0f7
push 0x10
mov dword [edi + 0x98], eax
lea eax, [edi + 0xe8]
push 0
push eax
call fcn.0043ad60
add esp, 0xc
mov ecx, esi
call fcn.0042110d
mov dword [edi + 0x100], eax
xor eax, eax
mov dword [edi + 0x104], edx
inc eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4343a2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
not dword [ecx]
xor edx, edx
cmp dword [esp + 8], edx
jbe 0x4343d7
push esi
push edi
mov eax, dword [ecx]
mov esi, dword [esp + 0xc]
movzx esi, byte [edx + esi]
mov edi, eax
and edi, 0xff
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x455878]
inc edx
mov dword [ecx], eax
cmp edx, dword [esp + 0x10]
jb 0x4343ae
pop edi
pop esi
not dword [ecx]
ret

Function at 0x4343da
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jbe 0x43440f
movzx eax, word [edx]
push esi
push edi
mov esi, dword [esp + 0xc]
movzx esi, byte [ecx + esi]
movzx edi, al
shr ax, 8
xor esi, edi
xor ax, word [esi*2 + 0x455c78]
inc ecx
movzx eax, ax
cmp ecx, dword [esp + 0x10]
jb 0x4343e7
pop edi
mov word [edx], ax
pop esi
ret

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

Disassembly:
push 0x40
mov eax, 0x44e5a7
call fcn.0043d158
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x4c]
call fcn.00413420
xor edi, edi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], edi
call fcn.004199fe
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x434585
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x434598
test al, 0x10
je 0x434598
xor edi, edi
inc edi
lea esi, [ebp - 0x4c]
call fcn.0040ba90
mov eax, edi
call fcn.0043d1db
ret
Function at 0x43464d
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
je 0x43470e
cmp ebx, esi
je 0x43470e
lea ecx, [ebx + 0x18]
call fcn.00434c61
push esi
or eax, 0x2000000
push eax
push 3
push esi
push 1
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x43470e
mov eax, dword [ebx]
or eax, dword [ebx + 4]
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
je 0x4346b4
lea edi, [ebp - 0x20]
mov esi, ebx
call fcn.0043461d
mov eax, edi
mov dword [ebp - 0x10], eax
lea esi, [ebx + 8]
mov eax, dword [esi]
or eax, dword [esi + 4]
je 0x4346cb
lea edi, [ebp - 0x28]
call fcn.0043461d
mov eax, edi
mov dword [ebp - 8], eax
lea esi, [ebx + 0x10]
mov eax, dword [esi]
or eax, dword [esi + 4]
je 0x4346e2
lea edi, [ebp - 0x30]
call fcn.0043461d
mov eax, edi
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
xor eax, eax
inc eax
jmp 0x434713
mov eax, 0x200
pop edi
pop esi
leave
ret
Function at 0x434717
Capabilities:
Create directory

Disassembly:
push 0x6c
mov eax, 0x44ee7b
call fcn.0043d158
mov esi, ecx
mov eax, esi
lea ecx, [ebp - 0x68]
call fcn.00413420
and dword [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.004199fe
push esi
call fcn.00434555
pop ecx
test eax, eax
je 0x434759
xor edi, edi
inc edi
lea esi, [ebp - 0x68]
call fcn.0040ba90
mov eax, edi
call fcn.0043d1db
ret
lea eax, [ebp - 0x68]
push eax
lea esi, [ebp - 0x30]
call fcn.00401580
xor edi, edi
mov byte [ebp - 4], 1
cmp dword [ebp - 0x54], edi
jbe 0x434792
lea eax, [ebp - 0x68]
call fcn.0040c980
cmp word [eax], 0x2f
jne 0x43478c
lea eax, [ebp - 0x68]
call fcn.004015b0
push 0x5c
pop ecx
mov word [eax], cx
inc edi
cmp edi, dword [ebp - 0x54]
jb 0x434770
xor esi, esi
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x74], 0x5c
lea eax, [ebp - 0x74]
push eax
xor ebx, ebx
inc ebx
mov eax, esi
lea edx, [ebp - 0x68]
call fcn.00407290
or esi, 0xffffffff
cmp eax, esi
je 0x4347bc
mov esi, eax
cmp dword [ebp - 0x6c], 0
je 0x434810
cmp dword [ebp - 0x54], 2
jbe 0x43480f
xor edi, edi
lea eax, [ebp - 0x68]
call fcn.004015b0
push 0x5c
pop ebx
cmp word [eax], bx
jne 0x43480f
inc edi
lea eax, [ebp - 0x68]
call fcn.004015b0
cmp word [eax], bx
jne 0x43480f
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x78], ebx
push 2
xor ebx, ebx
inc ebx
pop eax
lea edx, [ebp - 0x68]
call fcn.00407290
lea ecx, [ebp - 0x78]
inc eax
push ecx
lea edx, [ebp - 0x68]
call fcn.00407290
mov esi, eax
inc esi
cmp esi, 0xffffffff
je 0x43486d
mov edi, esi
lea eax, [ebp - 0x30]
call fcn.004015b0
movzx ebx, word [eax]
lea eax, [ebp - 0x30]
call fcn.004015b0
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x43483b
lea eax, [ebp - 0x2c]
push eax
call fcn.00434555
pop ecx
test eax, eax
jne 0x43485f
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x434852
lea eax, [ebp - 0x2c]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x434893
mov edi, esi
lea eax, [ebp - 0x30]
call fcn.004015b0
mov word [eax], bx
inc esi
cmp dword [ebp - 0x6c], 0
je 0x434878
dec esi
and dword [ebp - 0x6c], 0
cmp esi, 0xffffffff
je 0x434886
cmp esi, dword [ebp - 0x54]
jb 0x4347a2
lea esi, [ebp - 0x30]
call fcn.0040ba00
jmp 0x434746
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.004345a8
lea esi, [ebp - 0x30]
mov edi, eax
call fcn.0040ba00
jmp 0x434749
Function at 0x434931
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ecx + 0x80]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0xc], ecx
cmp eax, edi
je 0x434aa0
cmp dword [ecx + 0x24], 2
jne 0x434961
mov eax, 0x300
jmp 0x434aa5
mov esi, dword [ebp + 8]
xor eax, eax
xor ebx, ebx
test byte [esi], 2
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], eax
je 0x4349b2
lea eax, [esi + 8]
lea ecx, [esp + 0x10]
call fcn.00434d78
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
test byte [esi], 4
je 0x4349db
lea eax, [esi + 0x10]
lea ecx, [esp + 0x30]
call fcn.00434d78
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0xc]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
inc ebx
test byte [esi], 8
je 0x434a04
lea eax, [esi + 0x18]
lea ecx, [esp + 0x30]
call fcn.00434d78
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0xc]
xor edi, edi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
inc edi
test eax, eax
jne 0x434a10
test ebx, ebx
jne 0x434a10
test edi, edi
je 0x434a54
neg ebx
sbb ebx, ebx
lea edx, [esp + 0x18]
and ebx, edx
neg edi
sbb edi, edi
lea edx, [esp + 0x20]
and edi, edx
neg eax
push ebx
sbb eax, eax
lea edx, [esp + 0x2c]
push edi
and eax, edx
push eax
push dword [ecx + 0x80]
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
test eax, eax
jne 0x434a50
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.00434fc5
jmp 0x434aa5
mov ecx, dword [esp + 0xc]
test byte [esi], 0x10
je 0x434a8c
test byte [ecx + 0x24], 5
je 0x434a8c
push dword [esi + 0x24]
push dword [esi + 0x20]
call fcn.00435324
cmp eax, dword [esi + 0x20]
jne 0x434a41
cmp edx, dword [esi + 0x24]
jne 0x434a41
mov eax, dword [esp + 0xc]
push dword [eax + 0x80]
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
je 0x434a41
mov ecx, dword [esp + 0xc]
test byte [esi], 1
je 0x434a9b
or dword [ecx + 0x50], 1
mov eax, dword [esi + 4]
mov dword [ecx + 0x54], eax
xor eax, eax
inc eax
jmp 0x434aa5
mov eax, 0x1000000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4