joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2f49f9d7
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x2f49fa41
cmp word [ebx], 0
je 0x2f49fa41
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x2f49fa3b
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
call dword [sym.imp.MSO.dll_Ordinal_295]
lea esi, [eax + eax + 2]
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x2f49fa39
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push ebx
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop esi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebx
pop ebp
ret 8

Function at 0x2f4a0612
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x2f495dc8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
add ebx, 0x618
cmp word [ebx], 0
push esi
push edi
jne 0x2f4a06c3
mov edi, 0x824
mov dword [ebp - 0x830], edi
call dword [0x2f4b6d00]
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x828]
push eax
push 0
call sub.urlmon.dll_ObtainUserAgentString
test eax, eax
jl 0x2f4a06b6
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x2f4a0686
xor eax, eax
jmp 0x2f4a06a4
lea eax, [esi + esi]
call fcn.2f4b0155
mov eax, esp
push dword [ebp - 0x82c]
lea ecx, [ebp - 0x828]
push esi
push ecx
push eax
call fcn.2f4a016e
push eax
push 0x2f4939d0
push edi
push ebx
call fcn.2f49fcae
add esp, 0x10
jmp 0x2f4a06c3
push edi
push ebx
push 0x2f493940
call dword [sym.imp.MSO.dll_Ordinal_6877]
mov eax, ebx
lea esp, [ebp - 0x83c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.2f4af470
leave
ret

Function at 0x2f4a1285
Capabilities:
Create thread

Disassembly:
push ebx
xor ebx, ebx
cmp byte [0x2f4b7030], bl
je 0x2f4a1294
mov al, 1
pop ebx
ret
mov ecx, dword [0x2f4b6004]
call fcn.2f4a6637
cmp eax, 1
je 0x2f4a1290
push ebx
push ebx
push ebx
push 0x2f4a0e7b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
setne al
mov byte [0x2f4b7030], al
pop ebx
ret
Function at 0x2f4a1e77
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 8]
mov byte [ebp - 4], 0xff
mov byte [ebp - 3], 0xfe
call dword [sym.imp.MSO.dll_Ordinal_403]
cmp eax, 0xffffffff
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
jne 0x2f4a1eaf
xor al, al
jmp 0x2f4a1ee1
push edi
lea ecx, [ebp - 8]
push ecx
push 2
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x2f4a1ed9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
or dword [esi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
cmp dword [esi], 0xffffffff
setne al
pop edi
pop esi
leave
ret 8

Function at 0x2f4a1ee7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
jne 0x2f4a1ef5
xor al, al
jmp 0x2f4a1f1e
push dword [ebp + 0xc]
call dword [sym.imp.MSO.dll_Ordinal_295]
add eax, eax
jne 0x2f4a1f06
mov al, 1
jmp 0x2f4a1f1e
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
leave
ret 8

Function at 0x2f4a1f22
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
cmp eax, ecx
jne 0x2f4a1f36
mov al, 1
jmp 0x2f4a2023
cmp word [eax], cx
push ebx
push esi
push edi
mov edi, eax
mov edx, eax
je 0x2f4a201e
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
movzx eax, word [edi]
xor ebx, ebx
and dword [ebp + 0xc], ebx
cmp ax, 0x26
je 0x2f4a1f76
cmp ax, 0x3c
je 0x2f4a1f76
cmp ax, 0x3e
je 0x2f4a1f76
cmp ax, 0x27
je 0x2f4a1f76
cmp ax, 0x22
jne 0x2f4a1ff7
test ecx, ecx
je 0x2f4a1f8f
push 0
lea eax, [ebp - 4]
push eax
push ecx
push edx
push dword [ebp + 8]
call esi
test eax, eax
je 0x2f4a201a
movzx eax, word [edi]
sub eax, 0x22
je 0x2f4a1fd2
sub eax, 4
je 0x2f4a1fc4
dec eax
je 0x2f4a1fbd
sub eax, 0x15
je 0x2f4a1faf
dec eax
dec eax
jne 0x2f4a1fde
mov ebx, 0x2f4943e8
jmp 0x2f4a1fb4
mov ebx, 0x2f4943dc
mov dword [ebp + 0xc], 8
jmp 0x2f4a1fde
mov ebx, 0x2f4943cc
jmp 0x2f4a1fd7
mov ebx, 0x2f4943c0
mov dword [ebp + 0xc], 0xa
jmp 0x2f4a1fde
mov ebx, 0x2f4943b0
mov dword [ebp + 0xc], 0xc
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x2f4a201a
push 0xfffffffffffffffe
pop ecx
lea edx, [edi + 2]
inc edi
inc edi
inc ecx
inc ecx
cmp word [edi], 0
jne 0x2f4a1f4c
test ecx, ecx
je 0x2f4a201e
push 0
lea eax, [ebp - 4]
push eax
push ecx
push edx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x2f4a201e
xor al, al
jmp 0x2f4a2020
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x2f4a2566
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1050
call fcn.2f4b0005
mov eax, dword [0x2f495dc8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push 0x1046
lea eax, [ebp - 0x104a]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x1050], esi
mov word [ebp - 0x104c], bx
call sub.MSVCR80.dll_memset
add esi, 0x622
add esp, 0xc
cmp word [esi], bx
je 0x2f4a25b7
mov eax, esi
jmp 0x2f4a264a
mov ecx, dword [ebp - 0x1050]
push edi
mov edi, 0x824
push edi
push esi
call fcn.2f4a1df3
cmp al, bl
je 0x2f4a2640
push ebx
push esi
call dword [sym.imp.MSO.dll_Ordinal_1020]
test eax, eax
jne 0x2f4a25e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x2f4a2640
lea eax, [ebp - 0x104c]
push eax
push ebx
push 0x2f49420c
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
setne al
cmp al, bl
je 0x2f4a2640
lea eax, [ebp - 0x104c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
lea eax, [ebp - 0x104c]
push eax
call dword [sym.imp.MSO.dll_Ordinal_1020]
test eax, eax
setne al
cmp al, bl
je 0x2f4a2640
push edi
push esi
lea eax, [ebp - 0x104c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
setne al
cmp al, bl
jne 0x2f4a2647
mov word [esi], bx
xor eax, eax
jmp 0x2f4a2649
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.2f4af470
leave
ret
Function at 0x2f4a2b2b
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24b8
call fcn.2f4b0005
mov eax, dword [0x2f495dc8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x24b0], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x24b8], eax
mov eax, dword [ebp + 0x14]
mov esi, 0x206
xor ebx, ebx
push esi
mov dword [ebp - 0x24b4], eax
lea eax, [ebp - 0x412]
push ebx
push eax
mov dword [ebp - 0x24ac], ecx
mov word [ebp - 0x414], bx
call sub.MSVCR80.dll_memset
mov edi, 0x1046
push edi
lea eax, [ebp - 0x145a]
push ebx
push eax
mov word [ebp - 0x145c], bx
call sub.MSVCR80.dll_memset
add esp, 0x18
cmp dword [ebp - 0x24b0], ebx
jne 0x2f4a2bae
xor al, al
jmp 0x2f4a2d54
push esi
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call sub.MSVCR80.dll_memset
mov eax, dword [ebp - 0x24ac]
add esp, 0xc
cmp dword [eax + 0x414], 1
mov esi, 0x104
push esi
jne 0x2f4a2bf6
mov ecx, dword [0x2f4b5fa8]
lea eax, [ebp - 0x20c]
push eax
call fcn.2f4a028f
test eax, eax
jne 0x2f4a2c09
jmp 0x2f4a2d3f
lea ecx, [ebp - 0x20c]
push ecx
add eax, 0x20a
push eax
call dword [sym.imp.MSO.dll_Ordinal_6877]
lea eax, [ebp - 0x20c]
push eax
call fcn.2f4a01a5
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x2f4942e0
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.2f49fcae
add esp, 0x18
cmp eax, ebx
mov dword [ebp - 0x24a8], eax
jl 0x2f4a2d49
push dword [ebp - 0x24b0]
lea eax, [ebp - 0x414]
push eax
push 0x2f49435c
mov esi, 0x824
lea eax, [ebp - 0x145c]
push esi
push eax
call fcn.2f49fcae
add esp, 0x14
cmp eax, ebx
mov dword [ebp - 0x24a8], eax
jl 0x2f4a2d49
cmp dword [ebp - 0x24b8], ebx
je 0x2f4a2c93
push dword [ebp + 0x10]
lea eax, [ebp - 0x145c]
push dword [ebp - 0x24b8]
push eax
call dword [sym.imp.MSO.dll_Ordinal_6877]
mov ecx, dword [ebp - 0x24ac]
call fcn.2f4a2566
cmp eax, ebx
mov dword [ebp - 0x24ac], eax
je 0x2f4a2ba7
push edi
lea eax, [ebp - 0x24a2]
push ebx
push eax
mov word [ebp - 0x24a4], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x24a4]
push eax
push dword [ebp - 0x24ac]
call dword [sym.imp.MSO.dll_Ordinal_6877]
mov edi, dword [sym.imp.MSO.dll_Ordinal_6873]
push esi
lea eax, [ebp - 0x24a4]
push eax
push 0x2f4943ac
call edi
push esi
lea eax, [ebp - 0x24a4]
push eax
push dword [ebp - 0x24b0]
call edi
cmp dword [ebp - 0x24b4], ebx
je 0x2f4a2d1b
push dword [ebp + 0x18]
lea eax, [ebp - 0x24a4]
push dword [ebp - 0x24b4]
push eax
call dword [sym.imp.MSO.dll_Ordinal_6877]
push ebx
push ebx
lea eax, [ebp - 0x24a4]
push eax
lea eax, [ebp - 0x145c]
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
je 0x2f4a2d49
mov dword [0x2f4b5e1c], 1
mov dword [ebp - 0x24a8], 0x80004005
xor eax, eax
cmp dword [ebp - 0x24a8], ebx
setge al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.2f4af470
leave
ret 0x14
Function at 0x2f4a3bd5
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x106c
call fcn.2f4b0005
mov eax, dword [0x2f495dc8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push 0x1046
lea eax, [ebp - 0x104a]
push esi
push eax
mov edi, ecx
mov word [ebp - 0x104c], si
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ecx, edi
call fcn.2f4a3112
push esi
push 0x2f4931e0
push esi
push esi
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
jne 0x2f4a3c90
push 0x824
lea eax, [ebp - 0x104c]
push eax
mov ecx, edi
call fcn.2f4a1df3
test al, al
je 0x2f4a3c90
lea eax, [ebp - 0x104c]
push eax
mov ecx, edi
call fcn.2f4a2027
cmp word [ebp - 0x104c], si
je 0x2f4a3c90
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x106c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x104c]
mov dword [ebp - 0x1064], eax
lea eax, [ebp - 0x106c]
push eax
mov dword [ebp - 0x1068], 3
mov word [ebp - 0x105c], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.2f4af470
leave
ret

Function at 0x2f4a8eb2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x2f4b5ffc]
pop ebp
jmp fcn.2f4a3f49
Function at 0x2f4aa2b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3138
call fcn.2f4b0005
mov eax, dword [0x2f495dc8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
mov dword [ebp - 0x30e0], eax
mov dword [ebp - 0x30e4], 0x824
call fcn.2f4a9833
test al, al
jne 0x2f4aa2eb
xor al, al
jmp 0x2f4aa438
lea eax, [ebp - 0x30e4]
push eax
lea eax, [ebp - 0x30dc]
push eax
push 0x2f49541c
push 0x2f495410
push 1
push 0x20
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
test eax, eax
jl 0x2f4aa2e4
push ebx
push esi
mov esi, dword [sym.imp.MSO.dll_Ordinal_929]
push edi
push 0x25
lea eax, [ebp - 0x30dc]
push eax
call esi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x2f4aa38a
lea eax, [edi + 2]
cmp word [eax], 0x31
je 0x2f4aa341
push 0x25
push eax
call esi
mov edi, eax
cmp edi, ebx
jne 0x2f4aa32d
cmp edi, ebx
je 0x2f4aa38a
mov esi, 0x1048
push esi
lea eax, [ebp - 0x2094]
push eax
lea eax, [ebp - 0x30dc]
push eax
mov word [edi], bx
call dword [sym.imp.MSO.dll_Ordinal_6877]
mov ebx, dword [sym.imp.MSO.dll_Ordinal_6873]
push esi
lea eax, [ebp - 0x2094]
push eax
push dword [ebp - 0x30e0]
call ebx
push esi
lea eax, [ebp - 0x2094]
push eax
add edi, 4
push edi
call ebx
xor ebx, ebx
jmp 0x2f4aa3d8
mov esi, 0x1048
push esi
lea eax, [ebp - 0x2094]
push eax
lea eax, [ebp - 0x30dc]
push eax
call dword [sym.imp.MSO.dll_Ordinal_6877]
mov edi, dword [sym.imp.MSO.dll_Ordinal_6873]
push esi
lea eax, [ebp - 0x2094]
push eax
push 0x2f495408
call edi
push esi
lea eax, [ebp - 0x2094]
push eax
push dword [ebp - 0x30e0]
call edi
push esi
lea eax, [ebp - 0x2094]
push eax
push 0x2f495404
call edi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x3138]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x30f4]
push eax
lea eax, [ebp - 0x3138]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2094]
push eax
push ebx
mov dword [ebp - 0x3138], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne bl
test bl, bl
je 0x2f4aa433
push dword [ebp - 0x30f0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x30f4]
call esi
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.2f4af470
leave
ret 4
Function at 0x2f4aa500
Capabilities:
Create http request
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2230
call fcn.2f4b0005
mov eax, dword [0x2f495dc8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x221c], 0xffffffff
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push esi
push esi
push esi
push 0x2f492e30
mov dword [ebp - 0x2220], eax
mov dword [ebp - 0x2218], esi
mov dword [ebp - 0x2224], esi
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, esi
mov dword [ebp - 0x222c], eax
je 0x2f4aa6d7
push edi
call dword [sym.imp.MSO.dll_Ordinal_3054]
cmp eax, esi
mov dword [ebp - 0x2228], eax
je 0x2f4aa580
push eax
push dword [ebp - 0x222c]
call fcn.2f4a9608
mov edi, eax
cmp edi, esi
mov dword [ebp - 0x2218], edi
jne 0x2f4aa58f
mov dword [ebp - 0x2210], 0x80004003
jmp 0x2f4aa688
push ebx
push edi
call fcn.2f49f7d3
mov ebx, eax
cmp ebx, esi
je 0x2f4aa67d
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x2220]
call fcn.2f49f53a
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.2f49f742
test al, al
je 0x2f4aa67d
push ebx
call dword [sym.imp.MSO.dll_Ordinal_652]
push esi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp - 0x2220]
call dword [sym.imp.MSO.dll_Ordinal_403]
cmp eax, 0xffffffff
mov dword [ebp - 0x221c], eax
mov dword [ebp - 0x2210], esi
je 0x2f4aa67d
lea eax, [ebp - 0x2214]
push eax
mov ebx, 0x2000
push ebx
lea eax, [ebp - 0x220c]
push eax
push edi
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
call edi
cmp dword [ebp - 0x2214], esi
je 0x2f4aa687
mov dword [ebp - 0x2210], esi
mov eax, dword [ebp - 0x2214]
add dword [ebp - 0x2224], eax
push esi
lea eax, [ebp - 0x2230]
push eax
push dword [ebp - 0x2214]
lea eax, [ebp - 0x220c]
push eax
push dword [ebp - 0x221c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x2f4aa67d
lea eax, [ebp - 0x2214]
push eax
push ebx
lea eax, [ebp - 0x220c]
push eax
push dword [ebp - 0x2218]
call edi
cmp dword [ebp - 0x2214], esi
jne 0x2f4aa62b
jmp 0x2f4aa687
mov dword [ebp - 0x2210], 0x80004005
pop ebx
push dword [ebp - 0x222c]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
cmp dword [ebp - 0x2218], esi
je 0x2f4aa6a6
push dword [ebp - 0x2218]
call edi
cmp dword [ebp - 0x2228], esi
je 0x2f4aa6ba
push dword [ebp - 0x2228]
call dword [sym.imp.MSO.dll_Ordinal_3057]
cmp dword [ebp - 0x221c], 0xffffffff
je 0x2f4aa6cf
push dword [ebp - 0x221c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2224], esi
jne 0x2f4aa6e7
push dword [ebp - 0x2220]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor al, al
jmp 0x2f4aa6f2
xor eax, eax
cmp dword [ebp - 0x2210], esi
setge al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.2f4af470
leave
ret 8

Function at 0x2f4aa702
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push fcn.2f4a978b
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x2f4ad447
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 2
call fcn.2f4ad315
mov esi, eax
test esi, esi
jne 0x2f4ad460
mov edi, 0x80004003
jmp 0x2f4ad485
push 4
lea eax, [ebp + 0xc]
push eax
push 4
xor edi, edi
push edi
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x2f4ad47e
mov edi, 0x80004005
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
setge al
pop esi
pop ebp
ret 8

Function at 0x2f4ad759
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x2f495dc8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x420]
xor ebx, ebx
push eax
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x418], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x2f4ad84c
mov ecx, dword [0x2f4b5fa8]
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.2f4a028f
test eax, eax
jne 0x2f4ad7bf
mov edi, 0x80004003
jmp 0x2f4ad851
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x420]
lea eax, [ebp - 0x414]
push 0x2f495b60
push esi
push eax
call fcn.2f49fcae
add esp, 0x14
lea eax, [ebp - 0x41c]
push eax
push 0x2f4958bc
call dword [sym.imp.MSO.dll_Ordinal_1874]
test eax, eax
jne 0x2f4ad84c
push ebx
lea eax, [ebp - 0x418]
push eax
push ebx
push 2
push 1
push ebx
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x2f4ad84c
mov ecx, 0x2f4b5df0
call fcn.2f499cfb
push 4
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x424]
push eax
push 4
push ebx
push ebx
push dword [ebp - 0x418]
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x2f4ad851
mov edi, 0x80004005
cmp dword [ebp - 0x41c], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x2f4ad867
push dword [ebp - 0x41c]
call esi
cmp dword [ebp - 0x418], ebx
je 0x2f4ad877
push dword [ebp - 0x418]
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
cmp edi, ebx
pop edi
setge al
pop esi
xor ecx, ebp
pop ebx
call fcn.2f4af470
leave
ret
Function at 0x2f4ad88d
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x2f495dc8]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x418], 0
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x2f4ad93d
mov ecx, dword [0x2f4b5fa8]
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.2f4a028f
test eax, eax
je 0x2f4ad927
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push 0x2f495b60
push esi
push eax
call fcn.2f49fcae
add esp, 0x14
lea eax, [ebp - 0x418]
push eax
push 0x2f4958bc
call dword [sym.imp.MSO.dll_Ordinal_1339]
test eax, eax
jne 0x2f4ad927
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x418], 0
pop esi
je 0x2f4ad93d
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.2f4af470
leave
ret

Function at 0x2f4ad99f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.2f4b0005
mov eax, dword [0x2f495dc8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x2008], ecx
call fcn.2f4ad949
xor edi, edi
push edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push esi
call dword [sym.imp.MSO.dll_Ordinal_403]
mov esi, eax
cmp esi, 0xffffffff
je 0x2f4adae6
push edi
lea eax, [ebp - 0x200c]
push eax
push 0x1fff
lea eax, [ebp - 0x2004]
push eax
push esi
mov dword [ebp - 0x200c], 0x2000
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x2f4adada
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x200c]
or dword [ebp - 0x2014], 0xffffffff
cmp eax, edi
je 0x2f4adae6
mov byte [ebp + eax - 0x2004], 0
lea ebx, [ebp - 0x2004]
mov al, byte [ebx]
cmp al, 0xa
je 0x2f4ada59
cmp al, 0xd
je 0x2f4ada59
cmp al, 0xef
je 0x2f4ada59
cmp al, 0xbb
je 0x2f4ada59
cmp al, 0xbf
jne 0x2f4ada5c
inc ebx
jmp 0x2f4ada43
test al, al
je 0x2f4adaf5
mov edi, ebx
cmp al, 0xd
je 0x2f4ada82
test al, al
je 0x2f4ada82
cmp dword [ebp + 0xc], 1
jne 0x2f4ada78
cmp al, 0x3e
je 0x2f4ada81
inc edi
mov al, byte [edi]
cmp al, 0xa
jne 0x2f4ada66
jmp 0x2f4ada82
inc edi
xor eax, eax
cmp byte [edi], al
mov esi, edi
sete al
sub esi, ebx
inc esi
push esi
mov dword [ebp - 0x2018], eax
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 0x2010], eax
je 0x2f4adaf5
push esi
push eax
push ebx
call dword [sym.imp.MSO.dll_Ordinal_6818]
mov ecx, dword [ebp - 0x2008]
lea eax, [ebp - 0x2010]
push eax
call fcn.2f4a1215
test eax, eax
je 0x2f4adad4
cmp dword [ebp - 0x2018], 0
jne 0x2f4adaf5
mov ebx, edi
jmp 0x2f4ada43
mov esi, dword [ebp - 0x2014]
cmp esi, 0xffffffff
je 0x2f4adae6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2008]
call fcn.2f4ad949
xor eax, eax
jmp 0x2f4adaf8
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.2f4af470
leave
ret 8
Function at 0x2f4af3bc
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x2f495de8
push 0x2f495dcc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x2f4af3f1
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x2f495dc8
push ebx
call edi
test esi, esi
mov dword [0x2f495dc8], esi
jne 0x2f4af455
mov dword [0x2f495dc8], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x2f4b6d04], 0x44bf19b1
pop ebx
leave
ret

Function at 0x2f4af470
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x2f495dc8]
jne 0x2f4b016b
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x2f4c1e30], eax
mov dword [0x2f4c1e2c], ecx
mov dword [0x2f4c1e28], edx
mov dword [0x2f4c1e24], ebx
mov dword [0x2f4c1e20], esi
mov dword [0x2f4c1e1c], edi
mov word [0x2f4c1e48], ss
mov word [0x2f4c1e3c], cs
mov word [0x2f4c1e18], ds
mov word [0x2f4c1e14], es
mov word [0x2f4c1e10], fs
mov word [0x2f4c1e0c], gs
pushfd
pop dword [0x2f4c1e40]
mov eax, dword [ebp]
mov dword [0x2f4c1e34], eax
mov eax, dword [ebp + 4]
mov dword [0x2f4c1e38], eax
lea eax, [ebp + 8]
mov dword [0x2f4c1e44], eax
mov eax, dword [ebp - 0x320]
mov dword [0x2f4c1d80], 0x10001
mov eax, dword [0x2f4c1e38]
mov dword [0x2f4c1d34], eax
mov dword [0x2f4c1d28], 0xc0000409
mov dword [0x2f4c1d2c], 1
mov eax, dword [0x2f495dc8]
mov dword [ebp - 0x328], eax
mov eax, dword [0x2f4b6d04]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x2f4c1d78], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x2f496140
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x2f4c1d78], 0
jne 0x2f4b025b
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret