joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408cb1
Capabilities:
Encode data using xor

Disassembly:
push ecx
cmp dword [0x426a48], 0
push esi
push edi
mov edi, 0x426830
jne 0x408cd3
push edi
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov dword [0x426a48], 1
push edi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov esi, dword [esp + 0x10]
and dword [esp + 8], 0
test esi, esi
jle 0x408d2f
mov eax, dword [0x429268]
push ebx
push ebp
push 0x14
cdq
pop ebx
mov ecx, dword [esp + 0x1c]
idiv ebx
mov edi, esi
sub edi, ecx
shl edx, 9
lea ebx, [edx + 0x426a4c]
lea eax, [edi + ecx]
push 0x20
cdq
pop ebp
idiv ebp
mov al, byte [edx + 0x41b9e8]
mov edx, dword [esp + 0x10]
xor al, byte [ecx]
inc dword [esp + 0x10]
inc ecx
cmp dword [esp + 0x10], esi
mov byte [ebx + edx], al
jl 0x408d05
pop ebp
mov edi, 0x426830
pop ebx
mov eax, dword [0x429268]
push 0x14
cdq
pop ecx
idiv ecx
push edi
shl edx, 9
and byte [edx + esi + 0x426a4c], 0
inc dword [0x429268]
lea esi, [edx + 0x426a4c]
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
pop ecx
ret

Function at 0x408dda
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
push esi
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0xc], ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
mov byte [ebp - 1], bl
push dword [ebp + 8]
mov dword [ebp - 8], ebx
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408eb8
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408eb8
cmp dword [ebp + 8], 3
jne 0x408eb8
push dword [ebp - 8]
mov edi, dword [sym.imp.kernel32.dll_GetProcessHeap]
push 8
call edi
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov esi, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push esi
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408e77
push esi
push ebx
call edi
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x408eb8
cmp byte [ebp + 0x18], bl
je 0x408e87
push dword [ebp - 8]
push esi
call fcn.00408ece
pop ecx
pop ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + esi - 4]
add eax, 0xfffffffc
push eax
push esi
push ebx
mov dword [ebp + 0x18], ecx
call fcn.0040b3d0
add esp, 0xc
cmp dword [ebp + 0x18], eax
jne 0x408e6a
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 1], 1
mov dword [eax], esi
mov eax, dword [ebp - 8]
add eax, 0xfffffffc
mov dword [ecx], eax
cmp dword [ebp - 0xc], ebx
pop edi
pop esi
pop ebx
je 0x408ec9
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
leave
ret
Function at 0x40953c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8b4
push esi
push edi
push 0x24
xor eax, eax
pop ecx
lea edi, [ebp - 0x90]
push dword [ebp + 8]
mov dword [ebp - 0x94], 0x94
rep stosd dword es:[edi], eax
call fcn.00408d5e
test al, al
pop ecx
je 0x4095cd
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 1
jne 0x4095dc
push dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push esi
call fcn.0040bb60
push esi
call fcn.0040c050
add esp, 0xc
cmp byte [eax + esi - 1], 0x5c
je 0x4095aa
push 0x41a4b0
push esi
call fcn.0040bb70
pop ecx
pop ecx
push dword [ebp + 0x14]
push esi
call fcn.0040bb70
push esi
call fcn.00408d5e
add esp, 0xc
test al, al
jne 0x4095d4
push 0
push esi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x4095d4
xor eax, eax
jmp 0x409742
push 1
pop eax
jmp 0x409742
push ebx
xor esi, esi
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
call fcn.0040bc80
mov ebx, 0x208
lea eax, [ebp - 0x6ac]
push ebx
push esi
push eax
call fcn.0040bc80
add esp, 0x18
mov edi, 0x104
lea eax, [ebp - 0x6ac]
push edi
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push esi
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
push esi
mov dword [ebp + 0x14], esi
mov dword [ebp + 8], esi
call fcn.0040c33a
push eax
call fcn.0040bc50
pop ecx
pop ecx
cmp dword [ebp + 8], 0x14
jg 0x40973e
push ebx
lea eax, [ebp - 0x4a4]
push esi
push eax
call fcn.0040bc80
add esp, 0xc
lea eax, [ebp - 0x4a4]
push edi
push eax
call fcn.0040bc5d
push 0x11
xor edx, edx
pop ecx
div ecx
push dword [edx*4 + 0x41f700]
call fcn.00409410
lea eax, [ebp - 0x4a4]
push eax
call fcn.0040950a
add esp, 0x10
test al, al
jne 0x409732
lea eax, [ebp - 0x6ac]
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.0040c5e4
lea eax, [ebp - 0x29c]
push eax
call fcn.0040e914
add esp, 0xc
cmp word [ebp + eax*2 - 0x29e], 0x5c
je 0x4096c1
lea eax, [ebp - 0x29c]
push 0x41a784
push eax
call fcn.0040c5ba
pop ecx
pop ecx
lea eax, [ebp - 0x4a4]
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.0040c5ba
lea eax, [ebp - 0x29c]
push eax
call fcn.00408d9c
add esp, 0xc
test al, al
jne 0x4096f9
lea eax, [ebp - 0x29c]
push esi
push eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x409732
lea eax, [ebp - 0x8b4]
push edi
push eax
lea eax, [ebp - 0x29c]
push eax
call dword [sym.imp.kernel32.dll_GetShortPathNameW]
test eax, eax
je 0x409732
push esi
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x8b4]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push eax
push esi
push esi
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp + 0x14], 1
inc dword [ebp + 8]
cmp dword [ebp + 0x14], esi
je 0x40962f
mov eax, dword [ebp + 0x14]
pop ebx
pop edi
pop esi
leave
ret
Function at 0x409b23
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
push ebx
push ebx
push ebx
lea eax, [ebp + 8]
push ebx
push eax
push ebx
push ebx
push 0x41b2dc
mov byte [esi], bl
call dword [sym.imp.kernel32.dll_GetVolumeInformationA]
test eax, eax
jne 0x409b4a
mov byte [esi], bl
push dword [ebp + 8]
push 0x41bcb0
push esi
call fcn.0040ba39
add esp, 0xc
pop esi
pop ebx
pop ebp
ret

Function at 0x409c41
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, 0x200
push edi
push eax
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], eax
call fcn.0040c895
mov esi, dword [ebp + 8]
mov edi, eax
pop ecx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20019
push ebx
push 0x41bcf0
push 0x80000002
mov byte [esi], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409ca3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push edi
push eax
push ebx
push 0x41bce4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409ca7
mov byte [esi], bl
jmp 0x409cc0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push esi
call fcn.0040bb60
push edi
call fcn.0040c7ac
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409d11
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10008
call fcn.0040c020
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], 0xffff
mov byte [esi], bl
call fcn.00409cc5
test eax, eax
jne 0x409d77
lea eax, [ebp + 8]
push eax
push 0x20019
push ebx
push 0x41bd28
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409d77
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10008]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x41bd1c
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409d7b
mov byte [esi], bl
jmp 0x409d90
lea eax, [ebp - 0x10008]
push eax
push 0x41a45c
push esi
call fcn.0040ba39
add esp, 0xc
pop esi
pop ebx
leave
ret
Function at 0x40a33c
Capabilities:
Get networking parameters

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c048
push 0x40e93c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
xor ebx, ebx
mov byte [ebp - 0x1c], bl
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x24]
push eax
push ebx
call sub.iphlpapi.dll_GetNetworkParams
mov dword [ebp - 0x28], eax
cmp eax, 0x6f
jne 0x40a3fc
push dword [ebp - 0x24]
call fcn.0040d003
mov esi, eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x20], esi
push dword [ebp - 0x24]
push ebx
push esi
call fcn.0040bc80
add esp, 0x10
mov dword [ebp - 0x2c], esi
lea eax, [ebp - 0x24]
push eax
push esi
call sub.iphlpapi.dll_GetNetworkParams
mov dword [ebp - 0x28], eax
cmp eax, ebx
jne 0x40a3fc
mov eax, dword [esi + 0x108]
cmp eax, ebx
je 0x40a3d2
push 0x41c034
add eax, 4
push eax
call fcn.0040ba90
pop ecx
pop ecx
test eax, eax
jne 0x40a3d2
mov byte [ebp - 0x1c], 1
cmp byte [ebp - 0x1c], bl
jne 0x40a3fc
add esi, 0x10c
mov dword [ebp - 0x30], esi
cmp esi, ebx
je 0x40a3fc
push 0x41c034
lea eax, [esi + 4]
push eax
call fcn.0040ba90
pop ecx
pop ecx
test eax, eax
jne 0x40a407
mov byte [ebp - 0x1c], 1
or dword [ebp - 4], 0xffffffff
call fcn.0040a40d
jmp 0x40a41c
mov esi, dword [esi]
jmp 0x40a3dd
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a4ab
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c068
push 0x40e93c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x1c], 1
and dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0x1c]
pop ebx
pop ecx
pop edx
jmp 0x40a50b
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a521
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
push 0x41c094
push 0x30
call fcn.00408cb1
push 0x41c090
push 3
mov dword [ebp - 0xc], eax
call fcn.00408cb1
add esp, 0x10
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
je 0x40a680
push ebx
push ebx
push 3
push ebx
push dword [ebp + 8]
push 0x50
push dword [ebp + 8]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x10], esi
jne 0x40a594
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40a680
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x117]
mov byte [ebp - 0x118], bl
push 0x41c074
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 7
stosb byte es:[edi], al
call fcn.00408cb1
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0040bb70
push dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
call fcn.0040bb70
push dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push eax
call fcn.0040bb70
add esp, 0x20
lea eax, [ebp - 0x18]
push ebx
push 0x84600200
push eax
lea eax, [ebp - 0x118]
push eax
push 0x41c084
push 8
call fcn.00408cb1
pop ecx
pop ecx
push eax
push dword [ebp + 0xc]
push 0x41c07c
push 4
call fcn.00408cb1
pop ecx
pop ecx
push eax
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x40a62f
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
jmp 0x40a679
push 0xa0000000
push dword [ebp - 0xc]
call fcn.0040c050
pop ecx
push eax
push dword [ebp - 0xc]
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
je 0x40a66f
push dword [ebp + 0x10]
call fcn.0040c050
push dword [ebp + 0x10]
call fcn.0040c050
pop ecx
pop ecx
push eax
push dword [ebp + 0x10]
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x40a688
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
push dword [ebp - 4]
call edi
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x40a6e1
mov edi, dword [ebp + 0x18]
xor esi, esi
mov dword [ebp - 8], 1
mov eax, dword [edi]
cmp eax, ebx
jbe 0x40a6c2
lea ecx, [ebp - 8]
sub eax, esi
push ecx
push eax
mov eax, dword [ebp + 0x14]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40a6c2
cmp dword [ebp - 8], ebx
jbe 0x40a6c2
add esi, dword [ebp - 8]
mov eax, dword [edi]
cmp esi, eax
jb 0x40a69a
mov eax, dword [ebp + 0x14]
push dword [ebp + 8]
mov dword [edi], esi
mov byte [esi + eax], bl
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp - 4]
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40b408
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
push 0x7f
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x213]
mov byte [ebp - 0x214], bl
cmp dword [ebp + 8], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 1
mov dword [ebp - 4], ebx
pop edi
mov dword [ebp - 0xc], edi
je 0x40b505
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x40b505
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x40b505
push dword [eax]
push ebx
push dword [ebp + 8]
call fcn.0040bc80
push 0x41c0f4
push 9
mov dword [esi], ebx
call fcn.00408cb1
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0040bb60
add esp, 0x1c
push edi
push 0x41c0e8
push 0xb
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00408952
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0040bb70
pop ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop ecx
lea eax, [ebp - 4]
push eax
push 0x20019
lea eax, [ebp - 0x214]
push ebx
mov esi, 0x80000002
push eax
push esi
call edi
test eax, eax
je 0x40b54f
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x41c108
push esi
call edi
test eax, eax
jne 0x40b505
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push esi
push eax
push ebx
push 0x41c100
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
test eax, eax
je 0x40b50c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0040c050
cmp eax, 0x18
pop ecx
jb 0x40b505
xor eax, eax
lea edi, [ebp - 0xb]
mov byte [ebp - 0xc], bl
add esi, 4
stosd dword es:[edi], eax
push 2
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0040ca50
push 0x10
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0040dbff
mov ecx, dword [ebp + 0x10]
add esp, 0x18
push 1
mov dword [ecx], eax
pop eax
jmp 0x40b507
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push eax
push ebx
push 2
push 0x41c0dc
push 9
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00408952
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x40b583
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 0x10]
push dword [ebp + 0x10]
push eax
push ebx
push 1
push 0x41c0d0
push 8
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00408952
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x40b5b9
mov dword [ebp - 0xc], ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
jmp 0x40b507
Function at 0x4145af
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x422b70
cmp edx, dword [eax]
je 0x4145d1
add eax, 8
inc ecx
cmp eax, 0x422c00
jl 0x4145c2
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x422b70]
jne 0x4146ff
mov eax, dword [0x4296dc]
cmp eax, 1
je 0x4146d9
test eax, eax
jne 0x414602
cmp dword [0x420194], 1
je 0x4146d9
cmp edx, 0xfc
je 0x4146ff
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x414639
lea eax, [ebp - 0x1a4]
push 0x41c1d8
push eax
call fcn.0040bb60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040c050
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41467c
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040c050
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41c1ac
push edi
call fcn.0040ca50
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x41ca48
push eax
call fcn.0040bb60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040bb70
lea eax, [ebp - 0xa0]
push 0x41c1a8
push eax
call fcn.0040bb70
push dword [esi + 0x422b74]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040bb70
push 0x12010
lea eax, [ebp - 0xa0]
push 0x41c1b0
push eax
call fcn.00412420
add esp, 0x2c
pop edi
jmp 0x4146ff
lea eax, [ebp + 8]
lea esi, [esi + 0x422b74]
push 0
push eax
push dword [esi]
call fcn.0040c050
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10014d60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10079c60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.1006f16c
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.10015c20
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x10014db4
jmp dword [ecx*4 + 0x10014f1c]
mov al, byte [esi]
test al, al
je 0x10014de2
cmp al, 0x20
je 0x10014dce
cmp al, 0xa1
jne 0x10014de2
cmp byte [esi + 1], al
jne 0x10014de2
test al, 0x80
je 0x10014dda
mov al, byte [esi + 1]
inc esi
test al, al
je 0x10014de2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10014dc1
test ecx, ecx
je case.default.0x10014db4
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x10014db4
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x10014e28
cmp dl, 0xa1
jne 0x10014e1c
cmp byte [eax + 1], 0xa1
jne 0x10014e1c
test ecx, ecx
jne 0x10014e14
mov edi, eax
mov ecx, 1
inc eax
jmp 0x10014e3c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x10014e56
jmp 0x10014e3c
cmp dl, 0x20
jne 0x10014e3a
test ecx, ecx
jne 0x10014e33
mov edi, eax
mov ecx, 1
jmp 0x10014e3c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x10014dfc
cmp ecx, 1
jne case.default.0x10014db4
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10014db4
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10014db4
mov al, byte [esi]
test al, al
je 0x10014eae
test al, 0x80
mov byte [esp + 0x3c], al
je 0x10014e94
mov cl, byte [esi + 1]
test cl, cl
je 0x10014eae
cmp al, 0xa1
jne 0x10014e84
cmp cl, al
je 0x10014e91
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.10015eb0
inc esi
jmp 0x10014ea6
cmp al, 0x20
je 0x10014ea6
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10015ef0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10014e6d
push 0
lea ecx, [esp + 0x14]
call fcn.10015ef0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10021340
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x10014ee1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x1008bb30
call fcn.10015e20
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.1006f0fe
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x1001be50
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1007a25b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.1006ee73
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x1001bed2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.1006cc2a
mov eax, dword [eax]
push 0x1009c220
push eax
call fcn.1005f954
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.1006f0fe
test bl, bl
je 0x1001bed2
push 0x1009c220
lea ecx, [esp + 0xc]
call fcn.1006f48e
push 0x1009fd70
lea ecx, [esp + 0xc]
call fcn.1006f48e
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x1001bf0e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.1006f0fe
jmp 0x1001bfd9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x1001bf92
lea edx, [esp + 0x7c]
push 0x1009fd6c
push edx
call fcn.1005f954
add esp, 8
test eax, eax
je 0x1001bf92
lea eax, [esp + 0x7c]
push 0x1009fd68
push eax
call fcn.1005f954
add esp, 8
test eax, eax
je 0x1001bf92
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1001bf22
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.1006f0fe
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x1001c7d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x1001c832
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc