joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003b16
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
push str.SHELL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x14], edi
je 0x1003c30
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SHBrowseForFolder
push edi
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1003c1d
push 0xc3
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x1003c1d
push str.SHGetPathFromIDList
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x1003c1d
cmp byte [0x100c720], bl
mov esi, 0x100c720
jne 0x1003bba
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.USER32.dll_CharPrevA]
add eax, esi
push eax
push esi
call edi
cmp byte [eax], 0x5c
mov dword [ebp - 4], eax
jne 0x1003bba
push eax
push esi
call edi
cmp byte [eax], 0x3a
je 0x1003bba
mov eax, dword [ebp - 4]
mov byte [eax], bl
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
mov byte [edi], bl
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0x1003af5
mov dword [ebp - 0x1c], esi
call dword [ebp - 8]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x1003c0b
push esi
push eax
call dword [ebp - 0xc]
cmp byte [0x100c720], bl
je 0x1003c05
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
call dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
cmp byte [edi], bl
setne al
jmp 0x1003c44
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
push 0x10
push ebx
push ebx
push 0x4c1
jmp 0x1003c3a
push ebx
push 0x10
push ebx
push ebx
push 0x4c2
push dword [ebp + 8]
call fcn.01003d16
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1003e69
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push edi
push 0xa
xor edi, edi
push dword [ebp + 8]
push edi
call esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, dword [ebp + 0x10]
ja 0x1003ed2
cmp dword [ebp + 0xc], edi
je 0x1003ed2
cmp ebx, edi
je 0x1003eb2
push 0xa
push dword [ebp + 8]
push edi
call esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
jne 0x1003eb6
xor eax, eax
jmp 0x1003ed4
mov edi, dword [ebp + 0xc]
mov ecx, ebx
mov edx, ecx
mov esi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x1003f69
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 1
pop ebx
push edi
mov esi, ebx
call fcn.01005a62
test eax, eax
jne 0x1003f83
mov eax, ebx
jmp 0x1003fe2
cmp dword [0x100be7c], 0
jne 0x1003fd0
test byte [0x100bab8], bl
jne 0x1003fd0
push 6
push 0
push 0x1002f1e
mov dword [0x100c0a4], edi
push dword [0x100ba78]
push 0x7d3
push dword [0x100c6dc]
call fcn.01005990
sub eax, 6
je 0x1003fce
dec eax
je 0x1003fe8
sub eax, 0x832
jne 0x1003fd0
mov dword [0x100be7c], ebx
mov esi, ebx
test esi, esi
je 0x1003fe0
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop edi
pop esi
pop ebx
ret 4
xor esi, esi
jmp 0x1003fd0

Function at 0x100410c
Capabilities:
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov cl, byte [edi]
test cl, cl
je 0x1004170
mov al, byte [edi + 1]
lea esi, [edi + 1]
xor ebx, ebx
cmp al, 0x3a
jne 0x1004130
cmp byte [edi + 2], 0x5c
jne 0x1004130
lea esi, [edi + 3]
jmp 0x100413f
cmp cl, 0x5c
jne 0x100413f
cmp al, cl
jne 0x100413f
push 2
lea esi, [edi + 2]
pop ebx
mov al, byte [esi]
test al, al
je 0x1004170
cmp al, 0x5c
jne 0x1004165
cmp byte [esi - 1], 0x3a
je 0x1004165
test ebx, ebx
je 0x1004156
dec ebx
jmp 0x1004165
and byte [esi], 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x100413f
pop edi
pop esi
pop ebx
ret 4

Function at 0x1004ac1
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov esi, dword [esp + 0x118]
push edi
xor edi, edi
xor ebp, ebp
mov eax, edi
inc edi
push eax
lea eax, [esp + 0x14]
push 0x1001480
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esp + 0x118]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x10]
push eax
push esi
call fcn.01005ab2
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 0xffffffff
je 0x1004b29
cmp edi, 0x190
jl 0x1004ad6
jmp 0x1004b3c
xor ebp, ebp
push ebp
push esi
call ebx
test eax, eax
je 0x1004b3c
push 1
pop ebp
mov dword [0x100baa0], ebp
test ebp, ebp
jne 0x1004b67
push esi
push ebp
push 0x100147c
push dword [esp + 0x124]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x1004b67
push 1
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
call ebx
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 8
Function at 0x1004b76
Capabilities:
Create directory
Delete directory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
je 0x1004c03
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 8]
call fcn.01004ac1
test eax, eax
je 0x1004c60
lea eax, [ebp - 0x128]
mov esi, 0x100be84
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [0x100c6d4], 0x20
je 0x1004bf6
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x24]
sub eax, ebx
je 0x1004beb
dec eax
je 0x1004be4
dec eax
je 0x1004bdd
dec eax
jne 0x1004bf6
push 0x10014a4
jmp 0x1004bf0
push 0x100149c
jmp 0x1004bf0
push 0x1001494
jmp 0x1004bf0
push 0x100148c
push esi
call fcn.01005ab2
push 0x10012d4
push esi
call fcn.01005ab2
jmp 0x1004c12
push dword [ebp + 8]
mov esi, 0x100be84
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.01004f48
test eax, eax
jne 0x1004c32
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1004c68
mov dword [0x100baa0], 1
push ebx
push dword [ebp + 0x10]
push esi
call fcn.01004fe7
test eax, eax
je 0x1004c4b
push 1
mov dword [0x100c704], ebx
pop eax
jmp 0x1004c62
cmp dword [0x100baa0], ebx
je 0x1004c60
push esi
mov dword [0x100baa0], ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
pop esi
pop ebx
leave
ret 0xc
call fcn.01005763
mov dword [0x100c704], eax
jmp 0x1004c60
Function at 0x1004f48
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x14
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x1004f8e
push ebp
push 0x10
push ebp
push ebp
push 0x4b5
push ebp
call fcn.01003d16
call fcn.01005763
mov dword [0x100c704], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10014bc
push esi
call fcn.01005ab2
push ebp
push 0x4000080
push 1
push ebp
push ebp
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, 0xffffffff
je 0x1004f7b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1004f7b
test al, 0x10
je 0x1004f7b
push 1
mov dword [0x100c704], ebp
pop eax
jmp 0x1004f87
Function at 0x1004fe7
Capabilities:
Get common file path
Get disk information
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov dword [ebp - 4], ebx
je 0x10051d8
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
test eax, eax
jne 0x1005041
push ebx
push 0x10
push ebx
push ebx
push 0x4bc
push ebx
call fcn.01003d16
call fcn.01005763
mov dword [0x100c704], eax
jmp 0x1005163
lea eax, [ebp - 4]
push eax
push ebx
call fcn.01005b9e
mov edi, eax
cmp edi, ebx
jne 0x10050a6
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x317]
mov byte [ebp - 0x318], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.01005763
mov dword [0x100c704], eax
push ebx
lea eax, [ebp - 0x318]
push 0x200
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push ebx
lea eax, [ebp - 0x318]
push 0x10
push eax
push dword [ebp + 8]
push 0x4b0
jmp 0x100510f
push ebx
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x1005120
push 0x7f
lea edi, [ebp - 0x317]
pop ecx
mov byte [ebp - 0x318], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.01005763
mov dword [0x100c704], eax
push ebx
lea eax, [ebp - 0x318]
push 0x200
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push ebx
lea eax, [ebp - 0x318]
push 0x10
push eax
push dword [ebp + 8]
push 0x4f9
push ebx
call fcn.01003d16
lea eax, [ebp - 0x118]
push eax
call esi
jmp 0x1005163
lea eax, [ebp - 0x118]
push eax
call esi
push 3
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, 0x200
xor eax, eax
cmp dword [ebp - 4], ecx
je 0x100514d
shl ecx, 1
inc eax
cmp ax, 8
jb 0x100513f
cmp ax, 8
jne 0x1005167
push ebx
push 0x10
push ebx
push ebx
push 0x4c5
push ebx
call fcn.01003d16
xor eax, eax
jmp 0x10051db
test byte [0x100c6d4], 8
je 0x1005191
test byte [ebp - 0xf], 0x80
je 0x1005191
mov edx, dword [0x100c6d8]
movzx eax, ax
mov ecx, edx
mov eax, dword [eax*4 + 0x100c6e0]
shr ecx, 2
shl eax, 1
add ecx, edx
jmp 0x10051a1
mov ecx, dword [0x100c6d8]
movzx eax, ax
mov eax, dword [eax*4 + 0x100c6e0]
mov esi, dword [ebp + 0xc]
and esi, 1
je 0x10051b6
test byte [ebp + 0xc], 2
je 0x10051b6
lea edx, [ecx + eax]
cmp edx, edi
jmp 0x10051c0
cmp esi, ebx
je 0x10051be
cmp eax, edi
jmp 0x10051c0
cmp ecx, edi
jbe 0x10051d2
lea edx, [ebp - 0xc]
push edx
push ecx
push eax
push dword [ebp + 0x10]
call fcn.010022eb
jmp 0x10051db
mov dword [0x100c704], ebx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1005714
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x1005751
push eax
push 0x10
push eax
push eax
push 0x4f0
push eax
call fcn.01003d16
call fcn.01005763
mov dword [0x100c704], eax
xor eax, eax
leave
ret
push 2
lea eax, [ebp - 0x104]
push 2
push eax
call fcn.01004fe7
leave
ret

Function at 0x1005782
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x24]
push edi
push 0x1001380
push eax
mov dword [ebp - 8], 1
mov dword [ebp - 4], edi
call ebx
add esp, 0xc
lea eax, [ebp - 0x24]
push 0xa
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x100584b
jmp 0x10057c5
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, edi
je 0x1005831
mov eax, dword [esi]
lea edi, [esi + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 4]
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + edi + 1]
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [ebp + 8]
test eax, eax
je 0x1005840
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
inc dword [ebp - 4]
lea eax, [ebp - 0x24]
push dword [ebp - 4]
push 0x1001380
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x24]
push 0xa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x10057c3
jmp 0x100584b
mov dword [0x100c704], 0x80070714
mov dword [ebp - 8], edi
jmp 0x100584b
and dword [ebp - 8], 0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push 0x100be84
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.01005ab2
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1005983
test al, 0x10
jne 0x1005983
push 8
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x100598c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
leave
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1005a75
xor eax, eax
jmp 0x1005a7d
not eax
shr eax, 4
and eax, 1
ret 4
Function at 0x1005b4a
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
cmp byte [ecx], al
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
je 0x1005b80
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x1005b84
xor eax, eax
jmp 0x1005b9a
mov eax, dword [ebp - 8]
push 0x400
imul eax, dword [ebp - 0xc]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
leave
ret 4

Function at 0x10074fc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x1007543
cmp edx, 0x10
jl 0x100752f
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x100751c
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x1007543
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x100753b
and edx, 3
cmp edx, 3
jne 0x1007557
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x100755c
cmp edx, 2
jne 0x1007568
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x100756d
cmp edx, 1
jne 0x1007573
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x46fed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push es
mov ax, 0x101f
mov es, eax
xor eax, eax
mov esi, eax
mov ecx, 0x8000
xor al, byte es:[esi]
inc esi
loop 0x46fee5
pop es
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
jne 0x46fef9
mov byte [ebp - 1], 0x55
mov al, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov byte [edx], al
xor eax, eax
pop esi
pop ecx
pop ebp
ret
Function at 0x403c10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438036
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x4447bc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x470], ecx
push 1
push 0x24
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.PrefetchLayout.ini
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00428a28
add esp, 0xc
mov dword [ebp - 0x10], 0
push str.rt_ccsUTF_16LE
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.00429803
add esp, 0xc
test eax, eax
je 0x403c95
jmp 0x403d91
lea ecx, [ebp - 0x234]
call fcn.00407f80
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00429616
add esp, 4
test eax, eax
jne 0x403d3f
lea edx, [ebp - 0x46c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00403b70
add esp, 8
movzx ecx, al
cmp ecx, 1
jne 0x403d3f
lea edx, [ebp - 0x46c]
push edx
call fcn.004039e0
add esp, 4
movzx eax, al
test eax, eax
je 0x403d3a
mov dword [ebp - 0x24c], 1
mov ecx, dword [ebp - 0x23c]
and ecx, 0xfffffffe
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x24c], 1
mov edx, dword [ebp - 0x254]
imul edx, edx, 0xa
mov dword [ebp - 0x248], edx
mov dword [ebp - 0x244], 0
lea eax, [ebp - 0x46c]
push eax
lea ecx, [ebp - 0x234]
call fcn.004080b0
jmp 0x403ca7
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004296c1
add esp, 4
lea ecx, [ebp - 0x234]
call fcn.00408050
test eax, eax
je 0x403d7f
lea ecx, [ebp - 0x234]
call fcn.00408050
push eax
push 0
lea ecx, [ebp - 0x234]
call fcn.00408070
push eax
mov ecx, dword [ebp - 0x470]
call fcn.00404de0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.00407ff0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00428b32
mov esp, ebp
pop ebp
ret
Function at 0x403db0
Capabilities:
Create directory
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x4447bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x324], 0
push 1
push 0x23
lea eax, [ebp - 0x320]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x43a824
push 0x104
lea ecx, [ebp - 0x320]
push ecx
call fcn.004292d0
add esp, 0xc
push 0
lea edx, [ebp - 0x320]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
push 0x104
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x320]
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0x43a830
push 0x104
lea edx, [ebp - 0x110]
push edx
call fcn.004292d0
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push 0x43a666
push str.StatPath
push 0x43a84c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x403e94
lea edx, [ebp - 0x110]
push edx
push 0x104
lea eax, [ebp - 0x320]
push eax
call fcn.00429344
add esp, 0xc
push 0
lea ecx, [ebp - 0x320]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
push 0x104
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x403ecc
lea ecx, [ebp - 0x320]
push ecx
push 0x104
lea edx, [ebp - 0x218]
push edx
call fcn.00429344
add esp, 0xc
push str._filestat.dat
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.004292d0
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004076c0
mov edx, dword [ebp - 0x324]
or edx, 1
mov dword [ebp - 0x324], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428b32
mov esp, ebp
pop ebp
ret
Function at 0x415480
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x4447bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x62c], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x41c]
cmp dword [ecx + 0xc], 0
jge 0x4154b5
xor eax, eax
jmp 0x4155a9
mov edx, dword [ebp - 0x62c]
mov ecx, dword [edx + 0x3c]
call fcn.004155c0
movzx eax, al
test eax, eax
je 0x4154eb
push 0
push 0x43a610
push str.Database_is_busy._Please_retry_later.
mov ecx, dword [ebp - 0x62c]
add ecx, 4
call fcn.00417b90
xor eax, eax
jmp 0x4155a9
push 0x104
lea ecx, [ebp - 0x418]
push ecx
push 3
mov edx, dword [ebp - 0x41c]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x62c]
add ecx, 4
call fcn.00415a80
push 0x104
lea ecx, [ebp - 0x628]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [ebp - 0x62c]
cmp dword [edx + 0x30], 0
je 0x41554c
push str.__application
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.00428aa5
add esp, 0xc
jmp 0x415565
push str.__file
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.00428aa5
add esp, 0xc
lea edx, [ebp - 0x418]
push edx
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.00428a28
add esp, 0xc
push 5
push 0
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x628]
push edx
push 0x43bf2c
mov eax, dword [ebp - 0x62c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428b32
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4170d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4447bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], 0
push 0x110
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.00429070
add esp, 0xc
mov dword [ebp - 0x120], 0x114
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x417150
cmp dword [ebp - 0x11c], 5
jae 0x417144
cmp dword [ebp - 0x11c], 4
jne 0x417150
cmp dword [ebp - 0x118], 0x5a
jb 0x417150
mov dword [ebp - 0x128], 0
jmp 0x41715a
mov dword [ebp - 0x128], 1
mov al, byte [ebp - 0x128]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428b32
mov esp, ebp
pop ebp
ret
Function at 0x41bd20
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4447bc]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.0041bae0
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0041bcc0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41bd8b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.0041bb10
mov eax, dword [ebp - 0x224]
jmp 0x41be1c
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41bdf1
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0041bd20
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41bde8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.0041bb10
mov eax, dword [ebp - 0x228]
jmp 0x41be1c
mov dword [ebp - 4], 0x100
jmp 0x41bd92
lea ecx, [ebp - 0x14]
call fcn.0041bc00
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.0041bba0
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.0041bb10
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00428b32
mov esp, ebp
pop ebp
ret 4