joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4058b4
Capabilities:
Enumerate process modules

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x41f014]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
push edi
push 5
pop ecx
push 0x1f4
lea eax, [ebp - 0x64]
push 0
mov esi, str._unknown_
lea edi, [ebp - 0x78]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00407490
add esp, 0xc
push dword [ebp + 0x19c]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x405930
lea eax, [ebp - 0x80]
push eax
push 4
lea eax, [ebp - 0x7c]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x405930
push 0x104
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x78]
push eax
call fcn.00406955
pop ecx
mov ecx, dword [ebp + 0x190]
pop edi
xor ecx, ebp
pop esi
call fcn.004062b8
add ebp, 0x194
leave
ret

Function at 0x405958
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8004
call fcn.00413bc0
lea eax, [ebp - 4]
push eax
push 0x8000
lea eax, [ebp - 0x8004]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x405983
or eax, 0xffffffff
leave
ret
push esi
mov esi, dword [ebp - 4]
shr esi, 2
push edi
push 0
pop edi
je 0x4059ba
mov eax, dword [ebp + edi*4 - 0x8004]
test eax, eax
je 0x4059b5
push eax
call fcn.004058b4
test eax, eax
pop ecx
je 0x4059b5
push dword [ebp + 8]
push eax
call fcn.004065b5
test eax, eax
pop ecx
pop ecx
je 0x4059c1
inc edi
cmp edi, esi
jb 0x405990
or eax, 0xffffffff
pop edi
pop esi
leave
ret
mov eax, edi
jmp 0x4059bd

Function at 0x4059c5
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x41f014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4059fb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004062b8
leave
ret
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x405a21
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x4059ed
lea eax, [ebp - 0x20c]
push str.af_map.exe
push eax
call fcn.00407a8c
test eax, eax
pop ecx
pop ecx
je 0x405a4e
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x405a21
xor edi, edi
inc edi
jmp 0x405a16
push dword [ebp - 0x228]
push edi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x4059ed
Function at 0x405a76
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x41f014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
or esi, 0xffffffff
cmp edi, esi
jne 0x405aa1
mov eax, esi
jmp 0x405af7
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x405ac7
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405a9d
lea eax, [ebp - 0x20c]
push str.af_map.exe
push eax
call fcn.00407a8c
test eax, eax
pop ecx
pop ecx
je 0x405af1
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x405ac7
jmp 0x405abe
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004062b8
leave
ret

Function at 0x405b05
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x41f014]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
push ebx
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
jne 0x405b4b
or eax, eax
mov ecx, dword [ebp + 0x1b0]
xor ecx, ebp
pop ebx
call fcn.004062b8
add ebp, 0x1b4
leave
ret
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
mov dword [ebp - 0x7c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x405b6f
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x405b35
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push edi
lea eax, [ebp - 0x58]
push str.nutsrv4.exe
push eax
call fcn.00407a8c
test eax, eax
pop ecx
pop ecx
jne 0x405bb9
cmp dword [ebp - 0x64], 0xffffffff
je 0x405ba0
push dword [ebp - 0x64]
push ebx
push 0x410
call esi
test eax, eax
jne 0x405bb9
push dword [ebp - 0x74]
push ebx
push 1
call esi
mov edi, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x405b77
pop edi
or ebx, 0xffffffff
pop esi
jmp 0x405b62
Function at 0x405bd0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x41f014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x405bfb
mov eax, edi
jmp 0x405c5c
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x405c21
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405bf7
mov eax, dword [ebp - 0x218]
cmp eax, dword [ebp + 8]
jne 0x405c43
lea eax, [ebp - 0x20c]
push str.nutcsrv4.exe
push eax
call fcn.00407a8c
test eax, eax
pop ecx
pop ecx
je 0x405c56
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x405c21
jmp 0x405c18
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004062b8
leave
ret

Function at 0x405c6a
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0xfc4]
mov eax, 0x1044
call fcn.00413bc0
mov eax, dword [0x41f014]
xor eax, ebp
mov dword [ebp + 0xfc0], eax
lea eax, [ebp - 0x48]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
jne 0x405c9b
xor eax, eax
jmp 0x405d10
lea ecx, [ebp + 0x7c0]
push ecx
push eax
push dword [ebp - 0x48]
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x405c97
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x41ce64
lea eax, [ebp + 0x7c0]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x405c97
push 0x34
push dword [ebp - 0x44]
lea eax, [ebp - 0x80]
push eax
call fcn.004081b0
mov eax, dword [ebp - 0x74]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [ebp - 0x78]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push str._d._d._d._d
lea eax, [ebp - 0x40]
push 0x800
push eax
call fcn.00406a82
lea eax, [ebp - 0x40]
push eax
call fcn.00406955
add esp, 0x2c
mov ecx, dword [ebp + 0xfc0]
xor ecx, ebp
call fcn.004062b8
add ebp, 0xfc4
leave
ret

Function at 0x405f03
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x405f64
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x405f64
mov eax, dword [ebp - 0xc]
push 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push 0
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
leave
ret
Function at 0x4062b8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f014]
jne 0x4062c2
repz ret
jmp fcn.00408deb

Function at 0x4125c7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040aa0e
xor ebx, ebx
cmp dword [0x420de4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41269c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x412607
xor eax, eax
jmp 0x412760
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x412600
push eax
call fcn.0040a9ab
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x420de4], eax
call esi
push eax
call fcn.0040a9ab
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x420de8], eax
call esi
push eax
call fcn.0040a9ab
mov dword [0x420dec], eax
lea eax, [ebp - 8]
push eax
call fcn.00406c66
test eax, eax
pop ecx
pop ecx
je 0x41266a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00409c80
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41269c
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040a9ab
cmp eax, ebx
pop ecx
mov dword [0x420df4], eax
je 0x41269c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040a9ab
pop ecx
mov dword [0x420df0], eax
mov eax, dword [0x420df0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x412715
cmp dword [0x420df4], esi
je 0x412715
push eax
call fcn.0040aa17
pop ecx
call eax
cmp eax, ebx
je 0x4126e2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x420df4]
call fcn.0040aa17
pop ecx
call eax
test eax, eax
je 0x4126e2
test byte [ebp - 0x18], 1
jne 0x412715
lea eax, [ebp - 0xc]
push eax
call fcn.00406c9d
test eax, eax
pop ecx
je 0x4126fd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00409c80
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41270c
or dword [ebp + 0x10], 0x200000
jmp 0x412746
or dword [ebp + 0x10], 0x40000
jmp 0x412746
mov eax, dword [0x420de8]
cmp eax, esi
je 0x412746
push eax
call fcn.0040aa17
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x412746
mov eax, dword [0x420dec]
cmp eax, esi
je 0x412746
push dword [ebp - 4]
push eax
call fcn.0040aa17
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x420de4]
call fcn.0040aa17
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x8188dd
Capabilities:
Encrypt data using aes

Disassembly:
cmp al, 0x39
push cx
lea esp, [esp + 2]
jne 0x817ee7
push 0x3f
jmp 0x817efd
push dword [esp]
lea esp, [esp + 8]
jmp 0x818861

Function at 0x8188e9
Capabilities:
Encrypt data using speck

Disassembly:
mov edi, dword [ebp + 0xc]
jmp 0x7e53c6
pushfd
jmp 0x818e4f
call fcn.007e5390
or al, 0x9f
out 0x11, al
invalid
pushal
jmp 0x818e37
jmp 0x818d91
lea esp, [esp + 4]
jmp 0x818924
push 0x3f
jmp 0x817fe7
cmp dl, 0x2f
jne 0x818070
pushfd
lea esp, [esp + 4]
jmp 0x81890e
push di
lea esp, [esp + 2]
cmp dl, 0x39
call fcn.00818c2f
shl eax, 0x10
lea esp, [esp + 0x18]
cmp dword [ebp + 0xc], 2
jmp 0x818df3
push eax
mov eax, ecx
add eax, 1
jmp 0x818ddd
movzx edx, byte [eax]
pop eax
jmp 0x818e69
jb 0x7e53dc
mov edx, edi
jmp 0x818dac
movzx ecx, byte [ecx + 2]
stc
jmp 0x818e48
lea esp, [esp + 0x20]
cmp dword [ebp + 0xc], 3
jne 0x7e53b0
clc
jmp 0x818e1f
or eax, ecx
jmp 0x7e53b0
lea esp, [esp + 4]
push ebx
pushal
neg dh
jmp 0x818e89
shl edx, 8
or eax, edx
jmp 0x7e53dc
mov dword [esp + 0x18], edi
and edx, 0xf03915ff
jmp 0x818eb6
mov dword [esp + 0x1c], esi
lea edx, [eax + edx]
jmp 0x818e73
mov ecx, eax
lea esp, [esp + 0x18]
push 0x3f
jmp 0x81a0b1
and edi, edx
lea esp, [esp + 0x10]
jmp 0x7e53c6
lea esp, [esp + 3]
shr edi, 6
cmc
cmc
jmp 0x818efd
lea ebp, [esp + 0x68]
push edx
mov dword [esp + 4], eax
lea esp, [esp + 4]
popal
sub esp, 0x13
jmp 0x818f22
rcr di, 8
rcl edi, 1
pushal
mov ch, byte [esp]
mov esi, dword [esp]
jmp 0x818f50
lea esp, [esp + 2]
lea esp, [esp + 4]
cmp dword [ebp + 0xc], 2
jb 0x7e5387
jae 0x818f99
shr esi, 0xc
and ecx, edx
and esi, edx
sub esp, 2
jmp 0x819035
mov esi, eax
shr ecx, 0x12
mov edx, dword [esp]
jmp 0x81908d

Function at 0x8ee552
Capabilities:
Parse pe header

Disassembly:
mov word [esp], ax
mov word [esp], dx
push dword [esp]
mov dword [esp + 4], ecx
jmp 0x8ee5a8
mov dword [esp], edx

Function at 0x8ee58d
Capabilities:
Parse pe header

Disassembly:
jmp 0x8ee5d5
mov byte [esp + 1], dh
call fcn.008ee58f

Function at 0x8ee58f
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
pop dword [esp]
lea esp, [esp + 1]
lea esp, [esp + 3]
push esp
push ecx
jmp 0x8ee5bf
Function at 0x4d7bc8
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x58
call fcn.00403800
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret

Function at 0x4dd204
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4dd31d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea edx, [ebp - 0x14]
mov eax, dword [0x4e44dc]
mov eax, dword [eax]
call fcn.00463bb8
mov eax, dword [ebp - 0x14]
call fcn.00405610
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x4dd307
push 2
push 0
push 0xfffffffffffffff6
push esi
call sub.kernel32.dll_SetFilePointer_1
lea eax, [ebp - 0xf]
xor ecx, ecx
mov edx, 0xb
call fcn.00403800
push 0
lea eax, [ebp - 4]
push eax
push 0xa
lea eax, [ebp - 0xf]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
mov edx, 0x4dd32c
lea eax, [ebp - 0xf]
call fcn.0040a51c
test eax, eax
jne 0x4dd2bc
push 2
push 0
push 0xfffffffffffffff2
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 4]
push eax
push 4
push 0x4e8004
push esi
call sub.kernel32.dll_ReadFile_1
mov bl, 1
jmp 0x4dd301
mov edx, 0x4dd338
lea eax, [ebp - 0xf]
call fcn.0040a51c
test eax, eax
jne 0x4dd301
push 2
push 0
push 0xfffffffffffffff2
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 4]
push eax
push 4
push 0x4e8004
push esi
call sub.kernel32.dll_ReadFile_1
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
sub eax, dword [0x4e8004]
mov dword [0x4e8004], eax
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dd324
lea eax, [ebp - 0x14]
call fcn.00405140
ret
Function at 0x401750
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0x210
mov eax, dword [0x40701c]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
push edi
mov edi, ecx
xor ebp, ebp
cmp dword [edi + 0x468], ebp
mov eax, 0x40539c
jne 0x4017a1
mov eax, dword [edi + 0x480]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi + 0x480]
pop edi
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0040413a
add esp, 0x210
ret
cmp dword [edi + 4], ebp
je 0x4017bd
push 0x40539c
lea ecx, [edi + 0x152]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0xc], esi
jne 0x4017ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401870
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401806
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40186f
push 0
push ebx
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x401824
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40186f
push ebx
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
lea edx, [ebx - 4]
mov dword [edi + 0x470], esi
call fcn.004014b0
cmp eax, dword [esi + ebx - 4]
je 0x401852
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40186b
push edi
call fcn.00401f00
test eax, eax
je 0x401865
call fcn.004018c0
test eax, eax
jne 0x40186b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x10]
pop ebx
mov eax, dword [edi + 0x470]
test eax, eax
je 0x40188b
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [edi + 0x470], 0
test ebp, ebp
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x401898
push ebp
call edi
cmp esi, 0xffffffff
je 0x4018a0
push esi
call edi
mov ecx, dword [esp + 0x218]
pop esi
pop edi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0040413a
add esp, 0x210
ret
Function at 0x4020d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x404af6
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x40701c]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov eax, dword [0x40701c]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
push 0x206
lea eax, [esp + 0x16]
push 0
mov dword [esp + 0x10], 0
push eax
mov word [esp + 0x1c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x1a
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x402150
push esi
mov ecx, 0x405374
call fcn.00403040
jmp 0x4021e3
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0x14]
call fcn.00403040
push eax
lea eax, [esp + 0x10]
push eax
mov ebx, 0x4053f0
mov dword [esp + 0x22c], 0
call fcn.004031c0
push eax
push esi
mov ebx, 0x4053e0
mov byte [esp + 0x234], 1
call fcn.004031c0
mov byte [esp + 0x234], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4021b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x224], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4021e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040413a
add esp, 0x220
ret
Function at 0x402210
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x404af6
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x40701c]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov eax, dword [0x40701c]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
push 0x206
lea eax, [esp + 0x16]
push 0
mov dword [esp + 0x10], 0
push eax
mov word [esp + 0x1c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x1a
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x402290
push esi
mov ecx, 0x405374
call fcn.00403040
jmp 0x402323
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0x14]
call fcn.00403040
push eax
lea eax, [esp + 0x10]
push eax
mov ebx, 0x4053f0
mov dword [esp + 0x22c], 0
call fcn.004031c0
push eax
push esi
mov ebx, 0x405414
mov byte [esp + 0x234], 1
call fcn.004031c0
mov byte [esp + 0x234], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4022f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x224], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402323
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040413a
add esp, 0x220
ret
Function at 0x4023e0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x404aab
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x40701c]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov eax, dword [0x40701c]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
xor esi, esi
push 0x206
lea eax, [esp + 0x12]
push esi
push eax
mov word [esp + 0x18], si
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
push 0x1a
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4024a7
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0x10]
call fcn.00403040
push 0x1a
push 0x405428
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x22c], esi
call fcn.00403890
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ecx
call esi
test eax, eax
jne 0x4024ab
mov dword [esp + 0x220], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4024a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x402506
push 6
push 0x405460
lea ecx, [esp + 0x10]
push ecx
call fcn.00403890
mov edx, dword [esp + 8]
push edx
call esi
or edx, 0xffffffff
mov dword [esp + 0x220], 0xffffffff
test eax, eax
mov eax, dword [esp + 8]
jne 0x4024e8
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40249b
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402501
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0040413a
add esp, 0x21c
ret

Function at 0x402530
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x40701c]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x114]
sbb eax, eax
xor ecx, esp
add eax, 1
call fcn.0040413a
add esp, 0x118
ret
Function at 0x403d74
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x40701c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00403cb3
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x403dc3
cmp dword [ebp - 0x1c], 5
jb 0x403ddb
jmp 0x403dd7
cmp dword [ebp - 0x10], 1
jne 0x403ddb
cmp dword [ebp - 0x1c], 4
ja 0x403dd7
jne 0x403ddb
cmp dword [ebp - 0x18], 0
jbe 0x403ddb
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x40526c
call fcn.00401100
test eax, eax
jge 0x403dfc
mov byte [0x407560], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040413a
add ebp, 0x78
leave
ret

Function at 0x40413a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40701c]
jne 0x404144
repz ret
jmp fcn.0040453e