joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a15d
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x185c
call fcn.0041b500
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x28]
call fcn.004037e2
push 0x103
lea eax, [esp + 0x1d4]
push eax
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
xor eax, eax
lea ecx, [esp + 0x28]
push eax
push 0x100
lea eax, [esp + 0x1d8]
push eax
call fcn.0040ef75
test al, al
je 0x40a329
mov ebx, dword [esp + 0x28]
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x40a329
mov esi, dword [ebx + 0x3c]
mov eax, esi
mov edi, dword [esp + 0x34]
cdq
cmp edx, edi
ja 0x40a329
mov edx, dword [esp + 0x30]
jb 0x40a1dd
cmp eax, edx
jae 0x40a329
cmp dword [esi + ebx], 0x4550
jne 0x40a329
mov ecx, dword [esi + ebx + 8]
test ecx, ecx
je 0x40a329
xor eax, eax
cmp eax, edi
ja 0x40a329
jb 0x40a20a
cmp ecx, edx
jae 0x40a329
cmp dword [ecx + ebx], 0x12d84cb
jne 0x40a329
cmp eax, edi
ja 0x40a329
jb 0x40a22b
cmp dword [ecx + ebx + 4], edx
jae 0x40a329
mov dword [esi + ebx + 0x58], eax
lea ebp, [ecx + 0x88]
mov dword [esi + ebx + 0x9c], eax
mov dword [esi + ebx + 0x98], eax
xor eax, eax
add ebp, dword [ecx + ebx + 4]
cmp eax, edi
ja 0x40a329
jb 0x40a25b
cmp ebp, edx
jae 0x40a329
lea ecx, [esp + 0x50]
call fcn.00448ebd
push dword [esi + ebx + 8]
lea ecx, [esp + 0x54]
push ebx
call fcn.00448f08
lea ecx, [esp + 0x50]
call fcn.00448fc3
lea esi, [esp + 0xa8]
xor eax, eax
lea edi, [esp + 0x18]
mov byte [esp + 0x17], al
movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x3d8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00408d0f
mov esi, 0x110
xor eax, eax
push esi
push eax
lea eax, [esp + 0xc8]
push eax
call fcn.0041c3f0
add esp, 0xc
lea eax, [esp + 0xc0]
lea ecx, [esp + 0x3d8]
push eax
lea eax, [ebx + ebp]
push eax
push 0x48c1e8
call fcn.0040a0fb
xor edx, edx
test al, al
je 0x40a300
lea edi, [esp + 0x18]
mov ecx, edx
lea ebx, [esp + 0xf8]
mov eax, dword [edi + ecx*4]
cmp eax, dword [ebx + ecx*4]
jne 0x40a2fa
inc ecx
cmp ecx, 4
jne 0x40a2e5
mov byte [esp + 0x17], 1
jmp 0x40a300
mov al, dl
mov byte [esp + 0x17], al
lea eax, [esp + 0xc0]
mov byte [eax], dl
inc eax
sub esi, 1
jne 0x40a307
push 0x10
pop ecx
lea eax, [esp + 0x18]
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x40a316
lea ecx, [esp + 0x50]
call fcn.00448edc
jmp 0x40a32f
xor edx, edx
mov byte [esp + 0x17], dl
lea ecx, [esp + 0x28]
call fcn.00403805
mov al, byte [esp + 0x17]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x185c
ret
Function at 0x40a3a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], ebx
call fcn.0040826b
cmp eax, 0x258
jl 0x40a409
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a409
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.EnableLUA
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
test eax, eax
je 0x40a40e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop ebx
leave
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 4
jne 0x40a421
cmp dword [ebp - 8], ebx
je 0x40a421
mov bl, 1
mov al, bl
jmp 0x40a40b
Function at 0x40ef75
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x24], esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
cmp dword [esp + 0x2c], ebx
je 0x40f0e1
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocStringLen
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x40f0e1
lea ecx, [esp + 0x18]
xorps xmm0, xmm0
push ecx
push eax
movlpd qword [esp + 0x20], xmm0
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
jne 0x40efdd
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov edi, dword [esp + 0x18]
mov ecx, edi
add ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x1c]
mov eax, ebx
adc eax, dword [esp + 0x34]
add ecx, 2
adc eax, 0
push eax
push ecx
mov ecx, esi
call fcn.0040376c
test al, al
je 0x40f0d3
mov eax, dword [esi]
mov dword [esp + 0x18], eax
test eax, eax
je 0x40f09e
test ebx, ebx
jne 0x40f01f
cmp edi, 1
jb 0x40f09e
mov esi, dword [esp + 0x14]
xorps xmm0, xmm0
movlpd qword [esp + 0x30], xmm0
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x2c], ecx
and dword [esp + 0x30], 0
mov edx, edi
sub edx, ebp
mov eax, ebx
sbb eax, ecx
test eax, eax
jb 0x40f05a
ja 0x40f053
cmp edx, 0xfffffff
jbe 0x40f05a
mov eax, 0xfffffff
jmp 0x40f05e
mov eax, edi
sub eax, ebp
push 0
lea ecx, [esp + 0x34]
push ecx
push eax
mov eax, dword [esp + 0x24]
add eax, ebp
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, dword [esp + 0x2c]
test eax, eax
je 0x40f098
cmp dword [esp + 0x30], 0
je 0x40f098
add ebp, dword [esp + 0x30]
adc ecx, 0
mov dword [esp + 0x2c], ecx
cmp ecx, ebx
jb 0x40f038
ja 0x40f098
cmp ebp, edi
jb 0x40f038
mov esi, dword [esp + 0x24]
jmp 0x40f0af
xorps xmm0, xmm0
movlpd qword [esp + 0x30], xmm0
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
cmp ebp, edi
jne 0x40f0d3
cmp ecx, ebx
jne 0x40f0d3
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, esi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
call fcn.00403720
xor eax, eax
inc eax
jmp 0x40f0e3
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
jmp 0x40f0e3
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
Function at 0x40f39e
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 0x40f472
push 0x250
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0041c3f0
add esp, 0xc
lea ecx, [esp + 0x258]
call fcn.004045b8
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 0x40f467
test byte [esp + 8], 0x10
jne 0x40f447
lea eax, [esp + 0x34]
push eax
push dword [esi + 0x20]
lea eax, [esp + 0x260]
push str._s_s
push eax
call fcn.004011fb
add esp, 0x10
mov ecx, esi
push dword [esp + 0x25c]
call fcn.0040f0ed
test al, al
je 0x40f447
push dword [esp + 0x25c]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [esi + 0xc631], 0
jne 0x40f460
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40f404
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [esi + 0x91a8]
mov eax, dword [ecx]
call dword [eax + 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40f65e
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 0x40f829
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], 0x46c750
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.0040f507
mov edi, dword [eax]
test edi, edi
je 0x40f6c3
mov edi, dword [edi]
jmp 0x40f6c5
mov edi, ebx
push 0x46c754
lea ecx, [esp + 0x14]
call fcn.0040f507
mov eax, dword [eax]
test eax, eax
je 0x40f6dd
mov eax, dword [eax]
jmp 0x40f6df
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.0040f579
lea ecx, [esp + 0x1c]
call fcn.0040f579
test esi, esi
js 0x40f825
jmp 0x40f801
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 0x40f815
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40f815
cmp dword [esp + 0x18], ebx
je 0x40f80f
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 0x40f770
push str.n_a
jmp 0x40f7bd
movzx eax, word [esp + 0x20]
cmp eax, 3
je 0x40f7a3
mov ecx, ebp
cmp eax, 8
je 0x40f788
push str.n_a
jmp 0x40f7bf
cmp dword [esp + 0x28], ebx
mov eax, 0x46c75c
cmovne eax, dword [esp + 0x28]
push eax
call fcn.0040f5a7
push 0x46c7e0
jmp 0x40f7bd
push dword [esp + 0x28]
lea eax, [esp + 0x34]
push 0x46c764
push eax
call fcn.004011fb
add esp, 0xc
push dword [esp + 0x34]
mov ecx, ebp
call fcn.0040f5a7
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 0x40f7d4
sub ecx, edx
sar ecx, 1
lea esi, [esi + ecx*2]
add esi, 2
cmp word [esi], bx
je 0x40f7f7
mov ecx, dword [esp + 0x10]
jmp 0x40f756
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x40f70f
jmp 0x40f823
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40f823
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov bl, 1
mov al, bl
jmp 0x40f82b
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 0xc
Function at 0x40f838
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 0x40f85c
cmp eax, 0x80010106
jne 0x40f924
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 0x40f87c
cmp eax, 0x80010119
jne 0x40f91e
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push 0x45a88c
push 1
push ebx
push 0x45a89c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40f91e
mov eax, dword [ebp - 8]
test eax, eax
je 0x40f91e
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xc]
mov eax, dword [eax]
push str.ROOTCIMV2
mov esi, dword [eax + 0xc]
call fcn.0040f507
mov eax, dword [eax]
test eax, eax
je 0x40f8c4
mov eax, dword [eax]
jmp 0x40f8c6
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.0040f579
test esi, esi
js 0x40f915
cmp dword [ebp - 4], ebx
je 0x40f915
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 0x40f90c
push ecx
push ecx
push dword [ebp - 4]
mov ecx, edi
call fcn.0040f65e
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 0x40f929
sub ecx, edx
sar ecx, 1
je 0x40f94e
cmp word [edi + ecx*2 - 2], 0x7c
jne 0x40f94e
sub ecx, 1
push 0
pop eax
mov word [edi + ecx*2], ax
jne 0x40f93a
mov esi, 0x46c7e0
jmp 0x40f95b
push 0x2c
pop ecx
mov word [eax], cx
push esi
push edi
call fcn.0041b6ce
pop ecx
pop ecx
test eax, eax
jne 0x40f955
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f96d
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes
Query environment variable

Disassembly:
mov eax, dword [0x4b4ec8]
sub esp, 0x600
push ebx
push ebp
push esi
push edi
test eax, eax
jne 0x40f99e
push 0x45a8ac
push 0x80000
call fcn.0041a51d
mov dword [0x4b4ec8], eax
pop ecx
pop ecx
test eax, eax
je 0x40fbab
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor ecx, ecx
mov esi, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
xor ebx, ebx
mov word [eax], cx
mov eax, dword [esp + 0x614]
test eax, eax
je 0x40f9ce
cmp word [eax], bx
je 0x40f9ce
push eax
mov ecx, 0x4b3d4c
call fcn.00402fc9
jmp 0x40fa19
push dword [0x4b3d50]
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebp, 0x4b3d4c
mov ecx, ebp
call fcn.00403c53
push 0x46abe0
mov ecx, ebp
call fcn.004034ba
push dword [0x4b3d50]
call edi
cmp eax, 0xffffffff
jne 0x40fa0d
push ebx
push dword [0x4b3d50]
call esi
push str.Crashes
mov ecx, ebp
call fcn.004034ba
push dword [0x4b3d50]
call edi
cmp eax, 0xffffffff
jne 0x40fa2f
push ebx
push dword [0x4b3d50]
call esi
push str.MT5WEBSETUP
mov ecx, 0x4b3f64
call fcn.00402fc9
push str.MetaTrader_Web_Setup
mov ecx, 0x4b417c
call fcn.00402fc9
mov eax, dword [0x4b4ec0]
or eax, dword [0x4b4ec4]
mov dword [0x4b4e60], 0x1f4
mov dword [0x4b4e64], 0xbd5
mov dword [0x4b4e68], 0xe187
jne 0x40fa8a
push ebx
call fcn.00429e44
pop ecx
mov dword [0x4b4ec0], eax
mov dword [0x4b4ec4], edx
push str.27_Aug_2021
mov ecx, 0x4b4e6c
call fcn.00402fc9
mov edi, 0x4b47c4
mov ecx, edi
call fcn.00401b2b
test al, al
je 0x40fb67
push 0x200
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.0041c3f0
mov esi, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
lea eax, [esp + 0x1c]
add esp, 0xc
mov ebp, 0x100
push ebp
push eax
push str.CLIENTNAME
call esi
test eax, eax
jne 0x40faed
push ebp
lea eax, [esp + 0x14]
push eax
push str.COMPUTERNAME
call esi
test eax, eax
je 0x40fb22
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.00402fc9
push ebp
lea eax, [esp + 0x14]
push eax
push str.USERDOMAIN
call esi
test eax, eax
je 0x40fb22
push 0x467ee8
mov ecx, edi
call fcn.004034ba
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.004034ba
push ebp
push 0x1fe
lea eax, [esp + 0x18]
mov edx, str.SOFTWAREMetaQuotes_SoftwareSettings
push eax
push str.MQL5.Login
mov ecx, SysReAllocStringLen
call fcn.00403acb
add esp, 0x10
test al, al
je 0x40fb67
cmp word [esp + 0x10], bx
je 0x40fb67
push str._for
mov ecx, edi
call fcn.004034ba
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.004034ba
mov esi, 0x400
lea eax, [esp + 0x210]
push esi
push ebx
push eax
call fcn.0041c3f0
add esp, 0xc
lea ecx, [esp + 0x210]
call fcn.0040f838
lea eax, [esp + 0x210]
mov ecx, 0x4b49dc
push eax
call fcn.00402fc9
lea eax, [esp + 0x210]
mov byte [eax], bl
inc eax
sub esi, 1
jne 0x40fba3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x600
ret 0x1c
Function at 0x41001b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, ecx
push edi
test esi, esi
je 0x410097
xor edi, edi
cmp word [esi], di
je 0x410097
call fcn.0040fcf1
test al, al
je 0x410097
push 0x46c7e4
push esi
push 0x46c7ec
push 0xffffffffffffffff
lea eax, [ebp - 0x208]
push 0x103
push eax
call fcn.00401e4a
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 0x410097
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 0x410099
xor al, al
pop edi
pop esi
leave
ret
Function at 0x410ce6
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
mov dword [esp + 0x10], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebx
cmp dword [esp + 0x18], ebx
je 0x410dbc
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x410dbc
mov eax, dword [0x4c036c]
cmp esi, dword [0x4c0370]
jbe 0x410d64
test eax, eax
je 0x410d40
push 0x8000
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov dword [0x4c036c], ebx
push 4
push 0x3000
push esi
push ebx
mov dword [0x4c0370], ebx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [0x4c036c], eax
test eax, eax
je 0x410dbc
mov dword [0x4c0370], esi
push eax
push esi
push ebx
push dword [esp + 0x24]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x410db8
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x14]
push eax
push 0x467ef4
push dword [0x4c036c]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x410db8
mov edx, dword [esp + 0x10]
test edx, edx
je 0x410db8
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 0x410db8
test edx, edx
je 0x410db8
mov bl, 1
mov al, bl
jmp 0x410dbe
xor al, al
pop esi
pop ebx
add esp, 0xc
ret 0xc
Function at 0x411a8e
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 0x411b4d
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
push esi
call edi
cmp eax, 0xffffffff
je 0x411ab8
test al, 0x10
jmp 0x411b47
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x400]
push 0x200
push eax
call fcn.00428a3a
mov ax, word [ebp - 0x400]
lea esi, [ebp - 0x400]
add esp, 0x10
test ax, ax
je 0x411b28
push 0x5c
movzx ecx, ax
pop eax
cmp cx, ax
jne 0x411b18
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x400]
push eax
call edi
cmp eax, 0xffffffff
jne 0x411b12
push 0
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x411b4d
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 0x411ae7
lea eax, [ebp - 0x400]
push eax
call edi
cmp eax, 0xffffffff
jne 0x411b49
push 0
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x411b4d
mov al, 1
jmp 0x411b4f
xor al, al
pop edi
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push dword [0x4b3d50]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x411b9b
mov ecx, dword [0x4b3d50]
call fcn.00411a8e
cmp word [0x4b4e0c], 0
je 0x411c73
lea ecx, [ebp - 0x220]
call fcn.00403195
push 0x4b4e0c
push dword [0x4b3f68]
mov eax, ecx
push dword [0x4b3d50]
push 0x46d3e8
push eax
call fcn.004011fb
xor ebx, ebx
add esp, 0x14
or esi, 0xffffffff
cmp dword [ebp - 0x21c], ebx
je 0x411c51
push ebx
push 0x80
push 2
push ebx
push 3
push 0x40000000
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x411c51
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 2
push 0x46d384
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ebx, dword [0x4b4ec8]
mov ecx, ebx
call fcn.00411b53
and dword [ebp - 4], 0
add eax, eax
test ebx, ebx
je 0x411c45
test eax, eax
je 0x411c45
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
xor ebx, ebx
mov dword [ebp - 0x220], 0x460424
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], ebx
cmp esi, 0xffffffff
je 0x411c73
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop ebx
leave
ret
Function at 0x411c77
Capabilities:
Create process memory minidump
Delete file
Write file on windows

Disassembly:
sub esp, 0x234
push ebx
push ebp
push esi
xor ebp, ebp
lea ecx, [esp + 0x24]
push edi
mov dword [esp + 0x24], ebp
call fcn.00403195
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov ebx, dword [esp + 0x248]
push 0x4b4e0c
push dword [0x4b3f68]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x30]
push dword [0x4b3d50]
mov dword [esp + 0x2c], ebx
push str._s_s._s.tmp
push eax
call fcn.004011fb
add esp, 0x14
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x411e2a
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push ebp
xor edx, edx
lea ecx, [esp + 0x20]
push ebp
test ebx, ebx
cmove ecx, edx
push ecx
push 0x1104
push edi
push esi
push eax
call dword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
mov ebp, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call ebp
or dword [esp + 0x18], 0xffffffff
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x1c], 0x4628f8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], esi
call fcn.0040354b
mov ebx, eax
test ebx, ebx
je 0x411e14
push 0x4b4e0c
lea eax, [esp + 0x2c]
push str._s.dmp
push eax
call fcn.004011fb
mov edi, dword [esp + 0x1c]
add esp, 0xc
push esi
push edi
push ebx
push dword [esp + 0x38]
call fcn.00411e70
push 0x4b4e0c
push dword [0x4b3f68]
lea eax, [esp + 0x30]
push dword [0x4b3d50]
push str._s_s._s.tmp
push eax
call fcn.004011fb
add esp, 0x14
push edi
push esi
push ebx
call fcn.0041c3f0
mov esi, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
cmp esi, 0xffffffff
je 0x411dbe
push esi
call ebp
mov eax, dword [esp + 0x10]
or esi, 0xffffffff
test eax, eax
je 0x411ddd
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x411e01
and dword [esp + 0x10], 0
test edi, edi
je 0x411dfb
push 0
lea eax, [esp + 0x14]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call ebp
or esi, 0xffffffff
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push ebx
call fcn.0041a526
pop ecx
jmp 0x411e22
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov esi, dword [esp + 0x18]
cmp esi, 0xffffffff
je 0x411e2a
push esi
call ebp
lea ecx, [esp + 0x28]
call fcn.004031ac
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret 8
Function at 0x4131c7
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, ecx
test edx, edx
jne 0x4131d7
push 0xd
pop eax
jmp 0x41321c
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 0x4131e9
sub ecx, ebp
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x4131e4
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 0x413747
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.004136eb
mov esi, eax
test esi, esi
jne 0x413816
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 0x4137eb
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.00413747
mov esi, eax
test esi, esi
jne 0x413816
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 0x4137b0
jmp 0x4137ed
xor esi, esi
cmp dword [esp + 0x10], 0
je 0x413802
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.004138d3
mov esi, eax
cmp dword [esp + 0x10], 0
je 0x413827
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