joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e9c8
Capabilities:
Get common file path

Disassembly:
push 0x78
mov eax, 0x57130e
call fcn.005485eb
mov ebx, ecx
cmp dword [0x5de3d4], 0
jne 0x43e9e4
call fcn.00406e42
lea eax, [ebp - 0x14]
xor esi, esi
push eax
push esi
push esi
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jns 0x43e9fc
xor eax, eax
jmp 0x43eb07
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
js 0x43e9f5
push 0xc
push 0x40
mov dword [ebp - 0x40], 0x67
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x43e9df
mov eax, dword [ebp - 0x14]
mov dword [edi + 8], eax
push dword [ebp - 0x14]
mov ecx, dword [0x5de3d4]
call fcn.0047afc2
mov dword [edi], esi
lea ecx, [ebp - 0x10]
mov dword [edi + 4], eax
mov eax, dword [ebx]
push edi
push ecx
mov dword [ebp - 0x1c], edi
mov esi, dword [eax + 0x164]
mov ecx, esi
call fcn.005485ae
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
and dword [ebp - 4], 0
push dword [eax - 0xc]
call fcn.00403e20
mov dword [ebp - 0x30], eax
mov eax, dword [ebx]
push 0
push edi
mov esi, dword [eax + 0x168]
mov ecx, esi
call fcn.005485ae
mov ecx, ebx
call esi
mov dword [ebp - 0x28], eax
mov eax, dword [ebx]
push 1
push edi
mov esi, dword [eax + 0x168]
mov ecx, esi
call fcn.005485ae
mov ecx, ebx
call esi
push 0xa
pop ecx
mov dword [ebp - 0x24], eax
lea esi, [ebp - 0x40]
lea eax, [ebp - 0x84]
mov dword [ebp - 0x20], 1
push eax
push 0
push 0x1132
push dword [ebx + 0x20]
lea edi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x80], 0xffff0002
mov dword [ebp - 0x84], 0xffff0000
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 2
push 0x1102
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call fcn.005485ae
call esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00404220
xor eax, eax
inc eax
call fcn.005485b4
ret

Function at 0x43ed57
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x5d5ff0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test eax, eax
je 0x43edbd
push 0x208
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, esi
test eax, eax
je 0x43eda0
lea eax, [ebp - 0x2ac]
push eax
jmp 0x43eda5
push 0x585f48
call fcn.00404100
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00547faa
mov esp, ebp
pop ebp
ret 8
call fcn.00406e42
int3

Function at 0x43f290
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.004031b0
call fcn.00413874
cmp dword [eax + 0x14], 0
jne 0x43f2ab
mov ecx, esi
pop esi
jmp fcn.0043eb13
pop esi
ret
Function at 0x44c8fd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x44c916
call fcn.00413820
mov esi, dword [eax + 0xc]
push 0x587504
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x44c96c
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x44c96b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x44c94c
xor esi, esi
jmp 0x44c962
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.0044c974
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x47bb52
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x5d5ff0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
jne 0x47bb75
xor eax, eax
jmp 0x47bc36
cmp dword [ebp + 0xc], 0
je 0x47bb6e
xor ebx, ebx
call fcn.00413820
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47bb6e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x47bb6e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x47bc4c
push eax
call fcn.00553180
pop ecx
lea edx, [eax + 1]
lea eax, [edx + edx]
mov dword [ebp - 8], edx
lea ecx, [eax + 8]
cmp eax, ecx
sbb eax, eax
and eax, ecx
je 0x47bc06
cmp eax, 0x400
ja 0x47bbeb
call fcn.00548b90
mov esi, esp
test esi, esi
je 0x47bc01
mov dword [esi], 0xcccc
jmp 0x47bbfe
push eax
call fcn.0055316a
mov esi, eax
pop ecx
test esi, esi
je 0x47bc01
mov dword [esi], 0xdddd
add esi, 8
mov edx, dword [ebp - 8]
jmp 0x47bc08
mov esi, ebx
test esi, esi
je 0x47bc4c
push edx
push dword [ebp - 0xc]
push esi
call fcn.0040635c
test eax, eax
je 0x47bc26
mov ecx, dword [ebp - 0x10]
push eax
call fcn.0047d4c6
xor ebx, ebx
inc ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call fcn.0047d4e2
pop ecx
mov eax, ebx
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00547faa
mov esp, ebp
pop ebp
ret 8
call fcn.00406e42
int3
Function at 0x4e7a10
Capabilities:
Get file system object information

Disassembly:
push 0x4cc
mov eax, 0x5781ce
call fcn.0054861f
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00403800
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x5b52b0
call fcn.004032c0
cmp eax, 0xffffffff
jne 0x4e7b1a
push 0
push 0x5874c0
lea ecx, [ebp - 0x4d0]
call fcn.004032c0
cmp eax, 0xffffffff
jne 0x4e7b1a
push 0
push 0x580c3c
lea ecx, [ebp - 0x4d0]
call fcn.004032c0
cmp eax, 0xffffffff
jne 0x4e7b1a
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00403800
mov edi, eax
pop ecx
mov dword [ebp - 0x4d4], edi
lea ecx, [edi + 0x10]
mov dword [ebp - 0x4d8], ecx
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea eax, [ebp - 0x218]
push eax
push 0x104
push edx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4e7ae9
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call fcn.005485ae
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x4d4]
mov edi, eax
call fcn.00404220
jmp 0x4e7b52
lea eax, [ebp - 0x218]
push eax
call fcn.0054df5b
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00403f20
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00404220
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4e7b40
mov edi, dword [ebp - 0x4cc]
jmp 0x4e7b52
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call fcn.005485ae
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.00404220
mov eax, edi
call fcn.005485c9
ret

Function at 0x4f7818
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x4f78d6
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x4f78cb
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4f78cb
neg eax
sbb eax, eax
and eax, ecx
cmp dword [ebx], eax
jne 0x4f78cb
mov eax, dword [ebx + 4]
sub eax, 1
je 0x4f789f
sub eax, 1
je 0x4f786b
sub eax, 1
jne 0x4f78cb
mov edi, 0x428e
jmp 0x4f78a4
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4f78a4
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call fcn.005485ae
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x4f78a4
add edi, 3
jmp 0x4f78a4
mov edi, 0x3ea0
push edi
call fcn.004070a6
test eax, eax
je 0x4f78d6
push edi
push eax
mov ecx, 0x5df8c0
call fcn.00403a70
test eax, eax
je 0x4f78d6
mov eax, dword [0x5df8c0]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
jmp 0x4f78cd
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.00406e42
int3
Function at 0x547fa0
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x5d06d8
call fcn.005486d0
push 1
call fcn.00548065
pop ecx
test al, al
jne 0x547e57
push 7
call fcn.00548d1e
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00548030
mov byte [ebp - 0x24], al
mov eax, dword [0x5e0678]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x547e50
test eax, eax
jne 0x547ec1
mov dword [0x5e0678], ecx
push 0x57dd38
push 0x57dd10
call fcn.0055c16c
pop ecx
pop ecx
test eax, eax
je 0x547ea4
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x547f9a
push 0x57dd0c
push 0x57da08
call fcn.00401000
pop ecx
pop ecx
mov dword [0x5e0678], 2
jmp 0x547ec6
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.005481d2
pop ecx
call fcn.00548d12
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x547ef6
push esi
call fcn.00548148
pop ecx
test al, al
je 0x547ef6
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.005485ae
call esi
call fcn.00548d18
mov esi, eax
cmp dword [esi], edi
je 0x547f14
push esi
call fcn.00548148
pop ecx
test al, al
je 0x547f14
push dword [esi]
call fcn.0055c49b
pop ecx
call fcn.00548e3a
movzx eax, ax
push eax
call fcn.0055c0c4
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.0055c3aa
test al, al
jne 0x547f3f
push esi
call fcn.0055c4d3
test bl, bl
jne 0x547f48
call fcn.0055c476
push edi
push 1
call fcn.005481ef
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x547f9a
call fcn.00548716
ret
call fcn.00548c63
jmp 0x547e38

Function at 0x54c294
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x5a9a8c
push str.FlsAlloc
push 0
call fcn.0054c214
mov esi, eax
add esp, 0x10
test esi, esi
je 0x54c2c6
push dword [ebp + 8]
mov ecx, esi
call fcn.005485ae
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x54c308
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x5a9ab0
push str.FlsGetValue
push 2
call fcn.0054c214
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x54c339
mov ecx, esi
call fcn.005485ae
call esi
jmp 0x54c33f
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x54c342
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x5a9ac4
push str.FlsSetValue
push 3
call fcn.0054c214
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x54c376
mov ecx, esi
call fcn.005485ae
call esi
jmp 0x54c37c
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x5630cb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00562d8a

Function at 0x5630d6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00562f0d

Function at 0x563a73
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005639f6
Function at 0x564c06
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005648a8
Function at 0x56af10
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c210
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5d5ff0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.004053a0
mov ecx, eax
test ecx, ecx
jne 0x56af52
push 0x80004005
call fcn.004041d0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4c], eax
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x5c], 1
call fcn.0056c341
add esp, 4
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], edx
mov dword [ebx + 0x2034], 0
call fcn.004053a0
mov ecx, eax
test ecx, ecx
jne 0x56af9a
push 0x80004005
call fcn.004041d0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x50], eax
lea esi, [ebx + 0x200c]
mov byte [ebp - 4], 1
push esi
lea ecx, [ebp - 0x50]
call fcn.00403790
mov eax, dword [ebx + 0x2010]
lea ecx, [ebp - 0x50]
push dword [eax - 0xc]
push eax
call fcn.00403400
push 4
push str..csv
lea ecx, [ebp - 0x50]
call fcn.00403400
mov edi, 1
cmp dword [ebx + 0x2008], edi
jl 0x56b053
push edi
push dword [ebx + 0x2010]
lea eax, [ebp - 0x4c]
push dword [esi]
push str._s_s__d.csv
push eax
call fcn.0056a750
mov esi, dword [ebp - 0x4c]
add esp, 0x14
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x56b0f3
lea eax, [ebp - 0x48]
push eax
push esi
call fcn.0056cb4f
add esp, 8
test eax, eax
js 0x56b03e
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x58]
jg 0x56b03e
mov eax, dword [ebp - 0x20]
jl 0x56b035
cmp eax, dword [ebp - 0x54]
jae 0x56b03e
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], edi
inc edi
lea esi, [ebx + 0x200c]
cmp edi, dword [ebx + 0x2008]
jle 0x56afe6
lea esi, [ebx + 0x200c]
push esi
lea ecx, [ebp - 0x4c]
call fcn.00403790
mov eax, dword [ebx + 0x2010]
lea ecx, [ebp - 0x4c]
push dword [eax - 0xc]
push eax
call fcn.00403400
push dword [ebp - 0x5c]
lea eax, [ebp - 0x4c]
push dword [ebx + 0x2010]
push dword [esi]
push str._s_s__d.csv
push eax
call fcn.0056a750
mov esi, dword [ebp - 0x4c]
push esi
call fcn.0056c3ab
mov edi, dword [ebp - 0x50]
push esi
push edi
call fcn.0056c3b6
add esp, 0x20
lea edx, [edi - 0x10]
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x56b0bb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x56b0d7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00547faa
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x50]
push esi
push edi
call fcn.0056c3b6
add esp, 8
jmp 0x56b09d
Function at 0x40d393
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x43db14], 0
je 0x40d3ab
mov eax, dword [0x43db18]
jmp 0x40d479
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwarePoliciesMicrosoftSecurity
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d3f9
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x43db18
push esi
push esi
push str.CLSIDInterfaceTest
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d3f9
cmp dword [ebp - 8], 4
je 0x40d452
mov eax, dword [ebp - 4]
mov dword [ebp - 4], esi
test eax, eax
je 0x40d40a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftSecurity
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d45a
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x43db18
push esi
push esi
push str.CLSIDInterfaceTest
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d45a
cmp dword [ebp - 8], 4
jne 0x40d45a
mov esi, dword [0x43db18]
jmp 0x40d460
mov dword [0x43db18], esi
cmp dword [ebp - 4], 0
mov byte [0x43db14], 1
je 0x40d476
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40f825
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 0x10
mov esi, ecx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40f867
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x40f867
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40f867
cmp word [eax + 2], 0
je 0x40f867
cmp dword [eax + 0x28], 0xfeef04bd
jne 0x40f867
add eax, 0x30
jmp 0x40f86c
mov eax, 0x41d190
pop edi
pop esi
ret

Function at 0x40f90d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 4], 0x20a
mov word [eax], dx
lea edx, [ebp - 4]
push edx
push eax
push 0
push 2
push str.mso.dll
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
neg eax
sbb al, al
inc al
mov esp, ebp
pop ebp
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x407d9c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwareDeskSoft
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x407dc6
xor al, al
jmp 0x407df4
push esi
push esi
push esi
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
pop esi
leave
ret

Function at 0x407e9b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SoftwareDeskSoft
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407ee9
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], ebx
jne 0x407ef0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 4]
xor eax, eax
inc eax
push eax
call fcn.00418c7c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x407ee0
lea eax, [ebp - 4]
push eax
push edi
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call esi
test eax, eax
je 0x407f20
push edi
call fcn.00418bd0
pop ecx
jmp 0x407ee0
mov esi, dword [ebp + 0xc]
mov eax, 0x530
cmp dword [ebp - 4], eax
cmovb eax, dword [ebp - 4]
push eax
push edi
push esi
call fcn.0040f370
push edi
call fcn.00418bd0
add esp, 0x10
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
cmp word [esi], ax
sete al
jmp 0x407eeb

Function at 0x407fa8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
push ebx
push esi
push 0x426bc4
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x408017
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x408016
lea eax, [edi + 1]
push eax
push 1
call fcn.00418c7c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x408016
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40800d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40800d
push edi
push eax
push esi
call fcn.0040f370
add esp, 0xc
jmp 0x408016
push esi
call fcn.00418bd0
xor esi, esi
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0xfd4058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xfd41a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xfd407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xfd406a
add dl, dl
jne 0xfd4089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xfd40dc
xor eax, eax
add dl, dl
jne 0xfd4096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xfd417d
add dl, dl
jne 0xfd40a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xfd40b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xfd40bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xfd40c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xfd40d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xfd4075
mov eax, 1
add dl, dl
jne 0xfd40ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xfd40f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xfd40e1
sub eax, ebx
mov ebx, 1
jne 0xfd4128
mov ecx, 1
add dl, dl
jne 0xfd410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xfd4119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xfd4105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xfd4075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xfd413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xfd414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xfd4136
cmp eax, 0x7d00
jae 0xfd416d
cmp eax, 0x500
jb 0xfd4168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xfd4075
cmp eax, 0x7f
ja 0xfd4170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xfd4075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xfd419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xfd4075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10