joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408550
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x1408]
cmp eax, 0xffffffff
jne 0x4085b9
mov cl, byte [ebx + 0x1004]
lea eax, [ebx + 0x1004]
test cl, cl
jne 0x40857f
mov eax, 7
pop edi
mov dword [ebx + 0x1410], eax
pop esi
pop ebx
ret
push 0
push 0x80
push 3
push 0
push 1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4085c7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x4085c7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x4085de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413530
add esp, 4
mov dword [ebx + 0x1410], eax
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x4087b0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 0x1408]
cmp eax, 0xffffffff
je 0x4087eb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4087eb
mov eax, dword [esi + 0x1410]
test eax, eax
jne 0x4087e5
call edi
push eax
call fcn.00413530
add esp, 4
mov dword [esi + 0x1410], eax
mov al, byte [esp + 0xc]
mov dword [esi + 0x1408], 0xffffffff
test al, al
je 0x40883d
mov al, byte [esi + 0x140c]
test al, al
je 0x40883d
mov cl, byte [esi + 0x1004]
lea eax, [esi + 0x1004]
test cl, cl
je 0x40883d
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov eax, dword [esi + 0x1410]
jne 0x408843
test eax, eax
jne 0x408837
call edi
push eax
call fcn.00413530
add esp, 4
mov dword [esi + 0x1410], eax
mov eax, dword [esi + 0x1410]
pop edi
pop esi
ret 4

Function at 0x408855
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, ecx
lea eax, [esp + 4]
mov ecx, dword [esp + 0x10]
push 0
push eax
mov eax, dword [esi + 0x1408]
push ecx
push edx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4088b4
cmp dword [esi + 0x1408], 0xffffffff
jne 0x408898
mov dword [esi + 0x1410], 3
xor eax, eax
pop esi
pop ecx
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413530
add esp, 4
mov dword [esi + 0x1410], eax
xor eax, eax
pop esi
pop ecx
ret 8
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 8

Function at 0x4089c1
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], 0
mov al, byte [esi + 0x140d]
test al, al
jne 0x408a2e
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
push 0
push eax
mov eax, dword [esi + 0x1408]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408a2e
cmp dword [esi + 0x1408], 0xffffffff
jne 0x408a12
mov dword [esi + 0x1410], 3
xor eax, eax
pop esi
pop ecx
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413530
add esp, 4
mov dword [esi + 0x1410], eax
xor eax, eax
pop esi
pop ecx
ret 8
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 8
Function at 0x4094c0
Capabilities:
Copy file

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x1408], 0xffffffff
je 0x4094d3
mov eax, dword [esi]
push 0
call dword [eax + 8]
mov eax, dword [esp + 0xc]
test al, al
jne 0x4094fd
mov ecx, dword [esp + 8]
lea edx, [esi + 0x1004]
push ecx
push edx
call fcn.00418b40
add esp, 8
test eax, eax
je 0x409534
mov dword [esi + 0x1410], eax
pop esi
ret 8
and eax, 0xff
lea ecx, [esi + 0x1004]
push eax
mov eax, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40951f
xor eax, eax
pop esi
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413530
add esp, 4
mov dword [esi + 0x1410], eax
pop esi
ret 8
Function at 0x40b1c0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20
test eax, eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
jne 0x40b1e5
mov eax, dword [edi + 0x42c]
mov ecx, dword [edi + 0x428]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
mov al, byte [edi + 0x430]
test al, al
jne 0x40b201
mov edx, dword [esp + 0x34]
mov eax, dword [edi + 0x428]
cmp eax, edx
je 0x40b2e4
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call ebx
lea ecx, [esp + 0x10]
mov esi, eax
call sub.MFC42.DLL_CString::CString
cmp esi, 0xffffffff
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 0xa
mov dword [esp + 0x1c], 0xf
mov dword [esp + 0x20], 0x1e
mov dword [esp + 0x24], 0x32
mov dword [esp + 0x28], 0x64
mov dword [esp + 0x2c], 0
jne 0x40b2bd
lea ebp, [esp + 0x14]
mov eax, dword [ebp]
test eax, eax
je 0x40b2b8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call ebx
lea ecx, [esp + 0x10]
mov esi, eax
call sub.MFC42.DLL_CString::CString
add ebp, 4
cmp esi, 0xffffffff
je 0x40b274
jmp 0x40b2bd
cmp esi, 0xffffffff
je 0x40b2e4
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push edx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x34]
xor esi, esi
cmp eax, esi
je 0x40b2f8
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [edi + 0x428], esi
mov dword [edi + 0x42c], esi
mov byte [edi + 0x430], 0
mov dword [edi + 0x434], 0xffffffff
mov byte [edi + 0x438], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8

Function at 0x40b390
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0xc]
mov al, byte [esi]
test al, al
jne 0x40b3a9
test edi, edi
jne 0x40b3a9
pop edi
mov al, 1
pop esi
ret 4
test al, al
jne 0x40b3bc
push 0x404
push edi
push esi
call fcn.00411fe0
add esp, 0xc
push ebx
push 0
mov ecx, esi
call fcn.0040b190
push 0x190
mov bl, 1
push str.VERSION
push str.INIFILEVERSION
mov ecx, esi
mov byte [esp + 0x1c], al
mov byte [esi + 0x432], bl
call fcn.0040b7e0
push 0xf423f
push 0
push 0
push str.VERSION
push str.INIFILEVERSION
mov ecx, esi
call fcn.0040b580
cmp eax, 0x190
je 0x40b458
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40b421
and al, 0xfe
push eax
push edi
call fcn.00418c00
add esp, 8
push 0x190
push str.VERSION
push str.INIFILEVERSION
mov ecx, esi
call fcn.0040b7e0
push 0xf423f
push 0
push 0
push str.VERSION
push str.INIFILEVERSION
mov ecx, esi
call fcn.0040b580
cmp eax, 0x190
jne 0x40b470
push 0xc8
push str.VERSION
push str.INIFILEVERSION
mov ecx, esi
call fcn.0040b7e0
xor bl, bl
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
mov byte [esi + 0x432], 0
call fcn.0040b190
mov al, bl
pop ebx
pop edi
pop esi
ret 4
Function at 0x40f158
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x324
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, 1
mov eax, dword [esi + 0xf38]
xor ebp, ebp
cmp eax, edi
mov dword [esp + 0x14], 0xfeedf00d
mov dword [esp + 0x10], ebp
mov ebx, 0x12c
mov dword [esp + 0x18], ebp
jne 0x40f32f
mov eax, dword [esi + 0xf28]
cmp eax, 0xffffffff
je 0x40f26f
mov dword [esp + 0x234], eax
mov dword [esp + 0x130], eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x12c]
push eax
push ecx
lea edx, [esp + 0x238]
push ebp
push edx
push ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], 0x30d40
mov dword [esp + 0x244], edi
mov dword [esp + 0x140], edi
call sub.WSOCK32.dll_select
cmp eax, ebp
je 0x40f27a
jle 0x40f24e
mov ecx, dword [esi + 0xf28]
lea eax, [esp + 0x12c]
push eax
push ecx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x40f252
mov eax, dword [esi + 0xf28]
lea edx, [esp + 0x1c]
push edx
push 0x4004667f
push eax
mov dword [esp + 0x28], ebp
call sub.WSOCK32.dll_ioctlsocket
mov eax, dword [esp + 0x1c]
cmp eax, edi
jb 0x40f252
cmp eax, 0x100
push ebp
ja 0x40f234
mov edx, dword [esi + 0xf28]
lea ecx, [esp + 0x2c]
push eax
push ecx
push edx
jmp 0x40f245
mov ecx, dword [esi + 0xf28]
lea eax, [esp + 0x2c]
push 0x100
push eax
push ecx
call sub.WSOCK32.dll_recv
cmp eax, edi
jl 0x40f252
cmp eax, ebp
jge 0x40f27a
mov edx, dword [esi + 0xf28]
push edx
call sub.WSOCK32.dll_closesocket
mov dword [esi + 0xf28], 0xffffffff
mov ebx, 0xa
jmp 0x40f27a
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x18]
mov eax, ecx
cdq
idiv ebx
inc ecx
mov dword [esp + 0x18], ecx
test edx, edx
jne 0x40f323
mov eax, dword [esi + 0xf28]
cmp eax, 0xffffffff
jne 0x40f2c3
mov eax, dword [esp + 0x10]
mov ecx, eax
inc eax
cmp ecx, 2
mov dword [esp + 0x10], eax
jl 0x40f2b5
mov dword [esi + 0xf34], 6
mov ecx, esi
call fcn.0040e9e0
mov ebx, 0xf
jmp 0x40f323
push ebp
lea edx, [esp + 0x18]
push 4
push edx
push eax
mov ebx, 0x12c
call sub.WSOCK32.dll_send
mov edi, eax
cmp edi, 1
jge 0x40f306
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x40f306
mov eax, dword [esi + 0xf28]
push eax
call sub.WSOCK32.dll_closesocket
mov dword [esi + 0xf28], 0xffffffff
mov ebx, 0xf
jmp 0x40f31e
cmp edi, ebp
jle 0x40f31e
cmp dword [esp + 0x10], ebp
je 0x40f31a
mov dword [esi + 0xf34], 5
mov dword [esp + 0x10], ebp
mov edi, 1
cmp dword [esi + 0xf38], edi
je 0x40f186
mov eax, dword [esi + 0xf28]
mov dword [esp + 0x14], 0xdeadbeef
cmp eax, 0xffffffff
je 0x40f392
push ebp
lea ecx, [esp + 0x18]
push 4
push ecx
push eax
call sub.WSOCK32.dll_send
mov edx, dword [esi + 0xf28]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ebp
push ecx
push ebp
push ebp
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], 0x186a0
call sub.WSOCK32.dll_select
mov edx, dword [esi + 0xf28]
push edx
call sub.WSOCK32.dll_closesocket
mov dword [esi + 0xf28], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x324
ret
Function at 0x40f3e0
Capabilities:
Get hostname

Disassembly:
sub esp, 0x4a4
push ebx
mov ebx, ecx
push ebp
push esi
lea esi, [ebx + 0xf40]
push edi
mov ecx, 8
xor eax, eax
mov edi, esi
mov dword [esp + 0x18], esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x5c]
push eax
push ecx
mov dword [esp + 0x1c], 0xff
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x40f433
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x40f433
cmp eax, 0x100
jae 0x40f433
mov byte [esp + eax + 0x5c], 0
jmp 0x40f438
mov byte [esp + 0x5c], 0
lea edx, [esp + 0x5c]
push edx
call fcn.00412070
mov cl, byte [eax]
add esp, 4
test cl, cl
jne 0x40f471
push 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [esp + 0x64]
push str._08X_08X
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x5c]
push 0x12
push ecx
push esi
call fcn.00411fe0
mov dx, word [esp + 0x4c4]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
add esp, 0xc
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x15c]
mov word [ebx + 0xf52], dx
push ecx
mov byte [esp + 0x20], 0x37
mov dword [esp + 0x24], eax
mov word [esp + 0x28], 0x100
call sub.NETAPI32.dll_Netbios
mov al, byte [esp + 0x15c]
xor ebp, ebp
test al, al
mov dword [esp + 0x10], ebp
jbe 0x40f5ed
mov dl, byte [esp + ebp + 0x15d]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x1c], 0x32
push eax
mov byte [esp + 0x50], dl
call sub.NETAPI32.dll_Netbios
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x26]
rep stosd dword es:[edi], eax
mov cl, byte [esp + ebp + 0x15d]
mov edi, 0x425120
mov byte [esp + 0x4c], cl
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x1c], 0x33
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x260]
mov word [esp + 0x28], 0x258
mov dword [esp + 0x24], ecx
call sub.NETAPI32.dll_Netbios
test al, al
jne 0x40f5cb
mov eax, dword [esp + 0x261]
mov ecx, dword [esp + 0x260]
mov edx, dword [esp + 0x25f]
and eax, 0xff
shl eax, 8
and ecx, 0xff
and edx, 0xff
or eax, ecx
mov ecx, dword [esp + 0x25e]
shl eax, 8
or eax, edx
mov edx, dword [esp + 0x25d]
shl eax, 8
and ecx, 0xff
and edx, 0xff
or eax, ecx
mov ecx, dword [esp + 0x25c]
shl edx, 8
and ecx, 0xff
or edx, ecx
mov ecx, dword [esp + 0x10]
shl edx, 0x10
xor eax, edx
xor ecx, eax
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x15c]
inc ebp
and edx, 0xff
cmp ebp, edx
jl 0x40f4d3
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
test eax, eax
jne 0x40f5f7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0xf54], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
mov dword [ebx + 0xf58], eax
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
mov dword [ebx + 0xf58], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4a4
ret 4
Function at 0x410840
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.0041e190
push ebx
push ebp
mov ebp, dword [esp + 0x1014]
push esi
test ebp, ebp
push edi
je 0x410864
mov ecx, 0x2000
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x1018]
push 0
push esi
call fcn.004171b0
mov ebx, dword [sym.imp.MSVCRT.dll_fopen]
push 0x424400
push esi
mov dword [esp + 0x20], 0
call ebx
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x41092c
push 0x424390
push esi
call ebx
mov edi, eax
add esp, 8
test edi, edi
je 0x4108c1
push edi
push 1
push 1
push 0x424464
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x41090b
jmp 0x410903
lea eax, [esp + 0x14]
push esi
push eax
call fcn.004124b0
lea ecx, [esp + 0x1c]
push ecx
call fcn.00414930
push 0x424390
push esi
call ebx
mov edi, eax
add esp, 0x14
test edi, edi
je 0x410a17
push edi
push 1
push 1
push 0x424464
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x41090b
mov dword [esp + 0x10], 3
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
push esi
call fcn.00418bd0
mov eax, dword [esp + 0x18]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret 8
test ebp, ebp
push edi
je 0x410a0e
push 0x8000
push 1
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 0x8000
push edi
jae 0x41096c
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x14]
add esp, 4
mov byte [ebp], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret 8
mov ebp, dword [sym.imp.MSVCRT.dll_fclose]
call ebp
push 0x425270
push esi
call ebx
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x410997
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1004
ret 8
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 0
push 0
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x4109ef
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push esi
push 1
push 1
push 0x424464
call edi
add esp, 0x10
cmp eax, 1
jne 0x4109ef
push 0
push 0
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x4109ef
push esi
push 1
push 1
push 0x42526c
call edi
add esp, 0x10
cmp eax, 1
mov dword [esp + 0x10], 3
je 0x4109f7
mov dword [esp + 0x10], 1
push esi
call ebp
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret 8
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret 8
Function at 0x410a30
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x404
push ebx
push ebp
mov ebp, dword [esp + 0x410]
push esi
xor bl, bl
push 0
push ebp
mov byte [esp + 0x17], bl
call fcn.004171b0
push 0x424390
push ebp
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410b5c
mov eax, dword [esp + 0x418]
push esi
push 0x8000
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 0x8000
jne 0x410a8d
mov bl, 1
mov byte [esp + 0xf], bl
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test bl, bl
je 0x410b5c
mov eax, dword [esp + 0x41c]
cmp eax, 1
jne 0x410ac0
push 0x3fdb05b5
push ebp
call fcn.004175c0
push 0x3fdb05b5
jmp 0x410b53
cmp eax, 2
jne 0x410b3e
lea ecx, [esp + 0x10]
push edi
push ecx
call fcn.00414e90
mov edx, eax
mov edi, str.DllAboutBox.dll
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00417460
add esp, 8
mov esi, eax
cmp esi, 0x7fffffff
pop edi
jg 0x410b18
cmp esi, 0x989680
jge 0x410b1d
mov esi, 0x41bb8a00
push esi
push ebp
call fcn.004175c0
push esi
push ebp
call fcn.004174d0
mov al, byte [esp + 0x1f]
add esp, 0x10
pop esi
pop ebp
pop ebx
add esp, 0x404
ret 0xc
cmp eax, 3
jne 0x410b5c
push 0x3fd95fd5
push ebp
call fcn.004175c0
push 0x3fd95fd5
push ebp
call fcn.004174d0
add esp, 0x10
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0x404
ret 0xc
Function at 0x411a30
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 8
push ebx
push edi
push 0xf003f
push 0
mov ebx, ecx
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
mov dword [esp + 0xc], edi
je 0x411b09
push esi
lea eax, [ebx + 4]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x411aef
lea eax, [ebx + 0x754]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x411abd
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
lea eax, [ebx + 0x754]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x411ab8
cmp dword [ebx + 0x758], 3
jne 0x411ab8
push 0x64
call ebp
inc edi
cmp edi, 0x4b0
jl 0x411a90
mov edi, dword [esp + 0x14]
pop ebp
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x411ad6
push 0xffffffffffffffff
call fcn.00413530
add esp, 4
mov dword [esp + 0xc], eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0xc]
pop esi
pop edi
pop ebx
add esp, 8
ret
push edi
mov dword [esp + 0x10], 0x54
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0xc]
pop esi
pop edi
pop ebx
add esp, 8
ret
pop edi
mov eax, 0x54
pop ebx
add esp, 8
ret

Function at 0x411b20
Capabilities:
Query service status
Start service

Disassembly:
push ecx
push ebp
push edi
push 0xf003f
push 0
mov edi, ecx
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 8], ebp
je 0x411c08
push ebx
push esi
lea eax, [edi + 4]
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x411bed
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x411bcb
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call ebp
xor esi, esi
lea eax, [edi + 0x754]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x411ba1
cmp dword [edi + 0x758], 2
jne 0x411ba1
push 0x64
call ebp
inc esi
cmp esi, 0x64
jl 0x411b7c
mov esi, dword [edi + 0x758]
mov ebp, dword [esp + 0x10]
sub esi, 4
push ebx
neg esi
sbb esi, esi
and esi, 0x54
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
pop ecx
ret
push 0xffffffffffffffff
call fcn.00413530
add esp, 4
mov esi, eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
pop ecx
ret
push 0xffffffffffffffff
call fcn.00413530
add esp, 4
mov esi, eax
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
pop ecx
ret
pop edi
mov eax, 0x54
pop ebp
pop ecx
ret
Function at 0x411c20
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push esi
push edi
push 0xf003f
push 0
mov esi, ecx
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x411cf7
add esi, 4
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x411ce5
lea eax, [esp + 8]
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
test ebx, ebx
pop ebx
je 0x411cf7
mov ecx, dword [esp + 0xc]
lea eax, [ecx - 1]
cmp eax, 6
ja case.default.0x411c86
jmp dword [eax*4 + 0x411d00]
pop edi
mov eax, 5
pop esi
add esp, 0x1c
ret
pop edi
mov eax, 2
pop esi
add esp, 0x1c
ret
pop edi
mov eax, 4
pop esi
add esp, 0x1c
ret
pop edi
mov eax, 3
pop esi
add esp, 0x1c
ret
pop edi
mov eax, 7
pop esi
add esp, 0x1c
ret
pop edi
mov eax, 8
pop esi
add esp, 0x1c
ret
pop edi
mov eax, 9
pop esi
add esp, 0x1c
ret
pop edi
mov eax, 0xa
pop esi
add esp, 0x1c
ret
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret
Function at 0x414220
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1804
call fcn.0041e190
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [esp + 0x1818]
test eax, eax
jle 0x414282
cmp eax, 0x7ee
jge 0x414282
mov edi, dword [esp + 0x181c]
test edi, edi
mov eax, edi
jne 0x414262
mov eax, 0x4258f8
push esi
push 0
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x414289
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1804
ret
mov edi, dword [esp + 0x181c]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
mov ebx, 0x43
mov dword [esp + 0x10], 0
jmp 0x4142b6
mov edi, dword [esp + 0x181c]
mov dword [esp + 0x10], 0
jmp 0x4142b6
mov edi, dword [esp + 0x181c]
test edi, edi
jne 0x4142bf
mov edi, 0x4258f8
call dword [sym.imp.MSVCRT.dll_rand]
and eax, 0x800fffff
jns 0x4142d3
dec eax
or eax, 0xfff00000
inc eax
push eax
push edi
push ebx
push str._c:TEMPDIR_s_05X.TMP
push esi
call ebp
push esi
call fcn.004148e0
add esp, 0x18
test al, al
jne 0x414319
lea edx, [esp + 0x814]
push esi
push edx
call fcn.004124b0
lea eax, [esp + 0x81c]
push eax
call fcn.00414930
push 0x42500c
push esi
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x14
test eax, eax
jne 0x41433e
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 5
mov dword [esp + 0x10], eax
jl 0x4142af
inc ebx
cmp ebx, 0x5a
jle 0x41429e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1804
ret
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1804
ret