joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418f66
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
push esi
lea eax, [ebp - 0x834]
push dword [ebp + 8]
push 0x800
push eax
push 0x429ea8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x834]
push 0x2c
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x418fe8
lea eax, [esi + 1]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
and byte [esi], 0
mov edi, eax
push 0
push 0x429b28
lea eax, [ebp - 0x34]
push 0x32
push eax
call fcn.00418c1c
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 0x1c
neg eax
sbb eax, eax
not eax
and eax, edi
pop edi
jmp 0x418fea
xor eax, eax
pop esi
leave
ret

Function at 0x4192d2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov esi, 0x2000000
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 4], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4193a0
lea eax, [ebp - 8]
push eax
push 1
push 2
push ebx
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41939b
lea eax, [ebp - 4]
push eax
push str.S_1_16_4096
call fcn.0041a1a6
pop ecx
test eax, eax
pop ecx
je 0x419396
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], 0x20
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea eax, [ebp - 0x14]
push eax
push 0x19
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x41938d
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov ebx, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x4195e7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
push ebx
mov eax, SysReAllocStringLen
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
push 0x10e
lea eax, [ebp - 0x138]
mov esi, str.SOFTWAREClientsStartMenuInternetFIREFOX.EXE_shellopencommand
push ebx
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_firefox.exe
mov dword [ebp - 0x10], str.FirefoxHTML_shellopencommand
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x20], SysReAllocStringLen
mov dword [ebp - 0x1c], ebx
call sub.MSVCRT.dll_memset
mov edi, dword [ebp + 8]
add esp, 0xc
test esi, esi
mov dword [ebp - 4], ebx
je 0x4196b8
xor esi, esi
cmp dword [ebp - 4], ebx
jne 0x4196b8
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push dword [ebp + esi - 0x18]
push dword [ebp + esi - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4196af
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x138]
push eax
push ebx
push ebx
push 0x429ea8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4196a6
cmp dword [ebp + 8], ebx
jbe 0x4196a6
lea eax, [ebp - 0x138]
push eax
push edi
call sub.MSVCRT.dll_strcpy
pop ecx
mov dword [ebp - 4], 1
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 4
cmp dword [ebp + esi - 0x18], ebx
jne 0x419644
cmp byte [ebp + 0xc], bl
je 0x41973b
cmp byte [edi], 0x22
mov esi, dword [sym.imp.MSVCRT.dll__mbsstr]
jne 0x41972a
push 0x212
lea eax, [ebp - 0x34c]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x34c]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x34c]
push 0x428308
push eax
call esi
add esp, 0x1c
cmp eax, ebx
je 0x41971b
lea ecx, [ebp - 0x34c]
sub eax, ecx
push eax
lea eax, [ebp - 0x34c]
push eax
push edi
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
jmp 0x41972a
lea eax, [ebp - 0x34c]
push eax
push edi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 0x429b64
push edi
call esi
pop ecx
cmp eax, ebx
pop ecx
je 0x41973b
mov byte [eax], 0x30
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419743
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
mov esi, 0x212
xor ebx, ebx
push esi
lea eax, [ebp - 0x268]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x268]
push ebx
push eax
call fcn.004195e7
add esp, 0x14
test eax, eax
je 0x4198d2
push dword [ebp + 8]
lea eax, [ebp - 0x268]
push 0x429b64
push esi
push eax
call fcn.0041775b
add esp, 0x10
test eax, eax
jne 0x4197ba
lea eax, [ebp - 0x268]
push 0x42795c
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 8]
lea eax, [ebp - 0x268]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
cmp byte [ebp + 0x18], bl
je 0x4197ea
lea eax, [ebp - 0x268]
push str._new_tab
push eax
call dword [sym.imp.MSVCRT.dll__mbsstr]
pop ecx
test eax, eax
pop ecx
jne 0x4197ea
lea eax, [ebp - 0x268]
push str.__new_tab
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x44
lea eax, [ebp - 0x54]
pop esi
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
cmp byte [ebp + 0xc], bl
mov dword [ebp - 0x54], esi
je 0x419817
or dword [ebp - 0x28], 1
mov word [ebp - 0x24], bx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x268]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4198d2
cmp dword [ebp + 0x14], ebx
je 0x4198cd
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
xor edi, edi
cmp dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], ebx
jle 0x419873
cmp edi, ebx
jne 0x419873
push 0x64
call esi
push dword [ebp - 8]
call fcn.004192af
inc dword [ebp + 0x18]
mov edi, eax
mov eax, dword [ebp + 0x18]
pop ecx
cmp eax, dword [ebp + 0x14]
jl 0x419855
push 0x1f4
call esi
cmp edi, ebx
je 0x41989a
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push edi
call esi
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push edi
call esi
cmp dword [ebp + 0x10], ebx
pop edi
je 0x4198bd
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4198bd
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 8]
jmp 0x4198d4
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x4198d8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov esi, 0x104
push edi
mov byte [eax], bl
push esi
lea eax, [ebp - 0x10c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str..html
push SysReAllocStringLen
call edi
test eax, eax
jne 0x419948
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
push 0x429ea8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x10c], bl
je 0x4199a8
lea eax, [ebp - 0x10c]
push str._shellopencommand
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 4]
pop ecx
push eax
push 0x20019
lea eax, [ebp - 0x10c]
push ebx
push eax
push SysReAllocStringLen
call edi
test eax, eax
jne 0x4199a8
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push esi
push ebx
push ebx
push 0x429ea8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4199ab
mov esi, dword [ebp + 8]
cmp byte [esi], bl
jne 0x4199e3
mov edi, 0x42c398
push edi
call fcn.0041a020
cmp byte [esi], bl
pop ecx
je 0x4199df
push 0x428308
push esi
call sub.MSVCRT.dll_strcpy
push edi
push esi
call sub.MSVCRT.dll_strcat
push str.internet_exploreriexplore.exe_____1_
push esi
call sub.MSVCRT.dll_strcat
add esp, 0x18
xor al, al
jmp 0x4199e5
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4199ea
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
mov edi, eax
add edi, 0x20d
push edi
call sub.MFC42.DLL_operatornew
xor ebx, ebx
mov esi, eax
push edi
push ebx
push esi
call sub.MSVCRT.dll_memset
push edi
push esi
call fcn.004198d8
add esp, 0x1c
cmp byte [esi], bl
jne 0x419a44
push esi
call sub.MFC42.DLL_operatordelete
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004193a7
add esp, 0x18
jmp 0x419bb5
push 0x429b64
push esi
call dword [sym.imp.MSVCRT.dll__mbsstr]
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x419aa3
push edi
call sub.MFC42.DLL_operatornew
push edi
push ebx
push eax
mov dword [ebp - 8], eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 8]
sub eax, esi
push eax
push esi
push edi
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
push dword [ebp + 8]
push edi
call sub.MSVCRT.dll_strcat
mov eax, dword [ebp - 4]
add eax, 2
push eax
push edi
call sub.MSVCRT.dll_strcat
push edi
push esi
call sub.MSVCRT.dll_strcpy
push edi
call sub.MFC42.DLL_operatordelete
add esp, 0x38
jmp 0x419ac5
push 0x429b60
push esi
call sub.MSVCRT.dll_strcat
push dword [ebp + 8]
push esi
call sub.MSVCRT.dll_strcat
push 0x428308
push esi
call sub.MSVCRT.dll_strcat
add esp, 0x18
push 0x44
lea eax, [ebp - 0x5c]
pop edi
push edi
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x18]
push ebx
push eax
mov dword [ebp - 0x5c], edi
call sub.MSVCRT.dll_memset
add esp, 0x18
cmp byte [ebp + 0xc], bl
je 0x419af2
or dword [ebp - 0x30], 1
mov word [ebp - 0x2c], bx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x208
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push esi
mov edi, eax
call sub.MFC42.DLL_operatordelete
cmp edi, ebx
pop ecx
jne 0x419b20
xor eax, eax
jmp 0x419bb5
mov eax, dword [ebp - 0x10]
cmp dword [ebp + 0x14], ebx
mov dword [ebp + 0xc], eax
je 0x419b80
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
cmp dword [ebp + 0x14], ebx
mov dword [ebp + 8], ebx
jle 0x419b59
cmp edi, ebx
jne 0x419b59
push 0x64
call esi
push dword [ebp - 0x10]
call fcn.004192af
inc dword [ebp + 8]
mov edi, eax
mov eax, dword [ebp + 8]
pop ecx
cmp eax, dword [ebp + 0x14]
jl 0x419b3b
push 0x1f4
call esi
cmp edi, ebx
je 0x419b80
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push edi
call esi
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push edi
call esi
cmp dword [ebp + 0x10], ebx
je 0x419ba2
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x419ba2
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419c41
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x620], bl
lea eax, [esi + 0x620]
je 0x419c5f
xor eax, eax
jmp 0x419dbd
mov byte [eax], 1
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x618], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x61c], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x419c88
cmp byte [eax], bl
je 0x419c88
push eax
push esi
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x419ca2
cmp byte [eax], bl
je 0x419ca2
push eax
lea eax, [esi + 0x208]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
cmp byte [esi], bl
push edi
je 0x419ccb
lea edi, [esi + 0x410]
push esi
push edi
call sub.MSVCRT.dll_strcat
cmp byte [esi + 0x208], bl
pop ecx
pop ecx
je 0x419ccb
push 0x42795c
push edi
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
cmp byte [esi + 0x208], bl
pop edi
je 0x419ce5
push dword [ebp + 0xc]
lea eax, [esi + 0x410]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
call fcn.0041849a
test al, al
je 0x419d63
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
push 0xb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp dword [ebp + 0xc], ebx
je 0x419dab
lea eax, [esi + 0x630]
push eax
lea eax, [esi + 0x640]
push eax
push ebx
push ebx
lea eax, [esi + 0x410]
push dword [esi + 0x618]
push ebx
push ebx
push ebx
push eax
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov dword [esi + 0x628], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x628], ebx
mov dword [esi + 0x62c], eax
jne 0x419d58
mov byte [esi + 0x621], 1
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x419dab
lea eax, [esi + 0x630]
push eax
lea eax, [esi + 0x640]
push eax
push ebx
push ebx
lea eax, [esi + 0x410]
push dword [esi + 0x618]
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [esi + 0x628], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x628], ebx
mov dword [esi + 0x62c], eax
jne 0x419dab
mov byte [esi + 0x621], 1
mov eax, dword [esi + 0x638]
mov dword [esi + 0x624], eax
mov eax, dword [esi + 0x628]
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x419e46
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x620], bl
je 0x419ec1
cmp dword [esi + 0x628], ebx
jne 0x419ec1
mov al, byte [esi]
cmp al, bl
jne 0x419e6a
cmp byte [esi + 0x208], bl
je 0x419eb5
neg al
sbb eax, eax
lea ecx, [esi + 0x208]
and eax, esi
push edi
mov edi, eax
mov al, byte [ecx]
neg al
sbb eax, eax
push ebx
and eax, ecx
push ebx
push eax
push edi
push 0x4290ac
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
pop edi
jle 0x419ea3
mov dword [esi + 0x628], 1
jmp 0x419eb5
imul eax, eax, 0xf4240
add dword [esi + 0x62c], eax
mov dword [esi + 0x628], ebx
push dword [esi + 0x62c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x628]
pop esi
pop ebx
ret
Function at 0x41a020
Capabilities:
Get common file path

Disassembly:
push ebx
xor ebx, ebx
cmp byte [0x42c5a9], bl
push esi
mov esi, 0x42c4a4
jne 0x41a0a5
push 0x105
push ebx
push esi
mov byte [0x42c5a9], 1
call sub.MSVCRT.dll_memset
push esi
push ebx
push ebx
push 0x8026
push ebx
call fcn.004159e9
add esp, 0x20
test eax, eax
jl 0x41a060
push 0x4281ec
jmp 0x41a09d
push edi
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x4281ec
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll__mbsstr]
pop ecx
cmp edi, ebx
pop ecx
pop edi
je 0x41a08b
cmp eax, ebx
je 0x41a08b
mov byte [eax + 1], bl
jmp 0x41a098
push 0x429c98
push esi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 0x429c88
push esi
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push esi
push dword [esp + 0x10]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
pop esi
pop ebx
ret

Function at 0x41ae87
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
mov esi, 0x105
push edi
push esi
lea eax, [ebp - 0x10c]
push 0
mov dword [ebp - 4], ecx
push eax
call sub.MSVCRT.dll_memset
mov ebx, dword [ebp + 8]
add esp, 0xc
test ebx, ebx
je 0x41af43
push 0x5c
push ebx
call dword [sym.imp.MSVCRT.dll__mbschr]
push 0x2f
push ebx
mov edi, eax
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 0x10
test eax, eax
je 0x41aed9
cmp eax, edi
jae 0x41aed9
mov edi, eax
test edi, edi
je 0x41af43
push esi
lea eax, [ebp - 0x10c]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 4]
push dword [eax + 0x14]
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strcpy
mov eax, edi
sub eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x10c]
push dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcat]
add esp, 0x20
lea eax, [ebp - 0x10c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41af37
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41af3f
lea ebx, [edi + 1]
jmp 0x41aeb0
xor al, al
jmp 0x41af45
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4064f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x461d3b
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.00456b9b
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x406572
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00454aea
mov eax, dword [eax]
push 0x4771f0
push eax
call fcn.004477c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00456e26
test bl, bl
je 0x406572
push 0x4771f0
lea ecx, [esp + 0xc]
call fcn.004571b6
push 0x47ad50
lea ecx, [esp + 0xc]
call fcn.004571b6
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 0x4065ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00456e26
jmp 0x406679
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 0x406632
lea edx, [esp + 0x7c]
push 0x47ad4c
push edx
call fcn.004477c4
add esp, 8
test eax, eax
je 0x406632
lea eax, [esp + 0x7c]
push 0x47ad48
push eax
call fcn.004477c4
add esp, 8
test eax, eax
je 0x406632
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 0x4065c2
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.00456e26
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 0x406e70
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 0x406ed2
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
Function at 0x406ee0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x461dbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4812bc]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x407018
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x406f46
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00456e26
xor eax, eax
jmp 0x40708f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00456f63
push esi
lea ecx, [esp + 0xc]
call fcn.004571f2
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40706d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00406e70
test eax, eax
jne 0x40706d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.00406e70
test eax, eax
jne 0x40706d
lea eax, [esp + 0x14]
push 0x47ad64
push eax
call fcn.00448800
mov esi, eax
add esp, 8
test esi, esi
jne 0x40704c
lea ecx, [esp + 0x14]
push 0x47ad60
push ecx
call fcn.00448780
mov esi, eax
add esp, 8
test esi, esi
jne 0x40704c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40704f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00456f13
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x406f5e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00456e26
xor eax, eax
jmp 0x40708f
mov byte [esi], 0
push 0x47ad5c
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00456e26
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4