joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d84c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x46ae38]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41d88f
cmp word [esi], dx
jne 0x41d88f
or byte [edi + eax + 0x28], 4
jmp 0x41d894
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41d9e7
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41d9c7
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41d8d6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d90c
cmp eax, edx
jae 0x41d918
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41d8ae
jmp 0x41d9e7
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d9c3
cmp dword [ebp - 0x14], 0
je 0x41d9c3
mov eax, dword [ebx*4 + 0x46ae38]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41d99b
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41d964
mov word [esi], cx
jmp 0x41d997
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x46ae38]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x46ae38]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x46ae38]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41d9e7
pop ebx
cmp word [ebp - 4], bx
jne 0x41d9ac
cmp esi, dword [ebp + 0xc]
jne 0x41d9ac
mov word [esi], bx
jmp 0x41d9e4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041e280
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41d9e7
push 0xd
jmp 0x41d9e0
mov ecx, dword [ebx*4 + 0x46ae38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d9de
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d9e7
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41f7de
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 0x41f87b
push ebx
push esi
call fcn.0041f7a7
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.0041e42c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41f828
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f87a
push edi
push eax
call fcn.00419ae3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41f848
call fcn.00418da9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f879
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041e42c
add esp, 0x20
test eax, eax
jne 0x41f867
push edi
call fcn.00418da9
jmp 0x41f86f
push ebx
call fcn.00418da9
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 0x426a50
Capabilities:
Parse pe header

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

Function at 0x4285ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x42866c
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x42866b
push ebx
mov ebx, 0x46a400
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.00401200
push eax
call fcn.00402518
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.00401200
push eax
call fcn.00402518
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x4293f0
mov byte [edi + esi], al
call fcn.0040eb3e
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x42860e
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.00404306
pop edi
pop ebp
ret 0x14
Function at 0x1000a24e
Capabilities:
Encode data using xor

Disassembly:
cmpsb byte [esi], byte es:[edi]
or dl, byte [ebp - 0x3c]
invalid
pop esi
jb 0x1000a278
jecxz 0x1000a2c2
out dx, al
pop eax
cdq
push ds
in eax, 0
or ecx, eax
sub ah, byte [esi + 0x4159afa]
ret
add esi, 0xffffff76
jmp 0x1000a2ad
cmp dword [esi], 0
stc
jmp 0x1000a2cd
ret 0x3da9
je 0x1000a440
jmp 0x1000a2ea
mov ecx, esi
jmp 0x1000a314
add esi, 4
jmp 0x1000a32b
mov edx, dword [esi]
jmp 0x1000a338
add edx, esi
stc
jmp 0x1000a34d
mov eax, dword [esi + 4]
jmp 0x1000a358
sub dword [edx], 0x7f517069
jmp 0x1000a370
add edx, 4
jmp 0x1000a393
sub eax, 1
clc
jae 0x1000a3a4
out 0x97, al
hlt
jne 0x1000a350
jmp 0x1000a3b2
add esi, 8
jmp 0x1000a3d8
sub dword [ecx], 1
clc
jmp 0x1000a407
jne 0x1000a317
jmp 0x1000a431
mov ebx, esi
jmp 0x1000a43b
call fcn.1000a497
jmp 0x1000a460
popal
stc
jb 0x1000a492
invalid
jmp 0x10004836
Function at 0x403970
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x4784c0], ecx
inc edx
cmp edx, 0x100
jb 0x403972
cmp edx, 0x800
jae 0x403a49
lea esp, [esp]
mov eax, dword [edx*4 + 0x4780c0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4784c0]
inc edx
mov dword [edx*4 + 0x4784bc], eax
cmp edx, 0x800
jb 0x403a20
mov dword [0x477b80], 0x404490
call fcn.00404660
test eax, eax
jne 0x403a66
mov dword [0x477b80], 0x404540
ret
Function at 0x406410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x10]
xor eax, eax
and ebp, 7
cmp ecx, 5
jae 0x406429
pop ebp
pop ecx
ret
mov edx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x1c]
add esi, 5
lea edx, [edx + ecx - 4]
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x10], edx
jmp 0x406450
mov ecx, dword [esp + 0x18]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x40646d
jmp 0x406460
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40646d
inc edi
cmp edi, edx
jb 0x406460
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x1c]
cmp edi, edx
jae 0x406582
cmp ecx, 3
jbe 0x4064a1
xor ebp, ebp
mov cl, byte [edi + 4]
mov dword [esp + 0x1c], eax
test cl, cl
je 0x4064db
cmp cl, 0xff
je 0x4064db
and ebp, 3
add ebp, ebp
or ebp, 1
inc eax
jmp 0x406450
dec ecx
shl ebp, cl
and ebp, 7
je 0x406486
movzx ecx, byte [ebp + 0x463660]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x463658], 0
mov cl, byte [ebx + 4]
je 0x4064c9
test cl, cl
je 0x4064c9
cmp cl, 0xff
jne 0x406486
and ebp, 3
add ebp, ebp
mov dword [esp + 0x1c], eax
or ebp, 1
inc eax
jmp 0x406450
movzx edx, cl
movzx ecx, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea esp, [esp]
cmp dword [esp + 0x28], 0
je 0x40650e
lea ebx, [edx + eax]
add ebx, esi
jmp 0x406514
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x406554
movzx esi, byte [ebp + 0x463660]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x406539
cmp dl, 0xff
jne 0x406550
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
dec edx
xor edx, ebx
jmp 0x406500
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x10]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x406450
pop edi
pop esi
pop ebx
cmp ecx, 3
jbe 0x406595
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov dword [ecx], ebp
pop ebp
pop ecx
ret
dec ecx
shl ebp, cl
mov ecx, dword [esp + 0x18]
and ebp, 7
mov dword [ecx], ebp
pop ebp
pop ecx
ret
Function at 0x408ac4
Capabilities:
Delete registry value

Disassembly:
push 0x424
mov eax, 0x45d366
call fcn.004146fb
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0043f240
lea eax, [ebp - 0x218]
push 0x45f404
push eax
call fcn.00445988
lea eax, [ebp - 0x218]
push 0x45f440
push eax
call fcn.00445957
add esp, 0x1c
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x430]
push eax
call fcn.0040fc7a
lea ecx, [ebp - 0x430]
mov dword [ebp - 4], esi
call fcn.0040fcd6
test eax, eax
jne 0x408bce
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x428]
push eax
mov ebx, 0xf003f
push ebx
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x408bce
lea eax, [ebp - 0x424]
push eax
push ebx
push esi
push 0x45f50c
push dword [ebp - 0x428]
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x408bc3
push 0x208
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.0043f240
push 0x45f514
push 0x45f404
lea eax, [ebp - 0x420]
push 0x45f51c
push eax
call fcn.00407930
add esp, 0x1c
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x424]
call edi
push dword [ebp - 0x428]
call edi
xor esi, esi
inc esi
lea ecx, [ebp - 0x430]
call fcn.0040fc8f
mov eax, esi
call fcn.004146b6
ret

Function at 0x409b70
Capabilities:
Read .ini file

Disassembly:
push 0x82c
mov eax, 0x45d489
call fcn.004146fb
mov edi, ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x830], eax
mov eax, dword [ebp + 0x10]
push 0x800
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x810]
push ecx
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x834], ecx
call fcn.0043f240
lea eax, [edi + 0x84]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x409bcd
mov eax, dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push ebx
push dword [ebp - 0x82c]
push dword [ebp - 0x830]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.00406b00
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x834], 1
jb 0x409c13
mov eax, dword [esi]
jmp 0x409c15
mov eax, esi
push ebx
push eax
call fcn.00446772
pop ecx
pop ecx
test eax, eax
jne 0x409c61
cmp byte [edi + 1], 0
lea eax, [ebp - 0x828]
push ebx
push dword [ebp - 0x82c]
mov ecx, edi
push dword [ebp - 0x830]
push eax
je 0x409c45
call fcn.00409a8c
jmp 0x409c4a
call fcn.00409b46
push eax
mov ecx, esi
call fcn.00407270
push 0
push 1
lea ecx, [ebp - 0x828]
call fcn.00406b70
mov eax, esi
call fcn.004146b6
ret 0x10
Function at 0x40aebb
Capabilities:
Read .ini file

Disassembly:
push 0x23c
mov eax, 0x45d526
call fcn.004146fb
mov ebx, ecx
call fcn.00409a80
lea edi, [ebx + 0xcc]
push eax
mov ecx, edi
call fcn.00406be0
mov esi, str.SwiftImage.ini
push esi
call fcn.004424dd
pop ecx
push eax
push esi
mov ecx, edi
call fcn.004075d0
push 0x45f700
push 0x45f540
push str.MainAppInfo
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.00409b1c
and dword [ebp - 4], 0
lea esi, [ebx + 0xe4]
lea eax, [ebp - 0x248]
cmp esi, eax
je 0x40af31
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00406e50
push 0x45f700
mov ecx, esi
call fcn.00408002
test eax, eax
jne 0x40afad
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0043f240
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x40af5e
mov edi, dword [edi]
push edi
push 0x104
lea eax, [ebp - 0x218]
mov edi, 0x45f700
push eax
push edi
push 0x45f540
push str.MainAppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x40af8f
xor eax, eax
jmp 0x40af9c
lea eax, [ebp - 0x218]
push eax
call fcn.004424dd
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00406c30
jmp 0x40afb2
mov edi, 0x45f700
push edi
mov ecx, esi
call fcn.00408002
test eax, eax
jne 0x40b075
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0043f240
add esp, 0xc
lea eax, [ebx + 0x54]
lea ecx, [ebp - 0x230]
push eax
call fcn.00407370
push str.SwiftImage.ini
mov byte [ebp - 4], 1
call fcn.004424dd
pop ecx
push eax
push str.SwiftImage.ini
lea ecx, [ebp - 0x230]
call fcn.004075d0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
push 0x45f540
push str.MainAppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x40b046
xor eax, eax
jmp 0x40b053
lea eax, [ebp - 0x218]
push eax
call fcn.004424dd
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00406c30
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.00406b70
push edi
mov ecx, esi
call fcn.00408002
test eax, eax
jne 0x40b0b1
push edi
push 0x45f540
push str.MainAppInfo
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.00409b70
push eax
mov ecx, esi
call fcn.00407270
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.00406b70
push 0
push 1
lea ecx, [ebp - 0x248]
call fcn.00406b70
call fcn.004146b6
ret
Function at 0x40bb90
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0x8c
mov eax, 0x45d55e
call fcn.004146fb
mov ebx, dword [ebp + 0x20]
xor edi, edi
mov dword [ebp - 0x14], 7
push edi
xor eax, eax
mov dword [ebp - 4], edi
push 0x47241c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
call fcn.00406c30
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00412981
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov esi, edi
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bc5b
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push edi
cmovae eax, dword [ebp + 8]
push 0x80
push 4
push edi
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40bc57
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebx], eax
call fcn.00414321
mov esi, eax
pop ecx
test esi, esi
je 0x40bc57
push dword [ebx]
push 0
push esi
call fcn.0043f240
add esp, 0xc
lea eax, [ebp - 0x98]
push 0
push eax
push dword [ebx]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x40bc5b
xor edi, edi
mov esi, edi
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00406b70
push edi
push 1
lea ecx, [ebp + 8]
call fcn.00406b70
mov eax, esi
call fcn.004146b6
ret
Function at 0x40bc79
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0xc8
mov eax, 0x45d5a6
call fcn.004146fb
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xd0], ebx
push ebx
xor eax, eax
mov dword [ebp - 4], ebx
push 0x47241c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.00406c30
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.00412981
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bded
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push ebx
cmovae eax, dword [ebp + 0xc]
push 0x80
push 4
push ebx
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40bd17
push 0x47241c
mov ecx, esi
call fcn.00406b00
jmp 0x40bdf8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc8], eax
inc eax
push eax
mov dword [ebp - 0xcc], eax
call fcn.00414321
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x40bd56
push 0x47241c
mov ecx, esi
call fcn.00406b00
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00406b70
push ebx
jmp 0x40be04
push dword [ebp - 0xcc]
push 0
push ebx
call fcn.0043f240
add esp, 0xc
lea eax, [ebp - 0xd4]
push 0
push eax
push dword [ebp - 0xc8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
push ebx
call fcn.0041333c
push ebx
call fcn.0041432a
pop ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00412b8a
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.0040d187
pop ecx
pop ecx
xor ebx, ebx
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.00407d5f
cmp dword [ebp - 0x30], ebx
jbe 0x40bde2
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406e50
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00406b70
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004072f0
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00406b70
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.00406b70
mov eax, esi
call fcn.004146b6
ret
Function at 0x40c0c6
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.004424dd
mov dword [ebp - 4], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00414321
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.00445988
mov eax, dword [ebp - 4]
xor edi, edi
add esp, 0x10
xor ebx, ebx
inc edi
test eax, eax
js 0x40c140
push 0x5c
pop ecx
cmp word [esi + ebx*2], cx
jne 0x40c137
xor eax, eax
push esi
mov word [esi + ebx*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c12d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40c13e
mov eax, dword [ebp - 4]
push 0x5c
pop ecx
mov word [esi + ebx*2], cx
inc ebx
cmp ebx, eax
jle 0x40c10a
jmp 0x40c140
xor edi, edi
push esi
call fcn.0041432a
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c150
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x476094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push 0x1a
push eax
push esi
call fcn.0040c660
lea eax, [ebp - 0x20c]
push eax
call fcn.004424dd
add esp, 0x14
test eax, eax
je 0x40c208
lea eax, [ebp - 0x20c]
push 0x472418
push eax
call fcn.00445957
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00445957
lea eax, [ebp - 0x20c]
push 0x472418
push eax
call fcn.00445957
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c1e1
lea eax, [ebp - 0x20c]
push eax
call fcn.0040c0c6
pop ecx
cmp word [ebp - 0x20c], si
je 0x40c1f9
lea eax, [ebp - 0x20c]
push eax
call fcn.004424dd
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00406c30
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414690
mov esp, ebp
pop ebp
ret

Function at 0x40c341
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x476094]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x476ef0]
test al, al
jne 0x40c3da
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0043f240
add esp, 0xc
lea eax, [ebp - 0x20c]
xor ebx, ebx
inc ebx
push ebx
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40c3d1
lea eax, [ebp - 0x20c]
push eax
call fcn.00446a13
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.0044113d
pop ecx
pop ecx
test eax, eax
jne 0x40c3c9
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.0044113d
pop ecx
pop ecx
test eax, eax
je 0x40c3d1
mov byte [0x476ef0], bl
jmp 0x40c3d7
mov bl, byte [0x476ef0]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414690
mov esp, ebp
pop ebp
ret
Function at 0x40c3e8
Capabilities:
Check if file exists

Disassembly:
push 0xc54
mov eax, 0x45d680
call fcn.004146fb
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc40]
mov ebx, dword [ebp + 0xc]
mov esi, 0x208
and dword [ebp - 0xc60], 0
push esi
push 0
push eax
call fcn.0043f240
push esi
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.0043f240
push esi
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0043f240
push esi
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.0043f240
push esi
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0043f240
push esi
xor esi, esi
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.0043f240
xor eax, eax
mov dword [ebp - 0xc44], 7
add esp, 0x48
mov dword [ebp - 0xc48], esi
mov word [ebp - 0xc58], ax
push esi
push 0x1a
lea eax, [ebp - 0xc40]
mov dword [ebp - 4], esi
push eax
push esi
call fcn.0040c660
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00445988
lea eax, [ebp - 0x218]
push eax
call fcn.004424dd
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.00440fe0
add esp, 0x24
test eax, eax
jne 0x40c4ec
lea eax, [ebp - 0xc58]
push ebx
push eax
call fcn.0040c150
pop ecx
pop ecx
lea eax, [ebp - 0xc58]
mov ecx, edi
push eax
call fcn.004072f0
push esi
push 1
jmp 0x40c64d
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.00445988
lea eax, [ebp - 0x830]
push str.Local
push eax
call fcn.00445957
add esp, 0x10
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
inc ecx
test eax, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
cmovne esi, ecx
push eax
call fcn.00445988
lea eax, [ebp - 0x628]
push str.LocalLow
push eax
call fcn.00445957
add esp, 0x10
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa38]
mov dword [ebp - 0xc5c], ecx
push eax
call fcn.00445988
lea eax, [ebp - 0xa38]
push str.Roaming
push eax
call fcn.00445957
add esp, 0x10
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
test esi, esi
je 0x40c62a
cmp dword [ebp - 0xc5c], 0
je 0x40c62a
test ecx, ecx
je 0x40c62a
push ebx
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push str._s_s_
push eax
call fcn.00407930
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c5fa
lea eax, [ebp - 0x420]
push eax
call fcn.0040c0c6
pop ecx
cmp word [ebp - 0x420], 0
jne 0x40c608
xor eax, eax
jmp 0x40c615
lea eax, [ebp - 0x420]
push eax
call fcn.004424dd
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xc58]
call fcn.00406c30
jmp 0x40c639
lea eax, [ebp - 0xc58]
push ebx
push eax
call fcn.0040c150
pop ecx
pop ecx
lea eax, [ebp - 0xc58]
mov ecx, edi
push eax
call fcn.004072f0
xor eax, eax
push 0
inc eax
push eax
lea ecx, [ebp - 0xc58]
call fcn.00406b70
mov eax, edi
call fcn.004146b6
ret