joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405000
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Get graphical window text
Hide graphical window
Terminate process

Disassembly:
call dword [sym.imp.comctl32.dll_InitCommonControls]
push 0x405062
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateMutexA]
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40503b
push 0x1010
push 0x40509b
push 0x405071
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
jmp 0x40505a
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x404000], eax
push 0
push 0x4050a2
push 0
push 1
push eax
call dword [sym.imp.user32.dll_DialogBoxParamA]
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x418f10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x420de0], ecx
add edx, 1
cmp edx, 0x100
jb 0x418f12
cmp edx, 0x800
jae 0x418ffb
mov edi, edi
mov eax, dword [edx*4 + 0x4209e0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x420de0]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x420ddc], eax
jb 0x418fd0
mov dword [0x420dbc], 0x4196b0
call fcn.00419140
test eax, eax
jne 0x419018
mov dword [0x420dbc], 0x4195d0
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x2b6f4bc5
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x58053150
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401207
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x4182e8]
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [0x4182ec]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], eax
mov esi, dword [edi]
mov edx, dword [edi + 4]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], edx
call fcn.00401200
mov ebx, dword [ebp - 0x18]
add ebx, 0x23f
cmp dword [0xb5cae4], 0x14
jne 0x401265
push 0
lea eax, [ebp - 0x830]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov edx, dword [ebp - 0xc]
mov ecx, dword [0x4182f0]
mov eax, dword [0x4182f4]
push 0x20
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
pop edi
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov eax, esi
mov dword [ebp - 0xc], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0xb5cae4], 0xfa9
mov dword [ebp - 8], eax
mov eax, dword [0xb5cae0]
cmove eax, dword [ebp - 0xc]
and dword [ebp - 0xc], 0
cmp dword [0xb5cae4], 0x3eb
mov dword [0xb5cae0], eax
mov eax, dword [0xb5ca38]
cmove eax, dword [ebp - 0xc]
mov dword [0xb5ca38], eax
lea eax, [ebx + esi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
shr eax, 5
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
and dword [ebp - 0x10], 0
mov dword [0xb5cadc], 0xf4ea3dee
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 4]
sub edx, eax
mov dword [ebp - 0x14], eax
mov eax, edx
mov dword [ebp - 0xc], edx
shl eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ebx + edx]
and dword [ebp - 4], 0
mov dword [ebp - 0x18], eax
mov eax, edx
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor dword [ebp - 0x10], eax
cmp dword [0xb5cae4], 0xb03
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jne 0x401363
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
xor eax, dword [ebp - 0x14]
add ebx, 0x61c88647
mov ecx, dword [ebp - 0x24]
sub esi, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
dec edi
jne 0x401279
mov edi, dword [ebp - 0x2c]
mov dword [edi], esi
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c0ca
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417f10]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408870
mov dword [ebp - 0x14], eax
cmp dword [0x4b82d8], esi
jne 0x40c1bd
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c14a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c29d
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c29d
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c29d
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4b82d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4b82dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4b82e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b82e8], eax
test eax, eax
je 0x40c1ba
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b82e4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c1e2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c1d5
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c1f7
push 4
pop eax
jmp 0x40c29f
cmp dword [ebp - 0x14], esi
je 0x40c1f7
push dword [0x4b82d8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c1dc
mov eax, dword [0x4b82e4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c255
cmp dword [0x4b82e8], edi
je 0x40c255
push eax
call ebx
push dword [0x4b82e8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c255
test eax, eax
je 0x40c255
call ecx
test eax, eax
je 0x40c24a
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 0x40c24a
test byte [ebp - 8], 1
jne 0x40c255
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c285
mov eax, dword [0x4b82dc]
cmp eax, edi
je 0x40c282
push eax
call ebx
test eax, eax
je 0x40c282
call eax
mov esi, eax
test esi, esi
je 0x40c282
mov eax, dword [0x4b82e0]
cmp eax, edi
je 0x40c282
push eax
call ebx
test eax, eax
je 0x40c282
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4b82d8]
call ebx
test eax, eax
je 0x40c29d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c29f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403d87
mov esp, ebp
pop ebp
ret
Function at 0x10001440
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x100
xor eax, eax
nop dword [eax + eax]
mov byte [esp + eax], al
inc eax
cmp eax, 0x100
jl 0x10001450
push ebx
push ebp
mov ebp, dword [esp + 0x110]
push esi
push edi
xor edi, edi
xor esi, esi
nop word [eax + eax]
mov eax, esi
mov bl, byte [esp + esi + 0x10]
cdq
idiv ebp
mov eax, dword [esp + 0x114]
movzx ecx, bl
movsx eax, byte [edx + eax]
add eax, edi
add ecx, eax
mov edi, ecx
and edi, 0x800000ff
jns 0x1000149d
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x10]
mov byte [esp + esi + 0x10], al
inc esi
mov byte [esp + edi + 0x10], bl
cmp esi, 0x100
jl 0x10001470
mov ebp, dword [esp + 0x120]
xor esi, esi
xor edi, edi
xor ebx, ebx
test ebp, ebp
jle 0x10001518
inc esi
and esi, 0x800000ff
jns 0x100014d4
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [esp + esi + 0x10]
movzx edx, cl
add edi, edx
and edi, 0x800000ff
jns 0x100014ed
dec edi
or edi, 0xffffff00
inc edi
movzx eax, byte [esp + edi + 0x10]
mov byte [esp + esi + 0x10], al
mov byte [esp + edi + 0x10], cl
movzx eax, byte [esp + esi + 0x10]
mov ecx, dword [esp + 0x11c]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x10]
xor byte [ebx + ecx], al
inc ebx
cmp ebx, ebp
jl 0x100014c3
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x100
ret

