joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aed60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4aed8b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4aedaf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4aedca
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x4b342f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b3467
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b2434
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b240b
jmp 0x4b3473
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4b4d70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b4db2
call fcn.004c4bd2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x4b4db2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b4da9
xor eax, eax
jmp 0x4b4dba
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b4dc0
pop edi
pop esi
pop ebx
ret 4

Function at 0x4bc305
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4cdc0c
call fcn.00496e10
push ecx
push ecx
push esi
push 0x10
call fcn.004b254a
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x4bc352
mov ecx, esi
call fcn.004b7531
mov eax, dword [0x5032b8]
lea ecx, [esi + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [esi], vtable.CArchiveException.0
mov dword [esi + 8], eax
call fcn.004b210d
jmp 0x4bc354
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push 0x4ea970
push eax
mov dword [ebp - 0x10], esi
call fcn.0049846c
pop esi
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x401bd7
pop dword [ebp - 0xc]
mov eax, 0xab0a1b30
sub eax, 0xaac9ff59
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x1d5af794
sub dword [ebp - 0x1c], 0xcf08b249
mov dword [ebp - 0x18], 0x7fd25323
add dword [ebp - 0x18], 0xb260f922
mov dword [ebp - 0x14], 0xc6553d6
add dword [ebp - 0x14], 0x3fe6f058
mov dword [ebp - 0x10], 0x6501f562
add dword [ebp - 0x10], 0x9afe0a9e
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xe1cb12db
sub dword [ebp - 0x1c], 0x6d58a985
mov dword [ebp - 0x18], 0x189c29e1
sub dword [ebp - 0x18], 0xd72fc86c
mov dword [ebp - 0x14], 0x956167ba
sub dword [ebp - 0x14], 0x31f1fb4e
mov dword [ebp - 0x10], 0x5a12f33d
sub dword [ebp - 0x10], 0x5a12f33d
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xf83c850
add eax, 0xf0bca8b0
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x369b7
push 0
call eax
mov ecx, 0xeb0e0cdb
add ecx, 0x14f23b46
xor ebx, ebx
add ebx, eax
mov esi, 0x40f684ce
sub esi, 0x40b584ce
add esi, dword [ebp - 0xc]
mov edx, 0xd5bfc85d
sub dword [ebp - 4], edi
mov edi, dword [esi]
xor dword [ebp - 4], ecx
sub edi, edx
sub dword [ebp - 8], edx
mov dword [ebx], edi
sub dword [ebp - 8], edi
add ebx, 4
add esi, 0xcf8a74c6
add esi, 0x30758b3e
loop 0x401cf0
add eax, 0x55f2e8ad
sub eax, 0x55f1d556
xor ebx, ebx
add ebx, eax
add eax, 0x9d08b04f
sub eax, 0x9d08b04a
mov ecx, 0x485ba5fa
add ecx, 0xb7e45a06
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x10015af3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x10015b02
pop dword [ebp - 0x10]
mov eax, 0x8217a7e0
add eax, 0x8de9b322
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x818e09cf
add dword [ebp - 0x20], 0xccc43b7c
mov dword [ebp - 0x1c], 0x1d12dd4c
add dword [ebp - 0x1c], 0x15206ef9
mov dword [ebp - 0x18], 0x92d06520
add dword [ebp - 0x18], 0xb97bdf0e
mov dword [ebp - 0x14], 0x927dd653
add dword [ebp - 0x14], 0x6d8229ad
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x963f06d3
sub dword [ebp - 0x20], 0x21cc9d7d
mov dword [ebp - 0x1c], 0x2c24e5d6
sub dword [ebp - 0x1c], 0xeab88461
mov dword [ebp - 0x18], 0x96feb1ad
sub dword [ebp - 0x18], 0x338f4541
mov dword [ebp - 0x14], 0x8fe7978f
add dword [ebp - 0x14], 0x70186871
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x60f16ecd
add eax, 0xaf10313f
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3f452
push 0
call eax
mov ecx, 0x1286d4cb
add ecx, 0xed798710
xor edi, edi
add edi, eax
mov esi, 0xc75763e2
add esi, 0x48aae61e
add esi, dword [ebp - 0x10]
mov ebx, 0x15576fee
add ebx, 0x74b948e9
add dword [ebp - 0xc], edx
mov edx, dword [esi]
sub dword [ebp - 8], ebx
sub edx, ebx
xor dword [ebp - 0xc], edi
mov dword [edi], edx
xor dword [ebp - 4], ecx
add edi, 4
add esi, 4
loop 0x10015c21
add eax, 0x4b944773
add eax, 0xb46d1acc
xor ebx, ebx
add ebx, eax
add eax, 0x7fe5749f
add eax, 0x801a8b66
mov ecx, 0x10000000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x404eb0
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x43bcbf
call fcn.0043a99c
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
push edi
xor eax, eax
mov byte [ebp - 0x1c], 0
lea edi, [ebp - 0x1b]
stosd dword es:[edi], eax
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], esi
push 0x441234
mov ecx, ebx
mov byte [ebx], al
call fcn.00402b4a
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], 1
cmp eax, esi
jle 0x404fa9
mov esi, dword [ebp + 0xc]
add esi, 2
mov dword [ebp - 0x10], eax
push 3
dec eax
xor edx, edx
pop ecx
div ecx
lea edi, [eax + 1]
mov eax, dword [ebp - 0x10]
push 3
pop ecx
mov dword [ebp + 0x10], ecx
cmp eax, ecx
jg 0x404f26
mov dword [ebp + 0x10], eax
movzx eax, byte [esi - 2]
mov ecx, eax
shr ecx, 2
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 0x1c], cl
movzx ecx, byte [esi - 1]
and eax, 3
mov edx, ecx
shl eax, 4
shr edx, 4
or edx, eax
cmp dword [ebp + 0x10], 1
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 0x1b], al
jle 0x404f71
movzx eax, byte [esi]
and ecx, 0xf
shr eax, 6
shl ecx, 2
or eax, ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 0x1a], al
jmp 0x404f75
mov byte [ebp - 0x1a], 0x3d
cmp dword [ebp + 0x10], 2
jle 0x404f8c
movzx eax, byte [esi]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 0x19], al
jmp 0x404f90
mov byte [ebp - 0x19], 0x3d
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.0040557a
sub dword [ebp - 0x10], 3
add esi, 3
dec edi
jne 0x404f16
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40526f
Capabilities:
Hash data with md5

Disassembly:
mov eax, 0x43c081
call fcn.0043a99c
sub esp, 0x128
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp + 0xc], ebx
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
push esi
push edi
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x74], 0x67452301
mov dword [ebp - 0x70], 0xefcdab89
mov dword [ebp - 0x6c], 0x98badcfe
mov dword [ebp - 0x68], 0x10325476
jb 0x4052b9
mov ecx, dword [eax]
jmp 0x4052bb
mov ecx, eax
mov eax, edx
shl eax, 3
cmp edx, ebx
jle 0x4052d4
push edx
push ecx
lea ecx, [ebp - 0x7c]
push ecx
xor ecx, ecx
call fcn.00405e63
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea esi, [ebp - 0x7c]
call fcn.00405f0a
pop ecx
xor edi, edi
inc edi
push edi
push 3
lea ecx, [ebp - 0x134]
call fcn.004023a3
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x124]
mov eax, dword [eax + 4]
lea eax, [ebp + eax - 0x124]
mov ecx, dword [eax + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [eax + 0x14], ecx
mov eax, dword [ebp - 0x124]
mov eax, dword [eax + 4]
lea eax, [ebp + eax - 0x124]
mov byte [eax + 0x40], 0x30
xor esi, esi
push ebx
lea eax, [ebp - 0x8c]
push 2
push eax
call fcn.00421907
mov ecx, dword [ebp - 0x124]
mov ecx, dword [ecx + 4]
add esp, 0xc
push dword [eax + 0xc]
lea ecx, [ebp + ecx - 0x124]
push dword [eax + 8]
push ecx
call dword [eax]
movzx eax, byte [ebp + esi - 0x20]
add esp, 0xc
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.0040559d
inc esi
cmp esi, 0x10
jl 0x40532d
push dword [ebp + 8]
lea ecx, [ebp - 0x134]
call fcn.00402455
lea ecx, [ebp - 0x134]
mov dword [ebp + 0xc], edi
mov byte [ebp - 4], bl
call fcn.00401db7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x407142
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x43bb98
call fcn.0043a99c
sub esp, 0x74
push ebx
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0040f520
add esp, 0xc
push dword [ebp + 8]
mov dword [ebp - 0x80], edi
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.00407b68
push str.__VERYSILENT
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], esi
call fcn.00407b8a
mov eax, dword [ebp - 0x28]
push 2
xor ebx, ebx
pop ecx
inc eax
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.0040eab2
mov edi, eax
pop ecx
cmp edi, esi
je 0x4071b8
push ebx
push esi
push edi
call fcn.0040f520
add esp, 0xc
jmp 0x4071ba
xor edi, edi
cmp dword [ebp - 0x24], 8
mov eax, dword [ebp - 0x38]
jae 0x4071c6
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
add ecx, ecx
push ecx
push eax
push edi
call fcn.0040f9a0
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x407201
cmp dword [ebp - 0x1c], 0xffffffff
je 0x407201
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push edi
call fcn.0040e47f
pop ecx
push esi
push 1
lea ecx, [ebp - 0x38]
call fcn.004056ff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x407224
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push ebx
xor eax, eax
push 0x206
mov word [ebp - 0x280], ax
xor ebx, ebx
lea eax, [ebp - 0x27e]
push ebx
push eax
call fcn.0040f520
add esp, 0xc
push 0x104
lea eax, [ebp - 0x280]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
jne 0x40726c
xor al, al
jmp 0x407340
push esi
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40733d
push 0x39
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.0040f520
add esp, 0xc
push 2
push ebx
push 0xffffffffffffffc8
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
push 0x38
lea eax, [ebp - 0x78]
push eax
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x78], 0x44414544
jne 0x40733d
cmp dword [ebp - 0x74], 0x46454542
jne 0x40733d
push edi
xor eax, eax
mov byte [ebp - 0x18], bl
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x18]
push 0x11
push eax
call fcn.0040ed30
mov ecx, dword [ebp + 8]
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
call fcn.0040557a
push 8
pop ecx
xor eax, eax
mov byte [ebp - 0x3c], bl
lea edi, [ebp - 0x3b]
rep stosd dword es:[edi], eax
push 0x10
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x3c]
push 0x11
push eax
call fcn.0040ed30
mov ecx, dword [ebp + 0xc]
add esp, 0x10
lea eax, [ebp - 0x3c]
push eax
call fcn.0040557a
mov al, 1
pop edi
jmp 0x40733f
xor al, al
pop esi
pop ebx
leave
ret 8
Function at 0x407952
Capabilities:
Set registry value

Disassembly:
mov eax, 0x43c2e3
call fcn.0043a99c
sub esp, 0x94
push ebx
push esi
push edi
push 0xf
xor ebx, ebx
pop edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
mov byte [ebp - 4], 1
push 0x12
push str.SoftwareGGSQGNA_
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov byte [ebp - 0x9c], bl
call fcn.00403404
push 2
lea ecx, [ebp - 0x9c]
pop edx
lea esi, [ebp - 0x18]
call fcn.00406c20
push ebx
push 1
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 2
call fcn.00401506
push 7
push str.InstKey
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
call fcn.00403404
mov dword [ebp - 0x10], 0xa51
cmp byte [ebp - 0x14], bl
je 0x407a10
cmp dword [ebp - 0x24], 0x10
mov eax, dword [ebp - 0x38]
jae 0x4079fd
lea eax, [ebp - 0x38]
push 4
lea ecx, [ebp - 0x10]
push ecx
push 4
push ebx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.00401506
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00407224
test al, al
je 0x407a88
cmp dword [ebp - 0x44], ebx
jbe 0x407a74
push 3
push 0x4416a8
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
call fcn.00403404
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x18]
call fcn.00406c7e
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.00401506
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x54]
push eax
add ecx, 0xc
call fcn.0040146d
cmp dword [ebp - 0x70], ebx
jbe 0x407a88
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 8]
call fcn.00407345
mov dword [ebp - 0x1c], eax
sub esp, 0x10
mov dword [ebp - 0x10], esp
mov esi, esp
push ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x10], esp
call fcn.004035d3
mov eax, dword [ebp + 8]
add eax, 8
push 0xaba
push eax
mov dword [ebp + 8], eax
call fcn.00404fba
push ecx
mov dword [ebp - 0x10], esp
lea esi, [ebp - 0x64]
mov dword [ebp - 0x10], esp
call fcn.004035d3
mov byte [ebp - 4], 3
push 6
push str.STATUS
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
call fcn.00403404
push dword [ebp - 0x1c]
lea eax, [ebp - 0x38]
push eax
mov edi, esi
mov byte [ebp - 4], 4
call fcn.00401d31
push ebx
push 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.00401506
sub esp, 0x10
mov dword [ebp - 0x10], esp
push esp
mov ecx, esi
call fcn.00407d58
push 0xa85
push dword [ebp + 8]
call fcn.00404fba
mov eax, esi
push eax
mov byte [ebp - 4], 2
call fcn.00401d02
cmp byte [ebp - 0x14], bl
je 0x407b31
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.00401506
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.00401506
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x40901f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43c025
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push esi
push edi
push 0x441b7c
mov esi, ecx
mov edi, dword [esi]
push 0x65
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x409063
push eax
lea ebx, [esi + 0x1c]
push edi
call fcn.0040b617
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x409237
mov ecx, dword [eax + 8]
and dword [eax + 8], 0
test ecx, ecx
jne 0x409237
push esi
mov dword [esi + 0x14], 0xb2
mov dword [esi + 0x18], 0xec
call fcn.00409266
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
push 1
mov ebx, eax
call edi
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov eax, ebx
cdq
sub eax, edx
fmul qword [0x441c30]
mov ebx, eax
mov eax, dword [esi + 0x14]
cdq
sub eax, edx
sar eax, 1
sar ebx, 1
sub ebx, eax
call fcn.0043a8f0
and dword [esp + 0x24], 0
mov ecx, eax
mov eax, dword [esi + 0x18]
cdq
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, dword [esp + 0x10]
cdq
neg edi
sub eax, edx
sub edi, ecx
push 0x1c
sar eax, 1
push 0x441708
lea ecx, [esp + 0x1c]
add edi, eax
mov dword [esp + 0x30], 0xf
mov byte [esp + 0x1c], 0
call fcn.00403404
and dword [esp + 0x11c], 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00409664
push 0
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x124], 2
call fcn.00401506
push 1
push 3
lea ecx, [esp + 0x70]
call fcn.00409e92
mov byte [esp + 0x11c], 3
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
jae 0x409154
lea eax, [esp + 0x30]
push str.BS.ru
push ecx
push eax
lea eax, [esp + 0x84]
push eax
call fcn.0040b343
add esp, 0xc
push eax
call fcn.0040b343
pop ecx
pop ecx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x6c]
call fcn.00409f44
cmp dword [eax + 0x14], 8
jb 0x40918b
mov ecx, dword [eax]
jmp 0x40918d
mov ecx, eax
xor eax, eax
push eax
push dword [esi]
push eax
push eax
push dword [esi + 0x18]
push dword [esi + 0x14]
push edi
push ebx
push SysReAllocString
push ecx
push 0x441734
push eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push 1
lea ecx, [esp + 0x54]
mov dword [esi + 4], eax
call fcn.004056ff
call fcn.004092e6
push esi
call fcn.00409501
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esi + 0x48]
sub eax, dword [esi + 0x44]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x409205
push 0x408f1b
push 0xbb8
push 0x401
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
add esi, 0x58
push esi
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
add esi, 8
push esi
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
lea ecx, [esp + 0x68]
mov byte [esp + 0x11c], 2
call fcn.0040924c
push 0
push 1
lea ecx, [esp + 0x38]
call fcn.004056ff
mov ecx, dword [esp + 0x114]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret