joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3000f067
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
and dword [ebp - 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov eax, dword [esi + 0x4004]
push edi
lea ecx, [eax + ebx]
mov edi, 0x4000
cmp ecx, edi
ja 0x3000f0b4
push ebx
push dword [ebp + 8]
lea eax, [eax + esi + 4]
push eax
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebp + 0x10]
add esp, 0xc
test eax, eax
je 0x3000f0a9
mov dword [eax], ebx
add dword [esi + 0x4004], ebx
jmp 0x3000f1cd
cmp ebx, edi
jb 0x3000f16e
and ecx, 0xffffc000
mov ebx, eax
sub ebx, ecx
add ebx, dword [ebp + 0xc]
test eax, eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 1
jbe 0x3000f123
cmp eax, edi
jae 0x3000f0f0
mov ecx, edi
sub ecx, eax
push ecx
push dword [ebp + 8]
lea eax, [eax + esi + 4]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [esi + 4]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x3000f10e
xor eax, eax
jmp 0x3000f1d0
mov eax, edi
sub eax, dword [esi + 0x4004]
and dword [esi + 0x4004], 0
add dword [ebp + 8], eax
sub dword [ebp - 4], edi
cmp dword [ebp - 4], 0
mov edi, dword [ebp + 0x10]
jbe 0x3000f144
push 0
push edi
push dword [ebp - 4]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x3000f169
test ebx, ebx
jbe 0x3000f15e
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
add eax, ecx
push ebx
push eax
lea eax, [esi + 4]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x4004], ebx
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
jmp 0x3000f1d0
mov ecx, edi
sub ecx, eax
mov dword [ebp - 8], ecx
je 0x3000f18e
push ecx
push dword [ebp + 8]
lea eax, [eax + esi + 4]
push eax
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
add dword [ebp + 8], eax
push 0
lea ecx, [ebp - 0x10]
push ecx
push edi
lea eax, [esi + 4]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x3000f107
mov edi, ebx
sub edi, dword [ebp - 8]
lea eax, [esi + 4]
push edi
push dword [ebp + 8]
push eax
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebp + 0x10]
add esp, 0xc
test eax, eax
mov dword [esi + 0x4004], edi
je 0x3000f1cd
mov dword [eax], ebx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x3000f46d
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x30002838]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x668], 0
push ebx
mov ebx, dword [ebp + 8]
push edi
push ebx
mov dword [ebp - 0x670], ebx
mov dword [ebp - 0x66c], 1
call dword [sym.imp.MSO.dll_Ordinal_295]
mov edi, eax
test edi, edi
je 0x3000f613
push esi
lea esi, [edi + edi]
cmp word [esi + ebx - 2], 0x5c
je 0x3000f4c3
mov dword [ebp - 0x668], 1
mov eax, dword [ebp - 0x668]
lea eax, [edi + eax + 1]
cmp eax, 0x104
jb 0x3000f4db
xor eax, eax
jmp 0x3000f612
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
cmp dword [ebp - 0x668], 1
jne 0x3000f500
mov word [ebp + esi - 0x20c], 0x5c
inc edi
lea esi, [edi + edi]
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call sub.MSVCR80.dll_memcpy
and word [ebp + esi - 0x20a], 0
add esp, 0xc
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
lea ebx, [ebp + esi - 0x414]
and word [ebx], 0
push eax
mov word [ebp + esi - 0x20c], 0x2a
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x3000f606
push 4
push 0x30001890
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.MSO.dll_Ordinal_639]
test eax, eax
jne 0x3000f5d9
push 4
push 0x30001888
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.MSO.dll_Ordinal_639]
test eax, eax
jne 0x3000f5d9
cmp edi, 0x103
jae 0x3000f5fa
mov eax, 0x104
sub eax, edi
push eax
push ebx
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.MSO.dll_Ordinal_6877]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x414]
push eax
call fcn.3000f623
test eax, eax
je 0x3000f606
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x3000f606
jmp 0x3000f5ed
lea eax, [ebp - 0x664]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x66c], eax
cmp dword [ebp - 0x66c], 0
jne 0x3000f557
cmp esi, 0xffffffff
je 0x3000f606
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x670]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.30015018
leave
ret 4

Function at 0x3000f623
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x3000f64d
test al, 0x10
push dword [ebp + 8]
je 0x3000f645
call fcn.3000f46d
jmp 0x3000f64b
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x3000fa4c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
call fcn.3000f3b7
mov edi, eax
cmp edi, 0xffffffff
jne 0x3000fa6d
xor eax, eax
jmp 0x3000fafc
cmp edi, esi
jne 0x3000fa85
mov eax, dword [ebp + 0x20]
mov dword [eax], esi
mov eax, dword [ebp + 0x24]
mov dword [eax], esi
mov eax, dword [ebp + 0x28]
mov dword [eax], esi
xor eax, eax
inc eax
jmp 0x3000fafc
push esi
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSO.dll_Ordinal_403]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x3000faf9
push ebx
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, esi
je 0x3000fae1
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
je 0x3000fae1
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
mov eax, dword [ebp + 0x20]
mov dword [eax], ebx
mov eax, dword [ebp + 0x28]
mov dword [eax], edi
mov dword [ebp - 4], 1
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
cmp dword [ebp - 4], esi
jne 0x3000faf8
cmp ebx, esi
je 0x3000faf8
push ebx
call edi
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 0x24

Function at 0x3000fb02
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x30002838]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0x18]
xor esi, esi
push 0x206
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20a]
push esi
push eax
mov word [ebp - 0x20c], si
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x300018b8
push edi
mov dword [ebp - 0x210], esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x3000fbd5
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x3000fbbf
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x218]
push ebx
push 0x4000180
push 3
push esi
push 5
push 0x80000000
push eax
call fcn.3000fa4c
cmp eax, esi
mov dword [ebp - 0x210], eax
jne 0x3000fbd5
cmp word [ebp - 0x20c], si
je 0x3000fbd5
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30015018
leave
ret 0x14
Function at 0x30012c64
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x30002838]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x412]
push ebx
push eax
mov word [ebp - 0x414], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebx
push 0x30002248
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
mov word [ebp - 0x20c], bx
call fcn.30013d84
test eax, eax
mov edi, dword [sym.imp.MSO.dll_Ordinal_6877]
jne 0x30012cfe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x30012cfe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x30012cfe
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
push ebx
push 0x30001870
push esi
lea eax, [ebp - 0x20c]
push eax
mov word [ebp - 0x20c], bx
call fcn.30013d84
mov ebx, eax
test ebx, ebx
jne 0x30012d55
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x30012d55
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x30012d55
push 0xc
pop ebx
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
and word [ebp - 0x20c], 0
test ebx, ebx
jne 0x30012db0
push ebx
push 0x30002234
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.30013d84
mov ebx, eax
test ebx, ebx
jne 0x30012db0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x30012db0
lea eax, [ebp - 0x20c]
push eax
call fcn.3000f46d
test eax, eax
jne 0x30012db0
push 0xc
pop ebx
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
and word [ebp - 0x20c], 0
test ebx, ebx
jne 0x30012e0b
push ebx
push 0x3000221c
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.30013d84
mov ebx, eax
test ebx, ebx
jne 0x30012e0b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x30012e0b
lea eax, [ebp - 0x20c]
push eax
call fcn.3000f46d
test eax, eax
jne 0x30012e0b
push 0xc
pop ebx
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
and word [ebp - 0x20c], 0
test ebx, ebx
jne 0x30012e66
push ebx
push 0x30002200
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.30013d84
mov ebx, eax
test ebx, ebx
jne 0x30012e66
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x30012e87
lea eax, [ebp - 0x20c]
push eax
call fcn.3000f46d
test eax, eax
jne 0x30012e87
push 0xc
pop ebx
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
cmp dword [ebp - 0x418], 0
je 0x30012e87
cmp dword [ebp + 0xc], 0
jbe 0x30012e87
push dword [ebp + 0xc]
lea eax, [ebp - 0x414]
push dword [ebp - 0x418]
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.30015018
leave
ret 8
Function at 0x30013d84
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x30002838]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, eax
mov ebx, eax
and eax, 4
and edi, 2
and ebx, 1
cmp word [esi], 0
mov dword [ebp - 0x21c], eax
jne 0x30013e3d
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.3000fc01
test eax, eax
mov dword [ebp - 0x210], eax
jne 0x30013de5
push 4
pop eax
jmp 0x30013ebc
push dword [ebp - 0x214]
call dword [sym.imp.MSO.dll_Ordinal_295]
mov ecx, dword [ebp - 0x210]
mov dword [ebp - 0x218], eax
add eax, ecx
cmp eax, dword [ebp + 0xc]
jae 0x30013ddd
lea eax, [ecx + ecx]
push eax
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20c]
push eax
push esi
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebp - 0x218]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [ebp - 0x210]
push dword [ebp - 0x214]
add eax, esi
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0x18
test edi, edi
je 0x30013eba
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x30013ea8
xor edi, edi
cmp ebx, edi
je 0x30013e9c
cmp dword [ebp - 0x21c], edi
je 0x30013e9c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x30013e6e
push 5
jmp 0x30013ddf
push 0x2082
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x30002448
call dword [sym.imp.MSO.dll_Ordinal_1455]
test eax, eax
je 0x30013e92
push esi
call dword [sym.imp.ADVAPI32.dll_EncryptFileW]
jmp 0x30013eba
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_DecryptFileW]
jmp 0x30013eba
xor eax, eax
cmp ebx, edi
setne al
add eax, 4
jmp 0x30013ebc
push 0x30002448
call dword [sym.imp.MSO.dll_Ordinal_1455]
push eax
push esi
call fcn.3000fc49
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30015018
leave
ret 0x10

Function at 0x30014078
Capabilities:
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x300140b5
push 4
push esi
push 3
push esi
call dword [sym.imp.MSO.dll_Ordinal_6117]
cmp eax, 6
jne 0x300140ac
push 1
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x300149c7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x30002838]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x474], eax
push 0x105
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor esi, esi
cmp eax, esi
jne 0x30014a03
xor eax, eax
jmp 0x30014b29
add eax, eax
lea ecx, [ebp + eax - 0x260]
cmp word [ecx], 0x5c
je 0x30014a1f
mov word [ecx], 0x5c
mov word [ebp + eax - 0x25e], si
push ebx
push edi
push 0x106
lea eax, [ebp - 0x260]
push eax
mov edi, 0x30002720
push edi
call fcn.3001499c
push 8
push esi
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
jne 0x30014a5f
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
je 0x30014b11
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x3000270c
push ebx
call edi
push 0x300026ec
push ebx
mov dword [ebp - 0x478], eax
call edi
cmp eax, esi
mov dword [ebp - 0x470], eax
je 0x30014b11
cmp dword [ebp - 0x474], esi
mov ebx, 0x300026d8
mov edi, 0x30002688
je 0x30014ae9
cmp dword [ebp - 0x478], esi
je 0x30014b11
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x474]
call dword [ebp - 0x478]
cmp eax, esi
jne 0x30014ae2
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x468]
push eax
push esi
push esi
lea eax, [ebp - 0x54]
push eax
push esi
push ebx
push edi
mov dword [ebp - 0x46c], 0x104
call dword [ebp - 0x470]
cmp eax, esi
je 0x30014b15
cmp eax, 0x642
je 0x30014b15
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x468]
push eax
push esi
push esi
push esi
push esi
push ebx
push edi
mov dword [ebp - 0x46c], 0x104
call dword [ebp - 0x470]
test eax, eax
je 0x30014b15
xor eax, eax
jmp 0x30014b27
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x30018608], eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.30015018
leave
ret 4
Function at 0x30014bc6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x30002838]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x30002620
push 0x80000002
mov dword [ebp - 0x214], ebx
xor esi, esi
mov dword [ebp - 0x218], 0x208
mov word [ebp - 0x210], bx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push ebx
push 0x300027a4
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x214], ebx
je 0x30014c51
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x218]
cmp eax, ebx
je 0x30014c7c
cmp eax, 0x208
ja 0x30014c7c
shr eax, 1
mov esi, eax
je 0x30014c7c
lea eax, [ebp + esi*2 - 0x212]
cmp word [eax], 0x5c
je 0x30014c7c
dec esi
dec eax
dec eax
cmp esi, ebx
jne 0x30014c6f
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push eax
mov word [ebp + esi*2 - 0x210], bx
call fcn.30014b38
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.30015018
leave
ret 4

Function at 0x30014ca6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x30002838]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor esi, esi
push esi
push 0x30002750
push 0x80000002
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push 0x30002730
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x218]
shr eax, 1
cmp dword [ebp - 0x214], esi
mov word [ebp + eax*2 - 0x210], si
je 0x30014d2e
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0x300027c0
call fcn.3001499c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
pop esi
jne 0x30014d60
push 0x300027b4
call fcn.30014bc6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.30015018
leave
ret
Function at 0x30014f64
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 0x30002858
push 0x3000283c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x30014f99
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, 0x30002838
push ebx
call edi
test esi, esi
mov dword [0x30002838], esi
jne 0x30014ffd
mov dword [0x30002838], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x30018324], 0x44bf19b1
pop ebx
leave
ret

Function at 0x30015018
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x30002838]
jne 0x30015a1f
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x30018738], eax
mov dword [0x30018734], ecx
mov dword [0x30018730], edx
mov dword [0x3001872c], ebx
mov dword [0x30018728], esi
mov dword [0x30018724], edi
mov word [0x30018750], ss
mov word [0x30018744], cs
mov word [0x30018720], ds
mov word [0x3001871c], es
mov word [0x30018718], fs
mov word [0x30018714], gs
pushfd
pop dword [0x30018748]
mov eax, dword [ebp]
mov dword [0x3001873c], eax
mov eax, dword [ebp + 4]
mov dword [0x30018740], eax
lea eax, [ebp + 8]
mov dword [0x3001874c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x30018688], 0x10001
mov eax, dword [0x30018740]
mov dword [0x3001863c], eax
mov dword [0x30018630], 0xc0000409
mov dword [0x30018634], 1
mov eax, dword [0x30002838]
mov dword [ebp - 0x328], eax
mov eax, dword [0x30018324]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x30018680], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x30002bb8
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x30018680], 0
jne 0x30015b0f
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 0x30015030
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 0x30002884
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x30015088
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 0x3000287c
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 0x30015088
mov al, 1
jmp 0x3001508a
xor al, al
leave
ret 8
Function at 0x300158c2
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x30016328
call fcn.300158cc
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x30018978
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x30015661
cmp eax, esi
jne 0x30015654
xor esi, esi
inc esi
mov ebx, esi
jmp 0x30015664
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x3001563b
xor esi, esi
inc esi
mov eax, dword [0x30018974]
cmp eax, esi
jne 0x30015677
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x300156a6
mov eax, dword [0x30018974]
test eax, eax
jne 0x300156a0
mov dword [0x30018974], esi
push 0x30001254
push 0x3000124c
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x300156a6
jmp 0x300157ce
mov dword [0x3001862c], esi
mov eax, dword [0x30018974]
cmp eax, esi
jne 0x300156ca
push 0x30001248
push 0x30001240
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x30018974], 2
test ebx, ebx
jne 0x300156d6
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x30018984], 0
je 0x300156fa
push 0x30018984
call fcn.30015c93
pop ecx
test eax, eax
je 0x300156fa
push 0
push 2
push 0
call dword [0x30018984]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x30015756
test al, al
je 0x30015714
cmp dword [ebp - 0x1c], 0
jne 0x30015756
mov al, byte [esi]
test al, al
je 0x30015724
cmp al, 0x20
ja 0x30015724
inc esi
mov dword [ebp - 0x20], esi
jmp 0x30015714
test byte [ebp - 0x3c], 1
je 0x30015730
movzx eax, word [ebp - 0x38]
jmp 0x30015733
push 0xa
pop eax
push eax
push esi
push 0
push 0x30000000
call main
mov dword [0x30018628], eax
cmp dword [0x3001861c], 0
jne 0x300157aa
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x30015765
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x30015778
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x30015701
cmp dword [0x3001862c], 0
jne 0x300157b9
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x30018628]
jmp 0x300157da
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.30015911
ret
call fcn.30014f64
jmp 0x30015601