joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100283b7
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword fs:[0x2c]
sub esp, 0x24
mov ecx, dword [0x10193ad4]
push ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1015d8c8]
push ebp
push esi
push edi
cmp eax, dword [ecx + 4]
jg 0x100284dd
mov ebp, dword [esp + 0x38]
xor edi, edi
and dword [esp + 0x10], 0
inc edi
and dword [esp + 0x38], 0
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
test ecx, ecx
je 0x100284d3
mov esi, dword [0x1015d8c4]
xor edx, edx
mov eax, ebx
mov dword [esp + 0x3c], 1
div esi
sub esi, edx
cmp ecx, esi
cmovle esi, ecx
test ebx, ebx
je 0x10028460
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10028460
cmp dword [esp + 0x28], 0x1000
jne 0x10028460
test byte [esp + 0x2c], 0xee
je 0x10028460
mov ecx, dword [esp + 0x24]
cmp esi, ecx
ja 0x10028460
mov eax, ebx
sub ecx, esi
sub eax, dword [esp + 0x18]
cmp eax, ecx
jbe 0x10028487
lea eax, [esp + 0x10]
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1002847f
xor edi, edi
push esi
push edi
push ebp
call fcn.10050640
jmp 0x10028493
mov dword [esp + 0x38], 1
push esi
push ebx
push ebp
call fcn.100500c0
mov edi, dword [esp + 0x48]
add esp, 0xc
cmp dword [esp + 0x38], 0
je 0x100284bf
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100284bf
push ebx
push str.__page_read___could_not_restore_original_permissions_for_ptr__p
call fcn.1004c6ea
pop ecx
pop ecx
mov ecx, dword [esp + 0x40]
add ebp, esi
add ebx, esi
sub ecx, esi
mov dword [esp + 0x40], ecx
jne 0x100283ff
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov esi, 0x1015d8c8
push esi
call fcn.1004dfda
cmp dword [0x1015d8c8], 0xffffffff
pop ecx
jne 0x100283de
call fcn.1002850c
push esi
mov dword [0x1015d8c4], eax
call fcn.1004df90
pop ecx
jmp 0x100283de

Function at 0x1002850c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x100ce650]
sub esp, 0x24
cmp eax, 0xffffffff
jne 0x1002852e
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [0x100ce650], eax
leave
ret
Function at 0x10028530
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword fs:[0x2c]
sub esp, 0x24
mov ecx, dword [0x10193ad4]
push ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1015d8c0]
push ebp
push esi
push edi
cmp eax, dword [ecx + 4]
jg 0x10028647
mov ebx, dword [esp + 0x38]
xor edi, edi
and dword [esp + 0x10], 0
inc edi
and dword [esp + 0x38], 0
mov ebp, dword [esp + 0x40]
test ebp, ebp
je 0x1002863d
mov esi, dword [0x1015d8bc]
xor edx, edx
mov eax, ebx
mov dword [esp + 0x40], 1
div esi
sub esi, edx
cmp ebp, esi
cmovle esi, ebp
test ebx, ebx
je 0x100285d5
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100285d5
cmp dword [esp + 0x28], 0x1000
jne 0x100285d5
test byte [esp + 0x2c], 0xcc
je 0x100285d5
mov ecx, dword [esp + 0x24]
cmp esi, ecx
ja 0x100285d5
mov eax, ebx
sub ecx, esi
sub eax, dword [esp + 0x18]
cmp eax, ecx
jbe 0x100285f4
lea eax, [esp + 0x10]
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100285ec
xor edi, edi
jmp 0x10028606
mov dword [esp + 0x38], 1
push esi
push dword [esp + 0x40]
push ebx
call fcn.100500c0
mov edi, dword [esp + 0x4c]
add esp, 0xc
cmp dword [esp + 0x38], 0
je 0x1002862f
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1002862f
push ebx
push str.__page_write___could_not_restore_original_permissions_for_ptr__p
call fcn.1004c6ea
pop ecx
pop ecx
add dword [esp + 0x3c], esi
add ebx, esi
sub ebp, esi
jne 0x10028574
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov esi, 0x1015d8c0
push esi
call fcn.1004dfda
cmp dword [0x1015d8c0], 0xffffffff
pop ecx
jne 0x10028557
call fcn.1002850c
push esi
mov dword [0x1015d8bc], eax
call fcn.1004df90
pop ecx
jmp 0x10028557
Function at 0x1003bbba
Capabilities:
Terminate process

Disassembly:
mov edx, dword [esp + 4]
mov cl, byte [edx]
test cl, cl
je 0x1003bbf6
cmp byte [edx + 1], 0
jne 0x1003bbe6
cmp cl, 0x61
jl 0x1003bbdb
cmp cl, 0x7a
jg 0x1003bbdb
movsx eax, cl
sub eax, 0x20
ret
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x1003bbe6
movsx eax, cl
ret
cmp cl, 0x26
jne 0x1003bbf6
lea eax, [edx + 1]
push eax
call fcn.1003bc54
pop ecx
ret
mov eax, dword [0x100d10b4]
xor ecx, ecx
push ebx
push esi
jmp 0x1003bc34
mov esi, edx
mov bl, byte [eax]
cmp bl, byte [esi]
jne 0x1003bc23
test bl, bl
je 0x1003bc1f
mov bl, byte [eax + 1]
cmp bl, byte [esi + 1]
jne 0x1003bc23
add eax, 2
add esi, 2
test bl, bl
jne 0x1003bc03
xor eax, eax
jmp 0x1003bc28
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003bc4b
mov eax, dword [ecx*8 + 0x100d10bc]
inc ecx
test eax, eax
jne 0x1003bc01
push edx
push str.Unknown_key:__s
call fcn.1004c6ea
pop ecx
pop ecx
or eax, 0xffffffff
pop esi
pop ebx
ret
mov eax, dword [ecx*8 + 0x100d10b0]
jmp 0x1003bc48

