joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ea0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x40b3e0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x405ec4
add eax, 8
inc ebp
cmp eax, 0x40b470
jb 0x405eb5
cmp ecx, dword [ebp*8 + 0x40b3e0]
jne 0x40606b
mov eax, dword [0x40c0b8]
cmp eax, 1
je 0x40602d
test eax, eax
jne 0x405ef0
cmp dword [0x409218], 1
je 0x40602d
cmp ecx, 0xfc
je 0x40606b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405f2b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x405f74
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4084b8
add ebx, ecx
push ebx
call fcn.00407220
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x408498
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40b3e4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00407190
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40d4c0]
test eax, eax
je 0x40603e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x406048
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40b3e4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x407430
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00407bd0
mov eax, dword [0x40d5c0]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x407592
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x40d4c0]
test byte [edx + ecx*8 + 4], 1
je 0x407592
push 1
push ebp
push ebx
call fcn.00406490
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x40759c
push 2
push ebp
push ebx
call fcn.00406490
add esp, 0xc
cmp eax, 0xffffffff
je 0x40759c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x407538
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00407b50
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x4074df
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.004040f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4074fb
sub esi, eax
test esi, esi
jle 0x407511
jmp 0x4074d0
cmp dword [0x40c0e8], 5
jne 0x40750e
mov dword [0x40c0e4], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00407b50
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00406490
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x407579
push 0
push ecx
push ebx
call fcn.00406490
add esp, 0xc
push ebx
call fcn.00406300
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x407579
mov dword [0x40c0e4], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40c0e8], eax
push 0
push edi
push ebx
call fcn.00406490
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x40c0e4], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x401541
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60c
mov eax, dword [0x450024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x445558
call fcn.00402084
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [esi + 0x2210]
mov dword [esi + 0x220c], eax
push 0x450a18
push ecx
call fcn.0040f095
push 0x4453dc
call fcn.0040241c
add esp, 0xc
test eax, eax
jne 0x4015af
push 0x451e18
push dword [0x453430]
push str._s__s
push esi
call fcn.0040303f
add esp, 0x10
jmp 0x4015f4
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x60c]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [0x453430]
call fcn.00410d22
push 0x451e18
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x40c]
push eax
push str._s_s__s
push esi
call fcn.0040303f
add esp, 0x28
push str.realtime
call fcn.0040241c
pop ecx
test eax, eax
je 0x40160f
mov dword [esi + 0x2208], 0x100
jmp 0x401645
push str.high
call fcn.0040241c
pop ecx
test eax, eax
je 0x40162a
mov dword [esi + 0x2208], 0x80
jmp 0x401645
push str.idle
call fcn.0040241c
neg eax
pop ecx
sbb eax, eax
and eax, 0x20
add eax, 0x20
mov dword [esi + 0x2208], eax
push str.nowait
call fcn.0040241c
mov dword [esi + 0x2418], eax
pop ecx
test edi, edi
je 0x401669
lea eax, [esi + 0x2000]
push edi
push eax
call fcn.0040f095
pop ecx
pop ecx
push esi
push dword [0x453420]
mov esi, 0x452818
push str._s_:__s
push esi
call fcn.0040303f
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.00403c9c
leave
ret

Function at 0x4019bc
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x450024]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x4453dc
call fcn.0040241c
pop ecx
test eax, eax
jne 0x4019e1
inc eax
jmp 0x401a42
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [0x453430]
call fcn.00410d22
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x40c]
push eax
push dword [0x453420]
lea eax, [ebp - 0x614]
push 0x4453e0
push eax
call fcn.0040303f
add esp, 0x28
lea eax, [ebp - 0x614]
push 0
push eax
push dword [0x453430]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403c9c
leave
ret
Function at 0x401a4e
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x450024]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x445440
mov esi, eax
push 0x65
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x401b0e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push str.RemoteExecM1Svc.exe
push dword [0x453420]
mov edi, eax
lea eax, [ebp - 0x20c]
push str._sADMIN__s
push eax
call fcn.0040303f
add esp, 0x10
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401b0e
push 0
lea eax, [ebp - 0x210]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x210], edi
sete al
jmp 0x401b10
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403c9c
leave
ret

Function at 0x401b56
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x450024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
push eax
push ecx
lea eax, [ebp - 0x20c]
push 0x445360
push eax
call fcn.0040303f
add esp, 0x10
xor ebx, ebx
xor esi, esi
inc ebx
push esi
cmp dword [ebp + 0x10], esi
je 0x401c68
push dword [0x453428]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x228], esi
push dword [0x453424]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x22c]
push eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x210], esi
call sub.MPR.dll_WNetAddConnection2W
mov ecx, eax
sub eax, 5
je 0x401be8
sub eax, 0x51
je 0x401be8
sub eax, 0x46d
je 0x401be8
sub eax, 0x6b
jne 0x401c77
cmp dword [0x453428], esi
je 0x401c77
cmp dword [0x453424], esi
jne 0x401c77
push edi
push str.Invalid_password_n_n
mov edi, 0x4452fc
push edi
push ebx
call fcn.00410fb1
pop ecx
push eax
call fcn.004030e7
push ebx
call fcn.00410fb1
push eax
call fcn.00422e62
push ebx
call fcn.00402a0d
add esp, 0x18
push str.Connecting_to_remote_service_...
push edi
push ebx
call fcn.00410fb1
pop ecx
push eax
call fcn.004030e7
push ebx
call fcn.00410fb1
push eax
call fcn.00422e62
add esp, 0x14
lea eax, [ebp - 0x22c]
push esi
push dword [0x453428]
push dword [0x453424]
push eax
call sub.MPR.dll_WNetAddConnection2W
pop edi
jmp 0x401c75
push esi
lea ecx, [ebp - 0x20c]
push ecx
call sub.MPR.dll_WNetCancelConnection2W
mov ecx, eax
test ecx, ecx
jne 0x401c7f
mov eax, ebx
jmp 0x401c88
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00403c9c
leave
ret
Function at 0x401c96
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x242c
call fcn.00403d10
mov eax, dword [0x450024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x241c
lea eax, [ebp - 0x2420]
xor edi, edi
push esi
push edi
push eax
mov dword [ebp - 0x2424], edi
call fcn.00404d10
push 8
lea eax, [ebp - 0x242c]
push edi
push eax
call fcn.00404d10
lea eax, [ebp - 0x2420]
push eax
call fcn.00401541
add esp, 0x1c
lea eax, [ebp - 0x2424]
push edi
push eax
push esi
lea eax, [ebp - 0x2420]
push eax
push dword [0x45000c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x3e8
push 5
call fcn.0040169b
pop ecx
pop ecx
test eax, eax
je 0x401d5d
push 0x445640
push 0x4452fc
push 1
call fcn.00410fb1
pop ecx
push eax
call fcn.004030e7
push 1
call fcn.00410fb1
push eax
call fcn.00422e62
add esp, 0x14
lea eax, [ebp - 0x2424]
push edi
push eax
push 8
lea eax, [ebp - 0x242c]
push eax
push dword [0x45000c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x401d85
push str.Failed_n_n
push 0x4452fc
push 1
call fcn.00410fb1
pop ecx
push eax
call fcn.004030e7
push 1
call fcn.00410fb1
push eax
call fcn.00422e62
add esp, 0x14
mov eax, dword [ebp - 0x242c]
pop edi
pop esi
test eax, eax
jne 0x401da4
push dword [ebp - 0x2428]
push dword [ebp - 0x2428]
push str._nRemote_command_returned__d_0x_X__n
jmp 0x401dab
push eax
push eax
push str._nRemote_command_failed_to_start._Returned_error_code_is__d_0x_X__n
call fcn.0040378e
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
add esp, 0xc
inc eax
call fcn.00403c9c
leave
ret

Function at 0x401dc2
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RemoteExecM1Coms
mov esi, eax
push 0x66
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x401e6a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, 0x453218
mov edi, eax
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push str.ProcComs.bin
push esi
push 0x445360
push esi
call fcn.0040303f
add esp, 0x10
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401e6a
push 0
lea eax, [ebp - 4]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 4], edi
sete al
jmp 0x401e6c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40248c
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor esi, esi
push eax
push 8
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4024b6
call fcn.00402a77
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push 2
push dword [ebp - 8]
call esi
push dword [ebp - 4]
call fcn.0041011c
mov edi, eax
mov dword [ebp - 0x10], edi
pop ecx
test edi, edi
jne 0x4024e3
call fcn.00402a77
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 2
push dword [ebp - 8]
call esi
test eax, eax
jne 0x4024fb
call fcn.00402a77
call fcn.00401e8a
mov ecx, dword [edi]
lea esi, [edi + 4]
mov dword [ebp - 0xc], eax
lea ebx, [ecx*8 + 4]
add ebx, edi
cmp ebx, esi
je 0x402531
mov edi, eax
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40252b
add esi, 8
cmp ebx, esi
jne 0x402517
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push edi
call fcn.00410101
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp ebx, esi
pop edi
pop esi
setne al
pop ebx
leave
ret

Function at 0x4028f9
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
push esi
push esi
push 0x4026ed
call fcn.00423174
push esi
push esi
push 0x4025fc
call fcn.00423174
push esi
push esi
push 0x402857
call fcn.00423174
add esp, 0x24
pop esi
ret

Function at 0x402caf
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push edi
push 0xc
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.00404d10
push 0x44
mov dword [ebp - 0xc], esi
lea eax, [ebp - 0x60]
pop esi
push esi
push edi
push eax
mov dword [ebp - 4], 1
call fcn.00404d10
push 0x10
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x60], esi
push edi
push eax
call fcn.00404d10
mov eax, dword [0x450014]
add esp, 0x24
mov dword [ebp - 0x28], eax
mov eax, dword [0x450010]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402d29
call fcn.00402a77
xor eax, eax
jmp 0x402d47
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x18]
call esi
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x402f35
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0xf003f
xor esi, esi
push esi
push dword [0x453420]
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x402fb6
push edi
push 0xf01ff
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x402fae
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x402fa7
jmp 0x402f7e
cmp eax, 2
jne 0x402f9e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x453434
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
mov eax, dword [0x453438]
jne 0x402f79
xor ecx, ecx
inc ecx
cmp eax, 4
cmove esi, ecx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x402fbc
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push edi
push 0xf003f
push 0
push dword [0x453420]
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x403036
push esi
push 0xf01ff
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x40302e
push 0x453434
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x403027
jmp 0x40300c
cmp dword [0x453438], 3
jne 0x403027
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x453434
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x403003
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
pop ebp
ret
Function at 0x42edd3
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042eca7

Function at 0x431706
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004310c4

Function at 0x4368b3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004364ab

Function at 0x4368be
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00436635
Function at 0x4190d9
Capabilities:
Terminate process

Disassembly:
push ebp
push ebx
push edi
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
call fcn.00436020
mov dword [0x43b001], 0x175
mov dword [0x43b001], 0x176
call fcn.00435e80
push eax
push str.fxgame.exe
lea ebp, [0x47e460]
push dword [ebp]
call fcn.004185ca
mov edx, 0x43b44a
call fcn.00435ea0
lea eax, [esp + 4]
push eax
call fcn.00435f00
mov dword [0x43b001], 0x177
push 0x43b44a
push dword [esp + 4]
call fcn.0041ef40
mov dword [esp + 4], eax
mov dword [0x43b001], 0x178
mov ebx, dword [esp + 4]
cmp ebx, 1
jne 0x419183
push dword [esp]
call fcn.0041e510
push edx
push eax
pop ebx
pop edi
cmp ebx, 0
jne 0x41916f
cmp edi, 0
je 0x419173
xor eax, eax
jmp 0x419178
mov eax, 1
or eax, eax
je 0x419183
mov eax, 1
jmp 0x419185
xor eax, eax
and eax, eax
je 0x41919b
mov dword [0x43b001], 0x178
mov dword [esp + 4], 0
mov dword [0x43b001], 0x178
mov dword [esp + 8], 1
mov dword [0x43b001], 0x179
mov eax, dword [esp + 4]
cmp eax, dword [esp + 8]
jl 0x4192c0
mov dword [0x43b001], 0x17a
call fcn.00435e80
push eax
push eax
call fcn.00435e80
push eax
push 0x43b44a
push dword [esp + 0x18]
push dword [esp + 0x14]
call fcn.0041ecd0
call fcn.00435fd2
add dword [esp], edx
call fcn.0041e510
call fcn.00435ff0
mov dword [esp + 0xc], eax
mov dword [0x43b001], 0x17b
push dword [esp + 0xc]
push 0
push 1
call sub.KERNEL32.dll_OpenProcess
mov dword [esp + 0x10], eax
mov dword [0x43b001], 0x17c
mov ebx, dword [esp + 0x10]
and ebx, ebx
je 0x41928e
mov dword [0x43b001], 0x17d
push 1
push dword [esp + 0x14]
call sub.KERNEL32.dll_TerminateProcess
and eax, eax
je 0x419271
mov dword [0x43b001], 0x17e
mov dword [esp + 0x14], 1
mov dword [0x43b001], 0x17f
jmp 0x4192c0
mov dword [0x43b001], 0x180
mov dword [0x43b001], 0x181
push dword [esp + 0x10]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x43b001], 0x182
mov dword [0x43b001], 0x183
push 0x12c
call fcn.004213ee
mov dword [0x43b001], 0x184
inc dword [esp + 8]
jno 0x4191ad
mov dword [0x43b001], 0x186
call fcn.00435e80
push eax
push eax
mov edx, 0x43bb31
call fcn.00435ea0
call fcn.00435e80
push eax
push eax
mov eax, dword [esp + 0x14]
cdq
push edx
push eax
call fcn.0041e7d0
pop eax
mov edx, 0x43b371
call fcn.00435ea0
call fcn.00436160
push 0x43c384
call fcn.00435fd2
add dword [esp + 4], edx
call fcn.0041fef2
call fcn.00435ff0
mov dword [0x43b001], 0x187
xor eax, eax
push dword [esp]
call fcn.00436130
add esp, 0x18
pop edi
pop ebx
pop ebp
ret
Function at 0x41ac29
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
mov dword [0x43b001], 0x149
mov dword [0x43b001], 0x14a
lea ebp, [0x47e460]
movsx ebx, byte [ebp + 0x6e]
cmp ebx, 1
jne 0x41ada4
mov dword [0x43b001], 0x14b
push 8
push 0x43b185
push 0x43b185
push str.M9Y.bak
call fcn.004207f2
mov dword [0x43b001], 0x14c
lea ebp, [0x47e460]
mov dword [ebp + 0x40], 0
mov dword [esp], 1
mov dword [0x43b001], 0x14d
mov eax, 0xbb8
cmp eax, dword [esp]
jl 0x41ad14
mov dword [0x43b001], 0x14e
push 0
lea eax, [0x41be6e]
push eax
call sub.USER32.DLL_EnumWindows
mov dword [0x43b001], 0x14f
lea ebp, [0x47e460]
cmp dword [ebp + 0x40], 0
je 0x41ace7
mov dword [0x43b001], 0x14f
jmp 0x41ad14
mov dword [0x43b001], 0x14f
mov dword [0x43b001], 0x150
push 1
call fcn.004213ee
mov dword [0x43b001], 0x151
inc dword [esp]
jno 0x41ac96
mov dword [0x43b001], 0x152
lea ebp, [0x47e460]
cmp dword [ebp + 0x40], 0
je 0x41ad9a
mov dword [0x43b001], 0x153
lea ebp, [0x47e460]
push dword [ebp + 0x40]
call sub.USER32.DLL_SetForegroundWindow
mov dword [0x43b001], 0x154
push dword [ebp + 0x40]
call sub.USER32.DLL_SetActiveWindow
mov dword [0x43b001], 0x155
push 0
push 0
push 1
push 0xd
call sub.USER32.DLL_keybd_event
mov dword [0x43b001], 0x156
push 0
push 2
push 1
push 0xd
call sub.USER32.DLL_keybd_event
mov dword [0x43b001], 0x157
mov dword [0x43b001], 0x158
mov dword [0x43b001], 0x159
xor eax, eax
add esp, 4
pop ebx
pop ebp
ret

Function at 0x41caf8
Capabilities:
Get graphical window text

Disassembly:
xor eax, eax
push eax
call fcn.00436020
push dword [esp + 0xc]
call fcn.00435ff0
mov dword [0x43b001], 0x30000a5
mov dword [0x43b001], 0x30000a6
call fcn.00435e80
push eax
push eax
push 0xc8
call fcn.0041ef00
lea eax, [esp + 4]
push eax
call fcn.00435f00
mov dword [0x43b001], 0x30000a7
push 0xc8
mov eax, dword [esp + 4]
push eax
push dword [esp + 0x10]
call sub.USER32.DLL_GetWindowTextA
mov dword [0x43b001], 0x30000a8
mov edx, dword [esp]
call fcn.00435e80
push eax
call fcn.00435ea0
pop eax
push eax
call fcn.00435fc0
pop edx
add eax, edx
jmp 0x41cb8b
push dword [esp]
call fcn.00436130
add esp, 4
ret 4