joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432040
Capabilities:
Receive http response
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4cc00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x43214c
mov eax, dword [esi + 0x10]
push 0
push eax
push 0
push 0
push 0
push 0
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x43211c
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4320de
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 8], 0
jb 0x43209c
mov esi, dword [esi]
lea ecx, [ebp - 8]
push ecx
push eax
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
mov esi, eax
test esi, esi
jne 0x4320de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::SendRequest
push str._s:WinHttpWriteData___failed:_d
push ebx
call fcn.00431d20
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00441dc6
mov esp, ebp
pop ebp
ret 8
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov esi, eax
test esi, esi
jne 0x432107
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::SendRequest
push str._s:WinHttpReceiveResponse___failed:_d
push ebx
call fcn.00431d20
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00441dc6
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::SendRequest
push str._s:WinHttpSendRequest___failed:_d
push ebx
call fcn.00431d20
mov eax, dword [ebp - 0x10]
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00441dc6
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441dc6
mov esp, ebp
pop ebp
ret 8
Function at 0x432170
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4cc00c]
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 0x4321c4
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.00431d20
add esp, 0x10
jmp 0x432249
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4321e3
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00441dc6
mov esp, ebp
pop ebp
ret 8
push 0
push eax
mov ecx, edi
mov dword [ebp - 0xc], 0
call fcn.00418320
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x4321fe
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 0x432219
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
je 0x4321cb
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.00431d20
add esp, 0x10
mov dword [edi + 0x10], 0
cmp dword [edi + 0x14], 0x10
jb 0x432246
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.00441dc6
mov esp, ebp
pop ebp
ret 8
Function at 0x437690
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a74f0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4cc00c]
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.00441fc7
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00489028
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 0x4590b5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00458d32
Function at 0x465750
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00465760

Function at 0x467bf0
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 0x467c03
mov eax, ebx
mov edi, dword [esp + 0x18]
add eax, eax
push eax
push dword [esp + 0x14]
push edi
call fcn.004433d0
mov al, byte [esi + 0x101]
add esp, 0xc
mov ecx, dword [0x4cf25c]
add ebx, ebx
mov byte [esp + 0x14], al
test ecx, ecx
jne 0x467c90
cmp byte [0x4cf258], cl
jne 0x467c90
push str.Crypt32.dll
call fcn.00471730
mov dword [0x4cf254], eax
test eax, eax
je 0x467c7c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptProtectMemory
push eax
call esi
push str.CryptUnprotectMemory
push dword [0x4cf254]
mov dword [0x4cf25c], eax
call esi
mov ecx, dword [0x4cf25c]
mov dword [0x4cf260], eax
mov byte [0x4cf258], 1
jmp 0x467c95
mov eax, dword [0x4cf260]
mov ecx, dword [0x4cf25c]
mov byte [0x4cf258], 1
jmp 0x467c95
mov eax, dword [0x4cf260]
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 0x467cf4
test ecx, ecx
je 0x467d0b
push dword [esp + 0x14]
push edx
push edi
call ecx
test eax, eax
jne 0x467d33
push str.CryptProtectMemory_failed
push 0x4cf264
call fcn.004674d0
add esp, 8
mov ecx, 0x4cf264
call fcn.00435780
push 2
mov ecx, 0x4cf264
call fcn.00467480
pop edi
pop esi
pop ebx
ret 0x14
test eax, eax
je 0x467d0b
push dword [esp + 0x14]
push edx
push edi
call eax
test eax, eax
jne 0x467d33
push str.CryptUnprotectMemory_failed
jmp 0x467ccb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
xor eax, eax
mov dword [esp + 0x20], ecx
test ebx, ebx
je 0x467d33
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 0x467d20
pop edi
pop esi
pop ebx
ret 0x14
Function at 0x467d40
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [0x4cf25c]
push esi
push edi
test ecx, ecx
jne 0x467daf
cmp byte [0x4cf258], cl
jne 0x467daf
push str.Crypt32.dll
call fcn.00471730
mov dword [0x4cf254], eax
test eax, eax
je 0x467d9b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptProtectMemory
push eax
call esi
push str.CryptUnprotectMemory
push dword [0x4cf254]
mov dword [0x4cf25c], eax
call esi
mov ecx, dword [0x4cf25c]
mov dword [0x4cf260], eax
mov byte [0x4cf258], 1
jmp 0x467db4
mov eax, dword [0x4cf260]
mov ecx, dword [0x4cf25c]
mov byte [0x4cf258], 1
jmp 0x467db4
mov eax, dword [0x4cf260]
mov esi, dword [esp + 0x10]
mov edx, esi
movzx edi, byte [esp + 0x18]
and edx, 0xfffffff0
cmp byte [esp + 0x14], 0
je 0x467e04
test ecx, ecx
je 0x467e1b
push edi
push edx
push dword [esp + 0x14]
call ecx
test eax, eax
jne 0x467e40
push str.CryptProtectMemory_failed
push 0x4cf264
call fcn.004674d0
add esp, 8
mov ecx, 0x4cf264
call fcn.00435780
push 2
mov ecx, 0x4cf264
call fcn.00467480
pop edi
pop esi
ret
test eax, eax
je 0x467e1b
push edi
push edx
push dword [esp + 0x14]
call eax
test eax, eax
jne 0x467e40
push str.CryptUnprotectMemory_failed
jmp 0x467dde
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
test esi, esi
je 0x467e3f
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 0x467e30
pop ebx
pop edi
pop esi
ret
Function at 0x468f50
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.0049cd50
mov eax, dword [0x4cc00c]
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 0x469183
push eax
call fcn.00469d00
mov edi, esi
add esp, 4
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x468f94
sub edi, ecx
lea ebp, [esi + 2]
movzx ecx, word [esi]
sar edi, 1
mov eax, ecx
cmp ecx, 0x5c
jne 0x468fb6
cmp word [ebp], cx
je 0x468fef
push ecx
call fcn.00469d00
movzx eax, ax
add esp, 4
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x46908c
cmp word [ebp], 0x3a
jne 0x46908c
movzx eax, word [esi + 4]
cmp eax, 0x5c
je 0x468fec
cmp eax, 0x2f
jne 0x46908c
movzx eax, word [esi]
push eax
call fcn.00469d00
movzx eax, ax
add esp, 4
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x46903b
cmp word [ebp], 0x3a
jne 0x46903b
lea eax, [edi + 4]
mov edi, dword [esp + 0x1020]
cmp edi, eax
jbe 0x469183
push edi
push 0x4b5fac
push ebx
call fcn.00469dc0
push edi
push esi
push ebx
call fcn.00469d60
add esp, 0x18
mov al, 1
jmp 0x469185
cmp word [esi], 0x5c
jne 0x469183
cmp word [ebp], 0x5c
jne 0x469183
mov esi, dword [esp + 0x1020]
lea eax, [edi + 6]
cmp esi, eax
jbe 0x469183
push esi
push 0x4b5fac
push ebx
call fcn.00469dc0
push esi
push 0x4b5fb8
push ebx
call fcn.00469d60
push esi
push ebp
push ebx
call fcn.00469d60
add esp, 0x24
mov al, 1
jmp 0x469185
lea eax, [esp + 0x10]
push eax
push 0x7ff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x469183
cmp eax, 0x7ff
ja 0x469183
movzx eax, word [esi]
cmp eax, 0x5c
je 0x469147
cmp eax, 0x2f
je 0x469147
lea eax, [esp + 0x10]
push 0x800
push eax
call fcn.00468a90
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 0x4690e0
sub ecx, edx
lea eax, [edi + 4]
mov edi, dword [esp + 0x1020]
sar ecx, 1
add eax, ecx
cmp edi, eax
jbe 0x469183
push edi
push 0x4b5fac
push ebx
call fcn.00469dc0
push edi
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.00469d60
add esp, 0x18
cmp word [esi], 0x2e
jne 0x469138
movzx eax, word [esi + 2]
push eax
call fcn.004692e0
add esp, 4
test al, al
je 0x469138
add esi, 4
push edi
push esi
push ebx
call fcn.00469d60
add esp, 0xc
mov al, 1
jmp 0x469185
lea eax, [edi + 6]
mov edi, dword [esp + 0x1020]
cmp edi, eax
jbe 0x469183
push edi
push 0x4b5fac
push ebx
call fcn.00469dc0
xor eax, eax
mov word [esp + 0x20], ax
lea eax, [esp + 0x1c]
push edi
push eax
push ebx
call fcn.00469d60
push edi
push esi
push ebx
call fcn.00469d60
add esp, 0x24
mov al, 1
jmp 0x469185
xor al, al
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00441dc6
add esp, 0x1004
ret
Function at 0x4716a0
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x4cc00c]
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 0x471710
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.00441dc6
add esp, 0x14
ret

Function at 0x471730
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.0049cd50
mov eax, dword [0x4cc00c]
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 0x47177c
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00441dc6
add esp, 0x1004
ret 4
push 0x800
lea eax, [esp + 8]
push eax
push esi
push eax
call fcn.00469340
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.00441dc6
add esp, 0x1004
ret 4

Function at 0x471860
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4cc00c]
xor eax, esp
mov dword [esp + 0x114], eax
cmp byte [0x4cf294], 0
jne 0x4718f0
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 0x4718cf
jne 0x4718ac
cmp dword [esp + 0xc], 0x55f0
jb 0x4718ac
call fcn.00471910
test al, al
je 0x4718cf
xor al, al
mov byte [0x4cf294], 1
mov byte [0x4cf295], al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00441dc6
add esp, 0x118
ret
mov al, 1
mov byte [0x4cf295], al
mov byte [0x4cf294], al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00441dc6
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
mov al, byte [0x4cf295]
xor ecx, esp
call fcn.00441dc6
add esp, 0x118
ret
Function at 0x471da0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x104], 0
jne 0x471e2d
push ebx
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x471e2c
push ebp
push edi
lea edi, [esi + 4]
lea ecx, [ecx]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x471ed0
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
jne 0x471e08
push str.CreateThread_failed
push 0x4cf264
call fcn.004674d0
add esp, 8
mov ecx, 0x4cf264
call fcn.00435780
push 2
mov ecx, 0x4cf264
call fcn.00467480
mov dword [edi], ebp
inc dword [esi + 0x104]
mov eax, dword [0x4cf298]
test eax, eax
je 0x471e22
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebx
add edi, 4
cmp ebx, dword [esi]
jb 0x471dc0
pop edi
pop ebp
pop ebx
cmp dword [esi + 0x108], 0x40
jb 0x471e3d
mov ecx, esi
call fcn.00471fa0
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 0x472140
Capabilities:
Delete directory

Disassembly:
mov eax, 0x1004
call fcn.0049cd50
mov eax, dword [0x4cc00c]
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 0x4721af
push 0x800
lea eax, [esp + 0xc]
push eax
push esi
call fcn.00468f50
add esp, 0xc
test al, al
je 0x4721af
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.00441dc6
add esp, 0x1004
ret
mov ecx, dword [esp + 0x1008]
mov al, bl
pop esi
pop ebx
xor ecx, esp
call fcn.00441dc6
add esp, 0x1004
ret

Function at 0x4721d0
Capabilities:
Delete file

Disassembly:
mov eax, 0x1004
call fcn.0049cd50
mov eax, dword [0x4cc00c]
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 0x47223f
push 0x800
lea eax, [esp + 0xc]
push eax
push esi
call fcn.00468f50
add esp, 0xc
test al, al
je 0x47223f
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.00441dc6
add esp, 0x1004
ret
mov ecx, dword [esp + 0x1008]
mov al, bl
pop esi
pop ebx
xor ecx, esp
call fcn.00441dc6
add esp, 0x1004
ret
Function at 0x472260
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1004
call fcn.0049cd50
mov eax, dword [0x4cc00c]
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 0x4722b6
push 0x800
lea eax, [esp + 0xc]
push eax
push ebx
call fcn.00468f50
add esp, 0xc
test al, al
je 0x4722b3
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.00441dc6
add esp, 0x1004
ret

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

Disassembly:
mov eax, 0x1004
call fcn.0049cd50
mov eax, dword [0x4cc00c]
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 0x47233a
push 0x800
lea eax, [esp + 0xc]
push eax
push edi
call fcn.00468f50
add esp, 0xc
test al, al
je 0x472338
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.00441dc6
add esp, 0x1004
ret
mov eax, esi
mov ecx, dword [esp + 0x1008]
pop edi
pop esi
xor ecx, esp
call fcn.00441dc6
add esp, 0x1004
ret

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

Disassembly:
mov eax, 0x1004
call fcn.0049cd50
mov eax, dword [0x4cc00c]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x100c]
push esi
call fcn.00469990
add esp, 4
movzx eax, word [eax]
cmp eax, 0x2e
je 0x4723d3
cmp eax, 0x20
je 0x4723d3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x472432
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x472464
push 0x800
lea eax, [esp + 8]
push eax
push esi
call fcn.00468f50
add esp, 0xc
test al, al
je 0x47240a
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x472464
push 0x800
lea eax, [esp + 8]
push eax
push esi
call fcn.00468f50
add esp, 0xc
test al, al
je 0x472464
push 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x472464
cmp byte [esp + 0x1010], 0
je 0x47244c
push dword [esp + 0x1014]
push esi
call fcn.00472690
add esp, 8
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00441dc6
add esp, 0x1004
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x472479
cmp eax, 3
mov eax, 1
jne 0x47247e
mov eax, 2
mov ecx, dword [esp + 0x1004]
pop esi
xor ecx, esp
call fcn.00441dc6
add esp, 0x1004
ret
Function at 0x4724b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1028
call fcn.0049cd50
mov eax, dword [0x4cc00c]
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 0x4724fc
mov eax, dword [edi]
or eax, dword [edi + 4]
mov byte [esp + 0x10], 1
jne 0x472501
mov byte [esp + 0x10], 0
test ebp, ebp
je 0x472512
mov eax, dword [ebp]
or eax, dword [ebp + 4]
mov byte [esp + 0x12], 1
jne 0x472517
mov byte [esp + 0x12], 0
test ecx, ecx
je 0x472527
mov eax, dword [ecx]
or eax, dword [ecx + 4]
mov byte [esp + 0x11], 1
jne 0x47252c
mov byte [esp + 0x11], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x472563
push 0x800
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00468f50
add esp, 0xc
test al, al
je 0x47257a
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47257a
test bl, 1
je 0x47257a
push 0
push esi
mov byte [esp + 0x1b], 1
call fcn.00472690
add esp, 8
jmp 0x47257f
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 0x4725e6
push 0x800
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00468f50
add esp, 0xc
test al, al
je 0x472674
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 0x472674
cmp byte [esp + 0x10], 0
je 0x4725f9
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.00468380
cmp byte [esp + 0x12], 0
je 0x47260c
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
call fcn.00468380
cmp byte [esp + 0x11], 0
je 0x472621
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
call fcn.00468380
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 0x472674
push ebx
push esi
call fcn.00472690
add esp, 8
mov ecx, dword [esp + 0x1034]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00441dc6
add esp, 0x1028
ret