joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40840a
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
push ecx
push ebp
push esi
mov esi, ecx
mov ebp, edx
test esi, esi
je 0x4084e3
push ebx
push edi
push 0
call fcn.0042bd24
pop ecx
push 2
mov edi, eax
mov ebx, edx
push 8
lea eax, [esp + 0x18]
add edi, 0xab5b7200
push eax
push 0
adc ebx, 0xffffffff
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
je 0x408458
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
jmp 0x40845c
mov ecx, dword [esp + 0x10]
and ecx, 0x1ffffff
xor eax, eax
or ecx, ebx
or eax, edi
or ecx, 0x44000000
push ecx
push eax
push 0x50b164
push 0xffffffffffffffff
push ebp
push esi
call fcn.00401bd6
add esp, 0x18
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
mov ecx, ebx
call fcn.00403cac
mov edi, 0x50a8d4
test al, al
jne 0x4084a1
push ecx
mov edx, edi
mov ecx, ebx
call fcn.00403c54
pop ecx
push ecx
push esi
push ecx
mov ebp, 0x50a910
mov edx, edi
push ebp
mov ecx, ebx
call fcn.00403c1f
add esp, 0x10
mov ebx, closesocket
mov ecx, ebx
call fcn.00403cac
test al, al
jne 0x4084d1
push ecx
mov edx, edi
mov ecx, ebx
call fcn.00403c54
pop ecx
push ecx
push esi
push ecx
push ebp
mov edx, edi
mov ecx, ebx
call fcn.00403c1f
add esp, 0x10
pop edi
pop ebx
pop esi
pop ebp
pop ecx
pop ecx
ret

Function at 0x408537
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
xor eax, eax
push esi
mov dword [ebp - 4], eax
mov esi, 0x100
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x214]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4085a9
push 3
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.0042a644
add esp, 0x10
xor eax, eax
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x214]
push esi
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x408ef3
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x408f1d
xor edi, edi
cmp word [esi], di
je 0x408f1d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x408f24
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x408f36
or eax, 0xffffffff
pop edi
pop esi
pop ebx
ret
test bl, 0x10
jne 0x408f3b
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x408f1d
jmp 0x408f11
push 0x10
pop eax
jmp 0x408f20
test bl, 1
je 0x408f4b
xor ebx, 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, ebx
jmp 0x408f20

Function at 0x409121
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
call fcn.004083c0
test eax, eax
jne 0x40918f
call fcn.004085ac
cmp eax, 0x258
jl 0x40918f
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40918f
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 0x409194
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 0x4091a7
cmp dword [ebp - 8], ebx
je 0x4091a7
mov bl, 1
mov al, bl
jmp 0x409191
Function at 0x40df9e
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x20
or dword [esp + 0x1c], 0xffffffff
mov eax, ecx
push ebx
push ebp
push esi
push edi
push ecx
push 3
push 3
push closesocket
push dword [esp + 0x44]
xor ebx, ebx
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x3c]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [esp + 0x3c], 0x4f98e8
call fcn.00401140
mov esi, dword [esp + 0x2c]
test al, al
je 0x40e12d
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
cmp esi, 0xffffffff
je 0x40e00b
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40e00b
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
jmp 0x40e01c
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov ecx, edi
mov dword [esp + 0x14], ebp
add ecx, 2
mov eax, ebp
adc eax, ebx
push eax
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00403856
test al, al
je 0x40e11e
cmp esi, 0xffffffff
je 0x40e0dd
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
test eax, eax
je 0x40e0dd
cmp ebp, ebx
ja 0x40e060
cmp edi, 1
jb 0x40e0dd
mov eax, dword [esp + 0x14]
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x34], ecx
mov edx, edi
mov dword [esp + 0x18], ebx
sub edx, ebp
sbb eax, ecx
cmp eax, ebx
jb 0x40e09a
ja 0x40e091
cmp edx, 0xfffffff
jbe 0x40e09a
mov eax, 0xfffffff
mov ecx, ebp
jmp 0x40e0a0
mov ecx, ebp
mov eax, edi
sub eax, ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x34]
add eax, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x34]
test eax, eax
je 0x40e0ee
cmp dword [esp + 0x18], ebx
je 0x40e0ee
add ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
adc ecx, ebx
mov dword [esp + 0x34], ecx
cmp ecx, eax
jb 0x40e079
ja 0x40e0ee
cmp ebp, edi
jb 0x40e079
jmp 0x40e0ee
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov ecx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
cmp ebp, edi
jne 0x40e11e
mov ebp, dword [esp + 0x14]
cmp ecx, ebp
jne 0x40e11e
cmp esi, 0xffffffff
je 0x40e109
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov eax, dword [esp + 0x24]
mov ecx, eax
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebp
call fcn.0040380a
mov bl, al
jmp 0x40e12d
cmp esi, 0xffffffff
je 0x40e139
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x40e139
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x20
ret 0xc
Function at 0x40e449
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 0x40e51d
push 0x250
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0041d750
add esp, 0xc
lea ecx, [esp + 0x258]
call fcn.004047c8
push dword [esi + 0x20]
mov eax, ecx
push str._s.
push eax
call fcn.00403732
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 0x40e512
test byte [esp + 8], 0x10
jne 0x40e4f2
lea eax, [esp + 0x34]
push eax
push dword [esi + 0x20]
lea eax, [esp + 0x260]
push 0x50e448
push eax
call fcn.00403732
add esp, 0x10
mov ecx, esi
push dword [esp + 0x25c]
call fcn.0040e145
test al, al
je 0x40e4f2
push dword [esp + 0x25c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [esi + 0xce79], 0
jne 0x40e50b
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40e4af
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esi + 0x95d8]
mov eax, dword [ecx]
call dword [eax + 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e9b2
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, ecx
push edi
test esi, esi
je 0x40ea2e
xor edi, edi
cmp word [esi], di
je 0x40ea2e
call fcn.0040e688
test al, al
je 0x40ea2e
push 0x50f03c
push esi
push str._scheckwritepermissions._s
push 0xffffffffffffffff
lea eax, [ebp - 0x208]
push 0x103
push eax
call fcn.00401bd6
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 0x40ea2e
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 0x40ea30
xor al, al
pop edi
pop esi
leave
ret
Function at 0x40eb82
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 0x40ed4d
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], 0x50d0c8
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.0040ea34
mov edi, dword [eax]
test edi, edi
je 0x40ebe7
mov edi, dword [edi]
jmp 0x40ebe9
mov edi, ebx
push 0x50f100
lea ecx, [esp + 0x14]
call fcn.0040ea34
mov eax, dword [eax]
test eax, eax
je 0x40ec01
mov eax, dword [eax]
jmp 0x40ec03
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.0040eaa6
lea ecx, [esp + 0x1c]
call fcn.0040eaa6
test esi, esi
js 0x40ed49
jmp 0x40ed25
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 0x40ed39
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40ed39
cmp dword [esp + 0x18], ebx
je 0x40ed33
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 0x40ec94
push str.n_a
jmp 0x40ece1
movzx eax, word [esp + 0x20]
cmp eax, 3
je 0x40ecc7
mov ecx, ebp
cmp eax, 8
je 0x40ecac
push str.n_a
jmp 0x40ece3
cmp dword [esp + 0x28], ebx
mov eax, 0x50f108
cmovne eax, dword [esp + 0x28]
push eax
call fcn.0040ead4
push 0x50f190
jmp 0x40ece1
push dword [esp + 0x28]
lea eax, [esp + 0x34]
push 0x50f110
push eax
call fcn.00403732
add esp, 0xc
push dword [esp + 0x34]
mov ecx, ebp
call fcn.0040ead4
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 0x40ecf8
sub ecx, edx
sar ecx, 1
lea esi, [esi + ecx*2]
add esi, 2
cmp word [esi], bx
je 0x40ed1b
mov ecx, dword [esp + 0x10]
jmp 0x40ec7a
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x40ec33
jmp 0x40ed47
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40ed47
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov bl, 1
mov al, bl
jmp 0x40ed4f
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 0xc
Function at 0x40ed5c
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
sub esp, 0x10
xor eax, eax
mov edx, 0x50a8d4
push ebx
push ebp
push esi
push edi
push 0x100
mov edi, ecx
mov ebp, 0x50f194
push 0x3fe
push edi
push ebp
mov ecx, closesocket
mov word [edi], ax
call fcn.00403ce0
add esp, 0x10
xor ebx, ebx
test al, al
je 0x40ed9c
cmp word [edi], bx
jne 0x40eee5
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 0x40edbc
cmp eax, 0x80010119
jne 0x40ee6f
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebx
push eax
push 0x4f184c
push 1
push ebx
push 0x4f185c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40ee6f
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40ee6f
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x1c]
mov eax, dword [eax]
push str.ROOTCIMV2
mov esi, dword [eax + 0xc]
call fcn.0040ea34
mov eax, dword [eax]
test eax, eax
je 0x40ee0d
mov eax, dword [eax]
jmp 0x40ee0f
mov eax, ebx
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push dword [esp + 0x38]
call esi
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.0040eaa6
test esi, esi
js 0x40ee65
cmp dword [esp + 0x14], ebx
je 0x40ee65
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [esp + 0x30]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x40ee5b
push ecx
push ecx
push dword [esp + 0x1c]
mov ecx, edi
call fcn.0040eb82
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40ee74
sub ecx, edx
sar ecx, 1
je 0x40ee99
cmp word [edi + ecx*2 - 2], 0x7c
jne 0x40ee99
sub ecx, 1
push 0
pop eax
mov word [edi + ecx*2], ax
jne 0x40ee85
mov esi, 0x50f190
jmp 0x40eea6
push 0x2c
pop ecx
mov word [eax], cx
push esi
push edi
call fcn.0041ca4e
pop ecx
pop ecx
test eax, eax
jne 0x40eea0
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x40eeb8
sub esi, ecx
mov edx, 0x50a8d4
sar esi, 1
push ecx
lea eax, [esi*2 + 2]
push eax
push edi
push ecx
push ebp
mov ecx, closesocket
call fcn.00403bb2
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x40eeef
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 [0x55dde8]
sub esp, 0x604
push ebx
push esi
push edi
test eax, eax
jne 0x40ef21
push 0x4f186c
push 0x200000
call fcn.0041b84d
mov dword [0x55dde8], eax
pop ecx
pop ecx
test eax, eax
je 0x40ef26
xor ecx, ecx
mov word [eax], cx
xor ebx, ebx
cmp dword [0x56969c], ebx
jne 0x40ef48
push 4
push 0x3000
push 0x22000
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x56969c], eax
push dword [0x55c840]
mov dword [0x5696a0], ebx
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, 0x55c83c
mov ecx, esi
call fcn.00403e87
push 0x50d510
mov ecx, esi
call fcn.004035e9
push dword [0x55c840]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 0xffffffff
jne 0x40ef99
push ebx
push dword [0x55c840]
call esi
push str.Crashes
mov ecx, 0x55c83c
call fcn.004035e9
push dword [0x55c840]
call edi
cmp eax, 0xffffffff
jne 0x40efbe
push ebx
push dword [0x55c840]
call esi
push str.MT5WEBSETUP
mov ecx, 0x55ca54
call fcn.004031f2
push str.MetaTrader_Web_Setup
mov ecx, 0x55cc6c
call fcn.004031f2
mov eax, 0xea7
mov dword [0x55dd80], 0x1f4
mov dword [0x55dd84], eax
mov ecx, 0x55ce84
mov dword [0x55dd88], 0x28af
push ebx
mov dword [0x5696c8], eax
call fcn.004031f2
mov eax, dword [0x55dde0]
or eax, dword [0x55dde4]
jne 0x40f029
push ebx
call fcn.0042bd24
pop ecx
mov dword [0x55dde0], eax
mov dword [0x55dde4], edx
push str.23_May_2023
mov ecx, 0x55dd8c
call fcn.004031f2
mov edi, 0x55d6e4
mov ecx, edi
call fcn.00401887
test al, al
je 0x40f111
push 0x200
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.0041d750
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 0x40f08f
push 0x100
lea eax, [esp + 0x14]
push eax
push str.COMPUTERNAME
call esi
test eax, eax
je 0x40f0c8
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.004031f2
push 0x100
lea eax, [esp + 0x14]
push eax
push str.USERDOMAIN
call esi
test eax, eax
je 0x40f0c8
push 0x50a828
mov ecx, edi
call fcn.004035e9
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.004035e9
push 0x100
push 0x1fe
lea eax, [esp + 0x18]
mov edx, str.SOFTWAREMetaQuotes_SoftwareSettings
push eax
push str.MQL5.Login
mov ecx, closesocket
call fcn.00403ce0
add esp, 0x10
test al, al
je 0x40f111
cmp word [esp + 0x10], bx
je 0x40f111
push str._for
mov ecx, edi
call fcn.004035e9
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.004035e9
mov esi, 0x400
lea eax, [esp + 0x210]
push esi
push ebx
push eax
call fcn.0041d750
pop ecx
pop ecx
lea ecx, [esp + 0x214]
call fcn.0040ed5c
lea eax, [esp + 0x210]
mov ecx, 0x55d8fc
push eax
call fcn.004031f2
lea eax, [esp + 0x210]
mov byte [eax], bl
inc eax
sub esi, 1
jne 0x40f14c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x40f15d
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push esi
push edi
call fcn.004083c0
test eax, eax
jne 0x40f1f6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f1f6
push 0x424
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.0041d750
add esp, 0xc
mov dword [ebp - 0x428], 0x428
lea eax, [ebp - 0x428]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
jmp 0x40f1eb
xor edi, edi
push dword [edi + 0x50f220]
lea eax, [ebp - 0x408]
push eax
call fcn.0042bff5
pop ecx
pop ecx
test eax, eax
je 0x40f1fc
add edi, 4
cmp edi, 0xc
jb 0x40f1bd
lea eax, [ebp - 0x428]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x40f1bb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
leave
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x40f1f8
Function at 0x40fb7e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
xor ebx, ebx
mov dword [esp + 4], edx
push esi
mov esi, ebx
test ecx, ecx
je 0x40fba4
push 0x20
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40fba4
xor al, al
jmp 0x40fc82
push edi
push ebx
push 1
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
jne 0x40fbcc
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40fc74
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x40fc73
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi - 0x81]
cmp eax, 0xff7e
ja 0x40fc6c
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test ecx, ecx
je 0x40fc6c
cmp word [ecx + 4], bx
jne 0x40fc6c
movzx eax, word [ecx]
cmp eax, edi
ja 0x40fc6c
cmp word [ecx + 2], 0x34
jne 0x40fc6c
lea edx, [ecx + 6]
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x40fc1d
mov ebx, dword [esp + 0x10]
sub edx, edi
sar edx, 1
lea edi, [ecx + edx*2]
test ebx, ebx
je 0x40fc60
movzx eax, word [edi + 0x1e]
push eax
movzx eax, word [ecx + edx*2 + 0x20]
push eax
movzx eax, word [ecx + edx*2 + 0x1a]
push eax
movzx eax, word [ecx + edx*2 + 0x1c]
push eax
push 0x50fd60
push 0xffffffffffffffff
push 0x3f
push ebx
call fcn.00401bd6
add esp, 0x20
mov eax, dword [esp + 0x1c]
mov bl, 1
movzx ecx, word [edi + 0x1e]
mov dword [eax], ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
pop edi
test esi, esi
je 0x40fc80
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, bl
pop esi
pop ebx
pop ecx
ret
Function at 0x410b48
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 [0x55c840]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x410b6f
mov ecx, dword [0x55c840]
call fcn.00410ab8
cmp word [0x55dd2c], 0
je 0x410c4c
or dword [ebp - 8], 0xffffffff
lea ecx, [ebp - 0x228]
mov dword [ebp - 0xc], 0x4f98e8
call fcn.0040338e
push 0x55dd2c
push dword [0x55ca58]
mov eax, ecx
push dword [0x55c840]
push 0x510270
push eax
call fcn.00403732
add esp, 0x10
lea ecx, [ebp - 0xc]
push 2
push 3
push 0x40000000
push dword [ebp - 0x224]
call fcn.00401140
mov esi, dword [ebp - 8]
test al, al
je 0x410c28
and dword [ebp - 4], 0
cmp esi, 0xffffffff
je 0x410bef
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x51021c
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [0x55dde8]
mov ecx, ebx
call fcn.00408f92
and dword [ebp - 4], 0
add eax, eax
cmp esi, 0xffffffff
je 0x410c28
test ebx, ebx
je 0x410c1e
test eax, eax
je 0x410c1e
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], 0x50a8cc
cmp esi, 0xffffffff
je 0x410c4c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
leave
ret

Function at 0x410d1d
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 0x410d49
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
push 0x55dd2c
push dword [0x55ca58]
lea eax, [esp + 0x30]
push dword [0x55c840]
push str._s_s._s.dmp
push 0xffffffffffffffff
push 0x103
push eax
call fcn.00401bd6
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 0x410e12
mov ecx, 0x55d09c
call fcn.00401887
test al, al
je 0x410db5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebp
jmp 0x410dd9
mov eax, dword [0x55d0a0]
mov dword [esp + 0x20], 0x410c50
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 dword [esp + 0x248]
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.004110e6
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