joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a240
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x69cffc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x310]
mov dword [ebp - 0x314], 0xffffffff
push 0
push eax
mov esi, ecx
call fcn.005e8c40
add esp, 0xc
test esi, esi
je 0x43a280
cmp word [esi], 0
jne 0x43a291
lea ecx, [ebp - 0x310]
call fcn.0043a360
lea esi, [ebp - 0x310]
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.005e8c40
add esp, 0xc
lea eax, [ebp - 0x108]
push 0
push 0
push 0x104
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x314]
push eax
push str.192.168.1.1
push 2
call dword [sym.imp.WS2_32.dll_InetPtonW]
mov esi, dword [ebp - 0x314]
cmp esi, 0xffffffff
jne 0x43a340
mov ecx, str.255.255.255.255
lea eax, [ebp - 0x108]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x43a311
test dl, dl
je 0x43a30d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x43a311
add eax, 2
add ecx, 2
test dl, dl
jne 0x43a2f1
xor eax, eax
jmp 0x43a316
sbb eax, eax
or eax, 1
test eax, eax
je 0x43a340
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x43a33a
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
mov dword [ebp - 0x314], esi
jmp 0x43a340
mov esi, dword [ebp - 0x314]
push esi
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0058f0d5
mov esp, ebp
pop ebp
ret

Function at 0x43a360
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x69cffc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
test edi, edi
je 0x43a463
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.005e8c40
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x43a45a
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x43a3f5
push esi
mov esi, dword [eax]
lea ecx, [ebp - 0x108]
mov edx, 0x104
nop
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x43a3e9
mov al, byte [esi]
test al, al
je 0x43a3e9
mov byte [ecx], al
inc esi
inc ecx
sub edx, 1
jne 0x43a3d0
test edx, edx
lea eax, [ecx - 1]
pop esi
cmovne eax, ecx
mov byte [eax], 0
mov ecx, 0x104
lea eax, [ebp - 0x108]
cmp byte [eax], 0
je 0x43a40b
inc eax
sub ecx, 1
jne 0x43a400
mov eax, 0x104
mov edx, ecx
sub eax, ecx
neg edx
sbb edx, edx
and edx, eax
test ecx, ecx
je 0x43a42a
cmp edx, 0x104
jbe 0x43a42a
push 0x7a
jmp 0x43a465
push 0x104
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
pop edi
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058f0d5
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
jmp 0x43a465
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop edi
call fcn.0058f0d5
mov esp, ebp
pop ebp
ret
Function at 0x43a480
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x69cffc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x43a529
mov byte [esi], 0
cmp ecx, 2
jne 0x43a4de
push ecx
push 0
push 0
xorps xmm0, xmm0
mov eax, ecx
push 0x104
movups xmmword [ebp - 0x14], xmm0
mov word [ebp - 0x14], ax
mov eax, dword [edx]
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push 0x10
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058f0d5
mov esp, ebp
pop ebp
ret
cmp ecx, 0x17
jne 0x43a529
movups xmm0, xmmword [edx]
push 2
push 0
xor eax, eax
mov dword [ebp - 0x1e], 0
push 0
push 0x104
mov word [ebp - 0x1a], ax
mov dword [ebp - 8], eax
mov eax, ecx
push esi
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x20]
push 0x1c
push eax
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058f0d5
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0058f0d5
mov esp, ebp
pop ebp
ret
Function at 0x43a6b0
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x686808
push 0x5e8080
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x69cffc]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, edx
mov eax, ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x64], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], 0x7530
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 1
push esi
mov edi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
call edi
test eax, eax
jne 0x43a846
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x43a810
push dword [ebp - 0x44]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x43a810
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x44]
push ecx
push dword [ebp - 0x44]
push eax
push 1
push esi
call edi
test eax, eax
je 0x43a7fd
xor edi, edi
mov dword [ebp - 0x50], edi
cmp edi, dword [ebp - 0x48]
jae 0x43a83a
lea eax, [edi + edi*8]
mov ecx, dword [ebp - 0x54]
movups xmm1, xmmword [ecx + eax*4]
movups xmm0, xmmword [ecx + eax*4 + 0x10]
movups xmmword [ebp - 0x78], xmm0
mov eax, dword [ecx + eax*4 + 0x20]
mov dword [ebp - 0x68], eax
push 0x24
movd eax, xmm1
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x60], esi
test esi, esi
je 0x43a7fd
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x43a7fd
cmp dword [ebp - 0x3c], 1
je 0x43a814
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x44]
push eax
push 0x24
lea eax, [ebp - 0x40]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x43a7fd
cmp dword [ebp - 0x3c], 1
je 0x43a814
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x5c]
jbe 0x43a7c3
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x69cffc
call fcn.005ead40
add esp, 0xc
xor eax, eax
jmp 0x43a84b
mov dword [ebp - 4], 0
call fcn.0043a832
inc edi
jmp 0x43a76c
mov dword [ebp - 4], 0xfffffffe
call fcn.0043a867
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0058f0d5
mov esp, ebp
pop ebp
ret
Function at 0x4403f0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4404bd
mov edx, dword [esp + 4]
mov ecx, dword [esp]
call fcn.00614c70
mulsd xmm0, qword [0x6740c0]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
movsd qword [esp + 0x10], xmm0
call fcn.00614c70
mulsd xmm0, qword [0x6740c0]
mov edx, str.Total_USB_Drive_Size:
mov ecx, 0x6a7570
movsd qword [esp + 0x18], xmm0
call fcn.00412fc0
movsd xmm1, qword [esp + 0x10]
mov ecx, eax
call fcn.00442d50
mov edx, 0x673be8
mov ecx, eax
call fcn.00412fc0
push eax
call fcn.00444a90
add esp, 4
mov edx, str.Free_Space_on_USB_Drive:
mov ecx, 0x6a7570
call fcn.00412fc0
movsd xmm1, qword [esp + 0x18]
mov ecx, eax
call fcn.00442d50
mov edx, 0x673be8
mov ecx, eax
call fcn.00412fc0
push eax
call fcn.00444a90
movsd xmm0, qword [esp + 0x14]
add esp, 4
mulsd xmm0, qword [0x674168]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str.Failed_to_retrieve_disk_space_information._Error_code:
mov ecx, 0x6a7620
call fcn.00412fc0
add esp, 4
mov ecx, eax
call fcn.00442f10
push eax
call fcn.00444a90
xorps xmm0, xmm0
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x4404f0
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x288
mov dword [ebp - 4], 0x288
call fcn.005f8f9a
mov ebx, dword [sym.imp.WS2_32.dll_WSACleanup]
mov edi, eax
add esp, 4
test edi, edi
jne 0x440531
push str.Memory_allocation_failed._n
push 2
call fcn.005f38bc
add esp, 4
push eax
call fcn.00415100
add esp, 8
call ebx
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 4]
push eax
push edi
call esi
cmp eax, 0x6f
jne 0x440577
push edi
call fcn.005f8f7f
add esp, 4
push dword [ebp - 4]
call fcn.005f8f9a
mov edi, eax
add esp, 4
test edi, edi
jne 0x440577
push str.Memory_allocation_failed._n
push 2
call fcn.005f38bc
add esp, 4
push eax
call fcn.00415100
add esp, 8
call ebx
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
jne 0x4405e3
mov esi, edi
test edi, edi
je 0x4405fc
nop dword [eax + eax]
cmp dword [esi + 0x1a0], 6
jne 0x4405ae
lea eax, [esi + 8]
push str.Ethernet
push eax
call fcn.005e8450
add esp, 8
test eax, eax
je 0x4405c6
mov esi, dword [esi]
test esi, esi
jne 0x440590
push edi
call fcn.005f8f7f
add esp, 4
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add esi, 0x1b0
push esi
push str.Ethernet_IP_Address:__s_n
call fcn.00408440
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push str.GetAdaptersInfo_failed_with_error:__d_n
push 2
call fcn.005f38bc
add esp, 4
push eax
call fcn.00415100
add esp, 0xc
push edi
call fcn.005f8f7f
add esp, 4
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x441be0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x69cffc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x210]
mov ebx, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x441c37
mov edx, str.Error_getting_logical_drive_strings.
mov ecx, 0x6a7620
call fcn.00412fc0
push eax
call fcn.00444a90
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058f0d5
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x210], 0
lea esi, [ebp - 0x210]
je 0x441c71
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
nop dword [eax]
push esi
call edi
cmp eax, 2
jne 0x441c61
mov cl, byte [esi]
movsx eax, cl
mov byte [eax + ebx - 0x41], cl
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x441c61
cmp word [esi], ax
jne 0x441c50
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058f0d5
mov esp, ebp
pop ebp
ret
Function at 0x44c92d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x44c96c
call fcn.0045bdd0
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44c96c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44c974
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.004578b8
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x44d3a6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x44d432
cmp dword [esi + 0x20], 0
je 0x44d432
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44d432
cmp dword [ebp + 8], 0
je 0x44d432
xor edi, edi
mov ebx, edi
call fcn.0045bdd0
push 0x62e268
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x44d416
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44d432
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.00472a6c
mov edi, eax
add esp, 0xc
test edi, edi
je 0x44d42e
mov ecx, esi
call fcn.0044d144
mov eax, edi
jmp 0x44d434
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x452aa7
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x61ae2d
call fcn.0058f926
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x452acd
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x452b27
lea ecx, [ebp - 0x10]
call fcn.00402ac0
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x62cb4c]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.005ef597
push eax
call fcn.00402bf0
add esp, 0x14
test esi, esi
je 0x452b1a
push esi
call fcn.005f351c
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00403090
mov eax, ebx
call fcn.0058f8f4
ret 8

Function at 0x456667
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call fcn.0045bdd0
push 5
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45669a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push edi
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.004566ad
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x45f171
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x45f1b6
call fcn.0045bdd0
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45f1b3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45f1fd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x45f1d9
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x62cb4c]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x45f1fa
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x62cb4c]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x46b2a9
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x46b2fc
push esi
push dword [ebp + 8]
call fcn.0046b492
mov edi, eax
test edi, edi
je 0x46b2f7
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x46b2f7
mov eax, dword [ebp - 8]
jmp 0x46b30e
mov eax, dword [ebp + 0x10]
jmp 0x46b30e
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

Function at 0x47517e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x4751d4
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4751ad
call fcn.0044891f
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4751c2
call fcn.0044891f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4751d4
call fcn.0044891f
call fcn.0045bdd0
cmp dword [eax + 0x3c], 0
je 0x4751e9
push edi
mov ecx, ebx
call fcn.004748a1
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004753cf
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x475212
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x47521e
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4793f7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x479410
call fcn.0045bdd0
mov esi, dword [eax + 0xc]
push 0x66ef4c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x479452
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x479452
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x479452
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0047945b
jmp 0x479454
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x49956d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00452684
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4995a9
call fcn.0049978a
mov dword [esi + 0xc], 1
jmp 0x4995ae
call fcn.0049978a
cmp dword [esi], 0
je 0x4995f9
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x4995d4
push edi
call fcn.00417e10
lea ecx, [edi + 1]
push ecx
jmp 0x4995e3
push 0xff
call fcn.004031e0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004084d0
pop edi
jmp 0x49961d
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x49961d
push dword [esi]
push dword [ebp - 4]
call fcn.004706cb
pop esi
leave
ret 0xc

Function at 0x4996e1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0049978a
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x499729
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00417e10
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004084d0
jmp 0x499734
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004706cb
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x5133c5
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0057588a
call fcn.0045be24
cmp dword [eax + 0x14], 0
jne 0x5133e0
mov ecx, esi
pop esi
jmp fcn.005126e9
pop esi
ret

Function at 0x539756
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.004027a0
call fcn.0045be24
cmp dword [eax + 0x14], 0
jne 0x539771
mov ecx, esi
pop esi
jmp fcn.00538fc7
pop esi
ret

Function at 0x569e09
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.005fe6a4
pop ecx
test eax, eax
jne 0x569e4b
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004469c0
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x569e11
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x5940c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x69cffc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x5940e5
xor eax, eax
jmp 0x594141
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x594112
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x594112
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x5941c8
cmp dword [edi + 0x4c], 0
je 0x59413b
mov ecx, edi
call fcn.00593fb8
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x594151
push dword [edi + 0x4c]
push ebx
call fcn.005939d9
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x594140
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0058f0d5
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x62cb4c]
mov ecx, dword [ebp - 0x2c]
call esi
sub eax, 0
je 0x59419b
sub eax, 1
je 0x59419b
dec eax
sub eax, 1
jne 0x59413b
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x59412d
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x5941b8
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.005f2082
add esp, 0x10
cmp esi, eax
jne 0x59413b
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x59413b
mov ax, bx
jmp 0x594140
Function at 0x5b02e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
lea edi, [esi + eax*4]
cmp esi, edi
jae 0x5b0333
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esi]
lea eax, [eax + 2]
mov edx, ebx
mov ecx, ebx
shr edx, 0x10
add esi, 4
shr ecx, 0xd
xor dl, cl
mov ecx, ebx
and dl, 7
shr ecx, 0x10
xor dl, cl
mov ecx, ebx
mov byte [eax - 2], dl
mov edx, ebx
shr edx, 5
shr ecx, 3
xor dl, cl
shr ebx, 5
and dl, 0x1f
xor dl, bl
mov byte [eax - 1], dl
cmp esi, edi
jb 0x5b02f6
pop ebx
pop edi
pop esi
ret

Function at 0x5b0340
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
lea edi, [esi + eax*4]
cmp esi, edi
jae 0x5b0389
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esi]
lea eax, [eax + 2]
mov edx, ebx
mov ecx, ebx
shr ecx, 0xc
add esi, 4
shr edx, 0x10
xor dl, cl
mov ecx, ebx
shr ecx, 0x10
and dl, 0xf
xor dl, cl
mov ecx, ebx
shr ecx, 0x1c
and bl, 0xf0
or cl, bl
mov byte [eax - 2], dl
mov byte [eax - 1], cl
cmp esi, edi
jb 0x5b0356
pop ebx
pop edi
pop esi
ret