joyce8/EMBER2024-capa huggingface dataset:
Function at 0x300215f6
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 4], edi
jne 0x30021618
push edi
push 0x36717370
call fcn.3001eabf
jmp 0x30021755
push esi
mov esi, dword [ebp + 0x10]
cmp esi, edi
jne 0x3002162b
push edi
push 0x36717371
jmp 0x3002172a
cmp dword [ebp + 8], 2
je 0x30021648
cmp dword [ebp + 8], 8
je 0x30021648
cmp dword [ebp + 8], 3
je 0x30021648
push edi
push 0x36717372
jmp 0x3002172a
cmp dword [ebx], edi
je 0x30021657
push edi
push 0x36717373
call fcn.3001eabf
cmp dword [esi], edi
je 0x30021666
push edi
push 0x37667270
call fcn.3001eabf
push esi
push edi
push dword [ebp + 8]
mov dword [esi], edi
call sub.Secur32.dll_GetUserNameExW
movzx edi, al
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x30021731
cmp eax, 0xea
jne 0x30021731
mov eax, dword [esi]
push 2
xor ecx, ecx
pop edx
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call fcn.3001e444
test eax, eax
mov dword [ebx], eax
jne 0x300216b5
push eax
push 0x36717375
jmp 0x30021738
mov ecx, dword [esi]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
push eax
push edi
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x300216d5
push 0
push 0x36717376
jmp 0x30021738
mov eax, dword [esi]
dec eax
cmp dword [ebp - 4], eax
je 0x300216e9
push 0
push 0x36717377
call fcn.3001eabf
cmp edi, 2
jne 0x30021705
push dword [esi]
push dword [ebx]
call fcn.30020edd
test eax, eax
pop ecx
pop ecx
jne 0x30021754
push eax
push 0x36717378
jmp 0x30021738
cmp edi, 8
jne 0x3002171e
push dword [ebx]
call fcn.30020f4c
test eax, eax
pop ecx
jne 0x30021754
push eax
push 0x36717379
jmp 0x30021738
cmp edi, 3
je 0x30021754
push 0
push 0x3671737a
call fcn.3001eabf
jmp 0x30021754
push 0
push 0x36717374
call fcn.3001eabf
mov eax, dword [ebx]
xor edi, edi
cmp eax, edi
je 0x3002174e
push eax
call fcn.3002103d
pop ecx
mov dword [ebx], edi
cmp dword [esi], edi
je 0x30021754
mov dword [esi], edi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x30021ec8
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1084
call fcn.300323f7
mov eax, dword [0x3001c404]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x107c], eax
mov ebx, 0x824
lea eax, [ebp - 0x106c]
push ebx
push eax
call fcn.30021bef
test eax, eax
pop ecx
pop ecx
jne 0x30021f09
or eax, 0xffffffff
jmp 0x3002209a
cmp word [ebp - 0x106c], 0
push esi
lea esi, [ebp - 0x106c]
push edi
mov dword [ebp - 0x1078], esi
je 0x30021f2f
inc esi
inc esi
cmp word [esi], 0
jne 0x30021f21
mov dword [ebp - 0x1078], esi
xor edi, edi
inc edi
push edi
call fcn.30020ce1
pop ecx
call fcn.30020e75
push eax
call fcn.3002035a
cmp eax, 0x64
mov dword [ebp - 0x1070], eax
mov dword [ebp - 0x1084], eax
jbe 0x30021f5b
mov dword [ebp - 0x1070], edi
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
lea eax, [ebp - 0x106c]
sub esi, eax
sar esi, 1
mov dword [ebp - 0x1074], ebx
sub dword [ebp - 0x1074], esi
mov esi, 0x80
mov ebx, 0xc0000000
push dword [ebp - 0x1070]
lea eax, [ebp - 0x24]
push 0x300027cc
push 0x1f
push eax
call edi
add esp, 0x10
push dword [ebp - 0x1074]
lea eax, [ebp - 0x24]
push dword [ebp - 0x1078]
push eax
call fcn.300273fa
xor eax, eax
push eax
push eax
push esi
push 1
push eax
push 1
push ebx
lea eax, [ebp - 0x106c]
push eax
call fcn.3002bfb0
cmp eax, 0xffffffff
mov dword [ebp - 0x1080], eax
jne 0x30022045
cmp dword [ebp - 0x1070], 0x64
jb 0x30021fde
and dword [ebp - 0x1070], 0
inc dword [ebp - 0x1070]
mov eax, dword [ebp - 0x1070]
cmp eax, dword [ebp - 0x1084]
jne 0x30021f81
push eax
push 0x300027cc
lea eax, [ebp - 0x24]
push 0x1f
push eax
call edi
add esp, 0x10
push dword [ebp - 0x1074]
lea eax, [ebp - 0x24]
push dword [ebp - 0x1078]
push eax
call fcn.300273fa
push esi
lea eax, [ebp - 0x106c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor edi, edi
push edi
push edi
push esi
push 2
push edi
push 1
push ebx
lea eax, [ebp - 0x106c]
push eax
call fcn.3002bfb0
mov dword [ebp - 0x1080], eax
jmp 0x30022047
xor edi, edi
cmp dword [ebp - 0x1070], 0x64
jb 0x30022056
mov dword [ebp - 0x1070], edi
mov eax, dword [ebp - 0x1070]
inc eax
push eax
call fcn.30020e75
push eax
call fcn.30020382
push dword [0x300365b4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x107c], edi
pop edi
pop esi
je 0x30022094
push dword [ebp + 0xc]
lea eax, [ebp - 0x106c]
push dword [ebp - 0x107c]
push eax
call fcn.30028604
mov eax, dword [ebp - 0x1080]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.300320dd
leave
ret
Function at 0x30022e40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0xffffffff
jne 0x30022e50
xor eax, eax
leave
ret
push esi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
inc edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call fcn.300212e1
add esp, 0x10
test eax, eax
je 0x30022f87
cmp dword [ebp - 4], esi
je 0x30022f87
push ebx
mov ebx, 0x300697e8
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call fcn.300227ca
test eax, eax
pop ecx
jne 0x30022eab
xor edi, edi
jmp 0x30022f7f
cmp dword [0x3006b134], esi
je 0x30022ebe
push esi
push 0x72766c72
call fcn.3001eabf
lea eax, [ebp - 0x14]
push eax
mov dword [0x3006b134], 1
mov dword [ebp - 0x14], esi
call fcn.30021202
cmp eax, dword [ebp - 8]
pop ecx
jne 0x30022ee2
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
je 0x30022f1d
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.3002132d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.300212e1
add esp, 0x18
test eax, eax
je 0x30022f0e
cmp dword [ebp - 4], esi
jne 0x30022f1d
push esi
push 0x72766c73
call fcn.3001eabf
xor edi, edi
jmp 0x30022f33
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.30021c82
add esp, 0x10
mov edi, eax
cmp edi, esi
mov dword [0x3006b134], esi
push esi
je 0x30022f75
mov edi, dword [ebp - 8]
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x30022f60
cmp dword [ebp - 0x14], edi
jne 0x30022f60
xor edi, edi
inc edi
jmp 0x30022f62
xor edi, edi
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 0x10]
call fcn.30021298
add esp, 0xc
jmp 0x30022f7f
push 0x74697970
call fcn.3001eabf
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
je 0x30022fab
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.3002132d
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x30022fb1
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2094
call fcn.300323f7
mov eax, dword [0x3001c404]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x824
lea eax, [ebp - 0x104c]
push esi
xor edi, edi
push eax
inc edi
call fcn.30021bef
test eax, eax
pop ecx
pop ecx
je 0x3002306c
push ebx
push 0x300027dc
call fcn.30028a9c
mov ebx, eax
test ebx, ebx
je 0x3002306b
push esi
lea eax, [ebp - 0x104c]
push eax
push ebx
call fcn.30028686
push ebx
call fcn.3001e62e
call fcn.30022e2d
test eax, eax
je 0x30023069
call fcn.30022d86
test eax, eax
je 0x30023069
call fcn.30022d45
lea eax, [ebp - 0x2094]
push esi
push eax
call fcn.30021ec8
lea ecx, [ebp - 0x104c]
push ecx
push 1
push eax
call fcn.30022e40
mov edi, eax
add esp, 0x14
test edi, edi
lea eax, [ebp - 0x2094]
jne 0x30023059
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x30023069
push 0x104
push 0x3006af14
push eax
call fcn.30028604
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.300320dd
leave
ret

Function at 0x3002487b
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x3006b184], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x300248bf
call ebx
test eax, eax
jns 0x300248b5
push 0x3000e860
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x3000e854
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x3006b180], eax
mov dword [0x3006b184], 1
mov eax, dword [0x3006b180]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x300248db
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x3002490b
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x30024901
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x300248f6
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x300248fb
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x3002490a
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
Function at 0x30024acf
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x3001c404]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x41c], ecx
mov ecx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 0x424], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x414], ecx
jne 0x30024b0f
xor eax, eax
jmp 0x30024c7c
and dword [esi], 0
push ebx
push edi
mov edi, dword [ebp + 0x20]
xor ebx, ebx
inc ebx
push ebx
push edi
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
mov dword [ebp - 0x420], ebx
call fcn.30026d38
and dword [ebp - 0x410], 0
and dword [ebp - 0x418], 0
shr edi, 0x1a
not edi
mov dword [ebp - 0x408], eax
and edi, ebx
cmp dword [ebp - 0x408], 0
je 0x30024b74
mov eax, dword [ebp + 0x20]
push dword [ebp - 0x408]
shr eax, 0x17
and eax, ebx
push eax
push 0x120001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [esi], eax
cmp dword [esi], 0
jne 0x30024c10
test edi, edi
je 0x30024c10
and dword [ebp - 0x40c], 0
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0x20]
call fcn.30026bb6
test eax, eax
je 0x30024bf6
mov eax, dword [ebp + 0x20]
push dword [ebp - 0x408]
shr eax, 0x19
and eax, ebx
push eax
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0x20]
call fcn.30026cf0
cmp dword [ebp - 0x40c], 5
jne 0x30024bf6
cmp dword [ebp - 0x418], 0
jne 0x30024bf6
mov dword [ebp - 0x418], ebx
jmp 0x30024b4f
cmp dword [esi], 0
je 0x30024c10
xor eax, eax
cmp dword [ebp - 0x40c], 0xb7
setne al
mov dword [ebp - 0x410], eax
mov eax, dword [esi]
xor ecx, ecx
cmp eax, ecx
je 0x30024c1d
cmp eax, 0xffffffff
jne 0x30024c3c
cmp edi, ecx
je 0x30024c2c
push ecx
push 0x787a6c65
call fcn.3001eabf
xor ecx, ecx
mov dword [esi], ecx
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x420], ecx
cmp dword [ebp - 0x41c], ecx
pop edi
pop ebx
je 0x30024c64
mov eax, dword [ebp - 0x408]
cmp eax, ecx
jne 0x30024c55
mov eax, 0x30002ac8
push dword [ebp + 0x14]
push dword [ebp - 0x41c]
push eax
call fcn.30028626
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x30024c76
mov ecx, dword [ebp - 0x410]
mov dword [eax], ecx
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.300320dd
leave
ret 0x1c
Function at 0x30025a12
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
lea eax, [ebp - 0x30]
push eax
call fcn.30024a40
test eax, eax
jne 0x30025a2f
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x30]
push ebx
push esi
push edi
push eax
push 0x11
call fcn.30020fac
push dword [ebp - 0x1c]
push 0x12
call fcn.30020fac
push 0x3000eaa8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x30025b31
push 0x3000ea88
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x30025b31
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x30025b31
push dword [ebp - 4]
call fcn.3001e444
mov edi, eax
test edi, edi
mov dword [ebp - 0xc], edi
je 0x30025b29
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
je 0x30025b29
mov eax, dword [ebp - 4]
push 0x18
xor edx, edx
pop ecx
div ecx
xor ebx, ebx
and dword [ebp - 8], ebx
xor esi, esi
test eax, eax
jbe 0x30025b29
mov edx, edi
mov edi, eax
mov eax, dword [edx + 4]
sub eax, 0
je 0x30025ae1
dec eax
dec eax
jne 0x30025af2
push dword [edx]
call fcn.3002531e
cmp ebx, eax
pop ecx
ja 0x30025af2
mov ebx, eax
jmp 0x30025af2
push dword [edx]
inc dword [ebp - 8]
call fcn.3002531e
cmp esi, eax
pop ecx
ja 0x30025af2
mov esi, eax
add edx, 0x18
dec edi
jne 0x30025ac5
test esi, esi
je 0x30025b07
push esi
push 0x19e1
call fcn.30020fac
test ebx, ebx
je 0x30025b16
push ebx
push 0x19e2
call fcn.30020fac
cmp dword [ebp - 8], 0
je 0x30025b29
push dword [ebp - 8]
push 0x19e0
call fcn.30020fac
push dword [ebp - 0xc]
call fcn.3001e4a1
xor esi, esi
cmp dword [ebp - 0x1c], esi
ja 0x30025b4c
push esi
push 0x72766c74
call fcn.3001eabf
cmp dword [ebp - 0x1c], esi
jbe 0x30025bdf
push 0x3000ea6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
jne 0x30025b65
push esi
push 0x3366646b
jmp 0x30025b7d
push 0x3000ea54
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x30025b84
push eax
push 0x3366646c
call fcn.3001eabf
jmp 0x30025bd4
mov eax, dword [ebp - 0x1c]
push 0x18
xor ecx, ecx
pop edx
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call fcn.3001e444
mov esi, eax
test esi, esi
je 0x30025bd4
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x18
push eax
push esi
push 0
push 0
push 0xb
call edi
test eax, eax
je 0x30025bc3
push 0
push 0x72766c76
call fcn.3001eabf
jmp 0x30025bcd
push dword [esi + 4]
push 0x10
call fcn.30020fac
push esi
call fcn.3002103d
pop ecx
test ebx, ebx
je 0x30025bdf
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x30025c47
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x3001c404]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x214], esi
xor ebx, ebx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x218], esi
mov word [ebp - 0x20c], si
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x30025cfc
push esi
push 0x33753467
call fcn.3001eabf
mov edi, 0x3a98
push edi
push 0xfa1
call fcn.30020fac
push edi
push 0xfa2
call fcn.30020fac
push edi
push 0xfa3
call fcn.30020fac
push edi
push 0xfa4
call fcn.30020fac
cmp ebx, esi
je 0x30025ced
push ebx
call fcn.3002103d
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.300320dd
leave
ret
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
je 0x30025cb1
push edi
call fcn.3001e444
mov ebx, eax
cmp ebx, esi
jne 0x30025d29
push esi
push 0x33753468
jmp 0x30025cac
push ebx
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x30025d47
push esi
push 0x33753469
jmp 0x30025cac
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x3000738c
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x30025d6f
push esi
push 0x3375346a
jmp 0x30025cac
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 0xa]
push eax
push 0xfa1
call fcn.30020fac
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 8]
push eax
push 0xfa2
call fcn.30020fac
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 0xe]
push eax
push 0xfa3
call fcn.30020fac
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 0xc]
push eax
jmp 0x30025cd8

Function at 0x30025f59
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x30025fc9
push esi
lea eax, [ebp - 4]
push eax
call fcn.3001e6f9
test eax, eax
je 0x30025fc9
push dword [ebp - 4]
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x30025fc1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x3000738c
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x30025fc1
cmp dword [ebp - 8], ebx
je 0x30025fc1
mov esi, dword [ebp - 0xc]
push edi
mov edi, dword [ebp + 0xc]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
mov bl, 1
pop edi
push dword [ebp - 4]
call fcn.3001e62e
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x3002729c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [ebp + 8], eax
mov dword [ebp - 4], eax
je 0x30027327
mov eax, dword [ebp + 8]
test eax, 3
je 0x300272da
cmp byte [eax], 0
je 0x3002731e
lea eax, [eax + 1]
test eax, 3
je 0x300272da
cmp byte [eax], 0
je 0x3002731e
lea eax, [eax + 1]
test eax, 3
je 0x300272da
cmp byte [eax], 0
je 0x3002731e
lea eax, [eax + 1]
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x1010101
xor edx, ecx
and edx, 0x80808080
je 0x300272da
test cl, cl
lea eax, [eax - 4]
je 0x3002731e
test ecx, 0xff00
lea eax, [eax + 1]
je 0x3002731e
test ecx, 0xff0000
lea eax, [eax + 1]
je 0x3002731e
test ecx, 0xff000000
lea eax, [eax + 1]
je 0x3002731e
lea eax, [eax + 1]
jmp 0x300272da
sub eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x3002732d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [ebp + 8], eax
mov dword [ebp - 4], eax
je 0x3002739f
mov eax, dword [ebp + 8]
test eax, 3
je 0x3002735e
cmp word [eax], 0
je 0x30027357
lea eax, [eax + 2]
test eax, 3
je 0x3002735e
jmp 0x30027345
sub eax, dword [ebp + 8]
shr eax, 1
jmp 0x30027399
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x10001
xor edx, ecx
and edx, 0x80008000
je 0x3002735e
sub eax, dword [ebp + 8]
shr eax, 1
test cx, cx
lea eax, [eax - 2]
je 0x30027399
test ecx, 0xffff0000
lea eax, [eax + 1]
je 0x30027399
lea eax, [eax*2 + 2]
add eax, dword [ebp + 8]
jmp 0x3002735e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x3002bf28
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x3002bf42
test al, 0x10
je 0x3002bf42
xor eax, eax
inc eax
jmp 0x3002bf44
xor eax, eax
pop ebp
ret 4

Function at 0x3002d6d1
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x3001c404]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x7ff
push eax
call dword [sym.imp.MSVCR80.dll__vsnprintf]
add esp, 0x10
lea eax, [ebp - 0x804]
push eax
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.300320dd
leave
ret

Function at 0x30030e5e
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, ecx
xor ecx, ecx
mov eax, 0x3006bb04
inc ecx
lock xadd dword [eax], ecx
inc ecx
cmp ecx, 1
jne 0x30030eaf
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x28]
mov dword [0x3006bb08], eax
mov ax, word [ebp - 0x30]
mov word [0x3006bb0c], ax
mov eax, dword [ebp - 0x18]
mov dword [0x3006bb10], eax
mov eax, dword [ebp - 0x40]
mov dword [0x3006bb14], eax
mov eax, esi
pop esi
leave
ret

Function at 0x30032029
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 0x3001c408
push 0x3000eaa8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x3003205e
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, 0x3001c404
push ebx
call edi
test esi, esi
mov dword [0x3001c404], esi
jne 0x300320c2
mov dword [0x3001c404], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x30067144], 0x44bf19b1
pop ebx
leave
ret
Function at 0x300320dd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3001c404]
jne 0x30032809
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x3006bc60], eax
mov dword [0x3006bc5c], ecx
mov dword [0x3006bc58], edx
mov dword [0x3006bc54], ebx
mov dword [0x3006bc50], esi
mov dword [0x3006bc4c], edi
mov word [0x3006bc78], ss
mov word [0x3006bc6c], cs
mov word [0x3006bc48], ds
mov word [0x3006bc44], es
mov word [0x3006bc40], fs
mov word [0x3006bc3c], gs
pushfd
pop dword [0x3006bc70]
mov eax, dword [ebp]
mov dword [0x3006bc64], eax
mov eax, dword [ebp + 4]
mov dword [0x3006bc68], eax
lea eax, [ebp + 8]
mov dword [0x3006bc74], eax
mov eax, dword [ebp - 0x320]
mov dword [0x3006bbb0], 0x10001
mov eax, dword [0x3006bc68]
mov dword [0x3006bb64], eax
mov dword [0x3006bb58], 0xc0000409
mov dword [0x3006bb5c], 1
mov eax, dword [0x3001c404]
mov dword [ebp - 0x328], eax
mov eax, dword [0x30067144]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x3006bba8], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x3001c424
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x3006bba8], 0
jne 0x300328f9
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