joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001ce0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
movzx esi, byte [ebp + 0xc]
mov ecx, dword [0x1002c740]
push edi
neg esi
sbb esi, esi
xor ebx, ebx
push ebx
lea eax, [ebp + 0xc]
push eax
push ebx
and esi, 0x100
mov edi, esi
or edi, 0xf003f
push edi
push ebx
push ebx
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp + 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10001d4d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
lea edx, [ebp - 4]
push edx
push ebx
push edi
push ebx
push ebx
push ebx
push eax
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10001d59
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 0x80040201
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x1002c73c]
mov edx, dword [ebp - 4]
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push ebx
push ecx
push edx
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
mov ecx, dword [ebp + 0xc]
push ecx
mov dword [ebp - 4], ebx
call edi
mov eax, dword [0x1002c744]
lea edx, [ebp - 8]
push edx
or esi, 0x20006
push esi
push ebx
push eax
push SysReAllocString
mov dword [ebp + 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001de6
mov edx, dword [0x1002c74c]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001dc1
mov ecx, dword [0x1002c748]
sub eax, esi
push eax
push edx
mov edx, dword [ebp - 8]
push 1
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 8]
push eax
call edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10001e30
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 0xc]
mov ecx, dword [0x1002c740]
push esi
neg eax
sbb eax, eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
and eax, 0x100
mov esi, eax
lea eax, [ebp + 0xc]
push eax
or esi, 0xf003f
push esi
push 0
push ecx
push SysReAllocString
mov dword [ebp + 0xc], 0
call edi
test eax, eax
jne 0x10001e8f
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0xc], 0
mov eax, dword [0x1002c70c]
lea edx, [ebp + 0xc]
push edx
push esi
push 0
push eax
push SysReAllocString
call edi
pop edi
pop esi
test eax, eax
jne 0x10001ec1
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ebp
ret
Function at 0x10001ee0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
push eax
push ebx
push ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov byte [esi + 0xc], bl
mov dword [esi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [ebp + 0xc]
push ecx
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 8]
lea edi, [eax + 5]
push edi
push ebx
push 4
push ebx
push 0xffffffffffffffff
mov dword [esi + 0x18], ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x10001f6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi + 0x10]
push ebx
push ebx
push ebx
push 2
cmp eax, 0xb7
push edx
sete byte [ebp + 0x13]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x10001f6f
cmp byte [ebp + 0x13], bl
jne 0x10001f63
push edi
push ebx
push eax
mov byte [esi + 0xc], 1
call fcn.1000e290
add esp, 0xc
mov eax, dword [esi + 4]
inc byte [eax]
mov eax, dword [esi + 4]
inc eax
mov dword [esi + 8], eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x100075c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ba60
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1002b580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x10]
push eax
push 0x1001f69c
push 1
xor ebx, ebx
push ebx
push 0x100217b0
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
cmp eax, ebx
je 0x100076c6
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ebp + 8]
push str.D_3
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edi, eax
cmp dword [ebp - 0x14], ebx
je 0x100076c3
push 8
mov byte [esi + 0x58], bl
call fcn.1000ddd1
add esp, 4
lea edx, [ebp - 0x18]
push edx
push ebx
push eax
push 0x10007240
mov dword [eax], esi
mov ecx, dword [ebp - 0x14]
push ebx
mov dword [eax + 4], ecx
push ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x5c], eax
cmp eax, ebx
jne 0x100076c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10007683
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jne 0x10007696
push 0x80004003
call fcn.10017850
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
push ecx
mov ecx, dword [ebp + 8]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
cmp eax, ebx
je 0x100076bc
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, esi
call fcn.10005040
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x100076d5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x100076eb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10009c40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x1002b580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1002c948]
test eax, eax
jne 0x10009d1b
mov ecx, dword [0x1002c898]
push esi
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push 1
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x10009d15
push 0x3f
lea edx, [ebp - 0x43]
push 0
push edx
mov byte [ebp - 0x44], 0
call fcn.1000e290
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x50]
push edx
push 0
push str.svcVersion
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x4c], 0x40
mov dword [ebp - 0x50], 0
call esi
test eax, eax
je 0x10009ce5
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x50]
push edx
push 0
push str.Version
push eax
call esi
test eax, eax
jne 0x10009d0b
lea ecx, [ebp - 0x44]
push 0x2e
push ecx
call fcn.1000e3a0
add esp, 8
test eax, eax
je 0x10009d0b
lea edx, [ebp - 0x44]
push edx
mov byte [eax], 0
call fcn.1000e716
add esp, 4
mov dword [0x1002c948], eax
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1002c948]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000e281
mov esp, ebp
pop ebp
ret
Function at 0x1000e281
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002b580]
jne 0x1000e28b
repz ret
jmp fcn.100103ec

Function at 0x10014b7a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1002b580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1000fe1a
and dword [ebp - 0x14], 0
cmp dword [0x1002d5f8], 0
mov dword [ebp - 0x18], eax
jne 0x10014c2d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10014cd5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10014cd5
mov esi, dword [0x1002c3d0]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1002d5f8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1002d5fc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1002d600], eax
call edi
push eax
call esi
mov dword [0x1002d608], eax
test eax, eax
je 0x10014c2d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1002d604], eax
mov eax, dword [0x1002d604]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0x1002c3d4]
cmp eax, ecx
je 0x10014c86
cmp dword [0x1002d608], ecx
je 0x10014c86
push eax
call esi
push dword [0x1002d608]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10014c86
test ebx, ebx
je 0x10014c86
call edi
test eax, eax
je 0x10014c7d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10014c7d
test byte [ebp - 8], 1
jne 0x10014c86
or dword [ebp + 0x10], 0x200000
jmp 0x10014cb9
mov eax, dword [0x1002d5fc]
cmp eax, dword [ebp - 0x18]
je 0x10014cb9
push eax
call esi
test eax, eax
je 0x10014cb9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10014cb9
mov eax, dword [0x1002d600]
cmp eax, dword [ebp - 0x18]
je 0x10014cb9
push eax
call esi
test eax, eax
je 0x10014cb9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1002d5f8]
call esi
test eax, eax
je 0x10014cd5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10014cd7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e281
leave
ret

Function at 0x10016460
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp byte [esi + 4], 0
jne 0x1001648a
push 0x1002c370
lea ecx, [ebp - 0xc]
call fcn.1000d5e8
push 0x10029ad0
lea eax, [ebp - 0xc]
push eax
call fcn.1000de51
xor edx, edx
cmp dword [esi + 0x3cc], edx
jle 0x100164b0
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
lea ecx, [ecx]
mov cl, byte [edi + eax]
xor byte [eax], cl
inc edx
inc eax
cmp edx, dword [esi + 0x3cc]
jl 0x100164a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40d8ee
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x42a320
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x42a342
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42a349
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42a338
mov eax, 1
add ebx, ebx
jne 0x42a35b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42a350
jne 0x42a36c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42a350
xor ecx, ecx
sub eax, 3
jb 0x42a380
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42a3f2
mov ebp, eax
add ebx, ebx
jne 0x42a38b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42a398
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42a3bc
inc ecx
add ebx, ebx
jne 0x42a3a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42a39d
jne 0x42a3b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42a39d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42a3dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42a3cd
jmp 0x42a33e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42a3dc
add edi, ecx
jmp 0x42a33e
pop esi
mov edi, esi
mov ecx, 0x71f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42a3fa
cmp byte [edi], 5
jne 0x42a3fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42a3ff
lea edi, [esi + 0x28000]
mov eax, dword [edi]
or eax, eax
je 0x42a46e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3093c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x309dc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42a42c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x309e4]
or eax, eax
je 0x42a468
mov dword [ebx], eax
add ebx, 4
jmp 0x42a449
call dword [esi + 0x309e0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x42a49f
cmp al, 0xef
ja 0x42a492
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x42a474
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x42a481
mov ebp, dword [esi + 0x309e8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42a4d3
sub esp, 0xffffff80
jmp 0x40a295
Function at 0x4011a2
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x416d37
call int.00414c40
sub esp, 0x40
mov eax, dword [0x4233f0]
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
xor eax, ebp
lea ecx, [esi + 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], esi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov dword [ebp - 4], edi
lea ecx, [esi + 0x30]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [ebp - 4], 1
lea ecx, [esi + 0x4c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [ebp - 4], 2
lea ecx, [esi + 0x68]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [ebp - 4], 3
lea ecx, [esi + 0x84]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [ebp - 4], 4
lea eax, [ebp - 0x4c]
push eax
call fcn.00409e73
mov byte [ebp - 4], 5
mov dword [esp], str.XLBugHandler.dll
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00401149
add esp, 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
je 0x401294
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._XL_SetBugReportRootDir_4
push ebx
call edi
push str._XL_InitBugHandler_20
push ebx
mov dword [esi], eax
call edi
push str._XL_SetPeerID_4
push ebx
mov dword [esi + 4], eax
call edi
push str._XL_SetReportShowMode_4
push ebx
mov dword [esi + 8], eax
call edi
push str._XL_SetAlwaysSendReport_4
push ebx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414cf1
leave
ret
Function at 0x407db8
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x417a0c
call int.00414c40
sub esp, 0x3c
mov eax, dword [0x4233f0]
push ebx
xor eax, ebp
push esi
mov dword [ebp - 0x10], eax
push edi
lea eax, [ebp - 0x2c]
push eax
mov edi, ecx
call fcn.00409e18
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040d1f0
add esp, 0xc
mov byte [ebp - 4], 1
mov ecx, eax
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp esi, ebx
je 0x407e3f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x407e38
mov ecx, edi
call fcn.00407d3e
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00414cf1
leave
ret
Function at 0x409abc
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x417c1d
call int.00414c40
sub esp, 0x3c
mov eax, dword [0x4233f0]
push ebx
xor eax, ebp
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
push edi
xor edi, edi
lea eax, [ebp - 0x48]
push eax
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.00409e73
mov dword [ebp - 4], edi
mov dword [esp], str.dl_uac_tool.dll
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00401149
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
je 0x409b6f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetSingleProcessUseDir
push ebx
call edi
push str.GetProfileDir
push ebx
mov dword [esi], eax
call edi
push str.GetComponentsDir
push ebx
mov dword [esi + 4], eax
call edi
push str.GetSingleProcessUseDir
push ebx
mov dword [esi + 8], eax
call edi
push str.SetMultiProcessUseDir
push ebx
mov dword [esi + 0xc], eax
call edi
push str.GetMultiProcessUseDir
push ebx
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0x14], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414cf1
leave
ret
Function at 0x40c478
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x40c49d
cmp word [eax], 0
je 0x40c49d
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c49a
test al, 0x10
je 0x40c49a
xor eax, eax
inc eax
ret
xor eax, eax
ret
push 0x132b3a1
call fcn.0040cad2
pop ecx
xor al, al
ret

Function at 0x40c4ab
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x417e98
call int.00414c40
sub esp, 0x270
mov eax, dword [0x4233f0]
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, ebp
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 0x10], eax
je 0x40c589
cmp word [esi], bx
je 0x40c589
push esi
call fcn.0040c478
test al, al
pop ecx
je 0x40c589
push esi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], ebx
jae 0x40c505
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov ax, word [eax + ecx*2 - 2]
cmp ax, 0x5c
je 0x40c524
cmp ax, 0x2f
je 0x40c524
push 0x5c
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_]
push 0x41b0f8
lea ecx, [ebp - 0x2c]
call dword [0x41a180]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40c53e
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x27c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c578
cmp word [ebp - 0x250], 0x2e
jne 0x40c571
lea eax, [ebp - 0x27c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c553
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, bl
jmp 0x40c58b
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.00414cf1
leave
ret
Function at 0x40ce30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
lea edi, [ebp - 0x110]
mov ecx, 0x44
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0040c964
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x40ce6b
mov eax, 0x80004005
jmp 0x40cf3b
mov dword [ebp - 0x40], 0
mov ecx, 0xe
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x540
mov dword [ebp - 0x38], 0
call fcn.0040cdd0
movzx eax, al
test eax, eax
je 0x40cea8
mov dword [ebp - 0x34], 0
jmp 0x40ceaf
mov dword [ebp - 0x34], str.runas
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov esi, esp
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp esi, esp
call fcn.0041512c
test eax, eax
jne 0x40ceee
mov eax, 0x80004005
jmp 0x40cf3b
movzx eax, byte [ebp + 0x10]
test eax, eax
jne 0x40cefa
xor eax, eax
jmp 0x40cf3b
mov esi, esp
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp esi, esp
call fcn.0041512c
mov dword [ebp - 0x4c], 0x80004005
mov esi, esp
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp esi, esp
call fcn.0041512c
test eax, eax
jne 0x40cf38
mov eax, 0x80004005
jmp 0x40cf3b
mov eax, dword [ebp - 0x4c]
push edx
mov ecx, ebp
push eax
lea edx, [0x40cf60]
call fcn.0041514f
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x110
cmp ebp, esp
call fcn.0041512c
mov esp, ebp
pop ebp
ret