joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408840
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4510e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
mov edi, ecx
push 0
mov dword [ebp - 0x40], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x40891a
push 0xf01ff
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x40890d
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4088df
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4088cf
cmp dword [ebp - 0x1c], 1
jne 0x4088cf
test edi, edi
je 0x4088c1
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
jmp 0x40891a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
xor esi, esi
jmp 0x40891f
xor edi, edi
push 0x12c
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x408902
cmp dword [ebp - 0x38], 1
je 0x408907
cmp edi, 0xa
jl 0x4088e1
cmp dword [ebp - 0x40], 0
jmp 0x4088b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, 1
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40893c
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bcb9
mov esp, ebp
pop ebp
ret
Function at 0x408950
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4510e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov edi, edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x234], esi
test esi, esi
je 0x408a5e
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.0041d590
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x408a57
lea ebx, [ebx]
xor esi, esi
test edi, edi
jle 0x408a3b
push dword [ebx + esi*4]
lea eax, [ebp - 0x20c]
push eax
call fcn.0041bd50
add esp, 8
test eax, eax
je 0x4089e3
inc esi
cmp esi, edi
jl 0x4089c6
jmp 0x408a3b
push dword [ebp - 0x228]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x408a11
push dword [ebp - 0x228]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x408a3b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x228], eax
je 0x408a34
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4089c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bcb9
mov esp, ebp
pop ebp
ret
Function at 0x408a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439a52
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4510e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
xor eax, eax
push 0x206
mov dword [ebp - 0x42c], 0
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x430], esi
call fcn.0041d590
push str.C:Program_Files
lea eax, [ebp - 0x218]
push 0x103
push eax
call fcn.0041c0d9
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.0041d590
add esp, 0x24
lea eax, [ebp - 0x424]
push eax
push 0x24
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x424]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
movzx edx, word [ebp - 0x218]
movzx ecx, word [ebp - 0x420]
test eax, eax
cmovne edx, ecx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
mov word [ebp - 0x218], dx
mov dword [esi], 0
call fcn.00401e40
push 1
lea eax, [ebp - 0x428]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
mov dword [ebp - 0x42c], 1
call fcn.00406e90
mov ecx, dword [eax]
mov eax, 0x447ba4
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x408ba6
test dx, dx
je 0x408ba2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x408ba6
add ecx, 4
add eax, 4
test dx, dx
jne 0x408b80
xor eax, eax
jmp 0x408bab
sbb eax, eax
or eax, 1
mov edx, dword [ebp - 0x428]
test eax, eax
setne bl
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408bd0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x408be2
push 1
push 0x447ba4
mov ecx, esi
call fcn.004071b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041bcb9
mov esp, ebp
pop ebp
ret
Function at 0x408c90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439aad
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x4510e0]
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 ebx, ecx
mov dword [ebp - 4], 0
xor eax, eax
push 0x800
mov dword [ebp - 0x820], 0
push eax
mov word [ebp - 0x814], ax
lea eax, [ebp - 0x812]
push eax
mov dword [ebp - 0x828], ebx
call fcn.0041d590
add esp, 0xc
call fcn.00409d5c
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x408d11
push 0x80004005
call fcn.004022b0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x824], esi
lea eax, [ebp - 0x814]
push eax
push 0x400
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x814]
push eax
mov ecx, ebx
mov dword [ebx], 0
call fcn.00401e40
push 1
lea eax, [ebp - 0x81c]
push eax
mov ecx, ebx
mov dword [ebp - 0x820], 1
call fcn.00406e90
mov eax, dword [eax]
mov ecx, 0x447ba4
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408d96
test dx, dx
je 0x408d92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408d96
add eax, 4
add ecx, 4
test dx, dx
jne 0x408d70
xor eax, eax
jmp 0x408d9b
sbb eax, eax
or eax, 1
mov edx, dword [ebp - 0x81c]
test eax, eax
setne byte [ebp - 0x815]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x408dc6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x815], 0
je 0x408ddd
push 1
push 0x447ba4
mov ecx, ebx
call fcn.004071b0
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x408df8
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.0041bcb9
mov esp, ebp
pop ebp
ret
Function at 0x408ed0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4510e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
mov esi, ecx
push 2
mov dword [ebp - 0x238], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
test edi, edi
jne 0x408f0d
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcb9
mov esp, ebp
pop ebp
ret
push ebx
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov dword [ebp - 0x234], 0
call fcn.0041d590
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x408fd4
mov eax, dword [ebp - 0x228]
cmp eax, esi
jne 0x408f9e
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x408f87
push dword [ebp - 0x228]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x408f98
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x228], eax
jne 0x408fb2
push esi
call ebx
mov esi, dword [ebp - 0x238]
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x408f54
jmp 0x408fd4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov dword [ebp - 0x234], 1
call ebx
push edi
call ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x234]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0041bcb9
mov esp, ebp
pop ebp
ret

Function at 0x408ff0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4510e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_EnumWindows]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea eax, [ebp - 0xc]
push eax
push 0x408e20
mov dword [ebp - 0xc], 0
call ebx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40904e
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x409041
call fcn.00408ed0
push 0xc8
call edi
inc esi
cmp esi, 0x1e
jl 0x409011
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bcb9
mov esp, ebp
pop ebp
ret
Function at 0x40d326
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4510e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x45c92c]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x40d372
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40d38f
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x45c92c], eax
jmp 0x40d37b
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x40d38f
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x40d3fc
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40d3aa
xor eax, eax
jmp 0x40d3fc
lea eax, [ebp - 0x210]
push eax
call fcn.0041d842
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x40d3db
push 0x447ba4
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0041e5a9
add esp, 0xc
test eax, eax
jne 0x40d3a6
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0041e5a9
add esp, 0xc
test eax, eax
jne 0x40d3a6
lea eax, [ebp - 0x210]
push eax
call fcn.00411682
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041bcb9
leave
ret
Function at 0x41532d
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4510e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x45ca08]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
test eax, eax
jne 0x415386
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4153a3
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x45ca08], eax
jmp 0x41538f
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x4153a3
mov eax, dword [ebp - 0x20]
push ebx
push edi
push eax
push dword [ebp + 8]
call esi
jmp 0x4154e0
mov eax, dword [ebp - 0x20]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.0042efbc
lea eax, [ebp - 0x14]
push eax
call fcn.0041d842
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.0041c0d9
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
lea edi, [esi + 1]
call fcn.0042efbc
lea eax, [ebp - 0x14]
push eax
call fcn.0041d842
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0041c0d9
add esp, 0x38
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.0042efbc
lea eax, [ebp - 0x14]
push eax
call fcn.0041d842
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0041c0d9
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
add edi, esi
call fcn.0042efbc
lea eax, [ebp - 0x14]
push eax
call fcn.0041d842
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.0041c0d9
push 7
lea eax, [ebp - 0x14]
push eax
push 0x800
add edi, esi
call fcn.0042efbc
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.0041d842
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.0041c0d9
lea eax, [edi + esi]
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bcb9
leave
ret
Function at 0x42aa26
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4510e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00427a98
mov dword [ebp - 0x14], eax
cmp dword [0x45ddc8], edi
jne 0x42ab17
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x42aaa4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x42abf7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x42abf7
push 0x44074c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42abf7
push eax
call ebx
push 0x440758
push esi
mov dword [0x45ddc8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x440768
push esi
mov dword [0x45ddcc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x45ddd0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45ddd8], eax
test eax, eax
je 0x42ab14
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45ddd4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x42ab3c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42ab2f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x42ab51
push 4
pop eax
jmp 0x42abf9
cmp dword [ebp - 0x14], edi
je 0x42ab51
push dword [0x45ddc8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x42ab36
mov eax, dword [0x45ddd4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x42abaf
cmp dword [0x45ddd8], esi
je 0x42abaf
push eax
call ebx
push dword [0x45ddd8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x42abaf
test eax, eax
je 0x42abaf
call ecx
test eax, eax
je 0x42aba4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x42aba4
test byte [ebp - 8], 1
jne 0x42abaf
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x42abdf
mov eax, dword [0x45ddcc]
cmp eax, esi
je 0x42abdc
push eax
call ebx
test eax, eax
je 0x42abdc
call eax
mov edi, eax
test edi, edi
je 0x42abdc
mov eax, dword [0x45ddd0]
cmp eax, esi
je 0x42abdc
push eax
call ebx
test eax, eax
je 0x42abdc
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x45ddc8]
call ebx
test eax, eax
je 0x42abf7
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x42abf9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bcb9
leave
ret
Function at 0x430ee0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push 1
push 0
lea eax, [ebp - 0x150]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00432130
add esp, 0x10
mov byte [ebp - 0x151], al
movzx edx, byte [ebp - 0x151]
test edx, edx
je 0x430f5d
mov eax, dword [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x430f43
push 0
mov edx, dword [ebp - 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x151]
mov esp, ebp
pop ebp
ret

Function at 0x4318d0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
cmp dword [0x45ded8], 0
jne 0x431a3c
lea ecx, [ebp - 0x18]
call fcn.00437590
lea ecx, [ebp - 0x58]
call fcn.00437590
push 8
lea eax, [ebp - 0x30]
push eax
push 0x442f70
call fcn.00436eb0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x10
lea ecx, [ebp - 0x28]
push ecx
push 0x442f98
call fcn.00436eb0
push eax
push 0x10
lea edx, [ebp - 0x40]
push edx
push 0x442f84
call fcn.00436eb0
push eax
push str._S_S__x_S
lea eax, [ebp - 0x18]
push eax
call fcn.00437990
add esp, 0x18
lea ecx, [ebp - 0x18]
call fcn.00437a30
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x431a2c
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x10
lea edx, [ebp - 0x28]
push edx
push 0x442f98
call fcn.00436eb0
push eax
push 0x10
lea eax, [ebp - 0x40]
push eax
push 0x442f84
call fcn.00436eb0
push eax
push str._S_S__x
lea ecx, [ebp - 0x58]
push ecx
call fcn.00437990
add esp, 0x14
lea ecx, [ebp - 0x58]
call fcn.00437a30
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x431a18
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0xb7
setne dl
mov dword [ebp - 0x64], edx
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x45ded8], eax
cmp dword [ebp - 0x64], 0
je 0x431a0e
cmp dword [0x45ded8], 0
je 0x431a0e
mov ecx, dword [0x45ded8]
mov dword [ecx], 0
mov edx, dword [ebp - 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x58]
call fcn.004376d0
lea ecx, [ebp - 0x18]
call fcn.004376d0
cmp dword [0x45ded8], 0
je 0x431a58
mov edx, dword [0x45ded8]
push edx
call fcn.00431a60
add esp, 4
jmp 0x431a5a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4320d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [ebp - 5], 0
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43211b
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jne 0x432104
mov byte [ebp - 5], 1
jmp 0x432119
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
push str.ReadFromPipe:_Error_reading_from_pipe:_Number_read_was__d__requested_was__d_n
call fcn.0042fc50
add esp, 0xc
jmp 0x432128
push str.ReadFromPipe:_Error_reading_from_pipe:_ReadFile_returned_False_n
call fcn.0042fc50
add esp, 4
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x432570
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4325ef
mov dword [ebp - 0x21c], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4325e5
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00432570
add esp, 8
mov edx, dword [ebp - 0x21c]
add edx, 1
mov dword [ebp - 0x21c], edx
jmp 0x4325a0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esp, ebp
pop ebp
ret

Function at 0x432650
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0xd0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0041d590
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x67452301
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x98badcfe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 0x10325476
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0xc3d2e1f0
pop ebp
ret