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

Disassembly:
mov eax, dword [ecx]
test eax, eax
jne 0x1003274b
xor al, al
ret 0xc
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 8]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0xc]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete al
ret 0xc

Function at 0x100327b0
Capabilities:
Query or enumerate registry value

Disassembly:
cmp dword [ecx], 0
jne 0x100327ba
xor al, al
ret 0xc
mov eax, dword [esp + 8]
mov byte [eax], 0
mov dword [esp + 8], eax
jmp fcn.10032740

Function at 0x10032940
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx]
test eax, eax
jne 0x1003294b
xor al, al
ret 0x10
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete al
ret 0x10

Function at 0x10032a10
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push 0
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 4]
dec eax
cmp eax, 5
ja case.default.0x10032a33
jmp dword [eax*4 + 0x10032a58]
mov eax, 4
ret 4
mov eax, 3
ret 4
mov eax, 1
ret 4
xor eax, eax
ret 4

Function at 0x10032a90
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x3f0
mov eax, dword [0x100d3fe0]
xor eax, esp
mov dword [esp + 0x3ec], eax
push ebx
mov ebx, dword [esp + 0x3fc]
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
mov edi, dword [esp + 0x400]
test eax, eax
jne 0x10032ac1
xor al, al
jmp 0x10032b3d
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [esp + 0xc], 0
je 0x10032abd
lea edx, [esp + 0x10]
push edx
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.temp123.reg
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0xc]
push 0
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyA]
push edi
mov ecx, esi
call fcn.100329a0
mov edx, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [esp + 0x3f8]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1007fec9
add esp, 0x3f0
ret 8
Function at 0x10032de0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x3fc
mov eax, dword [0x100d3fe0]
xor eax, esp
mov dword [esp + 0x3f8], eax
push ebp
mov ebp, ecx
cmp dword [ebp], 0
je 0x10032efb
call fcn.10032cc0
mov ecx, dword [ebp]
push 0x3e8
lea eax, [esp + 0x18]
push eax
push 0
push ecx
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x10032efb
push ebx
push esi
push edi
lea ebx, [ebp + 0xc]
push 4
call fcn.10080587
add esp, 4
test eax, eax
je 0x10032e4c
mov edx, dword [0x100d302c]
mov dword [eax], edx
mov edi, eax
jmp 0x10032e4e
xor edi, edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push esi
mov ecx, edi
call fcn.100096e0
test eax, eax
je 0x10032e83
mov edx, dword [edi]
push esi
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.1007f6e0
mov eax, dword [edi]
mov dword [eax - 8], esi
mov ecx, dword [edi]
add esp, 0xc
mov byte [esi + ecx], 0
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x14], edi
test ecx, ecx
jne 0x10032e92
xor eax, eax
jmp 0x10032e9a
mov eax, dword [ebx + 0x14]
sub eax, ecx
sar eax, 2
mov esi, dword [ebx + 0x10]
mov edx, esi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x10032eb2
mov dword [esi], edi
add esi, 4
mov dword [ebx + 0x10], esi
jmp 0x10032ed0
cmp ecx, esi
jbe 0x10032ebb
call fcn.10080551
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
push ecx
push esi
push eax
lea edx, [esp + 0x24]
push edx
mov ecx, ebx
call fcn.100148c0
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp]
mov eax, ecx
inc ecx
push 0x3e8
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x24]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x10032e32
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3fc]
lea eax, [ebp + 0xc]
pop ebp
xor ecx, esp
call fcn.1007fec9
add esp, 0x3fc
ret
Function at 0x10032f20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x400
mov eax, dword [0x100d3fe0]
xor eax, esp
mov dword [esp + 0x3fc], eax
push ebp
mov ebp, ecx
cmp dword [ebp], 0
je 0x1003305b
call fcn.10032cc0
mov edx, dword [ebp]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push edx
mov dword [esp + 0x24], 0x3e8
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x1003305b
push ebx
push esi
push edi
lea ebx, [ebp + 0xc]
push 4
call fcn.10080587
add esp, 4
test eax, eax
je 0x10032f9c
mov ecx, dword [0x100d302c]
mov dword [eax], ecx
mov edi, eax
jmp 0x10032f9e
xor edi, edi
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push esi
mov ecx, edi
call fcn.100096e0
test eax, eax
je 0x10032fd3
mov ecx, dword [edi]
push esi
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.1007f6e0
mov edx, dword [edi]
mov dword [edx - 8], esi
mov eax, dword [edi]
add esp, 0xc
mov byte [esi + eax], 0
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x18], edi
test ecx, ecx
jne 0x10032fe2
xor eax, eax
jmp 0x10032fea
mov eax, dword [ebx + 0x14]
sub eax, ecx
sar eax, 2
mov esi, dword [ebx + 0x10]
mov edx, esi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x10033002
mov dword [esi], edi
add esi, 4
mov dword [ebx + 0x10], esi
jmp 0x10033020
cmp ecx, esi
jbe 0x1003300b
call fcn.10080551
mov eax, dword [ebx]
lea ecx, [esp + 0x18]
push ecx
push esi
push eax
lea edx, [esp + 0x28]
push edx
mov ecx, ebx
call fcn.100148c0
mov ecx, dword [esp + 0x14]
push 0
push 0
mov eax, ecx
push 0
inc ecx
push 0
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
push eax
mov eax, dword [ebp]
push eax
mov dword [esp + 0x30], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x10032f82
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x400]
lea eax, [ebp + 0xc]
pop ebp
xor ecx, esp
call fcn.1007fec9
add esp, 0x400
ret

Function at 0x100332a0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100332c3
xor eax, eax
pop esi
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x100332d6
lea edi, [eax + 1]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x100333c0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0xac
mov eax, dword [0x100d3fe0]
xor eax, esp
mov dword [esp + 0xa8], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10033402
xor al, al
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.1007fec9
add esp, 0xac
ret
cmp dword [esp + 0x24], 2
jne 0x10033459
lea ecx, [esp]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100333eb
lea edx, [esp + 8]
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [esp]
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
push ecx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, dword [esp + 0xb0]
push 0
push edx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [esp + 0xa8]
xor ecx, esp
mov al, 1
call fcn.1007fec9
add esp, 0xac
ret

Function at 0x10033530
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call sub.WS2_32.dll_inet_addr
mov edi, eax
cmp edi, 0xffffffff
jne 0x1003355e
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x1003355c
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
je 0x1003355c
mov eax, dword [eax]
mov eax, dword [eax]
pop edi
pop esi
ret
mov eax, edi
pop edi
pop esi
ret

Function at 0x100336c0
Capabilities:
Create directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x100d3fe0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x100bbe0c
push esi
mov edi, eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
je 0x1003371c
cmp edi, 3
jle 0x1003371c
lea eax, [esp + 8]
push eax
push esi
call fcn.10033260
lea ecx, [esp + 0x10]
push ecx
call fcn.100336c0
add esp, 0xc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
call fcn.1007fec9
add esp, 0x108
ret
Function at 0x100337a0
Capabilities:
Simulate ctrl alt del

Disassembly:
sub esp, 8
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov dword [esp], eax
test eax, eax
jne 0x100337b6
xor eax, eax
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
mov dword [esp + 4], eax
test eax, eax
je 0x100337b0
push ebp
push 0x37f
push 0
push str.winsta0
call dword [sym.imp.USER32.dll_OpenWindowStationA]
mov ebp, eax
test ebp, ebp
jne 0x100337e9
pop ebp
add esp, 8
ret
push edi
mov edi, dword [sym.imp.USER32.dll_SetProcessWindowStation]
push ebp
call edi
test eax, eax
jne 0x100337fd
pop edi
pop ebp
add esp, 8
ret
push esi
push 0x1ff
push 0
push 0
push 0x100bdf44
call dword [sym.imp.USER32.dll_OpenDesktopA]
mov esi, eax
test esi, esi
jne 0x1003381f
pop esi
pop edi
pop ebp
add esp, 8
ret
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetThreadDesktop]
push esi
call ebx
test eax, eax
je 0x10033865
push 0x2e0003
push 0
push 0x312
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x10]
push eax
call edi
test eax, eax
je 0x10033865
mov ecx, dword [esp + 0x14]
push ecx
call ebx
test eax, eax
je 0x10033865
push ebp
call dword [sym.imp.USER32.dll_CloseWindowStation]
test eax, eax
jne 0x1003386f
pop ebx
pop esi
pop edi
xor eax, eax
pop ebp
add esp, 8
ret
push esi
call dword [sym.imp.USER32.dll_CloseDesktop]
pop ebx
neg eax
pop esi
sbb eax, eax
pop edi
neg eax
pop ebp
add esp, 8
ret

Function at 0x100338a0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push 0
push 0x10033890
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ecx
ret
Function at 0x10034860
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x20]
or esi, 0xffffffff
cmp dword [edi + 4], esi
jne 0x1003489a
mov eax, dword [str..pipeDogCraftXErrorReport]
push 0
push 0x80000020
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 4], eax
cmp eax, esi
je 0x1003494b
lea eax, [edi + 8]
push ebp
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push ecx
push edx
push 0x100d7908
call fcn.10081376
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x100d7908
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, dword [edi + 0x20]
mov esi, eax
mov dword [esp + 0x24], 0
test esi, esi
jbe 0x1003493f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, edi
mov edx, dword [edi + 4]
push 0
lea ecx, [esp + 0x2c]
push ecx
push esi
push 0x100d7908
push edx
call ebx
test eax, eax
je 0x10034927
sub esi, dword [esp + 0x28]
sub ebp, 1
je 0x1003493e
test esi, esi
ja 0x100348f0
mov ecx, dword [esp + 0x10]
pop ebx
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop edi
pop esi
add esp, 0x14
ret
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop edi
pop esi
add esp, 0x14
ret

Function at 0x10034d70
Capabilities:
Get hostname

Disassembly:
sub esp, 0x11c
mov eax, dword [0x100d3fe0]
xor eax, esp
mov dword [esp + 0x118], eax
mov ecx, dword [0x100d78f4]
push esi
push edi
mov edi, dword [esp + 0x128]
push 0xa
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 0x1044c]
lea edx, [eax + eax*4]
add edx, edx
mov eax, 0x88888889
mul edx
shr edx, 5
push edx
call fcn.100acd1c
push 0xfe
lea eax, [esp + 0x31]
push 0
push eax
mov byte [esp + 0x38], 0
call fcn.1007f650
add esp, 0x18
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x10], 0xff
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [esp + 0x20]
lea esi, [edi + 8]
push eax
mov ecx, esi
mov dword [edi], 0xffffff9c
call fcn.1007bb30
add edi, 5
push edi
mov ecx, esi
call fcn.1007bb30
mov ecx, dword [0x100d78f4]
mov edx, dword [ecx + 0x68]
push edx
mov ecx, esi
call fcn.1007bb30
push edi
mov ecx, esi
call fcn.1007bb30
mov eax, dword [0x100d78f4]
mov ecx, dword [eax + 0x6c]
push ecx
mov ecx, esi
call fcn.1007bb30
push edi
mov ecx, esi
call fcn.1007bb30
mov edx, dword [0x100d78f4]
mov eax, dword [edx + 0x10ebc]
push eax
mov ecx, esi
call fcn.1007bb30
push edi
mov ecx, esi
call fcn.1007bb30
mov ecx, dword [0x100d78f4]
add ecx, 0x10ea0
push ecx
mov ecx, esi
call fcn.1007bb30
push edi
mov ecx, esi
call fcn.1007bb30
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.1007bb30
push edi
mov ecx, esi
call fcn.1007bb30
mov ecx, dword [esp + 0x120]
pop edi
pop esi
xor ecx, esp
call fcn.1007fec9
add esp, 0x11c
ret
Function at 0x100365f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100b7c1e
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100d3fe0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
push 0
call fcn.100192b0
mov eax, dword [0x100d302c]
mov dword [esp + 0x14], 0
mov dword [esi + 0x30], eax
mov ecx, dword [0x100d302c]
mov dword [esi + 0x64], ecx
mov ecx, esi
mov byte [esp + 0x14], 2
call fcn.10034b30
mov ecx, dword [esp + 0x1c]
call fcn.100171f0
mov dword [esi + 0x68], eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4

Function at 0x10038c30
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x100d78f4]
mov ecx, dword [eax + 0x10488]
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.10037c10
mov ecx, dword [esi + 8]
mov edi, eax
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*4]
add edx, edx
sub ecx, edx
jne 0x10038ca2
test edi, edi
je 0x10038ca2
mov eax, dword [0x100d78f4]
cmp dword [eax + 0x105c8], ecx
je 0x10038c84
mov eax, dword [eax + 0x105c8]
push ecx
push ecx
call eax
add esp, 8
lea ecx, [esp + 0xc]
push ecx
push 0
push edi
push 0x10038bf0
push 0
push 0
mov dword [edi + 0x34], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
ret

Function at 0x10039010
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100b7e89
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100d3fe0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
push 0
call fcn.100192b0
mov eax, dword [0x100d302c]
mov dword [esp + 0x14], 0
mov dword [esi + 0x30], eax
mov ecx, dword [0x100d302c]
mov dword [esi + 0x64], ecx
mov ecx, esi
mov byte [esp + 0x14], 2
call fcn.10034b30
mov edx, dword [esp + 0x1c]
push edx
call sub.WS2_32.dll_inet_addr
push 8
mov dword [esi + 0x68], eax
call fcn.10080587
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x14], 3
test eax, eax
je 0x10039091
mov ecx, eax
call fcn.10017d70
jmp 0x10039093
xor eax, eax
mov dword [esi + 0x78], eax
mov eax, dword [eax + 4]
mov dword [eax + 0x84], 0x10038030
mov ecx, dword [esi + 0x78]
mov edx, dword [ecx + 4]
mov dword [edx + 0x88], 0x10042f70
mov eax, dword [esi + 0x78]
mov ecx, dword [eax + 4]
mov dword [ecx + 0x90], fcn.10038c30
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x100395f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x100b7f88
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x100d3fe0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
push 0x100d73ae
push 0
mov dword [0x100d73e0], 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x10039647
push 0x8ea
push 0x8ea
push 0x8ea
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
mov dword [0x100d73e0], 0
call fcn.10039570
push str.WinHost.exe
add esi, 0x1048c
push esi
lea eax, [esp + 0x10]
push eax
call fcn.10013ca0
lea ecx, [esp + 8]
push ecx
push str.upgrade__
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x28], 0
call fcn.10013d20
push 0x100bd928
push eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x28], 1
call fcn.10013ca0
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 2
call fcn.100097c0
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x100d3028]
je 0x100396dd
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x100396dd
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.1007f6d5
add esp, 4
mov eax, dword [esp + 0x10]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x100d3028]
je 0x10039706
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x10039706
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.1007f6d5
add esp, 4
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x24]
push 5
push 0
push eax
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [esp + 8]
lea edx, [eax - 0xc]
cmp edx, dword [0x100d3028]
je 0x1003974f
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x1003974f
mov eax, dword [esp + 8]
add eax, 0xfffffff4
push eax
call fcn.1007f6d5
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret 4
Function at 0x1003a4d0
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x100b8298
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x100d3fe0]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100d3fe0]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, dword [esp + 0x54]
mov eax, dword [esi + 0x54]
mov ebp, ecx
cmp eax, 3
jne 0x1003a64b
xor eax, eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov byte [esp + 0x3d], al
mov eax, dword [esi + 0x24]
push ecx
xor ebx, ebx
push eax
mov byte [esp + 0x28], bl
call fcn.10033190
add esp, 8
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
call fcn.10001bc0
mov eax, dword [esi + 0x24]
push eax
mov dword [esp + 0x50], ebx
call fcn.10033370
add esp, 4
push eax
lea ecx, [esp + 0x20]
call fcn.10001bc0
mov edi, dword [0x100d302c]
mov dword [esp + 0x14], edi
push str..uptmp
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x54], 2
call fcn.10011cf0
test al, al
je 0x1003a5e1
mov ecx, dword [esi + 0x24]
push ecx
lea ecx, [esp + 0x18]
call fcn.10009830
push str..exe
push str..exe
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [esp + 0x1c]
call fcn.100098f0
mov edi, dword [esp + 0x14]
mov edx, dword [esi + 0x24]
push ebx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
lea ecx, [ebp - 0x24]
call fcn.100395f0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [edi - 0xc]
cmp ecx, dword [0x100d3028]
je 0x1003a605
lea esi, [edi - 0xc]
push esi
call ebx
test eax, eax
jg 0x1003a605
push esi
call fcn.1007f6d5
add esp, 4
mov eax, dword [esp + 0x1c]
lea edx, [eax - 0xc]
cmp edx, dword [0x100d3028]
je 0x1003a627
lea esi, [eax - 0xc]
push esi
call ebx
test eax, eax
jg 0x1003a627
push esi
call fcn.1007f6d5
add esp, 4
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x100d3028]
je 0x1003a662
lea esi, [eax - 0xc]
push esi
call ebx
test eax, eax
jg 0x1003a662
push esi
call fcn.1007f6d5
add esp, 4
jmp 0x1003a662
cmp eax, 4
jne 0x1003a662
mov edx, dword [esi + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x24]
call fcn.10039160
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1007fec9
add esp, 0x3c
ret 4
Function at 0x1003b200
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x100b8660
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100d3fe0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100d3fe0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x10ec8], ebx
je 0x1003b3b3
mov dword [esi + 0x10ec8], ebx
mov ecx, dword [0x100d78f4]
add ecx, 0x103d4
call fcn.10023970
mov eax, dword [0x100d302c]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x1c], bl
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov word [esp + 0x2d], ax
mov byte [esp + 0x2f], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0xa
lea ecx, [esp + 0x20]
push ecx
push eax
call fcn.100acd1c
mov edx, dword [0x100d78f4]
add esp, 0xc
add edx, 0x104ac
push edx
lea ecx, [esp + 0x18]
call fcn.100097c0
mov eax, dword [0x100d78f4]
mov eax, dword [eax + 0x70]
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.100098f0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x1c]
push edx
mov eax, edx
push eax
call edi
push eax
lea ecx, [esp + 0x1c]
call fcn.100098f0
push str..qmfc
push str..qmfc
call edi
push eax
lea ecx, [esp + 0x1c]
call fcn.100098f0
mov esi, dword [esi + 0x104c4]
push esi
lea ecx, [esp + 0x1c]
call fcn.1001e010
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
push ebx
push ecx
push ebp
mov byte [esp + 0x48], 1
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [0x100d78f4]
add ecx, 0x103d4
call fcn.10028940
mov esi, dword [0x100d78f4]
mov edx, dword [esi + 0x105c0]
mov edi, dword [edx]
mov ecx, dword [edi + 4]
add esi, 0x105ac
lea eax, [esp + 0x14]
push eax
push ecx
push edi
mov ecx, esi
call fcn.10037680
mov ebx, eax
push 1
mov ecx, esi
call fcn.10039420
mov dword [edi + 4], ebx
mov edx, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [ebp - 0xc]
mov dword [edx], ebx
cmp eax, dword [0x100d3028]
je 0x1003b391
lea esi, [ebp - 0xc]
push esi
call edi
test eax, eax
jg 0x1003b391
push esi
call fcn.1007f6d5
add esp, 4
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x100d3028]
je 0x1003b3b3
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x1003b3b3
push esi
call fcn.1007f6d5
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1007fec9
add esp, 0x2c
ret