joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a3d6
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa00
mov eax, dword [0x47dad4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0xa00], 0x22c
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov ebx, eax
test ebx, ebx
je 0x41a477
lea eax, [ebp - 0xa00]
push eax
push ebx
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
je 0x41a477
mov esi, 0x3e8
push esi
lea eax, [ebp - 0x9dc]
push eax
lea eax, [ebp - 0x3ec]
push eax
call fcn.0044bc11
lea eax, [ebp - 0x3ec]
jmp 0x41a458
mov al, 1
jmp 0x41a480
push esi
lea eax, [ebp - 0x9dc]
push eax
lea eax, [ebp - 0x7d4]
push eax
call fcn.0044bc11
lea eax, [ebp - 0x7d4]
push edi
push eax
call fcn.0044b8c0
add esp, 0x14
test eax, eax
je 0x41a43a
lea eax, [ebp - 0xa00]
push eax
push ebx
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x41a43e
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a6c9
leave
ret

Function at 0x41ab57
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xff9c]
mov eax, 0x1001c
call fcn.0044b870
mov eax, dword [0x47dad4]
xor eax, ebp
mov dword [ebp + 0xff98], eax
mov eax, dword [ebp + 0xffa8]
push ebx
push esi
mov esi, dword [ebp + 0xffa4]
push edi
xor ebx, ebx
push 0x104
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
call fcn.00407059
lea eax, [ebp - 0x78]
push eax
push esi
call fcn.0041aac2
mov esi, dword [sym.imp.KERNEL32.DLL_CreateFileW]
pop ecx
pop ecx
push ebx
mov edi, 0x80
push edi
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp - 0x78]
call esi
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
jne 0x41abef
lea ecx, [ebp - 0x78]
call fcn.00406ffd
xor al, al
mov ecx, dword [ebp + 0xff98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a6c9
add ebp, 0xff9c
leave
ret
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call fcn.0041aac2
pop ecx
pop ecx
push ebx
push edi
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 0x78]
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x41ac2a
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x78]
call fcn.00406ffd
mov al, bl
jmp 0x41abd7
push ebx
lea eax, [ebp - 0x70]
push eax
push 0xffff
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
setne byte [ebp - 0x69]
cmp byte [ebp - 0x69], bl
je 0x41ac75
cmp dword [ebp - 0x70], ebx
je 0x41ac7f
push ebx
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x70]
lea eax, [ebp - 0x68]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
mov eax, dword [ebp - 0x80]
setne byte [ebp - 0x69]
cmp eax, dword [ebp - 0x70]
je 0x41ac75
mov byte [ebp - 0x69], bl
cmp dword [ebp - 0x70], ebx
je 0x41ac7f
cmp byte [ebp - 0x69], bl
jne 0x41ac2a
push dword [ebp - 0x7c]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push edi
call esi
mov bl, byte [ebp - 0x69]
jmp 0x41ac1e
Function at 0x41acc9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.0041aac2
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41ad0d
lea ecx, [ebp - 0x14]
call fcn.00406ffd
xor eax, eax
pop esi
leave
ret
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
call fcn.0041aac2
pop ecx
pop ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push dword [ebp - 0x14]
mov dword [ebp - 8], esi
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
test eax, eax
je 0x41ad54
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
call fcn.00406ffd
mov eax, esi
jmp 0x41ad0a
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 8]
jmp 0x41ad48

Function at 0x41ad5f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.0041aac2
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41ada7
lea ecx, [ebp - 0x10]
call fcn.00406ffd
mov al, bl
pop ebx
leave
ret
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
call fcn.0041aac2
pop ecx
pop ecx
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push ebx
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41ad9a

Function at 0x41addd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.0041aac2
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41ae25
lea ecx, [ebp - 0x10]
call fcn.00406ffd
mov al, bl
pop ebx
leave
ret
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
call fcn.0041aac2
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x14]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0041aac2
mov eax, dword [ebp - 0x14]
add esp, 0x10
add eax, eax
push eax
push dword [ebp - 0x18]
push 1
push ebx
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x18]
call fcn.00406ffd
jmp 0x41ae18
Function at 0x41aec8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.0041aac2
pop ecx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
lea ecx, [ebp - 8]
setne bl
call fcn.00406ffd
mov al, bl
pop ebx
leave
ret

Function at 0x41af00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.0041aac2
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
call fcn.0041aac2
push 0x3c
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.0044ab10
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x38], eax
add esp, 0x1c
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x48], 0x4c
mov dword [ebp - 0x40], 0x46cbfc
mov dword [ebp - 0x44], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x41af74
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 8]
call fcn.00406ffd
lea ecx, [ebp - 0x10]
call fcn.00406ffd
mov eax, esi
pop esi
leave
ret
Function at 0x41bf68
Capabilities:
Get common file path

Disassembly:
push 0x40
mov eax, 0x461114
call fcn.0044a6d8
xor esi, esi
test byte [0x47eec8], 1
mov edi, 0x47eeac
jne 0x41bfa8
or dword [0x47eec8], 1
push esi
mov ecx, edi
mov dword [0x47eec4], 0xf
call fcn.004077ee
push 0x46464e
call fcn.0044b3ef
pop ecx
cmp dword [0x47eec0], esi
jne 0x41c023
push 0x104
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.00407059
push 1
push 0x1c
push dword [ebp - 0x14]
mov dword [ebp - 4], esi
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [ebp - 0x14]
lea eax, [ebp - 0x4c]
push eax
call fcn.0041bc26
push 0x467c4c
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.00408aee
add esp, 0x14
push 0xffffffffffffffff
push esi
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00408577
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.00407efb
push esi
push 1
lea ecx, [ebp - 0x4c]
call fcn.00407efb
lea ecx, [ebp - 0x14]
call fcn.00406ffd
mov eax, edi
call fcn.0044a7b0
ret

Function at 0x41c02b
Capabilities:
Get common file path

Disassembly:
push 0x40
mov eax, 0x461114
call fcn.0044a6d8
xor esi, esi
test byte [0x47eee8], 1
mov edi, 0x47eecc
jne 0x41c06b
or dword [0x47eee8], 1
push esi
mov ecx, edi
mov dword [0x47eee4], 0xf
call fcn.004077ee
push 0x46465d
call fcn.0044b3ef
pop ecx
cmp dword [0x47eee0], esi
jne 0x41c0e6
push 0x104
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.00407059
push 1
push 0x1c
push dword [ebp - 0x14]
mov dword [ebp - 4], esi
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [ebp - 0x14]
lea eax, [ebp - 0x4c]
push eax
call fcn.0041bc26
push str.Media_Get_LLCMediaGet2_
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.00408aee
add esp, 0x14
push 0xffffffffffffffff
push esi
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00408577
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.00407efb
push esi
push 1
lea ecx, [ebp - 0x4c]
call fcn.00407efb
lea ecx, [ebp - 0x14]
call fcn.00406ffd
mov eax, edi
call fcn.0044a7b0
ret

Function at 0x41c0ee
Capabilities:
Get common file path

Disassembly:
push 0x40
mov eax, 0x461114
call fcn.0044a6d8
xor esi, esi
test byte [0x47ef08], 1
mov edi, 0x47eeec
jne 0x41c12e
or dword [0x47ef08], 1
push esi
mov ecx, edi
mov dword [0x47ef04], 0xf
call fcn.004077ee
push 0x46466c
call fcn.0044b3ef
pop ecx
cmp dword [0x47ef00], esi
jne 0x41c1a9
push 0x104
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.00407059
push 1
push 0x10
push dword [ebp - 0x14]
mov dword [ebp - 4], esi
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [ebp - 0x14]
lea eax, [ebp - 0x4c]
push eax
call fcn.0041bc26
push 0x467a70
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.00408aee
add esp, 0x14
push 0xffffffffffffffff
push esi
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00408577
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.00407efb
push esi
push 1
lea ecx, [ebp - 0x4c]
call fcn.00407efb
lea ecx, [ebp - 0x14]
call fcn.00406ffd
mov eax, edi
call fcn.0044a7b0
ret
Function at 0x41c1b1
Capabilities:
Get common file path

Disassembly:
push 0x40
mov eax, 0x461114
call fcn.0044a6d8
xor esi, esi
test byte [0x47ef28], 1
mov edi, 0x47ef0c
jne 0x41c1f1
or dword [0x47ef28], 1
push esi
mov ecx, edi
mov dword [0x47ef24], 0xf
call fcn.004077ee
push 0x46467b
call fcn.0044b3ef
pop ecx
cmp dword [0x47ef20], esi
jne 0x41c26c
push 0x104
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.00407059
push 1
push 2
push dword [ebp - 0x14]
mov dword [ebp - 4], esi
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [ebp - 0x14]
lea eax, [ebp - 0x4c]
push eax
call fcn.0041bc26
push 0x467a70
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.00408aee
add esp, 0x14
push 0xffffffffffffffff
push esi
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00408577
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.00407efb
push esi
push 1
lea ecx, [ebp - 0x4c]
call fcn.00407efb
lea ecx, [ebp - 0x14]
call fcn.00406ffd
mov eax, edi
call fcn.0044a7b0
ret

Function at 0x41c2f4
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x1c
mov eax, 0x46113f
call fcn.0044a6d8
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], esi
call fcn.0041aac2
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
push 0x20119
push esi
push dword [ebp - 0x20]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41c343
mov ecx, dword [ebp + 8]
call fcn.004081f5
jmp 0x41c3c4
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x14]
call fcn.0041aac2
pop ecx
pop ecx
push 0x400
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call fcn.00407059
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x20]
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
test eax, eax
je 0x41c39d
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
call fcn.004081f5
jmp 0x41c3bc
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 1
je 0x41c3af
cmp dword [ebp - 0x14], 7
jne 0x41c393
push dword [ebp - 0x28]
push dword [ebp + 8]
call fcn.0041bc26
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
call fcn.00406ffd
lea ecx, [ebp - 0x20]
call fcn.00406ffd
mov eax, dword [ebp + 8]
call fcn.0044a7b0
ret
Function at 0x41c86b
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x47dad4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x198], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x41c8d3
cmp dword [esi + 0x18], 0x10
jb 0x41c8ae
mov esi, dword [esi + 4]
jmp 0x41c8b1
add esi, 4
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x41c8d3
cmp word [eax + 8], 2
jne 0x41c8d3
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
jmp 0x41c8d8
push 0x4656f9
mov ecx, edi
call fcn.004088e0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0044a6c9
leave
ret

Function at 0x41d2b7
Capabilities:
Create process on windows

Disassembly:
push 0x50
mov eax, 0x4613b5
call fcn.0044a6d8
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0041aac2
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
call fcn.0041aac2
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
call fcn.0041aac2
add esp, 0x18
push 5
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x41d33f
mov bl, 1
lea ecx, [ebp - 0x14]
call fcn.00406ffd
lea ecx, [ebp - 0x1c]
call fcn.00406ffd
lea ecx, [ebp - 0x24]
call fcn.00406ffd
mov al, bl
call fcn.0044a7b0
ret
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0041d1fd
push eax
lea eax, [ebp - 0x40]
push str.ShellExecute_error:
push eax
mov byte [ebp - 4], 3
call fcn.00408aa3
add esp, 0x14
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x47c7f0
mov byte [ebp - 4], 4
call fcn.00408577
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00407efb
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.00407efb
jmp 0x41d31f
Function at 0x41d775
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x4614ad
call fcn.0044a741
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.0041bc26
pop ecx
pop ecx
or edi, 0xffffffff
push edi
xor ebx, ebx
push 0x467a70
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0041afce
cmp eax, edi
jne 0x41d7c2
push edi
push 0x4665f4
lea ecx, [ebp - 0x2c]
call fcn.0041afce
cmp eax, edi
je 0x41d7e9
push eax
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040bb1e
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 1
call fcn.0041d5eb
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00407efb
push ebx
push 0x80
push 2
push ebx
push 7
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, edi
jne 0x41d81d
mov byte [ebp - 0x49], bl
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00407efb
mov al, byte [ebp - 0x49]
call fcn.0044a7c4
ret
mov edi, dword [ebp + 0x10]
push ebx
lea eax, [ebp - 0x50]
push eax
push edi
push dword [ebp - 0x54]
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x41d83d
mov byte [ebp - 0x49], 1
cmp dword [ebp - 0x50], edi
je 0x41d840
mov byte [ebp - 0x49], bl
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, byte [ebp - 0x49]
mov byte [ebp - 0x49], al
jmp 0x41d809

Function at 0x41d895
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x10
mov eax, 0x4614e2
call fcn.0044a6d8
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0041aac2
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call fcn.0041aac2
add esp, 0x10
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov edi, eax
cmp edi, esi
je 0x41d90e
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, esi
je 0x41d90e
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push ebx
push eax
push dword [ebp + 0x10]
call fcn.0041d84f
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.00406ffd
lea ecx, [ebp - 0x1c]
call fcn.00406ffd
call fcn.0044a7b0
ret
Function at 0x41d9ac
Capabilities:
Enumerate process modules

