joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436280
Capabilities:
Check if file exists
Create directory

Disassembly:
push esi
push edi
call fcn.00444e60
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
test eax, eax
je 0x4362a8
test esi, esi
je 0x4362a8
cmp word [esi], 0
je 0x4362a8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4362b5
test edi, edi
je 0x4362e8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4362d3
cmp byte [esp + 0x14], 0
je 0x4362cc
mov eax, dword [esp + 0x18]
push eax
push esi
push edi
call fcn.00435b70
pop edi
xor eax, eax
pop esi
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4362e8
cmp eax, 3
mov eax, 1
jne 0x4362ed
mov eax, 2
pop edi
pop esi
ret 0x10

Function at 0x436300
Capabilities:
Create directory

Disassembly:
sub esp, 0x408
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x404], eax
push ebp
mov ebp, dword [esp + 0x410]
test ebp, ebp
je 0x436435
cmp byte [ebp], 0
je 0x436435
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
mov byte [esp + 0xf], 1
mov edi, ebp
push esi
mov edi, edi
mov esi, edi
sub esi, ebp
cmp esi, 0x400
jge 0x4363b8
movsx eax, byte [edi]
push eax
call fcn.00456170
test al, al
je 0x43639a
push esi
lea ecx, [esp + 0x18]
push ebp
push ecx
call fcn.004b26d0
add esp, 0xc
mov byte [esp + esi + 0x14], 0
call fcn.00444e60
push 0
lea edx, [esp + 0x18]
push edx
call ebx
test eax, eax
je 0x43638f
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call fcn.00435b70
jmp 0x43639a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0x13], 0
cmp byte [0x53c3b0], 0
je 0x4363b2
push edi
mov ecx, 0x53c2b0
call fcn.00478710
mov edi, eax
jmp 0x4363b3
inc edi
cmp byte [edi], 0
jne 0x436340
cmp byte [esp + 0x420], 0
pop esi
jne 0x436417
push ebp
call fcn.00456880
movsx ecx, byte [eax]
push ecx
call fcn.00456170
test al, al
jne 0x436417
call fcn.00444e60
push 0
push ebp
call ebx
test eax, eax
je 0x43640c
push 0
push 0
push ebp
call fcn.00435b70
mov al, byte [esp + 0xf]
pop edi
pop ebx
pop ebp
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.004b102c
add esp, 0x408
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0xf], 0
mov al, byte [esp + 0xf]
pop edi
pop ebx
pop ebp
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.004b102c
add esp, 0x408
ret 8
mov ecx, dword [esp + 0x408]
pop ebp
xor ecx, esp
xor al, al
call fcn.004b102c
add esp, 0x408
ret 8
Function at 0x436450
Capabilities:
Create directory

Disassembly:
sub esp, 0x808
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x804], eax
push ebp
mov ebp, dword [esp + 0x810]
test ebp, ebp
je 0x43658b
cmp word [ebp], 0
je 0x43658b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
mov byte [esp + 0xf], 1
xor edi, edi
push esi
nop
mov esi, edi
sar esi, 1
cmp esi, 0x400
jge 0x436503
movzx eax, word [edi + ebp]
push eax
call fcn.00456170
test al, al
je 0x4364f9
push esi
lea ecx, [esp + 0x18]
push ebp
push ecx
call fcn.004b289d
xor edx, edx
add esp, 0xc
mov word [esp + esi*2 + 0x14], dx
call fcn.00444e60
test eax, eax
je 0x4364f4
cmp word [esp + 0x14], 0
je 0x4364f4
push 0
lea eax, [esp + 0x18]
push eax
call ebx
test eax, eax
je 0x4364ee
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
call fcn.00435b70
jmp 0x4364f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0x13], 0
add edi, 2
cmp word [edi + ebp], 0
jne 0x436490
cmp byte [esp + 0x820], 0
pop esi
jne 0x43656d
push ebp
call fcn.004560f0
movzx edx, word [eax]
push edx
call fcn.00456170
test al, al
jne 0x43656d
call fcn.00444e60
test eax, eax
je 0x436568
cmp word [ebp], 0
je 0x436568
push 0
push ebp
call ebx
test eax, eax
je 0x436562
push 0
push ebp
push 0
call fcn.00435b70
mov al, byte [esp + 0xf]
pop edi
pop ebx
pop ebp
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.004b102c
add esp, 0x808
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0xf], 0
mov al, byte [esp + 0xf]
pop edi
pop ebx
pop ebp
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.004b102c
add esp, 0x808
ret 8
mov ecx, dword [esp + 0x808]
pop ebp
xor ecx, esp
xor al, al
call fcn.004b102c
add esp, 0x808
ret 8
Function at 0x4365f0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x830
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x82c], eax
mov eax, dword [esp + 0x844]
push ebx
mov ebx, dword [esp + 0x844]
push ebp
mov ebp, dword [esp + 0x83c]
push esi
mov esi, dword [esp + 0x848]
push edi
mov edi, dword [esp + 0x848]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], eax
call fcn.00444e60
test eax, eax
je 0x43678e
test esi, esi
je 0x436652
cmp dword [esi], 0
mov byte [esp + 0x12], 1
jne 0x436657
mov byte [esp + 0x12], 0
test ebx, ebx
je 0x436665
cmp dword [ebx], 0
mov byte [esp + 0x11], 1
jne 0x43666a
mov byte [esp + 0x11], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x43667c
cmp dword [eax], 0
mov byte [esp + 0x13], 1
jne 0x436681
mov byte [esp + 0x13], 0
call fcn.00444e60
test eax, eax
je 0x4366a1
test edi, edi
je 0x4366a1
cmp word [edi], 0
je 0x4366a1
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x14], eax
jmp 0x4366ac
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x4367a9
test al, 1
je 0x4367a9
push 0
push edi
push ebp
mov bl, 1
call fcn.00435b70
push 0x400
lea ecx, [esp + 0x40]
push ecx
push edi
push ebp
call fcn.004566d0
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43678e
cmp byte [esp + 0x12], 0
je 0x436716
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x34]
push eax
call fcn.00473900
cmp byte [esp + 0x11], 0
je 0x43672b
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00473900
cmp byte [esp + 0x13], 0
je 0x436740
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
call fcn.00473900
movzx eax, byte [esp + 0x12]
movzx edx, byte [esp + 0x13]
neg eax
sbb eax, eax
lea ecx, [esp + 0x34]
and eax, ecx
movzx ecx, byte [esp + 0x11]
neg edx
push eax
sbb edx, edx
lea eax, [esp + 0x28]
and edx, eax
push edx
neg ecx
sbb ecx, ecx
lea edx, [esp + 0x34]
and ecx, edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x43678e
mov eax, dword [esp + 0x14]
push eax
push edi
push ebp
call fcn.00435b70
mov ecx, dword [esp + 0x83c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b102c
add esp, 0x830
ret 0x14
xor bl, bl
jmp 0x4366c8

Function at 0x4368b0
Capabilities:
Set file attributes

Disassembly:
call fcn.00444e60
test eax, eax
je 0x4368d9
mov eax, dword [esp + 8]
test eax, eax
je 0x4368d9
cmp word [eax], 0
je 0x4368d9
mov dword [esp + 8], 0
mov dword [esp + 4], eax
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 4]
test eax, eax
je 0x4368f3
mov dword [esp + 8], 0
mov dword [esp + 4], eax
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 8
Function at 0x436900
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x8c
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
mov ebx, dword [esp + 0x94]
push ebp
push esi
mov eax, ebx
push edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x436924
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x10]
mov ebp, eax
call fcn.004129c0
lea ecx, [esp + 0x10]
call fcn.00473e70
lea ecx, [esp + 0x10]
call fcn.00473c80
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.004739d0
mov ecx, edi
shr ecx, 0xa
xor eax, ecx
xor edi, eax
xor esi, esi
cmp esi, 0x64
jbe 0x43696f
mov eax, edi
jmp 0x436983
mov eax, 0x10624dd3
mul edi
shr edx, 6
imul edx, edx, 0x3e8
mov eax, edi
sub eax, edx
push eax
push esi
lea edx, [esp + 0x3c]
push 0x4c9064
push edx
mov edx, 0x32
call fcn.00483770
lea eax, [esp + 0x44]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4369a3
sub eax, edx
sar eax, 1
add eax, ebp
cmp eax, dword [esp + 0xa4]
jae 0x436a11
cmp esi, 0x3e8
je 0x436a11
lea eax, [esp + 0x34]
mov edx, eax
lea ecx, [ebp + ebp]
sub ecx, edx
lea edx, [ecx + ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4369d4
call fcn.00444e60
test eax, eax
je 0x436a0d
test ebx, ebx
je 0x436a0d
cmp word [ebx], 0
je 0x436a0d
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
test al, al
je 0x436a0d
inc esi
jmp 0x436966
mov eax, ebx
jmp 0x436a13
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b102c
add esp, 0x8c
ret 8
Function at 0x436a30
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4c4406
mov eax, dword fs:[0]
push eax
sub esp, 0xc34
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0xc30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4da8f0]
xor eax, esp
push eax
lea eax, [esp + 0xc48]
mov dword fs:[0], eax
mov edi, dword [esp + 0xc58]
push edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x18], edi
call fcn.00469260
xor ebp, ebp
mov dword [esp + 0xc50], ebp
mov esi, 0x10000
push esi
call fcn.004b1137
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebp
jne 0x436aa9
mov ecx, 0x508304
call fcn.0042cdb0
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov byte [esp + 0xc50], 1
mov ecx, edi
xor esi, esi
or ebx, 0xffffffff
call fcn.004348e0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
cmp dword [0x51b784], esi
je 0x436afe
push 0x200
lea eax, [esp + 0x48]
push eax
call fcn.0048d220
mov edx, dword [0x51b784]
push 0x200
lea ecx, [esp + 0x848]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0
push 0
push 0
mov ecx, edi
call fcn.00434ff0
jmp 0x436b14
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0xc5c]
cmp eax, 0x7fffffff
jne 0x436b2b
cmp dword [esp + 0xc60], eax
je 0x436b3e
cmp dword [esp + 0xc60], 0
jl 0x436b43
jg 0x436b3e
cmp eax, 0x10000
jbe 0x436b43
mov eax, 0x10000
push eax
mov eax, dword [esp + 0x24]
push eax
mov ecx, edi
call fcn.00435300
mov edi, eax
test edi, edi
je 0x436c08
add esi, 1
adc ebp, 0
mov eax, esi
and eax, 0xf
xor ecx, ecx
or eax, ecx
jne 0x436bc9
cmp dword [0x51b784], eax
je 0x436bc4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
push eax
push 0x10000
push ebp
push esi
call fcn.004b1ad0
push edx
push eax
call fcn.00470140
push eax
push 0x51e
call fcn.004671c0
push eax
lea eax, [esp + 0x44c]
push eax
mov edx, 0x200
call fcn.00483770
add esp, 0xc
lea ecx, [esp + 0x444]
push ecx
call fcn.0048d240
call fcn.0048d8e0
call fcn.004717e0
mov edx, dword [esp + 0x20]
push edi
push edx
push ebx
call fcn.00422310
mov ebx, eax
mov eax, 0x7fffffff
cmp dword [esp + 0xc5c], eax
jne 0x436bf2
cmp dword [esp + 0xc60], eax
je 0x436b10
mov eax, edi
cdq
sub dword [esp + 0xc5c], eax
sbb dword [esp + 0xc60], edx
jmp 0x436b10
cmp dword [0x51b784], 0
je 0x436c2d
lea eax, [esp + 0x44]
push eax
call fcn.0048d240
lea ecx, [esp + 0x844]
push ecx
call fcn.0048d1d0
call fcn.0048d8e0
not ebx
mov esi, ebx
mov byte [esp + 0xc50], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x436c4a
push eax
call fcn.004b1201
add esp, 4
mov dword [esp + 0xc50], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00469290
mov eax, esi
mov ecx, dword [esp + 0xc48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc30]
xor ecx, esp
call fcn.004b102c
add esp, 0xc40
ret 0x10
Function at 0x436c90
Capabilities:
Delete file

Disassembly:
xor eax, eax
sub esp, 0x20
cmp dword [ecx + 0xc], eax
jbe 0x436ce8
mov dword [ecx + 0xc], eax
mov ecx, dword [ecx]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
mov dword [esp], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
lea edx, [esp]
mov eax, 0x54
push edx
mov dword [esp + 8], 3
mov word [esp + 0x14], ax
mov dword [esp + 0xc], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb eax, eax
inc eax
add esp, 0x20
ret
mov al, 1
add esp, 0x20
ret
Function at 0x436dc0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4c4456
mov eax, dword fs:[0]
push eax
mov eax, 0x18e0
call fcn.004b1040
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x18dc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4da8f0]
xor eax, esp
push eax
lea eax, [esp + 0x18f4]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1904]
mov edi, dword [esp + 0x1908]
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
call fcn.00434590
xor ebx, ebx
mov dword [esp + 0x18fc], ebx
push 1
push edi
push esi
lea ecx, [esp + 0x3c]
call fcn.004349d0
test al, al
je 0x436efb
lea ecx, [esp + 0x30]
call fcn.004348e0
mov edi, 0x10000
push edi
mov dword [esp + 0x20], eax
mov ebp, edx
call fcn.004b1137
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
cmp esi, ebx
jne 0x436e6d
mov ecx, 0x508304
call fcn.0042cdb0
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov byte [esp + 0x18fc], 1
push edi
push ebx
push esi
call fcn.004b14b0
add esp, 0xc
xor edi, edi
test ebp, ebp
jl 0x436eba
jg 0x436e96
cmp dword [esp + 0x1c], edi
jbe 0x436eba
push 0x10000
push esi
lea ecx, [esp + 0x38]
call fcn.004350d0
add ebx, 0x10000
adc edi, 0
cmp edi, ebp
jl 0x436e96
jg 0x436eba
cmp ebx, dword [esp + 0x1c]
jb 0x436e96
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push 0
push 0
lea ecx, [esp + 0x3c]
call fcn.00434ff0
lea ecx, [esp + 0x30]
call fcn.00434880
lea ecx, [esp + 0x30]
call fcn.00434610
mov byte [esp + 0x18fc], 0
test esi, esi
je 0x436efb
push esi
call fcn.004b1201
add esp, 4
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
push 0x432
lea ecx, [esp + 0xc5c]
push ecx
push edx
lea edi, [esp + 0x14c8]
call fcn.00436cf0
test al, al
je 0x436f5f
call fcn.00444e60
test eax, eax
je 0x436f4a
cmp word [esp + 0xc58], 0
je 0x436f4a
lea eax, [esp + 0xc58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
jmp 0x436f8f
lea ecx, [esp + 0x14bc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne bl
jmp 0x436f8f
call fcn.00444e60
test eax, eax
je 0x436f7f
mov eax, dword [esp + 0x18]
test eax, eax
je 0x436f7f
cmp word [eax], 0
je 0x436f7f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x436f88
mov edx, ebx
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
mov bl, al
mov dword [esp + 0x18fc], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.004349a0
mov al, bl
mov ecx, dword [esp + 0x18f4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18dc]
xor ecx, esp
call fcn.004b102c
add esp, 0x18ec
ret 8
Function at 0x436fd0
Capabilities:
Delete directory

Disassembly:
sub esp, 0xc9c
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0xc98], eax
push ebx
mov ebx, dword [esp + 0xca4]
push esi
mov esi, dword [esp + 0xcac]
push edi
push 0x432
lea eax, [esp + 0x444]
push eax
push esi
lea edi, [esp + 0x18]
call fcn.00436cf0
test al, al
je 0x43703b
call fcn.00444e60
test eax, eax
je 0x437034
cmp word [esp + 0x440], 0
je 0x437034
lea ecx, [esp + 0x440]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x43705e
lea edx, [esp + 0xc]
push edx
jmp 0x437058
call fcn.00444e60
test eax, eax
je 0x437057
test esi, esi
je 0x437057
cmp word [esi], 0
je 0x437057
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x43705e
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0xca4]
pop edi
test eax, eax
pop esi
setne al
pop ebx
xor ecx, esp
call fcn.004b102c
add esp, 0xc9c
ret 8
Function at 0x437080
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4c44a6
mov eax, dword fs:[0]
push eax
mov eax, 0x4178
call fcn.004b1040
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x4174], eax
push ebp
push esi
push edi
mov eax, dword [0x4da8f0]
xor eax, esp
push eax
lea eax, [esp + 0x4188]
mov dword fs:[0], eax
mov esi, dword [esp + 0x4198]
push esi
call fcn.004565d0
test al, al
je 0x437319
push esi
call fcn.00435710
test al, al
je 0x437319
movsx eax, byte [esi]
push eax
lea ecx, [esp + 0x3988]
push 0x4c9094
push ecx
call fcn.004b106b
movsx edx, byte [esp + 0x3990]
add esp, 0xc
push edx
push 0x341
call fcn.004671c0
push eax
lea eax, [esp + 0x3d8c]
push eax
mov edx, 0x200
call fcn.00483770
add esp, 0xc
lea ecx, [esp + 0x3d84]
push ecx
call fcn.0048d240
lea ecx, [esp + 0x10]
call fcn.004710c0
mov dword [esp + 0x4190], 0
lea edx, [esp + 0x3984]
push edx
lea ecx, [esp + 0x14]
call fcn.00471160
push 2
push 0
push 2
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1568]
call fcn.00469960
mov byte [esp + 0x4190], 1
lea ecx, [esp + 0xccc]
call fcn.004129c0
lea ecx, [esp + 0xcf0]
call fcn.004129c0
lea ecx, [esp + 0xd14]
call fcn.004129c0
lea ecx, [esp + 0xb8]
push ecx
lea ecx, [esp + 0x155c]
call fcn.0046a4b0
test eax, eax
jne 0x4372f1
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov al, byte [esi]
cmp byte [esp + 0xb8], al
jne 0x4372f1
cmp byte [esp + 0xb9], 0x3a
jne 0x4372f1
mov cx, word [esp + 0x4b8]
test cx, cx
je 0x437207
movsx edx, al
movzx eax, cx
cmp eax, edx
jne 0x4372f1
cmp word [esp + 0x4ba], 0x3a
jne 0x4372f1
call fcn.00444e60
test eax, eax
je 0x437229
cmp word [esp + 0x4b8], 0
je 0x437229
push 0
lea ecx, [esp + 0x4bc]
push ecx
call edi
jmp 0x437235
push 0
lea edx, [esp + 0xbc]
push edx
call ebp
cmp byte [esp + 0xcc8], 0
je 0x437273
call fcn.00444e60
test eax, eax
je 0x437263
cmp word [esp + 0x4b8], 0
je 0x437263
lea eax, [esp + 0x4b8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4372d5
lea ecx, [esp + 0xb8]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4372d5
call fcn.00444e60
test eax, eax
je 0x437297
cmp word [esp + 0x4b8], 0
je 0x437297
lea edx, [esp + 0x4b8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4372a5
lea eax, [esp + 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
test al, al
jne 0x4372d5
lea ecx, [esp + 0x4b8]
push ecx
push 0x202
call fcn.004671c0
push eax
push 0
call fcn.0049ac10
add esp, 0xc
mov ecx, 0x508304
call fcn.0042cce0
lea edx, [esp + 0xb8]
push edx
lea ecx, [esp + 0x155c]
call fcn.0046a4b0
test eax, eax
je 0x4371c0
mov byte [esp + 0x4190], 0
lea ecx, [esp + 0x1558]
call fcn.00469c00
mov dword [esp + 0x4190], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00401bb0
mov ecx, dword [esp + 0x4188]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x4174]
xor ecx, esp
call fcn.004b102c
add esp, 0x4184
ret 4
Function at 0x4383e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xc
push 0x4000
call fcn.004b1137
add esp, 4
mov dword [esp], eax
test eax, eax
jne 0x438402
mov eax, 4
add esp, 0xc
ret 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x18], esi
mov eax, edi
and eax, ebp
cmp eax, 0xffffffff
je 0x438431
cmp esi, ebp
ja 0x4384f2
jb 0x438431
cmp ebx, edi
jae 0x4384f2
call fcn.0044d040
cmp byte [0x50830c], 0
je 0x438448
cmp byte [0x51c858], 0
jne 0x4384b6
mov ecx, edi
and ecx, ebp
cmp ecx, 0xffffffff
je 0x43846d
mov ecx, edi
sub ecx, ebx
mov eax, ebp
sbb eax, esi
test eax, eax
ja 0x43846d
jb 0x438467
cmp ecx, 0x4000
jae 0x43846d
mov eax, edi
sub eax, ebx
jmp 0x438472
mov eax, 0x4000
mov edx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x18]
push 1
push eax
call fcn.004b3d1a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4384c5
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
push ecx
push esi
push 1
push edx
call fcn.004b39f8
add esp, 0x10
cmp eax, esi
jne 0x43850b
add ebx, esi
adc dword [esp + 0x18], 0
mov esi, dword [esp + 0x18]
jmp 0x438416
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
add esp, 0xc
ret 0x10
mov eax, dword [esp + 0x20]
push eax
call fcn.004b3862
add esp, 4
test eax, eax
je 0x4384f2
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004b1201
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
add esp, 0xc
ret 0x10
mov edx, dword [esp + 0x10]
push edx
call fcn.004b1201
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 0x10
mov eax, dword [esp + 0x10]
push eax
call fcn.004b1201
mov eax, dword [0x5097d8]
add esp, 4
test eax, eax
je 0x438531
push eax
push 0
push eax
push 0
mov ecx, 0x508304
call fcn.0042d370
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
add esp, 0xc
ret 0x10
Function at 0x438c20
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4c451b
mov eax, dword fs:[0]
push eax
mov eax, 0x1434
call fcn.004b1040
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x1430], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4da8f0]
xor eax, esp
push eax
lea eax, [esp + 0x1448]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x145c]
mov ebp, dword [esp + 0x1458]
mov dword [esp + 0x18], ebx
mov ecx, ebx
mov eax, ebp
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x438c9b
test dx, dx
je 0x438c97
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x438c9b
add eax, 4
add ecx, 4
test dx, dx
jne 0x438c75
xor eax, eax
jmp 0x438ca0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x438e4c
lea eax, [esp + 0xc44]
push eax
push 0x400
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
movzx ecx, word [esp + 0xc44]
push ecx
call fcn.004b2511
add esp, 4
cmp word [esp + 0xc44], 0x5c
mov edi, eax
je 0x438d24
movzx eax, word [ebx]
cmp ax, 0x5c
je 0x438d24
cmp word [ebp], 0x5c
je 0x438d24
movzx edx, ax
push edx
call fcn.004b2511
mov esi, eax
movzx eax, word [ebp]
push eax
call fcn.004b2511
mov ecx, 0x3a
add esp, 8
cmp word [ebx + 2], cx
je 0x438d13
mov esi, edi
cmp word [ebp + 2], cx
je 0x438d1b
mov eax, edi
cmp esi, eax
je 0x438d24
mov byte [esp + 0x17], 1
push ebp
call fcn.00435ac0
test al, al
je 0x438d7f
lea ecx, [esp + 0x1c]
call fcn.00434590
mov dword [esp + 0x1450], 0
push 1
push ebp
push 0
lea ecx, [esp + 0x28]
call fcn.004349d0
test al, al
je 0x438dc6
lea ecx, [esp + 0x1c]
call fcn.00434610
test al, al
je 0x438dc6
push ebp
call fcn.00435da0
test al, al
je 0x438dc6
mov dword [esp + 0x1450], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004349a0
cmp byte [esp + 0x17], 0
jne 0x438d9e
push ebp
push 0
push ebx
push 0
call fcn.00435ce0
test al, al
sete al
test al, al
je 0x438e4c
push 0x4c9110
push ebx
call fcn.004b3ef0
mov edi, eax
add esp, 8
test edi, edi
jne 0x438de1
push ebx
push eax
mov ecx, 0x508304
call fcn.0042d4c0
lea eax, [edi + 0xa]
jmp 0x438e4e
mov dword [esp + 0x1450], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004349a0
mov eax, 0xf
jmp 0x438e4e
push 0x4c9108
push ebp
call fcn.004b3ef0
mov esi, eax
add esp, 8
test esi, esi
jne 0x438e03
push edi
call fcn.004b3dae
add esp, 4
lea eax, [esi + 0xf]
jmp 0x438e4e
push 0
mov ecx, 0x508304
call fcn.0042cc60
push 0
push 0xffffffffffffffff
push esi
push edi
call fcn.004383e0
push edi
mov ebx, eax
call fcn.004b3dae
add esp, 4
push 1
mov ecx, 0x508304
call fcn.0042cc60
push esi
call fcn.004b3dae
add esp, 4
test eax, eax
jne 0x438e78
test ebx, ebx
jne 0x438e78
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00435da0
xor eax, eax
mov ecx, dword [esp + 0x1448]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1430]
xor ecx, esp
call fcn.004b102c
add esp, 0x1440
ret 8
push ebp
call fcn.00435da0
test ebx, ebx
je 0x438e89
mov eax, ebx
cmp ebx, 0xa
jne 0x438e4e
mov eax, 0xe
jmp 0x438e4e