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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2aa8
call fcn.00418190
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x208
mov edi, ecx
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00411530
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0xd
lea eax, [ebp - 0x210]
push str.iphlpapi.dll
push eax
call fcn.0042047d
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x2aa0], esi
test esi, esi
jne 0x40f38c
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f66
mov esp, ebp
pop ebp
ret
push str.GetAdaptersInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f47f
lea edx, [ebp - 0x2aa4]
push edx
lea ecx, [ebp - 0x2a90]
push ecx
mov dword [ebp - 0x2aa4], 0x2880
call eax
test eax, eax
jne 0x40f47f
mov eax, edi
lea edx, [ebp - 0x2a98]
sub eax, edx
lea esi, [ebp - 0x2a90]
mov dword [ebp - 0x2a9c], 3
mov dword [ebp - 0x2aa8], eax
push ebx
lea ecx, [esi + 8]
call fcn.0040f4e0
xor ecx, ecx
mov dword [ebp - 0x2a98], ecx
mov word [ebp - 0x2a94], cx
lea ebx, [ebx]
mov ebx, dword [ebp - 0x2aa8]
lea edx, [ebp + ecx - 0x2a98]
mov bl, byte [ebx + edx]
cmp bl, byte [edx]
jne 0x40f41c
inc ecx
cmp ecx, 6
jb 0x40f400
jmp 0x40f42d
cmp dword [esi + 0x1a0], 6
jne 0x40f46e
cmp dword [ebp - 0x2a9c], eax
jle 0x40f46e
movzx ecx, byte [esi + 0x194]
mov byte [edi], cl
movzx edx, byte [esi + 0x195]
mov byte [edi + 1], dl
movzx ecx, byte [esi + 0x196]
mov byte [edi + 2], cl
movzx edx, byte [esi + 0x197]
mov byte [edi + 3], dl
movzx ecx, byte [esi + 0x198]
mov byte [edi + 4], cl
movzx edx, byte [esi + 0x199]
mov byte [edi + 5], dl
mov dword [ebp - 0x2a9c], eax
mov esi, dword [esi]
test esi, esi
jne 0x40f3e3
mov esi, dword [ebp - 0x2aa0]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
lea ecx, [ebp - 0x2a98]
mov dword [ebp - 0x2a98], eax
mov word [ebp - 0x2a94], ax
sub edi, ecx
lea ecx, [ecx]
lea ecx, [ebp + eax - 0x2a98]
mov dl, byte [edi + ecx]
cmp dl, byte [ecx]
jne 0x40f4cd
inc eax
cmp eax, 6
jb 0x40f4a0
mov al, 1
xor ecx, ecx
test al, al
sete al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00410f66
mov esp, ebp
pop ebp
ret
xor al, al
jmp 0x40f4b6
Function at 0x40f4e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x120]
push eax
xor ebx, ebx
push 0x20019
push ebx
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
mov esi, ecx
mov dword [ebp - 0x10c], 3
mov dword [ebp - 0x11c], 0x104
mov dword [ebp - 0x118], 1
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x110], ebx
call edi
test eax, eax
jne 0x40f6b1
push esi
push str._sConnection
push 0xffffffffffffffff
lea ecx, [ebp - 0x108]
push 0x103
push ecx
call fcn.0041f2b7
mov ecx, dword [ebp - 0x120]
add esp, 0x14
lea edx, [ebp - 0x114]
push edx
push 0x20019
push ebx
lea eax, [ebp - 0x108]
push eax
push ecx
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40f6a8
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, 4
lea edx, [ebp - 0x11c]
push edx
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x118]
push ecx
push ebx
push str.MediaSubType
push edx
call esi
test eax, eax
jne 0x40f69f
push 0x104
lea eax, [ebp - 0x108]
push ebx
push eax
mov dword [ebp - 0x118], 1
mov dword [ebp - 0x11c], 0x103
call fcn.00411530
add esp, 0xc
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, dword [ebp - 0x114]
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x118]
push eax
push ebx
push str.PnpInstanceID
push ecx
call esi
test eax, eax
jne 0x40f69f
mov esi, 1
cmp dword [ebp - 0x110], esi
jne 0x40f689
push 3
lea edx, [ebp - 0x108]
push 0x430cd0
push edx
call fcn.0041e2a8
add esp, 0xc
test eax, eax
jne 0x40f65b
mov dword [ebp - 0x10c], ebx
jmp 0x40f69f
cmp dword [ebp - 0x110], esi
jne 0x40f689
push 3
lea eax, [ebp - 0x108]
push 0x430cd0
push eax
call fcn.0041e2a8
add esp, 0xc
test eax, eax
je 0x40f689
mov dword [ebp - 0x10c], 2
jmp 0x40f69f
xor ecx, ecx
cmp dword [ebp - 0x110], 2
setne cl
lea ecx, [ecx + ecx + 1]
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x114]
push edx
call edi
mov eax, dword [ebp - 0x120]
push eax
call edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410f66
mov esp, ebp
pop ebp
ret
Function at 0x40f6d0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40f739
push esi
call ebx
test eax, eax
jne 0x40f739
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00411530
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CheckUpdate:_Delete_profile_faile__Error_Num__d
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.004110eb
add esp, 0x10
mov ecx, esi
call fcn.0040f800
push esi
mov edi, eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.00410f66
mov esp, ebp
pop ebp
ret

Function at 0x40f760
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cbc8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x435080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.MUTEX_OVERWRITEINSTALL
push 1
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40f7d2
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
test edi, edi
je 0x40f7bd
push edi
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp + 8]
call fcn.0040f930
mov esi, eax
test edi, edi
je 0x40f7e7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40f930
Capabilities:
Check if file exists
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18a4
call fcn.00418190
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x492]
push ecx
mov word [ebp - 0x494], ax
call fcn.00411530
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x10a2]
push eax
mov word [ebp - 0x10a4], dx
call fcn.00411530
xor ecx, ecx
push 0x7e
push ecx
lea edx, [ebp - 0x82]
push edx
mov word [ebp - 0x84], cx
call fcn.00411530
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x69a]
push ecx
mov word [ebp - 0x69c], ax
call fcn.00411530
add esp, 0x30
push esi
xor ebx, ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f9db
mov ecx, esi
call fcn.0040f800
test eax, eax
jne 0x40f9db
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f66
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
push 0x40
lea edx, [ebp - 0x84]
push edx
push 0
push str.version
push str.AppInfo
call edi
test eax, eax
je 0x40fb53
push esi
push 0x400
lea eax, [ebp - 0x10a4]
push eax
push 0
push 0x430e8c
push str.AppInfo
call edi
test eax, eax
je 0x40fb53
push 0x104
lea ecx, [esi + 0x208]
push ecx
lea edx, [ebp - 0x494]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push str.Setup.exe
lea eax, [ebp - 0x494]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
push 0x104
lea ecx, [ebp - 0x69c]
push ecx
push 0
push str.general
push str.AppInfo
call edi
test eax, eax
je 0x40fb53
lea edx, [ebp - 0x494]
lea ecx, [ebp - 0x69c]
lea edi, [ebp - 0x10a4]
call fcn.0040fe80
mov ebx, eax
test ebx, ebx
je 0x40fb53
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x18a2]
push eax
mov word [ebp - 0x18a4], dx
call fcn.00411530
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x8a2]
push edx
mov word [ebp - 0x8a4], cx
call fcn.00411530
push 0x104
lea edi, [ebp - 0x8a4]
call fcn.00402cd0
mov eax, edi
push eax
push str.http:__t.sogou.com_update_platform_done.php_v_sappnamesogoudownload_checkupdatestate1
lea ecx, [ebp - 0x18a4]
push 0x3ff
push ecx
call fcn.004110eb
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x28a]
push eax
mov word [ebp - 0x28c], dx
call fcn.00411530
lea ecx, [ebp - 0x28c]
push ecx
lea edx, [ebp - 0x18a4]
push edx
call fcn.00410cc0
add esp, 0x40
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fb53
lea ecx, [ebp - 0x28c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40fb53
lea edx, [ebp - 0x28c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x494]
push eax
call edi
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00410f66
mov esp, ebp
pop ebp
ret
Function at 0x40fb80
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x210], eax
test eax, eax
je 0x40fd7c
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
test eax, eax
je 0x40fd7c
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fc8c
push 0x103
lea ecx, [ebp - 0x107]
push 0
push ecx
mov byte [ebp - 0x108], 0
call fcn.00411530
add esp, 0xc
test ebx, ebx
jne 0x40fbf4
xor eax, eax
jmp 0x40fc1d
push ebx
call esi
inc eax
cmp eax, 0x3fffffff
jle 0x40fc03
xor eax, eax
jmp 0x40fc1d
lea edi, [eax + eax]
mov eax, edi
call fcn.0041a2d0
mov esi, esp
mov edx, 3
mov ecx, edi
mov eax, ebx
call fcn.00407d00
lea edi, [ebp - 0x108]
mov ecx, eax
call fcn.004107f0
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jle 0x40fc42
xor eax, eax
jmp 0x40fc5b
lea eax, [edi + edi]
call fcn.0041a2d0
mov esi, esp
push 3
mov edx, edi
lea eax, [ebp - 0x108]
call fcn.00405e50
mov ecx, dword [ebp - 0x210]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40fc77
mov eax, 1
jmp 0x40fd7e
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40fd7c
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 0x214]
push 0
push ebx
push edx
call fcn.00410ba0
add esp, 0xc
test eax, eax
je 0x40fd7c
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call fcn.00411530
add esp, 0xc
test ebx, ebx
jne 0x40fccb
xor eax, eax
jmp 0x40fcf4
push ebx
call esi
inc eax
cmp eax, 0x3fffffff
jle 0x40fcda
xor eax, eax
jmp 0x40fcf4
lea edi, [eax + eax]
mov eax, edi
call fcn.0041a2d0
mov esi, esp
mov edx, 3
mov ecx, edi
mov eax, ebx
call fcn.00407d00
lea edi, [ebp - 0x20c]
mov ecx, eax
call fcn.004107f0
mov ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jle 0x40fd19
xor eax, eax
jmp 0x40fd32
lea eax, [edi + edi]
call fcn.0041a2d0
mov esi, esp
push 3
mov edx, edi
lea eax, [ebp - 0x20c]
call fcn.00405e50
mov esi, dword [ebp - 0x210]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40fc6d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x40fd75
lea edi, [eax + eax]
mov eax, edi
call fcn.0041a2d0
mov eax, dword [ebp - 0x210]
mov esi, esp
mov edx, 3
mov ecx, edi
call fcn.00407d00
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
lea esp, [ebp - 0x21c]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f66
mov esp, ebp
pop ebp
ret
Function at 0x40fda0
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x38
xor edi, edi
lea eax, [ebp - 0x150]
push edi
push eax
mov dword [ebp - 0x154], 0x3c
call fcn.00411530
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x144], esi
mov dword [ebp - 0x140], str._Update
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x150], 0x40
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x40fe29
cmp dword [ebp - 0x114], 6
jb 0x40fe29
mov dword [ebp - 0x148], str.runas
lea edx, [ebp - 0x154]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40fe60
mov eax, dword [ebp - 0x11c]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40fe53
lea edi, [eax + 1]
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.00410f66
mov esp, ebp
pop ebp
ret

Function at 0x40fe80
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
push 0x206
mov ebx, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov esi, edx
mov word [ebp - 0x20c], ax
call fcn.00411530
add esp, 0xc
test esi, esi
jne 0x40fee1
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.TempExe.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x40feef
push esi
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push ebx
push edi
lea ebx, [ebp - 0x20c]
call fcn.0040fb80
add esp, 8
test eax, eax
jne 0x40ff15
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f66
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ff03
lea esi, [ebp - 0x20c]
call fcn.0040fda0
mov esi, eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410f66
mov esp, ebp
pop ebp
ret
Function at 0x4107f0
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4a0
mov eax, dword [0x435080]
xor eax, esp
mov dword [esp + 0x49c], eax
push ebx
push esi
xor eax, eax
xor ebx, ebx
push ebx
mov dword [edi], eax
push ebx
mov dword [edi + 4], eax
push 3
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
push ebx
mov dword [edi + 0x10], eax
push 1
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
push 0x80000000
mov dword [edi + 0x1c], eax
push ecx
mov byte [edi + 0x20], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [esp + 0xc], esi
cmp esi, 0xffffffff
jne 0x41085e
xor al, al
pop esi
pop ebx
mov ecx, dword [esp + 0x49c]
xor ecx, esp
call fcn.00410f66
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [esp + 0xc]
push eax
push 0x400
lea ecx, [esp + 0xac]
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov dword [esp + 0x24], 0x67452301
mov dword [esp + 0x28], 0xefcdab89
mov dword [esp + 0x2c], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
call ebx
test eax, eax
je 0x4108dd
mov eax, dword [esp + 8]
test eax, eax
je 0x4108dd
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0x14]
call fcn.0040ff70
add esp, 4
push 0
lea eax, [esp + 0xc]
push eax
push 0x400
lea ecx, [esp + 0xac]
push ecx
push esi
call ebx
test eax, eax
jne 0x4108a6
lea esi, [esp + 0x10]
lea ebx, [esp + 0x6c]
call fcn.00410030
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea ebx, [esp + 0x7c]
jmp 0x410900
movzx eax, byte [esp + esi + 0x6c]
push eax
push str._02x
push 2
push ebx
call fcn.0041f661
inc esi
add esp, 0x10
add ebx, 2
cmp esi, 0x10
jl 0x410900
push 0x20
lea ecx, [esp + 0x80]
push ecx
push edi
call fcn.00417890
mov ecx, dword [esp + 0x4b0]
add esp, 0xc
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.00410f66
mov esp, ebp
pop ebp
ret

Function at 0x410f66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x435080]
jne 0x410f70
repz ret
jmp fcn.0041179e
Function at 0x417518
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x435080]
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.00413ad1
and dword [ebp - 0x14], 0
cmp dword [0x4378a8], 0
mov dword [ebp - 0x18], eax
jne 0x4175cb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x417673
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x417673
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4378a8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4378ac], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4378b0], eax
call edi
push eax
call esi
mov dword [0x4378b8], eax
test eax, eax
je 0x4175cb
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4378b4], eax
mov eax, dword [0x4378b4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x417624
cmp dword [0x4378b8], ecx
je 0x417624
push eax
call esi
push dword [0x4378b8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x417624
test ebx, ebx
je 0x417624
call edi
test eax, eax
je 0x41761b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41761b
test byte [ebp - 8], 1
jne 0x417624
or dword [ebp + 0x10], 0x200000
jmp 0x417657
mov eax, dword [0x4378ac]
cmp eax, dword [ebp - 0x18]
je 0x417657
push eax
call esi
test eax, eax
je 0x417657
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x417657
mov eax, dword [0x4378b0]
cmp eax, dword [ebp - 0x18]
je 0x417657
push eax
call esi
test eax, eax
je 0x417657
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4378a8]
call esi
test eax, eax
je 0x417673
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x417675
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410f66
leave
ret
Function at 0x1003d2e
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100d03c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x104
xor edi, edi
cmp dword [ebp + 0xc], esi
jge 0x1003d5c
mov edi, 0x80070057
jmp 0x1003dc8
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
ja 0x1003da8
test eax, eax
je 0x1003da8
push ebx
push 0
push 0x1001228
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1003dc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x1003da3
and edi, 0xffff
or edi, 0x80070000
push edi
push 0x71
jmp 0x1003dc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x1003dc0
and edi, 0xffff
or edi, 0x80070000
push edi
push 0x6f
call fcn.01003bed
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100480c
leave
ret 8
Function at 0x10047fd
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x100bf78
call fcn.01004b14
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x100e15c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1004612
cmp eax, esi
jne 0x1004605
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1004615
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10045ec
xor esi, esi
inc esi
mov eax, dword [0x100e158]
cmp eax, esi
jne 0x1004628
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1004663
mov eax, dword [0x100e158]
test eax, eax
jne 0x100465d
mov dword [0x100e158], esi
push 0x10011f0
push 0x10011e4
call fcn.01004569
pop ecx
pop ecx
test eax, eax
je 0x1004663
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x100472d
mov dword [0x100d998], esi
mov eax, dword [0x100e158]
cmp eax, esi
jne 0x1004687
push 0x10011e0
push 0x10011d8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100e158], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1004694
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100e168], ebx
je 0x10046b5
push 0x100e168
call fcn.01004a89
pop ecx
test eax, eax
je 0x10046b5
push ebx
push 2
push ebx
call dword [0x100e168]
push dword [0x100d980]
push dword [0x100d984]
push dword [0x100d97c]
call fcn.01004145
add esp, 0xc
mov dword [0x100d994], eax
cmp dword [0x100d988], ebx
jne 0x1004713
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x100d998], ebx
jne 0x1004721
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100d994]
call fcn.01004b59
ret
call fcn.01004c59
jmp 0x10045ca
Function at 0x100b99a
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
xor eax, eax
push ebx
mov dword [ecx], eax
mov ecx, dword [ebp + 0x14]
push esi
mov esi, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov dword [ecx], eax
lea ecx, [ebp - 4]
push ecx
push eax
push 1
push dword [ebp + 0xc]
mov ebx, 0x80004005
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
test eax, eax
jne 0x100ba06
mov eax, dword [0x100d05c]
cmp eax, 0x100d05c
je 0x100bac7
test byte [eax + 0x1c], 4
je 0x100bac7
push ebx
push 0x1003998
push 0x1003934
push 0x38
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100535c
jmp 0x100bac7
mov eax, dword [ebp - 4]
push edi
add eax, eax
push eax
call fcn.0100b551
mov edi, eax
test edi, edi
jne 0x100ba48
mov eax, dword [0x100d05c]
cmp eax, 0x100d05c
je 0x100ba41
test byte [eax + 0x1c], 4
je 0x100ba41
push 0x1003984
push 0x1003934
push 0x39
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01005608
mov ebx, 0x8007000e
jmp 0x100babc
lea eax, [ebp - 4]
push eax
push edi
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x100ba87
mov eax, dword [0x100d05c]
cmp eax, 0x100d05c
je 0x100babc
test byte [eax + 0x1c], 4
je 0x100babc
push ebx
push 0x1003998
push 0x1003934
push 0x3a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100535c
jmp 0x100babc
xor ebx, ebx
xor ecx, ecx
cmp dword [ebp - 4], ebx
jbe 0x100baad
movzx eax, word [edi + ecx*2]
cmp ax, 0xd
je 0x100baa0
cmp ax, 0xa
jne 0x100baa7
push 0x20
pop eax
mov word [edi + ecx*2], ax
inc ecx
cmp ecx, dword [ebp - 4]
jb 0x100ba90
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
xor edi, edi
mov dword [eax], ecx
test edi, edi
je 0x100bac6
push edi
call fcn.0100b569
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10