joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b406
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1110
call fcn.00415a90
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x408]
cmp dword [eax + 0xb80], 1
jne 0x40b58a
mov esi, dword [ebp + 8]
mov al, byte [esi + 0xca5]
xor ebx, ebx
cmp al, bl
je 0x40b469
mov dword [ebp - 8], 0x5c3a58
mov byte [ebp - 8], al
mov dword [ebp - 0xc], ebx
jmp 0x40b45a
push 0x32
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xa
jg 0x40b469
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
cmp eax, 1
je 0x40b449
mov eax, dword [edi + 0x408]
cmp dword [eax + 0x20], ebx
je 0x40b47b
mov eax, edi
call fcn.0040e0f6
mov eax, dword [edi + 0x408]
cmp dword [eax + 0x28], ebx
je 0x40b54e
cmp dword [eax + 0x1c], ebx
je 0x40b54e
call fcn.00405f1b
test eax, eax
je 0x40b54e
push 0xfff
lea eax, [ebp - 0x110b]
push ebx
push eax
mov dword [edi + 0x3a8], 0xa
mov byte [ebp - 0x110c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push 0xff
lea eax, [ebp - 0x10b]
push ebx
push eax
mov byte [ebp - 0x10c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, esi
call fcn.004021ff
mov ebx, eax
call fcn.00407431
mov ebx, eax
lea eax, [ebp - 0x10c]
push eax
push esi
call fcn.004022b3
push eax
lea eax, [esi + 0x625]
push eax
push ebx
lea eax, [esi + 0xa0]
push eax
add esi, 0x120
push esi
lea eax, [ebp - 0x110c]
push str._s_r_n_s_r_n_s_r_n_s_r_n_s_r_n
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x1c
push 0x13
pop ebx
call fcn.00407431
mov esi, dword [edi + 0x18c]
push eax
lea eax, [ebp - 0x110c]
push eax
lea eax, [edi + 0x174]
call fcn.00411fdb
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [edi + 0x408]
cmp dword [eax + 0x24], ebx
je 0x40b56b
movzx eax, byte [esi + 0xca5]
cmp al, bl
je 0x40b56b
push eax
call fcn.00401c06
pop ecx
mov edi, dword [edi + 0x408]
cmp dword [edi + 0x468], ebx
je 0x40b584
add edi, 0x68
push edi
mov eax, esi
call fcn.0040af87
mov dword [esi + 0xd18], ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40c9d6
Capabilities:
Delete file
Get common file path
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
mov esi, eax
lea eax, [ebp - 0x208]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
test eax, eax
jne 0x40ca08
push edi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
lea eax, [ebp - 0x104]
push eax
push 0
push 0x417418
lea eax, [ebp - 0x208]
push eax
mov byte [ebp - 0x104], 0
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
push 1
push 2
lea eax, [ebp - 0x104]
push eax
call fcn.0040c33c
test eax, eax
je 0x40ca80
push dword [esi + 0x108]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40ca5d
lea eax, [ebp - 0x104]
push eax
call fcn.00405b88
pop ecx
jmp 0x40ca63
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x40ca73
push dword [esi + 0x108]
call fcn.00405a3a
pop ecx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop edi
pop esi
leave
ret
Function at 0x40d0d3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [eax + 0x3c8]
sub esp, 0x884
push ebx
push esi
push edi
lea ecx, [ebp - 4]
push ecx
call fcn.00408afa
test eax, eax
je 0x40d2c7
mov eax, dword [ebp - 4]
add eax, 0xc25
xor ebx, ebx
cmp byte [eax], bl
mov dword [ebp - 4], eax
je 0x40d2c7
mov esi, 0x104
push esi
lea eax, [ebp - 0x167]
push ebx
push eax
mov byte [ebp - 0x168], bl
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x26f]
push ebx
push eax
mov byte [ebp - 0x270], bl
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x377]
push ebx
push eax
mov byte [ebp - 0x378], bl
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x47f]
push ebx
push eax
mov byte [ebp - 0x480], bl
call sub.msvcrt.dll_memset
push 0x3ff
lea eax, [ebp - 0x87f]
push ebx
push eax
mov byte [ebp - 0x880], bl
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x168]
push eax
call fcn.00406008
add esp, 0x40
push str.notepad.exe
call sub.msvcrt.dll_strlen
mov edi, eax
lea eax, [ebp - 0x168]
push eax
call sub.msvcrt.dll_strlen
lea eax, [edi + eax + 1]
cmp eax, esi
pop ecx
pop ecx
jae 0x40d1c4
lea eax, [ebp - 0x168]
push str.notepad.exe
push eax
lea eax, [ebp - 0x270]
call fcn.00405f6d
pop ecx
pop ecx
jmp 0x40d1ca
mov byte [ebp - 0x270], bl
push 0x417438
call sub.msvcrt.dll_strlen
mov edi, eax
lea eax, [ebp - 0x168]
push eax
call sub.msvcrt.dll_strlen
lea eax, [edi + eax + 1]
cmp eax, esi
pop ecx
pop ecx
jae 0x40d207
lea eax, [ebp - 0x168]
push 0x417438
push eax
lea eax, [ebp - 0x378]
call fcn.00405f6d
pop ecx
pop ecx
jmp 0x40d20d
mov byte [ebp - 0x378], bl
push dword [ebp - 4]
call sub.msvcrt.dll_strlen
mov edi, eax
lea eax, [ebp - 0x378]
push eax
call sub.msvcrt.dll_strlen
lea eax, [edi + eax + 1]
cmp eax, esi
pop ecx
pop ecx
jae 0x40d246
push dword [ebp - 4]
lea eax, [ebp - 0x378]
push eax
lea eax, [ebp - 0x480]
call fcn.00405f6d
pop ecx
pop ecx
jmp 0x40d24c
mov byte [ebp - 0x480], bl
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x270]
push eax
push 0x416ad0
lea eax, [ebp - 0x880]
push 0x3ff
push eax
call sub.msvcrt.dll__snprintf
push 0x40
lea eax, [ebp - 0x5c]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
add esp, 0x20
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x880]
push eax
lea eax, [ebp - 0x270]
push eax
mov dword [ebp - 0x60], 0x44
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x40d2c7
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d2cc
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
push ebx
mov ebx, eax
cmp dword [ebx + 0x190], 0
jne 0x40d3d7
push esi
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x108]
push eax
call fcn.00405dcb
lea eax, [ebp - 0x108]
push 0x2e
push eax
call sub.msvcrt.dll_strrchr
add esp, 0x18
test eax, eax
je 0x40d326
mov byte [eax], 0
lea eax, [ebp - 0x108]
push str..cfg
push eax
call sub.msvcrt.dll_strcat
mov esi, dword [ebx + 0x400]
pop ecx
pop ecx
push str._cfg
call fcn.0040726f
test eax, eax
jl 0x40d368
push edi
lea ecx, [ebp - 0x108]
push ecx
mov ecx, dword [ebx + 0x400]
inc eax
call fcn.0040725f
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x318], eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x314]
push eax
mov dword [ebp - 0x31c], 0x4179b0
mov byte [ebp - 0x314], 0
mov byte [ebp - 0x20f], 0
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x20f]
push str.General
push eax
call sub.msvcrt.dll_strcpy
mov eax, dword [ebx + 0x408]
add esp, 0x10
lea esi, [ebp - 0x31c]
call fcn.00401e4b
mov eax, ebx
call fcn.00401871
mov ebx, dword [ebx + 0x3c8]
mov edi, esi
call fcn.004083b3
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40e4ed
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x41b50c]
mov byte [ebp - 8], 0x43
mov byte [ebp - 7], 0x4f
mov byte [ebp - 6], 0x4c
mov byte [ebp - 5], 0x4f
mov byte [ebp - 4], 0x52
mov byte [ebp - 3], 0x53
mov byte [ebp - 2], 0
movsx eax, byte [ebp + eax - 8]
cmp dword [ecx + 8], eax
push esi
jne 0x40e584
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
test ax, ax
jns 0x40e584
push 0x10
call esi
test ax, ax
jns 0x40e584
push 0x12
call esi
test ax, ax
js 0x40e584
inc dword [0x41b50c]
mov eax, dword [0x41b50c]
cmp byte [ebp + eax - 8], 0
jne 0x40e58b
mov eax, dword [edi + 0x408]
and dword [0x41b50c], 0
add eax, 0xbc8
mov ecx, dword [eax]
neg ecx
sbb ecx, ecx
and ecx, 0xfffff830
add ecx, 0x7d0
mov dword [eax], ecx
mov eax, dword [edi + 0x3c8]
call fcn.0040a04e
jmp 0x40e58b
and dword [0x41b50c], 0
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x40fa47
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
push dword [ebp + 8]
mov ebx, eax
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x10], 2
call sub.WS2_32.dll_htons
test ebx, ebx
mov word [ebp - 0xe], ax
je 0x40faa7
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
mov dword [ebp - 0xc], ebx
call sub.WS2_32.dll_connect
test eax, eax
jne 0x40fa8b
xor ebx, ebx
inc ebx
jmp 0x40faa3
call fcn.0040fb1f
mov ebx, eax
test ebx, ebx
jne 0x40faa3
mov edi, dword [esi]
call sub.WS2_32.dll_WSAGetLastError
push eax
mov ecx, esi
call dword [edi + 0x18]
mov eax, ebx
jmp 0x40fab5
mov eax, dword [esi]
push 0xffff
mov ecx, esi
call dword [eax + 0x18]
xor eax, eax
pop edi
pop ebx
leave
ret 4

Function at 0x40fabb
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x14], 2
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x40faf5
push dword [ebp + 8]
mov eax, esi
mov dword [esi + 0x10], 0x50
call fcn.0040f9f1
jmp 0x40fb1a
push 0x50
call sub.WS2_32.dll_htons
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
call sub.WS2_32.dll_connect
test eax, eax
jne 0x40fb15
inc eax
jmp 0x40fb1a
call fcn.0040fb1f
pop edi
leave
ret 4

Function at 0x4100eb
Capabilities:
Get file size

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
call fcn.00406ce4
add esi, 0x20
call fcn.00410158
push dword [esp + 0x14]
call fcn.004059c4
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
je 0x410152
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
test esi, esi
jbe 0x41014b
lea eax, [esi + 1]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
push esi
push edi
push ebx
call fcn.00406516
add esp, 0xc
push edi
push dword [esp + 0x14]
mov byte [edi + esi], 0
call fcn.0040ff51
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
ret 8
Function at 0x410663
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x378
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
add esi, 0x2c
call fcn.00410158
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
push 0x124
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x370]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x374]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x374], 0x128
call sub.KERNEL32.DLL_Process32First
jmp 0x410842
mov eax, dword [ebp - 0x36c]
mov ecx, dword [ebp - 0x35c]
mov esi, dword [sym.imp.KERNEL32.DLL_OpenProcess]
push eax
push ebx
push 0x410
mov byte [ebp - 0x140], bl
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x38], ecx
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x410729
call fcn.00405f3f
test eax, eax
je 0x4107ec
push dword [ebp - 0x144]
push ebx
push 0x1000
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4107ec
mov esi, 0x104
push esi
lea eax, [ebp - 0x24b]
push ebx
push eax
mov byte [ebp - 0x24c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.00410869
cmp byte [ebp - 0x24c], bl
je 0x410768
cmp byte [ebp - 0x24c], 0x3f
jne 0x4107b7
cmp dword [0x41b510], ebx
mov dword [ebp - 0x10], esi
jne 0x41079d
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp eax, ebx
je 0x41079d
push str.QueryFullProcessImageNameA
push eax
mov dword [0x41b510], 1
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x41b514], eax
mov eax, dword [0x41b514]
cmp eax, ebx
je 0x4107b7
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x24c]
push ecx
push ebx
push dword [ebp - 8]
call eax
lea esi, [ebp - 0x24c]
lea edi, [ebp - 0x140]
call fcn.004102dd
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 8]
call fcn.0041060d
add esp, 0x14
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x38]
add edi, 0x2c
cmp esi, ebx
jl 0x410842
cmp esi, 0xffffffff
mov eax, dword [edi + 8]
jne 0x41080a
push dword [edi]
call sub.msvcrt.dll_free
jmp 0x41081b
push eax
push 0x130
lea eax, [edi + 4]
mov edx, esi
call fcn.00405c93
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [esi + 1]
cmp dword [ecx + 0x38], eax
jge 0x41082a
mov dword [ecx + 0x38], eax
mov edi, esi
imul edi, edi, 0x130
lea eax, [ecx + 0x2c]
add edi, dword [eax]
push 0x4c
pop ecx
lea esi, [ebp - 0x144]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x374]
push eax
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x4106ba
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x410891
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x4108f3
push edi
push str.psapi.dll
call fcn.00406a87
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esp], str.GetModuleBaseNameA
push eax
mov dword [esi], eax
call edi
push str.EnumProcessModules
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.EnumProcessModulesEx
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.GetModuleFileNameExA
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.EnumProcesses
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.GetModuleInformation
push dword [esi]
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x10], eax
pop edi
ret
Function at 0x410e1b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10000
call fcn.00415a90
cmp dword [ebp + 8], 0
je 0x410e7f
test esi, esi
je 0x410e6d
push 0x22
push esi
call sub.msvcrt.dll__mbschr
test eax, eax
pop ecx
pop ecx
je 0x410e6d
push esi
push str.__s_
lea eax, [ebp - 0x10000]
push 0xfffe
push eax
mov byte [ebp - 0x10000], 0
call sub.msvcrt.dll__snprintf
add esp, 0x10
push dword [ebp + 0x1c]
lea eax, [ebp - 0x10000]
push eax
jmp 0x410e71
push dword [ebp + 0x1c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
leave
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
leave
ret

Function at 0x410e97
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00415a90
xor eax, eax
cmp dword [ebp + 8], eax
push ebx
push esi
mov byte [ebp - 0x2004], al
je 0x410eee
push 0x2000
push eax
lea eax, [ebp - 0x2003]
push eax
call sub.msvcrt.dll_memset
push dword [edi]
lea ebx, [ebp - 0x2004]
push dword [ebp + 0x14]
call fcn.00406562
add esp, 0x14
push dword [ebp + 0x18]
mov eax, ebx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
mov esi, eax
jmp 0x410f39
mov esi, 0x2000
push esi
push eax
lea eax, [ebp - 0x2003]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x2004]
push esi
push eax
push 0x416615
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push dword [ebp + 0x14]
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
push edi
lea ebx, [ebp - 0x2004]
neg esi
call fcn.004065db
pop ecx
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x410f3f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x410f5d
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00410dcf
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov dword [esi], eax
pop ebp
ret
Function at 0x411370
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push esi
push edi
mov esi, 0x104
xor ebx, ebx
push esi
lea eax, [ebp - 0x167]
push ebx
push eax
mov byte [ebp - 0x168], bl
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x26f]
push ebx
push eax
mov byte [ebp - 0x270], bl
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x168]
push eax
call fcn.00406008
push str.regedit.exe
call sub.msvcrt.dll_strlen
mov edi, eax
lea eax, [ebp - 0x168]
push eax
call sub.msvcrt.dll_strlen
lea eax, [edi + eax + 1]
add esp, 0x24
cmp eax, esi
jae 0x4113f5
lea eax, [ebp - 0x168]
push str.regedit.exe
push eax
lea eax, [ebp - 0x270]
call fcn.00405f6d
pop ecx
pop ecx
jmp 0x4113fb
mov byte [ebp - 0x270], bl
xor eax, eax
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
mov word [ebp - 0x30], 5
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call fcn.00406a56
test eax, eax
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
pop ecx
je 0x411462
push str.Wow64DisableWow64FsRedirection
push str.kernel32.dll
call edi
push eax
call esi
cmp eax, ebx
je 0x411462
lea ecx, [ebp - 8]
push ecx
call eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call fcn.00406a56
test eax, eax
pop ecx
je 0x4114b0
mov eax, dword [ebp - 8]
push str.Wow64RevertWow64FsRedirection
push str.kernel32.dll
mov dword [ebp - 0xc], eax
call edi
push eax
call esi
cmp eax, ebx
je 0x4114b0
push dword [ebp - 0xc]
call eax
cmp dword [ebp - 4], ebx
je 0x4114cf
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov esi, dword [ebp + 8]
call fcn.00411353
test eax, eax
jne 0x4114cf
inc ebx
cmp ebx, 0x64
jl 0x4114b5
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4116f9
Capabilities:
Set environment variable

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esp + 0xc], ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
je 0x41171e
call fcn.00405f3f
test eax, eax
je 0x41171e
push str.RunAsInvoker
push str.__COMPAT_LAYER
call ebp
push esi
mov esi, edi
call fcn.00411353
test eax, eax
jne 0x411730
push edi
call fcn.00411370
call fcn.00411353
test eax, eax
je 0x411794
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x20000000
je 0x411754
push 9
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [esp + 0x10]
push edi
call fcn.00411605
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, edi
call fcn.00411245
test eax, eax
je 0x411789
push dword [edi + 8]
or eax, 0xffffffff
mov ebx, 0x416615
call fcn.00411513
push dword [edi + 8]
call fcn.0041155b
xor ebx, ebx
inc ebx
cmp dword [esp + 0x14], 0
pop esi
je 0x4117ae
call fcn.00405f3f
test eax, eax
je 0x4117ae
push 0
push str.__COMPAT_LAYER
call ebp
pop ebp
mov eax, ebx
pop ebx
ret 8

Function at 0x4117b5
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x41187b
push edi
push str.setupapi.dll
call fcn.00406a87
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esp], str.CM_Locate_DevNodeA
push eax
mov dword [esi], eax
call edi
push str.CM_Request_Device_EjectA
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.CM_Locate_DevNode_ExA
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.CM_Connect_MachineA
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.CM_Disconnect_MachineA
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.CM_Request_Device_Eject_ExA
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.SetupDiGetClassDevsA
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.SetupDiDestroyDeviceInfoList
push dword [esi]
mov dword [esi + 0x1c], eax
call edi
push str.SetupDiRemoveDevice
push dword [esi]
mov dword [esi + 0x20], eax
call edi
push str.SetupDiEnumDeviceInfo
push dword [esi]
mov dword [esi + 0x24], eax
call edi
push str.SetupDiGetClassDevsExA
push dword [esi]
mov dword [esi + 0x28], eax
call edi
push str.SetupDiCallClassInstaller
push dword [esi]
mov dword [esi + 0x2c], eax
call edi
push str.SetupDiSetClassInstallParamsA
push dword [esi]
mov dword [esi + 0x30], eax
call edi
push str.SetupDiGetDeviceInstanceIdA
push dword [esi]
mov dword [esi + 0x34], eax
call edi
mov dword [esi + 0x38], eax
pop edi
ret
Function at 0x411a75
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
call fcn.00411a46
xor ebx, ebx
cmp dword [0x41b044], ebx
je 0x411aa3
call fcn.00405ee6
push ebx
push 0x10
push edi
push ebx
call dword [0x41b044]
jmp 0x411b25
push 0x103
lea eax, [ebp - 0x127]
push ebx
push eax
mov byte [ebp - 0x128], bl
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x411b0f
push esi
lea eax, [ebp - 0x24]
push str.Desktop
push eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
mov eax, 0x104
lea esi, [ebp - 0x128]
call fcn.00410fb0
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
lea eax, [ebp - 0x128]
push eax
push edi
call sub.msvcrt.dll_strcpy
xor eax, eax
cmp byte [edi], bl
pop ecx
pop ecx
setne al
pop ebx
leave
ret