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

Disassembly:
sub esp, 0x108
mov eax, dword [0x42c2e4]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push ecx
call fcn.0040e060
add esp, 4
push str.url.dll
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp]
push eax
call fcn.0040e500
mov ecx, dword [esp + 0x108]
add esp, 4
xor ecx, esp
call fcn.004121f9
add esp, 0x108
ret

Function at 0x40e5d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x42c2e4]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x118]
push ebx
push ebp
mov ebp, dword [esp + 0x118]
push esi
push edi
push str.shfolder.dll
mov dword [esp + 0x14], eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [esp + 0x124]
mov ebx, eax
test ebx, ebx
je 0x40e643
push str.SHGetFolderPathA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e638
lea ecx, [esp + 0x14]
push ecx
push edi
push edi
push esi
push ebp
call eax
xor edx, edx
test eax, eax
setge dl
mov edi, edx
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
jne 0x40e699
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov edx, ebp
call fcn.0040e590
mov edi, eax
add esp, 4
test edi, edi
jne 0x40e699
cmp esi, 0x24
je 0x40e66e
cmp esi, 0x25
je 0x40e66e
cmp esi, 0x26
je 0x40e66e
cmp esi, 0x2b
jne 0x40e695
push str.shell32.dll
call fcn.0040df50
add esp, 4
cmp eax, 0x50000
jb 0x40e6c4
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov edx, ebp
call fcn.0040e590
add esp, 4
mov edi, eax
test edi, edi
je 0x40e6a9
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x118]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004121f9
add esp, 0x10c
ret
cmp esi, 0x26
je 0x40e702
cmp esi, 0x2b
je 0x40e702
cmp esi, 0x24
jne 0x40e6e8
push 0x104
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esi - 0x23]
jmp 0x40e699
cmp esi, 0x25
jne 0x40e737
push 0x104
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esi - 0x24]
jmp 0x40e699
push 0x104
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Program_Files
lea edx, [esp + 0x1b]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp esi, 0x2b
jne 0x40e737
push str.Common_Files
lea eax, [esp + 0x1b]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, 1
jmp 0x40e699
Function at 0x40e7e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x260
mov eax, dword [0x42c2e4]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
mov ebx, dword [esp + 0x26c]
push esi
mov esi, dword [esp + 0x26c]
push edi
mov edi, dword [esp + 0x278]
push esi
lea eax, [esp + 0x168]
push 0x104
push eax
call fcn.004128b7
lea ecx, [esp + 0x170]
push ecx
call fcn.0040e790
add esp, 0x10
push str..exe
push esi
call fcn.0040e7b0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40e889
mov edi, 1
push edi
lea edx, [esp + 0x168]
push edx
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x40e969
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.004121f9
add esp, 0x260
ret
push esi
lea eax, [esp + 0x65]
push eax
mov byte [esp + 0x68], 0x22
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x426b94
lea ecx, [esp + 0x64]
push ecx
call esi
test ebx, ebx
je 0x40e8b8
push ebx
lea edx, [esp + 0x64]
push edx
call esi
push 0x44
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00412210
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x16c]
push eax
push 0
push 0x4000020
push 0
push 0
push 0
lea ecx, [esp + 0x80]
push ecx
push 0
mov dword [esp + 0x44], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test edi, edi
mov esi, eax
je 0x40e93b
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [edi], edx
mov edx, dword [esp + 0x18]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.004121f9
add esp, 0x260
ret
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.004121f9
add esp, 0x260
ret
mov ecx, dword [esp + 0x268]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004121f9
add esp, 0x260
ret

Function at 0x40f190
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x42c2e4]
xor eax, esp
mov dword [esp + 0x94], eax
cmp dword [0x44146c], 0
jne 0x40f224
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.00412210
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40f1ec
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004121f9
add esp, 0x98
ret
mov eax, dword [esp + 0xc]
shr eax, 0x10
mov edx, 1
cmp dword [esp + 0x10], edx
movzx ecx, ah
movzx eax, al
jne 0x40f21e
cmp ecx, 4
jne 0x40f214
cmp eax, 0xa
mov dword [0x441468], edx
jb 0x40f21e
mov dword [0x441468], 0
mov dword [0x44146c], edx
mov ecx, dword [esp + 0x94]
mov eax, dword [0x441468]
xor ecx, esp
call fcn.004121f9
add esp, 0x98
ret
Function at 0x40f240
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x42c2e4]
xor eax, esp
mov dword [esp + 0x94], eax
cmp byte [0x441471], 0
je 0x40f279
movzx eax, byte [0x441470]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004121f9
add esp, 0x98
ret
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.00412210
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40f2b8
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004121f9
add esp, 0x98
ret
cmp dword [esp + 0x10], 2
jne 0x40f2df
cmp dword [esp + 4], 5
sete al
test al, al
mov byte [0x441470], al
je 0x40f2e4
cmp dword [esp + 8], 0
sete al
mov byte [0x441470], al
jmp 0x40f2e4
mov al, byte [0x441470]
mov ecx, dword [esp + 0x94]
xor ecx, esp
mov byte [0x441471], 1
movzx eax, al
call fcn.004121f9
add esp, 0x98
ret

