joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10019f3
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x1005040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push ebx
mov dword [ebp - 0x210], eax
mov dword [eax], edi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
jmp 0x100262c
push ebx
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01001d52
test eax, eax
jl 0x1002370
and dword [ebp - 0x230], 0
lea eax, [ebp - 0x20c]
or edi, 0xffffffff
push eax
mov ebx, edi
mov dword [ebp - 0x234], 0x20
mov dword [ebp - 0x22c], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x1001b88
mov dword [ebp - 0x214], eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01001ba1
mov esi, dword [sym.imp.KERNEL32.dll_CreateActCtxW]
test eax, eax
jl 0x1001aa2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, edi
jne 0x1002644
mov ecx, dword [ebp - 0x214]
xor eax, eax
mov word [ebp + ecx*2 - 0x20c], ax
cmp ebx, edi
jne 0x100210e
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 0x230], 8
mov dword [ebp - 0x220], 0x7b
call esi
mov ebx, eax
cmp ebx, edi
jne 0x100210e
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 0x220], 0x7c
call esi
mov ebx, eax
cmp ebx, edi
jne 0x1001b75
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 0x220], 2
call esi
mov ebx, eax
cmp ebx, edi
jne 0x100210e
cmp dword [ebp + 0x10], 0
je 0x1001b75
and dword [ebp - 0x254], 0
push 7
pop edx
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x250]
rep stosd dword es:[edi], eax
push eax
mov dword [ebp - 0x250], 0x88
mov dword [ebp - 0x240], edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x254]
push eax
mov dword [ebp - 0x254], 0x20
call esi
cmp eax, 0xffffffff
je 0x1001b75
push dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001195
leave
ret 0xc
push dword [ebp - 0x210]
push ebx
jmp 0x1001b6f
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x1001a42
xor eax, eax
jmp 0x1001b77
test eax, eax
je 0x1001a27
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetSearchPathMode]
jmp 0x100234b
lea eax, [ebp - 0x234]
push eax
call esi
mov ebx, eax
jmp 0x1001aa2
Function at 0x10029db
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x1005040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
mov dword [ebp - 0x48], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1002a77
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea eax, [ebp - 0x4c]
push eax
push 0x40
lea eax, [ebp - 0x44]
push eax
push ebx
call edi
test eax, eax
je 0x1002a6f
mov eax, 0x5a4d
cmp ax, word [ebp - 0x44]
jne 0x1002a6f
push esi
push esi
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1002a6f
push esi
lea eax, [ebp - 0x4c]
push eax
push 0xf8
lea eax, [ebp - 0x144]
push eax
push ebx
call edi
test eax, eax
je 0x1002a6f
movzx eax, word [ebp - 0x140]
mov dword [ebp - 0x48], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x48]
pop esi
xor ecx, ebp
pop ebx
call fcn.01001195
leave
ret 4
Function at 0x1003a0d
Capabilities:
Accept command line arguments
Create process on windows
Get common file path
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x1005040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push eax
mov dword [ebp - 0x214], ebx
call fcn.010029db
mov esi, eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x1003b6d
cmp dword [ebp - 0x214], ebx
je 0x1003b6d
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0x248], ebx
lea edi, [ebp - 0x244]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 9
pop eax
cmp ax, word [ebp - 0x248]
jne 0x1003a98
cmp esi, 0x8664
jne 0x1003b6d
push 6
pop eax
cmp ax, word [ebp - 0x248]
jne 0x1003ab0
cmp esi, 0x200
jne 0x1003b6d
push 0xf6
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1003b6d
push ebx
push 0x1003b80
push 0x105
lea eax, [ebp - 0x210]
push eax
call fcn.01003876
test eax, eax
jl 0x1003b6d
mov esi, dword [sym.imp.KERNEL32.dll_Wow64EnableWow64FsRedirection]
push ebx
call esi
push 0x40
lea eax, [ebp - 0x264]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x268]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x268], 0x44
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1003b6d
push 1
call esi
push 0xffffffffffffffff
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x224]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
push dword [ebp - 0x220]
call esi
cmp edi, ebx
jne 0x1003b6d
xor eax, eax
inc eax
jmp 0x1003b6f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001195
leave
ret 4
Function at 0x401026
Capabilities:
Create process on windows
Delete file
Read file on windows
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov edx, section..text
push edi
push esi
push ebx
sub esp, 0x574
lea ecx, [esp + 0x64]
cmp edx, entry0
jae 0x40104c
movzx eax, byte [edx]
inc edx
xor al, 0xd9
mov byte [ecx], al
inc ecx
jmp 0x401039
mov byte [ecx], 0
lea esi, [esp + 0x64]
push esi
push 1
push 0
call 0x401220
push 0x104
lea ebx, [esp + 0x468]
push ebx
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 2
push 0
push 0xffffffffffffff9c
push eax
call sub.KERNEL32.dll_SetFilePointer
push 0
lea ebp, [esp + 4]
push ebp
push 0x64
push esi
push ebx
call sub.KERNEL32.dll_ReadFile
push ebx
call sub.KERNEL32.dll_CloseHandle
lea edx, [esp + 0x65]
lea ecx, [esp + 0xc7]
cmp edx, ecx
jae 0x4010d4
movzx eax, byte [esp + 0x64]
xor byte [edx], al
inc edx
jmp 0x4010c6
lea edx, [esp + 0x14]
lea eax, [esp + 0x58]
cmp edx, eax
jae 0x4010e6
mov byte [edx], 0
inc edx
jmp 0x4010dc
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x8d]
push eax
call sub.KERNEL32.dll_CreateProcessA
test eax, eax
jne 0x401205
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x47c]
push eax
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 2
mov eax, 0xffffff9c
push 0
sub eax, dword [esp + 0x6d]
push eax
push ebx
call sub.KERNEL32.dll_SetFilePointer
push 0
push ebp
push dword [esp + 0x6d]
push dword [esp + 0x71]
push 0
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapAlloc
push eax
mov esi, eax
push ebx
call sub.KERNEL32.dll_ReadFile
push ebx
call sub.KERNEL32.dll_CloseHandle
mov eax, esi
mov edx, esi
add eax, dword [esp + 0x65]
cmp esi, eax
jae 0x40119b
movzx eax, byte [esp + 0x64]
xor byte [edx], al
mov eax, esi
inc edx
add eax, dword [esp + 0x65]
cmp edx, eax
jmp 0x401187
push pe_nt_image_headers32
lea edi, [esp + 0x6d]
push edi
call sub.KERNEL32.dll_SetFileAttributesA
push edi
call sub.KERNEL32.dll_DeleteFileA
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push edi
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 0
push ebp
push dword [esp + 0x6d]
push esi
push eax
call sub.KERNEL32.dll_WriteFile
push ebx
call sub.KERNEL32.dll_CloseHandle
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call sub.KERNEL32.dll_CreateProcessA
push 0
call sub.KERNEL32.dll_ExitProcess
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp dword [sym.imp.KERNEL32.dll_CreateMutexA]

Function at 0x409ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ebd
lcall 0x5de5, 0x8b10c483
jmp fcn.0076d6b4
Function at 0x10003020
Capabilities:
Encode data using base64

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x10003172
mov edx, dword [esp + 0x14]
test edx, edx
je 0x10003172
mov al, byte [esi]
test al, al
je 0x10003165
push ebx
cmp al, 0xa
jne 0x1000304c
inc esi
mov al, byte [esi + 2]
mov cl, byte [esi]
mov bl, byte [esi + 1]
mov byte [esp + 0xe], al
mov al, byte [esi + 3]
mov byte [esp + 0xf], al
cmp byte [esp + 0xe], 0x3d
mov al, byte [esp + 0xf]
je 0x100030ee
cmp al, 0x3d
je 0x10003113
call fcn.10002fe0
mov cl, bl
mov byte [esp + 0xc], al
call fcn.10002fe0
mov cl, byte [esi + 2]
mov bl, al
call fcn.10002fe0
mov cl, byte [esi + 3]
mov byte [esp + 0xe], al
call fcn.10002fe0
mov byte [esp + 0xf], al
mov al, byte [esp + 0xc]
shl al, 2
mov cl, bl
shr cl, 4
and cl, 3
or cl, al
mov al, byte [esp + 0xe]
shr al, 2
and al, 0xf
shl bl, 4
or al, bl
mov byte [esp + 9], al
mov al, byte [esp + 0xf]
mov byte [esp + 0x14], bl
mov bl, byte [esp + 0xe]
shl bl, 6
and al, 0x3f
mov byte [edx], cl
mov cl, byte [esp + 9]
or al, bl
mov byte [edx + 1], cl
mov byte [edx + 2], al
add esi, 4
mov byte [esp + 0x14], bl
add edx, 3
jmp 0x1000315a
cmp al, 0x3d
jne 0x1000315a
call fcn.10002fe0
mov cl, byte [esi + 1]
mov bl, al
call fcn.10002fe0
shr al, 4
and al, 3
shl bl, 2
or al, bl
mov byte [edx], al
add esi, 4
inc edx
jmp 0x1000315a
call fcn.10002fe0
mov cl, byte [esi + 1]
mov bl, al
call fcn.10002fe0
mov cl, byte [esi + 2]
mov byte [esp + 0xd], al
call fcn.10002fe0
mov cl, byte [esp + 0xd]
shr cl, 4
shl bl, 2
and cl, 3
or cl, bl
mov byte [esp + 0x14], bl
mov bl, byte [esp + 0xd]
shr al, 2
and al, 0xf
shl bl, 4
or al, bl
mov byte [edx], cl
mov byte [edx + 1], al
add esi, 4
add edx, 2
mov al, byte [esi]
test al, al
jne 0x10003047
pop ebx
mov byte [edx], 0
mov eax, 1
pop esi
add esp, 8
ret
xor eax, eax
pop esi
add esp, 8
ret
Function at 0x100104b9
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1004c248
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov eax, 0xf
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], ebx
push edi
mov dword [esp + 0xc], esi
mov byte [esi + 0x20], bl
lea edi, [esi + 0x38]
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.1000e160
mov ecx, dword [esp + 0x10]
mov dword [edi + 4], eax
mov byte [eax + 0xad], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x401480
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
mov ecx, dword [str.ClnExtor.ini]
push 0xffffffffffffffff
mov edx, dword [esp + 8]
push 0x41552b
push eax
mov dword fs:[0], esp
sub esp, 0x19c
lea eax, [esp + 0x94]
push eax
push ecx
push edx
call fcn.00404d60
mov ecx, dword [str.MsiPack]
mov edx, dword [str.Common]
add esp, 0xc
lea eax, [esp + 0x94]
push eax
push 1
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jne 0x4014f3
mov eax, 1
mov ecx, dword [esp + 0x19c]
mov dword fs:[0], ecx
add esp, 0x1a8
ret
push esi
lea ecx, [esp + 4]
call fcn.004058e0
push 0x41f068
lea ecx, [esp + 8]
mov dword [esp + 0x1ac], 0
call fcn.004064c0
and eax, 0xff
lea ecx, [esp + 4]
mov esi, eax
call fcn.00406510
mov ecx, dword [esp + 0x1a0]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1a8
ret
Function at 0x401540
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41554b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push esi
push edi
lea ecx, [ebp - 0xb8]
call fcn.00404c60
cmp dword [ebp - 0xa4], 2
je 0x401591
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], 0xffffffff
call fcn.00404cb0
mov eax, 1
jmp 0x40171a
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push ebx
push 8
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40160a
call esi
cmp eax, 0x3f0
jne 0x4016d0
lea ecx, [ebp - 0x10]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40160a
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], 0xffffffff
call fcn.00404cb0
xor eax, eax
jmp 0x40171a
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x20]
push edx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x401639
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], 0xffffffff
call fcn.00404cb0
xor eax, eax
jmp 0x40171a
call esi
cmp eax, 0x7a
je 0x401659
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], 0xffffffff
call fcn.00404cb0
xor eax, eax
jmp 0x40171a
mov edi, dword [ebp - 0x20]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0040c7a0
mov esi, esp
cmp esi, ebx
jne 0x401687
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], 0xffffffff
call fcn.00404cb0
xor eax, eax
jmp 0x40171a
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
push ecx
push edi
push esi
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4016b3
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], 0xffffffff
call fcn.00404cb0
xor eax, eax
jmp 0x40171a
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4016e6
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], 0xffffffff
call fcn.00404cb0
xor eax, eax
jmp 0x40171a
mov edx, dword [ebp - 0x1c]
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4016fc
mov ebx, 1
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], 0xffffffff
call fcn.00404cb0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0xc4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401740
Capabilities:
Compare security identifiers

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41556b
push eax
mov dword fs:[0], esp
sub esp, 0xac
lea ecx, [esp + 0x14]
push ebx
push ebp
push esi
push edi
call fcn.00404c60
cmp dword [esp + 0x38], 2
jne 0x4018f7
lea eax, [esp + 0x10]
xor ebp, ebp
push eax
push 0x20008
mov byte [esp + 0x20], 0
mov byte [esp + 0x21], 0
mov byte [esp + 0x22], 0
mov byte [esp + 0x23], 0
mov byte [esp + 0x24], 0
mov byte [esp + 0x25], 5
xor esi, esi
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4018a6
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [esp + 0x14]
push ecx
push ebp
push ebp
push 2
push edx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, ebp
jne 0x401835
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40189b
mov eax, dword [esp + 0x14]
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebp
jne 0x401807
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x4018a0
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x18]
push esi
push 2
push eax
mov dword [esp + 0x28], ebp
call edi
test eax, eax
jne 0x401835
push esi
push ebp
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x4018a0
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push 0x220
push 0x20
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x40185c
push esi
push ebp
jmp 0x401892
mov eax, dword [esi]
xor edi, edi
cmp eax, ebp
jbe 0x401884
lea ebp, [esi + 4]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4018d5
mov eax, dword [esi]
inc edi
add ebp, 8
cmp edi, eax
jb 0x401867
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x24]
mov dword [esp + 0xc4], 0xffffffff
call fcn.00404cb0
xor eax, eax
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb8
ret
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x24]
mov dword [esp + 0xc4], 0xffffffff
call fcn.00404cb0
mov eax, 1
jmp 0x4018bc
Function at 0x401d30
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4155e5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b0
mov al, byte [0x41f194]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0xb8], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xb9]
xor esi, esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], esi
call fcn.00404c60
mov edx, dword [esp + 0x34]
xor eax, eax
cmp edx, 2
mov dword [esp + 0x1c8], 1
sete al
cmp eax, esi
mov eax, str.SoftwareTrendMicroPC_cillinNTCorpCurrentVersion
jne 0x401d9f
mov eax, str.SoftwareTrendMicroOfficeScanCorpCurrentVersion
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401dec
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
lea eax, [esp + 0xb8]
push edx
push eax
push esi
push esi
push str.Application_Path
push ecx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x1d0]
mov al, byte [esp + 0x13]
lea edi, [esp + 0xb8]
or ecx, 0xffffffff
mov byte [ebp], al
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp + 4], esi
mov ebx, ecx
mov dword [ebp + 8], esi
cmp ebx, 0xfffffffd
mov dword [ebp + 0xc], esi
jbe 0x401e20
call fcn.00415310
mov eax, dword [ebp + 4]
mov dword [ebp + 8], esi
cmp eax, esi
je 0x401e44
mov al, byte [eax - 1]
test al, al
je 0x401e44
cmp al, 0xff
je 0x401e44
cmp ebx, esi
jne 0x401e68
push 1
mov ecx, ebp
call fcn.004049d0
jmp 0x401e95
cmp ebx, esi
jne 0x401e53
push 1
mov ecx, ebp
call fcn.004049d0
jmp 0x401e95
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x401e5f
cmp eax, ebx
jae 0x401e70
push 1
mov ecx, ebp
call fcn.004049d0
push ebx
mov ecx, ebp
call fcn.00404a20
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0xb8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
add ebx, eax
mov byte [ebx], 0
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x1c8], 0
call fcn.00404cb0
mov ecx, dword [esp + 0x1c0]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1bc
ret
Function at 0x401ed0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4155f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
test esi, esi
mov eax, str.SoftwareTrendMicroPC_cillinNTCorpCurrentVersion
jne 0x401f03
mov eax, str.SoftwareTrendMicroOfficeScanCorpCurrentVersion
lea ecx, [esp + 0x1c]
push ecx
push 0x2001f
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402070
mov ecx, dword [esp + 0x1c]
mov dword [esp + 4], eax
lea edx, [esp + 8]
lea eax, [esp + 4]
push edx
push eax
push 0
push 0
push str.Install_Completed
push ecx
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401fbd
mov edx, dword [esp + 4]
push edx
push str.dwKeyValue___d_n
push 0x166
push str.D:OfficeScan_srcUtilityClientPackagerClientExtractorcp_ClientExtractor.cpp
call fcn.00404e10
mov ecx, dword [esp + 0x2c]
add esp, 0x10
lea eax, [esp + 8]
mov dword [esp + 8], 0
push 4
push eax
push 4
push 0
push str.Install_Completed
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x20]
push 1
push str.nStatus__INSTALL_STARTED___d__n
push 0x2c3
mov dword [edx], 1
push str.D:OfficeScan_srcUtilityClientPackagerClientExtractorcp_ClientExtractor.cpp
call fcn.00404e10
mov eax, dword [esp + 0x2c]
add esp, 0x10
push eax
jmp 0x402098
mov eax, dword [esp + 4]
push eax
push str.dwKeyValue___d_n
push 0x16a
push str.D:OfficeScan_srcUtilityClientPackagerClientExtractorcp_ClientExtractor.cpp
call fcn.00404e10
mov ecx, dword [esp + 0x14]
add esp, 0x10
push ecx
push str.dwInstallcCommpleteKey___d_n
push 0x2b1
push str.D:OfficeScan_srcUtilityClientPackagerClientExtractorcp_ClientExtractor.cpp
call fcn.00404e10
mov eax, dword [esp + 0x14]
add esp, 0x10
cmp eax, 1
je 0x402016
mov edx, dword [esp + 0x20]
push 3
push str.nStatus__CLIENT_INSTALLING___d__n
push 0x2b5
mov dword [edx], 3
jmp 0x401fa6
mov ecx, dword [esp + 0x20]
push 4
push str.nStatus__INSTALL_DONE___d__n
push 0x2bb
push str.D:OfficeScan_srcUtilityClientPackagerClientExtractorcp_ClientExtractor.cpp
mov dword [ecx], 4
call fcn.00404e10
add esp, 0x10
neg esi
sbb esi, esi
and esi, 0xffffec78
add esi, 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, dword [esp + 0x20]
push 2
push str.nStatus__INSTALL_NOT_STARTED___d__n
push 0x2c9
push str.D:OfficeScan_srcUtilityClientPackagerClientExtractorcp_ClientExtractor.cpp
mov dword [ecx], 2
call fcn.00404e10
mov edx, dword [esp + 0x2c]
add esp, 0x10
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xc]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret