joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002e230
Capabilities:
Create service
Get common file path
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10048024]
xor eax, ebp
mov dword [ebp - 8], eax
push 0x1003f45c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], 0
cmp dword [ebp - 0x214], 0
je 0x1002e27f
push 0x1003f478
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
je 0x1002e290
push 0
call dword [ebp - 0x218]
mov word [ebp - 0x210], 0
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x21c], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1002e3de
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 4
movzx ecx, word [ebp + eax*2 - 0x212]
cmp ecx, 0x5c
je 0x1002e336
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 4
movzx eax, word [ebp + eax*2 - 0x212]
cmp eax, 0x2f
je 0x1002e336
push 0x1003f498
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.ntdll.dll_wcscat]
add esp, 8
push 0x1003f49c
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.ntdll.dll_wcscat]
add esp, 8
push 0xf01ff
push 0x1003f4c8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x1002e3be
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x210]
push ecx
push 0
push 2
push 1
push 0xf01ff
push 0x1003f4dc
push 0x1003f4f0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x1002e3be
push 0
push 0
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
cmp dword [ebp - 0x21c], 0
je 0x1002e3d4
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x218], 0
je 0x1002e3ef
push 1
call dword [ebp - 0x218]
cmp dword [ebp - 0x214], 0
je 0x1002e405
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000f672
mov esp, ebp
pop ebp
ret
Function at 0x1002eba0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
mov esp, ebp
pop ebp
ret
Function at 0x10030cf0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x10048024]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], 0x114
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jb 0x10030d2a
mov eax, 1
jmp 0x10030d2c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f672
mov esp, ebp
pop ebp
ret

Function at 0x10030d40
Capabilities:
Create service
Get common file path
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10048024]
xor eax, ebp
mov dword [ebp - 8], eax
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], 0
cmp dword [ebp - 0x214], 0
je 0x10030d8f
push str.Wow64EnableWow64FsRedirection
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
je 0x10030da0
push 0
call dword [ebp - 0x218]
mov word [ebp - 0x210], 0
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x21c], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10030eee
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 4
movzx ecx, word [ebp + eax*2 - 0x212]
cmp ecx, 0x5c
je 0x10030e46
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 4
movzx eax, word [ebp + eax*2 - 0x212]
cmp eax, 0x2f
je 0x10030e46
push 0x10040500
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.ntdll.dll_wcscat]
add esp, 8
push 0x10040504
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.ntdll.dll_wcscat]
add esp, 8
push 0xf01ff
push 0x10040530
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x10030ece
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x210]
push ecx
push 0
push 2
push 1
push 0xf01ff
push 0x10040544
push str.amwrtdrv
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x10030ece
push 0
push 0
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
cmp dword [ebp - 0x21c], 0
je 0x10030ee4
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x218], 0
je 0x10030eff
push 1
call dword [ebp - 0x218]
cmp dword [ebp - 0x214], 0
je 0x10030f15
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000f672
mov esp, ebp
pop ebp
ret
Function at 0x10031350
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100311a0
add esp, 0xc
test eax, eax
jne 0x100313a3
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0xc], eax
push 0xb2
push 0x10040608
call fcn.10030f60
add esp, 8
push eax
push str._s:_Failed_to_SetSectorPos_in_ReadSector.
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
add esp, 0xc
xor eax, eax
jmp 0x100313ff
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0x200
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
call sub.ntdll.dll__allmul
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100313f5
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 0x200
div ecx
test edx, edx
jne 0x100313f5
mov dword [ebp - 0x10], 1
jmp 0x100313fc
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x10033560
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0x1000
mov dword [ebp - 0x18], 0
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
setne al
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x100335c9
push 0x57
push 0x10040210
call fcn.100334a0
add esp, 8
push eax
push str.h_INVALID_HANDLE_VALUE
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10002580
add esp, 0xc
jmp 0x100336ba
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.1000f66d
add esp, 4
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 4], edx
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x1003362a
push 0x5b
push str...helper.cpp
call fcn.100334a0
add esp, 8
push eax
push str.ReadFile_h__pBuff__Length__ReadLen__NULL_
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.10002580
add esp, 0xc
jmp 0x100336ba
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
jmp 0x10033643
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jae 0x10033668
mov ecx, dword [ebp - 4]
mov dl, byte [ecx]
push edx
push 1
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
test eax, eax
jne 0x10033666
mov dword [ebp - 0x10], 1
jmp 0x10033668
jmp 0x1003363a
cmp dword [ebp - 0x18], 0
jbe 0x1003369a
cmp dword [ebp - 0x10], 0
jne 0x10033688
mov eax, dword [ebp - 4]
push eax
push 0x10040274
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 8
jmp 0x1003369a
mov ecx, dword [ebp - 4]
push ecx
push 0x10040278
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1003362a
cmp dword [ebp - 4], 0
je 0x100336d9
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x401ff0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
mov cl, byte [eax]
mov byte [ebp - 2], cl
mov edx, dword [ebp + 0x10]
mov al, byte [edx + 1]
mov byte [ebp - 1], al
mov dword [ebp - 8], 0
jmp 0x402019
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0xc]
jge 0x402139
movzx eax, byte [ebp - 2]
add eax, 1
cdq
mov ecx, 0x123
idiv ecx
mov byte [ebp - 2], dl
movzx edx, byte [ebp - 2]
mov eax, dword [0x4691a4]
movzx eax, byte [eax + edx]
movzx ecx, byte [ebp - 1]
add eax, ecx
cdq
mov ecx, 0x123
idiv ecx
mov byte [ebp - 1], dl
movzx edx, byte [ebp - 1]
add edx, dword [0x4691a4]
push edx
movzx eax, byte [ebp - 2]
add eax, dword [0x4691a4]
push eax
call fcn.00402150
add esp, 8
movzx ecx, byte [ebp - 2]
mov edx, dword [0x4691a4]
movzx eax, byte [edx + ecx]
movzx ecx, byte [ebp - 1]
mov edx, dword [0x4691a4]
movzx ecx, byte [edx + ecx]
add eax, ecx
cdq
mov ecx, 0x123
idiv ecx
mov byte [ebp - 9], dl
push 0x402ad0
push 0x452a83
push 0x46bbe8
call fcn.00403d80
add esp, 8
mov ecx, eax
call fcn.00402c10
push 0x402ad0
push 0x452ab4
push 0x46bbe8
call fcn.00403d80
add esp, 8
mov ecx, eax
call fcn.00402c10
push 0x402ad0
push 0x452ab5
push 0x46bbe8
call fcn.00403d80
add esp, 8
mov ecx, eax
call fcn.00402c10
push 0x402ad0
push 0x452ab6
push 0x46bbe8
call fcn.00403d80
add esp, 8
mov ecx, eax
call fcn.00402c10
movzx edx, byte [ebp - 9]
mov eax, dword [0x4691a4]
movzx ecx, byte [eax + edx]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
movzx eax, byte [edx]
xor eax, ecx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
mov byte [ecx], al
jmp 0x402010
mov edx, dword [ebp + 0x10]
mov al, byte [ebp - 2]
mov byte [edx], al
mov ecx, dword [ebp + 0x10]
mov dl, byte [ebp - 1]
mov byte [ecx + 1], dl
mov esp, ebp
pop ebp
ret
Function at 0x405270
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esp, ebp
pop ebp
ret

Function at 0x40ad8d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0041e377
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x40adba
xor eax, eax
jmp 0x40ae60
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x40adb3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40adb3
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004052c4
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x40ae11
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x40ae00
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00409a1a
push edi
mov ebx, eax
call fcn.004052f3
pop ecx
test ebx, ebx
je 0x40ae53
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.0040a140
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.0040a1f4
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x410ea1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x410ee8
call fcn.0041e377
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x410ee8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x410f04
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00410a1b
mov esi, eax
test edi, edi
je 0x410f02
test ebx, ebx
je 0x410f02
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x411d98
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x44f9aa
call fcn.00436cc8
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x411dbd
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x411e03
lea ecx, [ebp - 0x10]
call fcn.004019b0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00411627
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401a90
mov eax, esi
call fcn.00436da0
ret 8

Function at 0x418b22
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x418b6a
call fcn.0041e377
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x418b6a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x418bad
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x418b96
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x418b96
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x418baa
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41a05b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x41a07f
cmp dword [edi + 0x54], 0
jne 0x41a07f
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041e377
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041a01c
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x422eb4
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x44fd41
call fcn.00436cc8
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00410845
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x422f16
call fcn.0041dc51
cmp eax, 1
jne 0x422f16
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00417a54
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00409366
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401a90
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401a90
mov eax, esi
call fcn.00436da0
ret 0x10

Function at 0x422f3f
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x44fd41
call fcn.00436cc8
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00410845
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x422fa1
call fcn.0041dc51
cmp eax, 1
jne 0x422fa1
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00417a54
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00409366
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401a90
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401a90
mov eax, esi
call fcn.00436da0
ret 0x14
Function at 0x435b36
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x467b08]
jne 0x435b40
repz ret
jmp fcn.0043bd7c

Function at 0x44496e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0043b6bd
and dword [ebp - 4], 0
cmp dword [0x46bb54], 0
mov ebx, eax
jne 0x444a1f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x444ad0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4597d0
push edi
call esi
test eax, eax
je 0x444ad0
push eax
call fcn.0043b64b
mov dword [esp], 0x4597c0
push edi
mov dword [0x46bb54], eax
call esi
push eax
call fcn.0043b64b
mov dword [esp], 0x4597ac
push edi
mov dword [0x46bb58], eax
call esi
push eax
call fcn.0043b64b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x46bb5c], eax
call esi
push eax
call fcn.0043b64b
pop ecx
mov dword [0x46bb64], eax
test eax, eax
je 0x444a1f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043b64b
pop ecx
mov dword [0x46bb60], eax
mov eax, dword [0x46bb60]
cmp eax, ebx
je 0x444a77
cmp dword [0x46bb64], ebx
je 0x444a77
push eax
call fcn.0043b6c6
push dword [0x46bb64]
mov esi, eax
call fcn.0043b6c6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x444a77
test edi, edi
je 0x444a77
call esi
test eax, eax
je 0x444a6e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x444a6e
test byte [ebp - 0xc], 1
jne 0x444a77
or dword [ebp + 0x10], 0x200000
jmp 0x444ab0
mov eax, dword [0x46bb58]
cmp eax, ebx
je 0x444ab0
push eax
call fcn.0043b6c6
pop ecx
test eax, eax
je 0x444ab0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x444ab0
mov eax, dword [0x46bb5c]
cmp eax, ebx
je 0x444ab0
push eax
call fcn.0043b6c6
pop ecx
test eax, eax
je 0x444ab0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46bb54]
call fcn.0043b6c6
pop ecx
test eax, eax
je 0x444ad0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x444ad2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1081370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x108138e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x10aa074
push ecx
mov edi, eax
call fcn.01095198
mov esi, eax
add esp, 8
test esi, esi
jne 0x10813cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0109502e
push esi
call fcn.01094fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x1084850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x10848ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x10af720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x10848ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.010951e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x10848ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x10af720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x108492a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.01096082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x1084957
mov word [eax], si
add eax, 2
push eax
call fcn.01096030
add esp, 4
jmp 0x1084959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x10848ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x10848b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x1084ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret