joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e79b
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x660
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x24], 0x10
jbe 0x40e86f
push 0x250
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0041c9b0
add esp, 0xc
lea ecx, [esp + 0x258]
call fcn.0040494a
push dword [esi + 0x20]
mov eax, ecx
push str._s.
push eax
call fcn.004011fb
add esp, 0xc
lea eax, [esp + 8]
push eax
push dword [esp + 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40e864
test byte [esp + 8], 0x10
jne 0x40e844
lea eax, [esp + 0x34]
push eax
push dword [esi + 0x20]
lea eax, [esp + 0x260]
push 0x470f90
push eax
call fcn.004011fb
add esp, 0x10
mov ecx, esi
push dword [esp + 0x25c]
call fcn.0040e4c7
test al, al
je 0x40e844
push dword [esp + 0x25c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [esi + 0xc849], 0
jne 0x40e85d
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40e801
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esi + 0x93c0]
mov eax, dword [ecx]
call dword [eax + 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e9ef
Capabilities:
Reference wmi statements

Disassembly:
sub esp, 0x130
push ebx
push ebp
push esi
mov esi, dword [esp + 0x140]
mov ebp, ecx
push edi
test esi, esi
je 0x40ebba
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], 0x80
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x30], 0x46fc00
mov word [esp + 0x40], ax
xor ebx, ebx
mov eax, dword [esi]
push str.SELECT__FROM_Win32_VideoController
mov dword [esp + 0x18], ebx
mov dword [esp + 0x3c], ebx
mov eax, dword [eax + 0x50]
mov dword [esp + 0x1c], eax
call fcn.0040e8a1
mov edi, dword [eax]
test edi, edi
je 0x40ea54
mov edi, dword [edi]
jmp 0x40ea56
mov edi, ebx
push 0x471bf0
lea ecx, [esp + 0x14]
call fcn.0040e8a1
mov eax, dword [eax]
test eax, eax
je 0x40ea6e
mov eax, dword [eax]
jmp 0x40ea70
mov eax, ebx
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0x30
push edi
push eax
push esi
call dword [esp + 0x30]
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0040e913
lea ecx, [esp + 0x1c]
call fcn.0040e913
test esi, esi
js 0x40ebb6
jmp 0x40eb92
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ebx
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov eax, dword [ecx]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
test eax, eax
jne 0x40eba6
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40eba6
cmp dword [esp + 0x18], ebx
je 0x40eba0
lea edi, [esp + 0x20]
mov esi, str.Caption
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ecx]
lea edx, [esp + 0x20]
push ebx
push ebx
push edx
push ebx
push esi
push ecx
call dword [eax + 0x10]
test eax, eax
jns 0x40eb01
push str.n_a
jmp 0x40eb4e
movzx eax, word [esp + 0x20]
cmp eax, 3
je 0x40eb34
mov ecx, ebp
cmp eax, 8
je 0x40eb19
push str.n_a
jmp 0x40eb50
cmp dword [esp + 0x28], ebx
mov eax, 0x471bf8
cmovne eax, dword [esp + 0x28]
push eax
call fcn.0040e941
push 0x471c80
jmp 0x40eb4e
push dword [esp + 0x28]
lea eax, [esp + 0x34]
push 0x471c00
push eax
call fcn.004011fb
add esp, 0xc
push dword [esp + 0x34]
mov ecx, ebp
call fcn.0040e941
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40eb65
sub ecx, edx
sar ecx, 1
lea esi, [esi + ecx*2]
add esi, 2
cmp word [esi], bx
je 0x40eb88
mov ecx, dword [esp + 0x10]
jmp 0x40eae7
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x40eaa0
jmp 0x40ebb4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40ebb4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov bl, 1
mov al, bl
jmp 0x40ebbc
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 0xc
Function at 0x40ebc9
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x40ebed
cmp eax, 0x80010106
jne 0x40ecb5
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x40ec0d
cmp eax, 0x80010119
jne 0x40ecaf
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push 0x45f8ac
push 1
push ebx
push 0x45f8bc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40ecaf
mov eax, dword [ebp - 8]
test eax, eax
je 0x40ecaf
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xc]
mov eax, dword [eax]
push str.ROOTCIMV2
mov esi, dword [eax + 0xc]
call fcn.0040e8a1
mov eax, dword [eax]
test eax, eax
je 0x40ec55
mov eax, dword [eax]
jmp 0x40ec57
mov eax, ebx
lea ecx, [ebp - 4]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push dword [ebp - 8]
call esi
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.0040e913
test esi, esi
js 0x40eca6
cmp dword [ebp - 4], ebx
je 0x40eca6
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x40ec9d
push ecx
push ecx
push dword [ebp - 4]
mov ecx, edi
call fcn.0040e9ef
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40ecba
sub ecx, edx
sar ecx, 1
je 0x40ecdf
cmp word [edi + ecx*2 - 2], 0x7c
jne 0x40ecdf
sub ecx, 1
push 0
pop eax
mov word [edi + ecx*2], ax
jne 0x40eccb
mov esi, 0x471c80
jmp 0x40ecec
push 0x2c
pop ecx
mov word [eax], cx
push esi
push edi
call fcn.0041bcae
pop ecx
pop ecx
test eax, eax
jne 0x40ece6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ecfe
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x4bb000]
sub esp, 0x604
push ebx
push esi
push edi
test eax, eax
jne 0x40ed30
push 0x45f8cc
push 0x200000
call fcn.0041aafd
mov dword [0x4bb000], eax
pop ecx
pop ecx
test eax, eax
je 0x40ed35
xor ecx, ecx
mov word [eax], cx
xor ebx, ebx
cmp dword [0x4c649c], ebx
jne 0x40ed57
push 4
push 0x3000
push 0x22000
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x4c649c], eax
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [0x4c64a0], ebx
test eax, eax
je 0x40ed82
cmp word [eax], bx
je 0x40ed82
push eax
mov ecx, 0x4b9c6c
call fcn.00403489
jmp 0x40edd1
push dword [0x4b9c70]
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, 0x4b9c6c
call fcn.00403f19
push 0x470050
mov ecx, 0x4b9c6c
call fcn.0040380a
push dword [0x4b9c70]
call edi
cmp eax, 0xffffffff
jne 0x40edc2
push ebx
push dword [0x4b9c70]
call esi
push str.Crashes
mov ecx, 0x4b9c6c
call fcn.0040380a
push dword [0x4b9c70]
call edi
cmp eax, 0xffffffff
jne 0x40ede7
push ebx
push dword [0x4b9c70]
call esi
push str.MT5WEBSETUP
mov ecx, 0x4b9e84
call fcn.00403489
push str.MetaTrader_Web_Setup
mov ecx, 0x4ba09c
call fcn.00403489
mov eax, 0xd29
mov dword [0x4baf98], 0x1f4
mov dword [0x4baf9c], eax
mov ecx, 0x4ba2b4
mov dword [0x4bafa0], 0x255e
push ebx
mov dword [0x4c64d0], eax
call fcn.00403489
mov eax, dword [0x4baff8]
or eax, dword [0x4baffc]
jne 0x40ee52
push ebx
call fcn.0042a4e8
pop ecx
mov dword [0x4baff8], eax
mov dword [0x4baffc], edx
push str.25_Jul_2022
mov ecx, 0x4bafa4
call fcn.00403489
mov edi, 0x4ba8fc
mov ecx, edi
call fcn.00401b89
test al, al
je 0x40ef3a
push 0x200
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.0041c9b0
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [esp + 0x1c]
add esp, 0xc
push 0x100
push eax
push str.CLIENTNAME
call esi
test eax, eax
jne 0x40eeb8
push 0x100
lea eax, [esp + 0x14]
push eax
push str.COMPUTERNAME
call esi
test eax, eax
je 0x40eef1
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.00403489
push 0x100
lea eax, [esp + 0x14]
push eax
push str.USERDOMAIN
call esi
test eax, eax
je 0x40eef1
push 0x46cfb0
mov ecx, edi
call fcn.0040380a
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.0040380a
push 0x100
push 0x1fe
lea eax, [esp + 0x18]
mov edx, str.SOFTWAREMetaQuotes_SoftwareSettings
push eax
push str.MQL5.Login
mov ecx, closesocket
call fcn.00403d72
add esp, 0x10
test al, al
je 0x40ef3a
cmp word [esp + 0x10], bx
je 0x40ef3a
push str._for
mov ecx, edi
call fcn.0040380a
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.0040380a
mov esi, 0x400
lea eax, [esp + 0x210]
push esi
push ebx
push eax
call fcn.0041c9b0
add esp, 0xc
lea ecx, [esp + 0x210]
call fcn.0040ebc9
lea eax, [esp + 0x210]
mov ecx, 0x4bab14
push eax
call fcn.00403489
lea eax, [esp + 0x210]
mov byte [eax], bl
inc eax
sub esi, 1
jne 0x40ef76
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x40f3ea
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, ecx
push edi
test esi, esi
je 0x40f466
xor edi, edi
cmp word [esi], di
je 0x40f466
call fcn.0040f0c0
test al, al
je 0x40f466
push 0x471c84
push esi
push 0x471c8c
push 0xffffffffffffffff
lea eax, [ebp - 0x208]
push 0x103
push eax
call fcn.00401ea4
add esp, 0x18
lea eax, [ebp - 0x208]
push edi
push 0x80
push 2
push edi
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x40f466
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
jmp 0x40f468
xor al, al
pop edi
pop esi
leave
ret
Function at 0x40fd9e
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
cmp dword [esp + 0x10], 0
push ebx
push esi
je 0x40fe75
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x14], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x40fe75
mov eax, dword [0x4c64a4]
cmp esi, dword [0x4c64a8]
jbe 0x40fe15
test eax, eax
je 0x40fdf1
push 0x8000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [0x4c64a4], ebx
push 4
push 0x3000
push esi
push ebx
mov dword [0x4c64a8], ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x4c64a4], eax
test eax, eax
je 0x40fe75
mov dword [0x4c64a8], esi
push eax
push esi
push ebx
push dword [esp + 0x24]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40fe71
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x14]
push eax
push 0x46cfbc
push dword [0x4c64a4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40fe71
mov edx, dword [esp + 0x10]
test edx, edx
je 0x40fe71
mov eax, dword [esp + 0x1c]
mov ecx, dword [edx + 0x10]
mov edx, dword [edx + 0x14]
mov dword [eax], ecx
mov eax, dword [esp + 0x20]
mov dword [eax], edx
test ecx, ecx
je 0x40fe71
test edx, edx
je 0x40fe71
mov bl, 1
mov al, bl
jmp 0x40fe77
xor al, al
pop esi
pop ebx
add esp, 0xc
ret 0xc
Function at 0x410c7f
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push esi
mov esi, ecx
push edi
test esi, esi
je 0x410ca6
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call edi
cmp eax, 0xffffffff
je 0x410cac
test al, 0x10
jne 0x410d43
xor al, al
pop edi
pop esi
leave
ret
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x400]
push 0x200
push eax
call fcn.004290da
mov ax, word [ebp - 0x400]
lea esi, [ebp - 0x400]
add esp, 0x10
test ax, ax
je 0x410d1c
push 0x5c
movzx ecx, ax
pop eax
cmp cx, ax
jne 0x410d0c
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x400]
push eax
call edi
cmp eax, 0xffffffff
jne 0x410d06
push 0
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x410ca6
push 0x5c
pop eax
mov word [esi], ax
add esi, 2
push 0x5c
movzx eax, word [esi]
mov ecx, eax
test ax, ax
pop eax
jne 0x410cdb
lea eax, [ebp - 0x400]
push eax
call edi
cmp eax, 0xffffffff
jne 0x410d43
push 0
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
jmp 0x410ca8
mov al, 1
jmp 0x410ca8

Function at 0x410d4a
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push esi
push dword [0x4b9c70]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x410d71
mov ecx, dword [0x4b9c70]
call fcn.00410c7f
cmp word [0x4baf44], 0
je 0x410e4e
or dword [ebp - 8], 0xffffffff
lea ecx, [ebp - 0x228]
mov dword [ebp - 0xc], 0x4679a8
call fcn.00403625
push 0x4baf44
push dword [0x4b9e88]
mov eax, ecx
push dword [0x4b9c70]
push 0x472d00
push eax
call fcn.004011fb
add esp, 0x10
lea ecx, [ebp - 0xc]
push 2
push 3
push 0x40000000
push dword [ebp - 0x224]
call fcn.00401442
mov esi, dword [ebp - 8]
test al, al
je 0x410e2a
and dword [ebp - 4], 0
cmp esi, 0xffffffff
je 0x410df1
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x472cac
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [0x4bb000]
mov ecx, ebx
call fcn.0040938c
and dword [ebp - 4], 0
add eax, eax
cmp esi, 0xffffffff
je 0x410e2a
test ebx, ebx
je 0x410e20
test eax, eax
je 0x410e20
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
and dword [ebp - 0x224], 0
and dword [ebp - 0x220], 0
mov dword [ebp - 0x228], 0x4654d8
cmp esi, 0xffffffff
je 0x410e4e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
leave
ret
Function at 0x410f1f
Capabilities:
Create process memory minidump
Delete file

Disassembly:
sub esp, 0x224
xor eax, eax
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [esp + 0x238]
test edi, edi
je 0x410f4b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
push 0x4baf44
push dword [0x4b9e88]
lea eax, [esp + 0x30]
push dword [0x4b9c70]
push str._s_s._s.dmp
push 0xffffffffffffffff
push 0x103
push eax
call fcn.00401ea4
add esp, 0x1c
lea eax, [esp + 0x28]
xor ebp, ebp
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x411012
mov ecx, 0x4ba4cc
call fcn.00401b89
test al, al
je 0x410fb7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebp
jmp 0x410fdb
mov eax, dword [0x4ba4d0]
mov dword [esp + 0x20], 0x410e52
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x20]
push ecx
xor edx, edx
lea ecx, [esp + 0x18]
push ebp
test edi, edi
cmove ecx, edx
push ecx
push 0x61105
push ebx
push esi
push eax
call dword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x28]
push eax
call fcn.004112e6
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x224
ret 8
Function at 0x4112e6
Capabilities:
Encode data using xor
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xa30
push ebx
mov ebx, dword [esp + 0xa38]
xorps xmm0, xmm0
movlpd qword [esp + 0x14], xmm0
push ebp
push esi
push edi
test ebx, ebx
je 0x4114e2
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push ebp
push closesocket
push ebx
mov dword [esp + 0x30], ebp
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4114e2
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x411351
cmp dword [esp + 0x24], ebp
jne 0x411399
cmp dword [esp + 0x20], 0x10000000
ja 0x411399
push 0x4baf44
push dword [0x4b9e88]
lea eax, [esp + 0x40]
push dword [0x4b9c70]
push 0x472d00
push 0xffffffffffffffff
push 0x103
push eax
call fcn.00401ea4
add esp, 0x1c
lea eax, [esp + 0x38]
push ebp
push 0x80
push 3
push ebp
push 3
push 0xc0000000
push eax
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4113a5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4114e2
push 2
lea eax, [esp + 0x38]
xorps xmm0, xmm0
push eax
push ebp
push edi
movlpd qword [esp + 0x40], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0x50000
push eax
push edi
call ebp
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x14]
jne 0x4113e4
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [esp + 0x18], eax
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push edi
call ebp
push ebx
lea eax, [esp + 0x3c]
push 0x104
push eax
call fcn.0042305c
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x44]
push 0x4698c0
lea edx, [eax + eax]
call fcn.0044c57d
add esp, 0x10
lea eax, [esp + 0x10]
xor ebx, ebx
push ebx
push eax
mov eax, dword [esp + 0x20]
add eax, eax
push eax
lea eax, [esp + 0x44]
push eax
push edi
call ebp
push ebx
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x2c]
push eax
push edi
call ebp
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
jmp 0x4114b8
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x4114d6
xor eax, eax
mov ecx, eax
test edx, edx
je 0x4114a4
mov eax, ebx
and eax, 0xf
mov al, byte [eax*4 + 0x472d20]
add al, byte [esp + 0x14]
xor byte [esp + ecx + 0x240], al
inc ebx
movsx eax, byte [esp + ecx + 0x240]
inc ecx
mov dword [esp + 0x14], eax
cmp ecx, edx
jb 0x411479
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push edx
lea eax, [esp + 0x24c]
push eax
push edi
call ebp
xor eax, eax
push eax
lea eax, [esp + 0x20]
push eax
push 0x800
lea eax, [esp + 0x24c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411469
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa30
ret 4
Function at 0x412579
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, ecx
test edx, edx
jne 0x412589
push 0xd
pop eax
jmp 0x4125ce
push ebp
push esi
xor eax, eax
push edi
mov dword [esp + 0x18], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea ebp, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x18]
jne 0x41259b
sub ecx, ebp
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x412596
push esi
push edx
push 7
xor eax, eax
push eax
push dword [esp + 0x24]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x412b00
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
push ebx
mov ebx, ecx
lea ecx, [esp + 8]
push ebp
push esi
xor ebp, ebp
mov eax, dword [ebx + 4]
or eax, 0x2001f
mov dword [esp + 0x10], ebp
push eax
push dword [esp + 0x230]
mov dword [esp + 0x1c], ebp
push dword [ebx]
mov dword [esp + 0x24], ebp
call fcn.00412aa4
mov esi, eax
test esi, esi
jne 0x412bcf
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x100
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
push dword [esp + 0x2c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
call ebp
test eax, eax
jne 0x412ba4
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.00412b00
mov esi, eax
test esi, esi
jne 0x412bcf
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x2c]
call ebp
test eax, eax
je 0x412b69
jmp 0x412ba6
xor esi, esi
cmp dword [esp + 0x10], 0
je 0x412bbb
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], esi
push dword [esp + 0x22c]
mov ecx, ebx
mov dword [esp + 0x18], esi
call fcn.00412c8c
mov esi, eax
cmp dword [esp + 0x10], 0
je 0x412be0
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret 4
Function at 0x4134f9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x40c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
xor ebp, ebp
push edi
push 0x60
push ebp
push dword [esp + 0x428]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
call esi
mov edi, eax
push 2
pop eax
test edi, edi
jne 0x413549
push eax
push ebp
push dword [esp + 0x428]
call esi
mov edi, eax
test edi, edi
jne 0x413549
call fcn.0041208b
mov esi, eax
jmp 0x41360e
push dword [esp + 0x428]
push dword [esp + 0x428]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41356e
call fcn.0041208b
jmp 0x413601
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x413564
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x413594
mov esi, 0x8007000e
jmp 0x413603
push 2
pop ecx
mul ecx
cmp edx, ebp
ja 0x413630
jb 0x4135ac
cmp eax, 0xffffffff
ja 0x413630
cmp eax, 0x400
jbe 0x4135bf
push eax
lea ecx, [esp + 0x1c]
call fcn.00412069
jmp 0x4135c7
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], ebp
je 0x41358d
push esi
push dword [esp + 0x1c]
push esi
push ebx
push ebp
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x413564
mov eax, dword [esp + 0x18]
xor edx, edx
push dword [esp + 0x42c]
mov word [eax + ecx*2], dx
lea ecx, [esp + 0x14]
push dword [esp + 0x1c]
call fcn.004133d7
mov esi, eax
test edi, edi
je 0x41360e
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x1c]
cmp dword [esp + 0x18], eax
je 0x413621
lea ecx, [esp + 0x18]
call fcn.00412060
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x40c
ret 0x10
push 0x80070216
call fcn.00412969
int3
Function at 0x4143a7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov byte [ebp - 1], 1
push esi
push edi
mov ecx, dword [ebx + 0x54]
mov eax, ecx
and eax, 0xc
cmp al, 0xc
jne 0x4143f4
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0x10], eax
call edi
push dword [ebx + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call dword [sym.imp.USER32.dll_GetParent]
push dword [ebx + 4]
mov esi, eax
call edi
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0x4e
jmp 0x41441b
shr ecx, 2
test cl, 1
je 0x414424
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetParent]
mov edi, dword [ebx + 4]
mov esi, eax
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push edi
movzx eax, ax
push eax
push 0x111
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x414452
push 1
xor esi, esi
push esi
push esi
push dword [ebx + 0x28]
push 0x46cfdc
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 1]
jbe 0x414452
or byte [ebx + 0x58], 2
push 1
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret