joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001c5c0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x1001c668
mov eax, dword [ebx + 0x1c]
shr eax, 3
push esi
cmp eax, ecx
jbe 0x1001c710
mov eax, dword [ebx + 4]
mov dword [ebp - 4], eax
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
cmp edx, eax
je 0x1001c667
mov eax, dword [edx + 4]
mov esi, edx
mov dword [ebp - 8], eax
movzx eax, byte [edx + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 9]
push edi
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x1c], edi
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [edi + eax*8]
mov dword [ebp - 0x10], ecx
lea eax, [edi + eax*8]
mov dword [ebp - 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, esi
mov edi, esi
mov esi, dword [esi]
push 0xc
push eax
call fcn.1001e51f
dec dword [ebx + 8]
add esp, 8
cmp edi, dword [ebp - 0x18]
je 0x1001c66d
cmp esi, dword [ebp - 4]
jne 0x1001c633
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x1001c65e
mov ecx, dword [ebp - 0xc]
mov dword [ecx], esi
mov eax, dword [ebp - 8]
pop edi
mov dword [eax], esi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jne 0x1001c681
mov dword [ecx], edx
mov eax, edx
jmp 0x1001c684
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
cmp esi, edx
je 0x1001c65e
nop dword [eax + eax]
movzx eax, byte [esi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 9]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebp - 0x1c]
and eax, dword [ebx + 0x18]
lea eax, [ecx + eax*8]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
nop dword [eax]
mov eax, esi
mov edi, esi
mov esi, dword [esi]
push 0xc
push eax
call fcn.1001e51f
dec dword [ebx + 8]
add esp, 8
cmp edi, dword [ebp - 0x18]
je 0x1001c6f2
cmp esi, dword [ebp - 4]
jne 0x1001c6c0
mov eax, dword [ebp - 0x14]
pop edi
mov dword [eax], esi
mov eax, dword [ebp - 8]
mov dword [eax], esi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov dword [eax], edx
mov dword [eax + 4], edx
cmp esi, edx
jne 0x1001c690
mov eax, dword [ebp - 8]
pop edi
mov dword [eax], esi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x1001c735
mov esi, dword [eax]
push 0xc
push eax
call fcn.1001e51f
add esp, 8
mov eax, esi
test esi, esi
jne 0x1001c722
mov eax, dword [ebx + 4]
mov dword [eax], eax
mov eax, dword [ebx + 4]
mov dword [eax + 4], eax
mov dword [ebx + 8], 0
mov eax, dword [ebx + 4]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x10]
push dword [ebx + 0xc]
call fcn.10011930
add esp, 0xc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001f5b0
Capabilities:
Get process heap force flags

Disassembly:
call fcn.1001f4e0
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov edx, dword [ecx + 0xa4]
shl edx, 0x10
or edx, dword [ecx + 0xa8]
cmp edx, 0x50001
jae 0x1001f5da
add eax, 0x74
ret
cmp edx, 0x60000
jae 0x1001f5e6
add eax, 0x78
ret
add eax, 0x88
ret

Function at 0x1001f5f0
Capabilities:
Get process heap force flags

Disassembly:
call fcn.1001f4e0
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov edx, dword [ecx + 0xa4]
shl edx, 0x10
or edx, dword [ecx + 0xa8]
cmp edx, 0x60000
jae 0x1001f61a
add eax, 0x7c
ret
add eax, 0x8c
ret

Function at 0x1001f8b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x10035100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1001f8d7
mov ecx, 5
int 0x29
push 2
call fcn.1001ee95
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x1001f9e2
test esi, esi
jne 0x1001f9e2
push 2
call fcn.1001ee95
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1001e52d
mov esp, ebp
pop ebp
ret
Function at 0x100230e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.10023110
mov esi, dword [ebp + 8]
test al, al
je 0x100230fe
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.10023120
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10027590
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100275bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100275bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1000f130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1a0
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x1c], 0x10
test byte [0x10033048], 8
jne 0x1000f250
test ebx, ebx
je 0x1000f23f
call sym._wined3d_mutex_lock_0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1000f290
lea eax, [esp + 0x1c]
lea esi, [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, dword [edi + 0x30]
mov dword [esp], eax
call sym._wined3d_device_context_get_viewports
call sym._wined3d_mutex_unlock_0
mov eax, dword [ebx]
mov edi, dword [esp + 0x1c]
cmp eax, edi
ja 0x1000f2c8
cmp edi, eax
cmovbe eax, edi
mov dword [ebx], eax
test eax, eax
je 0x1000f23f
mov eax, dword [ebp + 0x10]
movups xmm0, xmmword [0x1003d2f0]
mov edx, esi
xor ecx, ecx
lea esi, [esi]
movss xmm1, dword [edx + 8]
movups xmm2, xmm0
movups xmm3, xmm0
add ecx, 1
cmpleps xmm2, xmm1
movups xmm4, xmm0
movups xmm5, xmm0
add edx, 0x18
cvttss2si esi, dword [edx - 0x18]
add eax, 0x18
andps xmm3, xmm2
pslld xmm2, 0x1f
subps xmm1, xmm3
mov dword [eax - 0x18], esi
cvttss2si esi, dword [edx - 0x14]
cvttps2dq xmm1, xmm1
pxor xmm1, xmm2
movd dword [eax - 0x10], xmm1
movss xmm1, dword [edx - 0xc]
cmpleps xmm4, xmm1
mov dword [eax - 0x14], esi
andps xmm5, xmm4
pslld xmm4, 0x1f
subps xmm1, xmm5
cvttps2dq xmm1, xmm1
pxor xmm1, xmm4
movd dword [eax - 0xc], xmm1
movss xmm1, dword [edx - 8]
movss dword [eax - 8], xmm1
movss xmm1, dword [edx - 4]
movss dword [eax - 4], xmm1
cmp dword [ebx], ecx
ja 0x1000f1c0
add esp, 0x1a0
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], str.iface__p__viewport_count__p__viewports__p._n
mov dword [esp + 8], str.d3d10_device_RSGetViewports
mov dword [esp + 4], 0x10033048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x1000f157
lea eax, [esp + 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [edi + 0x30]
mov dword [esp], eax
call sym._wined3d_device_context_get_viewports
call sym._wined3d_mutex_unlock_0
mov eax, dword [esp + 0x1c]
mov dword [ebx], eax
add esp, 0x1a0
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub eax, edi
lea ecx, [edi + edi*2]
mov dword [esp + 4], 0
lea eax, [eax + eax*2]
shl eax, 3
lea ecx, [edx + ecx*8]
mov dword [esp + 8], eax
mov dword [esp], ecx
call sym._memset
mov eax, dword [ebx]
jmp 0x1000f19d
Function at 0x10029e20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
cmp eax, 0x80
ja case.default.0x10029e30
jmp dword [eax*4 + 0x10042a9c]
mov eax, 1
leave
ret
cmp eax, 0x3231564e
je 0x10029e60
cmp eax, 0x32595559
jne case.0x10029e30.1
leave
mov eax, 0x6b
ret
leave
mov eax, 0x67
ret
leave
mov eax, 0x63
ret
leave
mov eax, 0x62
ret
leave
mov eax, 0x61
ret
leave
mov eax, 0x60
ret
leave
mov eax, 0x5f
ret
leave
mov eax, 0x5e
ret
leave
mov eax, 0x5d
ret
leave
mov eax, 0x5c
ret
leave
mov eax, 0x5b
ret
leave
mov eax, 0x5a
ret
leave
mov eax, 0x58
ret
leave
mov eax, 0x57
ret
leave
mov eax, 0x56
ret
leave
mov eax, 0x55
ret
leave
mov eax, 0x54
ret
leave
mov eax, 0x53
ret
leave
mov eax, 0x52
ret
leave
mov eax, 0x51
ret
leave
mov eax, 0x50
ret
leave
mov eax, 0x4f
ret
leave
mov eax, 0x4e
ret
leave
mov eax, 0x4d
ret
leave
mov eax, 0x4c
ret
leave
mov eax, 0x4b
ret
leave
mov eax, 0x4a
ret
leave
mov eax, 0x49
ret
leave
mov eax, 0x48
ret
leave
mov eax, 0x47
ret
leave
mov eax, 0x46
ret
leave
mov eax, 0x45
ret
leave
mov eax, 0x44
ret
leave
mov eax, 0x43
ret
leave
mov eax, 0x42
ret
leave
mov eax, 0x41
ret
leave
mov eax, 0x40
ret
leave
mov eax, 0x3f
ret
leave
mov eax, 0x3e
ret
leave
mov eax, 0x3d
ret
leave
mov eax, 0x3c
ret
leave
mov eax, 0x3b
ret
leave
mov eax, 0x3a
ret
leave
mov eax, 0x39
ret
leave
mov eax, 0x38
ret
leave
mov eax, 0x37
ret
leave
mov eax, 0x36
ret
leave
mov eax, 0x35
ret
leave
mov eax, 0x34
ret
leave
mov eax, 0x33
ret
leave
mov eax, 0x32
ret
leave
mov eax, 0x31
ret
leave
mov eax, 0x30
ret
leave
mov eax, 0x2f
ret
leave
mov eax, 0x2e
ret
leave
mov eax, 0x2d
ret
leave
mov eax, 0x2c
ret
leave
mov eax, 0x2b
ret
leave
mov eax, 0x2a
ret
leave
mov eax, 0x29
ret
leave
mov eax, 0x28
ret
leave
mov eax, 0x27
ret
leave
mov eax, 0x26
ret
leave
mov eax, 0x25
ret
leave
mov eax, 0x24
ret
leave
mov eax, 0x23
ret
leave
mov eax, 0x22
ret
leave
mov eax, 0x21
ret
leave
mov eax, 0x20
ret
leave
mov eax, 0x1f
ret
leave
mov eax, 0x1e
ret
leave
mov eax, 0x1d
ret
leave
mov eax, 0x1c
ret
leave
mov eax, 0x1b
ret
leave
mov eax, 0x1a
ret
leave
mov eax, 0x59
ret
leave
mov eax, 0x19
ret
leave
mov eax, 0x18
ret
leave
mov eax, 0x17
ret
leave
mov eax, 0x16
ret
leave
mov eax, 0x15
ret
leave
mov eax, 0x14
ret
leave
mov eax, 0x13
ret
leave
mov eax, 0x12
ret
leave
mov eax, 0x11
ret
leave
mov eax, 0x10
ret
leave
mov eax, 0xf
ret
leave
mov eax, 0xe
ret
leave
mov eax, 0xd
ret
leave
mov eax, 0xc
ret
leave
mov eax, 0xb
ret
leave
mov eax, 0xa
ret
leave
mov eax, 9
ret
leave
mov eax, 8
ret
leave
mov eax, 7
ret
leave
mov eax, 6
ret
leave
mov eax, 5
ret
leave
mov eax, 4
ret
leave
mov eax, 3
ret
leave
mov eax, 2
ret
leave
mov eax, 0x73
ret
test byte [0x10033098], 1
jne 0x1002a129
leave
xor eax, eax
ret
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unhandled_wined3d_format__x._n
mov dword [esp + 8], str.dxgi_format_from_wined3dformat
mov dword [esp + 4], 0x10033098
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_8
xor eax, eax
leave
ret
Function at 0x1002b2a0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x1002b3d0
mov dword [ebp + 8], edx
call sym._wined3d_mutex_lock_0
mov dword [esp + 8], 0x24
mov esi, dword [ebp + 0x10]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x1002b3f7
mov eax, dword [edi]
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x18], 1
mov dword [ebx + 8], eax
mov eax, dword [edi + 4]
mov dword [ebx + 0x1c], 4
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 8]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0x14], eax
mov eax, dword [esi]
mov dword [esp], esi
call dword [eax + 4]
mov edx, dword [ebp + 8]
sub esp, 4
mov esi, dword [edx]
cmp esi, edx
jne 0x1002b33e
jmp 0x1002b3b1
mov esi, dword [esi]
cmp esi, edx
je 0x1002b3b1
mov ecx, dword [edi]
cmp dword [esi + 8], ecx
jne 0x1002b338
mov ecx, dword [edi + 4]
cmp dword [esi + 0xc], ecx
jne 0x1002b338
mov ecx, dword [edi + 8]
cmp dword [esi + 0x10], ecx
jne 0x1002b338
mov ecx, dword [edi + 0xc]
cmp dword [esi + 0x14], ecx
jne 0x1002b338
test esi, esi
je 0x1002b3b1
test byte [esi + 0x18], 1
je 0x1002b37b
mov eax, dword [esi + 0x20]
mov dword [ebp + 8], edx
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
mov edx, dword [ebp + 8]
sub esp, 4
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [ebp + 8], edx
mov dword [ecx + 4], eax
mov ecx, dword [esi]
mov dword [eax], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp + 8]
sub esp, 0xc
mov eax, dword [edx + 4]
mov dword [ebx], edx
mov dword [ebx + 4], eax
mov dword [eax], ebx
mov dword [edx + 4], ebx
xor ebx, ebx
call sym._wined3d_mutex_unlock_0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp + 0x10]
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 4
mov dword [esp], edx
call sym._d3d_set_private_data
lea esp, [ebp - 0xc]
mov ebx, eax
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, 0x8007000e
jmp 0x1002b3c0

Function at 0x10031b70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10031bc8
cmp byte [esi + ebx - 1], 0xa
je 0x10031b9c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x1005b0c4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x20003481
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x200034a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.200038a6
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x200034c4
test byte [esp + 8], 2
je 0x200034c4
call fcn.20003919
mov dword [eax], 0xd
call fcn.20003922
mov dword [eax], 5
jmp 0x2000349d
xor eax, eax
ret

Function at 0x2000488d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x20008708
cmp edx, dword [eax]
je 0x200048af
add eax, 8
inc ecx
cmp eax, 0x20008798
jl 0x200048a0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x20008708]
jne 0x200049dd
mov eax, dword [0x20008b00]
cmp eax, 1
je 0x200049b7
test eax, eax
jne 0x200048e0
cmp dword [0x20008194], 1
je 0x200049b7
cmp edx, 0xfc
je 0x200049dd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x20004917
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.200032c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.200033b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x2000495a
lea eax, [ebp - 0x1a4]
push eax
call fcn.200033b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x200074c0
push edi
call fcn.20006000
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.200032c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.200032d0
lea eax, [ebp - 0xa0]
push 0x200074a0
push eax
call fcn.200032d0
push dword [esi + 0x2000870c]
lea eax, [ebp - 0xa0]
push eax
call fcn.200032d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.20005f75
add esp, 0x2c
pop edi
jmp 0x200049dd
lea eax, [ebp + 8]
lea esi, [esi + 0x2000870c]
push 0
push eax
push dword [esi]
call fcn.200033b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402ffb
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x403018
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x40302a
mov dword [ebp - 0xc], 0x42a028
mov eax, dword [ebp + 8]
test eax, eax
jl 0x40303f
mov ecx, dword [0x452478]
add ecx, eax
push ecx
call fcn.00403223
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0040320d
test eax, eax
je 0x4031fb
test byte [ebp + 0x17], 0x80
je 0x4031a6
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x41498c], 0
and dword [0x414988], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x416010
mov dword [0x414470], 8
mov dword [0x41e018], eax
mov dword [0x41e014], eax
mov eax, dword [ebp + 0x14]
mov dword [0x41e010], 0x41e010
mov dword [ebp + 8], eax
jle 0x403203
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x4030b8
mov esi, dword [ebp + 0x14]
mov edi, 0x426028
push esi
push edi
call fcn.0040320d
test eax, eax
je 0x4031fb
sub dword [ebp + 0x14], esi
mov dword [0x414460], edi
mov dword [0x414464], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x414460
mov dword [0x414468], edi
mov dword [0x41446c], eax
call fcn.004064cd
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x40319e
mov esi, dword [0x414468]
sub esi, edi
call ebx
test byte [0x4524d4], 1
mov edi, eax
je 0x403159
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x403126
cmp dword [ebp + 0x14], 0
jne 0x403159
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00405137
mov dword [ebp - 0x10], edi
test esi, esi
je 0x403192
cmp dword [ebp + 0x10], 0
jne 0x403178
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405c50
test eax, eax
je 0x4031a2
add dword [ebp - 4], esi
jmp 0x403186
mov eax, dword [0x414468]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x4030db
jmp 0x403203
cmp dword [ebp + 0x14], 0
jg 0x4030ab
jmp 0x403203
push 0xfffffffffffffffc
jmp 0x4031fd
push 0xfffffffffffffffe
jmp 0x4031fd
test edi, edi
jne 0x4031e8
cmp dword [ebp + 0x14], edi
jle 0x403203
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x4031bc
mov esi, ebx
mov edi, 0x426028
push esi
push edi
call fcn.0040320d
test eax, eax
je 0x4031fb
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405c50
test eax, eax
je 0x4031a2
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x4031b2
jmp 0x403203
cmp dword [ebp + 0x14], esi
jge 0x4031f0
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040320d
test eax, eax
jne 0x403200
push 0xfffffffffffffffd
pop eax
jmp 0x403206
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4055fd
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x40837c
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x40836c
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40564e
xor eax, eax
jmp 0x405675
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405675
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x40564a
call esi
pop esi
leave
ret 4

Function at 0x4056af
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x448078], 0x44
push eax
xor eax, eax
push 0x448078
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4056ee
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4056f2
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

Function at 0x405790
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405b84
mov edi, eax
cmp edi, 0xffffffff
je 0x4057d1
test byte [esp + 0x10], 1
push esi
je 0x4057b3
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4057b9
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4057c2
xor eax, eax
inc eax
jmp 0x4057d3
test byte [esp + 0x10], 4
jne 0x4057d1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8