Function at 0x10001540
Capabilities:
Create thread
Set current directory
Terminate process

Disassembly:
push esi
push edi
push dword [0x1000d450]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edi, dword [esp + 0x10]
push 0
push 0x10006090
mov dword [0x1000d4ac], 0x20
mov dword [0x1000d4b0], 2
mov dword [0x1000d4b4], 0x85
mov dword [0x1000d4b8], 0
mov dword [0x1000d4bc], 0
mov dword [0x1000d4c0], 0
mov dword [0x1000d4c4], 0
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerExW]
mov esi, eax
mov dword [0x1000d5e4], esi
test esi, esi
je 0x10001635
mov edx, dword [esp + 0xc]
mov dword [0x1000d4b0], 4
cmp edx, 1
jbe 0x100015e6
mov eax, 1
jle 0x100015e6
mov ecx, dword [edi + eax*4]
cmp word [ecx], 0x73
jne 0x100015e1
cmp word [ecx + 2], 0
je 0x10001624
inc eax
cmp eax, edx
jl 0x100015d1
push 4
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1000161e
mov ecx, dword [0x1000d41c]
push 0
push 0
push eax
push 0x10006e30
push 0
push 0
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [0x1000d5e4]
push 0x1000d4ac
push esi
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
pop edi
pop esi
ret 8
push 0x1000d4ac
push 0
mov dword [0x1000d4b0], 1
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10001e50
Capabilities:
Suspend thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
call fcn.10003a80
add esp, 4
test eax, eax
jne 0x10001e7d
mov eax, 9
pop ebx
ret
cmp dword [ebx], 0
je 0x10001ed2
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x10001ecd
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call fcn.10003fc0
mov edi, eax
test edi, edi
je 0x10001ec0
push 0
push edi
call sub.NTDLL.dll_NtSuspendThread
push ebp
push dword [esp + 0x1c]
push edi
call fcn.10006630
add esp, 0xc
push edi
call sub.NTDLL.dll_NtClose
inc esi
cmp esi, dword [ebx + 8]
jb 0x10001e90
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
ret
pop esi
xor eax, eax
pop ebx
ret
xor eax, eax
pop ebx
ret
Function at 0x100035b0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
xor ebp, ebp
push 0xf003f
push ebp
push ebp
call esi
mov ebx, eax
test ebx, ebx
jne 0x100035dd
push 1
push eax
push eax
call esi
mov ebx, eax
test ebx, ebx
je 0x1000366b
push edi
push 0xf01ff
push dword [esp + 0x34]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x10003663
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x14], 1
je 0x10003646
lea eax, [esp + 0x10]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1000365c
xor esi, esi
nop dword [eax + eax]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x14], 1
je 0x10003646
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x3c
jl 0x10003620
jmp 0x1000365c
cmp dword [esp + 0x34], ebp
jne 0x10003653
mov ebp, 1
jmp 0x1000365c
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebp, eax
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x100038d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push 0x3c
lea eax, [esp + 4]
push eax
call sub.NTDLL.dll_RtlZeroMemory
mov eax, dword [esp + 0x44]
mov edx, 0x800400
mov ecx, dword [esp + 0x10]
test eax, eax
mov dword [esp], 0x3c
cmovne ecx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 0x48]
test eax, eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x14]
cmovne ecx, eax
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x40]
test eax, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xc]
cmovne ecx, eax
cmp dword [esp + 0x4c], 0
mov dword [esp + 0xc], ecx
je 0x1000393b
mov dword [esp + 0x1c], 1
jmp 0x10003944
mov edx, 0x808400
mov dword [esp + 4], edx
push esi
mov esi, dword [esp + 0x54]
push edi
test esi, esi
je 0x10003955
or edx, 0x40
mov dword [esp + 0xc], edx
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov edi, eax
test edi, edi
je 0x100039a4
test esi, esi
je 0x100039a4
cmp esi, 0xffffffff
je 0x10003977
imul eax, esi, 0x3e8
jmp 0x1000397a
or eax, 0xffffffff
push eax
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x10003998
push eax
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x3c
ret
Function at 0x100039b0
Capabilities:
Create thread

Disassembly:
sub esp, 0x20c
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x220]
cmp dword [esp + 0x21c], esi
jne 0x100039ce
test edi, edi
je 0x10003a3f
cmp dword [0x1000d440], esi
je 0x100039e5
push 0
push str.USBSafeManager
call fcn.100035b0
add esp, 8
cmp dword [esp + 0x21c], esi
je 0x10003a3b
push 0x52
push str.F5E1DC90_2556_4C9A_A9CA_71F4A60D0F8F
push str.Global_
lea eax, [esp + 0x14]
push str._s_s_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [esp + 8]
push eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov edi, eax
test edi, edi
je 0x10003a6e
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
add esp, 0x20c
ret
test edi, edi
jne 0x10003a52
push 0
push dword [esp + 0x21c]
call fcn.10006d30
add esp, 8
mov esi, eax
push 0
push 0
push 0
push 0x10007870
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
add esp, 0x20c
ret
Function at 0x10003a80
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
sub esp, 0x10
push ebx
lea eax, [esp + 4]
xor ebx, ebx
push eax
push ebx
push ebx
push 5
mov dword [esp + 0x14], ebx
call sub.NTDLL.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
jne 0x10003bdd
mov eax, dword [esp + 4]
test eax, eax
je 0x10003bdd
push 4
push 0x1000
push eax
push ebx
call fcn.10006600
mov dword [esp + 0x10], eax
test eax, eax
je 0x10003bdd
lea ecx, [esp + 4]
push ecx
push dword [esp + 8]
push eax
push 5
call sub.NTDLL.dll_NtQuerySystemInformation
test eax, eax
js 0x10003bcb
cmp dword [esp + 4], ebx
jbe 0x10003bcb
push ebp
mov ebp, dword [esp + 0x14]
mov ebx, 1
push esi
mov esi, dword [esp + 0x20]
push edi
mov dword [esp + 0x14], ebx
call fcn.10006bd0
cmp dword [ebp + 0x44], eax
jne 0x10003ba0
xor edi, edi
cmp dword [ebp + 4], edi
jbe 0x10003ba0
lea ebx, [ebp + 0xdc]
nop
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
call fcn.10007030
cmp dword [esp + 0x18], eax
je 0x10003b93
mov ecx, dword [esi]
test ecx, ecx
jne 0x10003b5f
push 0x200
push ecx
mov dword [esi + 4], 0x80
push dword [0x1000d140]
call fcn.10007860
mov ecx, eax
mov dword [esi], ecx
test ecx, ecx
jne 0x10003b86
xor ebx, ebx
mov dword [esp + 0x14], ebx
jmp 0x10003ba0
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10003b86
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push ecx
push 0
push dword [0x1000d140]
call fcn.100078e0
mov ecx, eax
test ecx, ecx
je 0x10003b57
mov dword [esi], ecx
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x18]
mov dword [ecx + eax*4], edx
inc dword [esi + 8]
inc edi
add ebx, 0x40
cmp edi, dword [ebp + 4]
jb 0x10003b20
mov ebx, dword [esp + 0x14]
mov eax, dword [ebp]
test eax, eax
je 0x10003baf
add ebp, eax
jne 0x10003b00
test ebx, ebx
jne 0x10003bc8
mov eax, dword [esi]
test eax, eax
je 0x10003bc8
push eax
push ebx
push dword [0x1000d140]
call fcn.10008ad0
mov dword [esi], ebx
pop edi
pop esi
pop ebp
push 0x8000
push dword [esp + 8]
push dword [esp + 0x18]
call fcn.10004040
mov eax, ebx
pop ebx
add esp, 0x10
ret
Function at 0x10003de0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x118
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x14]
push str.RunOnce
push str.SoftwareMicrosoftWindowsCurrentVersion
push str._s_s
push eax
call ebp
add esp, 0x10
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push 0xf023f
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10003f66
cmp dword [esp + 0x120], eax
je 0x10003e65
push dword [0x1000d474]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
add esp, 0x118
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push edi
push 0x105
push 8
xor edi, edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10003f59
push str.Silverlight.Configuration.exe
push dword [0x1000d450]
push str.__s_s_
push esi
call ebp
add esp, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 1
push eax
push edi
lea eax, [esp + 0x20]
push eax
push edi
push str.Silverlight.Configuration.exe
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x10003f37
mov eax, dword [esp + 0x14]
inc eax
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x10003f31
lea eax, [esp + 0x14]
push eax
push ebp
lea eax, [esp + 0x20]
push eax
push edi
push str.Silverlight.Configuration.exe
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10003f1d
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
mov ecx, 1
cmove edi, ecx
push ebp
push 0
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call ebp
test edi, edi
jne 0x10003f51
jmp 0x10003f37
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 1
push 0
push str.Silverlight.Configuration.exe
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
push 0
call ebx
push eax
call ebp
pop edi
pop esi
pop ebx
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
add esp, 0x118
ret
Function at 0x10004620
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x1000466e
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x1000465f
push edi
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call fcn.10003fc0
mov edi, eax
test edi, edi
je 0x10004656
push 0
push edi
call sub.NTDLL.dll_NtResumeThread
push edi
call sub.NTDLL.dll_NtClose
inc esi
cmp esi, dword [ebx + 8]
jb 0x10004634
mov eax, dword [ebx]
pop edi
push eax
push 0
push dword [0x1000d140]
call fcn.10008ad0
pop esi
pop ebx
ret

Function at 0x10004ce0
Capabilities:
Send data

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
mov eax, dword [edi]
test eax, eax
je 0x10004d36
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
nop dword [eax + eax]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push ecx
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x10004d2f
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10004d2f
add esi, eax
mov eax, dword [edi]
cmp esi, eax
jb 0x10004d00
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
ret
pop edi
mov eax, esi
pop esi
ret