joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b0e0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4d500c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
push eax
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x43b134
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push eax
push str.CJHHttp::ReadResponseData
push str._s:WinHttpQueryDataAvailable___failed:_d
push ebx
call fcn.0043ac90
add esp, 0x10
jmp 0x43b1b9
mov eax, dword [ebp - 8]
test eax, eax
jne 0x43b153
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ae26
mov esp, ebp
pop ebp
ret 8
push 0
push eax
mov ecx, edi
mov dword [ebp - 0xc], 0
call fcn.0041b7d0
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x43b16e
mov eax, dword [edi]
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 8]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x43b189
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
je 0x43b13b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push eax
push str.CJHHttp::ReadResponseData
push str._s:WinHttpReadData___failed:_d
push ebx
call fcn.0043ac90
add esp, 0x10
mov dword [edi + 0x10], 0
cmp dword [edi + 0x14], 0x10
jb 0x43b1b6
mov edi, dword [edi]
mov byte [edi], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044ae26
mov esp, ebp
pop ebp
ret 8
Function at 0x4406e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0d80
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4d500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0044b027
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00492b6d
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e8b0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044e8c0

Function at 0x450d50
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, ecx
push edi
cmp eax, ebx
jb 0x450d63
mov eax, ebx
mov edi, dword [esp + 0x18]
add eax, eax
push eax
push dword [esp + 0x14]
push edi
call fcn.004723c0
mov al, byte [esi + 0x101]
add esp, 0xc
mov ecx, dword [0x4d7b34]
add ebx, ebx
mov byte [esp + 0x14], al
test ecx, ecx
jne 0x450df0
cmp byte [0x4d7b30], cl
jne 0x450df0
push str.Crypt32.dll
call fcn.0045a890
mov dword [0x4d7b2c], eax
test eax, eax
je 0x450ddc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptProtectMemory
push eax
call esi
push str.CryptUnprotectMemory
push dword [0x4d7b2c]
mov dword [0x4d7b34], eax
call esi
mov ecx, dword [0x4d7b34]
mov dword [0x4d7b38], eax
mov byte [0x4d7b30], 1
jmp 0x450df5
mov eax, dword [0x4d7b38]
mov ecx, dword [0x4d7b34]
mov byte [0x4d7b30], 1
jmp 0x450df5
mov eax, dword [0x4d7b38]
mov edx, ebx
and edx, 0xfffffff0
mov dword [esp + 0x1c], edx
xor edx, edx
cmp byte [esp + 0x14], dl
setne dl
cmp byte [esp + 0x20], 0
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x1c]
je 0x450e54
test ecx, ecx
je 0x450e6b
push dword [esp + 0x14]
push edx
push edi
call ecx
test eax, eax
jne 0x450e93
push str.CryptProtectMemory_failed
push 0x4d7b3c
call fcn.00450630
add esp, 8
mov ecx, 0x4d7b3c
call fcn.0043e7d0
push 2
mov ecx, 0x4d7b3c
call fcn.004505e0
pop edi
pop esi
pop ebx
ret 0x14
test eax, eax
je 0x450e6b
push dword [esp + 0x14]
push edx
push edi
call eax
test eax, eax
jne 0x450e93
push str.CryptUnprotectMemory_failed
jmp 0x450e2b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
xor eax, eax
mov dword [esp + 0x20], ecx
test ebx, ebx
je 0x450e93
lea ecx, [ecx]
add cl, 0x4b
lea edx, [eax + edi]
add cl, al
inc eax
xor byte [edx], cl
mov ecx, dword [esp + 0x20]
cmp eax, ebx
jb 0x450e80
pop edi
pop esi
pop ebx
ret 0x14
Function at 0x450ea0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [0x4d7b34]
push esi
push edi
test ecx, ecx
jne 0x450f0f
cmp byte [0x4d7b30], cl
jne 0x450f0f
push str.Crypt32.dll
call fcn.0045a890
mov dword [0x4d7b2c], eax
test eax, eax
je 0x450efb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptProtectMemory
push eax
call esi
push str.CryptUnprotectMemory
push dword [0x4d7b2c]
mov dword [0x4d7b34], eax
call esi
mov ecx, dword [0x4d7b34]
mov dword [0x4d7b38], eax
mov byte [0x4d7b30], 1
jmp 0x450f14
mov eax, dword [0x4d7b38]
mov ecx, dword [0x4d7b34]
mov byte [0x4d7b30], 1
jmp 0x450f14
mov eax, dword [0x4d7b38]
mov esi, dword [esp + 0x10]
mov edx, esi
movzx edi, byte [esp + 0x18]
and edx, 0xfffffff0
cmp byte [esp + 0x14], 0
je 0x450f64
test ecx, ecx
je 0x450f7b
push edi
push edx
push dword [esp + 0x14]
call ecx
test eax, eax
jne 0x450fa0
push str.CryptProtectMemory_failed
push 0x4d7b3c
call fcn.00450630
add esp, 8
mov ecx, 0x4d7b3c
call fcn.0043e7d0
push 2
mov ecx, 0x4d7b3c
call fcn.004505e0
pop edi
pop esi
ret
test eax, eax
je 0x450f7b
push edi
push edx
push dword [esp + 0x14]
call eax
test eax, eax
jne 0x450fa0
push str.CryptUnprotectMemory_failed
jmp 0x450f3e
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
test esi, esi
je 0x450f9f
mov edi, dword [esp + 0x10]
mov edi, edi
lea eax, [ebx + 0x4b]
add al, dl
lea ecx, [edx + edi]
xor byte [ecx], al
inc edx
cmp edx, esi
jb 0x450f90
pop ebx
pop edi
pop esi
ret
Function at 0x4520b0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.004a63c0
mov eax, dword [0x4d500c]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
mov ebx, dword [esp + 0x1010]
push ebp
push esi
mov esi, dword [esp + 0x1014]
push edi
movzx eax, word [esi]
test ax, ax
je 0x4522e3
push eax
call fcn.00452e60
mov edi, esi
add esp, 4
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4520f4
sub edi, ecx
lea ebp, [esi + 2]
movzx ecx, word [esi]
sar edi, 1
mov eax, ecx
cmp ecx, 0x5c
jne 0x452116
cmp word [ebp], cx
je 0x45214f
push ecx
call fcn.00452e60
movzx eax, ax
add esp, 4
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x4521ec
cmp word [ebp], 0x3a
jne 0x4521ec
movzx eax, word [esi + 4]
cmp eax, 0x5c
je 0x45214c
cmp eax, 0x2f
jne 0x4521ec
movzx eax, word [esi]
push eax
call fcn.00452e60
movzx eax, ax
add esp, 4
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x45219b
cmp word [ebp], 0x3a
jne 0x45219b
lea eax, [edi + 4]
mov edi, dword [esp + 0x1020]
cmp edi, eax
jbe 0x4522e3
push edi
push 0x4b7f24
push ebx
call fcn.00452f20
push edi
push esi
push ebx
call fcn.00452ec0
add esp, 0x18
mov al, 1
jmp 0x4522e5
cmp word [esi], 0x5c
jne 0x4522e3
cmp word [ebp], 0x5c
jne 0x4522e3
mov esi, dword [esp + 0x1020]
lea eax, [edi + 6]
cmp esi, eax
jbe 0x4522e3
push esi
push 0x4b7f24
push ebx
call fcn.00452f20
push esi
push 0x4b7f30
push ebx
call fcn.00452ec0
push esi
push ebp
push ebx
call fcn.00452ec0
add esp, 0x24
mov al, 1
jmp 0x4522e5
lea eax, [esp + 0x10]
push eax
push 0x7ff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4522e3
cmp eax, 0x7ff
ja 0x4522e3
movzx eax, word [esi]
cmp eax, 0x5c
je 0x4522a7
cmp eax, 0x2f
je 0x4522a7
lea eax, [esp + 0x10]
push 0x800
push eax
call fcn.00451bf0
lea ecx, [esp + 0x18]
add esp, 8
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x452240
sub ecx, edx
lea eax, [edi + 4]
mov edi, dword [esp + 0x1020]
sar ecx, 1
add eax, ecx
cmp edi, eax
jbe 0x4522e3
push edi
push 0x4b7f24
push ebx
call fcn.00452f20
push edi
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.00452ec0
add esp, 0x18
cmp word [esi], 0x2e
jne 0x452298
movzx eax, word [esi + 2]
push eax
call fcn.00452440
add esp, 4
test al, al
je 0x452298
add esi, 4
push edi
push esi
push ebx
call fcn.00452ec0
add esp, 0xc
mov al, 1
jmp 0x4522e5
lea eax, [edi + 6]
mov edi, dword [esp + 0x1020]
cmp edi, eax
jbe 0x4522e3
push edi
push 0x4b7f24
push ebx
call fcn.00452f20
xor eax, eax
mov word [esp + 0x20], ax
lea eax, [esp + 0x1c]
push edi
push eax
push ebx
call fcn.00452ec0
push edi
push esi
push ebx
call fcn.00452ec0
add esp, 0x24
mov al, 1
jmp 0x4522e5
xor al, al
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044ae26
add esp, 0x1004
ret
Function at 0x45a800
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x4d500c]
xor eax, esp
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
mov dword [esp + 8], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [esp + 0x30]
mov word [esp + 0x34], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esp], eax
test eax, eax
je 0x45a870
lea eax, [esp]
push eax
push dword [esp + 8]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [esp + 4]
neg eax
sbb eax, eax
and dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp]
test eax, eax
mov ecx, dword [esp + 0x10]
setne al
xor ecx, esp
call fcn.0044ae26
add esp, 0x14
ret

Function at 0x45a890
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.004a63c0
mov eax, dword [0x4d500c]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x100c]
lea eax, [esp + 4]
push 0x800
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x45a8dc
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0044ae26
add esp, 0x1004
ret 4
push 0x800
lea eax, [esp + 8]
push eax
push esi
push eax
call fcn.004524a0
add esp, 0x10
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [esp + 0x1004]
pop esi
xor ecx, esp
call fcn.0044ae26
add esp, 0x1004
ret 4

Function at 0x45a9c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4d500c]
xor eax, esp
mov dword [esp + 0x114], eax
cmp byte [0x4d7b6c], 0
jne 0x45aa50
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x45aa2f
jne 0x45aa0c
cmp dword [esp + 0xc], 0x55f0
jb 0x45aa0c
call fcn.0045aa70
test al, al
je 0x45aa2f
xor al, al
mov byte [0x4d7b6c], 1
mov byte [0x4d7b6d], al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0044ae26
add esp, 0x118
ret
mov al, 1
mov byte [0x4d7b6d], al
mov byte [0x4d7b6c], al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0044ae26
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
mov al, byte [0x4d7b6d]
xor ecx, esp
call fcn.0044ae26
add esp, 0x118
ret
Function at 0x45af00
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x104], 0
jne 0x45af8d
push ebx
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x45af8c
push ebp
push edi
lea edi, [esi + 4]
lea ecx, [ecx]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x45b030
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
jne 0x45af68
push str.CreateThread_failed
push 0x4d7b3c
call fcn.00450630
add esp, 8
mov ecx, 0x4d7b3c
call fcn.0043e7d0
push 2
mov ecx, 0x4d7b3c
call fcn.004505e0
mov dword [edi], ebp
inc dword [esi + 0x104]
mov eax, dword [0x4d7b70]
test eax, eax
je 0x45af82
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebx
add edi, 4
cmp ebx, dword [esi]
jb 0x45af20
pop edi
pop ebp
pop ebx
cmp dword [esi + 0x108], 0x40
jb 0x45af9d
mov ecx, esi
call fcn.0045b100
mov ecx, dword [esi + 0x30c]
mov eax, dword [esp + 0xc]
mov dword [esi + ecx*8 + 0x10c], eax
mov ecx, dword [esi + 0x30c]
mov eax, dword [esp + 0x10]
mov dword [esi + ecx*8 + 0x110], eax
mov eax, dword [esi + 0x30c]
inc eax
and eax, 0x3f
inc dword [esi + 0x108]
mov dword [esi + 0x30c], eax
pop esi
pop ecx
ret 8

Function at 0x45b2a0
Capabilities:
Delete directory

Disassembly:
mov eax, 0x1004
call fcn.004a63c0
mov eax, dword [0x4d500c]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push esi
mov esi, dword [esp + 0x1010]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x45b30f
push 0x800
lea eax, [esp + 0xc]
push eax
push esi
call fcn.004520b0
add esp, 0xc
test al, al
je 0x45b30f
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
pop esi
setne al
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0044ae26
add esp, 0x1004
ret
mov ecx, dword [esp + 0x1008]
mov al, bl
pop esi
pop ebx
xor ecx, esp
call fcn.0044ae26
add esp, 0x1004
ret

Function at 0x45b330
Capabilities:
Delete file

Disassembly:
mov eax, 0x1004
call fcn.004a63c0
mov eax, dword [0x4d500c]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push esi
mov esi, dword [esp + 0x1010]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test eax, eax
jne 0x45b39f
push 0x800
lea eax, [esp + 0xc]
push eax
push esi
call fcn.004520b0
add esp, 0xc
test al, al
je 0x45b39f
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
pop esi
setne al
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0044ae26
add esp, 0x1004
ret
mov ecx, dword [esp + 0x1008]
mov al, bl
pop esi
pop ebx
xor ecx, esp
call fcn.0044ae26
add esp, 0x1004
ret
Function at 0x45b3c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1004
call fcn.004a63c0
mov eax, dword [0x4d500c]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
mov ebx, dword [esp + 0x100c]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45b416
push 0x800
lea eax, [esp + 0xc]
push eax
push ebx
call fcn.004520b0
add esp, 0xc
test al, al
je 0x45b413
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
mov ecx, dword [esp + 0x1008]
setne al
pop esi
pop ebx
xor ecx, esp
call fcn.0044ae26
add esp, 0x1004
ret

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

Disassembly:
mov eax, 0x1004
call fcn.004a63c0
mov eax, dword [0x4d500c]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
push edi
mov edi, dword [esp + 0x1010]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45b49a
push 0x800
lea eax, [esp + 0xc]
push eax
push edi
call fcn.004520b0
add esp, 0xc
test al, al
je 0x45b498
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0044ae26
add esp, 0x1004
ret
mov eax, esi
mov ecx, dword [esp + 0x1008]
pop edi
pop esi
xor ecx, esp
call fcn.0044ae26
add esp, 0x1004
ret

Function at 0x45b4f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x1004
call fcn.004a63c0
mov eax, dword [0x4d500c]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x100c]
push esi
call fcn.00452af0
add esp, 4
movzx eax, word [eax]
cmp eax, 0x2e
je 0x45b533
cmp eax, 0x20
je 0x45b533
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x45b592
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45b5c4
push 0x800
lea eax, [esp + 8]
push eax
push esi
call fcn.004520b0
add esp, 0xc
test al, al
je 0x45b56a
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45b5c4
push 0x800
lea eax, [esp + 8]
push eax
push esi
call fcn.004520b0
add esp, 0xc
test al, al
je 0x45b5c4
push 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x45b5c4
cmp byte [esp + 0x1010], 0
je 0x45b5ac
push dword [esp + 0x1014]
push esi
call fcn.0045b7f0
add esp, 8
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0044ae26
add esp, 0x1004
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x45b5d9
cmp eax, 3
mov eax, 1
jne 0x45b5de
mov eax, 2
mov ecx, dword [esp + 0x1004]
pop esi
xor ecx, esp
call fcn.0044ae26
add esp, 0x1004
ret
Function at 0x45b610
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1028
call fcn.004a63c0
mov eax, dword [0x4d500c]
xor eax, esp
mov dword [esp + 0x1024], eax
mov ecx, dword [esp + 0x1038]
push ebx
push ebp
mov ebp, dword [esp + 0x103c]
push esi
mov esi, dword [esp + 0x1038]
push edi
mov edi, dword [esp + 0x1040]
mov dword [esp + 0x18], ecx
test edi, edi
je 0x45b65c
mov eax, dword [edi]
or eax, dword [edi + 4]
mov byte [esp + 0x10], 1
jne 0x45b661
mov byte [esp + 0x10], 0
test ebp, ebp
je 0x45b672
mov eax, dword [ebp]
or eax, dword [ebp + 4]
mov byte [esp + 0x12], 1
jne 0x45b677
mov byte [esp + 0x12], 0
test ecx, ecx
je 0x45b687
mov eax, dword [ecx]
or eax, dword [ecx + 4]
mov byte [esp + 0x11], 1
jne 0x45b68c
mov byte [esp + 0x11], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x45b6c3
push 0x800
lea eax, [esp + 0x38]
push eax
push esi
call fcn.004520b0
add esp, 0xc
test al, al
je 0x45b6da
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45b6da
test bl, 1
je 0x45b6da
push 0
push esi
mov byte [esp + 0x1b], 1
call fcn.0045b7f0
add esp, 8
jmp 0x45b6df
mov byte [esp + 0x13], 0
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x45b746
push 0x800
lea eax, [esp + 0x38]
push eax
push esi
call fcn.004520b0
add esp, 0xc
test al, al
je 0x45b7d4
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x45b7d4
cmp byte [esp + 0x10], 0
je 0x45b759
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.004514e0
cmp byte [esp + 0x12], 0
je 0x45b76c
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
call fcn.004514e0
cmp byte [esp + 0x11], 0
je 0x45b781
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
call fcn.004514e0
movzx eax, byte [esp + 0x10]
lea ecx, [esp + 0x1c]
neg eax
mov edi, dword [esp + 0x14]
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x24]
push eax
movzx eax, byte [esp + 0x15]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x30]
push eax
movzx eax, byte [esp + 0x1a]
neg eax
sbb eax, eax
and eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x13], 0
je 0x45b7d4
push ebx
push esi
call fcn.0045b7f0
add esp, 8
mov ecx, dword [esp + 0x1034]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044ae26
add esp, 0x1028
ret
Function at 0x45b7f0
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x1004
call fcn.004a63c0
mov eax, dword [0x4d500c]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push esi
push dword [esp + 0x1014]
mov esi, dword [esp + 0x1014]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x45b86d
push 0x800
lea eax, [esp + 0xc]
push eax
push esi
call fcn.004520b0
add esp, 0xc
test al, al
je 0x45b86d
push dword [esp + 0x1014]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
pop esi
setne al
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0044ae26
add esp, 0x1004
ret
mov ecx, dword [esp + 0x1008]
mov al, bl
pop esi
pop ebx
xor ecx, esp
call fcn.0044ae26
add esp, 0x1004
ret

Function at 0x45b9e0
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1254
call fcn.004a63c0
mov eax, dword [0x4d500c]
xor eax, esp
mov dword [esp + 0x1250], eax
push ebx
mov ebx, dword [esp + 0x1260]
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x1260]
push edi
mov edi, dword [esp + 0x126c]
push eax
cmp esi, 0xffffffff
jne 0x45ba8f
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45bab4
push 0x800
lea eax, [esp + 0x260]
push eax
push ebx
call fcn.004520b0
add esp, 0xc
test al, al
je 0x45ba60
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45bab4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x45ba82
cmp eax, 3
je 0x45ba82
cmp eax, 0x12
je 0x45ba82
mov al, 1
mov byte [edi + 0x1044], al
jmp 0x45bb62
xor al, al
mov byte [edi + 0x1044], al
jmp 0x45bb62
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45bab4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne cl
or eax, 0xffffffff
mov byte [edi + 0x1044], cl
jmp 0x45bb64
push 0x800
push ebx
push edi
call fcn.00452f20
push 0x800
lea eax, [esp + 0x48]
push eax
push edi
call fcn.00452c20
mov ecx, dword [esp + 0x40]
xor eax, eax
add esp, 0x18
add eax, dword [esp + 0x2c]
mov dword [edi + 0x1000], eax
mov eax, dword [esp + 0xc]
adc ecx, 0
mov dword [edi + 0x1008], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x1004], ecx
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x1028], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x102c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0x1030], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x1034], ecx
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x1038], eax
lea eax, [esp + 0x20]
mov dword [edi + 0x103c], ecx
lea ecx, [edi + 0x1010]
push eax
call fcn.004517f0
lea eax, [esp + 0x10]
push eax
lea ecx, [edi + 0x1018]
call fcn.004517f0
lea eax, [esp + 0x18]
push eax
lea ecx, [edi + 0x1020]
call fcn.004517f0
mov eax, esi
mov ecx, dword [esp + 0x125c]
mov dword [edi + 0x1040], 0
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044ae26
add esp, 0x1254
ret