joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a842
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 2
xor edi, edi
mov dword [ebp - 0x14], edx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x42a880
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42a880
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x42a88c
call fcn.0044bc4b
mov edi, eax
jmp 0x42a916
mov esi, dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
call esi
lea ecx, [ebp - 8]
mov dword [ebp - 4], edi
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 8], edi
push ecx
push str.VarFileInfoTranslation
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x42a908
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], edi
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x10]
push str.StringFileInfo_.4x_.4xFileDescription
push eax
call fcn.00449eea
add esp, 0x10
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push dword [eax]
push ebx
call esi
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0043c924
test esi, esi
je 0x42a908
push dword [ebp - 0xc]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
jmp 0x42a90f
call fcn.0044bc4b
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x18]
call fcn.0043879e
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42aacd
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov eax, 0x200
mov edi, edx
push eax
mov esi, ecx
mov ecx, edi
push eax
call fcn.0043c822
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
mov ecx, edi
push eax
call fcn.0043c894
mov ecx, edi
call fcn.00431052
mov esi, dword [edi]
cmp dword [esi - 0xc], 0
je 0x42abc1
cmp word [esi], 0x22
jne 0x42ab36
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveArgsW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
push 3
push 0
push esi
call dword [sym.imp.SHELL32.dll_PathResolve]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0043c8bf
jmp 0x42abc1
call fcn.0043c5cd
push eax
lea ecx, [ebp - 4]
call fcn.0043ac50
movzx eax, word [esi]
test ax, ax
je 0x42ab89
mov ecx, eax
cmp cx, 0x20
jne 0x42ab70
push 3
push 0
push 0x104
lea ecx, [ebp - 4]
call fcn.0043c822
push eax
call dword [sym.imp.SHELL32.dll_PathResolve]
test eax, eax
jne 0x42aba1
movzx eax, word [esi]
lea ecx, [ebp - 4]
push eax
call fcn.0043b93f
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x42ab4e
push 3
push 0
push 0x104
lea ecx, [ebp - 4]
call fcn.0043c822
push eax
call dword [sym.imp.SHELL32.dll_PathResolve]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.0043c8bf
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.0043b599
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.0043c924
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x42ae69
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
push 8
push dword [ebp + 0x10]
push ecx
lea ecx, [edi - 0x10]
mov esi, esp
call fcn.0043baa0
push dword [ebp + 8]
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.0042a344
lea eax, [ebx + 0x1c]
mov dword [ebx], 0x4983b8
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea ecx, [edi - 0x10]
mov dword [ebx + 0x18], eax
call fcn.0043c924
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x42b233
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
add eax, 0xfffffff0
push edi
push dword [ebp + 0x10]
mov ebx, ecx
mov dword [ebp - 4], eax
push ecx
mov ecx, eax
mov esi, esp
call fcn.0043baa0
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
mov esi, dword [ebp + 8]
push esi
call fcn.0042a344
and dword [ebp + 0x14], 0
mov dword [ebx], 0x498390
sub edi, 6
je 0x42b291
sub edi, 1
jne 0x42b2ea
lea edx, [ebp + 0x14]
push edx
push 0x2000000
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerStartupApprovedStartupFolder
push 0x80000001
jmp 0x42b2a4
lea edx, [ebp + 0x14]
push edx
push 0x2000000
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerStartupApprovedStartupFolder
push 0x80000002
mov eax, dword [esi + 0x48]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
jne 0x42b2ea
push dword [ebx + 0xc]
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x10], 0xc
push ecx
lea ecx, [ebp - 0x10]
xor esi, esi
push ecx
push esi
push esi
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42b2ea
test byte [ebp - 0x10], 1
je 0x42b2ea
mov dword [ebx + 0x10], esi
lea ecx, [ebp + 0x14]
call fcn.0043a910
mov ecx, dword [ebp - 4]
call fcn.0043c924
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10
Function at 0x42b3fc
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.0043baa0
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.0043baa0
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.0043baa0
push dword [ebp + 0xc]
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
mov esi, dword [ebp + 8]
push esi
call fcn.0042aa44
and dword [ebp + 0x20], 0
mov dword [ebx], 0x498368
sub edi, 0
je 0x42b4c0
sub edi, 1
je 0x42b4b0
sub edi, 3
je 0x42b49b
sub edi, 5
jne 0x42b512
lea edx, [ebp + 0x20]
push edx
push 0x2000000
push str.DEFAULTSOFTWAREMicrosoftWindowsCurrentVersionExplorerStartupApprovedRun
push 0x80000003
jmp 0x42b4d3
lea edx, [ebp + 0x20]
push edx
push 0x2000000
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerStartupApprovedRun
push 0x80000001
jmp 0x42b4d3
lea edx, [ebp + 0x20]
push edx
push 0x2000000
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerStartupApprovedRun32
jmp 0x42b4ce
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 0x42b512
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 0x42b512
test byte [ebp - 0x18], 1
je 0x42b512
mov dword [ebx + 0x10], esi
lea ecx, [ebp + 0x20]
call fcn.0043a910
mov ecx, dword [ebp - 4]
call fcn.0043c924
mov ecx, dword [ebp - 8]
call fcn.0043c924
mov ecx, dword [ebp - 0xc]
call fcn.0043c924
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x1c
Function at 0x42bc48
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.00430f7e
mov edi, dword [ebp - 8]
pop ecx
lea ecx, [edi - 0x10]
call fcn.0043baa0
lea ecx, [edi - 0x10]
lea esi, [eax + 0x10]
call fcn.0043c924
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 0x42bcfe
mov edi, dword [ebp - 0x10]
test byte [ebp - 0x268], 0x10
je 0x42bcb7
lea ecx, [ebp - 0x23c]
call fcn.0044bd7f
test al, al
jne 0x42bced
jmp 0x42bccd
push str.desktop.ini
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x42bced
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push 1
push ecx
mov ecx, esp
lea edx, [ebp + 8]
push eax
call fcn.0043ab55
mov eax, dword [edi]
pop ecx
push ebx
mov ecx, edi
call dword [eax + 0x18]
lea ecx, [ebp - 0x268]
call fcn.00438a3e
cmp dword [ebp - 0x18], 0xffffffff
jne 0x42bc9d
lea ecx, [esi - 0x10]
call fcn.0043c924
cmp dword [ebx + 0xc], 0x60002
jae 0x42be18
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 0x42be10
push 0x105
lea eax, [ebp - 0x474]
xor ebx, ebx
push eax
push ebx
jmp 0x42bdff
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x20019
push dword [0x4ab220]
lea eax, [ebp - 0x474]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42bde9
call fcn.0043c5cd
push eax
lea ecx, [ebp - 0xc]
call fcn.0043ac50
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
mov edx, str.path
call fcn.0044cd14
pop ecx
test eax, eax
je 0x42bda2
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
jmp 0x42bde4
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 0x42bde1
mov ecx, esi
call fcn.0044c9a8
test eax, eax
jne 0x42bde1
push dword [ebp + 0xc]
push eax
push ecx
lea ecx, [esi - 0x10]
mov edi, esp
call fcn.0043baa0
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.0043c924
lea ecx, [ebp - 8]
call fcn.0043a910
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 0x42bd4f
lea ecx, [ebp - 4]
call fcn.0043a910
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0043c924
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8
Function at 0x42c1c6
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.0043ab55
pop ecx
call fcn.0043c5cd
push eax
lea ecx, [ebp - 0xc]
call fcn.0043ac50
push 0x496a08
push edi
lea edx, [ebp - 0x10]
lea ecx, [ebp - 8]
call fcn.0043ab55
pop ecx
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.0043ab55
pop ecx
push eax
lea ecx, [ebp - 0xc]
call fcn.0043b599
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov esi, dword [ebp - 0xc]
mov ecx, esi
call fcn.0044c9a8
cmp eax, 1
je 0x42c35c
push 0x55
push edi
push 0x6d
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
cmp eax, 1
jg 0x42c209
push str.en.zip
lea edx, [ebp - 0x10]
lea ecx, [ebp - 8]
call fcn.0043ab55
pop ecx
push eax
lea ecx, [ebp - 0xc]
call fcn.0043b599
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov esi, dword [ebp - 0xc]
mov ecx, esi
call fcn.0044c9a8
cmp eax, 1
je 0x42c35c
push str..zip
lea edx, [ebp - 0x10]
lea ecx, [ebp - 8]
call fcn.0043ab55
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.0043c924
cmp edi, 0xffffffff
je 0x42c317
test byte [ebp - 0x264], 0x10
jne 0x42c305
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 0x42c321
lea eax, [ebp - 0x264]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42c2d6
lea ecx, [ebp - 0x14]
call fcn.0043899f
jmp 0x42c36f
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.0043ab55
pop ecx
push eax
lea ecx, [ebp - 0xc]
call fcn.0043b599
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.0043c924
lea ecx, [ebp - 0x14]
call fcn.0043899f
mov esi, dword [ebp - 0xc]
mov edx, 0x4ab4f8
mov ecx, esi
call fcn.0042c16e
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
lea ecx, [esi - 0x10]
call fcn.0043c924
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0043c924
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0043c924
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x42f448
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 [0x4ab30c]
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 0x42f4b3
inc eax
jmp 0x42f511
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 0x4329c8
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 0x4329ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x432a55
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 0x432a26
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x432a30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x432a4d
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
mov ecx, edi
call fcn.00439736
pop ecx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [ebp - 4]
call fcn.0043ab9a
lea ecx, [ebp - 8]
call fcn.0043ab9a
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x436cfd
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 0x436d63
push 0x55
lea eax, [ebp - 0xac]
push eax
push 0x6d
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
cmp eax, 1
jg 0x436d24
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 0x439900
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x14
mov edi, ecx
pop esi
jmp 0x43991c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x43993d
test esi, esi
je 0x439943
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 0x43990c
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x14
test eax, eax
je 0x43994d
jle 0x439937
movzx eax, ax
or eax, 0x80070000
jmp 0x439937
mov eax, 0x80004005
jmp 0x439937

Function at 0x43999c
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 0x4399c7
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebx + 8], esi
je 0x4399c4
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.0043a92d
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.0043c924
xor esi, esi
cmp dword [ebx + 4], esi
jne 0x439a0a
call fcn.0044bc4b
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10

Function at 0x439a13
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.00439add
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 0x439ace
cmp dword [ebp - 4], edi
je 0x439aca
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
mov eax, dword [ebx]
pop esi
test eax, eax
jne 0x439ad5
call fcn.0044bc4b
mov edi, eax
mov eax, edi
pop edi
pop ebx
leave
ret 0x18
Function at 0x43b340
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 0x43b396
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x43b396
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x43b388
cmp esi, ecx
jae 0x43b396
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x43b376
cmp esi, ecx
jae 0x43b396
cmp word [esi], 0
je 0x43b396
mov eax, esi
jmp 0x43b398
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x43c93c
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 0x43c9d9
push esi
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x43c9c4
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 0x43c9cc
xor edx, edx
mov eax, edx
cmp dword [esi], edx
jbe 0x43c9a9
lea ecx, [esi + 0xc]
mov dword [ecx], 2
inc eax
lea ecx, [ecx + 0xc]
cmp eax, dword [esi]
jb 0x43c99b
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]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
jmp 0x43c9cc
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x43c9d8
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret
Function at 0x43ca5b
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 0x43cab0
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 0x43cabf
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x43cb4e
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 0x43cb43
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x43cb1b
mov ebx, esi
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebx + edx]
cmp eax, dword [ebp - 0x10]
jne 0x43cb10
mov eax, dword [ebx + edx + 8]
test eax, eax
je 0x43cb10
push eax
push 0x498828
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
je 0x43cb3a
mov ecx, dword [ebp - 8]
inc esi
add ebx, 0x10
cmp esi, ecx
jb 0x43cae6
mov ebx, dword [ebp - 0x18]
push dword [ebp - 0xc]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
cmp ebx, 0xffffffff
je 0x43cb43
push dword [ebp + 0x10]
mov ecx, ebx
sub esp, 0xc
call fcn.0043c9df
mov edi, eax
jmp 0x43cb4e
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebx + eax + 4]
jmp 0x43cb1b
push 0x490
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x43d4cd
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 0x48f4a4
mov ecx, ebx
call fcn.0043a719
mov esi, eax
test esi, esi
je 0x43d5d1
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x43d4ff
mov ecx, 0x491414
push 0x5c
push ecx
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov edi, eax
test edi, edi
je 0x43d5d1
mov ecx, dword [ebp - 8]
mov eax, 0x2001f
cmp dword [ecx + 0x10], 0
je 0x43d559
push ecx
push 5
push str.Wow64
mov ecx, ebx
call fcn.0043a719
test eax, eax
je 0x43d554
mov eax, dword [eax + 4]
test eax, eax
jne 0x43d53f
mov eax, 0x491414
push 0x48f7a0
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
mov eax, 0x2021f
je 0x43d559
mov eax, 0x2001f
and dword [ebp - 4], 0
mov ecx, dword [esi + 4]
mov edx, ecx
test ecx, ecx
jne 0x43d56d
mov edx, 0x491414
mov ecx, edx
lea esi, [ebp - 4]
push esi
push eax
lea eax, [edi + 2]
sub edi, edx
sar edi, 1
push eax
mov edx, edi
call fcn.0041f0df
push eax
push dword [ebp - 8]
call sym.Dismx86.exe_DismRegOpenKeyEx
mov esi, eax
test esi, esi
jne 0x43d5c5
push ecx
push 5
push str.Value
mov ecx, ebx
call fcn.0043a719
test eax, eax
je 0x43d5bb
mov eax, dword [eax + 4]
test eax, eax
jne 0x43d5af
mov eax, 0x491414
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x43d5c3
mov ecx, dword [ebp - 4]
call fcn.0044d0e9
mov esi, eax
lea ecx, [ebp - 4]
call fcn.0043a910
mov eax, esi
jmp 0x43d5d6
mov eax, 0x80004005
pop edi
pop esi
pop ebx
leave
ret