Function at 0x40f310
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x42c2e4]
xor eax, esp
mov dword [esp + 0x94], eax
cmp byte [0x441473], 0
jne 0x40f386
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.00412210
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40f36c
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004121f9
add esp, 0x98
ret
cmp dword [esp + 0x10], 2
jne 0x40f37f
cmp dword [esp + 4], 5
setae byte [0x441472]
mov byte [0x441473], 1
mov ecx, dword [esp + 0x94]
movzx eax, byte [0x441472]
xor ecx, esp
call fcn.004121f9
add esp, 0x98
ret

Function at 0x40f3b0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x42c2e4]
xor eax, esp
mov dword [esp + 0x9c], eax
cmp byte [0x441475], 0
je 0x40f3e9
movzx eax, byte [0x441474]
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004121f9
add esp, 0xa0
ret
push 0x9c
lea eax, [esp + 4]
push 0
push eax
call fcn.00412210
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40f428
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004121f9
add esp, 0xa0
ret
cmp dword [esp + 0x10], 2
jne 0x40f445
cmp dword [esp + 4], 6
jne 0x40f445
cmp dword [esp + 8], 0
sete al
mov byte [0x441474], al
jmp 0x40f44a
mov al, byte [0x441474]
test al, al
je 0x40f45f
cmp byte [esp + 0x9a], 3
jne 0x40f45f
xor al, al
mov byte [0x441474], al
mov ecx, dword [esp + 0x9c]
xor ecx, esp
mov byte [0x441475], 1
movzx eax, al
call fcn.004121f9
add esp, 0xa0
ret
Function at 0x40f480
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x42c2e4]
xor eax, esp
mov dword [esp + 0x9c], eax
cmp byte [0x441477], 0
je 0x40f4b9
movzx eax, byte [0x441476]
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004121f9
add esp, 0xa0
ret
push 0x9c
lea eax, [esp + 4]
push 0
push eax
call fcn.00412210
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40f4f8
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004121f9
add esp, 0xa0
ret
cmp dword [esp + 0x10], 2
jne 0x40f522
mov eax, dword [esp + 4]
cmp eax, 6
jbe 0x40f511
mov al, 1
mov byte [0x441476], al
jmp 0x40f52b
jne 0x40f522
cmp dword [esp + 8], 1
setae al
mov byte [0x441476], al
jmp 0x40f527
mov al, byte [0x441476]
test al, al
je 0x40f53c
cmp byte [esp + 0x9a], 3
jne 0x40f53c
xor al, al
mov byte [0x441476], al
mov ecx, dword [esp + 0x9c]
xor ecx, esp
mov byte [0x441477], 1
movzx eax, al
call fcn.004121f9
add esp, 0xa0
ret

Function at 0x40f560
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x42c2e4]
xor eax, esp
mov dword [esp + 0x9c], eax
cmp byte [0x441479], 0
je 0x40f599
movzx eax, byte [0x441478]
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004121f9
add esp, 0xa0
ret
push 0x9c
lea eax, [esp + 4]
push 0
push eax
call fcn.00412210
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40f5d8
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004121f9
add esp, 0xa0
ret
cmp dword [esp + 0x10], 2
jne 0x40f5ef
cmp dword [esp + 4], 6
jb 0x40f5ef
mov al, 1
mov byte [0x441478], al
jmp 0x40f5f8
mov al, byte [0x441478]
test al, al
je 0x40f609
cmp byte [esp + 0x9a], 3
je 0x40f609
xor al, al
mov byte [0x441478], al
mov ecx, dword [esp + 0x9c]
xor ecx, esp
mov byte [0x441479], 1
movzx eax, al
call fcn.004121f9
add esp, 0xa0
ret
Function at 0x40f850
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
jne 0x40f85d
xor eax, eax
pop ebp
ret
mov eax, dword [esp + 8]
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40f887
pop ebx
xor eax, eax
pop ebp
ret
push esi
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
test esi, esi
jne 0x40f8ac
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
xor eax, eax
pop ebp
ret
push edi
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x40f906
push 0x28
call fcn.00412118
add esp, 4
test eax, eax
je 0x40f8ff
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [ebp], edi
mov dword [eax + 8], edi
pop edi
mov dword [eax + 4], esi
pop esi
mov dword [eax], ebx
pop ebx
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
ret

Function at 0x40fa00
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x4dc
mov eax, dword [0x42c2e4]
xor eax, esp
mov dword [esp + 0x4d8], eax
mov eax, dword [esp + 0x4e0]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
push 0x168
lea ecx, [esp + 0x114]
push ecx
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x27c]
push eax
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x426bcc
lea ecx, [esp + 0x27c]
push ecx
call esi
push 0x168
lea edx, [esp + 0x114]
push edx
push edi
call ebx
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x27c]
push ecx
call esi
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0xc]
push eax
call fcn.0040e060
add esp, 4
push str.WININIT.INI
lea ecx, [esp + 0x10]
push ecx
call esi
lea edx, [esp + 0xc]
push edx
push 0x7fff
push 0x441480
push str.Rename
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov esi, eax
lea eax, [esp + 0x278]
push eax
lea ecx, [esi + 0x441480]
push ecx
call ebp
lea edx, [esp + 0x278]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [eax + esi + 0x441481], 0
lea eax, [esp + 0xc]
push eax
push 0x441480
push str.Rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
mov ecx, dword [esp + 0x4e4]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004121f9
add esp, 0x4dc
ret
Function at 0x40fb20
Capabilities:
Move file

Disassembly:
push 5
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
ret
call fcn.0040ef00
test eax, eax
mov eax, dword [esp + 8]
je 0x40fb36
mov ecx, dword [esp + 4]
jmp 0x40f9f0
push edi
mov edi, dword [esp + 8]
push eax
call fcn.0040fa00
add esp, 4
pop edi
ret

Function at 0x40fbd0
Capabilities:
Shutdown system

Disassembly:
call fcn.0040ef00
test eax, eax
je 0x40fc1b
push 0x4268dc
push str.SeShutdownPrivilege
mov eax, 1
call fcn.0040fb50
add esp, 8
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x40fc01
xor eax, eax
ret
push 0x4268dc
push str.SeShutdownPrivilege
xor eax, eax
call fcn.0040fb50
add esp, 8
mov eax, 1
ret
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x40fbfe
mov eax, 1
ret
Function at 0x40fc30
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x11c
mov eax, dword [0x42c2e4]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x134]
push ebx
mov ebx, dword [esp + 0x128]
push ebp
mov ebp, dword [esp + 0x138]
push esi
push edi
mov edi, dword [esp + 0x138]
lea edx, [esp + 0x10]
push edx
push 0x426c80
push 1
xor esi, esi
push esi
push 0x426ca0
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40fdc7
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x426c90
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x40fdbb
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push ebx
push eax
call edx
test edi, edi
je 0x40fcd5
cmp byte [edi], 0
je 0x40fcd5
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push edi
push eax
call edx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
lea eax, [esp + 0x24]
push eax
call esi
lea ecx, [esp + 0x20]
push ecx
call fcn.0040dfc0
add esp, 4
test eax, eax
je 0x40fd15
lea edx, [esp + 0x20]
push edx
mov byte [eax], 0
call fcn.0040e0a0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
add esp, 4
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
test ebp, ebp
je 0x40fd2c
cmp byte [ebp], 0
je 0x40fd2c
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push ebp
push eax
call edx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40fd78
cmp byte [eax], 0
je 0x40fd78
push eax
lea eax, [esp + 0x24]
push eax
call esi
lea ecx, [esp + 0x20]
push 0x2c
push ecx
call fcn.004128a4
add esp, 8
xor ecx, ecx
test eax, eax
je 0x40fd66
mov byte [eax], cl
add eax, 1
push eax
call fcn.00413006
add esp, 4
mov ecx, eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x44]
push ecx
lea ecx, [esp + 0x24]
push ecx
push eax
call edx
mov eax, dword [esp + 0x1c]
push 0x104
push 0x449480
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push 0x449480
push eax
call edx
xor ecx, ecx
test eax, eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
setge cl
push eax
mov eax, dword [edx + 8]
mov esi, ecx
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x128]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004121f9
add esp, 0x11c
ret
Function at 0x410090
Capabilities:
Check os version

Disassembly:
sub esp, 0xa4
mov eax, dword [0x42c2e4]
xor eax, esp
mov dword [esp + 0xa0], eax
cmp byte [0x44968b], 0
jne 0x41016e
lea eax, [esp]
push eax
push str.IsWow64Process
push str.Kernel32
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.0040f630
push 0x9c
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00412210
add esp, 0x18
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x410113
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.004121f9
add esp, 0xa4
ret
cmp dword [esp + 0x14], 2
push esi
jne 0x410166
cmp dword [esp + 0xc], 5
jne 0x410166
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x41015a
mov esi, dword [esp + 4]
test esi, esi
je 0x410166
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 4], 0
je 0x410166
cmp byte [esp + 0xa2], 1
jmp 0x41015d
cmp eax, 1
jne 0x410166
mov byte [0x44968a], 1
mov byte [0x44968b], 1
pop esi
mov ecx, dword [esp + 0xa0]
movzx eax, byte [0x44968a]
xor ecx, esp
call fcn.004121f9
add esp, 0xa4
ret

Function at 0x410190
Capabilities:
Check os version

Disassembly:
sub esp, 0xa4
mov eax, dword [0x42c2e4]
xor eax, esp
mov dword [esp + 0xa0], eax
cmp byte [0x44968d], 0
jne 0x41026a
lea eax, [esp]
push eax
push str.IsWow64Process
push str.Kernel32
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.0040f630
push 0x9c
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00412210
add esp, 0x18
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x410213
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.004121f9
add esp, 0xa4
ret
mov eax, 2
cmp dword [esp + 0x14], eax
jne 0x410263
cmp dword [esp + 8], 5
jne 0x410263
cmp dword [esp + 0xc], eax
jne 0x410263
push esi
mov esi, dword [esp + 4]
test esi, esi
je 0x410262
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 4], 0
je 0x41025b
cmp byte [esp + 0xa2], 3
jne 0x410262
mov byte [0x44968c], 1
pop esi
mov byte [0x44968d], 1
mov ecx, dword [esp + 0xa0]
movzx eax, byte [0x44968c]
xor ecx, esp
call fcn.004121f9
add esp, 0xa4
ret
Function at 0x410320
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x42539b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42c2e4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x2c]
test cl, 1
je 0x41035a
mov edi, 0x40000000
mov ebx, 2
jmp 0x410375
test cl, 2
je 0x41036b
mov edi, 0xc0000000
mov ebx, 3
jmp 0x410375
mov edi, 0x80000000
mov ebx, 1
mov eax, ecx
and eax, 0x100
mov esi, eax
neg esi
sbb esi, esi
add esi, 3
test ecx, 0x200
je 0x410399
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
mov esi, eax
mov ebp, dword [esp + 0x28]
push ebp
mov byte [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4103b7
test al, 0x10
jne 0x4103b7
mov byte [esp + 0x2c], 1
push 0
push 0x80
push esi
push 0
push ebx
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4103f2
call fcn.004142a7
mov dword [eax], 0xd
or eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x110
call fcn.00412bcf
add esp, 4
mov dword [esp + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x20], ebx
cmp eax, ebx
je 0x410425
mov dword [eax], ebx
mov dword [eax + 0x108], ebx
mov byte [eax + 0x10c], bl
mov byte [eax + 0x10d], bl
mov esi, eax
jmp 0x410427
xor esi, esi
mov dword [esp + 0x20], 0xffffffff
cmp byte [esp + 0x2c], 0
jne 0x41043d
mov byte [esi + 0x10c], 1
push 0x104
push ebp
lea eax, [esi + 4]
push eax
mov dword [esi], edi
mov dword [esi + 0x108], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x449698
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x410471
mov ecx, dword [0x44979c]
mov dword [esi + 0x108], ecx
mov edx, dword [esi + 0x108]
push ebx
push ebx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x410bb0
Capabilities:
Delete file
Get common file path
Get file size
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x42c2e4]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x21c]
test eax, eax
push ebx
mov ebx, dword [esp + 0x21c]
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
je 0x410be6
mov dword [eax], 0
lea eax, [esp + 0x11c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x426cc0
lea edx, [esp + 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
jmp 0x410c20
lea eax, [esp + 0x18]
push eax
push ebx
mov ecx, edi
call fcn.00410b20
test eax, eax
jne 0x410c40
push 0x3e8
call ebp
add esi, 1
cmp esi, 5
jl 0x410c20
cmp esi, 5
je 0x410d08
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor edi, edi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea edx, [esp + 0x30]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x410c80
push 0x3e8
call ebp
add edi, 1
cmp edi, 5
jl 0x410c51
cmp edi, 5
jne 0x410c8f
lea eax, [esp + 0x18]
push eax
jmp 0x410d0d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x410d01
test edi, edi
je 0x410d01
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x410ce1
push 0
lea ecx, [esp + 0x18]
push ecx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410ce1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x410d13
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x410cfd
mov dword [eax], edi
mov eax, ebx
jmp 0x410d15
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004121f9
add esp, 0x214
ret 8