joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4736d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b4f28
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.004ab358
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00473070
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.004ab286
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.004a7a67
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.004a7a67
push 1
push 0
push 0
mov ecx, esi
call fcn.004a7a0f
push 1
push 0
push 1
mov ecx, esi
call fcn.004a7a0f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004ab3ca
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x473850
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b4f48
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.004ab358
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00473070
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.004ab286
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 0x473914
cmp dword [esp + 0x40], 1
jne 0x473912
cmp ecx, eax
jge 0x473914
mov eax, ecx
cmp eax, 0xc8
jge 0x473920
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004736d0
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.004ab3ca
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4740a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b4fb3
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.004a5e87
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.004ab600
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004acb9b
test eax, eax
je 0x4741bc
mov ecx, dword [esp + 0x3c]
call fcn.004ab62d
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 0x474180
push edi
mov ecx, esi
call fcn.004a8be7
mov ecx, esi
call fcn.00474320
cmp dword [esp + 0x38], 1
jne 0x4741b5
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.004a8d51
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 0x476bd0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x476c03
push esi
call fcn.00479cc0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x476bfc
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 0x476c89
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x476c72
mov eax, dword [esi + 8]
test eax, eax
je 0x476c27
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 0x476c6e
cmp eax, 2
je 0x476c72
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x476c1a
cmp eax, 3
je 0x476c4d
cmp eax, 1
jne 0x476c1a
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 0x476c1a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x476c1a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00476cb0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x476c98
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00476cb0
add esp, 4
pop esi
ret

Function at 0x482de0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x482e83
test eax, eax
jbe 0x482e83
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x482e83
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x482e2e
xor esi, esi
jmp 0x482e34
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x482e5f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00486780
add esi, eax
push esi
mov ebx, esi
call fcn.00486780
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x482e40
pop ebp
test edi, edi
pop edi
jne 0x482e83
test ebx, ebx
je 0x482e83
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004945f0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x482fc5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4830dd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4830dd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004a62d9
mov esi, eax
test esi, esi
je 0x4830dd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4830dd
mov ecx, esi
call fcn.00482f30
cmp edi, eax
jge 0x4830dd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x483063
mov dword [esp + 0x34], 1
jmp 0x4830be
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4830dd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004824b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x486910
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 0x486976
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 0x486976
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x486957
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x486d00
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x486d38
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4879b0
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 0x4879f9
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 0x487e70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b5860
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.00487a20
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00487aa0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00487aa0
lea ecx, [esi + 0xc]
call fcn.004a47ee
lea ecx, [esi + 0x10]
call fcn.004a47ee
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00489030
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00489030
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00489030
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004a4863
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004a4863
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4a6c7d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a6cb5
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.004a4d0a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a4ce2
jmp 0x4a6cc1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a836b
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 0x4a83ad
call fcn.004ae35d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a83ad
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a83a4
xor eax, eax
jmp 0x4a83b5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a83bb
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ae88d
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 0x4ae8bb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ae8d9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ae7f3
jmp 0x4ae8d9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ae8d9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ae7f3
test edi, edi
mov eax, edi
jne 0x4ae8c3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40a6c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov ax, word [0x44bfbc]
push esi
push edi
push 0x40
mov word [ebp - 0x10c], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x10a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x10b]
push 0xfc
push eax
xor esi, esi
push dword [0x45bf10]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40a725
lea eax, [ebp - 4]
push eax
push str.AudioCD_shellplaycommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40a729
xor eax, eax
jmp 0x40a784
lea eax, [ebp - 0x10c]
push 0x44bf98
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 8]
pop ecx
mov dword [ebp - 8], 0x104
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a779
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40a779
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x40a788
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov ax, word [0x44bfbc]
push edi
push 0x40
mov word [ebp - 0x10c], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x10a]
push 0xfc
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x10b]
push eax
push dword [0x45bf10]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40a999
lea eax, [ebp - 0x10c]
push 0x44bf98
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 4]
pop ecx
push eax
push str.AudioCD_shellplaycommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40a999
push ebx
lea eax, [ebp + 8]
push esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
cmp dword [ebp + 8], ebx
push ebx
push ebx
mov esi, 0x104
push ebx
mov dword [ebp + 8], esi
push dword [ebp - 4]
je 0x40a8d3
call edi
test eax, eax
lea eax, [ebp - 0x10c]
push eax
jne 0x40a972
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
je 0x40a98e
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0x314]
push eax
push ebx
mov esi, str.Winamp_Back
push ebx
push esi
push dword [ebp - 4]
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40a890
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
je 0x40a8af
lea eax, [ebp - 0x210]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push ebx
push esi
push dword [ebp - 4]
call edi
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
lea eax, [ebp - 0x10c]
push eax
push 1
push ebx
push ebx
push dword [ebp - 4]
call edi
jmp 0x40a98e
call edi
test eax, eax
jne 0x40a98e
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x40a98e
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
mov esi, str.Winamp_Back
push ebx
push esi
push dword [ebp - 4]
call edi
test eax, eax
lea eax, [ebp - 0x10c]
push eax
jne 0x40a96c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x40a939
mov byte [ebp - 0x210], bl
lea eax, [ebp - 0x210]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40a98e
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40a98e
mov byte [ebp - 0x10c], bl
call sub.MSVCRT.dll_strlen
inc eax
pop ecx
push eax
lea eax, [ebp - 0x10c]
push eax
push 1
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x429013
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8648
call fcn.00446c80
cmp byte [0x45e460], 0
push ebx
push esi
push edi
je 0x429214
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, 0x45e220
push edi
lea eax, [ebp - 0x108]
push str._s_readme.txt
push eax
call esi
mov ebx, dword [sym.imp.MSVCRT.dll_fopen]
lea eax, [ebp - 0x108]
push 0x44c34c
push eax
call ebx
add esp, 0x14
mov dword [ebp - 4], eax
test eax, eax
jne 0x429192
push edi
lea eax, [ebp - 0x108]
push str._s_read_me.txt
push eax
call esi
lea eax, [ebp - 0x108]
push 0x44c34c
push eax
call ebx
add esp, 0x14
mov dword [ebp - 4], eax
test eax, eax
jne 0x429192
push edi
lea eax, [ebp - 0x108]
push str._s_file_id.diz
push eax
call esi
lea eax, [ebp - 0x108]
push 0x44c34c
push eax
call ebx
add esp, 0x14
mov dword [ebp - 4], eax
test eax, eax
jne 0x429192
push edi
lea eax, [ebp - 0x108]
push str._s.txt
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
and byte [ebp - 0x108], 0
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x42920d
lea eax, [ebp - 0x21c]
push str.pledit.txt
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
je 0x429143
lea eax, [ebp - 0x21c]
push str.viscolor.txt
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
je 0x429143
lea eax, [ebp - 0x21c]
push str.region.txt
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x429159
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4290fb
jmp 0x429172
lea eax, [ebp - 0x21c]
push eax
push edi
lea eax, [ebp - 0x108]
push str._s_s
push eax
call esi
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x108]
push 0x44c34c
push eax
call ebx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
pop ecx
je 0x42920d
lea esi, [ebp - 0x8648]
push dword [ebp - 4]
push 0x400
push esi
call dword [sym.imp.MSVCRT.dll_fgets]
mov eax, dword [ebp - 4]
add esp, 0xc
test byte [eax + 0xc], 0x10
jne 0x4291f4
push esi
call sub.MSVCRT.dll_strlen
cmp byte [eax + esi - 1], 0xa
pop ecx
jne 0x4291cd
push esi
call sub.MSVCRT.dll_strlen
and byte [eax + esi - 1], 0
pop ecx
push 0x44d3c4
push esi
call sub.MSVCRT.dll_strcat
push esi
call sub.MSVCRT.dll_strlen
add esi, eax
lea ecx, [ebp - 0x8648]
mov eax, esi
add esp, 0xc
sub eax, ecx
cmp eax, 0x8000
jle 0x429198
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fclose]
and byte [ebp - 0x649], 0
pop ecx
lea eax, [ebp - 0x8648]
jmp 0x429235
push 0x44e2b4
jmp 0x429236
push dword [0x44d7f4]
lea eax, [ebp - 0x104]
push 0x44e29c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
push 0x4b6
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401098
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
push 0xa
push dword [ebp + 8]
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x4010b8
jmp 0x4010d8
push eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
mov dword [0x406680], eax
pop eax
push eax
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x4010d5
jmp 0x4010d8
mov dword [ebp - 4], eax
popal
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x4010e0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
pushal
mov esi, dword [ebp + 0xc]
lea ebx, [ebp - 0x400]
push esi
push ebx
call sub.kernel32.dll_lstrcpyA
xor ecx, ecx
jmp 0x4010ff
inc ecx
cmp byte [ecx + ebx], 0x5c
jne 0x4010fe
mov byte [ecx + ebx], 0
lea esi, [ecx + esi + 1]
mov edi, 0x40417a
push str.HKEY_CLASSES_ROOT
push ebx
call edi
or eax, eax
jne 0x401125
mov eax, 0x80000000
jmp 0x401186
push str.HKEY_CURRENT_CONFIG
push ebx
call edi
or eax, eax
jne 0x401138
mov eax, 0x80000005
jmp 0x401186
push str.HKEY_CURRENT_USER
push ebx
call edi
or eax, eax
jne 0x40114b
mov eax, 0x80000001
jmp 0x401186
push str.HKEY_LOCAL_MACHINE
push ebx
call edi
or eax, eax
jne 0x40115e
mov eax, 0x80000002
jmp 0x401186
push str.HKEY_USERS
push ebx
call edi
or eax, eax
jne 0x401171
mov eax, 0x80000003
jmp 0x401186
push str.HKEY_DYN_DATA
push ebx
call edi
or eax, eax
jne 0x401184
mov eax, 0x80000006
jmp 0x401186
jmp 0x4011a2
mov byte [ebx], 0
push dword [ebp + 0x10]
push esi
push eax
push ebx
call fcn.00404330
cmp byte [ebx], 0
je 0x4011a2
push ebx
push dword [ebp + 8]
call sub.kernel32.dll_SetEnvironmentVariableA
popal
leave
ret 0xc