joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ca0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c808
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x58]
mov esi, dword [ebp + 8]
push ebx
push esi
push eax
mov dword [ebp - 0x5c], esi
call fcn.00404f70
push ebx
push esi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.00405140
test bl, bl
mov byte [ebp - 4], 1
sete al
movzx eax, al
push eax
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.00405140
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov esi, dword [sym.imp.MSVCR120.dll__wremove]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
add esp, 4
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call esi
add esp, 4
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x58]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x44], 8
push ecx
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.MSVCR120.dll__wrename]
add esp, 8
test eax, eax
je 0x403d5f
xor bl, bl
jmp 0x403d85
push 0xffffffffffffffff
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x5c]
mov ecx, edi
call fcn.00405660
mov dword [eax], 2
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov bl, 1
cmp dword [ebp - 0x2c], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x403d99
push dword [ebp - 0x40]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x403dbb
push dword [ebp - 0x28]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x403ddd
push dword [ebp - 0x58]
call esi
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b5b1
mov esp, ebp
pop ebp
ret 8
Function at 0x406a60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41cb58
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x40], 0
je 0x406b91
cmp byte [esi + 0x45], 0
je 0x406b91
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x406ac0
xor al, al
jmp 0x406b93
sub esp, 8
lea ecx, [esp + 0x20]
call fcn.00406430
mov dword [esp + 0x40], 0
lea edi, [esi + 0x48]
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
cmp ebx, 0x10
lea ecx, [esp + 0x1c]
cmovae ecx, dword [esp + 0x1c]
cmovae edx, dword [esp + 0x1c]
add eax, edx
push eax
push ecx
mov ecx, dword [esi + 0x40]
push edi
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x406b18
dec eax
je 0x406b1c
sub eax, 2
je 0x406b77
xor bl, bl
jmp 0x406b79
mov byte [esi + 0x45], 0
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x18]
cmp ebx, 0x10
mov edi, dword [esp + 0x14]
cmovae eax, ecx
sub edi, eax
je 0x406b54
push dword [esi + 0x50]
cmp ebx, 0x10
lea eax, [esp + 0x1c]
push edi
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x406b14
cmp byte [esi + 0x45], 0
je 0x406b77
test edi, edi
lea edi, [esi + 0x48]
jne 0x406ad7
push 0
push 8
lea ecx, [esp + 0x20]
call fcn.00402930
jmp 0x406ad4
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x406b8d
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
jmp 0x406b93
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041b5b1
mov esp, ebp
pop ebp
ret
Function at 0x40f5d0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d438
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 4
mov dword [esi], vtable.intel_dal::ICommandsServer.0
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov edi, eax
add esp, 4
test edi, edi
je 0x40f625
push 0
push 0xa
push 0xa
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [edi], eax
jmp 0x40f627
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov byte [esi + 4], 0xa
lea edi, [esi + 0x10]
mov dword [ebp - 4], 0
push edi
push 0x202
mov dword [esi], vtable.intel_dal::CommandsServerSocketsWin32.0
mov dword [esi + 0x1a0], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40f680
mov dword [ebp + 8], str.WSAStartup_failed
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCR120.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x424424
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCR120.dll__CxxThrowException
cmp byte [edi], 2
jne 0x40f6a0
cmp byte [edi + 1], 2
jne 0x40f6a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [ebp + 8], str.Could_not_find_a_usable_version_of_Winsock.dll
jmp 0x40f665
Function at 0x40f9b0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x1a0], 0xffffffff
je 0x40fa6f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push ebx
mov eax, dword [esi + 8]
push 0xffffffffffffffff
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0
push dword [esi + 0x1a0]
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40fa62
push 0x4279ec
push 0xc
call fcn.0041b728
add esp, 8
mov edi, eax
push 0
test edi, edi
jne 0x40fa14
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 1
push dword [eax]
call edi
jmp 0x40fa51
push 0
push edi
push 0x40fa80
mov dword [edi], ebx
mov eax, dword [esi + 0xc]
push 0
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
push 0
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x40fa44
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x40fa4b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
cmp dword [esi + 0x1a0], 0xffffffff
jne 0x40f9c8
pop ebx
pop edi
pop esi
ret
mov eax, dword [esi + 8]
push 0
push 1
push dword [eax]
call edi
pop ebx
pop edi
pop esi
ret
Function at 0x4113f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41d6a8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 8], 0
je 0x411439
mov eax, 1
jmp 0x4115ae
call fcn.0040b830
mov esi, dword [eax + 0x18]
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
mov dword [esp + 0x40], eax
mov byte [esp + 0x14], al
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00411040
test al, al
jne 0x41147d
mov esi, 0x1014
jmp 0x411590
mov ebx, dword [esp + 0x14]
cmp esi, 2
jne 0x41149b
push ebx
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.00411730
test eax, eax
je 0x411520
cmp dword [esp + 0x2c], 8
lea edx, [esp + 0x18]
push ebx
cmovae edx, dword [esp + 0x1c]
mov ecx, str.BA8D164350B649CC861D2C01BED14BE8
push 0
call fcn.004131d0
mov esi, eax
add esp, 8
test esi, esi
je 0x41150d
cmp esi, 0x108
je 0x411505
push 0x421188
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x4114fb
push 0
push 0
push 0
push 0
push 0
push 0xc0000004
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov esi, 0x1015
jmp 0x411590
test esi, esi
jne 0x411592
push ebx
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.00411730
mov esi, eax
test esi, esi
jne 0x411592
mov eax, dword [0x427dac]
test al, 1
jne 0x411543
or eax, 1
mov dword [0x427dac], eax
call fcn.00412410
push 0x41e230
call fcn.0041b6a5
add esp, 4
push 0xffffffffffffffff
push dword [0x427d50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x427d50]
mov ebx, dword [0x427d90]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
push 0
push 0
push 0x410cb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 4], eax
test eax, eax
jne 0x41158e
mov eax, dword [ebx]
mov ecx, ebx
push edi
mov esi, 0x601
call dword [eax + 0x20]
jmp 0x411590
xor esi, esi
test esi, esi
sete al
cmp dword [esp + 0x2c], 8
mov byte [edi + 8], al
jb 0x4115ac
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041b5b1
mov esp, ebp
pop ebp
ret

Function at 0x413b80
Capabilities:
Access the windows event log
Create thread

Disassembly:
push esi
push 0
push 0
push 0
push 0x413b70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x421188
push 0
mov dword [0x427e68], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x413bcf
push 0
push 0
push 0
push 0
push 0
push 0x40000000
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
ret
Function at 0x413be0
Capabilities:
Access the windows event log

Disassembly:
mov ecx, dword [0x427e64]
mov eax, dword [ecx]
call dword [eax + 4]
push dword [0x427e68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x427dac]
mov dword [0x427e68], 0
test al, 1
jne 0x413c29
or eax, 1
mov dword [0x427dac], eax
call fcn.00412410
push 0x41e230
call fcn.0041b6a5
mov eax, dword [0x427dac]
add esp, 4
cmp dword [0x427d54], 0
jne 0x413c79
test al, 1
jne 0x413c50
or eax, 1
mov dword [0x427dac], eax
call fcn.00412410
push 0x41e230
call fcn.0041b6a5
add esp, 4
push 0xffffffffffffffff
push dword [0x427d50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x427d50]
mov dword [0x427d54], 1
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.00412cd0
push esi
push 0x421188
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x413cae
push 0
push 0
push 0
push 0
push 0
push 0x40000001
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
ret

Function at 0x4141d0
Capabilities:
Create mailslot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push ebx
mov ebx, edx
mov dword [ebp - 0x38], eax
cmp dword [eax + 0x24], 0
je 0x414202
mov eax, 7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b5b1
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x414218
lea eax, [ebx + 8]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b5b1
mov esp, ebp
pop ebp
ret
push esi
mov esi, ebx
lea ecx, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x414220
sub esi, ecx
cmp esi, 0x20
jle 0x414243
pop esi
mov eax, 8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b5b1
mov esp, ebp
pop ebp
ret
push edi
push str..mailslot_
lea eax, [ebp - 0x34]
push 0x2e
push eax
call dword [sym.imp.MSVCR120.dll_strcpy_s]
push ebx
lea eax, [ebp - 0x34]
push 0x2e
push eax
call dword [sym.imp.MSVCR120.dll_strcat_s]
mov eax, dword [ebp + 8]
add esp, 0x18
test eax, eax
jne 0x414299
push eax
push eax
push 0x1a8
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMailslotA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4142c0
push 0
push 0
push 0
push 0
push 4
push 6
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
jmp 0x4142bb
cmp eax, 1
jne 0x414303
push 0
push 0x80
push 3
push 0
push eax
push 0x40000000
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4142d6
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b5b1
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp - 0x38]
push ebx
push 0x22
push esi
call dword [sym.imp.MSVCR120.dll_strncpy_s]
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b5b1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xa
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b5b1
mov esp, ebp
pop ebp
ret
Function at 0x414320
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, edx
cmp dword [esi + 0x24], 0
jne 0x414354
pop edi
mov eax, 5
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b5b1
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x28], 1
je 0x41436f
pop edi
mov eax, 0xa
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b5b1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1ac]
mov dword [ebp - 0x1b0], eax
test edi, edi
je 0x4143c2
push ecx
lea ecx, [ebp - 0x1b0]
call fcn.004145b0
lea edx, [edi + 0x12]
lea ecx, [ebp - 0x1b0]
call fcn.004145b0
lea edx, [edi + 0x34]
lea ecx, [ebp - 0x1b0]
call fcn.004145b0
lea edx, [edi + 0x56]
lea ecx, [ebp - 0x1b0]
call fcn.004145b0
mov eax, dword [ebp - 0x1b0]
add esp, 4
mov byte [eax - 1], 0
push 0
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x1ac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1ac]
push eax
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
and eax, 0xfffffffd
add eax, 3
pop esi
call fcn.0041b5b1
mov esp, ebp
pop ebp
ret
Function at 0x414b70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41d993
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov edi, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
mov dword [esp + 0x98], 0
mov eax, dword [edi + 4]
sub eax, dword [edi]
jne 0x414be4
mov eax, 0x2002
jmp 0x414d63
mov eax, dword [0x427dac]
test al, 1
jne 0x414c07
or eax, 1
mov dword [0x427dac], eax
call fcn.00412410
push 0x41e230
call fcn.0041b6a5
add esp, 4
push 0xffffffffffffffff
push dword [0x427d50]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [0x427d8c], 0
mov eax, 1
push dword [0x427d50]
movzx ebx, bl
cmovne ebx, eax
mov eax, dword [0x427d90]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
je 0x414d48
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x414d48
mov edx, dword [edi]
lea esi, [esp + 0x30]
mov ecx, dword [edi + 4]
mov eax, dword [ebx]
sub ecx, edx
push esi
push ecx
push edx
mov ecx, ebx
call dword [eax + 0x44]
mov esi, eax
test esi, esi
jne 0x414d4d
lea eax, [esp + 0x34]
push str.BA8D164350B649CC861D2C01BED14BE8
push eax
call dword [sym.imp.MSVCR120.dll__stricmp]
add esp, 8
test eax, eax
jne 0x414c92
mov esi, 0x2004
jmp 0x414d4d
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x5c]
call fcn.00401960
mov edx, eax
mov byte [esp + 0x98], 1
lea ecx, [esp + 0x70]
call fcn.004020e0
push eax
lea ecx, [esp + 0x1c]
call fcn.0040d420
lea ecx, [esp + 0x70]
call fcn.004019c0
lea ecx, [esp + 0x58]
mov byte [esp + 0x98], 0
call fcn.004019c0
mov eax, dword [esp + 0x30]
dec eax
cmp eax, 7
ja case.default.0x414ce1
jmp dword [eax*4 + 0x414d84]
mov esi, 0x2006
jmp 0x414d4d
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push edi
call fcn.00414910
add esp, 4
mov ecx, eax
call fcn.00402380
mov esi, eax
jmp 0x414d4d
cmp dword [esp + 0x2c], 0x10
lea ecx, [esp + 0x18]
mov edx, dword [esp + 0x10]
cmovae ecx, dword [esp + 0x18]
push edi
call fcn.00418e90
add esp, 4
mov ecx, eax
call fcn.00402380
mov esi, eax
jmp 0x414d4d
mov eax, dword [ebx]
mov ecx, ebx
push edi
push dword [esp + 0x14]
call dword [eax + 0x3c]
mov esi, eax
jmp 0x414d4d
mov esi, 0x2002
jmp 0x414d4d
mov esi, 0x2005
cmp dword [esp + 0x2c], 0x10
jb 0x414d61
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0041b5b1
mov esp, ebp
pop ebp
ret
Function at 0x418e90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41dd60
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [0x427dac]
test al, 1
jne 0x418ef4
or eax, 1
mov dword [0x427dac], eax
call fcn.00412410
push 0x41e230
call fcn.0041b6a5
add esp, 4
cmp byte [0x427d58], 0
je 0x418f1b
push 0x4010
push str.JHISVC
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.__d____s__FN:__08x_n
call fcn.00401550
add esp, 0x10
push dword [esp + 0x14]
mov edx, esi
mov ecx, edi
call fcn.00418c80
mov esi, eax
add esp, 4
test esi, esi
je 0x418f3d
cmp esi, 0x402
jne 0x419021
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
mov dword [esp + 0x58], eax
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], eax
mov byte [esp + 0x18], al
cmp byte [edi], al
jne 0x418f70
xor ecx, ecx
jmp 0x418f7e
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418f75
sub ecx, edx
push ecx
push edi
lea ecx, [esp + 0x20]
call fcn.00401b20
mov byte [esp + 0x58], 1
call fcn.0040b830
lea eax, [esp + 0x13]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00403e00
cmp dword [esp + 0x2c], 0x10
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov byte [esp + 0x12], al
jb 0x418fc5
push dword [esp + 0x18]
call edi
mov al, byte [esp + 0x16]
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
test al, al
je 0x419011
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
cmovae eax, dword [esp + 0x30]
push eax
call dword [sym.imp.MSVCR120.dll__wremove]
add esp, 4
test eax, eax
je 0x41900f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
test esi, esi
jne 0x419011
mov esi, 0x104
jmp 0x419011
xor esi, esi
cmp dword [esp + 0x44], 8
jb 0x419021
push dword [esp + 0x30]
call edi
add esp, 4
mov eax, dword [0x427dac]
test al, 1
jne 0x419044
or eax, 1
mov dword [0x427dac], eax
call fcn.00412410
push 0x41e230
call fcn.0041b6a5
add esp, 4
cmp byte [0x427d58], 0
je 0x41906c
push esi
push 0x4011
push str.JHISVC
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.__d____s__FN:__08x_RET:_0x_08x_n
call fcn.00401550
add esp, 0x14
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0041b5b1
mov esp, ebp
pop ebp
ret
Function at 0x4197d0
Capabilities:
Delete service

Disassembly:
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x41981c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x419806
push str.ACCESS_DENIED:_administrative_privileges_required._n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
mov eax, 2
pop esi
ret
push eax
push str.OpenSCManager_failed___d__n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 8
mov eax, 1
pop esi
ret
push edi
push 0x10000
push str.jhi_service
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x419863
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x419887
cmp eax, 0x424
jne 0x41989d
push str.Error:_the_service_does_not_exist._n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
lea eax, [edi + 4]
pop edi
pop esi
ret
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4198b6
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
jne 0x41989d
push str.ACCESS_DENIED:_administrative_privileges_required._n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
mov eax, 2
pop edi
pop esi
ret
call esi
push eax
push str.Uninstall_Service_failed:___d__n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 8
mov eax, 1
pop edi
pop esi
ret
push str.JHI_Service_removed_successfully_n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
xor eax, eax
pop esi
ret
Function at 0x4198e0
Capabilities:
Start service

Disassembly:
push esi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x419929
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x419913
push str.ACCESS_DENIED:_administrative_privileges_required._n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
mov eax, 2
pop esi
ret
push eax
push str.OpenSCManager_failed___d__n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 8
mov eax, 1
pop esi
ret
push edi
push 0x10
push str.jhi_service
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x419986
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x4199ae
cmp eax, 0x424
jne 0x41996d
push str.Error:_the_service_does_not_exist._n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
lea eax, [edi + 4]
pop edi
pop esi
ret
call esi
push eax
push str.Open_Service_failed:___d__n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 8
mov eax, 1
pop edi
pop esi
ret
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4199fa
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
jne 0x4199c4
push str.ACCESS_DENIED:_administrative_privileges_required._n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
mov eax, 2
pop edi
pop esi
ret
cmp eax, 0x420
jne 0x4199e1
push str.Error:_JHI_service_already_running._n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
mov eax, 5
pop edi
pop esi
ret
call esi
push eax
push str.Start_Service_failed:___d__n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 8
mov eax, 1
pop edi
pop esi
ret
push str.JHI_Service_started_successfully_n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
xor eax, eax
pop esi
ret