joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006f90
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x10006fb1
xor eax, eax
jmp 0x100070cf
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp dword [edx], 0x4550
je 0x10006fcf
xor eax, eax
jmp 0x100070cf
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0x14]
cmp ecx, 0x60
jl 0x10006fe4
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x74], 0
jne 0x10006feb
xor eax, eax
jmp 0x100070cf
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x1000700a
xor eax, eax
jmp 0x100070cf
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x10], 0
jmp 0x10007049
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x18]
jae 0x100070cd
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
push 0x811c9dc5
mov eax, dword [ebp - 0x2c]
push eax
call fcn.1004cfb0
cmp eax, dword [ebp + 0xc]
je 0x1000707e
jmp 0x10007040
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 0x10]
add eax, edx
mov word [ebp - 4], ax
movzx eax, word [ebp - 4]
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 0x10]
sub eax, edx
mov word [ebp - 8], ax
mov dword [ebp - 0x20], 0
movzx eax, word [ebp - 8]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
jmp 0x100070cf
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10019b40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6d8
push esi
push edi
mov dword [ebp - 4], 0
mov ecx, 0x10
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
movzx eax, word [ebp - 0x50]
cmp eax, 0x5a4d
jne 0x10019d77
cmp dword [ebp - 0x14], 0x40
jbe 0x10019b9a
mov ecx, dword [ebp - 0x14]
sub ecx, 0x40
push ecx
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
mov eax, 1
imul ecx, eax, 0
lea edx, [ebp + ecx - 0x6d8]
push edx
call fcn.1007b900
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov ecx, 0x3e
mov esi, dword [ebp - 0xc]
lea edi, [ebp - 0x148]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x148], 0x4550
jne 0x10019d77
movzx ecx, word [ebp - 0x142]
imul edx, ecx, 0x28
push edx
mov eax, dword [ebp - 0xc]
add eax, 0xf8
push eax
mov ecx, 0x28
imul edx, ecx, 0
lea eax, [ebp + edx - 0x2d8]
push eax
call fcn.1007b900
add esp, 0xc
push 0x40
push 0x103000
mov ecx, dword [ebp - 0xf8]
push ecx
push 0
push 0
push 0
call fcn.100012c0
call eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10019d77
mov ecx, 0x10
lea esi, [ebp - 0x50]
mov edi, dword [ebp - 4]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 4]
add edi, dword [ebp - 0x14]
mov ecx, 0x3e
lea esi, [ebp - 0x148]
rep movsd dword es:[edi], dword [esi]
movzx edx, word [ebp - 0x142]
imul eax, edx, 0x28
push eax
mov ecx, 0x28
imul edx, ecx, 0
lea eax, [ebp + edx - 0x2d8]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx + 0xf8]
push eax
call fcn.1007b900
add esp, 0xc
cmp dword [ebp - 0x14], 0x40
jbe 0x10019c94
mov ecx, dword [ebp - 0x14]
sub ecx, 0x40
push ecx
mov edx, 1
imul eax, edx, 0
lea ecx, [ebp + eax - 0x6d8]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x40
push edx
call fcn.1007b900
add esp, 0xc
mov dword [ebp - 8], 0
jmp 0x10019ca6
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
movzx ecx, word [ebp - 0x142]
cmp dword [ebp - 8], ecx
jge 0x10019cec
imul edx, dword [ebp - 8], 0x28
mov eax, dword [ebp + 8]
add eax, dword [ebp + edx - 0x2c4]
mov dword [ebp - 0x10], eax
imul ecx, dword [ebp - 8], 0x28
mov edx, dword [ebp + ecx - 0x2c8]
push edx
mov eax, dword [ebp - 0x10]
push eax
imul ecx, dword [ebp - 8], 0x28
mov edx, dword [ebp - 4]
add edx, dword [ebp + ecx - 0x2cc]
push edx
call fcn.1007b900
add esp, 0xc
jmp 0x10019c9d
mov eax, dword [ebp - 4]
push eax
call fcn.10031500
test eax, eax
jne 0x10019d18
push 0x8000
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0
call fcn.100012f0
call eax
mov dword [ebp - 4], 0
jmp 0x10019d77
mov edx, dword [ebp - 4]
push edx
call fcn.10004e00
test eax, eax
jne 0x10019d44
push 0x8000
push 0
mov eax, dword [ebp - 4]
push eax
push 0
push 0
call fcn.100012f0
call eax
mov dword [ebp - 4], 0
jmp 0x10019d77
movzx ecx, word [ebp - 0x132]
and ecx, 0x2000
jne 0x10019d5c
mov edx, dword [ebp - 4]
push edx
call fcn.10031490
mov eax, dword [ebp - 4]
push eax
call fcn.10006d60
mov eax, dword [ebp - 0x120]
add eax, dword [ebp - 4]
push 0
push 1
push dword [ebp - 4]
call eax
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10031f40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0x4550
je 0x10031f70
xor eax, eax
jmp 0x10031ffb
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
add edx, dword [ecx + eax + 0x78]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 8], 0
jmp 0x10031fbb
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx + 0x14]
jae 0x10031ff9
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
add eax, dword [edx + ecx*4]
push eax
call fcn.1004d390
test eax, eax
jne 0x10031ff7
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
add edx, dword [ecx + eax*4]
mov eax, edx
jmp 0x10031ffb
jmp 0x10031fb2
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1004cf60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
pop ebp
ret

Function at 0x1004cfb0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movsx eax, byte [edx + ecx]
test eax, eax
jne 0x1004cfcf
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
jmp 0x1004cffc
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + eax]
xor edx, dword [ebp + 0xc]
imul eax, edx, 0x1000193
push eax
mov ecx, 1
shl ecx, 0
add ecx, dword [ebp + 8]
push ecx
call fcn.1004cfb0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x10087019
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100870b6
push ebx
push esi
call fcn.10086fe2
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10086f2b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10087063
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100870b5
push edi
push eax
call fcn.100848c9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10087083
call fcn.10083fe2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100870b4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10086f2b
add esp, 0x20
test eax, eax
jne 0x100870a2
push edi
call fcn.10083fe2
jmp 0x100870aa
push ebx
call fcn.10083fe2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100872b4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10093748
push 0x10093740
push str.FlsAlloc
push 0x1e
call fcn.100871d2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100872e8
push dword [ebp + 8]
mov ecx, esi
call dword [0x1009021c]
call esi
jmp 0x100872ee
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10087332
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10093758
push 0x10093750
push str.FlsGetValue
push 0x20
call fcn.100871d2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10087369
push dword [ebp + 8]
mov ecx, esi
call dword [0x1009021c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1008e430
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1008e45d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1008e45d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40a385
Capabilities:
Move file

Disassembly:
mov eax, 0x4356f4
call fcn.0041f5d8
mov eax, 0x5044
call fcn.0041f6b0
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4050]
push edi
mov ebx, 0x800
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x40a546
cmp eax, ebx
jae 0x40a546
push ebx
lea eax, [ebp - 0x5050]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x40a546
cmp eax, ebx
jae 0x40a546
lea eax, [ebp - 0x4050]
push eax
call fcn.0040d440
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x5050]
push eax
call fcn.0040d440
mov edi, eax
xor ebx, ebx
cmp word [edi], bx
je 0x40a546
push edi
push dword [ebp - 0x10]
call fcn.00413071
test eax, eax
je 0x40a546
push edi
push esi
call fcn.0040d440
push eax
call fcn.00413071
test eax, eax
jne 0x40a546
mov word [ebp - 0x1010], ax
mov edi, ebx
test ax, ax
jne 0x40a4a6
push 0x800
push esi
lea eax, [ebp - 0x1010]
push eax
call fcn.00411698
push edi
push str.rtmp_d
push 0x800
lea eax, [ebp - 0x1010]
push eax
call fcn.0040d440
push eax
call fcn.00404830
add esp, 0x10
lea eax, [ebp - 0x1010]
push eax
call fcn.0040b261
test al, al
je 0x40a48b
xor eax, eax
mov word [ebp - 0x1010], ax
jmp 0x40a492
mov ax, word [ebp - 0x1010]
add edi, 0x7b
cmp edi, 0x2710
jl 0x40a439
test ax, ax
je 0x40a546
mov edi, 0x800
lea eax, [ebp - 0x3050]
push edi
push esi
push eax
call fcn.00411698
push edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x3050]
push eax
call fcn.0040d4b6
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x3050]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40a546
lea ecx, [ebp - 0x2050]
call fcn.0040a559
push esi
mov dword [ebp - 4], ebx
call fcn.0040b261
test al, al
jne 0x40a509
push 0x12
push esi
lea ecx, [ebp - 0x2050]
call fcn.0040a66e
mov bl, al
lea eax, [ebp - 0x3050]
push eax
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test bl, bl
je 0x40a537
lea ecx, [ebp - 0x2050]
call fcn.0040a620
lea ecx, [ebp - 0x2050]
call fcn.0040a74e
lea ecx, [ebp - 0x2050]
call fcn.0040a59d
mov al, 1
jmp 0x40a548
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40a8e0
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1050
call fcn.0041f6b0
push ebx
mov ebx, dword [esp + 0x105c]
push ebp
push edi
mov edi, ecx
and dword [edi + 0x1034], 0
cmp byte [edi + 0x30], 0
jne 0x40a90c
test bl, 4
jne 0x40a90c
xor al, al
jmp 0x40a90e
mov al, 1
push esi
mov esi, ebx
shr esi, 1
not esi
and esi, 1
inc esi
shl esi, 0x1e
test bl, 1
je 0x40a927
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test al, al
je 0x40a936
or ebx, 2
lea ecx, [esp + 0x18]
call fcn.004077f5
cmp byte [edi + 0x24], 0
je 0x40a94b
or esi, 0x100
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
push dword [esp + 0x107c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40a9bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push 0x800
push eax
push dword [esp + 0x106c]
call fcn.0040cccb
test al, al
je 0x40a9c8
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40a9c3
mov dword [esp + 0x10], eax
jmp 0x40a9c3
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
cmp ebp, 0xffffffff
jne 0x40a9d9
cmp dword [esp + 0x10], 2
jne 0x40a9d9
mov dword [edi + 0x1034], 1
cmp byte [edi + 0x24], 0
pop esi
je 0x40a9ff
cmp ebp, 0xffffffff
je 0x40a9ff
or dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
or dword [esp + 0x10], 0xffffffff
push 0
push eax
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x1c], al
mov dword [edi + 0x10], eax
setne bl
mov byte [edi + 0x15], al
je 0x40aa2e
push 0x800
push dword [esp + 0x1064]
lea ecx, [edi + 0x32]
mov dword [edi + 8], ebp
push ecx
call fcn.00411698
mov byte [edi + 0x25], 0
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x1050
ret 8
Function at 0x40afaa
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebp, ecx
test esi, esi
jne 0x40afbf
mov al, 1
jmp 0x40b0da
cmp dword [ebp + 0x10], 1
lea ecx, [ebp + 8]
mov dword [esp + 0xc], ecx
jne 0x40afdb
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp + 8]
mov dword [ecx], eax
jmp 0x40afdf
mov dword [esp + 0xc], ecx
push ebx
push edi
and dword [esp + 0x10], 0
xor bl, bl
cmp dword [ebp + 0x10], 0
je 0x40b033
xor edi, edi
test esi, esi
je 0x40b054
mov eax, esi
sub eax, edi
cmp eax, 0x4000
jb 0x40b004
mov eax, 0x4000
push 0
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x28]
add eax, edi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete bl
jne 0x40b050
mov ecx, dword [esp + 0x14]
add edi, 0x4000
cmp edi, esi
jb 0x40aff4
jmp 0x40b050
push 0
lea eax, [esp + 0x14]
push eax
push esi
push dword [esp + 0x28]
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
test bl, bl
jne 0x40b0d2
cmp byte [ebp + 0x1e], 0
je 0x40b0d2
cmp dword [ebp + 0x10], 0
jne 0x40b0d2
push 0
lea edi, [ebp + 0x32]
mov ecx, 0x444054
push edi
call fcn.0040746a
test al, al
je 0x40b0c5
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x10], esi
jae 0x40afe1
cmp dword [esp + 0x10], 0
jbe 0x40afe1
mov edi, dword [ebp]
push 0
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x43626c]
mov ecx, ebp
call esi
sub eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x10]
sbb edx, 0
push edx
push eax
call dword [0x43626c]
mov ecx, ebp
call dword [edi + 0x10]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
jmp 0x40afe1
push edi
push 0
mov ecx, 0x444054
call fcn.00407761
pop edi
mov al, bl
mov byte [ebp + 0xc], 1
pop ebx
pop esi
pop ebp
pop ecx
pop ecx
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0041f6b0
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b2b8
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.0040cccb
test al, al
je 0x40b2b8
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov eax, esi
pop esi
leave
ret 4
Function at 0x40b2e2
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0041f6b0
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040d424
movzx eax, word [eax]
cmp eax, 0x2e
je 0x40b313
cmp eax, 0x20
je 0x40b313
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40b346
push esi
call fcn.0040b261
test al, al
jne 0x40b359
push 0x800
lea eax, [ebp - 0x1000]
push eax
push esi
call fcn.0040cccb
test al, al
je 0x40b359
push 0
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40b359
cmp byte [ebp + 0xc], 0
je 0x40b355
push dword [ebp + 0x10]
push esi
call fcn.0040b686
xor eax, eax
jmp 0x40b371
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
push 2
pop eax
cmp ecx, eax
je 0x40b371
xor eax, eax
cmp ecx, 3
sete al
inc eax
pop esi
leave
ret 0xc

Function at 0x40b686
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0041f6b0
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x40b6d6
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.0040cccb
test al, al
je 0x40b6d6
push dword [ebp + 0xc]
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov al, bl
pop ebx
leave
ret 8
Function at 0x40b834
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1250
call fcn.0041f6b0
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x250]
push edi
or edi, 0xffffffff
mov ebx, 0x800
push eax
cmp esi, edi
jne 0x40b8c0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, edi
jne 0x40b8db
push ebx
lea eax, [ebp - 0x1250]
push eax
push dword [ebp + 0xc]
call fcn.0040cccb
test al, al
je 0x40b897
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x1250]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, edi
jne 0x40b8db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40b8b0
cmp eax, 3
je 0x40b8b0
cmp eax, 0x12
je 0x40b8b0
mov al, 1
jmp 0x40b8b2
xor al, al
mov edi, dword [ebp + 0x10]
mov byte [edi + 0x1044], al
jmp 0x40b99d
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40b8db
mov esi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x40b8b2
mov edi, dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push edi
call fcn.00411698
push ebx
lea eax, [ebp - 0x224]
push eax
push edi
call fcn.0040d4b6
mov ecx, dword [ebp - 0x234]
xor eax, eax
add eax, dword [ebp - 0x230]
mov dword [edi + 0x1000], eax
mov eax, dword [ebp - 0x250]
adc ecx, 0
mov dword [edi + 0x1008], eax
mov eax, dword [ebp - 0x24c]
mov dword [edi + 0x1004], ecx
mov ecx, dword [ebp - 0x248]
mov dword [edi + 0x1028], eax
mov eax, dword [ebp - 0x244]
mov dword [edi + 0x102c], ecx
mov ecx, dword [ebp - 0x240]
mov dword [edi + 0x1030], eax
mov eax, dword [ebp - 0x23c]
mov dword [edi + 0x1034], ecx
mov ecx, dword [ebp - 0x238]
mov dword [edi + 0x1038], eax
lea eax, [ebp - 0x23c]
mov dword [edi + 0x103c], ecx
lea ecx, [edi + 0x1010]
push eax
call fcn.00412684
lea eax, [ebp - 0x24c]
push eax
lea ecx, [edi + 0x1018]
call fcn.00412684
lea eax, [ebp - 0x244]
push eax
lea ecx, [edi + 0x1020]
call fcn.00412684
and dword [edi + 0x1040], 0
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40c105
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
cmp byte [0x44406c], 0
jne 0x40c162
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x110], 0xa
ja 0x40c152
jne 0x40c14e
cmp dword [ebp - 0x108], 0x55f0
jb 0x40c14e
call fcn.0040c190
test al, al
je 0x40c152
xor al, al
jmp 0x40c154
mov al, 1
mov byte [0x44406d], al
mov byte [0x44406c], 1
leave
ret
mov al, byte [0x44406d]
leave
ret
Function at 0x40cccb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0041f6b0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp word [esi], 0
je 0x40ce4c
push esi
call fcn.0040ce60
push esi
call fcn.00424795
pop ecx
push esi
mov edi, eax
call fcn.0040ce8b
test al, al
je 0x40cd80
push esi
call fcn.0040ce60
test al, al
je 0x40cd3a
lea eax, [edi + 4]
cmp dword [ebp + 0x10], eax
jbe 0x40ce4c
push dword [ebp + 0x10]
push 0x436a08
push dword [ebp + 0xc]
call fcn.00411698
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
call fcn.00411670
mov al, 1
jmp 0x40ce4e
push 0x5c
pop eax
cmp word [esi], ax
jne 0x40ce4c
lea ebx, [esi + 2]
cmp word [ebx], ax
jne 0x40ce4c
mov esi, dword [ebp + 0x10]
lea eax, [edi + 6]
cmp esi, eax
jbe 0x40ce4c
push esi
push 0x436a08
push dword [ebp + 0xc]
call fcn.00411698
push esi
push 0x436a14
push dword [ebp + 0xc]
call fcn.00411670
push esi
push ebx
jmp 0x40cd2b
lea eax, [ebp - 0x1000]
mov ebx, 0x7ff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40ce4c
cmp eax, ebx
ja 0x40ce4c
movzx eax, word [esi]
push eax
call fcn.0040cf43
test al, al
je 0x40cdeb
lea eax, [edi + 6]
mov edi, dword [ebp + 0x10]
cmp edi, eax
jbe 0x40ce4c
push edi
push 0x436a08
push dword [ebp + 0xc]
call fcn.00411698
xor eax, eax
mov word [ebp - 0xffc], ax
lea eax, [ebp - 0x1000]
push edi
push eax
push dword [ebp + 0xc]
call fcn.00411670
push edi
jmp 0x40cd2a
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.0040c839
lea eax, [ebp - 0x1000]
push eax
call fcn.00424795
add edi, 4
add eax, edi
mov edi, dword [ebp + 0x10]
pop ecx
cmp edi, eax
jbe 0x40ce4c
push edi
push 0x436a08
push dword [ebp + 0xc]
call fcn.00411698
push edi
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 0xc]
call fcn.00411670
cmp word [esi], 0x2e
jne 0x40cde5
movzx eax, word [esi + 2]
push eax
call fcn.0040cf43
test al, al
je 0x40cde5
add esi, 4
jmp 0x40cde5
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc