joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30021f9d
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1084
call fcn.300324e7
mov eax, dword [0x3001c4a4]
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.30021cc4
test eax, eax
pop ecx
pop ecx
jne 0x30021fde
or eax, 0xffffffff
jmp 0x3002216f
cmp word [ebp - 0x106c], 0
push esi
lea esi, [ebp - 0x106c]
push edi
mov dword [ebp - 0x1078], esi
je 0x30022004
inc esi
inc esi
cmp word [esi], 0
jne 0x30021ff6
mov dword [ebp - 0x1078], esi
xor edi, edi
inc edi
push edi
call fcn.30020d99
pop ecx
call fcn.30020f57
push eax
call fcn.30020421
cmp eax, 0x64
mov dword [ebp - 0x1070], eax
mov dword [ebp - 0x1084], eax
jbe 0x30022030
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.300274ee
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.3002c0a0
cmp eax, 0xffffffff
mov dword [ebp - 0x1080], eax
jne 0x3002211a
cmp dword [ebp - 0x1070], 0x64
jb 0x300220b3
and dword [ebp - 0x1070], 0
inc dword [ebp - 0x1070]
mov eax, dword [ebp - 0x1070]
cmp eax, dword [ebp - 0x1084]
jne 0x30022056
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.300274ee
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.3002c0a0
mov dword [ebp - 0x1080], eax
jmp 0x3002211c
xor edi, edi
cmp dword [ebp - 0x1070], 0x64
jb 0x3002212b
mov dword [ebp - 0x1070], edi
mov eax, dword [ebp - 0x1070]
inc eax
push eax
call fcn.30020f57
push eax
call fcn.30020449
push dword [0x300365b4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x107c], edi
pop edi
pop esi
je 0x30022169
push dword [ebp + 0xc]
lea eax, [ebp - 0x106c]
push dword [ebp - 0x107c]
push eax
call fcn.300286f8
mov eax, dword [ebp - 0x1080]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.300321cd
leave
ret
Function at 0x30022f15
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0xffffffff
jne 0x30022f25
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.300213d9
add esp, 0x10
test eax, eax
je 0x3002305c
cmp dword [ebp - 4], esi
je 0x3002305c
push ebx
mov ebx, 0x300697e8
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call fcn.3002289f
test eax, eax
pop ecx
jne 0x30022f80
xor edi, edi
jmp 0x30023054
cmp dword [0x3006b134], esi
je 0x30022f93
push esi
push 0x72766c72
call fcn.3001eb86
lea eax, [ebp - 0x14]
push eax
mov dword [0x3006b134], 1
mov dword [ebp - 0x14], esi
call fcn.300212fa
cmp eax, dword [ebp - 8]
pop ecx
jne 0x30022fb7
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
je 0x30022ff2
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.30021425
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.300213d9
add esp, 0x18
test eax, eax
je 0x30022fe3
cmp dword [ebp - 4], esi
jne 0x30022ff2
push esi
push 0x72766c73
call fcn.3001eb86
xor edi, edi
jmp 0x30023008
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.30021d57
add esp, 0x10
mov edi, eax
cmp edi, esi
mov dword [0x3006b134], esi
push esi
je 0x3002304a
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 0x30023035
cmp dword [ebp - 0x14], edi
jne 0x30023035
xor edi, edi
inc edi
jmp 0x30023037
xor edi, edi
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 0x10]
call fcn.30021390
add esp, 0xc
jmp 0x30023054
push 0x74697970
call fcn.3001eb86
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 0x30023080
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.30021425
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x30023086
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2094
call fcn.300324e7
mov eax, dword [0x3001c4a4]
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.30021cc4
test eax, eax
pop ecx
pop ecx
je 0x30023141
push ebx
push 0x300027dc
call fcn.30028b90
mov ebx, eax
test ebx, ebx
je 0x30023140
push esi
lea eax, [ebp - 0x104c]
push eax
push ebx
call fcn.3002877a
push ebx
call fcn.3001e6f5
call fcn.30022f02
test eax, eax
je 0x3002313e
call fcn.30022e5b
test eax, eax
je 0x3002313e
call fcn.30022e1a
lea eax, [ebp - 0x2094]
push esi
push eax
call fcn.30021f9d
lea ecx, [ebp - 0x104c]
push ecx
push 1
push eax
call fcn.30022f15
mov edi, eax
add esp, 0x14
test edi, edi
lea eax, [ebp - 0x2094]
jne 0x3002312e
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x3002313e
push 0x104
push 0x3006af14
push eax
call fcn.300286f8
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.300321cd
leave
ret

Function at 0x30024970
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 0x300249b4
call ebx
test eax, eax
jns 0x300249aa
push 0x3000e900
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x3000e8f4
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 0x300249d0
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x30024a00
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x300249f6
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x300249eb
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x300249f0
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x300249ff
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 0x30024bc4
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x3001c4a4]
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 0x30024c04
xor eax, eax
jmp 0x30024d71
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.30026e2c
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 0x30024c69
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 0x30024d05
test edi, edi
je 0x30024d05
and dword [ebp - 0x40c], 0
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0x20]
call fcn.30026caa
test eax, eax
je 0x30024ceb
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.30026de4
cmp dword [ebp - 0x40c], 5
jne 0x30024ceb
cmp dword [ebp - 0x418], 0
jne 0x30024ceb
mov dword [ebp - 0x418], ebx
jmp 0x30024c44
cmp dword [esi], 0
je 0x30024d05
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 0x30024d12
cmp eax, 0xffffffff
jne 0x30024d31
cmp edi, ecx
je 0x30024d21
push ecx
push 0x787a6c65
call fcn.3001eb86
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 0x30024d59
mov eax, dword [ebp - 0x408]
cmp eax, ecx
jne 0x30024d4a
mov eax, 0x30002b14
push dword [ebp + 0x14]
push dword [ebp - 0x41c]
push eax
call fcn.3002871a
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x30024d6b
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.300321cd
leave
ret 0x1c
Function at 0x30025b06
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
lea eax, [ebp - 0x30]
push eax
call fcn.30024b35
test eax, eax
jne 0x30025b23
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.30023474
push dword [ebp - 0x1c]
push 0x12
call fcn.30023474
push 0x3000eb48
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x30025c25
push 0x3000eb28
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x30025c25
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 0x30025c25
push dword [ebp - 4]
call fcn.3001e50b
mov edi, eax
test edi, edi
mov dword [ebp - 0xc], edi
je 0x30025c1d
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
je 0x30025c1d
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 0x30025c1d
mov edx, edi
mov edi, eax
mov eax, dword [edx + 4]
sub eax, 0
je 0x30025bd5
dec eax
dec eax
jne 0x30025be6
push dword [edx]
call fcn.30025413
cmp ebx, eax
pop ecx
ja 0x30025be6
mov ebx, eax
jmp 0x30025be6
push dword [edx]
inc dword [ebp - 8]
call fcn.30025413
cmp esi, eax
pop ecx
ja 0x30025be6
mov esi, eax
add edx, 0x18
dec edi
jne 0x30025bb9
test esi, esi
je 0x30025bfb
push esi
push 0x19e1
call fcn.30023474
test ebx, ebx
je 0x30025c0a
push ebx
push 0x19e2
call fcn.30023474
cmp dword [ebp - 8], 0
je 0x30025c1d
push dword [ebp - 8]
push 0x19e0
call fcn.30023474
push dword [ebp - 0xc]
call fcn.3001e568
xor esi, esi
cmp dword [ebp - 0x1c], esi
ja 0x30025c40
push esi
push 0x72766c74
call fcn.3001eb86
cmp dword [ebp - 0x1c], esi
jbe 0x30025cd3
push 0x3000eb0c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
jne 0x30025c59
push esi
push 0x3366646b
jmp 0x30025c71
push 0x3000eaf4
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x30025c78
push eax
push 0x3366646c
call fcn.3001eb86
jmp 0x30025cc8
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.3001e50b
mov esi, eax
test esi, esi
je 0x30025cc8
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 0x30025cb7
push 0
push 0x72766c76
call fcn.3001eb86
jmp 0x30025cc1
push dword [esi + 4]
push 0x10
call fcn.30023474
push esi
call fcn.3002111c
pop ecx
test ebx, ebx
je 0x30025cd3
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x30025d3b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x3001c4a4]
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 0x30025df0
push esi
push 0x33753467
call fcn.3001eb86
mov edi, 0x3a98
push edi
push 0xfa1
call fcn.30023474
push edi
push 0xfa2
call fcn.30023474
push edi
push 0xfa3
call fcn.30023474
push edi
push 0xfa4
call fcn.30023474
cmp ebx, esi
je 0x30025de1
push ebx
call fcn.3002111c
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.300321cd
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 0x30025da5
push edi
call fcn.3001e50b
mov ebx, eax
cmp ebx, esi
jne 0x30025e1d
push esi
push 0x33753468
jmp 0x30025da0
push ebx
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x30025e3b
push esi
push 0x33753469
jmp 0x30025da0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x3000742c
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x30025e63
push esi
push 0x3375346a
jmp 0x30025da0
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 0xa]
push eax
push 0xfa1
call fcn.30023474
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 8]
push eax
push 0xfa2
call fcn.30023474
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 0xe]
push eax
push 0xfa3
call fcn.30023474
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 0xc]
push eax
jmp 0x30025dcc

Function at 0x3002604d
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 0x300260bd
push esi
lea eax, [ebp - 4]
push eax
call fcn.3001e7c0
test eax, eax
je 0x300260bd
push dword [ebp - 4]
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x300260b5
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x3000742c
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x300260b5
cmp dword [ebp - 8], ebx
je 0x300260b5
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.3001e6f5
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x30027390
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 0x3002741b
mov eax, dword [ebp + 8]
test eax, 3
je 0x300273ce
cmp byte [eax], 0
je 0x30027412
lea eax, [eax + 1]
test eax, 3
je 0x300273ce
cmp byte [eax], 0
je 0x30027412
lea eax, [eax + 1]
test eax, 3
je 0x300273ce
cmp byte [eax], 0
je 0x30027412
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 0x300273ce
test cl, cl
lea eax, [eax - 4]
je 0x30027412
test ecx, 0xff00
lea eax, [eax + 1]
je 0x30027412
test ecx, 0xff0000
lea eax, [eax + 1]
je 0x30027412
test ecx, 0xff000000
lea eax, [eax + 1]
je 0x30027412
lea eax, [eax + 1]
jmp 0x300273ce
sub eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x30027421
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 0x30027493
mov eax, dword [ebp + 8]
test eax, 3
je 0x30027452
cmp word [eax], 0
je 0x3002744b
lea eax, [eax + 2]
test eax, 3
je 0x30027452
jmp 0x30027439
sub eax, dword [ebp + 8]
shr eax, 1
jmp 0x3002748d
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x10001
xor edx, ecx
and edx, 0x80008000
je 0x30027452
sub eax, dword [ebp + 8]
shr eax, 1
test cx, cx
lea eax, [eax - 2]
je 0x3002748d
test ecx, 0xffff0000
lea eax, [eax + 1]
je 0x3002748d
lea eax, [eax*2 + 2]
add eax, dword [ebp + 8]
jmp 0x30027452
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x3002c018
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 0x3002c032
test al, 0x10
je 0x3002c032
xor eax, eax
inc eax
jmp 0x3002c034
xor eax, eax
pop ebp
ret 4

Function at 0x3002d7c1
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x3001c4a4]
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.300321cd
leave
ret

Function at 0x30030f4e
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 0x30030f9f
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 0x30032119
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 0x3001c4a8
push 0x3000eb48
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x3003214e
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, 0x3001c4a4
push ebx
call edi
test esi, esi
mov dword [0x3001c4a4], esi
jne 0x300321b2
mov dword [0x3001c4a4], 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 0x300321cd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3001c4a4]
jne 0x300328f9
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 [0x3001c4a4]
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 0x3001c4c4
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x3006bba8], 0
jne 0x300329e9
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 0x30032488
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x30034000
call fcn.300326fe
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x3006be98
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x30032278
cmp eax, esi
jne 0x3003226b
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x3003227b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x30032252
xor esi, esi
inc esi
mov eax, dword [0x3006be94]
cmp eax, esi
jne 0x3003228e
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x300322c9
mov eax, dword [0x3006be94]
test eax, eax
jne 0x300322c3
mov dword [0x3006be94], esi
push 0x3000130c
push 0x30001300
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x300322c9
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x300323a0
mov dword [0x3006bb50], esi
mov eax, dword [0x3006be94]
cmp eax, esi
jne 0x300322ed
push 0x300012fc
push 0x300012e4
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x3006be94], 2
cmp dword [ebp - 0x1c], ebx
jne 0x300322fa
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x3006bea4], ebx
je 0x3003231b
push 0x3006bea4
call fcn.30032abc
pop ecx
test eax, eax
je 0x3003231b
push ebx
push 2
push ebx
call dword [0x3006bea4]
mov eax, dword [0x3006bb38]
mov ecx, dword [sym.imp.MSVCR80.dll___winitenv]
mov dword [ecx], eax
push dword [0x3006bb38]
push dword [0x3006bb3c]
push dword [0x3006bb34]
call fcn.3001da5e
add esp, 0xc
mov dword [0x3006bb4c], eax
cmp dword [0x3006bb40], ebx
jne 0x30032386
push eax
call dword [sym.imp.MSVCR80.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.MSVCR80.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x3006bb50], ebx
jne 0x30032394
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x3006bb4c]
call fcn.30032743
ret
call fcn.30032119
jmp 0x30032230
Function at 0x402505
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402544
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402544
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402544
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402544
cmp dword [ecx + 0x74], 0xe
jbe 0x402544
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret