joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b30
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
jne 0x402b86
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push edi
push edi
push eax
call fcn.0040e710
mov esi, eax
mov edi, edx
add esi, 0x1b0000
adc edi, 0x70
push edi
push esi
push 0x1c
push str..FileIOWin32.cpp
push str._S__d_nRet0x_016llX_n
call fcn.00401850
add esp, 0x14
mov eax, esi
mov edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x402bae
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esi + 0x214], eax
cmp eax, 0xffffffff
je 0x402bae
test al, 1
je 0x402bae
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, ebx
sub eax, 0
je 0x402be2
sub eax, 1
je 0x402bd1
sub eax, 1
jne 0x402bfb
push eax
push 0x80
push 2
push eax
push 3
push 0xc0000000
jmp 0x402bf1
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
jmp 0x402bf1
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp dword [esi + 8], 0xffffffff
jne 0x402c46
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push 0
push 0
push eax
call fcn.0040e710
mov esi, eax
mov edi, edx
add esi, 0x4f0000
adc edi, 0x70
push edi
push esi
push 0x50
push str..FileIOWin32.cpp
push str._S__d_nRet0x_016llX_n
call fcn.00401850
add esp, 0x14
mov eax, esi
mov edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea edx, [esi + 0xc]
mov dword [esi + 4], 1
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x402c54
pop edi
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402c70
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
cmp dword [ecx + 4], edi
jne 0x402cd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push edi
push edi
push eax
call fcn.0040e710
mov esi, eax
mov edi, edx
add esi, 0x640000
adc edi, 6
push edi
push esi
push 0x65
push str..FileIOWin32.cpp
push str._S__d_nRet0x_016llX_n
call fcn.00401850
add esp, 0x14
mov eax, esi
mov edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp + 8]
cmp esi, edi
jne 0x402d1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push edi
push edi
push eax
call fcn.0040e710
mov esi, eax
mov edi, edx
add esi, 0x6b0000
adc edi, 0xb
push edi
push esi
push 0x6c
push str..FileIOWin32.cpp
push str._S__d_nRet0x_016llX_n
call fcn.00401850
add esp, 0x14
mov eax, esi
mov edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ecx + 8]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x14]
mov dword [esi], eax
mov eax, edi
pop edi
mov dword [esi + 4], edx
pop esi
mov edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402d40
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
cmp dword [ebx + 4], esi
jne 0x402d89
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push esi
push esi
push eax
call fcn.0040e710
mov esi, eax
add esi, 0x800000
mov edi, edx
adc edi, 6
push edi
push esi
push 0x81
jmp 0x402e77
mov edx, dword [ebp + 0xc]
mov eax, dword [ebx]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
push esi
push esi
push edx
mov edx, dword [eax + 0x10]
push ecx
mov ecx, ebx
call edx
mov esi, eax
movzx ecx, dx
xor eax, eax
or eax, ecx
mov edi, edx
mov dword [esp + 0x1c], edi
je 0x402dbe
push edi
push esi
push 0x88
jmp 0x402e77
mov eax, dword [ebp + 8]
cmp eax, dword [esp + 0x10]
jne 0x402dd0
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [esp + 0x14]
je 0x402dff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push 0
push 0
push eax
call fcn.0040e710
mov esi, eax
mov edi, edx
add esi, 0x8d0000
adc edi, 0x74
mov eax, esi
mov edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x402e38
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push 0
push 0
push eax
call fcn.0040e710
mov esi, eax
add esi, 0x930000
mov edi, edx
adc edi, 0x74
push edi
push esi
push 0x94
jmp 0x402e77
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileValidData]
test eax, eax
jne 0x402e89
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push 0
push 0
push eax
call fcn.0040e710
mov esi, eax
add esi, 0x9a0000
mov edi, edx
adc edi, 0x74
push edi
push esi
push 0x9b
push str..FileIOWin32.cpp
push str._S__d_nRet0x_016llX_n
call fcn.00401850
add esp, 0x14
mov edx, edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x403010
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [esp + 0xc], edi
cmp dword [ecx + 4], edi
jne 0x40306d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push edi
push edi
push eax
call fcn.0040e710
mov esi, eax
add esi, 0xe70000
mov edi, edx
adc edi, 6
push edi
push esi
push 0xe8
push str..FileIOWin32.cpp
push str._S__d_nRet0x_016llX_n
call fcn.00401850
add esp, 0x14
mov eax, esi
mov edx, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
mov ecx, dword [ecx + 8]
push edi
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebp + 8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4030b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push edi
push edi
push eax
call fcn.0040e710
mov esi, eax
add esi, 0xee0000
mov edi, edx
adc edi, 0x72
push edi
push esi
push 0xef
jmp 0x40304f
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x4030bf
mov edx, dword [esp + 0xc]
mov dword [eax], edx
mov edx, edi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4030d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [esp + 0xc], edi
cmp dword [ecx + 4], edi
jne 0x40312d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push edi
push edi
push eax
call fcn.0040e710
mov esi, eax
add esi, 0x1050000
mov edi, edx
adc edi, 6
push edi
push esi
push 0x106
push str..FileIOWin32.cpp
push str._S__d_nRet0x_016llX_n
call fcn.00401850
add esp, 0x14
mov eax, esi
mov edx, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
mov ecx, dword [ecx + 8]
push edi
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebp + 8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4031a6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x70
je 0x40317b
call esi
push 0x10000
push edi
push edi
push eax
call fcn.0040e710
mov esi, eax
add esi, 0x10c0000
mov edi, edx
adc edi, 0x73
push edi
push esi
push 0x10d
jmp 0x40310f
call esi
push 0x10000
push edi
push edi
push eax
call fcn.0040e710
mov esi, eax
add esi, 0x10c0000
mov edi, edx
adc edi, 0xc2
push edi
push esi
push 0x10d
jmp 0x40310f
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x4031b3
mov edx, dword [esp + 0xc]
mov dword [eax], edx
mov edx, edi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x403510
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
xor ebx, ebx
cmp dword [esi + 4], edi
jne 0x403569
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push edi
push edi
push eax
call fcn.0040e710
mov esi, eax
mov edi, edx
add esi, 0x1a50000
adc edi, 6
push edi
push esi
push 0x1a6
push str..FileIOWin32.cpp
push str._S__d_nRet0x_016llX_n
call fcn.00401850
add esp, 0x14
mov eax, esi
mov edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x403589
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0xffffffff
mov eax, dword [esi + 0x214]
cmp eax, 0xffffffff
je 0x4035a3
test al, 1
je 0x4035a3
push eax
lea ecx, [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [esi + 0x214], edi
mov dword [esi + 4], edi
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403a60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x224
mov eax, dword [0x41414c]
xor eax, esp
mov dword [esp + 0x21c], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x22]
push ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x18], 0
xor esi, esi
xor edi, edi
mov word [esp + 0x24], ax
call fcn.00407330
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0x20019
push edi
push str.SYSTEMSetup
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x403b09
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push edi
push edi
push eax
call fcn.0040e710
mov esi, eax
add esi, 0xbb0000
mov edi, edx
adc edi, 0x15
push edi
push esi
push 0xbc
push str..GetSystemVolume.cpp
push str._S__d_nRet0x_016llX_n
call fcn.00401850
add esp, 0x14
jmp 0x403ba7
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push str.SystemPartition
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x403b59
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push 0
push 0
push eax
call fcn.0040e710
mov esi, eax
add esi, 0xc80000
mov edi, edx
adc edi, 0x15
push edi
push esi
push 0xc9
jmp 0x403af2
mov ecx, dword [esp + 0x10]
inc ecx
cmp ecx, 0x104
jbe 0x403b94
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push 0
push 0
push eax
call fcn.0040e710
mov esi, eax
add esi, 0xcf0000
mov edi, edx
adc edi, 0xc
push edi
push esi
push 0xd0
jmp 0x403af2
lea edx, [esp + 0x18]
push edx
push 0x104
push ebx
call fcn.00404d17
add esp, 0xc
mov eax, dword [esp + 0xc]
test eax, eax
je 0x403bb6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x224]
mov edx, edi
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004049d2
add esp, 0x224
ret
Function at 0x4040e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
lea eax, [esp + 8]
push eax
push 0x20019
xor edi, edi
push edi
push str.SYSTEMCurrentControlSetControl
push 0x80000002
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404141
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push edi
push edi
push eax
call fcn.0040e710
mov esi, eax
add esi, 0x1980000
mov edi, edx
adc edi, 0xe
push edi
push esi
push 0x199
jmp 0x40418f
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push str.FirmwareBootDevice
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4041a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push 0
push 0
push eax
call fcn.0040e710
mov esi, eax
add esi, 0x1a60000
mov edi, edx
adc edi, 0xe
push edi
push esi
push 0x1a7
push str..GetSystemVolume.cpp
push str._S__d_nRet0x_016llX_n
call fcn.00401850
add esp, 0x14
mov eax, dword [esp + 8]
test eax, eax
je 0x4041b0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, edi
pop edi
mov eax, esi
pop esi
add esp, 8
ret 8
Function at 0x4043f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x440
mov eax, dword [0x41414c]
xor eax, esp
mov dword [esp + 0x43c], eax
mov eax, dword [esp + 0x444]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x206
lea edx, [esp + 0x246]
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x34], ebx
xor ebp, ebp
mov dword [esp + 0x30], ebx
mov word [esp + 0x24c], cx
call fcn.00407330
add esp, 0xc
push 0x206
lea ecx, [esp + 0x3e]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x44], ax
call fcn.00407330
add esp, 0xc
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.00403750
mov esi, eax
movzx ecx, dx
xor eax, eax
add esp, 8
or eax, ecx
mov edi, edx
mov dword [esp + 0x1c], edi
je 0x4044a3
push edi
push esi
push 0xd9
push str.d:workspaceWinToHDDincludeWinVersion.h
push str._S__d_nRet0x_016llX_n
call fcn.00401850
add esp, 0x14
jmp 0x4044b3
cmp dword [esp + 0x2c], 6
sbb ebp, ebp
inc ebp
xor esi, esi
xor edi, edi
mov dword [esp + 0x1c], edi
movzx ecx, word [esp + 0x1c]
xor eax, eax
or eax, ecx
je 0x4044d9
push edi
push esi
push 0x1f
push str..GetOSType.cpp
push str._S__d_nRet0x_016llX_n
call fcn.00401850
add esp, 0x14
jmp 0x4045e2
cmp ebp, ebx
jne 0x4044ec
mov ecx, dword [esp + 0x14]
mov dword [ecx], 1
jmp 0x4045e2
lea edx, [esp + 0x24]
push edx
call fcn.004038a0
mov esi, eax
movzx ecx, dx
xor eax, eax
add esp, 4
or eax, ecx
mov edi, edx
mov dword [esp + 0x1c], edi
je 0x404510
push edi
push esi
push 0x2c
jmp 0x4044c2
cmp dword [esp + 0x24], ebx
jne 0x404584
push 0x104
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x404553
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push ebx
push ebx
push eax
call fcn.0040e710
mov esi, eax
add esi, 0x330000
mov edi, edx
adc edi, 0x15
push edi
push esi
push 0x34
jmp 0x4044c2
mov ax, word [esp + 0x38]
mov ecx, 0x78
cmp cx, ax
je 0x404578
mov edx, 0x58
cmp dx, ax
je 0x404578
mov eax, dword [esp + 0x14]
mov dword [eax], 1
jmp 0x4045e2
mov ecx, dword [esp + 0x14]
mov dword [ecx], 2
jmp 0x4045e2
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x244]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x34], 0x104
call fcn.00404600
mov esi, eax
movzx eax, dx
add esp, 0xc
or ebx, eax
mov edi, edx
mov dword [esp + 0x1c], edi
je 0x4045be
push edi
push esi
push 0x47
jmp 0x4044c2
push 9
lea edx, [esp + 0x244]
push str.WindowsPE
push edx
call fcn.0040f8df
mov ecx, dword [esp + 0x20]
add esp, 0xc
neg eax
sbb eax, eax
add eax, 2
mov dword [ecx], eax
mov ecx, dword [esp + 0x44c]
mov edx, edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004049d2
add esp, 0x440
ret
Function at 0x404600
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
lea eax, [esp + 0xc]
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
xor esi, esi
push 0x80000002
mov dword [esp + 0x18], 0
xor edi, edi
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, 2
jne 0x404672
push eax
push 0x19
push str..RegMisc.cpp
push str._S__d_dwErrNo0x_x_n
call fcn.00401850
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push edi
push edi
push eax
call fcn.0040e710
mov esi, eax
add esi, 0x1a0000
mov edi, edx
adc edi, 0x13
push edi
push esi
push 0x1b
jmp 0x404816
test eax, eax
je 0x4046b6
push eax
push 0x20
push str..RegMisc.cpp
push str._S__d_dwErrNo0x_x_n
call fcn.00401850
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push 0
push 0
push eax
call fcn.0040e710
mov esi, eax
add esi, 0x210000
mov edi, edx
adc edi, 0x15
push edi
push esi
push 0x22
jmp 0x404816
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40477c
cmp dword [esp + 0x20], esi
je 0x40477c
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push eax
push ebp
push eax
push str.InstallationType
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x404729
push eax
push 0x2b
push str..RegMisc.cpp
push str._S__d_dwErrNo0x_x_n
call fcn.00401850
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push 0
push 0
push eax
call fcn.0040e710
mov esi, eax
add esi, 0x2c0000
mov edi, edx
adc edi, 0x13
push edi
push esi
push 0x2d
jmp 0x404816
test eax, eax
je 0x40476d
push eax
push 0x32
push str..RegMisc.cpp
push str._S__d_dwErrNo0x_x_n
call fcn.00401850
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push 0
push 0
push eax
call fcn.0040e710
mov esi, eax
add esi, 0x330000
mov edi, edx
adc edi, 0x15
push edi
push esi
push 0x34
jmp 0x404816
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
jmp 0x404828
mov edx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x14]
push ebp
push 0
push str.InstallationType
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x4047d7
push eax
push 0x3f
push str..RegMisc.cpp
push str._S__d_dwErrNo0x_x_n
call fcn.00401850
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push 0
push 0
push eax
call fcn.0040e710
mov esi, eax
add esi, 0x400000
mov edi, edx
adc edi, 0x13
push edi
push esi
push 0x41
jmp 0x404816
test eax, eax
je 0x404828
push eax
push 0x46
push str..RegMisc.cpp
push str._S__d_dwErrNo0x_x_n
call fcn.00401850
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push 0
push 0
push eax
call fcn.0040e710
mov esi, eax
add esi, 0x470000
mov edi, edx
adc edi, 0x15
push edi
push esi
push 0x48
push str..RegMisc.cpp
push str._S__d_nRet0x_016llX_n
call fcn.00401850
add esp, 0x14
mov eax, dword [esp + 0xc]
test eax, eax
je 0x404837
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, edi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 8
ret
Function at 0x4049d2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41414c]
jne 0x4049dc
repz ret
jmp fcn.00406d92

Function at 0x40b58d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004065ac
and dword [ebp - 4], 0
cmp dword [0x415a1c], 0
mov ebx, eax
jne 0x40b63e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b6ef
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b6ef
push eax
call fcn.0040653a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x415a1c], eax
call esi
push eax
call fcn.0040653a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x415a20], eax
call esi
push eax
call fcn.0040653a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x415a24], eax
call esi
push eax
call fcn.0040653a
pop ecx
mov dword [0x415a2c], eax
test eax, eax
je 0x40b63e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040653a
pop ecx
mov dword [0x415a28], eax
mov eax, dword [0x415a28]
cmp eax, ebx
je 0x40b696
cmp dword [0x415a2c], ebx
je 0x40b696
push eax
call fcn.004065b5
push dword [0x415a2c]
mov esi, eax
call fcn.004065b5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b696
test edi, edi
je 0x40b696
call esi
test eax, eax
je 0x40b68d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b68d
test byte [ebp - 0xc], 1
jne 0x40b696
or dword [ebp + 0x10], 0x200000
jmp 0x40b6cf
mov eax, dword [0x415a20]
cmp eax, ebx
je 0x40b6cf
push eax
call fcn.004065b5
pop ecx
test eax, eax
je 0x40b6cf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b6cf
mov eax, dword [0x415a24]
cmp eax, ebx
je 0x40b6cf
push eax
call fcn.004065b5
pop ecx
test eax, eax
je 0x40b6cf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x415a1c]
call fcn.004065b5
pop ecx
test eax, eax
je 0x40b6ef
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b6f1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4484ab
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4484d9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4484f7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00448415
jmp 0x4484f7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4484f7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00448415
test edi, edi
mov eax, edi
jne 0x4484e1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x5726ec]
test ecx, ecx
je 0x4485aa
jmp 0x4484aa
ret 8

Function at 0x430002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp int.00401219
Function at 0x4010bf
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x29c]
sub esp, 0x31c
mov eax, dword [0x404140]
xor eax, ebp
mov dword [ebp + 0x298], eax
push ebx
push esi
lea eax, [ebp + 0x194]
push eax
mov esi, 0x104
xor ebx, ebx
push esi
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp + 0x194]
push str._unins_stmc.bat
push eax
call sub.MSVCR90.dll_strcat
pop ecx
pop ecx
push esi
lea eax, [ebp + 0x90]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x90]
push eax
lea eax, [ebp - 0x74]
push eax
call sub.MSVCR90.dll_strcpy
lea eax, [ebp - 0x74]
push 0x5c
push eax
call dword [sym.imp.MSVCR90.dll_strrchr]
add esp, 0x10
cmp eax, ebx
je 0x40113b
mov byte [eax], bl
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
je 0x401205
lea eax, [ebp + 0x90]
push edi
push eax
call sub.MSVCR90.dll_strlen
mov esi, eax
mov edi, str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_ndel___s_
imul esi, esi, 3
push edi
call sub.MSVCR90.dll_strlen
add esi, eax
lea eax, [ebp + 0x194]
push eax
call sub.MSVCR90.dll_strlen
lea eax, [eax + esi + 0x32]
push eax
mov dword [ebp - 0x80], eax
call dword [sym.imp.MSVCR90.dll_malloc]
push dword [ebp - 0x80]
mov esi, eax
push ebx
push esi
call sub.MSVCR90.dll_memset
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp + 0x90]
push eax
push eax
push edi
push esi
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x30
push ebx
lea eax, [ebp - 0x7c]
push eax
push esi
call sub.MSVCR90.dll_strlen
pop ecx
push eax
push esi
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push ebx
lea eax, [ebp + 0x194]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
cmp esi, ebx
je 0x401205
push esi
call dword [sym.imp.MSVCR90.dll_free]
pop ecx
mov ecx, dword [ebp + 0x298]
pop esi
xor ecx, ebp
pop ebx
call fcn.004019cc
add ebp, 0x29c
leave
ret