joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43bf00
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47eb08
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x43bf39
inc eax
mov dword [esi + 0x10], eax
jmp 0x43c04c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43bf4d
mov eax, 0xffffffc7
jmp 0x43c04e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43bf5e
cmp dword [esi + 8], eax
jne 0x43bf4d
cmp dword [esi + 8], eax
jne 0x43bf77
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x43bf77
mov eax, 0xffffffc7
jmp 0x43c04e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43bf8b
push eax
mov ecx, ebx
call fcn.0043b730
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.0040c990
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43bfbc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.0040c9b0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0043aea0
test eax, eax
mov dword [esp + 0x38], eax
je 0x43bfef
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x640a38
call fcn.0040cb90
mov eax, dword [esp + 0x38]
jmp 0x43c04e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0043bd60
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x43c033
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0043bd80
mov esi, eax
test esi, esi
jne 0x43c063
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0043bd60
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x43c005
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x640a38
call fcn.0040cb90
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x640a38
call fcn.0040cb90
mov eax, esi
jmp 0x43c04e

Function at 0x43f170
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x43f1d0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x43f1d0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x43f1d0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x43f1d0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x43f210
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x445160
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47f138
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00477ccf
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00444b00
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00477bfd
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004744bb
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004744bb
push 1
push 0
push 0
mov ecx, esi
call fcn.00474463
push 1
push 0
push 1
mov ecx, esi
call fcn.00474463
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00477d41
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4452e0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47f158
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00477ccf
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00444b00
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00477bfd
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4453a4
cmp dword [esp + 0x40], 1
jne 0x4453a2
cmp ecx, eax
jge 0x4453a4
mov eax, ecx
cmp eax, 0xc8
jge 0x4453b0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00445160
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00477d41
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x445b30
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47f1c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004728d9
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00477f77
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00479493
test eax, eax
je 0x445c4c
mov ecx, dword [esp + 0x3c]
call fcn.00477fa4
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x445c10
push edi
mov ecx, esi
call fcn.0047560b
mov ecx, esi
call fcn.00445db0
cmp dword [esp + 0x38], 1
jne 0x445c45
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00475746
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x448680
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4486b3
push esi
call fcn.0044b770
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4486ac
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x448739
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x448722
mov eax, dword [esi + 8]
test eax, eax
je 0x4486d7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44871e
cmp eax, 2
je 0x448722
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4486ca
cmp eax, 3
je 0x4486fd
cmp eax, 1
jne 0x4486ca
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4486ca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4486ca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00448760
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x448748
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00448760
add esp, 4
pop esi
ret
Function at 0x4589e0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
sub esp, 0x348
push ebx
push esi
push edi
mov edi, ecx
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
lea eax, [esp + 0xc]
push 7
and esi, 0xffff
push eax
push 0x1004
push esi
call ebx
lea ecx, [esp + 0xc]
push ecx
call fcn.0045e138
add esp, 4
lea edx, [esp + 0x14c]
mov dword [edi + 4], eax
push 0x104
push edx
push 0x1002
push esi
call ebx
lea eax, [esp + 0x14c]
lea ecx, [edi + 0xc]
push eax
call fcn.0047143d
lea ecx, [esp + 0xc]
push 7
push ecx
push 5
push esi
call ebx
lea edx, [esp + 0xc]
push edx
call fcn.0045e138
add esp, 4
mov dword [edi + 0x10], eax
lea eax, [esp + 0x3c]
push 0x64
push eax
push 0x1003
push esi
call ebx
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [edi + 0x14]
call fcn.0047143d
lea edx, [esp + 0x3c]
push 0x64
push edx
push 0x20
push esi
call ebx
lea eax, [esp + 0x3c]
lea ecx, [edi + 8]
push eax
call fcn.0047143d
lea ecx, [esp + 0x14]
push 7
push ecx
push 0x14
push esi
call ebx
lea edx, [esp + 0x14]
lea ecx, [edi + 0x18]
push edx
call fcn.0047143d
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
lea ecx, [esp + 0x250]
push 0x104
and eax, 0xffff
push ecx
push eax
call sub.VERSION.dll_VerLanguageNameA
cmp eax, 0x104
ja 0x458ae4
lea edx, [esp + 0x250]
lea ecx, [edi + 0x1c]
push edx
call fcn.0047143d
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x458b1f
lea ecx, [esp + 0xa4]
lea edx, [esp + 0x1c]
push ecx
push 0x65c628
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [edi + 0x20]
push eax
call fcn.0047143d
pop edi
pop esi
pop ebx
add esp, 0x348
ret
Function at 0x45ad60
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x45ada9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x45b220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47faf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0045add0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0045ae50
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0045ae50
lea ecx, [esi + 0xc]
call fcn.0047128b
lea ecx, [esi + 0x10]
call fcn.0047128b
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0045c3e0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0045c3e0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0045c3e0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00471300
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00471300
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x45c5d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x45c636
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x45c636
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x45c617
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4736ce
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x473706
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047175b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00471733
jmp 0x473712
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x474dc3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x474e05
call fcn.0047a938
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x474e05
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x474dfc
xor eax, eax
jmp 0x474e0d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00474e13
pop edi
pop esi
pop ebx
ret 4

Function at 0x47ae68
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47ae96
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47aeb4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047adce
jmp 0x47aeb4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47aeb4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047adce
test edi, edi
mov eax, edi
jne 0x47ae9e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Get disk size

Disassembly:
sub esp, 0x28
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401055
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x28]
push ecx
push edx
call eax
test eax, eax
je 0x401097
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x401097
jg 0x40108e
cmp dword [esp + 0x10], 0x1e00000
jbe 0x401097
mov eax, 1
add esp, 0x28
ret
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x401097
mov edx, dword [esp]
imul edx, dword [esp + 4]
imul edx, dword [esp + 8]
cmp edx, 0x1e00000
jbe 0x401097
mov eax, 1
add esp, 0x28
ret
xor eax, eax
add esp, 0x28
ret

Function at 0x4010a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x114
push ebx
mov ebx, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x124]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4010d0
pop edi
mov eax, 1
pop ebx
add esp, 0x114
ret
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4010f3
pop edi
xor eax, eax
pop ebx
add esp, 0x114
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov al, byte [esi + edi - 1]
add esi, edi
cmp al, 0x5c
je 0x40110e
mov byte [esi], 0x5c
inc esi
mov byte [esi], 0
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40119e
lea edx, [esp + 0x1c]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edx
push esi
call ebp
push edi
push ebx
call fcn.004010a0
add esp, 8
test eax, eax
je 0x40119d
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
lea edx, [esp + 0x30]
push ecx
push edx
push 0
push eax
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40119d
lea ecx, [esp + 0x20]
push ecx
push esi
call ebp
push edi
push ebx
call fcn.004010a0
add esp, 8
test eax, eax
jne 0x401159
pop ebp
mov byte [esi - 1], 0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
pop esi
pop edi
inc eax
pop ebx
add esp, 0x114
ret
Function at 0x401200
Capabilities:
Check if file exists
Delete file

Disassembly:
sub esp, 0x20
push esi
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40124d
xor eax, eax
mov word [esp + 0x14], 0x10
mov dword [esp + 0x1a], eax
mov dword [esp + 4], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
mov dword [esp + 0xc], esi
push eax
mov dword [esp + 0xc], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
pop esi
inc eax
add esp, 0x20
ret
xor eax, eax
pop esi
add esp, 0x20
ret

Function at 0x401260
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
sub esp, 0x244
lea eax, [esp + 0x140]
push 0
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x40132b
lea ecx, [esp + 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x40129b
add esp, 0x244
ret
lea edx, [esp]
push ebx
push edx
push str.Philips.lnk
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401323
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0x3c]
push str.GoGear_Spark
push eax
call fcn.00401a50
add esp, 8
test eax, eax
jne 0x401311
lea ecx, [esp + 0x3c]
push str.SA53xx
push ecx
call fcn.00401a50
add esp, 8
test eax, eax
jne 0x401311
lea edx, [esp + 0x3c]
push str.SA28xx
push edx
call fcn.00401a50
add esp, 8
test eax, eax
jne 0x401311
lea eax, [esp + 0x3c]
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
push ebx
call esi
call edi
cmp eax, 0x12
jne 0x4012c8
pop edi
pop esi
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
mov eax, 1
add esp, 0x244
ret
Function at 0x401340
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Get startup folder
Set current directory

Disassembly:
sub esp, 0x244
lea eax, [esp + 0x140]
push 0
push 0x18
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x40140b
lea ecx, [esp + 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x40137b
add esp, 0x244
ret
lea edx, [esp]
push ebx
push edx
push str.Philips.lnk
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401403
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0x3c]
push str.GoGear_Spark
push eax
call fcn.00401a50
add esp, 8
test eax, eax
jne 0x4013f1
lea ecx, [esp + 0x3c]
push str.SA53xx
push ecx
call fcn.00401a50
add esp, 8
test eax, eax
jne 0x4013f1
lea edx, [esp + 0x3c]
push str.SA28xx
push edx
call fcn.00401a50
add esp, 8
test eax, eax
jne 0x4013f1
lea eax, [esp + 0x3c]
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
push ebx
call esi
call edi
cmp eax, 0x12
jne 0x4013a8
pop edi
pop esi
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
mov eax, 1
add esp, 0x244
ret
Function at 0x401420
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
sub esp, 0x348
lea eax, [esp + 0x244]
push ebx
push esi
push edi
push 0
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x40152f
lea edi, [esp + 0x250]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Philips_Digital_Audio_PlayerGoGear_Mix_Device_Manager
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call edi
test eax, eax
jne 0x4014b6
pop edi
pop esi
pop ebx
add esp, 0x348
ret
lea ecx, [esp + 0x110]
push ecx
push 0x4070c4
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401506
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x140]
push edx
call edi
lea eax, [esp + 0x114]
push eax
push esi
call ebx
call ebp
cmp eax, 0x12
jne 0x4014e3
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x4070c0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push str.GoGear_Mix_Device_Manager
call esi
push 0x4070c0
call edi
push str.Philips_Digital_Audio_Player
call esi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x348
ret

Function at 0x401540
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor ebx, ebx
test edi, edi
je 0x4015eb
push ebx
push 2
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40157d
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x128
ret
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x40159f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x128
ret
lea ecx, [esp + 0x30]
push edi
push ecx
call fcn.00405710
add esp, 8
test eax, eax
je 0x4015d2
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4015e4
lea eax, [esp + 0x30]
push edi
push eax
call fcn.00405710
add esp, 8
test eax, eax
jne 0x4015b1
mov ecx, dword [esp + 0x13c]
mov edx, dword [esp + 0x14]
mov ebx, 1
mov dword [ecx], edx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x128
ret