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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x427289
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4362ec]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov eax, dword [0x4362ec]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov ebx, edx
xor edi, edi
push edi
mov esi, ecx
mov dword [esp + 0x20], ebx
call fcn.00408046
mov esi, dword [esi + 4]
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [esp + 0x30]
push eax
push edi
push edi
push edi
push esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x44], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
je 0x40abbe
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 4]
cmp dword [esp + 0x14], eax
jle 0x40ab40
mov edi, dword [esp + 0x14]
push 1
call fcn.004136ed
xor edi, edi
push 0x206
lea eax, [esp + 0x2a]
push edi
push eax
mov word [esp + 0x30], di
call fcn.00414b10
add esp, 0xc
xor esi, esi
cmp dword [esp + 0x14], edi
jbe 0x40abbe
push 0x104
lea eax, [esp + 0x28]
push eax
push esi
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x40abb7
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.00407ade
mov dword [esp + 0x240], edi
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x20]
call fcn.00407f08
or dword [esp + 0x240], 0xffffffff
cmp dword [esp + 0x18], edi
je 0x40abb7
lea ecx, [esp + 0x18]
call fcn.00407c65
inc esi
cmp esi, dword [esp + 0x14]
jb 0x40ab60
mov al, bl
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004147b8
mov esp, ebp
pop ebp
ret

Function at 0x40ac0c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x74
mov eax, 0x425346
call fcn.00424025
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x80], ebx
mov byte [ebp - 4], 1
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 8]
lea edx, [ebp - 0x7c]
push edx
push 0x20019
push ebx
push ecx
push eax
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40ac8f
mov edi, dword [ebp - 0x7c]
push 0x62
lea eax, [ebp - 0x72]
push ebx
push eax
mov dword [ebp - 0x80], edi
mov word [ebp - 0x74], bx
call fcn.00414b10
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push str.CurVer
push edi
mov dword [ebp - 0x7c], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ac8f
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x78]
call fcn.00407ade
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x78], ebx
mov dword [esi], eax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x80], ebx
je 0x40acab
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x80], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00406432
mov eax, esi
call fcn.004240a8
ret 4
Function at 0x40c55c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4362ec]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
lea ecx, [ebp - 0x210]
push ecx
push eax
push eax
mov ecx, ebx
or ecx, 0x8000
push ecx
push eax
mov byte [ebp - 0x211], al
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x40c5e8
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call fcn.00407ade
push dword [esi]
lea edi, [ebp - 0x218]
call fcn.00407832
mov edi, dword [eax]
mov ecx, esi
call fcn.00406432
cmp ebx, 0x1c
mov dword [esi], edi
mov byte [ebp - 0x211], 1
je 0x40c5d9
cmp ebx, 0x23
je 0x40c5d9
cmp ebx, 0x26
jne 0x40c5e8
push edi
push str._smicrosoft_officeoffice12_
jmp 0x40c5df
push edi
push str._smicrosoftofficegroove_
push esi
call fcn.00407ac5
add esp, 0xc
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x211]
xor ecx, ebp
pop edi
call fcn.004147b8
leave
ret

Function at 0x40cc50
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test esi, esi
je 0x40cc6a
mov ecx, eax
shr ecx, 4
and cl, 1
mov byte [esi], cl
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop ebp
ret 4
Function at 0x40d2e1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0xc
push ebx
push esi
push edi
mov edi, 0x9e3779b9
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, edi
mov dword [ebp - 0xc], esi
jb 0x40d3eb
push 0xc
pop esi
xor edx, edx
div esi
mov esi, dword [ebp - 0xc]
mov dword [ebp - 8], eax
movzx eax, byte [ecx + 7]
movzx edx, byte [ecx + 6]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 5]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 4]
add edx, edi
shl eax, 8
lea edi, [edx + eax]
movzx eax, byte [ecx + 0xb]
movzx edx, byte [ecx + 0xa]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 9]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 8]
add edx, esi
shl eax, 8
lea esi, [edx + eax]
movzx edx, byte [ecx + 3]
movzx eax, byte [ecx + 2]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 1]
shl edx, 8
add edx, eax
movzx eax, byte [ecx]
shl edx, 8
add edx, eax
sub edx, esi
sub edx, edi
sub edi, esi
mov eax, esi
shr eax, 0xd
add edx, ebx
xor edx, eax
sub edi, edx
mov eax, edx
shl eax, 8
xor edi, eax
sub esi, edi
sub esi, edx
mov eax, edi
shr eax, 0xd
xor esi, eax
sub edx, esi
sub edx, edi
mov eax, esi
shr eax, 0xc
xor edx, eax
sub edi, esi
sub edi, edx
mov eax, edx
shl eax, 0x10
xor edi, eax
sub esi, edi
sub esi, edx
mov eax, edi
shr eax, 5
xor esi, eax
sub edx, esi
mov eax, esi
shr eax, 3
sub edx, edi
xor edx, eax
sub edi, esi
mov ebx, edx
mov eax, ebx
shl eax, 0xa
sub edi, ebx
xor edi, eax
sub esi, edi
mov eax, edi
sub esi, ebx
shr eax, 0xf
xor esi, eax
add ecx, 0xc
sub dword [ebp - 4], 0xc
dec dword [ebp - 8]
jne 0x40d312
add esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
dec eax
cmp eax, 0xa
ja case.default.0x40d3f7
jmp dword [eax*4 + 0x40d4c5]
movzx eax, byte [ecx + 0xa]
shl eax, 0x18
add esi, eax
movzx eax, byte [ecx + 9]
shl eax, 0x10
add esi, eax
movzx eax, byte [ecx + 8]
shl eax, 8
add esi, eax
movzx eax, byte [ecx + 7]
shl eax, 0x18
add edi, eax
movzx eax, byte [ecx + 6]
shl eax, 0x10
add edi, eax
movzx eax, byte [ecx + 5]
shl eax, 8
add edi, eax
movzx eax, byte [ecx + 4]
add edi, eax
movzx eax, byte [ecx + 3]
shl eax, 0x18
add ebx, eax
movzx eax, byte [ecx + 2]
shl eax, 0x10
add ebx, eax
movzx eax, byte [ecx + 1]
shl eax, 8
add ebx, eax
movzx eax, byte [ecx]
add ebx, eax
sub ebx, esi
sub ebx, edi
sub edi, esi
mov eax, esi
shr eax, 0xd
xor ebx, eax
sub edi, ebx
mov eax, ebx
shl eax, 8
xor edi, eax
sub esi, edi
sub esi, ebx
mov eax, edi
shr eax, 0xd
xor esi, eax
sub ebx, esi
sub ebx, edi
sub edi, esi
mov eax, esi
shr eax, 0xc
xor ebx, eax
sub edi, ebx
mov eax, ebx
shl eax, 0x10
xor edi, eax
sub esi, edi
mov eax, edi
sub esi, ebx
shr eax, 5
xor esi, eax
mov eax, esi
sub ebx, eax
sub ebx, edi
mov ecx, eax
shr ecx, 3
xor ebx, ecx
sub edi, eax
sub edi, ebx
mov ecx, ebx
shl ecx, 0xa
xor edi, ecx
sub eax, edi
sub eax, ebx
shr edi, 0xf
xor eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40d868
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push dword [edi + 0xc]
call fcn.004103ce
mov esi, eax
test esi, esi
je 0x40d8e5
push esi
push edi
call fcn.0040d8ea
test al, al
je 0x40d8e5
mov eax, dword [esi + 0x3c]
and dword [ebp - 4], 0
add eax, esi
movzx ecx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
movzx eax, word [eax + 6]
mov ecx, dword [edi + 0xc]
sub ecx, esi
test eax, eax
mov dword [ebp - 8], eax
jbe 0x40d8e1
lea eax, [edx + 0x10]
push ebx
mov esi, dword [eax]
mov ebx, dword [eax - 8]
cmp esi, ebx
mov edx, dword [eax - 4]
ja 0x40d8ba
mov esi, ebx
cmp ecx, edx
jb 0x40d8c4
add esi, edx
cmp ecx, esi
jbe 0x40d8d4
inc dword [ebp - 4]
mov edx, dword [ebp - 4]
add eax, 0x28
cmp edx, dword [ebp - 8]
jb 0x40d8ac
jmp 0x40d8e0
mov eax, dword [ebp - 4]
inc eax
sub ecx, edx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
pop ebx
mov al, 1
jmp 0x40d8e7
xor al, al
pop esi
leave
ret

Function at 0x40d9b3
Capabilities:
Get file version info

Disassembly:
push 0x14
mov eax, 0x425273
call fcn.00424025
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
cmp ebx, edi
jne 0x40d9d2
mov ebx, 0x42df64
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp - 0x18], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
je 0x40da61
call fcn.0041d1a0
mov edi, esp
push edi
push esi
push dword [ebp - 0x18]
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x42ca90
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40da6e
mov eax, dword [ebp - 0x1c]
cmp word [eax + 0xc], 0
je 0x40da3f
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
lea eax, [ebp - 0x14]
push str._hu._02hu._hu._hu
push eax
call fcn.00407ac5
add esp, 0x18
jmp 0x40da6e
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
lea eax, [ebp - 0x14]
push str._hu._02hu._hu
push eax
call fcn.00407ac5
add esp, 0x14
jmp 0x40da6e
push str.0.0.0
lea ecx, [ebp - 0x14]
call fcn.00407ade
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
and dword [ebp - 0x14], 0
mov dword [esi], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406432
mov eax, esi
lea esp, [ebp - 0x30]
call fcn.004240a8
ret 4
Function at 0x40efdc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x480
mov eax, dword [0x4362ec]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x40f11d
push esi
push edi
xor esi, esi
mov dword [ebp - 0x43c], esi
lea edi, [ebp - 0x438]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x42c], 0xc
lea edi, [ebp - 0x428]
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x47c]
push esi
push eax
mov dword [ebp - 0x480], 0x44
call fcn.00414b10
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, 0x208
push edi
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x41a]
push esi
push eax
mov word [ebp - 0x41c], si
call fcn.00414b10
push edi
lea eax, [ebp - 0x20e]
push esi
push eax
mov word [ebp - 0x210], si
call fcn.00414b10
add esp, 0x18
lea eax, [ebp - 0x41c]
push eax
call fcn.0040f129
test eax, eax
je 0x40f11b
push ebx
push esi
xor edi, edi
push esi
inc edi
push edi
lea eax, [ebp - 0x42c]
push eax
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x424], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
push ebx
push dword [ebp - 0x420]
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x480]
push eax
push esi
push esi
push esi
push edi
push esi
push esi
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40f117
push dword [ebp - 0x43c]
call esi
push dword [ebp - 0x438]
call esi
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call esi
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004147b8
leave
ret

Function at 0x40f129
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.SoftwareMicrosoftWindows_NTCurrentVersionAeDebug
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f189
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x20a
push esi
push esi
push str.Debugger
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, esi
sete al
pop edi
mov esi, eax
mov eax, esi
pop esi
leave
ret 4
Function at 0x40f445
Capabilities:
Terminate process

Disassembly:
push 0x28
mov eax, 0x428084
call fcn.00423fef
mov ebx, ecx
push 0
call fcn.00409dab
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
cmp byte [ebp + 8], 0
je 0x40f483
test byte [0x439260], 0x10
je 0x40f483
push 0x666
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test byte [0x439260], 1
je 0x40f492
push ebx
call fcn.00411d86
test byte [0x439260], 2
je 0x40f4a1
push ebx
call fcn.0040f591
cmp byte [ebp + 8], 0
je 0x40f551
mov eax, dword [ebx]
mov ecx, SysReAllocStringLen
and eax, ecx
cmp eax, ecx
jne 0x40f551
mov al, byte [0x439260]
test al, 4
jne 0x40f4dd
test al, 8
je 0x40f551
mov esi, dword [0x439264]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, esi
jne 0x40f551
xor edi, edi
inc edi
mov dword [ebp + 8], edi
call fcn.00413cd0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], al
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 3
mov byte [ebp - 4], 4
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 5
mov esi, 0x43957c
mov dword [ebp - 0x14], esi
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 6
lea eax, [ebp - 0x34]
push eax
call fcn.0040f639
mov byte [ebp - 4], 5
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 7
mov byte [ebp - 4], 2
lea eax, [ebp - 0x34]
push eax
call fcn.0040f422
mov byte [ebp - 4], 1
push edi
call fcn.00413d2b
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call fcn.00406335
call fcn.00424094
ret 4

Function at 0x40f639
Capabilities:
Create thread

Disassembly:
push 0x14
mov eax, 0x426da3
call fcn.00423fbc
mov edi, dword [ebp + 8]
xor ebx, ebx
or esi, 0xffffffff
mov dword [edi], 0x40f413
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x20], esi
sete al
test al, al
jne 0x40f678
push 0x80004005
push 0x2e68367a
call fcn.00406375
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push 0x40f206
push ebx
push ebx
mov dword [ebp - 0x1c], 0x40f6f7
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], str.ErrorDlg
call fcn.00417822
add esp, 0x18
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x40f6ad
mov eax, esi
mov dword [ebp - 0x20], eax
cmp eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40f6c9
push esi
push eax
call edi
push dword [ebp - 0x20]
call ebx
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp + 8]
add ecx, 4
cmp dword [ecx], 0
jge 0x40f6d9
call fcn.0040877e
mov dword [ebp - 4], esi
cmp dword [ebp - 0x20], esi
je 0x40f6ef
push esi
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x20]
call ebx
mov dword [ebp - 0x20], esi
call fcn.00424094
ret 4
Function at 0x410e12
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi], 0
jne 0x410e5d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x42ed5c
mov byte [esi + 4], 1
call edi
push str.User32.dll
mov dword [esi + 0x10], eax
call edi
push str.kernel32.dll
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x410e5f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
pop edi
leave
ret

Function at 0x411830
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 4
push edi
mov esi, eax
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x24]
push 3
push 0xc0000000
push eax
add ebx, ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x41186b
xor eax, eax
jmp 0x4119a5
push edi
push ebx
push edi
push 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x41188a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411864
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x4118af
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 4]
call esi
jmp 0x411864
push dword [esi + 0x24]
push dword [esi + 0x20]
push ebx
push eax
call fcn.00414be5
add esp, 0x10
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 4]
call edi
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4118fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
call edi
push dword [ebp - 4]
call edi
jmp 0x411864
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 4]
push eax
mov dword [esi + 0x20], eax
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 8]
call edi
push dword [esi + 4]
call edi
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x411864
mov eax, dword [esi + 0x14]
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x411864
push ebx
push dword [esi + 0x24]
push ebx
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [esi + 8], eax
jne 0x411982
push dword [esi + 4]
call edi
or dword [esi + 4], 0xffffffff
jmp 0x411864
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esi + 0x20], eax
jne 0x41199f
push dword [esi + 8]
call edi
mov dword [esi + 8], ebx
jmp 0x411974
mov dword [esi + 0x1c], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4121d5
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x428006
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push edi
mov eax, dword [0x4362ec]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x50], ebx
push str._Data_created_
lea ecx, [esp + 0x10]
call fcn.00407ade
call fcn.004119aa
push eax
lea edi, [esp + 0x1c]
call fcn.004075f8
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov byte [esp + 0x50], 1
push dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
call fcn.00407a92
push 0x42d250
lea eax, [esp + 0x10]
push eax
call fcn.00407a92
push str._Type_
lea eax, [esp + 0x10]
push eax
call fcn.00407a92
push 1
lea edi, [esp + 0x1c]
call fcn.004075f8
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov byte [esp + 0x50], 2
push dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
call fcn.00407a92
push 0x42f000
lea eax, [esp + 0x10]
push eax
call fcn.00407a92
push 0x42f008
lea eax, [esp + 0x10]
push eax
call fcn.00407a92
push dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
call fcn.00407a92
push 0x42f00c
lea eax, [esp + 0x10]
push eax
call fcn.00407a92
mov dword [esp + 0x1c], 0x42f1d0
mov dword [esp + 0x30], ebx
mov byte [esp + 0x50], 3
mov dword [esp + 0x34], ebx
mov byte [esp + 0x50], 4
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x30], bl
mov dword [esp + 0x2c], ebx
call fcn.00411de7
mov byte [esp + 0x50], 5
push dword [esp + 0xc]
lea ecx, [esp + 0x20]
call fcn.004116b7
mov byte [esp + 0x50], 2
lea ecx, [esp + 0x1c]
call fcn.00411675
mov byte [esp + 0x50], 1
cmp dword [esp + 0x10], ebx
je 0x41231c
lea ecx, [esp + 0x10]
call fcn.00407c65
mov byte [esp + 0x50], bl
cmp dword [esp + 0x14], ebx
je 0x41232f
lea ecx, [esp + 0x14]
call fcn.00407c65
or dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0xc], ebx
je 0x412343
lea ecx, [esp + 0xc]
call fcn.00407c65
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4147b8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4362ec]
jne 0x4147c2
repz ret
jmp fcn.00417d5d

Function at 0x41d74b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00418849
xor ebx, ebx
cmp dword [0x43904c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41d820
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41d78b
xor eax, eax
jmp 0x41d8e4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x41d784
push eax
call fcn.004187e6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43904c], eax
call esi
push eax
call fcn.004187e6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x439050], eax
call esi
push eax
call fcn.004187e6
mov dword [0x439054], eax
lea eax, [ebp - 8]
push eax
call fcn.00418fd5
test eax, eax
pop ecx
pop ecx
je 0x41d7ee
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041746e
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41d820
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004187e6
cmp eax, ebx
pop ecx
mov dword [0x43905c], eax
je 0x41d820
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004187e6
pop ecx
mov dword [0x439058], eax
mov eax, dword [0x439058]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x41d899
cmp dword [0x43905c], esi
je 0x41d899
push eax
call fcn.00418852
pop ecx
call eax
cmp eax, ebx
je 0x41d866
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x43905c]
call fcn.00418852
pop ecx
call eax
test eax, eax
je 0x41d866
test byte [ebp - 0x18], 1
jne 0x41d899
lea eax, [ebp - 0xc]
push eax
call fcn.0041900c
test eax, eax
pop ecx
je 0x41d881
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041746e
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41d890
or dword [ebp + 0x10], 0x200000
jmp 0x41d8ca
or dword [ebp + 0x10], 0x40000
jmp 0x41d8ca
mov eax, dword [0x439050]
cmp eax, esi
je 0x41d8ca
push eax
call fcn.00418852
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41d8ca
mov eax, dword [0x439054]
cmp eax, esi
je 0x41d8ca
push dword [ebp - 4]
push eax
call fcn.00418852
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x43904c]
call fcn.00418852
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423a3f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4362ec]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004239d4
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00414b10
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x423a8e
cmp dword [ebp - 0x1c], 5
jb 0x423aa6
jmp 0x423aa2
cmp dword [ebp - 0x10], 1
jne 0x423aa6
cmp dword [ebp - 0x1c], 4
ja 0x423aa2
jne 0x423aa6
cmp dword [ebp - 0x18], 0
jbe 0x423aa6
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42ae0c
call fcn.004070e2
test eax, eax
jge 0x423ac7
mov byte [0x439698], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004147b8
add ebp, 0x78
leave
ret