joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403430
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x1d0
mov eax, dword [0x407060]
xor eax, esp
mov dword [esp + 0x1cc], eax
lea eax, [esp + 0x3c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40346f
xor eax, eax
mov ecx, dword [esp + 0x1cc]
xor ecx, esp
call fcn.00403dfb
add esp, 0x1d0
ret
push esi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xc]
push edx
mov esi, eax
mov dword [esp + 0x14], 0x3e8
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
call fcn.004028f0
add esp, 8
test eax, eax
je 0x4034f0
push esi
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x14], 0xffffffff
call fcn.004029a0
add esp, 0x10
test eax, eax
je 0x4034f0
lea eax, [esp + 0xc]
push eax
push esi
call fcn.00402b80
add esp, 8
cmp eax, 1
jne 0x403508
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1cc]
xor ecx, esp
call fcn.00403dfb
add esp, 0x1d0
ret
push edi
mov edi, dword [esp + 8]
lea edx, [esp + 0x18]
push edx
push esi
push edi
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test byte [esp + 0x18], 0x10
je 0x40357a
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x40357a
mov eax, dword [esp + 0x1dc]
push eax
push edi
call fcn.00403200
add esp, 8
test eax, eax
je 0x40357a
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.00402b80
add esp, 8
cmp eax, 1
push edi
je 0x40357b
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x1cc]
xor ecx, esp
call fcn.00403dfb
add esp, 0x1d0
ret
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x1d4]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00403dfb
add esp, 0x1d0
ret
Function at 0x4035a0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x1d0
mov eax, dword [0x407060]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x1d8]
push ebp
mov ebp, dword [esp + 0x1e0]
mov dword [esp + 0x1d4], eax
lea eax, [esp + 0x44]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4035f1
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1cc]
xor ecx, esp
call fcn.00403dfb
add esp, 0x1d0
ret
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edi, eax
mov dword [esp + 0x18], 0xfa0
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call fcn.004028f0
add esp, 8
test eax, eax
je 0x4036e3
push edi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x24], 0xffffffff
call fcn.004029a0
add esp, 0x10
test eax, eax
je 0x4036e3
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00402b80
add esp, 8
cmp eax, 1
jne 0x40366d
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x4036dd
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push edi
push esi
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test byte [esp + 0x20], 0x10
je 0x4036dc
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4036dc
push esi
call fcn.00402d40
add esp, 4
test eax, eax
je 0x4036dc
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00402b80
add esp, 8
cmp eax, 1
je 0x4036dc
push ebp
push ebx
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x20], 0
call fcn.004033e0
add esp, 0x10
test eax, eax
push esi
je 0x4036dd
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp + 0x10]
jmp 0x4036e5
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
mov ecx, dword [esp + 0x1dc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403dfb
add esp, 0x1d0
ret
Function at 0x40378a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
push edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
jne 0x4037ad
mov eax, 0x80004005
jmp 0x403839
push ebx
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 8]
call fcn.004036fe
mov ebx, dword [ebp - 8]
cmp ebx, edi
jne 0x4037ce
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
mov eax, 0x80004005
jmp 0x403837
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4037e7
mov edi, 0x80004005
jmp 0x40382f
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x4055d4
push ebx
mov dword [ebp - 4], edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4037e0
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xa]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [edx], ecx
mov edx, dword [eax + 8]
mov ecx, 0xffff
and edx, ecx
mov dword [esi], edx
movzx edx, word [eax + 0xe]
mov esi, dword [ebp + 0x14]
mov dword [esi], edx
mov eax, dword [eax + 0xc]
and eax, ecx
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
push ebx
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
mov eax, edi
pop ecx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x403880
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x407060]
mov edx, dword [ebp + 0x19c]
xor eax, ebp
test edx, edx
push ebx
push esi
mov esi, dword [ebp + 0x1a0]
mov dword [ebp + 0x190], eax
je 0x40390d
test esi, esi
je 0x40390d
mov ebx, dword [ebp + 0x1a4]
cmp ebx, 1
jle 0x40390d
and word [ebp - 0x78], 0
and dword [ebp - 0x80], 0
push edi
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x76]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
push edx
mov dword [ebp - 0x7c], 0x104
call sub.WS2_32.dll_WSCGetProviderPath
cmp eax, 0xffffffff
pop edi
je 0x40390d
cmp dword [ebp - 0x7c], ebx
jg 0x40390d
dec ebx
push ebx
push esi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
neg eax
sbb eax, eax
neg eax
jmp 0x40390f
xor eax, eax
mov ecx, dword [ebp + 0x190]
pop esi
xor ecx, ebp
pop ebx
call fcn.00403dfb
add ebp, 0x194
leave
ret
Function at 0x403926
Capabilities:
Get common file path

Disassembly:
mov eax, 0x40430e
call fcn.00403ff8
sub esp, 0x230
mov eax, dword [0x407060]
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
push str.shell32.dll
mov dword [ebp - 0x220], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, eax
xor esi, esi
xor eax, eax
cmp edx, esi
je 0x403a40
push edi
mov word [ebp - 0x218], si
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
push 0x4055e8
push edx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x4039f0
lea ecx, [ebp - 0x21c]
push ecx
push esi
push esi
push ebx
mov dword [ebp - 0x21c], esi
call eax
cmp dword [ebp - 0x21c], esi
mov edi, eax
jne 0x4039b1
xor eax, eax
jmp 0x403a3f
push dword [ebp - 0x21c]
call dword [sym.imp.MSVCR71.dll_wcslen]
cmp eax, 0x104
pop ecx
push dword [ebp - 0x21c]
jb 0x4039d3
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x4039aa
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x403a05
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push dword [ebp + 0x10]
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, esi
jne 0x4039aa
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x23c]
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__]
mov ecx, dword [ebp - 0x220]
push eax
mov dword [ebp - 4], esi
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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
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_]
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.00403dfb
leave
ret
Function at 0x403a58
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xbc]
sub esp, 0x13c
mov eax, dword [0x407060]
push esi
xor eax, ebp
mov esi, 0x114
push esi
mov dword [ebp + 0xb8], eax
lea eax, [ebp - 0x5c]
push 0
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x58], 5
ja 0x403aaa
jne 0x403aa3
cmp dword [ebp - 0x54], 1
jae 0x403aaa
push str.GetSystemInfo
jmp 0x403aaf
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x24
mov esi, eax
lea eax, [ebp - 0x80]
push 0
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
test esi, esi
je 0x403add
lea eax, [ebp - 0x80]
push eax
call esi
movzx ecx, word [ebp - 0x80]
xor eax, eax
cmp ecx, 6
pop esi
je 0x403af3
cmp ecx, 8
jle 0x403af6
cmp ecx, 0xa
jg 0x403af6
xor eax, eax
inc eax
mov ecx, dword [ebp + 0xb8]
xor ecx, ebp
call fcn.00403dfb
add ebp, 0xbc
leave
ret

Function at 0x403b0b
Capabilities:
Delete registry key
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_EntriesNetMonTest
xor edi, edi
push closesocket
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x403bef
cmp dword [ebp - 4], edi
je 0x403bef
push 4
pop esi
push esi
lea eax, [ebp - 8]
push eax
push esi
push edi
mov ebx, str.TestValue
push ebx
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 0x22b8
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], eax
call edi
cmp dword [ebp - 0x14], 0
jne 0x403bef
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_EntriesNetMonTest
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x403bef
cmp dword [ebp - 4], eax
je 0x403bef
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov ebx, eax
call edi
test ebx, ebx
jne 0x403bef
cmp dword [ebp - 0xc], esi
jne 0x403bef
cmp dword [ebp - 0x10], esi
jne 0x403bef
cmp dword [ebp - 8], 0x22b8
jne 0x403bef
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_EntriesNetMonTest
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
sbb eax, eax
neg eax
jmp 0x403bf2
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403e5d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x405770
call fcn.00404098
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x403e98
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403e98
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x403eb0
cmp eax, 0x20b
je 0x403e9d
mov dword [ebp - 0x1c], edi
jmp 0x403ec4
cmp dword [ecx + 0x84], 0xe
jbe 0x403e98
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x403ebe
cmp dword [ecx + 0x74], 0xe
jbe 0x403e98
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x40708c], 0xffffffff
or dword [0x407090], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x407084]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x407080]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x407088], eax
call fcn.0040412e
call fcn.004041ce
cmp dword [0x407070], edi
jne 0x403f24
push fcn.004041ce
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.004041bc
push 0x407010
push 0x40700c
call sub.MSVCR71.dll__initterm
push 0x404172
call fcn.0040411c
mov eax, dword [0x40707c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x407078]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x34], eax
cmp eax, edi
jge 0x403f78
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x407008
push section..data
call sub.MSVCR71.dll__initterm
call dword [sym.imp.MSVCR71.dll___p___winitenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.00402620
add esp, 0x14
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x403fb4
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x403fe9
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004040d3
ret
Function at 0xacc370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xacc38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xaf5074
push ecx
mov edi, eax
call fcn.00ae0198
mov esi, eax
add esp, 8
test esi, esi
jne 0xacc3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00ae002e
push esi
call fcn.00adffb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xacf850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xacf8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xafa720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xacf8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00ae01e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xacf8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xafa720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xacf92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00ae1082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xacf957
mov word [eax], si
add eax, 2
push eax
call fcn.00ae1030
add esp, 4
jmp 0xacf959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xacf8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xacf8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xacfff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xad0080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xad00c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xaf5458
push ecx
call fcn.00ae01e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00ae01e1
add esp, 0x10
jmp 0xad00d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00ae020b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00adfdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00ad0050
mov eax, dword [0xafa728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xad013b
push esi
call fcn.00acffb0
add esp, 4
mov dword [0xafa728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xad014c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00acfff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xad3440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xad34b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xad348e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xad3471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xad347e
add edx, ecx
cmp ebx, edx
jb 0xad348a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xad3467
xor ecx, ecx
jmp 0xad34a2
test eax, eax
jne 0xad3492
xor ecx, ecx
jmp 0xad34a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00ad33c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xad38f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xad3921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xad3946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xad396e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xad3993
push ecx
push esi
call fcn.00ad34c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0xad4c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0xad4c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xad4c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xad4c38
add edx, eax
cmp ebx, edx
jb 0xad4c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xad4c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xad4c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0xad4c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xad4cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xad4c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xad4ca8
add edx, ecx
cmp ebx, edx
jb 0xad4cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xad4c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xad4f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00ae1145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xad4ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0xad4fdd
lea eax, [esp + 0x18]
push eax
jmp 0xad4fe2
push 0xafa720
call fcn.00ae0fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xad4fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xad4f40
push 4
push ecx
push eax
call fcn.00ae143f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xad5310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00ae1145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xad53ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0xad538d
lea eax, [esp + 0x18]
push eax
jmp 0xad5392
push 0xafa720
call fcn.00ae0fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xad5360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xad4f40
push 4
push ecx
push eax
call fcn.00ae143f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret