joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ba40
Capabilities:
Enumerate processes

Disassembly:
push edi
lea edi, [esi + 0xc]
push 0x22c
push 0
push edi
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [edi], 0x22c
cmp byte [esi + 8], 0
push edi
jne 0x40ba70
mov eax, dword [esi + 4]
push eax
mov byte [esi + 8], 1
call sub.KERNEL32.dll_Process32FirstW
jmp 0x40ba79
mov ecx, dword [esi + 4]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
setne al
test al, al
je 0x40ba93
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
test al, al
je 0x40ba44
mov eax, edi
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x40be80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 8]
push edx
mov edx, dword [ecx]
push 0
push eax
push edx
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], 4
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40beeb
mov ecx, dword [esp]
cmp ecx, 4
je 0x40becf
cmp ecx, 3
jne 0x40bee6
cmp dword [esp + 4], 4
jne 0x40bee6
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x18]
mov dword [edx], ecx
add esp, 0xc
ret 0xc
mov eax, 0x3f4
add esp, 0xc
ret 0xc

Function at 0x40bf00
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov eax, 0x100c
call fcn.0056a4b0
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x1008], eax
mov eax, dword [esp + 0x1010]
push esi
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push 0
push str.IntelPAN
push edx
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40c001
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x40bf89
lea eax, [esp + 0xc]
push eax
mov ecx, edi
call dword [0x582408]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.00569ed6
add esp, 0x100c
ret 4
cmp eax, 2
jne 0x40bffc
push 0x400
lea ecx, [esp + 0x810]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
mov dword [esp + 4], eax
je 0x40bfdf
cmp eax, 0x400
ja 0x40bfdf
lea eax, [esp + 0x80c]
push eax
mov ecx, edi
call dword [0x582408]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.00569ed6
add esp, 0x100c
ret 4
mov eax, 0xea
pop esi
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.00569ed6
add esp, 0x100c
ret 4
mov eax, 0x3f4
mov ecx, dword [esp + 0x100c]
pop esi
xor ecx, esp
call fcn.00569ed6
add esp, 0x100c
ret 4
Function at 0x40c020
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x56f361
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
mov esi, dword [ebp + 8]
cmp dword [ebp + 4], esi
jbe 0x40c059
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [ebp + 4]
cmp edi, dword [ebp + 8]
jbe 0x40c067
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push esi
push ebp
push edi
push ebp
lea eax, [esp + 0x2c]
push eax
push ebp
call fcn.0040c350
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [eax]
xor esi, esi
push esi
lea edx, [esp + 0x20]
push edx
push esi
push str.FilterList
mov edi, 7
push ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x7c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jl 0x40c1b4
mov ecx, dword [esp + 0x64]
cmp ecx, esi
je 0x40c1b4
cmp dword [esp + 0x18], edi
je 0x40c0c7
mov eax, 0x3f4
jmp 0x40c1b4
shr ecx, 1
mov dword [esp + 0x1c], esi
lea ebx, [esp + 0x1c]
mov edi, ecx
lea esi, [esp + 0x24]
call fcn.0040c3d0
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40c0f6
mov edx, dword [esp + 0x2c]
sub edx, eax
sar edx, 1
jne 0x40c100
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x64]
push ecx
push eax
mov eax, dword [edx]
push 0
push 0
push str.FilterList
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jl 0x40c1a1
cmp dword [esp + 0x64], 0
je 0x40c1a1
lea esi, [esp + 0x24]
call fcn.0040c330
mov ecx, dword [esp + 0x64]
shr ecx, 1
lea ebx, [eax + ecx*2]
cmp eax, ebx
jae 0x40c18c
cmp word [eax], 0
je 0x40c18c
cmp eax, ebx
mov edi, eax
je 0x40c15d
jmp 0x40c150
cmp word [edi], 0
je 0x40c15d
add edi, 2
cmp edi, ebx
jne 0x40c150
push edi
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const___wchar_t_const__]
push eax
mov esi, ebp
mov byte [esp + 0x5c], 1
call fcn.004051b0
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [edi + 2]
cmp eax, ebx
jb 0x40c13f
lea esi, [esp + 0x24]
mov dword [esp + 0x58], 0xffffffff
call fcn.0040c300
xor eax, eax
jmp 0x40c1b4
lea esi, [esp + 0x24]
mov dword [esp + 0x58], 0xffffffff
call fcn.0040c300
mov eax, edi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 8
Function at 0x40c1d0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x56da79
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4c]
mov esi, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x40c22d
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x40c234
xor eax, eax
jmp 0x40c2df
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov dword [esp + 0x44], 0
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
mov ebp, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jbe 0x40c256
call ebp
mov ebx, dword [esi + 8]
cmp dword [esi + 4], ebx
jbe 0x40c260
call ebp
cmp edi, ebx
je 0x40c290
cmp edi, dword [esi + 8]
jb 0x40c26b
call ebp
push edi
lea ecx, [esp + 0x20]
call dword [0x58240c]
push 0
push 1
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP80.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__::append_unsigned_int__wchar_t_]
cmp edi, dword [esi + 8]
jb 0x40c28b
call ebp
add edi, 0x1c
jmp 0x40c256
push 0
push 1
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP80.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__::append_unsigned_int__wchar_t_]
mov esi, dword [esp + 0x30]
push 0
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
lea edx, [esi + esi]
push edx
push eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push 7
push 0
push str.FilterList
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x44], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00569ed6
add esp, 0x34
ret 4
Function at 0x40c480
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push esi
xor eax, eax
xor ebx, ebx
push reloc.OLEAUT32.dll_SysReAllocStringLen
push ebx
push ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
cmp esi, ebx
je 0x40c4f8
mov eax, dword [esp + 0x28]
push ebp
push edi
push 4
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, ebx
je 0x40c4f3
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40c4f0
cmp dword [esp + 0x14], 4
jne 0x40c4f0
mov ebx, 1
push edi
call ebp
push esi
call ebp
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x1c
ret

Function at 0x40d480
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x40d4a3
cmp esi, 0xffffffff
jne 0x40d4a9
or eax, 0xffffffff
pop esi
pop ecx
ret
mov edx, dword [esp + 0xc]
push edi
push 0
lea ecx, [esp + 0xc]
push ecx
push ebx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40d4d7
mov edi, dword [esp + 8]
cmp edi, ebx
jne 0x40d4d7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
Function at 0x40d780
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
sub esp, 0x20c
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x206
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea edx, [esp + 4]
push 0x104
push edx
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi + 0x60], eax
je 0x40d8ea
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WinHttpOpen
push eax
call edi
mov ecx, dword [esi + 0x60]
push str.WinHttpConnect
push ecx
mov dword [esi + 4], eax
call edi
mov edx, dword [esi + 0x60]
push str.WinHttpOpenRequest
push edx
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x60]
push str.WinHttpAddRequestHeaders
push eax
call edi
mov ecx, dword [esi + 0x60]
push str.WinHttpSendRequest
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi + 0x60]
push str.WinHttpReceiveResponse
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x60]
push str.WinHttpQueryHeaders
push eax
call edi
mov ecx, dword [esi + 0x60]
push str.WinHttpReadData
push ecx
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [esi + 0x60]
push str.WinHttpCloseHandle
push edx
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x60]
push str.WinHttpCrackUrl
push eax
call edi
mov ecx, dword [esi + 0x60]
push str.WinHttpSetOption
push ecx
mov dword [esi + 0x28], eax
call edi
mov edx, dword [esi + 0x60]
push str.WinHttpSetTimeouts
push edx
mov dword [esi + 0x2c], eax
call edi
cmp dword [esi + 4], 0
mov dword [esi + 0x30], eax
pop edi
je 0x40d8e6
cmp dword [esi + 0x10], 0
je 0x40d8e6
cmp dword [esi + 0x24], 0
je 0x40d8e6
cmp dword [esi + 8], 0
je 0x40d8e6
cmp dword [esi + 0xc], 0
je 0x40d8e6
cmp dword [esi + 0x1c], 0
je 0x40d8e6
cmp dword [esi + 0x20], 0
je 0x40d8e6
cmp dword [esi + 0x18], 0
je 0x40d8e6
cmp dword [esi + 0x14], 0
je 0x40d8e6
cmp dword [esi + 0x28], 0
je 0x40d8e6
cmp dword [esi + 0x2c], 0
je 0x40d8e6
test eax, eax
je 0x40d8e6
mov eax, 1
jmp 0x40d8e8
xor eax, eax
mov dword [esi], eax
mov ecx, dword [esp + 0x208]
mov eax, dword [esi]
xor ecx, esp
call fcn.00569ed6
add esp, 0x20c
ret
Function at 0x40d910
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
sub esp, 0x20c
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x206
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.wininet.dll
lea edx, [esp + 4]
push 0x104
push edx
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi + 0x64], eax
je 0x40da53
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InternetOpenW
push eax
call edi
mov ecx, dword [esi + 0x64]
push str.InternetConnectW
push ecx
mov dword [esi + 0x38], eax
call edi
mov edx, dword [esi + 0x64]
push str.HttpOpenRequestW
push edx
mov dword [esi + 0x3c], eax
call edi
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x64]
push str.HttpAddRequestHeadersW
push eax
call edi
mov ecx, dword [esi + 0x64]
push str.HttpSendRequestW
push ecx
mov dword [esi + 0x44], eax
call edi
mov edx, dword [esi + 0x64]
push str.HttpQueryInfoW
push edx
mov dword [esi + 0x48], eax
call edi
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x64]
push str.InternetReadFile
push eax
call edi
mov ecx, dword [esi + 0x64]
push str.InternetCloseHandle
push ecx
mov dword [esi + 0x50], eax
call edi
mov edx, dword [esi + 0x64]
push str.InternetCrackUrlW
push edx
mov dword [esi + 0x54], eax
call edi
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x64]
push str.InternetSetOptionW
push eax
call edi
cmp dword [esi + 0x38], 0
mov dword [esi + 0x5c], eax
pop edi
je 0x40da4e
cmp dword [esi + 0x3c], 0
je 0x40da4e
cmp dword [esi + 0x40], 0
je 0x40da4e
cmp dword [esi + 0x44], 0
je 0x40da4e
cmp dword [esi + 0x48], 0
je 0x40da4e
cmp dword [esi + 0x4c], 0
je 0x40da4e
cmp dword [esi + 0x50], 0
je 0x40da4e
cmp dword [esi + 0x54], 0
je 0x40da4e
cmp dword [esi + 0x58], 0
je 0x40da4e
test eax, eax
je 0x40da4e
mov eax, 1
jmp 0x40da50
xor eax, eax
mov dword [esi + 0x34], eax
mov ecx, dword [esp + 0x208]
mov eax, dword [esi + 0x34]
xor ecx, esp
call fcn.00569ed6
add esp, 0x20c
ret

Function at 0x40e600
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [esi + 0x10b4], 8
jb 0x40e612
mov ecx, dword [esi + 0x10a0]
jmp 0x40e618
lea ecx, [esi + 0x10a0]
movzx eax, byte [esi + 0x10c0]
push eax
push esi
call fcn.0040e820
test al, al
jne 0x40e62e
xor al, al
pop ecx
ret
mov eax, esi
call fcn.0040f0c0
test al, al
je 0x40e62a
push 0
push 0
push esi
push 0x40f040
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1094], eax
mov al, 1
pop ecx
ret
Function at 0x40ecf1
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x108c]
cmp eax, 0xffffffff
jne 0x40ed09
mov eax, 1
pop esi
pop ecx
ret 0xc
lea ecx, [esi + 0x1054]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x14]
push ecx
push edx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ed3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40ecff
mov byte [esi + 0x106c], 1
mov eax, 2
pop esi
pop ecx
ret 0xc
Function at 0x40fa40
Capabilities:
Create thread

Disassembly:
push esi
push 0xc
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x10]
add esp, 4
push 0
mov esi, eax
mov eax, dword [esp + 0xc]
push 0
push esi
push 0x40fa10
test edi, edi
push 0
setne cl
push 0
mov dword [esi], eax
mov byte [esi + 8], cl
mov dword [esi + 4], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x40fa87
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
pop esi
ret
test edi, edi
je 0x40fa91
mov dword [edi], eax
mov al, 1
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret

Function at 0x40fdd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40fde7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40fe18
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x40fe14
cmp esi, eax
jae 0x40fe18
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x40fe04
cmp esi, eax
jb 0x40fe1e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x412180
Capabilities:
Set registry value

Disassembly:
mov edx, dword [eax + 4]
push ebp
xor ebp, ebp
test edx, edx
je 0x4121cb
test ebx, ebx
je 0x4121cb
test esi, esi
je 0x4121cb
mov eax, esi
push edi
lea edi, [eax + 2]
jmp 0x4121a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4121a0
sub eax, edi
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop edi
mov eax, 1
je 0x4121cd
mov eax, ebp
pop ebp
ret
Function at 0x4121d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
push ebp
mov ebp, dword [esp + 0x18]
push esi
xor esi, esi
test eax, eax
mov dword [esp + 0xc], esi
je 0x4122d5
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4122d5
push edi
lea edx, [esp + 0x20]
push edx
push ebx
lea edx, [esp + 0x14]
push edx
push esi
push ecx
lea edi, [ebp + ebp]
push eax
mov dword [esp + 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esp + 0xc], 1
jne 0x4122df
test eax, eax
jne 0x412237
mov word [edi + ebx - 2], si
pop edi
lea eax, [esi + 1]
pop esi
pop ebp
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
add eax, 2
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x4122c8
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
push esi
lea edx, [esp + 0x14]
push edx
mov edx, dword [ecx + 4]
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4122af
mov eax, dword [esp + 0x20]
lea ecx, [ebp - 1]
push ecx
push esi
shr eax, 1
push ebp
push ebx
mov word [esi + eax*2], 0
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
add esp, 0x10
mov word [edi + ebx - 2], 0
push esi
mov edi, 1
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 8
ret 0xc
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 8
ret 0xc
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 8
ret 0xc
mov eax, esi
pop esi
pop ebp
add esp, 8
ret 0xc
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 8
ret 0xc
Function at 0x412ac0
Capabilities:
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x57a298
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.0040ff50
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x412b7a
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push esi
call edi
test eax, eax
jne 0x412b7a
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x412b7a
lea ecx, [esp + 0x14]
call fcn.00412a10
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x412b5b
lea ecx, [esp + 0x14]
call fcn.00410000
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push eax
call fcn.00412ac0
add esp, 4
test eax, eax
je 0x412b3c
push 0
push esi
call edi
test eax, eax
jne 0x412b7a
call ebx
cmp eax, 0xb7
jne 0x412b3c
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x412b9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4132c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
xor ecx, ecx
cmp eax, ecx
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], ecx
je 0x413399
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x20]
push edx
push ecx
lea edx, [esp + 0x18]
push edx
push ecx
push ebp
push eax
call ebx
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x41330d
cmp eax, 2
jne 0x413399
call fcn.00410120
mov eax, dword [esi]
mov ecx, dword [esp + 0x20]
sub eax, 0x10
shr ecx, 1
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
add ecx, 1
sub eax, ecx
or edx, eax
jge 0x413338
mov eax, esi
call fcn.00410610
mov edi, dword [esi]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [eax]
push edi
lea edx, [esp + 0x18]
push edx
push 0
push ebp
push ecx
call ebx
test eax, eax
jne 0x413399
mov edx, dword [esp + 0x20]
shr edx, 1
mov word [edi + edx*2], ax
mov edx, dword [esi]
test edx, edx
je 0x413381
mov eax, edx
lea edi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413370
sub eax, edi
sar eax, 1
js 0x4133a7
cmp eax, dword [edx - 8]
jg 0x4133a7
mov dword [edx - 0xc], eax
mov ecx, dword [esi]
mov word [ecx + eax*2], 0
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
push 0x80070057
call fcn.0040fcd0
int3

Function at 0x413db0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x413e45
push edi
lea ecx, [esp + 0x10]
push ecx
push ebp
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esp + 0x10], ebx
mov edi, eax
jne 0x413e3d
cmp edi, 0x200000
ja 0x413e3d
lea edx, [edi + 2]
push esi
push edx
call fcn.00569ecc
add esp, 4
push ebx
mov esi, eax
lea eax, [esp + 0x14]
push eax
push edi
push esi
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413e3c
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x413e3c
mov edx, dword [esp + 0x1c]
mov byte [eax + esi], bl
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov byte [ecx + esi + 1], bl
mov dword [edx], esi
mov dword [eax], edi
mov ebx, 1
pop esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret 8