joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42da18
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42da36
mov eax, dword [eax - 4]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x42da4e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42da49
mov eax, dword [eax - 4]
mov dword [ebp - 8], eax
jmp 0x42da53
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x42dac1
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x42db0a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42da7f
inc dword [ebp - 0xc]
jmp 0x42da97
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x42da97
cmp dword [ebp - 0xc], 0
jle 0x42da97
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x42dab9
xor eax, eax
jmp 0x42dab5
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42dab4
mov eax, esi
jmp 0x42db0d
inc eax
cmp eax, ecx
jle 0x42daa1
inc esi
cmp esi, dword [ebp - 8]
jl 0x42da6b
jmp 0x42db0a
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x42db0a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42dae2
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x42db04
xor eax, eax
jmp 0x42db00
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42daff
mov eax, esi
jmp 0x42db0d
inc eax
cmp eax, ecx
jle 0x42daec
inc esi
cmp esi, dword [ebp - 8]
jl 0x42daca
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42dcfc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x42dd19
mov eax, dword [eax - 4]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42dd27
mov eax, dword [eax - 4]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x42de49
test ebx, ebx
jl 0x42de49
test esi, esi
jle 0x42de49
mov eax, dword [ebp - 8]
call fcn.0040ab48
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040ab48
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x42dde6
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x42de49
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42ddcb
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42dd9a
inc dword [ebp - 0x14]
jmp 0x42ddaa
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x42ddaa
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x42ddb5
or eax, 0xffffffff
jmp 0x42ddcb
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42ddc8
inc eax
jmp 0x42ddcb
or eax, 0xffffffff
test eax, eax
jl 0x42ddd3
cmp esi, eax
jg 0x42dd88
cmp esi, eax
jg 0x42ddde
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42de4c
inc edx
dec dword [ebp - 0x1c]
jne 0x42dd84
jmp 0x42de49
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x42de49
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42de30
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42de0f
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x42de1a
or eax, 0xffffffff
jmp 0x42de30
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42de2d
inc eax
jmp 0x42de30
or eax, 0xffffffff
test eax, eax
jl 0x42de38
cmp esi, eax
jg 0x42ddf8
cmp esi, eax
jg 0x42de43
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42de4c
inc edx
dec dword [ebp - 0x1c]
jne 0x42ddf4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43feec
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x43fef4
mov eax, edx
pop esi
pop ebx
ret

Function at 0x442b68
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x442b7f
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x442b6f
mov eax, ecx
pop ebx
ret
Function at 0x453998
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
test dl, dl
je 0x4539ac
add esp, 0xfffffff0
call fcn.004088fc
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x44d91c]
call fcn.00472404
mov dword [esi + 4], eax
mov dl, 1
mov eax, dword [0x452968]
call fcn.004751b8
mov dword [esi + 8], eax
mov dl, 1
mov eax, dword [0x452968]
call fcn.004751b8
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x10], eax
mov eax, esi
test bl, bl
je 0x453a01
call fcn.00408954
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b72e0
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x4b7323
cmp byte [ebx + 0x11], 0
jne 0x4b7323
cmp byte [ebx + 0x24], 0
jne 0x4b7323
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4b733a
mov ecx, dword [0x4dbe44]
mov dl, 1
mov eax, dword [0x48a158]
call fcn.00428768
call fcn.004097cc
pop ebx
ret
mov ecx, dword [0x4dbe44]
mov dl, 1
mov eax, dword [0x48a158]
call fcn.00428768
call fcn.004097cc
pop ebx
ret

Function at 0x4b7ca8
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4b7cf6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004b718c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b7d0f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4b7d18
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004b718c
dec esi
jne 0x4b7d3a
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret
Function at 0x4d2620
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a1d8
mov eax, dword [ebp - 8]
call fcn.0040a1d8
xor eax, eax
push ebp
push 0x4d26f6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x4d2675
push 0x4d2710
push dword [ebp - 4]
push 0x4d2720
push dword [ebp - 8]
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.0040ae20
jmp 0x4d268f
push 0x4d2710
push dword [ebp - 4]
push 0x4d2710
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040ae20
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00407b94
mov dword [ebp - 0x50], 0x44
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x200
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.0040ab48
push eax
mov eax, dword [ebp - 4]
call fcn.0040ab48
push eax
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d26fd
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040a144
pop eax
jmp eax

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040ab48
push eax
call 0x412d44
cmp eax, 0xffffffff
je 0x4d2741
test al, 0x10
jne 0x4d2745
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x10006a40
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10006c0d
pushal
mov esi, 0x5196000
lea edi, [esi - 0x5000]
push edi
jmp 0x10006a6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10006a71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10006a60
mov eax, 1
add ebx, ebx
jne 0x10006a83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10006a78
jne 0x10006a94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10006a78
xor ecx, ecx
sub eax, 3
jb 0x10006aa8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10006b1a
mov ebp, eax
add ebx, ebx
jne 0x10006ab3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10006ac0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10006ae4
inc ecx
add ebx, ebx
jne 0x10006ad0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10006ac5
jne 0x10006ae1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10006ac5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10006b04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10006af5
jmp 0x10006a66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10006b04
add edi, ecx
jmp 0x10006a66
pop esi
mov edi, esi
mov ecx, 0xe
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10006b22
cmp byte [edi], 0
jne 0x10006b22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10006b27
lea edi, [esi + 0x4000]
mov eax, dword [edi]
or eax, eax
je 0x10006b9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10006b54
mov ecx, edi
jns 0x10006b83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6054]
or eax, eax
je 0x10006b99
mov dword [ebx], eax
add ebx, 4
jmp 0x10006b71
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10006bd0
cmp al, 0xef
ja 0x10006bc3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10006ba5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10006bb2
mov ebp, dword [esi + 0x6058]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x10006c04
sub esp, 0xffffff80
jmp 0x10001802
Function at 0x408310
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x4d404c]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, dword [esp + 0x148]
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.0047a5f0
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x408457
cmp dword [esi + 4], 6
push edi
ja 0x40836b
jne 0x4083f3
cmp dword [esi + 8], 2
jb 0x4083f3
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x4083f3
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4083f3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4083f3
movups xmm0, xmmword [0x4b9898]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x4b98a8]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4083f3
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4083f3
cmp word [edi + 2], ax
jbe 0x4083f3
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40843e
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0047a5f0
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x40843e
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.00477737
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.00477737
add esp, 0x140
ret

Function at 0x409790
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c664
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4d404c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00407260
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00407260
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00407260
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00407260
mov byte [ebp - 4], 3
lea ecx, [esi + 0x70]
mov word [esi + 0x60], 0x101
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
call fcn.00407260
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a7d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c9f8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4d404c]
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 esi, dword [ebp + 8]
mov ecx, esi
call fcn.004070b0
test al, al
je 0x40a810
xor al, al
jmp 0x40a946
push esi
lea ecx, [ebp - 0x28]
call fcn.00407280
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push 4
push eax
call fcn.0040dd40
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.004070c0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a933
lea ecx, [ebp - 0x40]
call fcn.00407260
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0041c740
test al, al
je 0x40a872
lea ecx, [ebp - 0x40]
call fcn.004070c0
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00407180
cmp esi, 0xffffffff
jne 0x40a933
lea ecx, [ebp - 0x28]
call fcn.00407460
cmp eax, 2
jbe 0x40a92f
lea ecx, [ebp - 0x28]
call fcn.00407460
lea ecx, [ebp - 0x28]
lea ebx, [eax - 1]
call fcn.004073c0
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x40a8b7
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x40a8d6
lea ecx, [ebp - 0x28]
call fcn.00407460
cmp dword [esi + 0x14], 8
jb 0x40a8ce
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x40a92f
lea eax, [ebp - 0x28]
push 0x20
push eax
call fcn.0040dd40
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.004070c0
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a933
lea ecx, [ebp - 0x40]
call fcn.00407260
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0041c740
test al, al
je 0x40a91e
lea ecx, [ebp - 0x40]
call fcn.004070c0
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00407180
cmp esi, 0xffffffff
jne 0x40a933
xor bl, bl
jmp 0x40a935
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407180
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 - 0x10]
xor ecx, ebp
call fcn.00477737
mov esp, ebp
pop ebp
ret
Function at 0x40a970
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ca38
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4d404c]
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.004070b0
test al, al
je 0x40a9b0
xor al, al
jmp 0x40aaec
push esi
lea ecx, [ebp - 0x2c]
call fcn.00407280
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push 4
push eax
call fcn.0040dd40
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.004070c0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40aa1f
lea ecx, [ebp - 0x44]
call fcn.00407260
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.0041c740
test al, al
je 0x40aa0e
lea ecx, [ebp - 0x44]
call fcn.004070c0
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00407180
cmp ebx, 0xffffffff
je 0x40aa28
test bl, 0x10
je 0x40aad9
lea ecx, [ebp - 0x2c]
call fcn.00407460
cmp eax, 2
jbe 0x40aad5
lea ecx, [ebp - 0x2c]
call fcn.00407460
lea ecx, [ebp - 0x2c]
lea ebx, [eax - 1]
call fcn.004073c0
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x40aa58
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x40aa77
lea ecx, [ebp - 0x2c]
call fcn.00407460
cmp dword [esi + 0x14], 8
jb 0x40aa6f
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x40aad5
lea eax, [ebp - 0x2c]
push 0x20
push eax
call fcn.0040dd40
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.004070c0
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40aad0
lea ecx, [ebp - 0x44]
call fcn.00407260
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.0041c740
test al, al
je 0x40aabf
lea ecx, [ebp - 0x44]
call fcn.004070c0
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00407180
cmp ebx, 0xffffffff
je 0x40aad5
test bl, 0x10
je 0x40aad9
xor bl, bl
jmp 0x40aadb
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00407180
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.00477737
mov esp, ebp
pop ebp
ret
Function at 0x40ab10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ca70
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4d404c]
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.004070b0
test al, al
je 0x40ab4f
xor al, al
jmp 0x40abda
push esi
lea ecx, [ebp - 0x28]
call fcn.00407280
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push 4
push eax
call fcn.0040dd40
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.004070c0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40abbe
lea ecx, [ebp - 0x40]
call fcn.00407260
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0041c740
test al, al
je 0x40abad
lea ecx, [ebp - 0x40]
call fcn.004070c0
push eax
call esi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00407180
cmp ebx, 0xffffffff
je 0x40abc7
test bl, 0x10
je 0x40abc7
mov bl, 1
jmp 0x40abc9
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407180
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.00477737
mov esp, ebp
pop ebp
ret
Function at 0x40b410
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cba0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4d404c]
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, dword [ebp + 8]
mov ecx, edi
call fcn.004070b0
test al, al
je 0x40b450
xor al, al
jmp 0x40b60b
push edi
call fcn.0040ab10
add esp, 4
test al, al
je 0x40b464
mov al, 1
jmp 0x40b60b
push 0
mov ecx, edi
call fcn.004070c0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x40b4b3
lea ecx, [ebp - 0x28]
call fcn.00407260
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.0041c740
test al, al
je 0x40b4a4
push 0
lea ecx, [ebp - 0x28]
call fcn.004070c0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407180
push edi
call fcn.0040ab10
add esp, 4
test al, al
jne 0x40b45d
mov ecx, edi
call fcn.00407460
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x40b5ac
mov ecx, edi
call fcn.004073c0
mov ebx, eax
nop dword [eax]
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x40b4ec
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x40b50f
mov eax, ebx
cmp ecx, 8
jb 0x40b505
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x40b59c
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00408f10
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004070b0
test al, al
jne 0x40b58d
lea eax, [ebp - 0x28]
push eax
call fcn.0040a7d0
add esp, 4
test al, al
jne 0x40b58d
push 0
lea ecx, [ebp - 0x28]
call fcn.004070c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40b58d
lea ecx, [ebp - 0x40]
call fcn.00407260
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0041c740
test al, al
je 0x40b581
push 0
lea ecx, [ebp - 0x40]
call fcn.004070c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00407180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407180
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x40b4e0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call fcn.0040a7d0
add esp, 4
test al, al
jne 0x40b602
push 0
mov ecx, edi
call fcn.004070c0
push eax
call ebx
test eax, eax
jne 0x40b602
lea ecx, [ebp - 0x40]
call fcn.00407260
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.0041c740
test al, al
je 0x40b5f3
push 0
lea ecx, [ebp - 0x40]
call fcn.004070c0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00407180
push edi
call fcn.0040ab10
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.00477737
mov esp, ebp
pop ebp
ret