joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42bf6d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x20]
add eax, 0xfffffff0
push edi
push dword [ebp + 0x1c]
mov ebx, ecx
mov dword [ebp - 0xc], eax
push ecx
mov ecx, eax
mov esi, esp
call fcn.0043cad2
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
push ecx
mov ecx, eax
mov dword [ebp - 8], eax
mov esi, esp
call fcn.0043cad2
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
push ecx
mov ecx, eax
mov dword [ebp - 4], eax
mov esi, esp
call fcn.0043cad2
push dword [ebp + 0xc]
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
mov esi, dword [ebp + 8]
push esi
call fcn.0042b5b4
and dword [ebp + 0x20], 0
mov dword [ebx], 0x49a504
sub edi, 0
je 0x42c031
sub edi, 1
je 0x42c021
sub edi, 3
je 0x42c00c
sub edi, 5
jne 0x42c083
lea edx, [ebp + 0x20]
push edx
push 0x2000000
push str.DEFAULTSOFTWAREMicrosoftWindowsCurrentVersionExplorerStartupApprovedRun
push 0x80000003
jmp 0x42c044
lea edx, [ebp + 0x20]
push edx
push 0x2000000
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerStartupApprovedRun
push 0x80000001
jmp 0x42c044
lea edx, [ebp + 0x20]
push edx
push 0x2000000
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerStartupApprovedRun32
jmp 0x42c03f
lea edx, [ebp + 0x20]
push edx
push 0x2000000
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerStartupApprovedRun
push 0x80000002
mov eax, dword [esi + 0x48]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
jne 0x42c083
lea edi, [ebp - 0x18]
mov dword [ebp + 0x1c], 0xc
stosd dword es:[edi], eax
xor esi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push dword [ebx + 0x20]
push dword [ebp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42c083
test byte [ebp - 0x18], 1
je 0x42c083
mov dword [ebx + 0x10], esi
lea ecx, [ebp + 0x20]
call fcn.0043b8cb
mov ecx, dword [ebp - 4]
call fcn.0043d912
mov ecx, dword [ebp - 8]
call fcn.0043d912
mov ecx, dword [ebp - 0xc]
call fcn.0043d912
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x1c
Function at 0x42c7bd
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x10], edx
push edi
push 0x2a
lea edx, [ebp + 8]
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 8]
call fcn.00431d08
mov edi, dword [ebp - 8]
pop ecx
lea ecx, [edi - 0x10]
call fcn.0043cad2
lea ecx, [edi - 0x10]
lea esi, [eax + 0x10]
call fcn.0043d912
or dword [ebp - 0x18], 0xffffffff
lea eax, [ebp - 0x268]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x42c873
mov edi, dword [ebp - 0x10]
test byte [ebp - 0x268], 0x10
je 0x42c82c
lea ecx, [ebp - 0x23c]
call fcn.0044cdbe
test al, al
jne 0x42c862
jmp 0x42c842
push str.desktop.ini
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x42c862
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push 1
push ecx
mov ecx, esp
lea edx, [ebp + 8]
push eax
call fcn.0043baed
mov eax, dword [edi]
pop ecx
push ebx
mov ecx, edi
call dword [eax + 0x18]
lea ecx, [ebp - 0x268]
call fcn.00439ac0
cmp dword [ebp - 0x18], 0xffffffff
jne 0x42c812
lea ecx, [esi - 0x10]
call fcn.0043d912
cmp dword [ebx + 0xc], 0x60002
jae 0x42c98d
mov eax, dword [ebx + 0x48]
lea edx, [ebp - 4]
and dword [ebp - 4], 0
push edx
push 0x2000000
mov ecx, dword [eax]
push str.SOFTWAREMicrosoftShared_ToolsMSConfig_startupfolder
push 0x80000002
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x42c985
push 0x105
lea eax, [ebp - 0x474]
xor ebx, ebx
push eax
push ebx
jmp 0x42c974
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x20019
push dword [0x4ad198]
lea eax, [ebp - 0x474]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42c95e
call fcn.0043d5bb
push eax
lea ecx, [ebp - 0xc]
call fcn.0043bbe8
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
mov edx, str.path
call fcn.0044dd53
pop ecx
test eax, eax
je 0x42c917
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
jmp 0x42c959
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x42c956
mov ecx, esi
call fcn.0044d9e7
test eax, eax
jne 0x42c956
push dword [ebp + 0xc]
push eax
push ecx
lea ecx, [esi - 0x10]
mov edi, esp
call fcn.0043cad2
mov ecx, dword [ebp - 0x10]
add eax, 0x10
push dword [ebp - 0x14]
mov dword [edi], eax
mov eax, dword [ecx]
call dword [eax + 0x18]
lea ecx, [esi - 0x10]
call fcn.0043d912
lea ecx, [ebp - 8]
call fcn.0043b8cb
push 0x105
lea eax, [ebp - 0x474]
inc ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x42c8c4
lea ecx, [ebp - 4]
call fcn.0043b8cb
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0043d912
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8
Function at 0x42cd3b
Capabilities:
Enumerate files on windows
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push ebx
push 0x55
push edi
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_LCIDToLocaleName]
push str.Languages_
lea edx, [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0043baed
pop ecx
call fcn.0043d5bb
push eax
lea ecx, [ebp - 0xc]
call fcn.0043bbe8
push 0x498b90
push edi
lea edx, [ebp - 0x10]
lea ecx, [ebp - 8]
call fcn.0043baed
pop ecx
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.0043baed
pop ecx
push eax
lea ecx, [ebp - 0xc]
call fcn.0043c5cb
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0043d912
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.0043d912
mov esi, dword [ebp - 0xc]
mov ecx, esi
call fcn.0044d9e7
cmp eax, 1
je 0x42ced1
push 0x55
push edi
push 0x6d
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
cmp eax, 1
jg 0x42cd7e
push str.en.zip
lea edx, [ebp - 0x10]
lea ecx, [ebp - 8]
call fcn.0043baed
pop ecx
push eax
lea ecx, [ebp - 0xc]
call fcn.0043c5cb
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.0043d912
mov esi, dword [ebp - 0xc]
mov ecx, esi
call fcn.0044d9e7
cmp eax, 1
je 0x42ced1
push str..zip
lea edx, [ebp - 0x10]
lea ecx, [ebp - 8]
call fcn.0043baed
pop ecx
lea ecx, [ebp - 0x264]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 8]
mov edi, eax
mov dword [ebp - 0x14], edi
lea ecx, [ecx - 0x10]
call fcn.0043d912
cmp edi, 0xffffffff
je 0x42ce8c
test byte [ebp - 0x264], 0x10
jne 0x42ce7a
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
xor ecx, ecx
mov dword [ebp - 8], eax
mov word [eax], cx
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_IsValidLocaleName]
test eax, eax
jne 0x42ce96
lea eax, [ebp - 0x264]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42ce4b
lea ecx, [ebp - 0x14]
call fcn.00439a21
jmp 0x42cee2
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x10]
push 0x2e
pop ecx
mov word [eax], cx
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 8]
call fcn.0043baed
pop ecx
push eax
lea ecx, [ebp - 0xc]
call fcn.0043c5cb
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.0043d912
lea ecx, [ebp - 0x14]
call fcn.00439a21
mov esi, dword [ebp - 0xc]
mov edx, 0x4ad470
mov ecx, esi
call fcn.0042cce3
neg eax
sbb ebx, ebx
inc ebx
lea ecx, [esi - 0x10]
call fcn.0043d912
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0043d912
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0043d912
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x42d49b
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push ebx
push esi
push edi
push 0x2a
lea edx, [ebp + 8]
lea ecx, [ebp - 8]
call fcn.00431d08
pop ecx
lea ecx, [ebp - 0x27c]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 8]
mov ebx, eax
add ecx, 0xfffffff0
call fcn.0043d912
cmp ebx, 0xffffffff
je 0x42d689
test byte [ebp - 0x27c], 0x10
je 0x42d551
lea ecx, [ebp - 0x250]
call fcn.0044cdbe
test al, al
jne 0x42d66c
test dword [ebp - 0x27c], 0x400
jne 0x42d66c
mov eax, ecx
lea edx, [ebp + 8]
push 0x49a9c0
push eax
lea ecx, [ebp - 0xc]
call fcn.0043baed
pop ecx
mov edx, eax
lea ecx, [ebp - 0x10]
call fcn.0043baed
pop ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.0043d912
mov edi, dword [ebp - 0x10]
push ecx
mov esi, esp
lea ecx, [edi - 0x10]
call fcn.0043cad2
add eax, 0x10
mov dword [esi], eax
call fcn.0042d49b
pop ecx
lea ecx, [edi - 0x10]
jmp 0x42d667
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov esi, eax
push str..del
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x42d5c9
lea eax, [ebp - 0x250]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.0043baed
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x14]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0043d912
test esi, esi
jne 0x42d66c
lea eax, [ebp - 0x250]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0043baed
pop ecx
push 4
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
jmp 0x42d667
push str..pending
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x42d66c
lea eax, [ebp - 0x250]
sub esi, eax
lea ecx, [ebp - 0x1c]
sar esi, 1
push esi
push eax
call fcn.0043b8e8
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.00431d91
pop ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0043d912
lea eax, [ebp - 0x250]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x24]
call fcn.0043baed
mov esi, dword [ebp - 0x20]
pop ecx
push 1
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x24]
mov edi, eax
add ecx, 0xfffffff0
call fcn.0043d912
test edi, edi
jne 0x42d664
lea eax, [ebp - 0x250]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.0043baed
pop ecx
push 5
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.0043d912
lea ecx, [esi - 0x10]
call fcn.0043d912
lea eax, [ebp - 0x27c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42d4da
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0043d912
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42ffc6
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
lea eax, [ebp - 0x414]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov ebx, 0x104
push ebx
push eax
push dword [0x4ad284]
call esi
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
lea eax, [ebp - 0x20c]
push eax
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
jne 0x430031
inc eax
jmp 0x43008f
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 2
push str.TEMP
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call ebx
neg eax
sbb eax, eax
inc eax
pop esi
pop ebx
leave
ret

Function at 0x4335f7
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
mov ebx, edx
push edi
push 0x2000000
push 3
push edi
push 5
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, 0xffffffff
jne 0x43362e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x433684
push edi
push edi
push edi
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x433655
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x43365f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x43367c
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
mov ecx, edi
call fcn.0043a7ac
pop ecx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [ebp - 4]
call fcn.0043bb32
lea ecx, [ebp - 8]
call fcn.0043bb32
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x437cd9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
lea eax, [ebp - 0xac]
push esi
push 0
push 0x55
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_LCIDToLocaleName]
push dword [esi + 8]
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x437d3f
push 0x55
lea eax, [ebp - 0xac]
push eax
push 0x6d
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
cmp eax, 1
jg 0x437d00
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
movzx eax, word [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
pop esi
leave
ret
Function at 0x43a978
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x14
mov edi, ecx
pop esi
jmp 0x43a994
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x43a9b5
test esi, esi
je 0x43a9bb
dec esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 8]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x43a984
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x14
test eax, eax
je 0x43a9c5
jle 0x43a9af
movzx eax, ax
or eax, 0x80070000
jmp 0x43a9af
mov eax, 0x80004005
jmp 0x43a9af

Function at 0x43aa14
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
xor esi, esi
push edi
mov eax, dword [ebx + 4]
test eax, eax
je 0x43aa3f
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebx + 8], esi
je 0x43aa3c
push dword [ebx + 8]
call edi
mov eax, dword [ebx + 4]
mov dword [ebx + 8], esi
push eax
call edi
push dword [ebx + 0x10]
mov esi, dword [ebx + 0xc]
lea ecx, [ebp - 4]
push dword [ebx + 0x14]
movzx edi, word [ebx + 0x1c]
call fcn.0043b8e8
xor ecx, ecx
push ecx
push ecx
push esi
push ecx
push ecx
push edi
push dword [eax]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, dword [ebp - 4]
mov dword [ebx + 4], eax
lea ecx, [ecx - 0x10]
call fcn.0043d912
xor esi, esi
cmp dword [ebx + 4], esi
jne 0x43aa82
call fcn.0044cc8a
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10

Function at 0x43aa8b
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 4], 0x1d4c0
call fcn.0043ab53
xor edi, edi
push edi
push edi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebx], eax
test eax, eax
je 0x43ab44
cmp dword [ebp - 4], edi
je 0x43ab4b
push esi
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea ecx, [ebp - 4]
push 4
push ecx
push 2
push eax
call esi
push 4
lea eax, [ebp - 4]
push eax
push 6
push dword [ebx]
call esi
push 4
lea eax, [ebp - 4]
push eax
push 5
push dword [ebx]
call esi
push 4
lea eax, [ebp - 4]
push eax
push 8
push dword [ebx]
call esi
push 4
lea eax, [ebp - 4]
push eax
push 7
push dword [ebx]
call esi
push 4
lea eax, [ebp - 4]
push eax
push 0x31
push dword [ebx]
call esi
push 4
lea eax, [ebp - 4]
push eax
push 0x3f
push dword [ebx]
call esi
push 4
lea eax, [ebp - 4]
push eax
push 0xb
push dword [ebx]
call esi
push 4
lea eax, [ebp - 4]
push eax
push 6
push dword [ebx]
call esi
push 4
lea eax, [ebp - 4]
push eax
push 5
push dword [ebx]
call esi
pop esi
cmp dword [ebx], edi
jne 0x43ab4b
call fcn.0044cc8a
mov edi, eax
mov eax, edi
pop edi
pop ebx
leave
ret 0x18
Function at 0x43c382
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x43c3d8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x43c3d8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x43c3ca
cmp esi, ecx
jae 0x43c3d8
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x43c3b8
cmp esi, ecx
jae 0x43c3d8
cmp word [esi], 0
je 0x43c3d8
mov eax, esi
jmp 0x43c3da
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x43d92a
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
lea eax, [ebp - 4]
push eax
xor ecx, ecx
push ecx
push ecx
push 3
push edi
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x7a
sete bl
jne 0x43d9c1
push esi
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x43d9b8
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, eax
test ebx, ebx
je 0x43d9ae
xor edx, edx
mov eax, edx
cmp dword [esi], edx
jbe 0x43d997
lea ecx, [esi + 0xc]
mov dword [ecx], 2
inc eax
lea ecx, [ecx + 0xc]
cmp eax, dword [esi]
jb 0x43d989
push edx
push edx
push edx
push esi
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb ebx, ebx
inc ebx
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x43d9c0
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret
Function at 0x43da43
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
or dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 4]
or dword [ebp - 4], 0xffffffff
push ebx
push esi
push edi
xor esi, esi
or ebx, 0xffffffff
push eax
push 0x2000000
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, eax
test edi, edi
je 0x43da98
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, eax
cmp dword [ebp - 4], 0xffffffff
je 0x43daa7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x43db36
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push esi
push esi
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateProcessesW]
test eax, eax
je 0x43db2b
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x43db03
mov ebx, esi
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebx + edx]
cmp eax, dword [ebp - 0x10]
jne 0x43daf8
mov eax, dword [ebx + edx + 8]
test eax, eax
je 0x43daf8
push eax
push 0x49a9c4
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
je 0x43db22
mov ecx, dword [ebp - 8]
inc esi
add ebx, 0x10
cmp esi, ecx
jb 0x43dace
mov ebx, dword [ebp - 0x18]
push dword [ebp - 0xc]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
cmp ebx, 0xffffffff
je 0x43db2b
push dword [ebp + 0x10]
mov ecx, ebx
sub esp, 0xc
call fcn.0043d9c7
mov edi, eax
jmp 0x43db36
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebx + eax + 4]
jmp 0x43db03
push 0x490
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x43e494
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push ecx
mov ebx, edx
mov dword [ebp - 8], ecx
push 3
push 0x49156c
mov ecx, ebx
call fcn.0043b6e0
mov esi, eax
test esi, esi
je 0x43e596
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x43e4c6
mov ecx, 0x4934ec
push 0x5c
push ecx
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov edi, eax
test edi, edi
je 0x43e596
mov ecx, dword [ebp - 8]
mov eax, 0x2001f
cmp dword [ecx + 0x10], 0
je 0x43e520
push ecx
push 5
push str.Wow64
mov ecx, ebx
call fcn.0043b6e0
test eax, eax
je 0x43e51b
mov eax, dword [eax + 4]
test eax, eax
jne 0x43e506
mov eax, 0x4934ec
push 0x491870
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
mov eax, 0x2021f
je 0x43e520
mov eax, 0x2001f
and dword [ebp - 4], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x43e530
mov ecx, 0x4934ec
lea esi, [ebp - 4]
mov edx, ecx
push esi
push eax
lea eax, [edi + 2]
sub edi, edx
sar edi, 1
push eax
mov edx, edi
call fcn.0041f598
push eax
push dword [ebp - 8]
call sym.Dismx86.exe_DismRegOpenKeyEx
mov esi, eax
test esi, esi
jne 0x43e58a
push ecx
push 5
push str.Value
mov ecx, ebx
call fcn.0043b6e0
test eax, eax
je 0x43e580
mov eax, dword [eax + 4]
test eax, eax
jne 0x43e574
mov eax, 0x4934ec
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x43e588
mov ecx, dword [ebp - 4]
call fcn.0044e128
mov esi, eax
lea ecx, [ebp - 4]
call fcn.0043b8cb
mov eax, esi
jmp 0x43e59b
mov eax, 0x80004005
pop edi
pop esi
pop ebx
leave
ret
Function at 0x442fda
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push edx
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
jne 0x443015
xor ecx, ecx
call fcn.0044cca7
mov edi, eax
jmp 0x443144
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp eax, 3
jae 0x44302d
push 0xb
pop edi
jmp 0x443144
push ebx
push ebx
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x443133
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x443133
mov cx, word [ebx]
cmp cx, word [0x48bae4]
jne 0x44309d
mov eax, dword [ebp - 4]
test al, 1
je 0x443089
push 0x49bcf8
push 0x49aadc
push 1
call dword [sym.imp.CBSHost.dll_DismWriteLog]
push 0xb
pop edi
jmp 0x44313c
add eax, ebx
lea edx, [ebx + 2]
push eax
mov ecx, edi
call fcn.00442919
mov edi, eax
jmp 0x44312a
push 3
push 0x48bae8
push ebx
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
jne 0x4430c3
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push eax
mov edx, ebx
call fcn.0044c18c
pop ecx
jmp 0x44310d
call fcn.0043d5bb
push eax
lea ecx, [ebp - 8]
call fcn.0043bbe8
mov eax, dword [ebp - 4]
test eax, eax
jle 0x44310d
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
push ecx
push ecx
push eax
push ebx
push ecx
push 3
call edi
mov esi, eax
lea ecx, [ebp - 8]
push esi
call fcn.0043d810
push esi
push eax
mov eax, dword [ebp - 4]
push eax
push ebx
push 0
push 3
call edi
push esi
lea ecx, [ebp - 8]
call fcn.0043d882
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov ecx, edi
mov edx, esi
mov eax, dword [esi - 0xc]
lea eax, [esi + eax*2]
push eax
call fcn.00442919
lea ecx, [esi - 0x10]
mov edi, eax
call fcn.0043d912
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x44313c
xor ecx, ecx
call fcn.0044cca7
mov edi, eax
lea ecx, [ebp - 0x10]
call fcn.0043bb32
lea ecx, [ebp - 0x14]
call fcn.0043bb32
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret