joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dfcf0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5279d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0051f9d8
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004df650
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0051f906
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0051c1ca
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0051c1ca
push 1
push 0
push 0
mov ecx, esi
call fcn.0051c172
push 1
push 0
push 1
mov ecx, esi
call fcn.0051c172
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0051fa4a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4dfe70
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5279f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0051f9d8
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004df650
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0051f906
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4dff34
cmp dword [esp + 0x40], 1
jne 0x4dff32
cmp ecx, eax
jge 0x4dff34
mov eax, ecx
cmp eax, 0xc8
jge 0x4dff40
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004dfcf0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0051fa4a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4e0740
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x527aa3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0051a5e8
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0051fc80
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.005211df
test eax, eax
je 0x4e085c
mov ecx, dword [esp + 0x3c]
call fcn.0051fcad
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4e0820
push edi
mov ecx, esi
call fcn.0051d31a
mov ecx, esi
call fcn.004e0a00
cmp dword [esp + 0x38], 1
jne 0x4e0855
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0051d455
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4e2a50
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4e2a83
push esi
call fcn.004f0e10
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4e2a7c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4e2b09
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4e2af2
mov eax, dword [esi + 8]
test eax, eax
je 0x4e2aa7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4e2aee
cmp eax, 2
je 0x4e2af2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4e2a9a
cmp eax, 3
je 0x4e2acd
cmp eax, 1
jne 0x4e2a9a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4e2a9a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4e2a9a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004e2b30
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4e2b18
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004e2b30
add esp, 4
pop esi
ret

Function at 0x4e33b0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4e33d1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4e33d1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4e33d1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4feea0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4feeea
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x4fef19
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x4fef5b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x5029c0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x502a63
test eax, eax
jbe 0x502a63
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x502a63
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x502a0e
xor esi, esi
jmp 0x502a14
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x502a3f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00506c30
add esi, eax
push esi
mov ebx, esi
call fcn.00506c30
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x502a20
pop ebp
test edi, edi
pop edi
jne 0x502a63
test ebx, ebx
je 0x502a63
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00509760
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x502b85
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x502c9d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x502c9d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0051aa3a
mov esi, eax
test esi, esi
je 0x502c9d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x502c9d
mov ecx, esi
call fcn.00502b10
cmp edi, eax
jge 0x502c9d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x502c23
mov dword [esp + 0x34], 1
jmp 0x502c7e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x502c9d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.005020c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x51b3dd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x51b415
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0051946a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00519442
jmp 0x51b421
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x51cad2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x51cb14
call fcn.005225ca
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x51cb14
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x51cb0b
xor eax, eax
jmp 0x51cb1c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0051cb22
pop edi
pop esi
pop ebx
ret 4

Function at 0x522afa
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x522b28
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x522b46
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00522a60
jmp 0x522b46
mov eax, dword [esi + 0x14]
test eax, eax
je 0x522b46
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00522a60
test edi, edi
mov eax, edi
jne 0x522b30
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1000119e
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x10035e28]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x100011cb
xor eax, eax
jmp 0x1000129f
push 0x228
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.100154e0
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x1000128e
lea eax, [ebp - 0x20c]
push str.360tray.exe
push eax
call fcn.100156e4
pop ecx
pop ecx
test eax, eax
je 0x1000127e
lea eax, [ebp - 0x20c]
push str.360sd.exe
push eax
call fcn.100156e4
pop ecx
pop ecx
test eax, eax
je 0x1000127e
lea eax, [ebp - 0x20c]
push str.qqpctray.exe
push eax
call fcn.100156e4
pop ecx
pop ecx
test eax, eax
jne 0x10001246
or esi, 4
jmp 0x10001281
lea eax, [ebp - 0x20c]
push str.kxetray.exe
push eax
call fcn.100156e4
pop ecx
pop ecx
test eax, eax
jne 0x10001262
or esi, 8
jmp 0x10001281
lea eax, [ebp - 0x20c]
push str.BaiduAnTray.exe
push eax
call fcn.100156e4
pop ecx
pop ecx
test eax, eax
jne 0x10001281
or esi, 2
jmp 0x10001281
or esi, 1
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x100011fc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100154ca
leave
ret

Function at 0x1000138d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100013f6
cmp dword [ebp + 0x10], 1
je 0x100013ce
cmp dword [ebp + 0x10], 2
je 0x100013ce
push 0xd
pop eax
jmp 0x100013f6
mov eax, dword [ebp - 4]
test edi, edi
je 0x100013f0
test eax, eax
je 0x100013eb
test al, 1
jne 0x100013c9
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x100013f0
jmp 0x100013c9
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc
Function at 0x10001bea
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub esp, 0x18
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 7
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10001d6d
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, 0xffffffff
je 0x10001d65
cmp esi, edi
jbe 0x10001d65
push esi
call fcn.100152a7
pop ecx
mov dword [ebp - 4], eax
cmp eax, edi
je 0x10001d65
push esi
push edi
push eax
mov dword [ebp - 0x14], edi
call fcn.100154e0
add esp, 0xc
push edi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10001d65
push 0x1002a7f8
push dword [ebp - 4]
call fcn.10015fd0
pop ecx
pop ecx
test eax, eax
jne 0x10001d65
push edi
push edi
push edi
push ebx
mov dword [ebp - 0xc], 0xbfbbef
mov dword [ebp - 0x10], 0xfeff
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 3
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call fcn.1001627b
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0xc
test eax, eax
jne 0x10001cda
push 3
push 0x20
push dword [ebp - 4]
call fcn.100154e0
add esp, 0xc
push edi
lea eax, [ebp - 8]
push eax
push 3
lea eax, [ebp - 0xc]
jmp 0x10001d08
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call fcn.1001627b
add esp, 0xc
test eax, eax
jne 0x10001d0c
push 2
push 0x20
push dword [ebp - 4]
call fcn.100154e0
add esp, 0xc
push edi
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 0x10]
push eax
push ebx
call esi
mov ecx, dword [ebp + 8]
call fcn.10001afa
mov ecx, dword [ebp + 8]
push edi
push str._sogouexplorerextension_
call fcn.10001a9c
cmp eax, 0xffffffff
push edi
lea eax, [ebp - 8]
push eax
je 0x10001d41
push dword [0x10035088]
call fcn.100161f0
pop ecx
push eax
push dword [0x10035088]
jmp 0x10001d54
push dword [0x10035084]
call fcn.100161f0
pop ecx
push eax
push dword [0x10035084]
push ebx
call esi
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
push dword [ebp - 4]
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x10001e4d
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x264
mov eax, 0x1002839f
call fcn.10015c84
mov esi, dword [ebp + 8]
push 0x1002a84c
lea eax, [ebp - 0x268]
push esi
push eax
mov dword [ebp - 0x26c], ecx
call fcn.10001d73
add esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10001f75
push 0x1002a848
lea eax, [ebp - 0x270]
push esi
push eax
call fcn.10001d73
lea ecx, [ebp - 0x234]
push ecx
push eax
lea eax, [ebp - 0x264]
push eax
mov byte [ebp - 4], 1
call fcn.10001d73
add esp, 0x18
mov ecx, dword [ebp - 0x270]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.100013fc
lea eax, [ebp - 0x234]
push 0x1002a844
push eax
call fcn.100177cf
pop ecx
pop ecx
test eax, eax
je 0x10001f4d
lea eax, [ebp - 0x234]
push 0x1002a83c
push eax
call fcn.100177cf
pop ecx
pop ecx
test eax, eax
je 0x10001f4d
test byte [ebp - 0x260], 0x10
je 0x10001f26
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x264]
push eax
call fcn.10001e4d
jmp 0x10001f4d
push str.background.js
push dword [ebp - 0x264]
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x10001f4d
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x264]
push eax
call fcn.10001bea
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.100013fc
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10001e9c
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
call fcn.100013fc
call fcn.10015d07
ret 4
Function at 0x10001f8b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10035e28]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
mov esi, ecx
call fcn.100154e0
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
push edi
push 0x1c
lea eax, [ebp - 0x20c]
push eax
push edi
call ebx
test eax, eax
je 0x1000204a
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x18]
call fcn.100016e9
push str.GoogleChromeUser_DataDefaultExtensions
lea ecx, [esi + 0x18]
call fcn.10001e27
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x1c]
call fcn.100016e9
push str.liebaoUser_DataDefaultExtensions
lea ecx, [esi + 0x1c]
call fcn.10001e27
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x24]
call fcn.100016e9
push str.360ChromeChromeUser_DataDefaultExtensions
lea ecx, [esi + 0x24]
call fcn.10001e27
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x2c]
call fcn.100016e9
push str.UCBrowserUser_DataDefaultExtensions
lea ecx, [esi + 0x2c]
call fcn.10001e27
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
push 0
mov ecx, 0x82
lea edi, [ebp - 0x20c]
rep stosd dword es:[edi], eax
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push 0
call ebx
test eax, eax
je 0x100020ae
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x20]
call fcn.100016e9
push str.360se6User_DataDefaultExtensions
lea ecx, [esi + 0x20]
call fcn.10001e27
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x28]
call fcn.100016e9
push str.SogouExplorerExtension
lea ecx, [esi + 0x28]
call fcn.10001e27
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.100154ca
leave
ret

Function at 0x100028f6
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x10031388
call fcn.10018280
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov edx, dword [ebp - 0x30]
cmp word [edx], ax
jne 0x1000295e
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x1000295e
mov ecx, dword [eax + 0xd8]
lea esi, [ecx + edx]
cmp dword [ebp + 0xc], esi
jb 0x1000295e
mov eax, dword [eax + 0xdc]
add eax, ecx
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x1000295e
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x10002967
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.100182c5
ret
Function at 0x10002a6d
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
push edi
mov ebx, 0x10000
cmp esi, 0x7ff80000
jbe 0x10002a90
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x10002a93
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x10002aa6
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x10002aad
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x10037028]
mov ecx, dword [0x10037024]
test eax, eax
jne 0x10002ac7
test ecx, ecx
je 0x10002adc
mov eax, ecx
mov dword [0x10037028], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x10002adc
cmp edx, dword [ebp - 4]
jb 0x10002adc
cmp edx, dword [ebp - 8]
jbe 0x10002bad
mov eax, ecx
test ecx, ecx
jmp 0x10002b00
test eax, eax
je 0x10002afb
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10002afb
cmp ecx, dword [ebp - 4]
jb 0x10002afb
cmp ecx, dword [ebp - 8]
jbe 0x10002bad
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x10037028], eax
jne 0x10002ae2
mov eax, esi
and eax, 0xffff
sub esi, eax
mov edi, esi
cmp esi, dword [ebp - 4]
jbe 0x10002c3f
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x10002b2d
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10002c3f
cmp dword [ebp - 0x30], ebx
jne 0x10002b4c
cmp dword [ebp - 0x34], ebx
jae 0x10002b5f
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x10002b1b
jmp 0x10002c3f
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10037028], eax
test eax, eax
je 0x10002c3f
mov ecx, dword [0x10037024]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x10037024], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x10002b9f
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x10002c44
cmp esi, dword [ebp - 8]
ja 0x10002c44
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call fcn.100154e0
add esp, 0xc
mov eax, esi
jmp 0x10002c46
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x10002bee
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10002c44
cmp dword [ebp - 0x14], ebx
jne 0x10002c39
cmp dword [ebp - 0x18], ebx
jb 0x10002c39
movzx ecx, si
test ecx, ecx
je 0x10002c1d
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10037028], eax
test eax, eax
jne 0x10002b7b
mov esi, dword [ebp - 0x24]
add esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 8]
jb 0x10002bdc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret