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

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov ebp, dword [esi + 4]
cmp ebp, ebx
je 0x45538b
cmp dword [esi + 0xc], ebx
je 0x45538b
cmp dword [esi + 0x10], ebx
je 0x455292
lea eax, [esp + 0x14]
lea edi, [esi + 0x1c]
push ebx
push eax
push edi
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp eax, ebx
jne 0x455277
mov ecx, dword [esi + 0x2c]
push 0x7530
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x455266
mov dword [esi + 0x14], 0xf0000003
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0xc
mov eax, dword [esi + 4]
lea edx, [esp + 0x14]
push ebx
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
xor ecx, ecx
mov dword [esi + 0x10], ebx
mov dword [edi], ecx
cmp eax, ebx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], ecx
je 0x45538b
mov eax, dword [esi + 0xc]
xor edx, edx
mov dword [esp + 0x20], edx
push eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x1c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x38]
push eax
push ecx
push edx
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
cmp edi, ebx
je 0x4552fc
cmp dword [esp + 0x10], ebx
jbe 0x4552fc
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, ebx
jne 0x455318
cmp eax, ebx
je 0x455318
cmp eax, 0x3e5
je 0x455318
cmp eax, 0x217
jne 0x45538b
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
cmp edi, ebx
je 0x455350
push ebp
call dword [sym.imp.KERNEL32.dll_CancelIo]
cmp edi, 0x102
jne 0x45538b
mov dword [esi + 0x14], 0xf0000003
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0xc
lea eax, [esp + 0x18]
push ebx
lea ecx, [esp + 0x20]
push eax
push ecx
push ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edx, dword [esi + 0xc]
mov edi, eax
push edx
mov dword [esi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 0x18]
mov eax, edi
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
and eax, ecx
pop ebx
add esp, 0x20
ret 0xc
mov dword [esi + 0x14], 0xf0000001
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0xc
Function at 0x456080
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x53e285
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x91c
push esi
push edi
mov esi, dword [esp + 0x938]
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x126]
mov word [esp + 0x124], 0
mov dword [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x591bc4]
test esi, esi
je 0x45616c
test eax, eax
jne 0x45612b
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x14]
mov dword [0x591bc4], 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x20], 2
jne 0x45611f
cmp dword [esp + 0x14], 5
jb 0x45611f
mov ecx, dword [str.GlobalOCULAR_]
mov dword [0x591bc8], ecx
jmp 0x45612b
mov edx, dword [0x574898]
mov dword [0x591bc8], edx
mov eax, dword [esp + 0x93c]
test eax, eax
mov eax, dword [0x574898]
jne 0x456140
mov eax, dword [0x591bc8]
mov ecx, dword [esp + 0x944]
mov edx, dword [esp + 0x940]
push ecx
push edx
push esi
push eax
lea eax, [esp + 0x134]
push str._s__s__08x__08x
push eax
call fcn.00423d0b
add esp, 0x18
jmp 0x4561fb
test eax, eax
jne 0x4561c0
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x14]
mov dword [0x591bc4], 1
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x20], 2
jne 0x4561b6
cmp dword [esp + 0x14], 5
jb 0x4561b6
mov edx, dword [str.GlobalOCULAR_]
mov dword [0x591bc8], edx
jmp 0x4561c0
mov eax, dword [0x574898]
mov dword [0x591bc8], eax
mov eax, dword [esp + 0x93c]
test eax, eax
mov eax, dword [0x574898]
jne 0x4561d5
mov eax, dword [0x591bc8]
mov ecx, dword [esp + 0x944]
mov edx, dword [esp + 0x940]
push ecx
push edx
push eax
lea eax, [esp + 0x130]
push str._s___08x__08x
push eax
call fcn.00423d0b
add esp, 0x14
lea ecx, [esp + 0x124]
push ecx
lea ecx, [esp + 0xc]
call fcn.0043b640
mov esi, dword [esp + 0x934]
lea edx, [esp + 8]
push edx
mov ecx, esi
mov dword [esp + 0x930], 1
call fcn.0043b3e0
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x92c], 0
call fcn.0043bde0
mov ecx, dword [esp + 0x924]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x928
ret
Function at 0x4589a0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0xffffffff
je 0x458a28
mov eax, dword [esi + 0x14]
xor ebx, ebx
cmp eax, ebx
je 0x458a02
mov ecx, dword [esi + 0x18]
xor eax, eax
mov dword [esp + 9], eax
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
mov word [esp + 0x11], ax
push ecx
mov byte [esp + 0x10], bl
mov byte [esp + 0x17], al
call edi
push ebx
mov dword [esp + 0x10], eax
call edi
lea edx, [esp + 0xc]
push 8
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
push edx
push 0xd
push ebx
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
pop edi
jge 0x458a02
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov ecx, dword [esi + 0xc]
push 1
push ecx
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x45c240
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ax, word [esp + 4]
pop edi
add esp, 0x208
ret

Function at 0x45c280
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x45c340
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.00423b0f
add esp, 8
test eax, eax
je 0x45c2cf
mov word [eax], 0
mov edi, dword [esp + 0x218]
test edi, edi
je 0x45c339
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x45c339
lea edx, [esp + 0xc]
test edx, edx
je 0x45c339
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x45c316
push eax
lea eax, [esp + 0x10]
push eax
push 0x56c2b0
push ebx
push edi
call fcn.00423e63
add esp, 0x14
xor esi, esi
jmp 0x45c348
lea ecx, [esp + 0xc]
push ecx
call fcn.00422e21
add esp, 4
cmp ebx, eax
jbe 0x45c348
lea edx, [esp + 0xc]
push edx
push edi
call fcn.00423aea
add esp, 8
xor esi, esi
jmp 0x45c348
mov esi, 0x57
jmp 0x45c348
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x591c90], esi
je 0x45c359
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x208
ret
Function at 0x45c560
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x53e825
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
mov eax, dword [0x54a4b4]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push 0x104
push ecx
mov dword [esp + 0x434], 1
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x45c673
lea edx, [esp + 0x14]
push 0x5c
push edx
call fcn.00423b0f
add esp, 8
cmp eax, ebx
je 0x45c5f4
mov word [eax], bx
lea eax, [esp + 0x21c]
test eax, eax
je 0x45c66c
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x45c66c
mov eax, dword [esp + 0x438]
mov esi, 0x7a
cmp eax, ebx
je 0x45c63d
lea edx, [esp + 0x14]
push eax
push edx
push 0x56c2b0
lea eax, [esp + 0x228]
push 0x104
push eax
call fcn.00423e63
add esp, 0x14
xor esi, esi
mov eax, esi
jmp 0x45c679
lea ecx, [esp + 0x14]
push ecx
call fcn.00422e21
add esp, 4
cmp eax, 0x104
jae 0x45c668
lea edx, [esp + 0x14]
lea eax, [esp + 0x21c]
push edx
push eax
call fcn.00423aea
add esp, 8
xor esi, esi
mov eax, esi
jmp 0x45c679
mov eax, 0x57
jmp 0x45c679
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [0x591c90], eax
je 0x45c68b
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x45c69c
lea ecx, [esp + 0x21c]
push ecx
lea ecx, [esp + 0x10]
call fcn.0043c060
mov esi, dword [esp + 0x434]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.0043b3e0
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x42c], bl
call fcn.0043bde0
mov ecx, dword [esp + 0x424]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x424
ret

Function at 0x45c7a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x45c844
mov edi, dword [esp + 0x218]
test edi, edi
je 0x45c83d
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x45c83d
lea ecx, [esp + 0xc]
test ecx, ecx
je 0x45c83d
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x45c81a
lea edx, [esp + 0xc]
push eax
push edx
push 0x56c2b0
push ebx
push edi
call fcn.00423e63
add esp, 0x14
xor esi, esi
jmp 0x45c84c
lea eax, [esp + 0xc]
push eax
call fcn.00422e21
add esp, 4
cmp ebx, eax
jbe 0x45c84c
lea ecx, [esp + 0xc]
push ecx
push edi
call fcn.00423aea
add esp, 8
xor esi, esi
jmp 0x45c84c
mov esi, 0x57
jmp 0x45c84c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x591c90], esi
je 0x45c85d
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x208
ret
Function at 0x45ca30
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x53e875
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
mov eax, dword [0x54a4b4]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push 0x104
push ecx
mov dword [esp + 0x434], 1
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x45cb29
lea edx, [esp + 0x21c]
test edx, edx
je 0x45cb22
lea eax, [esp + 0x14]
test eax, eax
je 0x45cb22
mov eax, dword [esp + 0x438]
mov esi, 0x7a
cmp eax, ebx
je 0x45caf3
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x56c2b0
lea edx, [esp + 0x228]
push 0x104
push edx
call fcn.00423e63
add esp, 0x14
xor esi, esi
mov eax, esi
jmp 0x45cb2f
lea eax, [esp + 0x14]
push eax
call fcn.00422e21
add esp, 4
cmp eax, 0x104
jae 0x45cb1e
lea ecx, [esp + 0x14]
lea edx, [esp + 0x21c]
push ecx
push edx
call fcn.00423aea
add esp, 8
xor esi, esi
mov eax, esi
jmp 0x45cb2f
mov eax, 0x57
jmp 0x45cb2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [0x591c90], eax
je 0x45cb41
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x45cb52
lea eax, [esp + 0x21c]
lea ecx, [esp + 0xc]
push eax
call fcn.0043c060
mov esi, dword [esp + 0x434]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0043b3e0
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x42c], bl
call fcn.0043bde0
mov ecx, dword [esp + 0x424]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x424
ret
Function at 0x45d9f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x53e915
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x620
mov eax, dword [0x54a4b4]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x426]
mov word [esp + 0x424], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x21c]
push 0x104
push ecx
mov dword [esp + 0x63c], 1
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x45daf1
lea edx, [esp + 0x21c]
push 0x5c
push edx
call fcn.00423b0f
add esp, 8
cmp eax, ebx
je 0x45daa0
mov word [eax], bx
lea eax, [esp + 0x14]
test eax, eax
je 0x45daea
lea ecx, [esp + 0x21c]
test ecx, ecx
je 0x45daea
lea edx, [esp + 0x21c]
mov esi, 0x7a
push edx
call fcn.00422e21
add esp, 4
cmp eax, 0x104
jae 0x45dae6
lea eax, [esp + 0x21c]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00423aea
add esp, 8
xor esi, esi
mov eax, esi
jmp 0x45daf7
mov eax, 0x57
jmp 0x45daf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
cmp eax, ebx
mov dword [0x591c90], eax
je 0x45db25
push eax
call edi
mov esi, dword [0x591c90]
cmp esi, ebx
mov dword [0x591c90], esi
je 0x45dbc1
push esi
call edi
jmp 0x45dbd2
push 0x103
lea edx, [esp + 0x18]
push 0x56e104
push edx
call fcn.00514b33
lea eax, [esp + 0x430]
add esp, 0xc
test eax, eax
je 0x45dbb7
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x45dbb7
mov eax, dword [esp + 0x640]
mov esi, 0x7a
cmp eax, ebx
je 0x45db83
lea edx, [esp + 0x14]
push eax
push edx
push 0x56c2b0
lea eax, [esp + 0x430]
push 0x104
push eax
call fcn.00423e63
add esp, 0x14
xor esi, esi
jmp 0x45db0f
lea ecx, [esp + 0x14]
push ecx
call fcn.00422e21
add esp, 4
cmp eax, 0x104
jae 0x45db0f
lea edx, [esp + 0x14]
lea eax, [esp + 0x424]
push edx
push eax
call fcn.00423aea
add esp, 8
xor esi, esi
jmp 0x45db0f
mov esi, 0x57
jmp 0x45db0f
lea ecx, [esp + 0x424]
push ecx
lea ecx, [esp + 0x10]
call fcn.0043c060
mov esi, dword [esp + 0x63c]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.0043b3e0
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x634], bl
call fcn.0043bde0
mov ecx, dword [esp + 0x62c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x62c
ret
Function at 0x464670
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
test ebx, ebx
jne 0x46468c
xor eax, eax
pop ebx
add esp, 0x104
ret
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.0042ee80
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.0042eb80
mov esi, eax
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x464710
cmp byte [esp + 0x10], 0x5c
jne 0x464710
cmp byte [esp + 0x11], 0x5c
jne 0x464710
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.0042eb80
add esp, 8
test eax, eax
je 0x46478e
inc eax
push 0x5c
push eax
call fcn.0042eb80
add esp, 8
mov esi, eax
test esi, esi
je 0x46478e
lea eax, [esp + 0x10]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x464752
test bl, 1
je 0x464741
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 0xfffffffe
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x4647c4
cmp ebx, 0xffffffff
je 0x46475b
test edi, edi
jne 0x46476a
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x4647c4
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.0042eb80
mov esi, eax
add esp, 8
test esi, esi
jne 0x464714
test ebp, ebp
je 0x4647c4
mov ebx, dword [esp + 0x118]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4647b9
test al, 0x10
jne 0x4647c4
test al, 1
je 0x4647ac
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x4647c4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x4647e0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
jne 0x4647fc
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.00422de4
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00424745
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.00422e21
add esp, 0x18
cmp eax, 2
jbe 0x464881
cmp word [esp + 0x10], di
jne 0x464881
cmp word [esp + 0x12], di
jne 0x464881
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00424745
add esp, 8
test eax, eax
je 0x464909
add eax, 2
push edi
push eax
call fcn.00424745
add esp, 8
mov esi, eax
test esi, esi
je 0x464909
lea ecx, [esp + 0x10]
mov word [esi], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x4648c9
test bl, 1
je 0x4648b8
mov edx, ebx
lea eax, [esp + 0x10]
and edx, 0xfffffffe
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x46493f
cmp ebx, 0xffffffff
je 0x4648d2
test edi, edi
jne 0x4648e1
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x46493f
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.00424745
mov esi, eax
add esp, 8
test esi, esi
jne 0x464889
test ebp, ebp
je 0x46493f
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x464934
test al, 0x10
jne 0x46493f
test al, 1
je 0x464927
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x46493f
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x468350
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x53ee18
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x20]
xor edi, edi
xor ebp, ebp
cmp eax, ebx
je 0x468382
call fcn.00501a70
mov ebp, eax
mov eax, dword [esi + 0x18]
mov ecx, 0xc0000000
cmp eax, ebx
je 0x468393
mov ecx, SysReAllocStringLen
mov eax, dword [esi + 0x24]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
cmp dword [eax - 8], ebx
je 0x4683e8
push ebx
push 0x80
push 3
push ebp
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x4683ce
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp dword [esi + 4], 0xffffffff
je 0x468514
cmp dword [esp + 0x18], ebx
jne 0x4683e8
cmp dword [esp + 0x14], ebx
je 0x468514
mov eax, dword [esi + 0x18]
mov edi, 4
cmp eax, ebx
je 0x4683f9
mov edi, 2
lea ebx, [esi + 0x28]
lea ecx, [esp + 0x10]
push ebx
call fcn.0043b3e0
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], 0
test eax, eax
je 0x46843f
mov edx, dword [ebx]
mov eax, dword [edx - 8]
test eax, eax
je 0x46843f
call fcn.0044be50
test eax, eax
je 0x46843f
push 0x56c754
lea ecx, [esp + 0x14]
call fcn.0043c060
push ebx
lea ecx, [esp + 0x14]
call fcn.0043ca90
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0x10]
push eax
push 0
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 8], eax
je 0x4684ee
mov edx, dword [esi + 0x18]
mov ecx, 6
test edx, edx
je 0x46847b
mov ecx, 4
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xc], eax
je 0x4684ee
mov eax, dword [esi + 0x10]
mov ebp, 1
test eax, eax
jne 0x4684c9
mov eax, dword [esi + 4]
or ebx, 0xffffffff
cmp eax, ebx
je 0x4684cc
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x18]
xor edi, edi
sub ecx, edx
sbb eax, edi
test eax, eax
jle 0x4684c4
mov dword [esi + 0x10], ebx
jmp 0x4684cc
mov dword [esi + 0x10], ecx
jmp 0x4684cc
or ebx, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
call fcn.0043bde0
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.0043bde0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret