joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49f4c4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.0040630c
xor eax, eax
push ebp
push 0x49f5ac
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004060c0
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx]
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x49f498]
call fcn.0040629c
add esp, 4
push 0
push 0
mov eax, dword [esi]
call fcn.0041d814
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
mov edx, dword [ebp - 8]
mov eax, dword [esi]
call fcn.0041da20
mov eax, dword [ebp - 8]
call fcn.004060c0
mov ebx, eax
dec ebx
test ebx, ebx
jb 0x49f55a
inc ebx
xor ecx, ecx
mov eax, ecx
xor edx, edx
div dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov al, byte [eax + edx]
mov edx, dword [ebp - 8]
xor byte [edx + ecx], al
inc ecx
dec ebx
jne 0x49f543
push 0
push 0
mov eax, dword [esi]
call fcn.0041d814
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
mov edx, dword [ebp - 8]
mov eax, dword [esi]
call fcn.0041da58
push 0
push 0
mov eax, dword [esi]
call fcn.0041d814
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f5b3
lea eax, [ebp - 8]
mov edx, dword [0x49f498]
call fcn.004062a8
lea eax, [ebp - 4]
mov edx, dword [0x49e5d8]
call fcn.004062a8
ret
Function at 0x4c3978
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00404f48
mov eax, dword [ebp - 8]
call fcn.00404f48
xor eax, eax
push ebp
push 0x4c3a65
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x4c39b4
mov byte [ebx], 0
lea eax, [ebp - 0xc]
push eax
push 0x101
push 0
mov eax, dword [ebp - 4]
call fcn.00404f58
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4c3a4a
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404f58
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4c39fa
cmp dword [ebp - 0x10], 1
je 0x4c3a05
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4c3a4a
mov ecx, dword [ebp - 0x14]
dec ecx
mov eax, esi
xor edx, edx
call fcn.00404b78
lea eax, [ebp - 0x14]
push eax
mov eax, esi
call fcn.00404fb0
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404f58
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test ebx, ebx
je 0x4c3a41
test eax, eax
sete al
mov byte [ebx], al
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3a6c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404aac
ret
Function at 0x4cb54c
Capabilities:
Create process on windows

Disassembly:
push ebx
mov dl, 1
mov eax, dword [0x418a00]
call fcn.00403bcc
mov ebx, eax
mov edx, 0x4cb610
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x4cb620
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x4cb648
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x4cb680
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x4cb6a4
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x4cb6b8
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x4cb6c8
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x4cb6e8
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x4cb71c
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x4cb738
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x4cb750
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x4cb75c
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, ebx
call fcn.00403bfc
push 0
push 0
push 0
push 0x4cb768
push 0
push 0
call sub.shell32.dll_ShellExecuteA
pop ebx
ret
Function at 0x404920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esi - 0x75]
inc ebp
or byte [ebx - 0x1fa2f3c0], cl
mov ebx, 0x90909000
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
pop eax
inc ebp
or al, 0x89
inc ecx
adc byte [ebp - 0x3e], cl
or byte [eax], al
mov dword [ebx + 0x8458bec], ecx
xor byte [eax + edx + 0x4505d], 0x90
nop
nop
push ebp
mov ebp, esp
sti
sub esp, edx
add al, byte [ecx]
push esi
enter 0xffffffffffffc0fe, 0xffffffffffffffa8
leave

Function at 0x405b70
Capabilities:
Query environment variable

Disassembly:
cdq
or al, 0x8b
inc edx
sbb al, 0xc7
add al, 1
pop dword [eax]
add byte [eax], al
mov edx, dword [ebx]
mov eax, 0x4920aa01
loop 0x405b96
and al, 0x8e
add byte [eax], al
add byte [ebx], dl
or ecx, dword [ecx + 0x138b7f41]
mov dword [edx - 0x1b], eax
mov ecx, dword [ebx]
pop ebx
mov dword [ecx + 0x2c], eax
xor eax, esi
in eax, dx
ret 0xd4c5
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x60]
push edi
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x405b87
mov edi, dword [ecx]
and byte [eax + 0x4fb6f338], al
jmp 0x405b43
jge 0x405bbc
mov ebp, dword [edx + 0x1c]
mov eax, dword [esp]
mov dword [esi - 0x34], eax
or byte [ebx - 0x75e98abd], 0x50
add edi, esp
test dl, dl
je 0x405bd6
sub byte [ecx + 0x688a3046], cl
sub byte [0x411e752d], 0x89
dec esi
dec esi
mov dword [esi + 0x30], eax
mov ch, byte [eax - 0x80]
sub eax, 0x411e752d
mov dword [esi + 0x4e], ecx
mov dword [esi + 0x20], 0xce02d4
mov ecx, dword [ebp + 0x10]
jmp 0x89fa011
mov edx, dword [esi + 0x20]
mov edi, dword [ebp + 0x15]
movsx eax, byte [edx]
pop edi
cmp eax, 0x3a
mov dword [esi + 0x10], eax
test eax, 0x84512056
jp 0x405bed
add byte [edi + 0x15ff5750], cl
jl 0x405bad
inc eax
add byte [ebx + 0x1a8508c4], al
je 0x28405c9b
adc byte [esi + 1], 0x3a
je 0x405c22
mov ecx, dword [ebp + 0x14]
add dword [ecx], 0x10000000
mov edx, dword [esi + 0x20]
pop edi
idiv bh
jne 0x405caf
dec ecx
mov al, byte [eax]
add byte [eax], al
mov eax, dword [esi + 0x20]
cmp byte [eax], 0
je 0x405c31
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jmp 0x405ca5
out 0x56, al
xchg edi, eax
mov esp, dword [esi - 0x3d74a8e8]
mov dword [esi + 0xc], edx
cmp ecx, eax
jg 0x405c9a
mov dword [esi + 0x20], 0xb862d4
mov al, byte [edi]
cmp al, 0x3a
hlt
invalid

Function at 0x407d01
Capabilities:
Encode data using xor

Disassembly:
pop esi
push esi
xor dword [esi], ebx
lodsd eax, dword [esi]
add ebx, eax
test eax, eax
jne 0x407d03
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x73f6687c
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..data_1
mov ebx, 0x42f314
nop
nop
mov ecx, 0x7d930484
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x409888
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40995b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409974
push ebx
push 0x409980
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409908
mov al, 0x62
call fcn.00409460
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040985c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409911
call fcn.0040985c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409962
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409a14
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
jmp 0x409abd
cmp dword [esi + 0x10], 0x1000
jne 0x409aa9
test byte [esi + 0x15], 1
jne 0x409aa9
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409a68
cmp eax, 2
je 0x409a68
cmp eax, 0x10
je 0x409a68
cmp eax, 0x20
jne 0x409a7d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409a7d
mov bl, 1
xor ebp, ebp
jmp 0x409a8e
mov eax, dword [esi]
add eax, ebp
call fcn.00409a0c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409a81
test bl, bl
je 0x409aa9
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409a40
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x40107e
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x4246b0
push 0x67
push edi
call esi
push 0x64
push 0x4245e8
push 0x6d
push edi
call esi
mov eax, edi
call fcn.00401209
push ebx
push 0x4251b8
call fcn.00408d14
pop ecx
pop ecx
call fcn.00402e73
push 0x7d0
mov dword [reloc.avifil32.dll_AVIStreamGetFrame], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004014c5
test eax, eax
je 0x4010fe
call fcn.00403139
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
call fcn.00401da2
test eax, eax
pop ecx
jne 0x401120
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00408c2e
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
xor esi, esi
push 0x206
lea eax, [esp + 0x16]
push esi
push eax
mov word [esp + 0x1c], si
call fcn.00408c40
mov ecx, dword [0x424e00]
add esp, 0xc
cmp ecx, esi
jbe 0x40116c
cmp word [0x424e04], si
jbe 0x40116c
mov esi, 0x423648
call fcn.00402e0f
mov ax, word [0x424e04]
mov word [0x423658], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x3e8
xor edx, edx
mov esi, ecx
div esi
xor edx, edx
mov ebx, 0x4253c8
div ecx
push edx
push 0x41dc00
push ebx
call fcn.00402848
add esp, 0xc
call fcn.004024c9
lea edi, [esp + 0x10]
call fcn.00402863
push 0x41dc18
mov esi, 0x104
mov eax, edi
push esi
push eax
call fcn.00408d30
add esp, 0xc
push ebx
mov eax, edi
push esi
push eax
call fcn.00408d30
add esp, 0xc
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4011f4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
xor eax, eax
push eax
push 0x41dd90
mov ecx, edi
push ecx
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004022ab
jmp 0x4010f6
Function at 0x401414
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x41dc34
push dword [ebp + 8]
mov ebx, eax
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004092a6
add esp, 0xc
test eax, eax
je 0x401441
xor eax, eax
jmp 0x4014c1
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.0040937d
push dword [ebp - 4]
call fcn.0040959a
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.0040937d
lea eax, [esi + ebx]
push eax
mov dword [ebp - 8], eax
call fcn.00409657
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.00409977
push dword [ebp - 4]
call fcn.00409a05
push ebx
lea ebx, [edi + esi]
call fcn.004030c7
push 0x41dc3c
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.004092a6
add esp, 0x44
test eax, eax
pop esi
jne 0x40143a
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.00409b9b
push dword [ebp - 4]
call fcn.00409a05
xor eax, eax
add esp, 0x14
inc eax
pop edi
pop ebx
leave
ret
Function at 0x401da2
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e0
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push esi
push eax
push esi
push esi
push esi
mov dword [0x424778], eax
mov eax, closesocket
push eax
push esi
push eax
push 0xcf0000
push 0x4246b0
push 0x4245e8
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x401df0
xor eax, eax
jmp 0x401f4a
push 0x206
lea eax, [ebp - 0x24a]
push esi
push eax
mov word [ebp - reloc.avifil32.dll_AVIStreamGetFrameClose], si
call fcn.00408c40
add esp, 0xc
lea eax, [ebp - 0x3dc]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 1
mov edi, 0x424f38
call fcn.00408a72
test eax, eax
pop ecx
jne 0x401ecf
push 0x3a
lea eax, [ebp - 0x42]
push esi
push eax
mov word [ebp - 0x44], si
call fcn.00408c40
add esp, 0xc
lea ebx, [ebp - 0x44]
call fcn.00401000
mov eax, ebx
push eax
push 0x4250e0
call fcn.00408d14
push 0x41dc90
push 0x40
push 0x424f3c
call fcn.00409115
add esp, 0x14
push 0x41dcac
push 0x10
push 0x424fbe
mov word [0x424fbc], 0x51
call fcn.00409115
add esp, 0xc
push 0x41dc5c
push 0x40
push 0x424fde
call fcn.00409115
add esp, 0xc
mov eax, ebx
push eax
mov edi, 0x4250c0
push edi
mov word [0x42505e], 0x2b66
call fcn.00408d14
push 0x41dd2c
push edi
call fcn.00408cea
add esp, 0x10
mov dword [0x425100], 5
call fcn.00401303
lea ebx, [ebp - 0x24c]
call fcn.00401000
mov eax, ebx
push eax
mov edi, 0x425138
push edi
call fcn.00408d14
pop ecx
pop ecx
push edi
push esi
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
cmp eax, esi
je 0x401f0c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401de9
push edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x401de9
mov ecx, 0x4255d0
call fcn.00402190
mov eax, dword [0x425104]
push esi
push esi
push esi
push 0x40127a
push esi
push esi
mov dword [0x4255d8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x423640], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c2e
leave
ret
Function at 0x4022ab
Capabilities:
Create process on windows
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x236]
push esi
push eax
mov word [ebp - reloc.avifil32.dll_AVIStreamGetFrameClose], si
call fcn.00408c40
add esp, 0xc
push 9
mov word [ebp - 0x2c], si
pop ecx
xor eax, eax
lea edi, [ebp - 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x4250a0
mov ebx, 0x104
push edi
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], ebx
call fcn.00409c28
test eax, eax
pop ecx
je 0x402325
push edi
push esi
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
jne 0x4024b8
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x23c]
push eax
push 0xf003f
push esi
push 0x41dcb8
push closesocket
call edi
test eax, eax
jne 0x4023a1
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x248]
push eax
push esi
push 0x41dd3c
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402395
lea eax, [ebp - 0x2c]
push eax
push esi
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x402395
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4024b8
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x238]
push eax
push ebx
mov dword [ebp - 0x240], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4250c0
call fcn.00409c28
test eax, eax
pop ecx
lea eax, [ebp - 0x238]
jne 0x4023e0
push 0x41dd4c
push ebx
push eax
call fcn.00408d30
add esp, 0xc
push 0x41dd4c
jmp 0x4023f4
push 0x4250c0
push ebx
push eax
call fcn.00408d30
add esp, 0xc
push 0x4250c0
lea eax, [ebp - 0x2c]
push eax
call fcn.00408d14
pop ecx
pop ecx
push 0x41dc28
lea eax, [ebp - 0x238]
push ebx
push eax
call fcn.00408d30
lea eax, [ebp - 0x240]
add esp, 0xc
push eax
call fcn.00402971
mov ebx, eax
cmp ebx, esi
pop ecx
je 0x4024b8
push dword [ebp - 0x240]
lea eax, [ebp - 0x238]
push ebx
push eax
call fcn.004020f0
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push 0x41dd90
lea eax, [ebp - 0x238]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [ebp - 0x23c]
push eax
push 3
push esi
push 0x41dcb8
push closesocket
call edi
test eax, eax
jne 0x4024b1
lea eax, [ebp - 0x2c]
push eax
call fcn.00409c28
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x2c]
push eax
push 1
push esi
push 0x41dd3c
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4024b1
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00409cfb
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00408c2e
leave
ret
Function at 0x40258d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x430], eax
push eax
call fcn.004083a5
xor edi, edi
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp - 0x42c], eax
jne 0x402708
mov esi, 0x206
push esi
lea eax, [ebp - 0x21e]
push edi
push eax
mov word [ebp - reloc.avifil32.dll_AVIStreamGetFrameClose], di
call fcn.00408c40
add esp, 0xc
push esi
lea eax, [ebp - 0x426]
push edi
push eax
mov word [ebp - reloc.avifil32.dll_AVIStreamGetFrameClose], di
call fcn.00408c40
add esp, 0xc
lea edi, [ebp - 0x220]
call fcn.00402863
push 0x41dc18
mov ebx, 0x104
mov eax, edi
push ebx
push eax
call fcn.00408d30
mov byte [ebp - 0x18], 0
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x424788
stosb byte es:[edi], al
mov edi, esi
cmp word [edi], 0
je 0x402692
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push ebx
push eax
call fcn.00409115
add esp, 0xc
push edi
lea eax, [ebp - 0x428]
push ebx
push eax
call fcn.00408d30
lea eax, [ebp - 0x428]
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.004046ef
test eax, eax
pop ecx
je 0x402692
push 0x14
lea eax, [edi + 0x104]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00409d00
add esp, 0xc
test eax, eax
jne 0x402692
and word [edi], ax
add edi, 0x118
cmp edi, 0x424d00
jl 0x402634
cmp word [esi], 0
je 0x4026c3
push dword [ebp + 0xc]
mov eax, dword [esi + 0x100]
push dword [ebp - 0x430]
mov ecx, esi
mov dword [0x42477c], eax
call fcn.004085cf
pop ecx
pop ecx
add esi, 0x118
cmp esi, 0x424d00
jl 0x4026a0
push 0x4253c8
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.00408d30
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402702
mov dword [ebp - 0x42c], 2
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c2e
leave
ret

Function at 0x402971
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x41dd58
mov ebx, eax
push 0x83
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
cmp ebp, edi
je 0x4029de
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebp
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
mov eax, dword [esp + 0x14]
push esi
mov dword [eax], esi
call fcn.0040b581
push esi
mov edi, eax
push 0
push edi
call fcn.00408c40
push esi
push ebp
push edi
call fcn.00408db0
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
ret
Function at 0x402f0f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push closesocket
push dword [ebp + 8]
or esi, 0xffffffff
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, esi
jne 0x402f3e
mov edx, esi
jmp 0x402f5d
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x402f54
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x403032
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - reloc.avifil32.dll_AVIStreamGetFrameClose], 0
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.00408c40
add esp, 0xc
cmp dword [reloc.avifil32.dll_AVIStreamGetFrame], 3
lea eax, [ebp - 0x20c]
jne 0x403098
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41dc18
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00408d30
add esp, 0xc
pop esi
jmp 0x4030a4
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x41ddbc
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.00408c2e
leave
ret