joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100076d0
Capabilities:
Contain obfuscated stackstrings
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x1005bbb0]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x10007925
push ebx
push esi
push edi
push 2
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xe0], 0
xorps xmm0, xmm0
mov dword [ebp - 0xe0], 0
push eax
movq qword [ebp - 0xe8], xmm0
lea ecx, [ebp - 0xe8]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xdc], 0x6f0053
mov dword [ebp - 0xd8], 0x740066
mov dword [ebp - 0xd4], 0x610077
mov dword [ebp - 0xd0], 0x650072
mov dword [ebp - 0xcc], 0x4d005c
mov dword [ebp - 0xc8], 0x630069
mov dword [ebp - 0xc4], 0x6f0072
mov dword [ebp - 0xc0], 0x6f0073
mov dword [ebp - 0xbc], 0x740066
mov dword [ebp - 0xb8], 0x57005c
mov dword [ebp - 0xb4], 0x6e0069
mov dword [ebp - 0xb0], 0x6f0064
mov dword [ebp - 0xac], 0x730077
mov dword [ebp - 0xa8], 0x43005c
mov dword [ebp - 0xa4], 0x720075
mov dword [ebp - 0xa0], 0x650072
mov dword [ebp - 0x9c], 0x74006e
mov dword [ebp - 0x98], 0x650056
mov dword [ebp - 0x94], 0x730072
mov dword [ebp - 0x90], 0x6f0069
mov dword [ebp - 0x8c], 0x5c006e
mov dword [ebp - 0x88], 0x680053
mov dword [ebp - 0x84], 0x6c0065
mov dword [ebp - 0x80], 0x20006c
mov dword [ebp - 0x7c], 0x780045
mov dword [ebp - 0x78], 0x650074
mov dword [ebp - 0x74], 0x73006e
mov dword [ebp - 0x70], 0x6f0069
mov dword [ebp - 0x6c], 0x73006e
mov dword [ebp - 0x68], 0x41005c
mov dword [ebp - 0x64], 0x700070
mov dword [ebp - 0x60], 0x6f0072
mov dword [ebp - 0x5c], 0x650076
mov dword [ebp - 0x58], 0x64
call fcn.10003d50
mov esi, dword [ebp - 0xe8]
test eax, eax
jne 0x10007917
xor eax, eax
mov dword [ebp - 0x54], 0x36007b
mov word [ebp - 8], ax
lea eax, [ebp - 0x54]
push eax
push esi
mov dword [ebp - 0x50], 0x360034
mov dword [ebp - 0x4c], 0x410042
mov dword [ebp - 0x48], 0x450041
mov dword [ebp - 0x44], 0x2d0037
mov dword [ebp - 0x40], 0x350037
mov dword [ebp - 0x3c], 0x380033
mov dword [ebp - 0x38], 0x34002d
mov dword [ebp - 0x34], 0x360038
mov dword [ebp - 0x30], 0x2d0036
mov dword [ebp - 0x2c], 0x450038
mov dword [ebp - 0x28], 0x450045
mov dword [ebp - 0x24], 0x39002d
mov dword [ebp - 0x20], 0x340037
mov dword [ebp - 0x1c], 0x300043
mov dword [ebp - 0x18], 0x410041
mov dword [ebp - 0x14], 0x310039
mov dword [ebp - 0x10], 0x410030
mov dword [ebp - 0xc], 0x7d0042
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
je 0x10007922
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
push 0
push 1
mov ecx, 0x1005d3fc
call fcn.10007320
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019adf
mov esp, ebp
pop ebp
ret
Function at 0x10016d70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1005bbb0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x22c]
push 0x228
push 0
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.1001a5c0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x10016dfc
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10016df5
lea esp, [esp]
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.1001b82f
add esp, 8
test eax, eax
je 0x10016e0e
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10016dd0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019adf
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.10019adf
mov esp, ebp
pop ebp
ret
Function at 0x10017740
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2060
call fcn.10019f40
mov eax, dword [0x1005bbb0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1005d558], 0
je 0x100178fe
mov eax, dword [0x1005d54c]
test eax, eax
je 0x100178ec
cmp word [eax], 0
je 0x100178ec
xor eax, eax
push 0x1ffe
push eax
mov word [ebp - 0x200c], ax
lea eax, [ebp - 0x200a]
push eax
call fcn.1001a5c0
add esp, 0xc
lea eax, [ebp - 0x200c]
push 0x1000
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp word [ebp - 0x200c], 0
jne 0x100177c1
mov eax, 0x43
mov word [ebp - 0x200c], ax
xor eax, eax
mov dword [ebp - 0xc], 0x5c003a
mov word [ebp - 0x200a], ax
mov word [ebp - 8], ax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x200c]
push 0x1000
push eax
call fcn.10019564
push str.._AV__bind_t_Uunspecified__bi_boost__U__method_wrapper1_VBang5TaoPluginAPI__V__shared_ptr_VRequestObjectAPI___boost__V__basic_string_DU__char_traits_D_std__V__allocator_D_2__std__P81_EAA_AV23_V45__Z_methods_detail_FB__V__list2_V__value_PEAVBang5TaoPluginAPI____bi_boost__U__arg__00_3__23___bi_boost__
lea eax, [ebp - 0x200c]
push 0x1000
push eax
call fcn.10019564
push dword [0x1005d558]
lea eax, [ebp - 0x200c]
push 0x1000
push eax
call fcn.10019564
add esp, 0x24
mov dword [ebp - 0x2060], 0x44
xor eax, eax
mov dword [ebp - 0x205c], 0
mov dword [ebp - 0x2030], eax
mov dword [ebp - 0x202c], eax
lea eax, [ebp - 0x201c]
push eax
lea eax, [ebp - 0x2060]
mov dword [ebp - 0x2058], 0x1002ac5c
push eax
push 0
push 0
push 0x200
push 0
push 0
push 0
lea eax, [ebp - 0x200c]
mov dword [ebp - 0x2054], 0
push eax
push 0
mov dword [ebp - 0x2034], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x100178fe
call fcn.10017230
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.1001b2ad
add esp, 4
call fcn.1001b28c
cdq
mov ecx, 0x2710
idiv ecx
add edx, 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push dword [ebp - 0x201c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x2018]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x201c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019adf
mov esp, ebp
pop ebp
ret
push 0x10017250
push 0x1005d560
call fcn.10017bf0
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019adf
mov esp, ebp
pop ebp
ret
Function at 0x10017e60
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0xf
mov dword [ebp - 4], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor esi, esi
cmp dword [0x1005d57c], esi
jbe 0x10017eb6
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x1005d578]
push dword [eax + esi*4]
call ebx
mov eax, dword [0x1005d578]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [0x1005d57c]
jb 0x10017e94
pop ebx
push dword [0x1005d578]
call fcn.10018c40
add esp, 4
mov dword [0x1005d578], 0
mov dword [0x1005d57c], 0
push dword [ebp - 4]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10017f30
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
mov eax, dword [0x1005bbb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
cmp esi, 0xffffffff
je 0x10017fe8
test esi, esi
je 0x10017fe8
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x10018023
push edi
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x10001
push eax
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10018011
mov edx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x218]
cmp ecx, ebx
jb 0x10017fe4
mov eax, dword [ebp + 0x10]
add eax, ebx
cmp ecx, eax
jae 0x10017fe4
push esi
call edx
cmp edi, 3
jge 0x10017ff7
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2d0]
inc edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov edx, dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x10017fa1
pop ebx
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019adf
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019adf
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019adf
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.10019adf
mov esp, ebp
pop ebp
ret
Function at 0x100181e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x1005bbb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0x48], eax
cmp dword [0x1005d574], 0x40
jae 0x100182f2
push esi
lea esi, [edx + ecx]
cmp esi, 0x80000000
jae 0x1001821d
lea esi, [edi + 1]
jmp 0x10018223
sub esi, 0x7fff0000
push ebx
mov ebx, dword [ebp + 0x14]
add ebx, ecx
cmp ebx, 0x80000000
jae 0x10018239
add ebx, 0x7ff80000
jmp 0x1001823e
mov ebx, 0xfff80000
xorps xmm0, xmm0
mov dword [ebp - 0x44], edi
lea eax, [ebp - 0x44]
push eax
movdqu xmmword [ebp - 0x40], xmm0
movdqu xmmword [ebp - 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, ebx
jae 0x100182f0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100182b7
cmp dword [ebp - 0x10], 0x10000
jne 0x100182ab
mov eax, dword [ebp - 0x14]
cmp eax, 0x6c
jb 0x100182ae
mov ecx, dword [ebp - 0x28]
cmp eax, ecx
jb 0x100182ae
lea eax, [ecx - 1]
xor edx, edx
add eax, esi
div ecx
push 0x20
imul eax, ecx
push 0x3000
push 0x6c
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x100182bb
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
add esi, eax
cmp esi, ebx
jb 0x10018260
test edi, edi
je 0x100182f0
xor eax, eax
lea ecx, [ecx]
cmp dword [eax*4 + 0x1005d5a8], 0
je 0x100182e3
inc eax
cmp eax, 0x40
jb 0x100182c0
pop ebx
pop esi
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019adf
mov esp, ebp
pop ebp
ret
inc dword [0x1005d574]
mov dword [eax*4 + 0x1005d5a8], edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.10019adf
mov esp, ebp
pop ebp
ret

Function at 0x10018310
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
push 0x10018330
mov esi, ecx
call fcn.1001997d
add esp, 0xc
mov eax, esi
pop esi
ret 8

Function at 0x10018340
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x1005bbb0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x10018369
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019adf
mov esp, ebp
pop ebp
ret
push 0x38
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push eax
call fcn.1001a5c0
add esp, 0xc
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x100183d9
call fcn.100183f0
test eax, eax
je 0x100183d9
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x3c
push eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x3c], 0x440
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], str.runas
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019adf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.10019adf
mov esp, ebp
pop ebp
ret
Function at 0x100183f0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x1005bbb0]
xor eax, ebp
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.1001a5c0
add esp, 0xc
mov dword [ebp - 0x124], 0x114
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100184cf
cmp dword [ebp - 0x120], 5
jbe 0x100184cf
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100184cf
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.EnableLUA
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x128]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x100184cf
xor eax, eax
cmp dword [ebp - 8], eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019adf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.10019adf
mov esp, ebp
pop ebp
ret
Function at 0x401650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401669
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4016a4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4016a0
lea ebx, [ebx]
cmp esi, eax
jae 0x4016a4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401690
cmp esi, eax
jb 0x4016aa
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4027f0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x45e2f0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47f9e8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x402847
mov edi, dword [esp + 0x34]
test edi, edi
je 0x402847
mov ecx, dword [esp + 0x30]
push ecx
push eax
push 1
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov ebp, eax
test ebp, ebp
je 0x402847
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x40285d
push ebp
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
lea edx, [esp + 0x2c]
push esi
push edx
call fcn.00401fd0
add esp, 8
push eax
mov ecx, edi
mov dword [esp + 0x24], 0
call fcn.00401ef0
or ebx, 0xffffffff
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], ebx
call fcn.004019c0
lea eax, [esi + 4]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00402400
add esp, 8
lea ecx, [edi + 4]
push eax
mov dword [esp + 0x24], 1
call fcn.00401ef0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], ebx
call fcn.004019c0
mov edx, dword [esi + 0xc]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.004025b0
add esp, 8
lea ecx, [edi + 8]
push eax
mov dword [esp + 0x24], 2
call fcn.00401ef0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], ebx
call fcn.004019c0
lea ecx, [esi + 0x18]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00402740
add esp, 8
lea ecx, [edi + 0xc]
push eax
mov dword [esp + 0x24], 3
call fcn.00401ef0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], ebx
call fcn.004019c0
lea eax, [esi + 0x20]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00402070
add esp, 8
lea ecx, [edi + 0x10]
push eax
mov dword [esp + 0x24], 4
call fcn.00401ef0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], ebx
call fcn.004019c0
lea edx, [esi + 0x28]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.00402070
add esp, 8
lea ecx, [edi + 0x14]
push eax
mov dword [esp + 0x24], 5
call fcn.00401ef0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], ebx
call fcn.004019c0
lea ecx, [esi + 0x30]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00402740
add esp, 8
lea ecx, [edi + 0x18]
push eax
mov dword [esp + 0x24], 6
call fcn.00401ef0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], ebx
call fcn.004019c0
add esi, 0x38
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00402640
add esp, 8
push eax
lea ecx, [edi + 0x1c]
mov dword [esp + 0x24], 7
call fcn.00401ef0
lea ecx, [esp + 0x14]
call fcn.004019c0
push ebp
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
lea eax, [ebx + 2]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x404320
Capabilities:
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x45e518
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47f9e8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040c2f7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404361
push 0x80004005
call fcn.00401630
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
push 0x85
mov dword [esp + 0x24], 0
call fcn.0040c223
test eax, eax
je 0x40439a
push 0x85
push eax
lea ecx, [esp + 0x1c]
call fcn.00401b80
mov ebx, dword [esp + 0x14]
call fcn.0040cea9
call fcn.0040cea9
mov eax, dword [eax + 0xc]
push 0x96
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov edx, dword [esi + 0xd4]
lea ecx, [esi + 0xd4]
push eax
mov eax, dword [edx + 0x15c]
push ebx
call eax
mov ecx, dword [esi + 0x24c]
push ecx
mov ecx, esi
call fcn.004042b0
mov edx, dword [esi + 0x78]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 9
push 0x110a
push edx
call edi
mov ebp, eax
mov eax, dword [esi + 0x24c]
push eax
mov eax, dword [esi + 0x78]
push 9
push 0x110b
push eax
call edi
mov ecx, dword [esi + 0x78]
push ebp
push 9
push 0x110b
push ecx
call edi
lea eax, [ebx - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404434
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x406370
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x260
mov eax, dword [0x47f9e8]
xor eax, esp
mov dword [esp + 0x25c], eax
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push str.TIANYU_WebAdmin
push str.TIANYU_WebAdmin
call esi
test eax, eax
jne 0x406456
push 0x104
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x15c]
push ecx
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.WebAdmin.exe
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.0043b420
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x7c]
push ecx
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40642b
pop esi
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.0043acee
add esp, 0x260
ret
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
push 0x1f4
call edi
push str.TIANYU_WebAdmin
push str.TIANYU_WebAdmin
call esi
test eax, eax
jne 0x406454
add ebx, 1
cmp ebx, 3
jl 0x406435
pop edi
pop ebx
mov ecx, dword [esp + 0x260]
pop esi
xor ecx, esp
call fcn.0043acee
add esp, 0x260
ret

Function at 0x4097a0
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, dword [esp + 0x14]
je 0x4097bd
cmp dword [edi], 2
jae 0x4097bd
pop edi
mov eax, 0x7a
pop esi
ret 0xc
mov eax, dword [edi]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40981d
cmp dword [esp + 0x14], 7
je 0x4097f9
pop edi
mov eax, 0xd
pop esi
ret 0xc
test esi, esi
mov eax, dword [esp + 0x10]
je 0x409819
cmp eax, 1
jb 0x4097ef
cmp byte [eax + esi - 1], 0
jne 0x4097ef
cmp eax, 1
jbe 0x409819
cmp byte [eax + esi - 2], 0
jne 0x4097ef
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x409830
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x409848
push 0x80004005
call fcn.00401630
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
add esi, eax
add edi, eax
cmp eax, 1
jne 0x409855
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x409c20
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xfffffffffffffffe
push 0x474f50
push 0x43a360
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x47f9e8]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x110]
mov ecx, dword [ebp + 0x114]
mov dword [ebp - 0x2c], ecx
xor esi, esi
cmp eax, esi
je 0x409c83
push eax
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x409c93
push 0x104
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x30], esi
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
cmp ebx, esi
jne 0x409cbe
mov dword [ebp - 0x1c], esi
jmp 0x409dcb
push ebx
call fcn.0043bba9
add esp, 4
mov edi, eax
mov dword [ebp - 0x28], edi
cmp edi, esi
je 0x409cb6
push edi
push ebx
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x409cb6
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x20]
push eax
push str.StringFileInfo080404b0FileVersion
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x409d28
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x20]
push edx
push str.StringFileInfo040904b0FileVersion
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x409d28
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
push ecx
push str.StringFileInfo040404b0FileVersion
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x409cb6
push 0x465b4c
mov edx, dword [ebp - 0x20]
push edx
call fcn.0043c27a
add esp, 8
cmp eax, esi
je 0x409cb6
push eax
call fcn.0043c275
mov ebx, eax
push 0x465b4c
push esi
call fcn.0043c27a
add esp, 0xc
cmp eax, esi
je 0x409cb6
push eax
call fcn.0043c275
mov edi, eax
push 0x465b4c
push esi
call fcn.0043c27a
add esp, 0xc
cmp eax, esi
je 0x409cb6
push eax
call fcn.0043c275
mov esi, eax
push 0x465b4c
push 0
call fcn.0043c27a
add esp, 0xc
test eax, eax
jne 0x409dae
push esi
push edi
push ebx
push str._d._d._d
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0043b7d8
add esp, 0x14
jmp 0x409dc9
push eax
call fcn.0043c275
push eax
push esi
push edi
push ebx
push str._d._d._d._d
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0043b7d8
add esp, 0x1c
xor esi, esi
mov dword [ebp - 4], 0xfffffffe
call fcn.00409e01
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.0043acee
add ebp, 0x108
mov esp, ebp
pop ebp
ret