joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415830
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 1
push str.SeBackupPrivilege
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
call fcn.004156c0
mov eax, dword [ebp + 8]
mov ebx, 0x10
add esp, 8
cmp dword [eax + 0x14], ebx
jb 0x415865
mov eax, dword [eax]
push str.HKCU
push eax
call fcn.0041aa22
mov edi, dword [ebp + 0xc]
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
neg esi
add esi, 0x80000001
cmp dword [edi + 0x14], ebx
jb 0x41588d
mov eax, dword [edi]
jmp 0x41588f
mov eax, edi
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41591d
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x14], ebx
jb 0x4158b2
mov eax, dword [esi]
jmp 0x4158b4
mov eax, esi
push eax
call fcn.004157f0
add esp, 4
test eax, eax
je 0x4158ed
cmp dword [esi + 0x14], ebx
jb 0x4158ca
mov eax, dword [esi]
jmp 0x4158cc
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x415903
cmp dword [esi + 0x14], ebx
jb 0x4158de
mov esi, dword [esi]
mov edx, dword [ebp - 4]
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyA]
jmp 0x415906
cmp dword [esi + 0x14], ebx
jb 0x4158f4
mov esi, dword [esi]
mov eax, dword [ebp - 4]
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyA]
jmp 0x415906
mov eax, dword [ebp + 8]
test eax, eax
je 0x415911
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x415935
cmp dword [edi + 0x14], ebx
jb 0x415924
mov edi, dword [edi]
push edi
push esi
call fcn.00415760
add esp, 8
mov dword [ebp - 8], 0
push 0
push str.SeBackupPrivilege
call fcn.004156c0
mov eax, dword [ebp - 8]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418b60
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cf22
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x43b1c0]
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 eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0xac], ecx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ecx
mov dword [ebp - 0xb0], edi
mov byte [edi], cl
mov ebx, dword [eax + 0x10]
mov edx, 0x10
mov dword [ebp - 4], ecx
mov dword [ebp - 0xac], 1
mov dword [ebp - 0xa8], edx
cmp dword [eax + 0x14], edx
jb 0x418bd2
mov esi, dword [eax]
jmp 0x418bd4
mov esi, eax
push 0xf0000020
push 1
push ecx
push ecx
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x418c8b
mov edx, dword [ebp - 0xa4]
lea ecx, [ebp - 0xa0]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x418c8b
mov eax, dword [ebp - 0xa0]
push 0
push ebx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x418c8b
mov eax, dword [ebp - 0xa0]
push 0
lea ecx, [ebp - 0xa8]
push ecx
lea edx, [ebp - 0x9c]
push edx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x418c8b
xor esi, esi
lea ecx, [ecx]
movzx ecx, byte [ebp + esi - 0x9c]
push ecx
lea edx, [ebp - 0x1c]
push str._02x
push edx
call fcn.0041bee0
lea eax, [ebp - 0x1c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418c70
sub eax, edx
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.00404770
inc esi
cmp esi, 0x10
jl 0x418c50
mov ecx, dword [ebp - 0xa0]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 0xa4]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
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.00419ad1
mov esp, ebp
pop ebp
ret

Function at 0x419ad1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43b1c0]
jne 0x419adb
repz ret
jmp fcn.0041d5ac
Function at 0x4274f7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43b1c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041d04a
and dword [ebp - 0x14], 0
cmp dword [0x43dc18], 0
mov dword [ebp - 0x18], eax
jne 0x4275aa
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x427652
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x427652
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x43dc18], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43dc1c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43dc20], eax
call edi
push eax
call esi
mov dword [0x43dc28], eax
test eax, eax
je 0x4275aa
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x43dc24], eax
mov eax, dword [0x43dc24]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x427603
cmp dword [0x43dc28], ecx
je 0x427603
push eax
call esi
push dword [0x43dc28]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x427603
test ebx, ebx
je 0x427603
call edi
test eax, eax
je 0x4275fa
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4275fa
test byte [ebp - 8], 1
jne 0x427603
or dword [ebp + 0x10], 0x200000
jmp 0x427636
mov eax, dword [0x43dc1c]
cmp eax, dword [ebp - 0x18]
je 0x427636
push eax
call esi
test eax, eax
je 0x427636
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x427636
mov eax, dword [0x43dc20]
cmp eax, dword [ebp - 0x18]
je 0x427636
push eax
call esi
test eax, eax
je 0x427636
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43dc18]
call esi
test eax, eax
je 0x427652
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x427654
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419ad1
leave
ret
Function at 0x40322c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x414020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4032c4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4032a4
xor eax, eax
push ebp
push 0x40329d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4032e0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4032a4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x414020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x414020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403cc4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x415044], 0
je 0x403d25
cmp word [0x415218], 0xd7b2
jne 0x403ced
cmp dword [0x415220], 0
jbe 0x403ced
mov eax, 0x415214
call dword [0x415230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41406c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403d4c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41402c], 0
jne 0x403d41
push 0
push 0x414064
push 0x41406c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404f1c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40514c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404f9f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40514c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404f9f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405168
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405028
xor eax, eax
push ebp
push 0x405021
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404d64
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405006
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405188
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405006
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405028
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405142
cmp byte [ebp - 0xd], 0
jne 0x40506f
cmp byte [ebp - 0x12], 0
je 0x405142
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405088
dec ebx
cmp byte [ebx], 0x2e
je 0x405097
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405087
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405142
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4050d4
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405142
cmp byte [ebp - 0xd], 0
je 0x405142
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405142
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4057d8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40583e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004040b0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402cc4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405828
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405845
lea eax, [ebp - 0x10]
call fcn.00403e40
ret

Function at 0x409a48
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409a81
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f30
jmp 0x409a8a
mov eax, ebx
mov edx, esi
call fcn.00403e94
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409a94
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409ab5
mov al, byte [esp]
jmp 0x409ab7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a13c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409fb4
mov eax, dword [0x414528]
cmp byte [eax], 0
je 0x40a1b8
mov eax, dword [0x414440]
call fcn.00402b5c
call fcn.0040275c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004073b4
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40a200
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a1ee
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41441c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x415660]
call fcn.00404d28
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40ae9c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40af00
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004040b0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406ef0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40af07
lea eax, [ebp - 0xc]
call fcn.00403e40
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1000d630
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0x4c]
mov edi, dword [esi + 0x40]
push 0
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
mov dword [esp + 0x28], edi
call fcn.10009df0
add esp, 0x14
test eax, eax
jne 0x1000d786
mov ecx, dword [esi + 0x44]
movzx eax, byte [esi + 8]
add eax, ecx
mov dword [esp + 0xc], ecx
xor ecx, ecx
mov ch, byte [eax + 5]
push ebx
movzx ebx, word [edi + 0x1e]
mov edi, dword [esp + 0xc]
mov edx, dword [edi + 0x44]
mov cl, byte [eax + 6]
push ebp
mov dword [esp + 0x10], edx
movzx edx, word [esi + 0xe]
mov ebp, ecx
movzx ecx, word [esi + 0x14]
lea edx, [edx + ecx*2]
movzx ecx, byte [esi + 8]
sub edx, ecx
push edx
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.1012b780
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
sub ebx, ebp
push ebx
lea edx, [ecx + ebp]
push edx
add eax, ebp
push eax
call fcn.1012b780
push esi
push edi
call fcn.100081e0
mov ebx, eax
add esp, 0x20
test ebx, ebx
jne 0x1000d776
movzx ecx, byte [esi + 2]
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
lea edx, [esi + 0x18]
push edx
lea eax, [edi + 0x18]
push eax
call fcn.1012b780
mov al, byte [esi + 2]
add esp, 0xc
test al, al
mov byte [edi + 2], al
je 0x1000d6f8
mov word [edi + 0x12], bx
mov ecx, dword [edi + 0x44]
movzx edx, byte [ecx]
and edx, 0xfffffff7
push edx
call fcn.10008350
movzx ecx, byte [esi + 8]
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x44]
push eax
lea eax, [ecx + edx + 8]
push eax
call fcn.100056d0
mov ecx, dword [esp + 0x28]
add esp, 0xc
cmp byte [ecx + 0x16], 0
je 0x1000d76b
mov edx, dword [esi + 0x4c]
mov eax, dword [edi + 0x4c]
push edx
mov bl, 5
call fcn.100079a0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1000d776
xor esi, esi
cmp word [edi + 0x14], si
jbe 0x1000d76b
lea esp, [esp]
mov eax, esi
call fcn.10007b90
call fcn.10007d30
test eax, eax
jne 0x1000d784
movzx eax, word [edi + 0x14]
add esi, 1
cmp esi, eax
jl 0x1000d750
push edi
call fcn.1000ca60
add esp, 4
mov ebx, eax
mov ecx, dword [edi + 0x48]
push ecx
call fcn.1001da70
add esp, 4
mov eax, ebx
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x1003f300
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101ba0ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [esi + 0x1c0]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, esi
call fcn.10040440
mov ecx, esi
call fcn.10040a40
mov ecx, esi
call fcn.1003fbe0
mov ecx, esi
call fcn.10040010
cmp byte [esi + 0x20], 0
jne 0x1003f34c
mov ecx, esi
call fcn.1003f440
cmp byte [esi + 0x21], 0
jne 0x1003f359
mov ecx, esi
call fcn.1003f810
push ebx
push edi
lea ebx, [esi + 0x3c]
lea edi, [esi + 0x6c]
cmp edi, ebx
je 0x1003f371
push 0xffffffffffffffff
push 0
push ebx
mov ecx, edi
call fcn.10041c10
push 5
push str.Skin_
mov ecx, edi
call fcn.100415d0
cmp dword [edi + 0x14], 8
jb 0x1003f389
mov eax, dword [edi]
jmp 0x1003f38b
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1003f3a7
cmp dword [edi + 0x14], 8
jb 0x1003f39e
mov edi, dword [edi]
push edi
call fcn.10110097
add esp, 4
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1012bd00
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x1003f3c5
mov ebx, dword [ebx]
push str.AllSkin
push ebx
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.10041b40
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
pop ebx
test eax, eax
jne 0x1003f401
lea eax, [ebp - 0x20c]
push eax
call fcn.10110097
add esp, 4
mov ecx, esi
call fcn.10040990
mov ecx, esi
call fcn.100405c0
mov ecx, esi
call fcn.10040690
mov ecx, esi
call fcn.10040780
mov ecx, esi
call fcn.10040870
mov ecx, esi
call fcn.10040900
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.1010a832
mov esp, ebp
pop ebp
ret
Function at 0x10040440
Capabilities:
Check for time delay via queryperformancecounter
Find taskbar

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x101ba0ec]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.10054700
mov ebx, dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
mov dword [esi], eax
lea eax, [esp + 0x18]
push eax
push 0
push 0x30
call ebx
mov eax, dword [esp + 0x18]
mov dword [esi + 8], eax
call fcn.10054290
push 0
mov dword [esi + 0xc], eax
lea eax, [esp + 0x18]
push eax
push 0
push 0x30
call ebx
mov ebx, dword [sym.imp.USER32.dll_FindWindowW]
push 0
push str.Shell_TrayWnd
call ebx
mov edi, dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, eax
call edi
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
push 0
mov dword [ecx + 0x10], eax
lea eax, [esp + 0x38]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
push str.Shell_TrayWnd
call ebx
mov esi, eax
call edi
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
push 0
mov dword [ecx + 0x18], eax
lea eax, [esp + 0x38]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
push str.Shell_TrayWnd
call ebx
mov esi, eax
call edi
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x14]
push ecx
push eax
call ebx
lea eax, [esp + 0x24]
push eax
push esi
call ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx]
mov dword [ebx + 4], eax
lea eax, [ebx + 0x168]
push eax
call esi
lea eax, [ebx + 0x180]
push eax
call esi
lea eax, [ebx + 0x170]
push eax
call esi
lea eax, [ebx + 0x1b0]
push eax
call esi
lea eax, [ebx + 0x190]
push eax
call esi
lea eax, [ebx + 0x1a0]
push eax
call esi
mov eax, dword [0x101c7da4]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
mov dword [ebx + 0x15c], eax
pop ebx
xor ecx, esp
call fcn.1010a832
mov esp, ebp
pop ebp
ret
Function at 0x100405c0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101ba0ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.1012bd00
add esi, 0x24
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x100405f9
mov eax, dword [esi]
jmp 0x100405fb
mov eax, esi
push 0x1018433c
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.10041b40
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10040634
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esi + 0x14], 8
jb 0x1004063c
mov esi, dword [esi]
push str.Dict
push esi
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.10041b40
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop esi
test eax, eax
jne 0x10040676
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010a832
mov esp, ebp
pop ebp
ret

Function at 0x10040690
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101ba0ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x50], 8
lea eax, [esi + 0x3c]
jb 0x100406b1
mov eax, dword [eax]
push 0x10184350
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.10041b40
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100406eb
lea eax, [ebp - 0x20c]
push eax
call fcn.10110097
add esp, 4
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x100406f4
mov eax, dword [str.Config.ini]
mov dword [ecx], eax
mov eax, dword [0x10184364]
mov dword [ecx + 4], eax
mov eax, dword [0x10184368]
mov dword [ecx + 8], eax
mov eax, dword [0x1018436c]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10184370]
mov dword [ecx + 0x10], eax
mov ax, word [0x10184374]
mov word [ecx + 0x14], ax
cmp word [ebp - 0x20c], 0
jne 0x1004073f
xor ecx, ecx
jmp 0x1004075f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10040750
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x54]
call fcn.10041f80
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1010a832
mov esp, ebp
pop ebp
ret