joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30011e77
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 0x30011eaf
xor al, al
jmp 0x30011ee1
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 0x30011ed9
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 0x30011ee7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
jne 0x30011ef5
xor al, al
jmp 0x30011f1e
push dword [ebp + 0xc]
call dword [sym.imp.MSO.dll_Ordinal_295]
add eax, eax
jne 0x30011f06
mov al, 1
jmp 0x30011f1e
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 0x30011f22
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 0x30011f36
mov al, 1
jmp 0x30012023
cmp word [eax], cx
push ebx
push esi
push edi
mov edi, eax
mov edx, eax
je 0x3001201e
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
movzx eax, word [edi]
xor ebx, ebx
and dword [ebp + 0xc], ebx
cmp ax, 0x26
je 0x30011f76
cmp ax, 0x3c
je 0x30011f76
cmp ax, 0x3e
je 0x30011f76
cmp ax, 0x27
je 0x30011f76
cmp ax, 0x22
jne 0x30011ff7
test ecx, ecx
je 0x30011f8f
push 0
lea eax, [ebp - 4]
push eax
push ecx
push edx
push dword [ebp + 8]
call esi
test eax, eax
je 0x3001201a
movzx eax, word [edi]
sub eax, 0x22
je 0x30011fd2
sub eax, 4
je 0x30011fc4
dec eax
je 0x30011fbd
sub eax, 0x15
je 0x30011faf
dec eax
dec eax
jne 0x30011fde
mov ebx, 0x300043e8
jmp 0x30011fb4
mov ebx, 0x300043dc
mov dword [ebp + 0xc], 8
jmp 0x30011fde
mov ebx, 0x300043cc
jmp 0x30011fd7
mov ebx, 0x300043c0
mov dword [ebp + 0xc], 0xa
jmp 0x30011fde
mov ebx, 0x300043b0
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 0x3001201a
push 0xfffffffffffffffe
pop ecx
lea edx, [edi + 2]
inc edi
inc edi
inc ecx
inc ecx
cmp word [edi], 0
jne 0x30011f4c
test ecx, ecx
je 0x3001201e
push 0
lea eax, [ebp - 4]
push eax
push ecx
push edx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x3001201e
xor al, al
jmp 0x30012020
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x30012566
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1050
call fcn.30020005
mov eax, dword [0x30005dc8]
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 0x300125b7
mov eax, esi
jmp 0x3001264a
mov ecx, dword [ebp - 0x1050]
push edi
mov edi, 0x824
push edi
push esi
call fcn.30011df3
cmp al, bl
je 0x30012640
push ebx
push esi
call dword [sym.imp.MSO.dll_Ordinal_1020]
test eax, eax
jne 0x300125e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x30012640
lea eax, [ebp - 0x104c]
push eax
push ebx
push 0x3000420c
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
setne al
cmp al, bl
je 0x30012640
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 0x30012640
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 0x30012647
mov word [esi], bx
xor eax, eax
jmp 0x30012649
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.3001f470
leave
ret
Function at 0x30012b2b
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24b8
call fcn.30020005
mov eax, dword [0x30005dc8]
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 0x30012bae
xor al, al
jmp 0x30012d54
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 0x30012bf6
mov ecx, dword [0x30025fa8]
lea eax, [ebp - 0x20c]
push eax
call fcn.3001028f
test eax, eax
jne 0x30012c09
jmp 0x30012d3f
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.300101a5
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x300042e0
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.3000fcae
add esp, 0x18
cmp eax, ebx
mov dword [ebp - 0x24a8], eax
jl 0x30012d49
push dword [ebp - 0x24b0]
lea eax, [ebp - 0x414]
push eax
push 0x3000435c
mov esi, 0x824
lea eax, [ebp - 0x145c]
push esi
push eax
call fcn.3000fcae
add esp, 0x14
cmp eax, ebx
mov dword [ebp - 0x24a8], eax
jl 0x30012d49
cmp dword [ebp - 0x24b8], ebx
je 0x30012c93
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.30012566
cmp eax, ebx
mov dword [ebp - 0x24ac], eax
je 0x30012ba7
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 0x300043ac
call edi
push esi
lea eax, [ebp - 0x24a4]
push eax
push dword [ebp - 0x24b0]
call edi
cmp dword [ebp - 0x24b4], ebx
je 0x30012d1b
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 0x30012d49
mov dword [0x30025e1c], 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.3001f470
leave
ret 0x14
Function at 0x30013bd5
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x106c
call fcn.30020005
mov eax, dword [0x30005dc8]
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.30013112
push esi
push 0x300031e0
push esi
push esi
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
jne 0x30013c90
push 0x824
lea eax, [ebp - 0x104c]
push eax
mov ecx, edi
call fcn.30011df3
test al, al
je 0x30013c90
lea eax, [ebp - 0x104c]
push eax
mov ecx, edi
call fcn.30012027
cmp word [ebp - 0x104c], si
je 0x30013c90
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.3001f470
leave
ret

Function at 0x30018eb2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x30025ffc]
pop ebp
jmp fcn.30013f49
Function at 0x3001a2b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3138
call fcn.30020005
mov eax, dword [0x30005dc8]
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.30019833
test al, al
jne 0x3001a2eb
xor al, al
jmp 0x3001a438
lea eax, [ebp - 0x30e4]
push eax
lea eax, [ebp - 0x30dc]
push eax
push 0x3000541c
push 0x30005410
push 1
push 0x20
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
test eax, eax
jl 0x3001a2e4
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 0x3001a38a
lea eax, [edi + 2]
cmp word [eax], 0x31
je 0x3001a341
push 0x25
push eax
call esi
mov edi, eax
cmp edi, ebx
jne 0x3001a32d
cmp edi, ebx
je 0x3001a38a
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 0x3001a3d8
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 0x30005408
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 0x30005404
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 0x3001a433
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.3001f470
leave
ret 4
Function at 0x3001a500
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.30020005
mov eax, dword [0x30005dc8]
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 0x30002e30
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 0x3001a6d7
push edi
call dword [sym.imp.MSO.dll_Ordinal_3054]
cmp eax, esi
mov dword [ebp - 0x2228], eax
je 0x3001a580
push eax
push dword [ebp - 0x222c]
call fcn.30019608
mov edi, eax
cmp edi, esi
mov dword [ebp - 0x2218], edi
jne 0x3001a58f
mov dword [ebp - 0x2210], 0x80004003
jmp 0x3001a688
push ebx
push edi
call fcn.3000f7d3
mov ebx, eax
cmp ebx, esi
je 0x3001a67d
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x2220]
call fcn.3000f53a
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.3000f742
test al, al
je 0x3001a67d
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 0x3001a67d
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 0x3001a687
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 0x3001a67d
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 0x3001a62b
jmp 0x3001a687
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 0x3001a6a6
push dword [ebp - 0x2218]
call edi
cmp dword [ebp - 0x2228], esi
je 0x3001a6ba
push dword [ebp - 0x2228]
call dword [sym.imp.MSO.dll_Ordinal_3057]
cmp dword [ebp - 0x221c], 0xffffffff
je 0x3001a6cf
push dword [ebp - 0x221c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2224], esi
jne 0x3001a6e7
push dword [ebp - 0x2220]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor al, al
jmp 0x3001a6f2
xor eax, eax
cmp dword [ebp - 0x2210], esi
setge al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.3001f470
leave
ret 8

Function at 0x3001a702
Capabilities:
Create thread

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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 2
call fcn.3001d315
mov esi, eax
test esi, esi
jne 0x3001d460
mov edi, 0x80004003
jmp 0x3001d485
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 0x3001d47e
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 0x3001d759
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x30005dc8]
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 0x3001d84c
mov ecx, dword [0x30025fa8]
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.3001028f
test eax, eax
jne 0x3001d7bf
mov edi, 0x80004003
jmp 0x3001d851
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x420]
lea eax, [ebp - 0x414]
push 0x30005b60
push esi
push eax
call fcn.3000fcae
add esp, 0x14
lea eax, [ebp - 0x41c]
push eax
push 0x300058bc
call dword [sym.imp.MSO.dll_Ordinal_1874]
test eax, eax
jne 0x3001d84c
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 0x3001d84c
mov ecx, 0x30025df0
call fcn.30009cfb
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 0x3001d851
mov edi, 0x80004005
cmp dword [ebp - 0x41c], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x3001d867
push dword [ebp - 0x41c]
call esi
cmp dword [ebp - 0x418], ebx
je 0x3001d877
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.3001f470
leave
ret
Function at 0x3001d88d
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x30005dc8]
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 0x3001d93d
mov ecx, dword [0x30025fa8]
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.3001028f
test eax, eax
je 0x3001d927
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push 0x30005b60
push esi
push eax
call fcn.3000fcae
add esp, 0x14
lea eax, [ebp - 0x418]
push eax
push 0x300058bc
call dword [sym.imp.MSO.dll_Ordinal_1339]
test eax, eax
jne 0x3001d927
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 0x3001d93d
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.3001f470
leave
ret

Function at 0x3001d99f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.30020005
mov eax, dword [0x30005dc8]
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.3001d949
xor edi, edi
push edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push esi
call dword [sym.imp.MSO.dll_Ordinal_403]
mov esi, eax
cmp esi, 0xffffffff
je 0x3001dae6
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 0x3001dada
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x200c]
or dword [ebp - 0x2014], 0xffffffff
cmp eax, edi
je 0x3001dae6
mov byte [ebp + eax - 0x2004], 0
lea ebx, [ebp - 0x2004]
mov al, byte [ebx]
cmp al, 0xa
je 0x3001da59
cmp al, 0xd
je 0x3001da59
cmp al, 0xef
je 0x3001da59
cmp al, 0xbb
je 0x3001da59
cmp al, 0xbf
jne 0x3001da5c
inc ebx
jmp 0x3001da43
test al, al
je 0x3001daf5
mov edi, ebx
cmp al, 0xd
je 0x3001da82
test al, al
je 0x3001da82
cmp dword [ebp + 0xc], 1
jne 0x3001da78
cmp al, 0x3e
je 0x3001da81
inc edi
mov al, byte [edi]
cmp al, 0xa
jne 0x3001da66
jmp 0x3001da82
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 0x3001daf5
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.30011215
test eax, eax
je 0x3001dad4
cmp dword [ebp - 0x2018], 0
jne 0x3001daf5
mov ebx, edi
jmp 0x3001da43
mov esi, dword [ebp - 0x2014]
cmp esi, 0xffffffff
je 0x3001dae6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2008]
call fcn.3001d949
xor eax, eax
jmp 0x3001daf8
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3001f470
leave
ret 8
Function at 0x3001f3bc
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 0x30005de8
push 0x30005dcc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x3001f3f1
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, 0x30005dc8
push ebx
call edi
test esi, esi
mov dword [0x30005dc8], esi
jne 0x3001f455
mov dword [0x30005dc8], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x30026d04], 0x44bf19b1
pop ebx
leave
ret

Function at 0x3001f470
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x30005dc8]
jne 0x3002016b
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x30031e30], eax
mov dword [0x30031e2c], ecx
mov dword [0x30031e28], edx
mov dword [0x30031e24], ebx
mov dword [0x30031e20], esi
mov dword [0x30031e1c], edi
mov word [0x30031e48], ss
mov word [0x30031e3c], cs
mov word [0x30031e18], ds
mov word [0x30031e14], es
mov word [0x30031e10], fs
mov word [0x30031e0c], gs
pushfd
pop dword [0x30031e40]
mov eax, dword [ebp]
mov dword [0x30031e34], eax
mov eax, dword [ebp + 4]
mov dword [0x30031e38], eax
lea eax, [ebp + 8]
mov dword [0x30031e44], eax
mov eax, dword [ebp - 0x320]
mov dword [0x30031d80], 0x10001
mov eax, dword [0x30031e38]
mov dword [0x30031d34], eax
mov dword [0x30031d28], 0xc0000409
mov dword [0x30031d2c], 1
mov eax, dword [0x30005dc8]
mov dword [ebp - 0x328], eax
mov eax, dword [0x30026d04]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x30031d78], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x30006140
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x30031d78], 0
jne 0x3002025b
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
Function at 0x3001f488
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x30005e14
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3001f4e0
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0
push 0
push 0x30005e0c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x3001f4e0
mov al, 1
jmp 0x3001f4e2
xor al, al
leave
ret 8