joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6b6030
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x20], 0
jne 0x6b6062
sub esp, 0x18
mov ecx, esp
push 0x7778dc
call fcn.00488ff0
push 0
push 0x13
mov ecx, esi
call fcn.006b73c0
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x6b607d
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0xb0], 0
mov eax, dword [esi + 0x24]
mov edi, 0x100
mov ecx, 0x800100
lea edx, [eax + 0x138]
cmp dword [eax + 0x154], 1
cmove edi, ecx
cmp dword [edx + 0x14], 8
jb 0x6b60a2
mov edx, dword [edx]
cmp dword [esi + 0x90], 8
lea eax, [esi + 0x7c]
jb 0x6b60b0
mov eax, dword [eax]
cmp dword [esi + 0xa8], 8
lea ecx, [esi + 0x94]
jb 0x6b60c1
mov ecx, dword [ecx]
push edi
push 0
push edx
push 0
push eax
push ecx
push dword [esi + 0xac]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0xb0], eax
test eax, eax
jne 0x6b610a
call fcn.006a59c0
push str.createRequest_:_failed_to_open_the_request_handle
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.006b6b80
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x6b6120
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x20], 0
je 0x6b627d
cmp byte [esi + 0x28], 0
je 0x6b627d
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
mov dword [ebx], 0
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x6b6199
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
mov ecx, esi
call fcn.006b6b80
call fcn.006a59c0
mov esi, eax
mov edi, dword [esi]
call ebx
push eax
push str.Error__d_in_WinHttpQueryDataAvailable._n
push 0x7778dc
push esi
call dword [edi + 0x24]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x14]
cmova ecx, dword [ebp + 0x14]
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x6b61b6
lea eax, [ecx + 2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebp + 0x10], 0
mov edi, dword [ebp + 8]
je 0x6b6216
push 0x776a6c
push ecx
call fcn.006bab8b
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x6b6213
call fcn.006a59c0
push dword [ebp - 4]
push str.failed_to_allote_mmeory_of_size__d
mov ecx, dword [eax]
push 0x7778dc
push eax
call dword [ecx + 0x24]
sub esp, 8
mov ecx, esp
push 0x7778dc
call fcn.00488ff0
push 0
push 0x14
mov ecx, esi
call fcn.006b73c0
mov eax, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
push ecx
push 0
push dword [edi]
call fcn.00651620
add esp, 0xc
push ebx
push dword [ebp - 4]
push dword [edi]
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x6b626a
call fcn.006a59c0
push str.Error__u_in_WinHttpReadData._n
push 0x7778dc
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.006b6b80
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 4]
neg eax
sbb eax, eax
add eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.006a59c0
push str.downloader_is_not_initialized
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
sub esp, 0x10
xor eax, eax
mov ecx, esp
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x7778dc
mov word [ecx], ax
call fcn.004891c0
push 0
push 0x13
mov ecx, esi
call fcn.006b73c0
pop edi
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x6b66e0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push esi
push edi
push 0
push eax
push 0
mov edi, ecx
mov dword [ebp - 4], 0
push 0
push ebx
push dword [edi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0x24
jne 0x6b671c
cmp eax, 0x2f76
je 0x6b6729
cmp eax, 0x7a
je 0x6b6734
push eax
mov ecx, edi
call fcn.006b6b80
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
test eax, eax
jne 0x6b675e
call fcn.006a59c0
push str.retrieveHeaderFromHttpRequest:_Zero_buffer_required....
push 0x7778dc
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
push 0x776a6c
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006bab8b
mov esi, eax
add esp, 8
test esi, esi
jne 0x6b67bd
call fcn.006a59c0
push str.failed_to_allocate_memory
push 0x7778dc
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
sub esp, 0xc
mov ecx, esp
push str.Memory_Allocation_Failed
call fcn.00488ff0
push esi
push 0x14
mov ecx, edi
call fcn.006b73c0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
lea eax, [ebp - 4]
push eax
push esi
push 0
push ebx
push dword [edi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x6b67f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.006b6b80
push esi
call fcn.0063bad2
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
push esi
call fcn.00488f40
push esi
call fcn.0063bad2
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x6b6900
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push 0
push 0
push 0x16
push dword [edi]
mov dword [ebp - 4], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x6b6988
mov eax, dword [ebp - 4]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
push esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0063bac9
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
push 0
push 0x16
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x6b697a
call fcn.006a59c0
push esi
push str.Header_contents:__n_s
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
add esp, 0xc
test esi, esi
je 0x6b6987
push esi
call fcn.0063bad2
add esp, 4
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4059e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x405a0b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004061e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x405a2d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x405a2f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x405ab3
jg 0x405a44
test esi, esi
je 0x405ab3
test ecx, ecx
jl 0x405a8d
jg 0x405a4e
test eax, eax
je 0x405a8d
cmp edi, ecx
jg 0x405a62
jl 0x405a58
cmp esi, eax
jae 0x405a62
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.004570e0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x405a90
mov edx, dword [ebp + 8]
test edi, edi
jl 0x405ab3
jg 0x405a9a
test esi, esi
je 0x405ab3
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x405ab3
push eax
push esi
push 1
push edx
call fcn.0045acdc
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405ad0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x405afb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004062c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x405b1d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x405b1f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x405bbe
jg 0x405b3c
test esi, esi
je 0x405bbe
test ecx, ecx
jl 0x405b89
jg 0x405b46
test eax, eax
je 0x405b89
cmp ebx, ecx
jg 0x405b5a
jl 0x405b50
cmp esi, eax
jae 0x405b5a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.004570e0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x405b90
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x405bbe
jg 0x405b9a
test esi, esi
je 0x405bbe
cmp dword [edi + 0x4c], 0
je 0x405bbe
mov ecx, edi
call fcn.00406e90
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.0045b2b6
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405ed0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x405f00
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00455277
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x405f3d
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x405f3d
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00455277
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
je 0x406032
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x405f65
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x405f99
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0045a3b7
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00455277
add esp, 0x30
ret 4
lea eax, [esp + 0x10]
mov byte [esp + 0xf], bl
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x23]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x406032
cmp eax, 1
jle 0x406001
cmp eax, 3
jne 0x406032
push dword [esi + 0x4c]
movsx eax, byte [esp + 0x13]
push eax
call fcn.0045a3b7
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00455277
add esp, 0x30
ret 4
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x18]
sub edi, eax
je 0x406020
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0045acdc
add esp, 0x10
cmp edi, eax
jne 0x406032
lea eax, [esp + 0xf]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x14], eax
jne 0x405f27
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00455277
add esp, 0x30
ret 4
Function at 0x4074f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47cb30
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4a8068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0045528d
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00453c93
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40cf30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d478
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4a8068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00405290
test al, al
je 0x40cf70
xor al, al
jmp 0x40d0a6
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405420
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push 4
push eax
call fcn.0040f630
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.004052a0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d093
lea ecx, [ebp - 0x44]
call fcn.00405400
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.004193d0
test al, al
je 0x40cfd2
lea ecx, [ebp - 0x44]
call fcn.004052a0
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004052e0
cmp esi, 0xffffffff
jne 0x40d093
lea ecx, [ebp - 0x2c]
call fcn.004069e0
cmp eax, 2
jbe 0x40d08f
lea ecx, [ebp - 0x2c]
call fcn.004069e0
lea ecx, [ebp - 0x2c]
lea ebx, [eax - 1]
call fcn.00406730
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x40d017
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x40d036
lea ecx, [ebp - 0x2c]
call fcn.004069e0
cmp dword [esi + 0x14], 8
jb 0x40d02e
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x40d08f
lea eax, [ebp - 0x2c]
push 0x20
push eax
call fcn.0040f630
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.004052a0
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d093
lea ecx, [ebp - 0x44]
call fcn.00405400
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.004193d0
test al, al
je 0x40d07e
lea ecx, [ebp - 0x44]
call fcn.004052a0
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004052e0
cmp esi, 0xffffffff
jne 0x40d093
xor bl, bl
jmp 0x40d095
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004052e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00455277
mov esp, ebp
pop ebp
ret
Function at 0x40d0d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d478
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4a8068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00405290
test al, al
je 0x40d110
xor al, al
jmp 0x40d24c
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405420
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push 4
push eax
call fcn.0040f630
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.004052a0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40d17f
lea ecx, [ebp - 0x44]
call fcn.00405400
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.004193d0
test al, al
je 0x40d16e
lea ecx, [ebp - 0x44]
call fcn.004052a0
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004052e0
cmp ebx, 0xffffffff
je 0x40d188
test bl, 0x10
je 0x40d239
lea ecx, [ebp - 0x2c]
call fcn.004069e0
cmp eax, 2
jbe 0x40d235
lea ecx, [ebp - 0x2c]
call fcn.004069e0
lea ecx, [ebp - 0x2c]
lea ebx, [eax - 1]
call fcn.00406730
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x40d1b8
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x40d1d7
lea ecx, [ebp - 0x2c]
call fcn.004069e0
cmp dword [esi + 0x14], 8
jb 0x40d1cf
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x40d235
lea eax, [ebp - 0x2c]
push 0x20
push eax
call fcn.0040f630
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.004052a0
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40d230
lea ecx, [ebp - 0x44]
call fcn.00405400
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.004193d0
test al, al
je 0x40d21f
lea ecx, [ebp - 0x44]
call fcn.004052a0
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004052e0
cmp ebx, 0xffffffff
je 0x40d235
test bl, 0x10
je 0x40d239
xor bl, bl
jmp 0x40d23b
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004052e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00455277
mov esp, ebp
pop ebp
ret
Function at 0x40d270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d4b0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4a8068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00405290
test al, al
je 0x40d2af
xor al, al
jmp 0x40d33a
push esi
lea ecx, [ebp - 0x28]
call fcn.00405420
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push 4
push eax
call fcn.0040f630
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.004052a0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40d31e
lea ecx, [ebp - 0x40]
call fcn.00405400
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004193d0
test al, al
je 0x40d30d
lea ecx, [ebp - 0x40]
call fcn.004052a0
push eax
call esi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004052e0
cmp ebx, 0xffffffff
je 0x40d327
test bl, 0x10
je 0x40d327
mov bl, 1
jmp 0x40d329
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455277
mov esp, ebp
pop ebp
ret
Function at 0x40dc40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d620
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4a8068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00405290
test al, al
je 0x40dc7d
xor al, al
jmp 0x40de3b
push edi
call fcn.0040d270
add esp, 4
test al, al
je 0x40dc91
mov al, 1
jmp 0x40de3b
push 0
mov ecx, edi
call fcn.004052a0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x40dce0
lea ecx, [ebp - 0x28]
call fcn.00405400
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004193d0
test al, al
je 0x40dcd1
push 0
lea ecx, [ebp - 0x28]
call fcn.004052a0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052e0
push edi
call fcn.0040d270
add esp, 4
test al, al
jne 0x40dc8a
mov ecx, edi
call fcn.004069e0
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x40dddc
mov ecx, edi
call fcn.00406730
mov ebx, eax
nop word [eax + eax]
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x40dd1c
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x40dd3f
mov eax, ebx
cmp ecx, 8
jb 0x40dd35
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x40ddcc
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00405240
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00405290
test al, al
jne 0x40ddbd
lea eax, [ebp - 0x28]
push eax
call fcn.0040cf30
add esp, 4
test al, al
jne 0x40ddbd
push 0
lea ecx, [ebp - 0x28]
call fcn.004052a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40ddbd
lea ecx, [ebp - 0x40]
call fcn.00405400
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004193d0
test al, al
je 0x40ddb1
push 0
lea ecx, [ebp - 0x40]
call fcn.004052a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004052e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052e0
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x40dd10
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call fcn.0040cf30
add esp, 4
test al, al
jne 0x40de32
push 0
mov ecx, edi
call fcn.004052a0
push eax
call ebx
test eax, eax
jne 0x40de32
lea ecx, [ebp - 0x40]
call fcn.00405400
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.004193d0
test al, al
je 0x40de23
push 0
lea ecx, [ebp - 0x40]
call fcn.004052a0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004052e0
push edi
call fcn.0040d270
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455277
mov esp, ebp
pop ebp
ret

Function at 0x40ebc0
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 4]
jmp fcn.0040dc40