joyce8/EMBER2024-capa huggingface dataset:
Function at 0xef4000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xef4131
push esi
call fcn.00ef7145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00ee6080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xef4131
push 0
push ebp
call fcn.00ee63a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00ee6260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xef408b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00ee62f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xef4121
push 0xf0c918
push edi
call fcn.00ef53f0
push eax
push ebx
push esi
call fcn.00ef3f60
push 0xf0c8f8
push edi
call fcn.00ef53f0
push eax
push ebx
push esi
call fcn.00ef3f60
push 0xf0c8d8
push edi
call fcn.00ef53f0
push eax
push ebx
push esi
call fcn.00ef3f60
push 0xf0c8c0
push edi
call fcn.00ef53f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00ef3f60
push 0xf0c8a0
push edi
call fcn.00ef53f0
push eax
push ebx
push esi
call fcn.00ef3f60
push 0xf0c888
push edi
call fcn.00ef53f0
push eax
push ebx
push esi
call fcn.00ef3f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xef51b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00ef5140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00ef5140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00ef5140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00ef5140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xef5bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xef5c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xf0787c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xef5c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xef5c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x407eab
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417400]
jne 0x407eb5
repz ret
jmp fcn.0040dcc7

Function at 0x40accc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417400]
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.004062c0
and dword [ebp - 0x14], 0
cmp dword [0x448fb0], 0
mov dword [ebp - 0x18], eax
jne 0x40ad7f
push 0x402228
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40ae27
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40221c
push ebx
call edi
test eax, eax
je 0x40ae27
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40220c
push ebx
mov dword [0x448fb0], eax
call edi
push eax
call esi
push 0x4021f8
push ebx
mov dword [0x448fb4], eax
call edi
push eax
call esi
push 0x4021dc
push ebx
mov dword [0x448fb8], eax
call edi
push eax
call esi
mov dword [0x448fc0], eax
test eax, eax
je 0x40ad7f
push 0x4021c4
push ebx
call edi
push eax
call esi
mov dword [0x448fbc], eax
mov eax, dword [0x448fbc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40add8
cmp dword [0x448fc0], ecx
je 0x40add8
push eax
call esi
push dword [0x448fc0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40add8
test ebx, ebx
je 0x40add8
call edi
test eax, eax
je 0x40adcf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40adcf
test byte [ebp - 8], 1
jne 0x40add8
or dword [ebp + 0x10], 0x200000
jmp 0x40ae0b
mov eax, dword [0x448fb4]
cmp eax, dword [ebp - 0x18]
je 0x40ae0b
push eax
call esi
test eax, eax
je 0x40ae0b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40ae0b
mov eax, dword [0x448fb8]
cmp eax, dword [ebp - 0x18]
je 0x40ae0b
push eax
call esi
test eax, eax
je 0x40ae0b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x448fb0]
call esi
test eax, eax
je 0x40ae27
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40ae29
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407eab
leave
ret
Function at 0x4147e0
Capabilities:
Access the windows event log
Connect pipe
Delete directory
Delete file
Get common file path
Manipulate console buffer
Read pipe
Write pipe

Disassembly:
mov eax, 0x1414
call fcn.0040eba0
cmp dword [0x7f8a9c], 0x37
jne 0x4148b4
push 0x40347c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoA]
push 0
lea eax, [esp + 0xc18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0
lea ecx, [esp + 8]
push ecx
push 0
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [esp + 0x818]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x40348c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTapePosition]
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push 0
lea edx, [esp + 0x418]
push edx
push 0x4034a0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov eax, dword [0x7f8eb0]
mov edx, dword [0x7f8580]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1414
ret
Function at 0x414f00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x7f8a9c]
sub esp, 0x484
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetDateFormatA]
mov ebp, 0x2443831
cmp eax, 0x47
jne 0x414f86
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x78]
push ecx
push 0x403790
mov dword [esp + 0x6c], 0
call esi
xor eax, eax
push eax
mov dword [esp + 0x56], eax
mov dword [esp + 0x5a], eax
mov dword [esp + 0x5e], eax
mov word [esp + 0x62], ax
lea eax, [esp + 0x94]
push eax
push 0x4037e4
xor edx, edx
lea ecx, [esp + 0x5c]
push ecx
push edx
push edx
mov word [esp + 0x68], dx
call edi
dec ebp
mov eax, dword [0x448670]
mov dword [0x7f8a9c], eax
jne 0x414f25
mov dword [esp + 0x20], 0x764d11c7
mov dword [esp + 0x4c], 0x26b44f20
mov dword [esp + 0x24], 0x1f33c7de
mov dword [esp + 0x10], 0x2e56cff9
mov dword [esp + 0x28], 0x6cde8df8
mov dword [esp + 0x14], 0x796abd53
mov dword [esp + 0x34], 0x3ce56ad4
mov dword [esp + 0x1c], 0x581868fc
mov dword [esp + 0x18], 0xc596c70
mov dword [esp + 0x3c], 0x6d5e9115
mov dword [esp + 0x30], 0x22f372d9
mov dword [esp + 0x40], 0x2ad541d0
mov dword [esp + 0x38], 0x7a5f7c43
mov dword [esp + 0x2c], 0x28d520e
mov dword [esp + 0x48], 0x73f3bc07
mov dword [esp + 0x44], 0x51f578e1
add dword [esp + 0x4c], 0x73e38130
mov eax, 0x3a9c3a87
mul dword [esp + 0x20]
mov eax, dword [esp + 0x20]
add dword [esp + 0x24], 0x6b053f58
add dword [esp + 0x20], 0x2818faf9
add dword [esp + 0x4c], 0x3ab2fc3
sub dword [esp + 0x20], 0x30ad2d47
sub dword [esp + 0x20], 0x4442fc9b
sub dword [esp + 0x28], 0x2285667
add dword [esp + 0x4c], 0x262c99c6
sub dword [esp + 0x14], 0x4dc74448
mov eax, 0x53cf4e1b
mul dword [esp + 0x24]
mov eax, dword [esp + 0x24]
add dword [esp + 0x24], 0x1b067f32
mov eax, 0x67698c83
mul dword [esp + 0x14]
mov eax, dword [esp + 0x14]
sub dword [esp + 0x28], 0x7674af1e
mov eax, 0x173863dd
mul dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov eax, 0x3d786fdd
mul dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
mov eax, 0x38471b91
mul dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov eax, 0x45f07edf
mul dword [esp + 0x4c]
mov eax, dword [esp + 0x4c]
add dword [esp + 0x18], 0x6fea1ecd
sub dword [esp + 0x34], 0x32f1f16e
add dword [esp + 0x34], 0x6e380599
sub dword [esp + 0x18], 0x3ca08c1e
add dword [esp + 0x30], 0x154e8e1
add dword [esp + 0x14], 0x53bb032d
sub dword [esp + 0x14], 0x11166d6c
sub dword [esp + 0x18], 0x2a6a1594
add dword [esp + 0x14], 0x4fb1fe05
mov eax, 0x4b3ce8e6
mul dword [esp + 0x34]
mov eax, dword [esp + 0x34]
add dword [esp + 0x3c], 0x1bc84bb6
sub dword [esp + 0x30], 0x687c0c2b
add dword [esp + 0x48], 0x36e578c2
sub dword [esp + 0x10], 0x7b5e58ec
mov eax, 0x38d0a1fb
mul dword [esp + 0x48]
mov eax, dword [esp + 0x48]
sub dword [esp + 0x40], 0x15793cf4
mov edx, dword [0x448664]
mov dword [0x7f8eb0], edx
call fcn.00414b40
pop edi
xor eax, eax
pop esi
pop ebp
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4062a1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push edi
lea eax, [ebp - 4]
mov ebx, ecx
push eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x40642a
push esi
xor esi, esi
cmp dword [ebp - 4], esi
jle 0x406422
push 0x401cdc
push dword [edi + esi*4]
call dword [sym.imp.MSO.dll_Ordinal_6776]
pop ecx
pop ecx
test eax, eax
jne 0x406310
inc esi
cmp esi, dword [ebp - 4]
jge 0x406422
push 0xc8
lea eax, [ebx + 0x1d8]
push eax
push dword [edi + esi*4]
call fcn.00404e78
jmp 0x406419
push 0x401cec
push dword [edi + esi*4]
call dword [sym.imp.MSO.dll_Ordinal_6776]
pop ecx
pop ecx
test eax, eax
je 0x40633c
push 0x401cf8
push dword [edi + esi*4]
call dword [sym.imp.MSO.dll_Ordinal_6776]
pop ecx
pop ecx
test eax, eax
jne 0x406418
cmp dword [ebx + 0x374], 0
jne 0x406418
push 0x401cf8
push dword [edi + esi*4]
call dword [sym.imp.MSO.dll_Ordinal_6776]
pop ecx
pop ecx
test eax, eax
jne 0x406364
mov byte [ebx + 0x378], 1
inc esi
mov dword [ebx + 0x374], 0x401868
cmp esi, dword [ebp - 4]
jge 0x406418
push 0x2e
push dword [edi + esi*4]
call dword [sym.imp.MSVCR100.dll_wcsrchr]
pop ecx
pop ecx
push 0x401d0c
push dword [edi + esi*4]
mov dword [ebp - 8], eax
call fcn.00404eb8
test al, al
je 0x4063c4
xor eax, eax
inc eax
mov ecx, 0x401878
cmp dword [ecx], 5
je 0x4063b4
add ecx, 0x10
inc eax
cmp ecx, 0x4018e8
jl 0x4063a1
jmp 0x406418
shl eax, 4
add eax, 0x401868
mov dword [ebx + 0x374], eax
jmp 0x406418
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x406418
add ecx, 2
xor ebx, ebx
mov eax, 0x40187c
mov dword [ebp - 8], ecx
inc ebx
mov dword [ebp - 0x10], eax
push dword [eax + 4]
push dword [eax]
push ecx
call fcn.0040642e
test al, al
jne 0x406404
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
add eax, 0x10
inc ebx
mov dword [ebp - 0x10], eax
cmp eax, 0x4018ec
jl 0x4063dc
mov ebx, dword [ebp - 0xc]
jmp 0x406418
mov eax, dword [ebp - 0xc]
shl ebx, 4
add ebx, 0x401868
mov dword [eax + 0x374], ebx
mov ebx, eax
inc esi
cmp esi, dword [ebp - 4]
jl 0x4062d9
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop edi
pop ebx
leave
ret
Function at 0x409a3a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x4124e6
call fcn.004102f0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x409a9b
call fcn.004078b7
mov esi, eax
jmp 0x409b73
push dword [ebp - 0x41c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x409ab9
call fcn.004078b7
jmp 0x409b6a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x409aaf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x41c], esi
cmp eax, esi
jae 0x409aec
mov esi, 0x8007000e
jmp 0x409b6c
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00409be9
mov dword [ebp - 4], 1
jmp 0x409b20
cmp dword [ebp - 0x418], 0
je 0x409ae2
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x420]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x409aaf
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.00408853
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x409b8c
lea ecx, [ebp - 0x418]
call fcn.00409c3b
lea ecx, [ebp - 0x428]
call fcn.00407820
mov eax, esi
call fcn.00410349
ret 0x10
Function at 0x40d2dc
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x403a2c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
xor eax, eax
xor ebx, ebx
push 0x402f48
lea ecx, [ebp - 0x638]
mov dword [ebp - 0x624], 7
mov dword [ebp - 0x628], ebx
mov word [ebp - 0x638], ax
call fcn.00405399
lea eax, [ebp - 0x638]
push eax
push 2
call dword [sym.imp.MSO.dll_Ordinal_5219]
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x638]
call fcn.00405cfa
mov eax, dword [esi + 0x140]
test eax, eax
jne 0x40d36b
push 0x27c0
call fcn.00411894
push ebx
push 3
lea ecx, [esi + 0x5c]
call fcn.0040adfc
push ebx
push ebx
mov ecx, esi
call fcn.0040d1d1
jmp 0x40d494
cmp dword [eax], ebx
lea eax, [ebp - 0x20c]
jne 0x40d3a5
push 0x104
push eax
push 0x4000002
push dword [0x416c78]
call dword [sym.imp.MSO.dll_Ordinal_8085]
push ebx
lea eax, [ebp - 0x20c]
lea edi, [esi + 0x5c]
push eax
mov ecx, edi
call fcn.0040b2af
push ebx
push ebx
jmp 0x40d431
cmp byte [esi + 0x144], bl
mov ebx, dword [sym.imp.MSO.dll_Ordinal_8085]
mov edi, 0x104
push edi
push eax
je 0x40d3c1
push 0x4000004
jmp 0x40d3c6
push 0x4000003
push dword [0x416c78]
call ebx
push edi
lea eax, [ebp - 0x414]
push eax
push 0x4000005
push dword [0x416c78]
call ebx
push edi
lea eax, [ebp - 0x61c]
push eax
mov eax, dword [esi + 0x140]
push dword [eax + 0xc]
push dword [0x416c78]
call ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x20c]
lea edi, [esi + 0x5c]
push eax
mov ecx, edi
call fcn.0040b2af
push ebx
lea eax, [ebp - 0x414]
push eax
mov ecx, edi
call fcn.0040b2fd
push ebx
lea eax, [ebp - 0x61c]
push eax
mov ecx, edi
call fcn.0040b34b
push ebx
push 1
mov ecx, edi
call fcn.0040b399
push dword [0x4162b4]
call dword [sym.imp.MSO.dll_Ordinal_7964]
push 0
push 0
mov ebx, eax
call dword [sym.imp.MSO.dll_Ordinal_8209]
test al, al
je 0x40d467
test ebx, ebx
je 0x40d467
cmp byte [esi + 0x144], 0
jne 0x40d467
mov al, 1
xor ebx, ebx
jmp 0x40d46b
xor ebx, ebx
mov al, bl
push ebx
push eax
mov ecx, edi
call fcn.0040b3e7
cmp byte [esi + 0x144], 0
push ebx
sete al
movzx eax, al
push eax
mov ecx, edi
call fcn.0040b435
push ebx
push 2
mov ecx, edi
call fcn.0040adfc
mov eax, dword [esi + 0x54]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x58]
mov dword [ebp - 0x63c], eax
test eax, eax
je 0x40d504
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetForegroundWindow]
call ebx
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push eax
call esi
mov ecx, dword [ebp - 0x63c]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x3c]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [ebp - 0x63c]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x3c]
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
call ebx
push eax
call edi
push eax
call esi
push 1
push dword [0x4162a0]
call dword [sym.imp.MSO.dll_Ordinal_121]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f678
leave
ret
Function at 0x40e52b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x403a2c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 0x49
mov esi, ecx
mov dword [ebp - 0x22c], ebx
call dword [sym.imp.MSO.dll_Ordinal_1648]
mov edi, eax
test edi, edi
je 0x40e5e4
xor eax, eax
push 0x4034b0
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], ebx
mov word [ebp - 0x228], ax
call fcn.00405399
lea eax, [ebp - 0x228]
push eax
push 2
call dword [sym.imp.MSO.dll_Ordinal_5219]
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x228]
call fcn.00405cfa
push 0x4034f4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40e5e4
push 0xf
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x40350c
push 0x403528
lea ecx, [esi + 0x5c]
call fcn.0040b82c
push eax
call edi
mov dword [ebp - 0x22c], eax
jmp 0x40e5ea
mov eax, dword [ebp - 0x22c]
test eax, eax
jns 0x40e624
lea eax, [ebp - 0x22c]
push eax
push 0x403530
push 2
call fcn.0040ec64
lea ecx, [esi + 0x5c]
call fcn.0040b82c
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x230]
push eax
push 0x403588
push 2
call fcn.0040ecc0
jmp 0x40e633
lea ecx, [esi + 0x5c]
call fcn.0040b82c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x22c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f678
leave
ret

Function at 0x40f5ba
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x403a2c], eax
je 0x40f5dc
cmp dword [0x403a2c], ebx
jne 0x40f675
push esi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x403a2c
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [0x403a2c], esi
test esi, esi
jne 0x40f64b
mov dword [0x403a2c], ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov esi, 0x403a2c
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push esi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x403a2c]
not eax
mov dword [0x416a24], eax
pop esi
pop ebx
leave
ret

Function at 0x40f678
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403a2c]
jne fcn.0041041f
ret
Function at 0x40f8f1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x4013bc
push SysReAllocString
mov dword [ebp - 8], ebx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40f98f
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x40f985
push 4
pop esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x403a44
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f985
cmp dword [ebp + 8], esi
jne 0x40f985
mov esi, dword [ebp - 0xc]
cmp esi, 3
ja 0x40f985
cmp dword [ebp - 4], ebx
je 0x40f977
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x40f981
push dword [ebp - 8]
call edi
mov eax, esi
jmp 0x40f99b
cmp dword [ebp - 4], ebx
je 0x40f98f
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x40f999
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4