Disassembly:
push ebp
lea ebp, [esp - 0x7f0]
sub esp, 0x7f0
push 0xffffffffffffffff
push 0x461525
mov eax, dword fs:[0]
push eax
mov eax, 0x1064
call fcn.0044b870
mov eax, dword [0x47dad4]
xor eax, ebp
mov dword [ebp + 0x7ec], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x7f8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0x1000
lea eax, [ebp - 0x1070]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x41da53
lea eax, [ebp - 0x38]
push eax
call fcn.0041d98e
push eax
lea eax, [ebp]
push str.EnumProcesses_error:
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00408aa3
add esp, 0x10
push 0xffffffffffffffff
push edi
push eax
mov ecx, 0x47c7f0
mov byte [ebp - 4], 1
call fcn.00408577
push edi
push 1
lea ecx, [ebp]
call fcn.00407efb
lea ecx, [ebp - 0x38]
jmp 0x41db47
mov esi, dword [ebp - 0x1c]
shr esi, 2
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
xor edi, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edi
cmp esi, edi
jbe 0x41dafd
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x1070]
cmp dword [ebp - 0x18], eax
je 0x41daf1
push eax
mov eax, dword [ebp + 0x7fc]
push edi
or eax, 0x410
push eax
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov ebx, eax
cmp ebx, edi
je 0x41daf1
push 0x3e8
lea eax, [ebp + 0x1c]
push eax
push edi
push ebx
call sub.PSAPI.DLL_GetModuleBaseNameW
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp]
push eax
call fcn.0041bc26
lea eax, [ebp]
push eax
mov dword [ebp - 4], 2
call fcn.0041b4e8
add esp, 0xc
push dword [ebp - 0x14]
lea ecx, [ebp]
call fcn.00407bf4
test eax, eax
je 0x41db74
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp]
call fcn.00407efb
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], esi
jb 0x41da6f
push dword [ebp - 0x14]
lea eax, [ebp - 0x70]
push str.Process
push eax
call fcn.00408aa3
push str._not_found
push eax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 4], 3
call fcn.00408aee
add esp, 0x18
push 0xffffffffffffffff
push edi
push eax
mov ecx, 0x47c7f0
mov byte [ebp - 4], 4
call fcn.00408577
push edi
push 1
lea ecx, [ebp - 0x54]
call fcn.00407efb
lea ecx, [ebp - 0x70]
push edi
push 1
call fcn.00407efb
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x7ec]
xor ecx, ebp
call fcn.0044a6c9
add ebp, 0x7f0
leave
ret
push edi
push 1
lea ecx, [ebp]
call fcn.00407efb
mov eax, ebx
jmp 0x41db51
Function at 0x41db83
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x80
mov eax, 0x461583
call fcn.0044a6d8
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 7
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x41dc00
lea eax, [ebp - 0x54]
push eax
call fcn.0041d98e
push eax
lea eax, [ebp - 0x38]
push str.CreateFile_error:
push eax
mov dword [ebp - 4], ebx
call fcn.00408aa3
add esp, 0x10
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x47c7f0
mov byte [ebp - 4], 1
call fcn.00408577
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.00407efb
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.00407efb
jmp 0x41dd16
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x41dcc3
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
cdq
cmp ecx, edx
jg 0x41dcc3
mov ecx, dword [ebp - 0x1c]
jl 0x41dc2f
cmp ecx, eax
ja 0x41dcc3
mov esi, dword [ebp + 0xc]
inc ecx
push ecx
mov ecx, esi
call fcn.00406fe3
mov eax, dword [esi]
push ebx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x41dc79
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
xor edx, edx
cmp eax, ecx
jne 0x41dc79
cmp edx, dword [ebp - 0x18]
jne 0x41dc79
mov eax, dword [esi]
push dword [ebp - 0x10]
mov byte [ecx + eax], bl
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
jmp 0x41dd18
lea eax, [ebp - 0x8c]
push eax
call fcn.0041d98e
push eax
lea eax, [ebp - 0x70]
push str.ReadFile_error:
push eax
mov dword [ebp - 4], 4
call fcn.00408aa3
add esp, 0x10
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x47c7f0
mov byte [ebp - 4], 5
call fcn.00408577
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.00407efb
lea ecx, [ebp - 0x8c]
jmp 0x41dd05
lea eax, [ebp - 0x38]
push eax
call fcn.0041d98e
push eax
lea eax, [ebp - 0x54]
push str.GetFileSizeEx_error:
push eax
mov dword [ebp - 4], 2
call fcn.00408aa3
add esp, 0x10
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x47c7f0
mov byte [ebp - 4], 3
call fcn.00408577
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.00407efb
lea ecx, [ebp - 0x38]
push ebx
push 1
call fcn.00407efb
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
call fcn.0044a7b0
ret
Function at 0x41ddbb
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x34
mov eax, 0x4615f5
call fcn.0044a6d8
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x10]
xor esi, esi
inc esi
mov dword [ebp - 4], esi
call fcn.0041aac2
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
call fcn.0041cb6e
lea eax, [ebp - 0x10]
push eax
push 8
push edi
push dword [ebp - 0x24]
mov dword [ebp - 0x14], esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41de7e
push 0x3e8
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call fcn.00407059
push dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push dword [ebp - 0x1c]
mov byte [ebp - 4], 2
xor ebx, ebx
push edi
jmp 0x41de64
push dword [ebp - 0x1c]
lea eax, [ebp - 0x40]
push eax
call fcn.0041bc26
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 3
call fcn.0041dd1e
push edi
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00407efb
push dword [ebp - 0x18]
inc ebx
push dword [ebp - 0x1c]
push ebx
push dword [ebp - 0x10]
call esi
cmp eax, edi
je 0x41de32
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
call fcn.00406ffd
lea ecx, [ebp - 0x24]
call fcn.00406ffd
mov eax, dword [ebp + 8]
call fcn.0044a7b0
ret