joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402cd0
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov eax, ecx
mov esi, edx
lea ecx, [ebp - 4]
mov dword [ebp - 0x10], eax
push ecx
push 0x2001f
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402cfe
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
test esi, esi
je 0x402d2a
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x402dc3
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 8], 0
lea ecx, [ecx]
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push dword [ebp - 4]
call edi
test eax, eax
jne 0x402dd8
cmp dword [ebp - 8], eax
jbe 0x402daa
mov eax, dword [ebp - 0xc]
inc eax
push eax
call fcn.00404fe4
mov ecx, dword [ebp - 0xc]
add esp, 4
inc ecx
mov esi, eax
push ecx
push esi
push 0
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x402dcf
push dword [ebp - 4]
xor edx, edx
mov ecx, esi
call fcn.00402cd0
add esp, 4
push esi
test eax, eax
je 0x402dd0
call fcn.0040512f
add esp, 4
cmp dword [ebp - 8], 0
ja 0x402d40
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402de1
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push esi
call fcn.0040512f
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ff5d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040c411
mov dword [ebp - 0x14], eax
cmp dword [0x42152c], esi
jne 0x410050
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40ffdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x410130
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x410130
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410130
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x42152c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x421530], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x421534], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42153c], eax
test eax, eax
je 0x41004d
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x421538], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x410075
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x410068
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41008a
push 4
pop eax
jmp 0x410132
cmp dword [ebp - 0x14], esi
je 0x41008a
push dword [0x42152c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41006f
mov eax, dword [0x421538]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4100e8
cmp dword [0x42153c], edi
je 0x4100e8
push eax
call ebx
push dword [0x42153c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4100e8
test eax, eax
je 0x4100e8
call ecx
test eax, eax
je 0x4100dd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4100dd
test byte [ebp - 8], 1
jne 0x4100e8
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x410118
mov eax, dword [0x421530]
cmp eax, edi
je 0x410115
push eax
call ebx
test eax, eax
je 0x410115
call eax
mov esi, eax
test esi, esi
je 0x410115
mov eax, dword [0x421534]
cmp eax, edi
je 0x410115
push eax
call ebx
test eax, eax
je 0x410115
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x42152c]
call ebx
test eax, eax
je 0x410130
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x410132
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403f5b
mov esp, ebp
pop ebp
ret
Function at 0x40124b
Capabilities:
Check if file exists

Disassembly:
push 0x20
mov eax, 0x479cb1
call fcn.0045fd3a
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
push eax
call dword [sym.imp.USER32.dll_SwitchDesktop]
push 4
push dword [esi + 0x14]
xor edi, edi
push dword [esi + 0x10]
push edi
push edi
push edi
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowPos]
push edi
push 0x313
push 0x5ac
push dword [esi]
call dword [sym.imp.USER32.dll_SetTimer]
push str.SetShellWindow
push 0x47efb0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x4012b4
push dword [esi]
call eax
push dword [esi]
push dword [esi + 8]
call fcn.0040a129
mov dword [esi + 0x18], eax
movsx eax, byte [esi + 0x24]
push eax
push str._c:__metawallpaper.jpg
lea ecx, [ebp - 0x2c]
call fcn.0040d940
add esp, 0x10
mov dword [ebp - 4], edi
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4012e5
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401306
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4012fc
lea eax, [ebp - 0x28]
push eax
call fcn.004100ce
pop ecx
mov dword [esi + 0x20], eax
push edi
push 1
lea esi, [ebp - 0x2c]
call fcn.0040144b
call fcn.0045fdbd
ret
Function at 0x401d19
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push 8
mov esi, eax
pop edi
cmp dword [esi + 0x6a8], edi
jb 0x401d30
mov eax, dword [esi + 0x694]
jmp 0x401d36
lea eax, [esi + 0x694]
test eax, eax
je 0x401d6a
cmp dword [esi + 0x6a8], edi
jb 0x401d4a
mov eax, dword [esi + 0x694]
jmp 0x401d50
lea eax, [esi + 0x694]
push str.parent
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x401d6a
mov eax, 0x47f0a8
jmp 0x401f55
cmp dword [esi + 0x6a8], edi
jb 0x401d7a
mov eax, dword [esi + 0x694]
jmp 0x401d80
lea eax, [esi + 0x694]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401d90
test al, 0x10
jne 0x401d60
cmp dword [esi + 0x6a8], edi
jb 0x401da0
mov esi, dword [esi + 0x694]
jmp 0x401da6
add esi, 0x694
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov edi, eax
test edi, edi
je 0x401f4f
cmp word [edi], 0
je 0x401f4f
inc edi
inc edi
je 0x401f4f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x47f0c0
push edi
call esi
test eax, eax
je 0x401e0c
push 0x47f0c8
push edi
call esi
test eax, eax
je 0x401e0c
push 0x47f0d0
push edi
call esi
test eax, eax
je 0x401e0c
push 0x47f0d8
push edi
call esi
test eax, eax
je 0x401e0c
push str.jpeg
push edi
call esi
test eax, eax
jne 0x401e16
mov eax, str.image.png
jmp 0x401f54
push 0x47f100
push edi
call esi
test eax, eax
jne 0x401e2c
mov eax, str.pdf.png
jmp 0x401f54
push 0x47f118
push edi
call esi
test eax, eax
je 0x401e50
push str.pptx
push edi
call esi
test eax, eax
je 0x401e50
push 0x47f12c
push edi
call esi
test eax, eax
jne 0x401e5a
mov eax, str.ppt.png
jmp 0x401f54
push 0x47f144
push edi
call esi
test eax, eax
je 0x401e7e
push str.xlsx
push edi
call esi
test eax, eax
je 0x401e7e
push 0x47f158
push edi
call esi
test eax, eax
jne 0x401e88
mov eax, str.xls.png
jmp 0x401f54
push 0x47f170
push edi
call esi
test eax, eax
je 0x401eac
push str.docx
push edi
call esi
test eax, eax
je 0x401eac
push 0x47f184
push edi
call esi
test eax, eax
jne 0x401eb6
mov eax, 0x47f18c
jmp 0x401f54
push 0x47f19c
push edi
call esi
test eax, eax
jne 0x401ecc
mov eax, str.txt.png
jmp 0x401f54
push 0x47f1b4
push edi
call esi
test eax, eax
je 0x401f14
push 0x47f1bc
push edi
call esi
test eax, eax
je 0x401f14
push 0x47f1c0
push edi
call esi
test eax, eax
je 0x401f14
push 0x47f1cc
push edi
call esi
test eax, eax
je 0x401f14
push 0x47f1d0
push edi
call esi
test eax, eax
je 0x401f14
push 0x47f1d8
push edi
call esi
test eax, eax
jne 0x401f1b
mov eax, str.code.png
jmp 0x401f54
push 0x47f1f4
push edi
call esi
test eax, eax
je 0x401f48
mov ebx, 0x47f1fc
push ebx
push edi
call esi
test eax, eax
je 0x401f48
push 0x47f204
push edi
call esi
test eax, eax
je 0x401f48
push ebx
push edi
call esi
test eax, eax
jne 0x401f4f
mov eax, str.archive.png
jmp 0x401f54
mov eax, str.unknown.png
pop ebx
pop edi
pop esi
ret
Function at 0x4023f0
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47ad7c
mov eax, dword fs:[0]
push eax
sub esp, 0x6c8
mov eax, dword [0x495040]
xor eax, esp
mov dword [esp + 0x6c0], eax
push ebx
push esi
push edi
mov eax, dword [0x495040]
xor eax, esp
push eax
lea eax, [esp + 0x6d8]
mov dword fs:[0], eax
mov eax, dword [ecx]
mov ebx, dword [ebp + 8]
lea edx, [esp + 0x2c]
push edx
call dword [eax + 8]
and dword [esp + 0x6e0], 0
mov ecx, str.btnParent
lea eax, [esp + 0x2c]
call fcn.004257a8
test eax, eax
jne 0x402473
push 0x47f3e0
lea esi, [ebx + 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
mov esi, ebx
call fcn.004021ab
jmp 0x40262b
push dword [esp + 0x2c]
mov esi, str.filebtn_
call fcn.0040d8c3
test eax, eax
je 0x40262b
xor eax, eax
push 0x206
push eax
mov word [esp + 0xbc], ax
lea eax, [esp + 0xbe]
push eax
call fcn.00460930
mov eax, dword [esp + 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
add esp, 0xc
mov edi, 0x104
push edi
add eax, 0x10
push eax
lea eax, [esp + 0xbc]
push eax
call esi
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40262b
test al, 0x10
lea eax, [esp + 0xb4]
je 0x4024fd
push edi
push eax
lea eax, [ebx + 0x14]
push eax
call esi
mov ecx, ebx
call fcn.0040265a
jmp 0x40262b
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov edi, eax
test edi, edi
je 0x4025da
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x47f3e8
push edi
call esi
test eax, eax
je 0x402554
push 0x47f3f4
push edi
call esi
test eax, eax
je 0x402554
push 0x47f400
push edi
call esi
test eax, eax
je 0x402554
push 0x47f40c
push edi
call esi
test eax, eax
je 0x402554
push str..jpeg
push edi
call esi
test eax, eax
jne 0x4025da
xor eax, eax
push 0x40e
push eax
mov word [esp + 0x2c4], ax
lea eax, [esp + 0x2c6]
push eax
call fcn.00460930
add esp, 0xc
lea eax, [esp + 0x10]
push str.ImgViewer.exe
push eax
call fcn.00404aa6
cmp dword [eax + 0x18], 8
pop ecx
pop ecx
jb 0x402590
mov eax, dword [eax + 4]
jmp 0x402593
add eax, 4
lea ecx, [esp + 0xb4]
push ecx
push eax
push str.__s____s_
lea eax, [esp + 0x2c8]
push 0x208
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
push 0
push 1
lea esi, [esp + 0x18]
call fcn.0040144b
lea eax, [esp + 0x2bc]
push eax
call fcn.0040cdd3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40262b
push 1
lea eax, [esp + 0xb8]
push eax
push 0
push eax
push str.open
push dword [ebx + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x40262b
push 0x30
push ecx
push str.warning
push str.common
call fcn.00417c11
add esp, 0xc
push eax
push str.shellExecuteFailed
push 0x47f074
call fcn.00417c11
pop ecx
pop ecx
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x2c]
call fcn.0042556b
mov ecx, dword [esp + 0x6d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6c0]
xor ecx, esp
call fcn.0045e86d
mov esp, ebp
pop ebp
ret 4
Function at 0x404239
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47aacc
mov eax, dword fs:[0]
push eax
mov eax, 0x206c
call fcn.0046a3d0
mov eax, dword [0x495040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push 0xffc
lea eax, [ebp - 0x2064]
push edi
push eax
mov dword [ebp - 0x2068], edi
call fcn.00460930
add esp, 0xc
lea eax, [ebp - 0x206c]
push eax
lea eax, [ebp - 0x2068]
push eax
lea eax, [ebp - 0x2074]
push eax
push str.curssp
push str.Softwareprojone_secshare_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x206c], 0x1000
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40441a
cmp word [ebp - 0x1ecc], di
je 0x4043cd
cmp dword [0x49a978], edi
jne 0x404305
push 0x94
call fcn.0045e99a
pop ecx
mov dword [ebp - 0x2070], eax
mov dword [ebp - 4], edi
cmp eax, edi
je 0x4042fa
mov esi, eax
call fcn.0041a99d
jmp 0x4042fc
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [0x49a978], eax
lea eax, [ebp - 0x1068]
push eax
call fcn.004040d6
push str.Arial
push 5
mov dword [ebp - 4], 1
pop eax
lea esi, [ebp - 0x1030]
mov byte [ebp - 0x1040], 0x3c
call fcn.004035b7
lea eax, [ebp - 0x1ecc]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x40433b
sub eax, ecx
lea ecx, [ebp - 0x1ecc]
sar eax, 1
push ecx
lea esi, [ebp - 0x105c]
call fcn.004035b7
mov eax, 0xff
push 0xffffffffffffffe2
mov dword [ebp - 0x103c], eax
mov dword [ebp - 0x1038], eax
pop eax
mov word [ebp - 0x103e], ax
mov eax, dword [0x49a978]
lea esi, [eax + 0x14]
push esi
mov byte [ebp - 0x1013], 1
mov byte [ebp - 0x1014], 0x1c
mov edi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x1068]
push eax
test bl, bl
je 0x4043b1
call fcn.0041af62
jmp 0x4043bc
push dword [0x49a978]
call fcn.0041ae52
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x1068]
call fcn.00404153
xor edi, edi
call fcn.0040416e
call fcn.0040c4ac
test eax, eax
je 0x40441a
push str._X64AgentThread
push 0x57
push str..limits.cpp
push str._s._d:_s
lea eax, [ebp - 0x1010]
push 0x800
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x18
lea eax, [ebp - 0x1010]
push eax
push edi
push 0x404233
call fcn.00418fa2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045e86d
leave
ret
Function at 0x404679
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
xor edi, edi
push edi
call esi
mov ebx, eax
push 0x65
push ebx
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x4046e6
cmp ebx, edi
jne 0x4046a6
push edi
call esi
mov ebx, eax
push 8
call fcn.0045f123
pop ecx
mov ecx, dword [ebp - 4]
push edi
push edi
push eax
push 0x4045bf
push edi
push edi
mov dword [eax + 4], ecx
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x4046de
cmp eax, 0xffffffff
je 0x4046de
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
call fcn.00404434
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404aa6
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x495040]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x19c]
and dword [ebp - 0x80], 0
push ebx
mov ebx, dword [ebp + 0x1a0]
push esi
push edi
mov dword [ebp - 0x7c], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.00460930
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x47f23c
lea eax, [ebp - 0x78]
push eax
call edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea esi, [ebp - 0x78]
call fcn.0040bb3e
test ebx, ebx
je 0x404b2b
push ebx
mov eax, esi
push eax
call edi
mov esi, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
call fcn.00402cbb
mov ecx, dword [ebp + 0x190]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045e86d
add ebp, 0x194
leave
ret

Function at 0x404b51
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x495040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 8
pop esi
cmp dword [eax + 0x18], esi
jb 0x404b74
mov eax, dword [eax + 4]
jmp 0x404b77
add eax, 4
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00404aa6
mov edi, dword [ebp - 0x1c]
pop ecx
pop ecx
cmp dword [ebp - 8], esi
jae 0x404b8e
lea edi, [ebp - 0x1c]
call fcn.0040ba34
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 8], esi
jae 0x404b9e
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
call fcn.0040d5d5
test eax, eax
je 0x404be0
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 8], esi
jae 0x404bb6
lea eax, [ebp - 0x1c]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.0040144b
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0045e86d
leave
ret
xor bl, bl
jmp 0x404bc3
Function at 0x404be4
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x495040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x400
lea eax, [ebp - 0x808]
push eax
mov esi, str.no_more_create_job
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x404c57
call fcn.0040ce45
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x47fb68
lea ecx, [ebp - 0x824]
call fcn.0040d940
cmp dword [eax + 0x18], 8
pop ecx
pop ecx
jb 0x404c3d
mov eax, dword [eax + 4]
jmp 0x404c40
add eax, 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0
push 1
lea esi, [ebp - 0x824]
call fcn.0040144b
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045e86d
leave
ret
Function at 0x406280
Capabilities:
Open clipboard

Disassembly:
push 0x3c
mov eax, 0x479f01
call fcn.0045fd3a
lea eax, [ebp - 0x48]
push eax
call fcn.00404c64
pop ecx
xor ebx, ebx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0040444a
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00403021
cmp dword [ebp - 0x18], ebx
jne 0x4062ca
push 0x10
push 0x47fbc4
push 0x480170
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x406321
cmp dword [ebp - 0x14], 8
mov edi, dword [ebp - 0x28]
jae 0x4062d6
lea edi, [ebp - 0x28]
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4062fe
call fcn.0040cc0d
cmp eax, ebx
je 0x4062fe
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4062f6
lea eax, [ebp - 0x28]
push eax
push 0x480184
jmp 0x406310
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40630a
lea eax, [ebp - 0x28]
push eax
push 0x4801c4
push 0x40
mov edi, 0x48010c
xor esi, esi
call fcn.0040c45e
add esp, 0xc
push ebx
push 1
lea esi, [ebp - 0x2c]
call fcn.0040144b
call fcn.0045fdbd
ret
Function at 0x407201
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf94]
mov eax, 0x1014
call fcn.0046a3d0
mov eax, dword [0x495040]
xor eax, ebp
mov dword [ebp + 0xf90], eax
mov eax, dword [ebp + 0xfac]
push ebx
mov ebx, dword [ebp + 0xfa4]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xfb0]
mov dword [ebp - 0x80], eax
test ebx, ebx
jbe 0x407295
push esi
mov esi, 0x1000
cmp ebx, esi
ja 0x407249
mov esi, ebx
and dword [ebp - 0x74], 0
push 0
lea eax, [ebp - 0x74]
push eax
push esi
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407294
cmp dword [ebp - 0x74], esi
jne 0x407294
and dword [ebp - 0x78], 0
push 0
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407294
mov eax, dword [ebp - 0x74]
cmp dword [ebp - 0x78], eax
jne 0x407294
sub ebx, eax
jne 0x40723e
pop esi
mov ecx, dword [ebp + 0xf90]
xor eax, eax
test ebx, ebx
sete al
xor ecx, ebp
pop ebx
call fcn.0045e86d
add ebp, 0xf94
leave
ret
Function at 0x407625
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x495040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push esi
push connect
push eax
mov dword [ebp - 0x21c], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x218], eax
cmp eax, 0xffffffff
jne 0x40766a
push 2
pop esi
jmp 0x407757
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea ecx, [ebp - 0x210]
push ecx
push 0x1000
push edi
push eax
mov dword [ebp - 0x210], esi
call ebx
test eax, eax
je 0x407748
cmp dword [ebp - 0x210], 0x1000
jne 0x407748
cmp dword [edi], 0x73737066
jne 0x407748
push 0xffc
push edi
mov eax, 0x5b11680a
call fcn.0040c431
cmp dword [edi + 0xffc], eax
jne 0x407748
cmp dword [edi + 0x108], esi
mov dword [ebp - 0x214], esi
jle 0x40774b
push 0x1fc
lea eax, [ebp - 0x208]
push esi
push eax
mov dword [ebp - 0x20c], esi
call fcn.00460930
add esp, 0xc
push esi
lea eax, [ebp - 0x210]
push eax
push 0x200
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
call ebx
test eax, eax
je 0x407744
cmp dword [ebp - 0x210], 0x200
jne 0x407744
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x21c]
call fcn.004083ee
inc dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
cmp eax, dword [edi + 0x108]
jl 0x4076d5
jmp 0x40774b
push 3
jmp 0x40774a
push 0xa
pop esi
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045e86d
leave
ret