joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407ce1
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
movlpd qword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407d38
push 0
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push esi
call eax
test eax, eax
jne 0x407d30
or edx, 0xffffffff
mov eax, edx
jmp 0x407d8f
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
jmp 0x407d8d
xor eax, eax
xorps xmm0, xmm0
push 3
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
push esi
push eax
movlpd qword [ebp - 0xc], xmm0
call fcn.0040f370
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [ebp - 0x14]
mul dword [ebp - 0x18]
mov ecx, eax
mov eax, edx
mul dword [ebp - 0x10]
mov esi, eax
mov eax, ecx
mul dword [ebp - 0x10]
add esi, edx
mov edx, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040d5ca
leave
ret

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 str.TEXT
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 0x40812a
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x433d18
push 8
push edi
call fcn.00407564
pop ecx
pop ecx
mov edx, eax
push 8
shl edx, 0x18
pop ebx
mov ecx, edx
lea eax, [edx + edx]
sar ecx, 0x1f
and ecx, 0x4c11db7
mov edx, ecx
xor edx, eax
sub ebx, 1
jne 0x408146
push 0x20
push edx
call fcn.00407564
mov dword [esi], eax
inc edi
add esi, 4
pop ecx
pop ecx
cmp esi, 0x434114
jle 0x408134
pop edi
pop esi
pop ebx
ret
Function at 0x4089e0
Capabilities:
Delete registry key
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0x10]
push 0x426c30
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00403cbc
add esp, 0x10
lea eax, [ebp - 0x108]
mov ebx, SysReAllocString
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
xor ecx, ecx
lea eax, [ebp - 0x210]
push ecx
push eax
push ecx
push 0xf003f
push ecx
push ecx
push ecx
lea eax, [ebp - 0x108]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call ebx
test eax, eax
je 0x408a6a
xor eax, eax
inc eax
jmp 0x408cb3
push edi
push str._sFile
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00403cbc
lea eax, [ebp - 0x108]
push eax
call fcn.00411480
add esp, 0x14
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push 0x426a23
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x408abf
push 2
jmp 0x408c85
push dword [ebp - 0x210]
call edi
lea eax, [ebp - 0x108]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
xor ecx, ecx
lea eax, [ebp - 0x210]
push ecx
push eax
push ecx
push 0xf003f
push ecx
push ecx
push ecx
lea eax, [ebp - 0x108]
push eax
push SysReAllocString
call ebx
test eax, eax
jne 0x408cb0
push dword [ebp - 0x214]
call fcn.00411480
pop ecx
inc eax
push eax
push dword [ebp - 0x214]
push 1
push 0
push 0x426a23
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x408b36
push 4
jmp 0x408c85
push dword [ebp - 0x210]
call edi
lea eax, [ebp - 0x108]
push eax
push str._sDefaultIcon
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00403cbc
add esp, 0x10
lea eax, [ebp - 0x210]
xor ecx, ecx
push ecx
push eax
push ecx
push 0xf003f
push ecx
push ecx
push ecx
lea eax, [ebp - 0x20c]
push eax
push SysReAllocString
call ebx
test eax, eax
jne 0x408cb0
test esi, esi
je 0x408b8f
cmp byte [esi], al
jne 0x408b94
mov esi, 0x4266e8
push esi
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push str._s__s
push 0x104
push eax
call fcn.00403cbc
lea eax, [ebp - 0x20c]
push eax
invalid

Function at 0x408cc2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0xf003f
push ebx
push dword [ebp + 8]
push ebx
push str.SoftwareDeskSoft
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x408cf5
xor al, al
jmp 0x408d24
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push 0x530
push eax
push 3
push ebx
push dword [ebp + 8]
inc ecx
push dword [ebp - 4]
mov word [eax], cx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x408d19
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret
Function at 0x408ead
Capabilities:
Create process on windows
Get installed programs
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, 0x104
push esi
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_s
push ecx
lea eax, [ebp - 0x108]
mov dword [ebp - 0x114], ecx
push eax
call fcn.00403cbc
add esp, 0x10
lea eax, [ebp - 0x110]
xor esi, esi
push eax
push 0x20019
push esi
lea eax, [ebp - 0x108]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408f12
or eax, 0xffffffff
jmp 0x409008
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
push esi
push esi
push str.UninstallString
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408f45
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x408f0a
push edi
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x3c
lea eax, [ebp - 0x160]
mov dword [ebp - 0x168], 0x44
push esi
push eax
mov dword [ebp - 0x164], esi
call fcn.0040e980
xor eax, eax
lea edi, [ebp - 0x124]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x168]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x408fac
push 0xfffffffffffffffe
pop eax
jmp 0x409007
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edi, 0x103
mov dword [ebp - 0x10c], edi
jmp 0x408fd7
cmp dword [ebp - 0x10c], edi
jne 0x408feb
call fcn.00405ab0
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x124]
call esi
cmp eax, 1
je 0x408fbf
push dword [ebp - 0x124]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x120]
call esi
mov eax, dword [ebp - 0x10c]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040d5ca
leave
Function at 0x409d6e
Capabilities:
Hash data using murmur3

Disassembly:
xor dword [0x434d27], edi
add dword [0x434d6e], ecx
sub edx, 0x9c79cf5f
mov edx, 0x40311949
ror edx, 0xc
call fcn.0041dcbe
and dword [0x434c5a], esi
rol edi, 6
not eax
rol edi, 1
xor dword [0x434cd1], ebx
sub dword [0x434d07], ebx
mov dword [0x434b8b], ebx
not eax
xor edi, ebp
xor ebx, dword [0x434e02]
rol edx, 0x10
xor edx, edi
mov dword [0x434b83], eax
call fcn.004216dc
call fcn.004207b0
xor dword [0x434c2f], eax
xor edx, edi
ror edx, 0x10
xor edi, ebp
not eax
and dword [0x434cc1], ebx
or dword [0x434c66], eax
ror edi, 1
not eax
ror edi, 6
call fcn.00404e9f
rol edx, 0xc
and edx, 0x25779a37
dec edx
xor eax, edx
invalid
invalid
Function at 0x40a1fd
Capabilities:
Hash data using murmur3

Disassembly:
add byte [ebx], cl
xor eax, 0x434fb8
add dword [0x434c27], 0xc4fabd5f
sub ebx, dword [0x434e6d]
mov dword [0x434bb0], 0x8c327a9a
call fcn.00404976
xor dword [0x434bc4], ecx
xor dword [0x434c2b], esi
xor ecx, edx
neg esi
add dword [0x434bd5], 0x451174a8
call fcn.00409014
sub dword [0x434c71], 0x12d9b8c1
neg esi
xor ecx, edx
mov dword [0x434ba1], edi
xor dword [0x434cdc], ecx
xor dword [0x434c14], 0x4c5c47ba
sub dword [0x434d43], 0x76458e3d
call fcn.00406e7f
dec edx
or dword [0x434d1e], eax
neg ebx
push ecx
neg eax
inc eax
call fcn.00406d02
not ebx
xchg edi, edx
inc eax
dec ebx
ror ebx, 8
sub edx, esp
mov dword [0x434c21], eax
rol ebx, 0x1b
dec ebx
call fcn.00407e9a
rol esi, 9
neg ecx
add dword [0x434d66], eax
add dword [0x434d33], edi
xor ecx, 0x70f5532b
xor esi, 0x2c461eb0
add ecx, 0x5f966455
call fcn.0040acc3
sub ecx, 0x5f966455
xor esi, 0x2c461eb0
xor ecx, 0x70f5532b
or dword [0x434c45], eax
neg ecx
ror esi, 9
call fcn.004125b7
inc ebx
ror ebx, 0x1b
add dword [0x434d0a], edx
add edx, esp
rol ebx, 8
inc ebx
dec eax
xchg edi, edx
not ebx
dec eax
neg eax
push esp
xor esi, dword [0x434fa3]
call fcn.00410781
not esi
sub ecx, dword [0x434ec5]
inc edi
add edi, dword [0x434e34]
ror ebx, 8
inc edx
and dword [0x434cad], eax
sub ecx, dword [0x434ecb]
xor ebx, 0xd7bfd1f0
call fcn.00413562
xor ebx, edx
add edi, dword [0x434db3]
xor ebx, edx
call fcn.00404976
xor ebx, 0xd7bfd1f0
dec edx
rol ebx, 8
dec edi
not esi
push eax
xor ecx, ebp
neg ebx
sub ecx, 0x1254d9cd
xchg edi, eax
xor esi, 0x692a423e
or ebx, dword [0x434e07]
xor eax, edi
call fcn.00404976
sub dword [0x434c07], esi
inc edx
call fcn.0041d4fe
call fcn.004086cb
dec edx
mov dword [0x434c99], edi
xor eax, edi
xor esi, 0x692a423e
xchg edi, eax
add ecx, 0x1254d9cd
neg ebx
xor ecx, ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
and dword [0x434ba2], ecx
not eax
dec ecx
neg eax
add ebx, 0x4204f457
neg esi
sub ecx, 0x28e5ddda
not eax
rol eax, 9
mov dword [0x434bde], edx
call fcn.0040f22a
call fcn.0041cfa6
ror eax, 9
not eax
add ecx, 0x28e5ddda
neg esi
sub ebx, 0x4204f457
jmp 0x40a43c
hlt
add al, 0x42
neg eax
inc ecx
not eax
and dword [0x434c42], esi
add esp, 0x10
sub esi, ebx
xor edi, dword [0x434f76]
add edx, esp
or dword [0x434c29], edi
rol ecx, 0x1c
call fcn.0041c595
xor ecx, dword [0x434dfc]
add esi, ebp
xor ebx, edi
ror edi, 0x16
dec edi
sub eax, ebp
add ecx, 0x26691fbc
rol ecx, 2
call fcn.0041293a
ror ecx, 2
sub ecx, 0x26691fbc
add eax, ebp
inc edi
rol edi, 0x16
xor ebx, edi
sub esi, ebp
Function at 0x40c55c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x40c58f
push 0
lea eax, [ebp + 0x10]
push eax
push ecx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40c58a
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x40c5b9
mov edx, dword [edi + 0x1c]
push esi
mov esi, dword [edi + 0x18]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ecx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.0040f370
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
pop esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret

Function at 0x40c6cf
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x40c6dd
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x40c79c
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x428068]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x428068]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x428068]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x428068]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x428068]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x428068]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x428068]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x428068]
sub edi, 1
jne 0x40c6f5
pop edi
test esi, esi
je 0x40c7b8
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x428068]
inc edx
sub esi, 1
jne 0x40c7a0
not ecx
mov eax, ecx
pop esi
pop ebp

Function at 0x40e38b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40e3ca
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e3ca
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e3ca
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40e3ca
cmp dword [ecx + 0x74], 0xe
jbe 0x40e3ca
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41c9fe
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b49c
push 0x42b494
push str.FlsAlloc
push 0x1f
call fcn.0041c8da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ca32
push dword [ebp + 8]
mov ecx, esi
call dword [0x42634c]
call esi
jmp 0x41ca38
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x41ca7c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b4ac
push 0x42b4a4
push str.FlsGetValue
push 0x21
call fcn.0041c8da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41cab3
push dword [ebp + 8]
mov ecx, esi
call dword [0x42634c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41cabb
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b4b4
push 0x42b4ac
push str.FlsSetValue
push 0x22
call fcn.0041c8da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41caf5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42634c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41e235
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41e2d2
push ebx
push esi
call fcn.0041e1fe
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041e192
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41e27f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e2d1
push edi
push eax
call fcn.0041b21a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41e29f
call fcn.0041b1e0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e2d0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041e192
add esp, 0x20
test eax, eax
jne 0x41e2be
push edi
call fcn.0041b1e0
jmp 0x41e2c6
push ebx
call fcn.0041b1e0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
ret
pop edi
pop ebx
pop esi
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x373b5950
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x619f47c9
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0xcd6370
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 0xcd638e
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 0xcff074
push ecx
mov edi, eax
call fcn.00cea198
mov esi, eax
add esp, 8
test esi, esi
jne 0xcd63cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00cea02e
push esi
call fcn.00ce9fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xcd9850
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 0xcd98ae
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 0xd04720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xcd98ba
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.00cea1e1
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 0xcd98ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xd04720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xcd992a
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.00ceb082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xcd9957
mov word [eax], si
add eax, 2
push eax
call fcn.00ceb030
add esp, 4
jmp 0xcd9959
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 0xcd98ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xcd98b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xcd9ff0
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
Function at 0xcda080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xcda0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xcff458
push ecx
call fcn.00cea1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00cea1e1
add esp, 0x10
jmp 0xcda0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00cea20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00ce9dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00cda050
mov eax, dword [0xd04728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xcda13b
push esi
call fcn.00cd9fb0
add esp, 4
mov dword [0xd04728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xcda14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00cd9ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xcdd440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xcdd4b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xcdd48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xcdd471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xcdd47e
add edx, ecx
cmp ebx, edx
jb 0xcdd48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xcdd467
xor ecx, ecx
jmp 0xcdd4a2
test eax, eax
jne 0xcdd492
xor ecx, ecx
jmp 0xcdd4a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00cdd3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret