joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f1e0
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42f193
mov eax, dword [ebx + 8]
sub ecx, esi
lea esi, [ecx + 1]
mov dword [edx + eax*4], ecx
push esi
call dword [fcn.004995bc]
mov ecx, dword [ebx + 8]
add esp, 4
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4], eax
mov ecx, dword [ebx + 8]
cmp dword [edx + ecx*4], 0
je 0x42f1df
mov eax, dword [ebx]
push esi
push edi
push dword [eax + ecx*4]
call fcn.004c0c64
mov eax, dword [ebx]
or esp, 0xffffff90
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jge 0x42f193
aaa
xor eax, 0xc63fc4b6
and eax, 0xcd67c609
pop ebp
invalid
Function at 0x4ac8a7
Capabilities:
Encode data using xor

Disassembly:
add dword [edi + 0x19], esi
xchg byte [ebx - 0x65a7c189], ch
cld
xor byte [ebp + eax*4 + 0x4ecfbfe6], 9
enter 0x83e, 0x73
loope 0x4ac8fa
lcall 0x58a4, 0x6a8f98b3
idiv byte [eax + 0x24]
dec ebp
push ebp
jno 0x4ac917
push ebp
jbe 0x4ac8ca
mov ch, 9
xor al, 0x1c
scasd eax, dword es:[edi]
invalid
sbb dword [ebx + 0x17b29e8c], edi
or byte [ecx + 0x59], dh
add eax, 0x8e492f8d
pop ss
mul dword [eax]
mov bh, 0x64
pushal
test dword [edx - 0x64], esp
mov bh, 0xb9
pop ds
sbb eax, 0x4b26de20
dec ebx
adc ebx, dword [ebx + ecx]
or bh, bh
inc esp
and dl, bl
out dx, al
invalid

Function at 0x4ad277
Capabilities:
Encode data using xor

Disassembly:
scasd eax, dword es:[edi]
inc edx
push esi
jbe 0x4ad21b
and dword [edx + edx*8], ebx
mov eax, 0x97200ed2
lodsd eax, dword [esi]
mov al, 0x62
aad 0x8a
ffree st(3)
add eax, 0x97a39607
sar byte [ebp + 0x2a], cl
xchg esi, eax
mov dword [0x2a7dd297], eax
add byte [ecx - 0x7d2cfad7], al
add byte [ecx - 0x7d2cfad7], al
sub al, byte [eax]
adc al, 0x5e
jae 0x4ad235
and eax, 0x56c81712
mov eax, 0x97621cf5
cmc
sbb al, 0x62
xchg edi, eax
mov edx, ebx
inc esi
add esp, dword [ebx]
cmove edx, dword [ecx]
cld
sub byte [edx - 0x30], ah
push edx
test byte [edx - 0x2dc318ce], ch
call dword [ebp + edx + 0x66]
xor ebp, 0x5782dcd7
add eax, 0x78de782c
rcr byte [esi - 0x1db3fec4], cl
and dword [eax + 0x43add806], esp
and byte [ebp + 0x3f18231], dh
loop 0x4ad222
inc ecx
mov byte [0x555d377e], al
loopne 0x4ad205
xor ah, al
hlt
Function at 0x4afde7
Capabilities:
Encode data using xor

Disassembly:
sbb al, byte [ecx + 0x7afe9bd5]
or dh, 0x28
wait
pop esp
imul edx, dword [edx + 0x2574d34a], 0x10b5f871
lahf
std
dec edx
cmp esi, dword [edi + ecx*2 + 7]
mov dword [edx + 0x41d5bc88], eax
pop ebx
sub al, byte fs:[esi]
test dword [edi + esi*4 + 0x65], esp
mov ebx, 0xd49327b3
cdq
or ch, byte [ecx]
movsd dword es:[edi], dword [esi]
test byte [ebp + 0x2f], dh
dec edx
jle 0x4afe32
mov ebp, 0x8170ee78
xchg ebp, eax
wait
movsd dword es:[edi], dword [esi]
push ebp
call 0xd5b57829
push cs
xchg ebp, eax
dec edi
repne cmpsd dword [esi], dword es:[edi]
cmpsd dword [esi], dword es:[edi]
inc ebp
dec ebp
rep stosd dword es:[edi], eax
aaa
cmpsb byte [esi], byte es:[edi]
jg 0x4afea1
mov ebx, 0xb5669f6a
popf
mov dh, byte [ebp + 0x66]
push ebp
mov edx, 0xba55fa35
jne 0x4afe5b
push ebp
mov edx, 0xa1ffaeb5
wait
scasd eax, dword es:[edi]
aas
salc
dec eax
sub ax, 0x486a
dec eax
out 0x65, eax
push 0x26
xchg edi, eax
cmpsb byte [esi], byte es:[edi]
cdq
jno 0x4afdfd
push edx
int1
and byte [ebx + 0x5c], bh
sub edi, dword [eax]
ljmp 0x3825
or eax, dword [edx - 0x1fca3709]
xchg edi, eax
test dword [edx + ebp*8], edi
das
clc
add ch, al
sti
je 0x4afed7
jmp 0x2ae2cfda
mov dh, 0x55
sahf
xor bh, byte [edx + 0x3cfcfb14]
adc al, 0x36
and dl, cl
loop 0x4aff0b
push cs
inc ebp
not dword [ecx - 9]
sbb byte [edx - 0x48], ah
imul byte [ebp - 0x45]
and al, dl
mov ch, 0xa7
sub dword [ebx + ebx + 0x25], esi
mov eax, 0xf04f5e23
das
ret
and eax, 0x2d387c98
imul ebp, dword [esi], 0xff2bb435
push ebp
xor eax, 0x55ff2bb4
dec ecx
xchg ebp, eax
jb 0x4aff11
div byte [ebp + ebp*4 - 0x17c91705]
push eax
aaa
mov ah, 0xad
sti
call 0x379be759
adc eax, 0x992dc7cb
imul ebp, esp, 0xf2e1b4e6
out 0x35, al
loope 0x4aff1a
mov eax, 0x14e6b328
jb 0x4aff59
push esi
in eax, 0x3b
call 0xe046e728
cli
cmp ebp, edx
cmc
aam 0xfb
xchg esi, eax
xchg dl, dh
cmc
jns 0x4aff7c
xchg byte [edi + ebp - 0x55d3404c], dh
pop ds
cmp eax, 0x50f8ea2a
dec ebx
dec edx
push edx
cmp dh, byte [ebp + 0x38f8f8fa]
dec ebx
xchg esi, eax
mov dword [ecx + 0x27fc1806], 0xdbf6e4bd
sbb dl, byte [esi + 0x7a]
or al, 0xa4
invalid
ljmp 0x3a52:0x4a4b50f8
imul edx, dword [edx + esi*2 - 9], 0xaf841929
test al, 0x14
stosb byte es:[edi], al
and eax, 0x2eecd735
imul esi, dword [edi], 0xdab0c135
scasd eax, dword es:[edi]
xor eax, 0x692eecd7
aaa
xor eax, 0xafdab0c1
and dword [ebp + 0x3d4e39d5], esp
xchg ecx, esi
out dx, eax
int1
das
jmp 0x4aff88
Function at 0x5f5f95
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6003d0
cmp edx, dword [eax]
je 0x5f5fb7
add eax, 8
inc ecx
cmp eax, 0x600460
jl 0x5f5fa8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6003d0]
jne 0x5f60e5
mov eax, dword [0x604d5c]
cmp eax, 1
je 0x5f60bf
test eax, eax
jne 0x5f5fe8
cmp dword [0x6002fc], 1
je 0x5f60bf
cmp edx, 0xfc
je 0x5f60e5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5f601f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.005f6980
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.005f6e10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x5f6062
lea eax, [ebp - 0x1a4]
push eax
call fcn.005f6e10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x5fbe2c
push edi
call fcn.005f8ce0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.005f6980
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.005f6990
lea eax, [ebp - 0xa0]
push 0x5fbe0c
push eax
call fcn.005f6990
push dword [esi + 0x6003d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.005f6990
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.005f8c54
add esp, 0x2c
pop edi
jmp 0x5f60e5
lea eax, [ebp + 8]
lea esi, [esi + 0x6003d4]
push 0
push eax
push dword [esi]
call fcn.005f6e10
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x404b70
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a358
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x42801c]
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
lea ecx, [ebp - 0x40]
call fcn.00414d90
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push 0x42893c
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00406ff0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
push eax
call fcn.004039d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00402e70
lea ecx, [ebp - 0x40]
call fcn.00402e30
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
jne 0x404c7e
cmp dword [0x42897c], eax
je 0x404c7a
push ecx
mov ecx, 0x42897c
call fcn.0040d280
mov eax, dword [0x42897c]
cmp byte [eax + 0x54], 0
je 0x404c7a
cmp dword [eax + 0x58], 2
jb 0x404c7a
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.00402f20
mov byte [ebp - 4], 2
push 0x41ffe0
call fcn.00403160
add esp, 4
lea ecx, [ebp - 0x28]
push eax
push 0x41ffe0
call fcn.00402f50
push 0x1b
push str.RC::RCFileAssociateInterface::InitIntface
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_srclibrtglobalutils_fileassoc_rcfileassociateinterface.cpp
lea eax, [ebp - 0x28]
push eax
push ecx
mov ecx, 0x42897c
call fcn.0040e2a0
test bl, bl
je 0x404c6e
lea eax, [ebp - 0x28]
mov ecx, 0x42897c
push eax
call fcn.0040e910
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00402e70
xor bl, bl
jmp 0x404cfd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Initialize
push eax
call esi
push str.Uninitialize
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.GetSwitchStatus
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.IsAllowedPopup
push dword [edi]
mov dword [edi + 0xc], eax
call esi
push str.NotifyAssocEventWithoutResult
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.NotifyAssocEventWithResult
push dword [edi]
mov dword [edi + 0x14], eax
call esi
push str.GetCurrentNotifyAssocEventCount
push dword [edi]
mov dword [edi + 0x18], eax
call esi
push str.TryToCleanDoneAssocEvents
push dword [edi]
mov dword [edi + 0x1c], eax
call esi
push str.ParseFileAssocCloudSettings
push dword [edi]
mov dword [edi + 0x20], eax
call esi
push str.IsHitDatabaseItem
push dword [edi]
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], eax
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402e70
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.0041873e
mov esp, ebp
pop ebp
ret
Function at 0x4054f0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42801c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x13c]
push 0x118
push 0
push eax
mov dword [ebp - 0x264], esi
xor bl, bl
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x140], 0x11c
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x405632
cmp dword [ebp - 0x13c], 6
ja 0x405561
jne 0x4055e6
cmp dword [ebp - 0x138], 2
jb 0x4055e6
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x4055e6
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4055e6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4055e6
movups xmm0, xmmword [0x420808]
push eax
movups xmmword [ebp - 0x24], xmm0
movups xmm0, xmmword [0x420818]
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4055e6
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 6]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4055e6
cmp word [esi + 2], ax
jbe 0x4055e6
movzx edx, word [esi + 0x32]
movzx ecx, word [esi + 0x30]
movzx eax, word [esi + 0x36]
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x134], 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 esi, eax
test esi, esi
je 0x40562c
push 0x118
lea eax, [ebp - 0x258]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x25c], 0x11c
lea eax, [ebp - 0x25c]
push eax
call esi
mov esi, dword [ebp - 0x264]
cmp dword [ebp - 0x13c], 6
jae 0x40564f
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041873e
mov esp, ebp
pop ebp
ret 4
push esi
push 0
push 0x410
mov dword [ebp - 0x260], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x405681
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041873e
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x260]
push eax
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4056a5
push dword [ebp - 0x260]
call fcn.004056d0
mov bl, al
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov ecx, dword [ebp - 0x260]
test ecx, ecx
je 0x4056bb
push ecx
call esi
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0041873e
mov esp, ebp
pop ebp
ret 4
Function at 0x4056d0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42801c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x13c]
push edi
push 0x118
push 0
push eax
mov dword [ebp - 0x264], esi
xor bl, bl
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x140], 0x11c
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x405811
cmp dword [ebp - 0x13c], 6
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
ja 0x405748
jne 0x4057c9
cmp dword [ebp - 0x138], 2
jb 0x4057c9
push str.kernel32.dll
call edi
mov esi, eax
test esi, esi
je 0x4057c9
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4057c9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4057c9
movups xmm0, xmmword [0x420808]
push eax
movups xmmword [ebp - 0x24], xmm0
movups xmm0, xmmword [0x420818]
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4057c9
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 6]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4057c9
cmp word [esi + 2], ax
jbe 0x4057c9
movzx edx, word [esi + 0x32]
movzx ecx, word [esi + 0x30]
movzx eax, word [esi + 0x36]
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x134], eax
push str.ntdll.dll
call edi
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40580b
push 0x118
lea eax, [ebp - 0x258]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x25c], 0x11c
lea eax, [ebp - 0x25c]
push eax
call esi
mov esi, dword [ebp - 0x264]
cmp dword [ebp - 0x13c], 6
jae 0x40582f
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041873e
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x260]
push eax
push 0
push 0
push 0x19
push esi
mov dword [ebp - 0x260], 0
call edi
push dword [ebp - 0x260]
call fcn.00418ea4
mov esi, eax
add esp, 4
test esi, esi
je 0x405898
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
push esi
push 0x19
push dword [ebp - 0x264]
call edi
test eax, eax
je 0x40588f
mov eax, dword [esi]
test eax, eax
je 0x40588f
cmp dword [eax + 8], 0x3000
setae bl
push esi
call fcn.00418e73
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041873e
mov esp, ebp
pop ebp
ret 4
Function at 0x407d10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a9e8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x42801c]
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.00402f40
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x407d53
xor al, al
jmp 0x407e77
push esi
lea ecx, [ebp - 0x2c]
call fcn.004045b0
mov dword [ebp - 4], 0
mov edx, 4
lea ecx, [ebp - 0x2c]
call fcn.00406e10
lea ecx, [ebp - 0x2c]
call fcn.00402e30
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x407e64
lea ecx, [ebp - 0x44]
call fcn.00402f20
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.0040c5b0
test al, al
je 0x407db4
lea ecx, [ebp - 0x44]
call fcn.00402e30
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00402e70
cmp esi, 0xffffffff
jne 0x407e64
lea ecx, [ebp - 0x2c]
call fcn.00402f40
mov esi, dword [eax + 0x10]
cmp esi, 2
jbe 0x407e60
lea ecx, [ebp - 0x2c]
call fcn.00402f40
mov ecx, eax
mov edx, dword [eax + 0x14]
cmp edx, 8
jb 0x407df1
mov ecx, dword [eax]
cmp word [ecx + esi*2 - 2], 0x5c
je 0x407e08
cmp edx, 8
jb 0x407e00
mov eax, dword [eax]
cmp word [eax + esi*2 - 2], 0x2f
jne 0x407e60
mov edx, 0x20
lea ecx, [ebp - 0x2c]
call fcn.00406e10
lea ecx, [ebp - 0x2c]
call fcn.00402e30
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x407e64
lea ecx, [ebp - 0x44]
call fcn.00402f20
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.0040c5b0
test al, al
je 0x407e4f
lea ecx, [ebp - 0x44]
call fcn.00402e30
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00402e70
cmp esi, 0xffffffff
jne 0x407e64
xor bl, bl
jmp 0x407e66
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402e70
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.0041873e
mov esp, ebp
pop ebp
ret
Function at 0x407ea0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a9e8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x42801c]
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.00402f40
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x407ee3
xor al, al
jmp 0x40800d
push esi
lea ecx, [ebp - 0x2c]
call fcn.004045b0
mov dword [ebp - 4], 0
mov edx, 4
lea ecx, [ebp - 0x2c]
call fcn.00406e10
lea ecx, [ebp - 0x2c]
call fcn.00402e30
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x407f51
lea ecx, [ebp - 0x44]
call fcn.00402f20
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.0040c5b0
test al, al
je 0x407f40
lea ecx, [ebp - 0x44]
call fcn.00402e30
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00402e70
cmp ebx, 0xffffffff
je 0x407f5a
test bl, 0x10
je 0x407ffa
lea ecx, [ebp - 0x2c]
call fcn.00402f40
mov esi, dword [eax + 0x10]
cmp esi, 2
jbe 0x407ff6
lea ecx, [ebp - 0x2c]
call fcn.00402f40
mov ecx, eax
mov edx, dword [eax + 0x14]
cmp edx, 8
jb 0x407f82
mov ecx, dword [eax]
cmp word [ecx + esi*2 - 2], 0x5c
je 0x407f99
cmp edx, 8
jb 0x407f91
mov eax, dword [eax]
cmp word [eax + esi*2 - 2], 0x2f
jne 0x407ff6
mov edx, 0x20
lea ecx, [ebp - 0x2c]
call fcn.00406e10
lea ecx, [ebp - 0x2c]
call fcn.00402e30
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x407ff1
lea ecx, [ebp - 0x44]
call fcn.00402f20
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.0040c5b0
test al, al
je 0x407fe0
lea ecx, [ebp - 0x44]
call fcn.00402e30
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00402e70
cmp ebx, 0xffffffff
je 0x407ff6
test bl, 0x10
je 0x407ffa
xor bl, bl
jmp 0x407ffc
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402e70
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.0041873e
mov esp, ebp
pop ebp
ret
Function at 0x408030
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41aa20
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x42801c]
xor eax, ebp
mov dword [ebp - 0x14], 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.00402f40
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x408072
xor al, al
jmp 0x4080fc
push esi
lea ecx, [ebp - 0x2c]
call fcn.004045b0
mov dword [ebp - 4], 0
mov edx, 4
lea ecx, [ebp - 0x2c]
call fcn.00406e10
lea ecx, [ebp - 0x2c]
call fcn.00402e30
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4080e0
lea ecx, [ebp - 0x44]
call fcn.00402f20
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.0040c5b0
test al, al
je 0x4080cf
lea ecx, [ebp - 0x44]
call fcn.00402e30
push eax
call esi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00402e70
cmp ebx, 0xffffffff
je 0x4080e9
test bl, 0x10
je 0x4080e9
mov bl, 1
jmp 0x4080eb
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402e70
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041873e
mov esp, ebp
pop ebp
ret
Function at 0x408200
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41aab0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x42801c]
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 ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.00402f40
mov edi, eax
cmp dword [edi + 0x10], 0
jne 0x408244
xor al, al
jmp 0x4083f2
push ebx
call fcn.00408030
add esp, 4
test al, al
je 0x408258
mov al, 1
jmp 0x4083f2
push 0
mov ecx, ebx
call fcn.00402e30
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call esi
test eax, eax
jne 0x4082a7
lea ecx, [ebp - 0x2c]
call fcn.00402f20
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
mov ecx, ebx
call fcn.0040c5b0
test al, al
je 0x408298
push 0
lea ecx, [ebp - 0x2c]
call fcn.00402e30
push eax
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402e70
push ebx
call fcn.00408030
add esp, 4
test al, al
jne 0x408251
mov eax, dword [edi + 0x10]
xor esi, esi
mov dword [ebp - 0x48], eax
test eax, eax
je 0x40838d
mov ecx, dword [edi + 0x14]
mov eax, edi
cmp ecx, 8
jb 0x4082d0
mov eax, dword [edi]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x4082f3
mov eax, edi
cmp ecx, 8
jb 0x4082e9
mov eax, dword [edi]
cmp dx, word [eax + esi*2]
jne 0x408383
push esi
push 0
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.004061f0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00402f40
mov eax, dword [eax + 0x10]
test eax, eax
je 0x408374
lea eax, [ebp - 0x2c]
push eax
call fcn.00407d10
add esp, 4
test al, al
jne 0x408374
push 0
lea ecx, [ebp - 0x2c]
call fcn.00402e30
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x408374
lea ecx, [ebp - 0x44]
call fcn.00402f20
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.0040c5b0
test al, al
je 0x408368
push 0
lea ecx, [ebp - 0x44]
call fcn.00402e30
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00402e70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402e70
inc esi
cmp esi, dword [ebp - 0x48]
jb 0x4082c4
push ebx
call fcn.00407d10
add esp, 4
test al, al
jne 0x4083e9
push 0
mov ecx, ebx
call fcn.00402e30
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call esi
test eax, eax
jne 0x4083e9
lea ecx, [ebp - 0x44]
call fcn.00402f20
mov dword [ebp - 4], 3
lea edx, [ebp - 0x44]
mov ecx, ebx
call fcn.0040c5b0
test al, al
je 0x4083da
push 0
lea ecx, [ebp - 0x44]
call fcn.00402e30
push eax
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00402e70
push ebx
call fcn.00408030
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 - 0x14]
xor ecx, ebp
call fcn.0041873e
mov esp, ebp
pop ebp
ret