joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407c10
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Hash data using sha256

Disassembly:
push ebp
push edi
mov ebp, edx
push esi
push ebx
mov edi, eax
xor ebx, ebx
sub esp, 0x26c
lea edx, [esp + 0x80]
lea esi, [esp + 0x40]
mov dword [esp + 0x80], 0x36363636
mov dword [esp + 0x84], 0x36363636
mov dword [esp + 0x88], 0x36363636
mov dword [esp + 0x8c], 0x36363636
mov dword [esp + 0x90], 0x36363636
mov dword [esp + 0x94], 0x36363636
mov dword [esp + 0x98], 0x36363636
mov dword [esp + 0x9c], 0x36363636
mov dword [esp + 0xa0], 0x36363636
mov dword [esp + 0xa4], 0x36363636
mov dword [esp + 0xa8], 0x36363636
mov dword [esp + 0xac], 0x36363636
mov dword [esp + 0xb0], 0x36363636
mov dword [esp + 0xb4], 0x36363636
mov dword [esp + 0xb8], 0x36363636
mov dword [esp + 0xbc], 0x36363636
mov dword [esp + 0x40], 0x5c5c5c5c
mov dword [esp + 0x44], 0x5c5c5c5c
mov dword [esp + 0x48], 0x5c5c5c5c
mov dword [esp + 0x4c], 0x5c5c5c5c
mov dword [esp + 0x50], 0x5c5c5c5c
mov dword [esp + 0x54], 0x5c5c5c5c
mov dword [esp + 0x58], 0x5c5c5c5c
mov dword [esp + 0x5c], 0x5c5c5c5c
mov dword [esp + 0x60], 0x5c5c5c5c
mov dword [esp + 0x64], 0x5c5c5c5c
mov dword [esp + 0x68], 0x5c5c5c5c
mov dword [esp + 0x6c], 0x5c5c5c5c
mov dword [esp + 0x70], 0x5c5c5c5c
mov dword [esp + 0x74], 0x5c5c5c5c
mov dword [esp + 0x78], 0x5c5c5c5c
mov dword [esp + 0x7c], 0x5c5c5c5c
nop
lea esi, [esi]
movzx eax, byte [edi + ebx]
xor byte [edx + ebx], al
xor byte [esi + ebx], al
add ebx, 1
cmp ebx, 0x20
jne 0x407d60
lea ebx, [esp + 0xc0]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x40
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xe8], 0
lea edi, [esp + 0x20]
mov dword [esp], ebx
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0x6a09e667
mov dword [esp + 0xcc], 0xbb67ae85
mov dword [esp + 0xd0], 0x3c6ef372
mov dword [esp + 0xd4], 0xa54ff53a
mov dword [esp + 0xd8], 0x510e527f
mov dword [esp + 0xdc], 0x9b05688c
mov dword [esp + 0xe0], 0x1f83d9ab
mov dword [esp + 0xe4], 0x5be0cd19
call fcn.004076b0
mov ecx, dword [esp + 0x1c]
mov dword [esp + 4], ebp
mov dword [esp], ebx
mov dword [esp + 8], ecx
call fcn.004076b0
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.004079d0
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 0xe8], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0x6a09e667
mov dword [esp + 0xcc], 0xbb67ae85
mov dword [esp + 0xd0], 0x3c6ef372
mov dword [esp + 0xd4], 0xa54ff53a
mov dword [esp + 0xd8], 0x510e527f
mov dword [esp + 0xdc], 0x9b05688c
mov dword [esp + 0xe0], 0x1f83d9ab
mov dword [esp + 0xe4], 0x5be0cd19
call fcn.004076b0
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [esp + 8], 0x20
call fcn.004076b0
mov eax, dword [esp + 0x280]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004079d0
add esp, 0x26c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x408d80
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00408de0

Function at 0x408de0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x42c460]
test esi, esi
jle 0x408ecd
mov edi, dword [0x42c464]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x408e14
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x408ec6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x408e00
mov dword [esp], eax
mov ebx, eax
call fcn.00409710
test eax, eax
mov edi, eax
je 0x408f0a
lea ebx, [esi + esi*2]
mov esi, dword [0x42c464]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.00409810
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x42c464]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x408eea
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x408ebf
sub eax, 0x40
and eax, 0xffffffbf
je 0x408ebf
mov eax, dword [esp + 0x20]
add ebx, dword [0x42c464]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x408ed4
add dword [0x42c460], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x408e1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00408d80
mov eax, dword [0x42c464]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00408d80
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00408d80
lea esi, [esi]
Function at 0x409380
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x42c478
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x42c470]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x4093d5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4093ce
test esi, esi
je 0x4093ce
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4093b0
mov dword [esp], 0x42c478
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x409630
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x409668
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40965e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40966a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x409650
xor eax, eax
pop ebx
pop esi
ret

Function at 0x40a580
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 8], ebx
pop ebx
jmp fcn.00409f00
Function at 0x40b710
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
sub ecx, 1
push esi
push ebx
mov ebx, 0x66666667
mov ebp, edx
mov esi, 1
sub esp, 0x2c
mov dword [esp + 0x1c], eax
mov eax, ecx
mov dword [esp + 0x10], ecx
sar eax, 0x1f
mov edi, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, ecx
sar ecx, 0x1f
imul ebx
mov ebx, edx
sar ebx, 2
sub ebx, ecx
je 0x40b763
mov ecx, 0x66666667
mov eax, ebx
sar ebx, 0x1f
add esi, 1
imul ecx
sar edx, 2
sub edx, ebx
mov ebx, edx
jne 0x40b750
mov eax, dword [edi + 0x28]
cmp eax, 0xffffffff
je 0x40b7e0
cmp eax, esi
cmovge esi, eax
mov eax, dword [edi + 8]
lea edx, [esi + 2]
cmp eax, edx
jg 0x40b7d1
mov dword [edi + 8], 0xffffffff
mov eax, dword [esp + 0x1c]
mov dword [esp], edi
mov ecx, 1
mov edx, ebp
add esi, 1
call fcn.0040afe0
mov eax, dword [edi + 0x28]
mov dword [edi + 0xc], eax
mov eax, dword [edi + 4]
mov edx, eax
and eax, 0x20
or edx, 0x1c0
or eax, 0x45
mov dword [edi + 4], edx
mov edx, edi
call fcn.0040abd0
add dword [edi + 8], esi
mov eax, dword [esp + 0x10]
mov ecx, edi
mov edx, dword [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0040b400
sub eax, edx
mov dword [edi + 8], eax
jmp 0x40b781
mov edx, dword [0x421038]
cmp edx, 0xffffffff
je 0x40b809
test edx, edx
mov eax, 2
jne 0x40b801
call fcn.0040fba0
and eax, 1
neg eax
add eax, 3
mov dword [edi + 0x28], eax
jmp 0x40b76b
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x40b82f
movsx eax, byte [eax]
xor edx, edx
sub eax, 0x30
cmp eax, 2
setbe dl
mov dword [0x421038], edx
jmp 0x40b7eb
xor edx, edx
jmp 0x40b827
Function at 0x410330
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x410355
push edi
push esi
push ebx
mov ebx, eax
add esp, 0xffffff80
mov dword [esp], eax
call fcn.0041ab70
cmp eax, 1
je 0x410357
mov dword [ebx], 0xffffffff
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
repz ret
lea ebx, [esp + 0x15]
mov esi, str.Error_cleaning_up_spin_keys_for_thread
mov ecx, 0xa
xor eax, eax
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x3d]
mov cl, 0x43
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
mov eax, 0x27
jne 0x4103a5
jmp 0x4103b3
cmp eax, 0x6a
je 0x4103bd
add eax, 1
cmp byte [ebx + eax], 0
jne 0x4103a0
cmp eax, 0x6a
je 0x4103bd
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + eax + 0x16], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x410460
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp dword [0x42cecc], 1
je 0x410475
call fcn.004103d0
mov eax, dword [0x421078]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x410492
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00410280
test eax, eax
mov ebx, eax
je 0x410599
mov eax, dword [entry3]
test eax, eax
je 0x410599
mov dword [ebx + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x18], eax
lea eax, [ebx + 0x38]
sub esp, 0x10
mov dword [ebx + 0x1c], 0xffffffff
call fcn.00410330
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x14], 0
call esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
call esi
mov edx, eax
lea eax, [ebx + 0x14]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x4105a0
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
mov dword [ebx + 0x68], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x421078]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x4105a0
mov eax, ebx
jmp 0x41048a
xor eax, eax
jmp 0x41048a
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
push esi
push ebx
mov eax, 0x80070057
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
test edx, edx
jg 0x4105d2
pop ebx
pop esi
ret 0xc
mov esi, ebx
movzx eax, byte [ecx]
test al, al
je 0x4105f4
lea ebx, [esi + 1]
add ecx, 1
sub edx, 1
mov byte [ebx - 1], al
jne 0x4105d0
mov eax, 0x8007007a
mov byte [esi], 0
pop ebx
pop esi
ret 0xc
xor eax, eax
jmp 0x4105ec
Function at 0x41be41
Capabilities:
Hash data using sha256

Disassembly:
push esi
push ebx
mov esi, edx
sub esp, 0x1b4
lea ebx, [esp + 0x10]
mov dword [esp + 8], 0xc0
mov dword [esp + 4], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x10], 0
mov dword [esp], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x6a09e667
mov dword [esp + 0x1c], 0xbb67ae85
mov dword [esp + 0x20], 0x3c6ef372
mov dword [esp + 0x24], 0xa54ff53a
mov dword [esp + 0x28], 0x510e527f
mov dword [esp + 0x2c], 0x9b05688c
mov dword [esp + 0x30], 0x1f83d9ab
mov dword [esp + 0x34], 0x5be0cd19
call fcn.004076b0
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004079d0
add esp, 0x1b4
pop ebx
pop esi
ret
Function at 0x10001986
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.10001746
xchg ecx, eax
outsb dx, byte [esi]
push edi
shl byte [esi - 0x75], 0x47
push es
cmp ax, bx
jbe 0x100019a0
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x1000199a
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x1000198b
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.10001746
jmp dword [edi - 0x68]
jne 0x10001a12
lea eax, [ebp - 0x58]
push eax
call fcn.10001756
mov esi, dword [ebp + 0xc]
push eax
push esi
invalid
invalid

Function at 0x10001c60
Capabilities:
Inspect section memory permissions

Disassembly:
cmp esi, ebx
je 0x10001f3f
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.100016b7
add esp, 0xc
cmp word [edi + 6], bx
mov dword [ebp + 0xc], ebx
jbe 0x10001cb6
Function at 0x10001e70
Capabilities:
Inspect section memory permissions

Disassembly:
adc byte [eax], al
add byte [eax], al
or byte [ebx - 0x2cc4e7b3], 0x74
add al, 0x80
or al, 8
add dword [ecx], edi
pop ebp
or byte [esp + eax - 0x80], dh
or al, 8
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4

Function at 0x10003905
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sbb byte [edx + eax - 0x6a], dh
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.10001746
xor al, 0x40
test byte [eax - 0x75], 0xf8
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.10001746
Function at 0x4065e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4065f9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406636
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x406632
nop word [eax + eax]
cmp esi, edx
jae 0x406636
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x406620
cmp esi, edx
jb 0x40663d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x407130
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476716
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x49f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x2c]
push eax
push edi
push 0
push 0x48ebfc
push str.SoftwareTencentQQBrowser
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x2c], 0x208
call esi
test eax, eax
je 0x40718d
xor al, al
jmp 0x407251
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edi], ax
jne 0x4071aa
xor ecx, ecx
jmp 0x4071bf
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4071b0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00407900
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x208
push eax
push edi
push 0
push str.InstallDir
push str.SoftwareTencentQQBrowser
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x4071f0
xor bl, bl
jmp 0x40723a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmovae eax, dword [ebp - 0x28]
push eax
push edi
call esi
push str.TxBugReport.exe
push edi
call esi
lea ecx, [ebp - 0x38]
call fcn.00406a60
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
mov dword [ebp - 4], 1
cmp dword [ebp - 0x34], 0
je 0x40723a
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40723a
push dword [ebp - 0x38]
call eax
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x40724f
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00407760
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044df7a
mov esp, ebp
pop ebp
ret
Function at 0x407270
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x49f008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.00451eb0
add esp, 0xc
lea ecx, [ebp - 0x214]
call fcn.00407130
test al, al
jne 0x4072bc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0044df7a
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x214]
lea ecx, [ebp - 0x230]
call fcn.00406ac0
mov eax, dword [eax]
test eax, eax
je 0x4072ec
cmp word [eax], 0
je 0x4072ec
push eax
push 0x104
push 0x4a1920
call fcn.0045e8b9
add esp, 0xc
mov edx, dword [ebp - 0x230]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40730a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x214]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x22c]
call fcn.004074c0
push 0x208
lea eax, [ebp - 0x214]
mov dword [ebp - 0x240], 0
push 0
push eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x234], 0x208
call fcn.00451eb0
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0x48ebfc
push str.SoftwareTencentQQBrowser
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4073e0
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x214]
push str._u._u._u._u
push eax
call fcn.00406470
add esp, 0x18
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x22c]
mov esi, dword [ebp - 0x238]
cmovae eax, dword [ebp - 0x22c]
movzx edi, word [ebp - 0x23c]
movzx ebx, word [ebp - 0x240]
mov dword [ebp - 0x230], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
sub esp, 0x18
push esi
push edi
push ebx
push eax
push dword [ebp - 0x230]
call fcn.00406ae0
mov eax, dword [0x4a1918]
add esp, 0x2c
test eax, eax
je 0x407439
mov dword [eax + 4], 0x2b
mov eax, dword [ebp - 0x218]
cmp eax, 8
jb 0x407457
inc eax
lea ecx, [ebp - 0x22c]
push eax
push dword [ebp - 0x22c]
call fcn.00407760
mov ecx, dword [ebp - 8]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044df7a
mov esp, ebp
pop ebp
ret
Function at 0x4088f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4767d3
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x49f008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0xc
push 0
mov dword [edi], method.std::_Facet_base.virtual_4
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push 0x40
push 0xc
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 0x408870
mov byte [esi], 0xb9
sub eax, esi
mov byte [esi + 5], 0xe9
sub eax, 0xa
mov dword [esi + 1], edi
mov dword [esi + 6], eax
mov dword [edi + 8], esi
mov dword [ebp - 4], 0
mov dword [edi], 0x48ed5c
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 1
call fcn.004067b0
mov ecx, eax
test ecx, ecx
jne 0x40899d
push 0x80004005
call fcn.004064f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x1c], eax
mov esi, dword [ebp + 0xc]
mov byte [ebp - 4], 1
test esi, esi
je 0x4089d9
mov edx, esi
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4089c0
sub edx, ecx
lea ecx, [edi + 0x1c]
sar edx, 1
push edx
push esi
call fcn.004085a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x408e90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x49f008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x80
lea eax, [ebp - 0x88]
mov dword [ebp - 0x9c], 0x80
push 0
push eax
call fcn.00451eb0
add esp, 0xc
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x88]
push eax
push 0
push 0x48ebfc
push str.SoftwareTencentQQBrowser
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x408f6c
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x88]
push 0x48ed68
push eax
call fcn.00408e50
add esp, 0x18
cmp eax, 4
jne 0x408f6c
movzx edi, word [ebp - 0x8c]
movzx eax, word [ebp - 0x90]
movzx esi, word [ebp - 0x94]
shl edi, 0x10
or edi, eax
shl esi, 0x10
movzx eax, word [ebp - 0x98]
or esi, eax
call fcn.0043c0f0
mov dword [eax + 0x30], esi
mov dword [eax + 0x34], edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044df7a
mov esp, ebp
pop ebp
ret
Function at 0x409590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x49f008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.00451eb0
add esp, 0xc
mov dword [ebp - 0x210], 0x208
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x48f4bc
push str.SoftwareTencentQQBrowserLogin
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
test eax, eax
jne 0x409673
mov word [esi], ax
cmp word [ebp - 0x20c], ax
jne 0x40963b
xor ecx, ecx
lea eax, [ebp - 0x20c]
push ecx
push eax
mov ecx, esi
call fcn.00407900
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044df7a
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409644
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00407900
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044df7a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [esi], ax
xor ecx, ebp
mov eax, esi
pop esi
call fcn.0044df7a
mov esp, ebp
pop ebp
ret