Function at 0x1003c4ba
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
sub ecx, eax
push 3
pop edx
movss xmm0, dword [ecx + eax]
xorps xmm0, xmmword [0x1007adb0]
movss dword [eax], xmm0
lea eax, [eax + 4]
sub edx, 1
jne 0x1003c4c7
ret
Function at 0x100413f4
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1fc
push ebp
push esi
push str.LoadSpriteTexture__
call fcn.1004cccc
pop ecx
mov ecx, dword [0x1018dccc]
xor ebp, ebp
mov esi, ebp
test ecx, ecx
je 0x1004141b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x1018dcc8]
mov edx, 0x100
push ebp
push 0x1018dccc
push 1
push 0x15
push ebp
push 1
push edx
mov dword [0x1018dccc], ebp
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x5c]
test eax, eax
jns 0x1004144b
push str.Failed_to_create_sprite_texture_
jmp 0x100414af
push str.burak.raw
push 0x10193668
push str._s_burak_s
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.100064dc
lea eax, [esp + 0x24]
push 0x10078d94
push eax
call fcn.1005ccb6
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x10041493
lea eax, [esp + 0x10]
push eax
push str.Failed_to_open__s_
call fcn.1004c6ea
pop ecx
jmp 0x100414b4
mov eax, dword [0x1018dccc]
lea edx, [esp + 8]
push ebp
push ebp
push edx
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0x4c]
test eax, eax
jns 0x100414d8
push str.Failed_to_lock_texture_
call fcn.1004c6ea
pop ecx
mov ecx, dword [0x1018dccc]
test ecx, ecx
je 0x100414cb
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x1018dccc], ebp
test esi, esi
je 0x10041542
push esi
call fcn.100542a1
pop ecx
jmp 0x10041542
push ebx
push edi
mov edi, dword [esp + 0x14]
push 0x78
pop ebx
push esi
push 1
lea eax, [esp + 0x124]
push 0xf0
push eax
call fcn.10054b30
add esp, 0x10
lea edx, [edi + 2]
mov cl, byte [esp + ebp + 0x11c]
mov al, cl
shl cl, 5
and al, 0xf8
mov byte [edx + 1], cl
inc ebp
mov byte [edx - 2], al
mov byte [edx - 1], al
mov byte [edx], al
lea edx, [edx + 4]
cmp ebp, 0xf0
jl 0x100414fc
add edi, dword [esp + 0x10]
push 0
pop ebp
sub ebx, 1
jne 0x100414e1
mov eax, dword [0x1018dccc]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
push esi
call fcn.100542a1
pop ecx
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x1fc
ret
Function at 0x10042d7a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push str.renderObjectTexts__
call fcn.1004cccc
xor esi, esi
push esi
push 0xffffffffffffffff
call fcn.1002880a
mov ecx, dword [0x1014d750]
add esp, 0xc
mov ebx, eax
cmp dword [ecx + 0xef2d], esi
jne 0x10042f1f
test ebx, ebx
je 0x10042f1f
mov ecx, dword [0x1017eec0]
mov ecx, dword [ecx + 0x3de]
cmp dword [ecx + 0x14], esi
je 0x10042f1f
push 9
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x10042de3
cmp dword [0x10162707], esi
jne 0x10042f1f
mov eax, dword [0x1017eed8]
cmp dword [eax], esi
jne 0x10042f1f
push edi
mov edi, 0x20d4
mov eax, dword [0x1017eec0]
mov eax, dword [eax + 0x3de]
mov eax, dword [eax + 0x14]
cmp dword [edi + eax - 0x20d0], 1
jne 0x10042f0e
mov eax, dword [edi + eax]
test eax, eax
je 0x10042f0e
mov eax, dword [eax + 0x40]
test eax, eax
je 0x10042f0e
mov eax, dword [eax + 0x14]
lea ecx, [ebp - 0x10]
push ecx
add eax, 0x30
push eax
call fcn.1003c448
lea eax, [ebp - 0x10]
push eax
call fcn.1003c53e
add esp, 0xc
test eax, eax
jne 0x10042f0e
mov eax, dword [ebx + 0x14]
add eax, 0x30
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.1003c458
fstp dword [ebp - 4]
movss xmm0, dword [ebp - 4]
comiss xmm0, dword [0x101798df]
pop ecx
pop ecx
ja 0x10042f0e
movss xmm0, dword [ebp - 0x10]
lea eax, [ebp - 0x28]
movss dword [ebp - 0x1c], xmm0
movss xmm0, dword [ebp - 0xc]
push eax
movss dword [ebp - 0x18], xmm0
lea eax, [ebp - 0x1c]
movss xmm0, dword [ebp - 8]
push eax
movss dword [ebp - 0x14], xmm0
call fcn.10002890
movss xmm0, dword [0x10075d60]
comiss xmm0, dword [ebp - 0x20]
pop ecx
pop ecx
ja 0x10042f0e
mov eax, dword [0x1017eec0]
mov eax, dword [eax + 0x3de]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x40]
movzx eax, word [eax + 0x22]
push eax
push esi
push str.Object:__d__ModelID:__d
lea eax, [ebp - 0x48]
push 0x1f
push eax
call fcn.1003fefb
movss xmm0, dword [ebp - 0x24]
lea eax, [ebp - 0x48]
subss xmm0, dword [0x1007b5f8]
add esp, 0x14
push eax
push 0xffc8c800
push ecx
push ecx
mov ecx, dword [0x1018de2c]
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x28]
movss dword [esp], xmm0
call fcn.1003fb44
add edi, 4
inc esi
cmp edi, 0x41a4
jl 0x10042df6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100430a3
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x48
push ebp
push str.renderPickupTexts__
call fcn.1004cccc
mov eax, dword [0x1014d750]
xor ebp, ebp
pop ecx
cmp dword [eax + 0xef2d], ebp
jne 0x1004324a
mov eax, dword [0x1017eec0]
mov eax, dword [eax + 0x3de]
cmp dword [eax + 0x10], ebp
je 0x1004324a
push ebx
push ebp
push 0xffffffffffffffff
call fcn.1002880a
pop ecx
pop ecx
push 9
mov ebx, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x100430ff
cmp dword [0x10162707], ebp
jne 0x10043249
mov eax, dword [0x1017eed8]
cmp dword [eax], ebp
jne 0x10043249
test ebx, ebx
je 0x10043249
push esi
push edi
mov edi, ebp
mov esi, ebp
mov eax, dword [0x1017eec0]
mov eax, dword [eax + 0x3de]
mov eax, dword [eax + 0x10]
cmp dword [eax + esi + 0xf004], ebp
je 0x10043237
cmp dword [eax + esi + 0xf008], ebp
je 0x10043237
lea ecx, [esp + 0x14]
add eax, 0xf00c
push ecx
add eax, esi
push eax
call fcn.1003c448
lea eax, [esp + 0x1c]
push eax
call fcn.1003c53e
add esp, 0xc
test eax, eax
jne 0x10043237
mov eax, dword [ebx + 0x14]
add eax, 0x30
push eax
lea eax, [esp + 0x18]
push eax
call fcn.1003c458
fstp dword [esp + 0x18]
movss xmm0, dword [esp + 0x18]
comiss xmm0, dword [0x101798d7]
pop ecx
pop ecx
ja 0x10043237
movss xmm0, dword [esp + 0x14]
lea eax, [esp + 0x2c]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0x18]
push eax
movss dword [esp + 0x28], xmm0
lea eax, [esp + 0x24]
movss xmm0, dword [esp + 0x20]
push eax
movss dword [esp + 0x30], xmm0
call fcn.10002890
movss xmm0, dword [0x10075d60]
comiss xmm0, dword [esp + 0x3c]
pop ecx
pop ecx
ja 0x10043237
mov eax, dword [0x1017eec0]
mov eax, dword [eax + 0x3de]
mov eax, dword [eax + 0x10]
push dword [eax + esi + 0xf004]
lea eax, [esp + 0x3c]
push edi
push str.Pickup:__d__ModelID:__d
push 0x1f
push eax
call fcn.1003fefb
movss xmm0, dword [esp + 0x44]
lea eax, [esp + 0x4c]
subss xmm0, dword [0x1007b5f8]
add esp, 0x14
push eax
push 0xff00c800
push ecx
push ecx
mov ecx, dword [0x1018de2c]
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x3c]
movss dword [esp], xmm0
call fcn.1003fb44
add esi, 0x14
inc edi
cmp esi, 0x14000
jl 0x1004311a
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x48
ret

Function at 0x10044c0e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push str.getFPS__
call fcn.1004cccc
inc dword [0x1018de04]
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, 0xf0
cmp eax, dword [0x1018de3c]
jbe 0x10044ca7
mov eax, dword [0x1018de04]
movss xmm2, dword [0x1018ddf8]
movss xmm3, dword [0x1018ddfc]
movss xmm0, dword [0x1018ddf4]
shl eax, 2
and dword [0x1018de04], 0
movss dword [0x1018ddfc], xmm2
addss xmm2, xmm3
movss dword [0x1018de00], xmm3
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [0x1018ddf8], xmm0
movss dword [0x1018ddf4], xmm1
addss xmm1, xmm0
addss xmm1, xmm2
mulss xmm1, dword [0x1007b56c]
movss dword [0x1018ddf0], xmm1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1018de3c], eax
fld dword [0x1018ddf0]
ret
Function at 0x10044cae
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push str.mapMenuTeleport__
call fcn.1004cccc
cmp dword [0x101798ef], 0
pop ecx
je 0x10044cd5
cmp byte [0xba68a5], 5
jne 0x10044d7e
cmp dword [0xba6774], 0
je 0x10044d7e
push dword [0x101798eb]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, 0x10000
je 0x10044d7e
cmp dword [0x10193884], 0
je 0x10044d7e
push esi
push edi
mov esi, 0xba8720
mov edi, 0xaf
mov eax, 0x1203
cmp word [esi + 0x1d], ax
jne 0x10044d74
push 0
call fcn.10028b6d
movss xmm0, dword [esi]
pop ecx
mov ecx, dword [0x10193884]
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [esi + 4]
movss dword [ebp - 8], xmm0
mov eax, dword [ecx]
call dword [eax + 0x38]
movss xmm0, dword [ebp - 8]
push ecx
push ecx
mov edx, dword [eax]
mov ecx, eax
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0xc]
movss dword [esp], xmm0
call dword [edx + 0x18]
fadd dword [0x1007b5d8]
lea eax, [ebp - 0xc]
push 0
push eax
fstp dword [ebp - 4]
call fcn.1002d0f3
pop ecx
pop ecx
add esi, 0x28
sub edi, 1
jne 0x10044d0f
pop edi
pop esi
leave
ret
Function at 0x1004ca1a
Capabilities:
Create process on windows
Get common file path
Schedule task via at

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push edi
push str.init__
call fcn.1004cccc
cmp dword [0x10193650], 0
pop ecx
jne 0x1004cbc4
push 0xe4
mov edi, 0x10193668
push edi
push dword [0x10193660]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor ebx, ebx
test eax, eax
je 0x1004ca76
push 0x5c
push edi
call fcn.100525d0
pop ecx
pop ecx
test eax, eax
je 0x1004ca76
push 0x5c
push edi
call fcn.100525d0
pop ecx
pop ecx
mov byte [eax], bl
jmp 0x1004ca7f
push 0x2e
pop eax
mov word [0x10193668], ax
push esi
push str.burak
push str.Initializing__s
call fcn.1004c6ea
push 0x789
push str.Jul_16_2023_22:29:23
push str.Compiled:__s_CL:_d
call fcn.1004c6ea
mov eax, dword [0xc9ac08]
add esp, 0x14
mov dword [0x10193894], eax
mov ecx, dword [0xc9ac0c]
mov dword [0x10193898], ecx
mov edx, dword [0xc9ac10]
mov dword [0x1019389c], edx
mov esi, dword [0xc9ac14]
mov dword [0x101938a0], esi
push ecx
push edx
push esi
cmp eax, 2
jne 0x1004cae3
push str.OS:_Windows_Version__d._d._d
jmp 0x1004cae8
push str.OS:_Not_Windows___d._d._d_
call fcn.1004c6ea
add esp, 0x10
call fcn.1003b66f
pop esi
cmp dword [0x1015de90], ebx
jne 0x1004cb30
push ebx
push str.Youre_a_retard.
push str.Looks_like_youve_not_edited_the_.ini_file_like_you_were_told_to__n_nBefore_you_can_use_mod_sa__you_have_to_set__i_have_edited_the_ini_fqle__to_true._nWe_did_this_so_you_would_read_the_INI_file_to_see_the_configurability_of_mod_sa._n
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 5
push edi
push str.burak_burak.ini
push str.notepad
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
jmp 0x1004cbc7
call fcn.1003d601
push 0xfa
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea eax, [ebp - 0x104]
push 0x100875c8
push eax
call fcn.1002aacb
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x10193650], eax
test eax, eax
jne 0x1004cb8b
lea eax, [ebp - 0x104]
push eax
push str.Failed_to_load__s
call fcn.1004c6ea
pop ecx
pop ecx
jmp 0x1004cb29
push 0x100875e8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1018ddb4], eax
test eax, eax
jne 0x1004cbc4
lea eax, [ebp - 0x104]
push eax
push str._s_does_not_export_Direct3DCreate9__
call fcn.1004c6ea
pop ecx
pop ecx
push dword [0x10193650]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1004cb29
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret

Function at 0x10062a9d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10062913
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x4ab1df]
shl eax, 2
mov dword [0x4ab1e3], eax
push edi
push ecx
xor eax, eax
mov edi, 0x4d0c50
mov ecx, 0x4d6124
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
push 0
call fcn.00499083
pop ecx
push 0x4ab1a8
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x4ab1e7], eax
push 0
jmp fcn.004a7220

Function at 0x4063f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov eax, 0x4abd84
push ebx
push esi
mov esi, 0x4abc14
call fcn.0049af0c
mov word [ebp - 0x18], 8
mov edx, dword [ebp + 8]
add edx, 6
push edx
call fcn.004a7930
pop ecx
inc dword [ebp - 0xc]
cmp dword [esi], 0
jne 0x40650e
mov ecx, dword [0x4abc18]
shl ecx, 2
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
add ecx, 4
push ecx
call fcn.004a4fc0
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40647b
mov word [ebp - 0x18], 0x20
push 0x407434
push 1
push 0x4073d8
push 0x211
mov eax, dword [0x4abc18]
push eax
push 0x3c
mov edx, dword [ebp - 4]
push edx
call fcn.004a5200
mov word [ebp - 0x18], 0x14
add esp, 0x1c
jmp 0x40647e
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov word [ebp - 0x18], 8
xor eax, eax
jmp 0x4064a6
mov edx, eax
shl edx, 4
sub edx, eax
mov ecx, dword [esi]
xor ebx, ebx
mov dword [ecx + edx*4 + 0x14], ebx
push ebx
pop ebx
mov dword [ecx + edx*4 + 0x10], ebx
xor ebx, ebx
mov dword [ecx + edx*4 + 0x38], ebx
inc eax
cmp eax, dword [0x4abc18]
jl 0x40648a
mov eax, dword [0x4abc18]
inc eax
shl eax, 2
push eax
call fcn.004a4fc0
pop ecx
mov dword [0x4abc20], eax
push 0
push 0
push 0
push 0
call sub.KERNEL32.dll_CreateEventA
mov edx, dword [0x4abc20]
mov dword [edx], eax
push 0x4d0e50
call sub.KERNEL32.dll_InitializeCriticalSection
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0
push 0x407278
push 0
push 0
call sub.KERNEL32.dll_CreateThread
mov ebx, eax
mov dword [0x4abc24], ebx
test ebx, ebx
jne 0x40650e
mov dword [0x4abc1c], 0xa
mov eax, dword [ebp + 8]
mov byte [eax], 0
mov edx, dword [ebp + 8]
mov byte [edx + 1], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 2], 0xffffffff
mov eax, dword [ebp - 0x28]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406780
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov eax, 0x4abe70
push ebx
call fcn.0049af0c
cmp dword [0x4abc14], 0
je 0x406831
push 0
mov edx, dword [0x4abc24]
push edx
call sub.KERNEL32.dll_TerminateThread
push 0x4d0e50
call sub.KERNEL32.dll_DeleteCriticalSection
mov ecx, dword [0x4abc20]
mov eax, dword [ecx]
push eax
call sub.KERNEL32.dll_CloseHandle
xor ebx, ebx
jmp 0x4067f1
mov eax, ebx
shl eax, 4
sub eax, ebx
mov edx, dword [0x4abc14]
mov eax, dword [edx + eax*4 + 0x38]
test eax, eax
je 0x4067f0
mov edx, ebx
mov ecx, dword [0x4abc14]
shl edx, 4
push eax
sub edx, ebx
call sub.KERNEL32.dll_FindCloseChangeNotification
inc ebx
cmp ebx, dword [0x4abc18]
jl 0x4067c8
mov eax, dword [0x4abc14]
mov dword [ebp - 4], eax
mov word [ebp - 0x18], 0x14
push 0x407434
push 0x19
push 0
push 0x3c
mov edx, dword [ebp - 4]
push edx
call fcn.004a50d8
add esp, 0x14
mov word [ebp - 0x18], 8
mov ecx, dword [0x4abc20]
push ecx
call fcn.004a4f68
pop ecx
xor eax, eax
mov dword [0x4abc14], eax
xor edx, edx
mov dword [0x4abc20], edx
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40db78
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push 5
mov eax, dword [ebx + 0x14]
push eax
call sub.USER32.dll_ShowWindow
mov edx, dword [ebx + 0x14]
push edx
call sub.USER32.dll_BringWindowToTop
push 0
push 0
push 0xc5
mov ecx, dword [ebx + 0x14]
push ecx
call sub.USER32.dll_SendMessageA
push 0
mov eax, dword [ebx + 0x18]
push eax
push 0x30
mov edx, dword [ebx + 0x14]
push edx
call sub.USER32.dll_SendMessageA
push 1
push ebx
call fcn.0040dbc4
add esp, 8
pop ebx
pop ebp
ret

Function at 0x413f2c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd38
mov eax, 0x4ae93c
push ebx
push esi
push edi
mov esi, str.Serv_U___d_
mov edi, dword [ebp + 0xc]
call fcn.0049af0c
push edi
call fcn.00407b90
pop ecx
mov ebx, 1
push ebx
lea eax, [esi + 0x488]
push eax
lea edx, [esi + 0x483]
push edx
lea ecx, [ebp - 0xc8]
push ecx
call fcn.0049d914
add esp, 0x10
lea eax, [ebp - 0x2c8]
lea edx, [esi + 0x48d]
lea ecx, [ebp - 0xc8]
push 0x4ae19c
push pe_nt_image_headers32
push eax
push edx
push ecx
lea eax, [esi + 0x47c]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edx, [esi + 0x48d]
push edx
lea ecx, [ebp - 0x2c8]
push ecx
call sub.KERNEL32.dll_lstrcmpA
test eax, eax
je 0x413ff6
mov word [ebp - 0x18], 8
lea eax, [ebp - 0x2c8]
push eax
lea edx, [ebp - 4]
push edx
call fcn.004a79d0
add esp, 8
inc dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
push edi
call fcn.0040773c
add esp, 8
dec dword [ebp - 0xc]
push 2
lea eax, [ebp - 4]
push eax
call fcn.004a8304
add esp, 8
inc ebx
jmp 0x413f56
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41675c
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x416776
mov edi, 1
jmp 0x416778
xor edi, edi
cmp dword [0x4ae198], 1
jne 0x416862
push str.KERNEL32.DLL
call sub.KERNEL32.dll_LoadLibraryA
mov esi, eax
push str.RegisterServiceProcess
push esi
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 4], eax
test eax, eax
je 0x4167a9
push edi
push 0
call dword [ebp - 4]
push esi
call sub.KERNEL32.dll_FreeLibrary
mov eax, ebx
test ebx, ebx
mov dword [0x4ae194], eax
je 0x41682d
push pe_nt_image_headers32
lea edx, [ebp - 0x20c]
push edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x5a]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
lea edx, [ebp - 0xc]
lea ecx, [ebp - 8]
push edx
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
push 0x80000002
call sub.ADVAPI32.dll_RegCreateKeyExA
test eax, eax
jne 0x416862
lea eax, [ebp - 0x20c]
push eax
call fcn.004987e8
pop ecx
inc eax
push eax
lea edx, [ebp - 0x20c]
push edx
push 1
push 0
push str.Serv_U
mov ecx, dword [ebp - 8]
push ecx
call sub.ADVAPI32.dll_RegSetValueExA
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegCloseKey
jmp 0x416862
lea edx, [ebp - 8]
push edx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x416862
push str.Serv_U
mov ecx, dword [ebp - 8]
push ecx
call sub.ADVAPI32.dll_RegDeleteValueA
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegCloseKey
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret