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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4cd00c]
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 0x4339ac
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 0x43397c
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x43393e
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 8], 0
jb 0x4338fc
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 0x43393e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::SendRequest
push str._s:WinHttpWriteData___failed:_d
push ebx
call fcn.00433580
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443db6
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 0x433967
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::SendRequest
push str._s:WinHttpReceiveResponse___failed:_d
push ebx
call fcn.00433580
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443db6
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.00433580
mov eax, dword [ebp - 0x10]
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443db6
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.00443db6
mov esp, ebp
pop ebp
ret 8
Function at 0x4339d0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4cd00c]
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 0x433a24
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.00433580
add esp, 0x10
jmp 0x433aa9
mov eax, dword [ebp - 8]
test eax, eax
jne 0x433a43
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443db6
mov esp, ebp
pop ebp
ret 8
push 0
push eax
mov ecx, edi
mov dword [ebp - 0xc], 0
call fcn.00417f40
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x433a5e
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 0x433a79
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
je 0x433a2b
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.00433580
add esp, 0x10
mov dword [edi + 0x10], 0
cmp dword [edi + 0x14], 0x10
jb 0x433aa6
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.00443db6
mov esp, ebp
pop ebp
ret 8
Function at 0x43c3a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9bd0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4cd00c]
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.00443fb7
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0048b048
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 0x45b0bf
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045ad3c
Function at 0x467760
Capabilities:
Compute adler32 checksum

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

Function at 0x469c00
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 0x469c13
mov eax, ebx
mov edi, dword [esp + 0x18]
add eax, eax
push eax
push dword [esp + 0x14]
push edi
call fcn.004453c0
mov al, byte [esi + 0x101]
add esp, 0xc
mov ecx, dword [0x4d042c]
add ebx, ebx
mov byte [esp + 0x14], al
test ecx, ecx
jne 0x469ca0
cmp byte [0x4d0428], cl
jne 0x469ca0
push str.Crypt32.dll
call fcn.00473740
mov dword [0x4d0424], eax
test eax, eax
je 0x469c8c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptProtectMemory
push eax
call esi
push str.CryptUnprotectMemory
push dword [0x4d0424]
mov dword [0x4d042c], eax
call esi
mov ecx, dword [0x4d042c]
mov dword [0x4d0430], eax
mov byte [0x4d0428], 1
jmp 0x469ca5
mov eax, dword [0x4d0430]
mov ecx, dword [0x4d042c]
mov byte [0x4d0428], 1
jmp 0x469ca5
mov eax, dword [0x4d0430]
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 0x469d04
test ecx, ecx
je 0x469d1b
push dword [esp + 0x14]
push edx
push edi
call ecx
test eax, eax
jne 0x469d43
push str.CryptProtectMemory_failed
push 0x4d0434
call fcn.004694e0
add esp, 8
mov ecx, 0x4d0434
call fcn.0043b8d0
push 2
mov ecx, 0x4d0434
call fcn.00469490
pop edi
pop esi
pop ebx
ret 0x14
test eax, eax
je 0x469d1b
push dword [esp + 0x14]
push edx
push edi
call eax
test eax, eax
jne 0x469d43
push str.CryptUnprotectMemory_failed
jmp 0x469cdb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
xor eax, eax
mov dword [esp + 0x20], ecx
test ebx, ebx
je 0x469d43
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 0x469d30
pop edi
pop esi
pop ebx
ret 0x14
Function at 0x469d50
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [0x4d042c]
push esi
push edi
test ecx, ecx
jne 0x469dbf
cmp byte [0x4d0428], cl
jne 0x469dbf
push str.Crypt32.dll
call fcn.00473740
mov dword [0x4d0424], eax
test eax, eax
je 0x469dab
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptProtectMemory
push eax
call esi
push str.CryptUnprotectMemory
push dword [0x4d0424]
mov dword [0x4d042c], eax
call esi
mov ecx, dword [0x4d042c]
mov dword [0x4d0430], eax
mov byte [0x4d0428], 1
jmp 0x469dc4
mov eax, dword [0x4d0430]
mov ecx, dword [0x4d042c]
mov byte [0x4d0428], 1
jmp 0x469dc4
mov eax, dword [0x4d0430]
mov esi, dword [esp + 0x10]
mov edx, esi
movzx edi, byte [esp + 0x18]
and edx, 0xfffffff0
cmp byte [esp + 0x14], 0
je 0x469e14
test ecx, ecx
je 0x469e2b
push edi
push edx
push dword [esp + 0x14]
call ecx
test eax, eax
jne 0x469e50
push str.CryptProtectMemory_failed
push 0x4d0434
call fcn.004694e0
add esp, 8
mov ecx, 0x4d0434
call fcn.0043b8d0
push 2
mov ecx, 0x4d0434
call fcn.00469490
pop edi
pop esi
ret
test eax, eax
je 0x469e2b
push edi
push edx
push dword [esp + 0x14]
call eax
test eax, eax
jne 0x469e50
push str.CryptUnprotectMemory_failed
jmp 0x469dee
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
test esi, esi
je 0x469e4f
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 0x469e40
pop ebx
pop edi
pop esi
ret
Function at 0x46af60
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.0049ed70
mov eax, dword [0x4cd00c]
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 0x46b193
push eax
call fcn.0046bd10
mov edi, esi
add esp, 4
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x46afa4
sub edi, ecx
lea ebp, [esi + 2]
movzx ecx, word [esi]
sar edi, 1
mov eax, ecx
cmp ecx, 0x5c
jne 0x46afc6
cmp word [ebp], cx
je 0x46afff
push ecx
call fcn.0046bd10
movzx eax, ax
add esp, 4
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x46b09c
cmp word [ebp], 0x3a
jne 0x46b09c
movzx eax, word [esi + 4]
cmp eax, 0x5c
je 0x46affc
cmp eax, 0x2f
jne 0x46b09c
movzx eax, word [esi]
push eax
call fcn.0046bd10
movzx eax, ax
add esp, 4
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x46b04b
cmp word [ebp], 0x3a
jne 0x46b04b
lea eax, [edi + 4]
mov edi, dword [esp + 0x1020]
cmp edi, eax
jbe 0x46b193
push edi
push 0x4b7fb0
push ebx
call fcn.0046bdd0
push edi
push esi
push ebx
call fcn.0046bd70
add esp, 0x18
mov al, 1
jmp 0x46b195
cmp word [esi], 0x5c
jne 0x46b193
cmp word [ebp], 0x5c
jne 0x46b193
mov esi, dword [esp + 0x1020]
lea eax, [edi + 6]
cmp esi, eax
jbe 0x46b193
push esi
push 0x4b7fb0
push ebx
call fcn.0046bdd0
push esi
push 0x4b7fbc
push ebx
call fcn.0046bd70
push esi
push ebp
push ebx
call fcn.0046bd70
add esp, 0x24
mov al, 1
jmp 0x46b195
lea eax, [esp + 0x10]
push eax
push 0x7ff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x46b193
cmp eax, 0x7ff
ja 0x46b193
movzx eax, word [esi]
cmp eax, 0x5c
je 0x46b157
cmp eax, 0x2f
je 0x46b157
lea eax, [esp + 0x10]
push 0x800
push eax
call fcn.0046aaa0
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 0x46b0f0
sub ecx, edx
lea eax, [edi + 4]
mov edi, dword [esp + 0x1020]
sar ecx, 1
add eax, ecx
cmp edi, eax
jbe 0x46b193
push edi
push 0x4b7fb0
push ebx
call fcn.0046bdd0
push edi
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.0046bd70
add esp, 0x18
cmp word [esi], 0x2e
jne 0x46b148
movzx eax, word [esi + 2]
push eax
call fcn.0046b2f0
add esp, 4
test al, al
je 0x46b148
add esi, 4
push edi
push esi
push ebx
call fcn.0046bd70
add esp, 0xc
mov al, 1
jmp 0x46b195
lea eax, [edi + 6]
mov edi, dword [esp + 0x1020]
cmp edi, eax
jbe 0x46b193
push edi
push 0x4b7fb0
push ebx
call fcn.0046bdd0
xor eax, eax
mov word [esp + 0x20], ax
lea eax, [esp + 0x1c]
push edi
push eax
push ebx
call fcn.0046bd70
push edi
push esi
push ebx
call fcn.0046bd70
add esp, 0x24
mov al, 1
jmp 0x46b195
xor al, al
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00443db6
add esp, 0x1004
ret
Function at 0x4736b0
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x4cd00c]
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 0x473720
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.00443db6
add esp, 0x14
ret

Function at 0x473740
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.0049ed70
mov eax, dword [0x4cd00c]
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 0x47378c
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00443db6
add esp, 0x1004
ret 4
push 0x800
lea eax, [esp + 8]
push eax
push esi
push eax
call fcn.0046b350
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.00443db6
add esp, 0x1004
ret 4

Function at 0x473870
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4cd00c]
xor eax, esp
mov dword [esp + 0x114], eax
cmp byte [0x4d0464], 0
jne 0x473900
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 0x4738df
jne 0x4738bc
cmp dword [esp + 0xc], 0x55f0
jb 0x4738bc
call fcn.00473920
test al, al
je 0x4738df
xor al, al
mov byte [0x4d0464], 1
mov byte [0x4d0465], al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00443db6
add esp, 0x118
ret
mov al, 1
mov byte [0x4d0465], al
mov byte [0x4d0464], al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00443db6
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
mov al, byte [0x4d0465]
xor ecx, esp
call fcn.00443db6
add esp, 0x118
ret
Function at 0x473db0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x104], 0
jne 0x473e3d
push ebx
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x473e3c
push ebp
push edi
lea edi, [esi + 4]
lea ecx, [ecx]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x473ee0
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
jne 0x473e18
push str.CreateThread_failed
push 0x4d0434
call fcn.004694e0
add esp, 8
mov ecx, 0x4d0434
call fcn.0043b8d0
push 2
mov ecx, 0x4d0434
call fcn.00469490
mov dword [edi], ebp
inc dword [esi + 0x104]
mov eax, dword [0x4d0468]
test eax, eax
je 0x473e32
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebx
add edi, 4
cmp ebx, dword [esi]
jb 0x473dd0
pop edi
pop ebp
pop ebx
cmp dword [esi + 0x108], 0x40
jb 0x473e4d
mov ecx, esi
call fcn.00473fc0
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 0x474160
Capabilities:
Delete directory

Disassembly:
mov eax, 0x1004
call fcn.0049ed70
mov eax, dword [0x4cd00c]
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 0x4741cf
push 0x800
lea eax, [esp + 0xc]
push eax
push esi
call fcn.0046af60
add esp, 0xc
test al, al
je 0x4741cf
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.00443db6
add esp, 0x1004
ret
mov ecx, dword [esp + 0x1008]
mov al, bl
pop esi
pop ebx
xor ecx, esp
call fcn.00443db6
add esp, 0x1004
ret

Function at 0x4741f0
Capabilities:
Delete file

Disassembly:
mov eax, 0x1004
call fcn.0049ed70
mov eax, dword [0x4cd00c]
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 0x47425f
push 0x800
lea eax, [esp + 0xc]
push eax
push esi
call fcn.0046af60
add esp, 0xc
test al, al
je 0x47425f
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.00443db6
add esp, 0x1004
ret
mov ecx, dword [esp + 0x1008]
mov al, bl
pop esi
pop ebx
xor ecx, esp
call fcn.00443db6
add esp, 0x1004
ret
Function at 0x474280
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1004
call fcn.0049ed70
mov eax, dword [0x4cd00c]
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 0x4742d6
push 0x800
lea eax, [esp + 0xc]
push eax
push ebx
call fcn.0046af60
add esp, 0xc
test al, al
je 0x4742d3
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.00443db6
add esp, 0x1004
ret

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

Disassembly:
mov eax, 0x1004
call fcn.0049ed70
mov eax, dword [0x4cd00c]
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 0x47435a
push 0x800
lea eax, [esp + 0xc]
push eax
push edi
call fcn.0046af60
add esp, 0xc
test al, al
je 0x474358
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.00443db6
add esp, 0x1004
ret
mov eax, esi
mov ecx, dword [esp + 0x1008]
pop edi
pop esi
xor ecx, esp
call fcn.00443db6
add esp, 0x1004
ret

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

Disassembly:
mov eax, 0x1004
call fcn.0049ed70
mov eax, dword [0x4cd00c]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x100c]
push esi
call fcn.0046b9a0
add esp, 4
movzx eax, word [eax]
cmp eax, 0x2e
je 0x4743f3
cmp eax, 0x20
je 0x4743f3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x474452
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x474484
push 0x800
lea eax, [esp + 8]
push eax
push esi
call fcn.0046af60
add esp, 0xc
test al, al
je 0x47442a
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x474484
push 0x800
lea eax, [esp + 8]
push eax
push esi
call fcn.0046af60
add esp, 0xc
test al, al
je 0x474484
push 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x474484
cmp byte [esp + 0x1010], 0
je 0x47446c
push dword [esp + 0x1014]
push esi
call fcn.004746b0
add esp, 8
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00443db6
add esp, 0x1004
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x474499
cmp eax, 3
mov eax, 1
jne 0x47449e
mov eax, 2
mov ecx, dword [esp + 0x1004]
pop esi
xor ecx, esp
call fcn.00443db6
add esp, 0x1004
ret
Function at 0x4744d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1028
call fcn.0049ed70
mov eax, dword [0x4cd00c]
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 0x47451c
mov eax, dword [edi]
or eax, dword [edi + 4]
mov byte [esp + 0x10], 1
jne 0x474521
mov byte [esp + 0x10], 0
test ebp, ebp
je 0x474532
mov eax, dword [ebp]
or eax, dword [ebp + 4]
mov byte [esp + 0x12], 1
jne 0x474537
mov byte [esp + 0x12], 0
test ecx, ecx
je 0x474547
mov eax, dword [ecx]
or eax, dword [ecx + 4]
mov byte [esp + 0x11], 1
jne 0x47454c
mov byte [esp + 0x11], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x474583
push 0x800
lea eax, [esp + 0x38]
push eax
push esi
call fcn.0046af60
add esp, 0xc
test al, al
je 0x47459a
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47459a
test bl, 1
je 0x47459a
push 0
push esi
mov byte [esp + 0x1b], 1
call fcn.004746b0
add esp, 8
jmp 0x47459f
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 0x474606
push 0x800
lea eax, [esp + 0x38]
push eax
push esi
call fcn.0046af60
add esp, 0xc
test al, al
je 0x474694
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 0x474694
cmp byte [esp + 0x10], 0
je 0x474619
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.0046a390
cmp byte [esp + 0x12], 0
je 0x47462c
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
call fcn.0046a390
cmp byte [esp + 0x11], 0
je 0x474641
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
call fcn.0046a390
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 0x474694
push ebx
push esi
call fcn.004746b0
add esp, 8
mov ecx, dword [esp + 0x1034]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00443db6
add esp, 0x1028
ret