joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10056c80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10063870
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
mov eax, dword [0x10075604]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push dword [esi]
call fcn.10012b10
add esp, 8
mov word [ebp - 0x10], 0xe
lea eax, [ebp - 0xf]
mov byte [ebp - 0xf], 0
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
push 0
push eax
mov byte [ebp - 0x50], 0
call fcn.10002800
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 0
push eax
push dword [esi + 4]
call fcn.10012fc0
mov eax, dword [ebp - 0x3c]
add esp, 8
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10056d12
inc eax
push 1
push eax
push dword [ebp - 0x50]
call fcn.10002610
add esp, 0xc
push 0xffffffffffffffff
push dword [esi + 4]
call fcn.10012f10
add esp, 8
mov dword [ebp - 0x20], 0x776d4603
mov cl, 3
mov dword [ebp - 0x1c], 0x57237166
mov dword [ebp - 0x18], 0x4a236462
xor eax, eax
mov word [ebp - 0x14], 0x47
nop
xor byte [ebp + eax - 0x1f], cl
inc eax
cmp eax, 0xc
jae 0x10056d4f
mov cl, byte [ebp - 0x20]
jmp 0x10056d40
cmp byte [ebp - 0x1f], 0
mov byte [ebp - 0x13], 0
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
jne 0x10056d6f
xor ecx, ecx
jmp 0x10056d7e
lea ecx, [ebp - 0x1f]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10056d75
sub ecx, edx
push ecx
lea eax, [ebp - 0x1f]
push eax
lea ecx, [ebp - 0x38]
call fcn.10002800
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 1
push eax
push dword [esi + 4]
call fcn.10013480
mov eax, dword [ebp - 0x24]
add esp, 8
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10056dbf
push 1
inc eax
push eax
push dword [ebp - 0x38]
call fcn.10002610
add esp, 0xc
push dword [esi + 4]
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
call fcn.10012e20
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1005aed0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100648d8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x10075604]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x80], 0
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
push dword [ebp + 0x1c]
cmovae eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x7c]
push eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x7c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
call fcn.1005b6b0
lea ecx, [ebp - 0x7c]
call fcn.1005ad10
push esi
lea ecx, [ebp - 0x7c]
call fcn.1005ae00
mov ecx, dword [ebp + 0x20]
cmp ecx, 0x10
jb 0x1005af77
push 1
inc ecx
push ecx
push dword [ebp + 0xc]
call fcn.10002610
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005e77e
mov esp, ebp
pop ebp
ret

Function at 0x1005ba70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1005bc40
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1005bb4d
mov edx, dword [ebp - 4]
cmp edx, dword [0x100755f8]
jb 0x1005baba
mov eax, dword [ebp - 4]
cmp eax, dword [0x100755fc]
ja 0x1005baba
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1005ba8a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1005badf
jmp 0x1005bb4d
cmp dword [ebp - 0x14], 0x10000
jne 0x1005bb33
cmp dword [ebp - 0x18], 0x10000
jb 0x1005bb33
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1005bb16
mov eax, dword [ebp - 8]
jmp 0x1005bb4f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1005bb26
xor eax, eax
jmp 0x1005bb4f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1005bb48
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1005bc40
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1005ba8a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1005bb60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1005bc70
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1005bc35
mov edx, dword [ebp - 4]
cmp edx, dword [0x100755f8]
jb 0x1005bba5
mov eax, dword [ebp - 4]
cmp eax, dword [0x100755fc]
ja 0x1005bba5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1005bb75
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1005bbca
jmp 0x1005bc35
cmp dword [ebp - 0x14], 0x10000
jne 0x1005bc1e
cmp dword [ebp - 0x18], 0x10000
jb 0x1005bc1e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1005bc01
mov eax, dword [ebp - 8]
jmp 0x1005bc37
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1005bc11
xor eax, eax
jmp 0x1005bc37
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1005bc30
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1005bc70
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1005bb75
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1005bca0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1005c090
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x100766bc], 0
jne 0x1005bcdd
cmp dword [0x100766b8], 0
je 0x1005bcdd
mov eax, dword [0x100766b8]
mov dword [0x100766bc], eax
cmp dword [0x100766bc], 0
je 0x1005bd5a
mov ecx, dword [0x100766bc]
cmp dword [ecx + 8], 0
je 0x1005bd5a
mov edx, dword [0x100766bc]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1005bd5a
mov ecx, dword [0x100766bc]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1005bd5a
mov eax, dword [0x100766bc]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1005bd29
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1005bd30
xor eax, eax
jmp 0x1005be79
mov ecx, dword [0x100766bc]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1005be79
mov edx, dword [0x100766b8]
mov dword [0x100766bc], edx
jmp 0x1005bd76
mov eax, dword [0x100766bc]
mov ecx, dword [eax + 4]
mov dword [0x100766bc], ecx
cmp dword [0x100766bc], 0
je 0x1005bdb6
cmp dword [0x100766bc], 0
je 0x1005bdb4
mov edx, dword [0x100766bc]
cmp dword [edx + 8], 0
je 0x1005bdb4
mov eax, dword [0x100766bc]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1005bdb4
mov edx, dword [0x100766bc]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1005bdb4
jmp 0x1005bd0e
jmp 0x1005bd68
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1005be80
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1005be77
mov eax, dword [ebp - 0x18]
mov dword [0x100766bc], eax
mov ecx, dword [0x100766bc]
mov dword [ecx], 0x52727464
mov edx, dword [0x100766bc]
mov dword [edx + 8], 0
mov eax, dword [0x100766bc]
mov ecx, dword [0x100766b8]
mov dword [eax + 4], ecx
mov edx, dword [0x100766bc]
mov dword [0x100766b8], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x100766bc]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1005be47
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1005be67
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1005be3e
mov eax, dword [0x100766bc]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1005bd0e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1005cbc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100766b8]
mov dword [ebp - 4], eax
jmp 0x1005cbd9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1005cc00
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1005cbfe
call sub.KERNEL32.dll_GetLastError
jmp 0x1005cc02
jmp 0x1005cbd0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1005d0a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100766c8], eax
je 0x1005d0c4
mov eax, 0x10dd
jmp 0x1005d26c
cmp dword [0x100766cc], 0
je 0x1005d0d7
mov eax, dword [0x100766cc]
jmp 0x1005d26c
cmp dword [ebp + 0xc], 0
jne 0x1005d0e7
mov eax, 0x57
jmp 0x1005d26c
cmp dword [ebp + 8], 0
jne 0x1005d0f7
mov eax, 6
jmp 0x1005d26c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1005d120
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x100766cc], ecx
mov edx, dword [ebp + 8]
mov dword [0x100766d0], edx
mov eax, dword [ebp - 8]
jmp 0x1005d26c
push 0x18
call fcn.1005e74b
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1005d17b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x100766cc], ecx
cmp dword [ebp - 4], 0
je 0x1005d16a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.1005e7b2
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x100766d0], ecx
mov eax, dword [ebp - 8]
jmp 0x1005d26c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.1005d080
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1005d080
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x1005d1bb
cmp dword [ebp - 0xc], 0x1e
jbe 0x1005d1d7
mov dword [ebp - 8], 9
cmp dword [0x100766c0], 0
je 0x1005d1d2
jmp 0x1005d149
jmp 0x1005d140
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1005d1fe
mov dword [ebp - 8], 9
cmp dword [0x100766c0], 0
je 0x1005d1f9
jmp 0x1005d149
jmp 0x1005d140
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1005d229
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1005d140
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x100766d8]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x100766d8], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1005d280
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100766c8], eax
je 0x1005d29d
mov eax, 0x10dd
jmp 0x1005d380
mov eax, dword [0x100766d8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1005d31c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1005d2f8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1005d2f8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1005c120
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1005e7b2
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1005d2a5
mov dword [0x100766d8], 0
call fcn.1005ca00
mov ecx, dword [0x100766d4]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1005d36a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1005e7b2
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1005d334
mov dword [0x100766d4], 0
mov dword [0x100766c8], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1005d860
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x100766cc], 0
je 0x1005d879
mov eax, dword [0x100766cc]
jmp 0x1005d918
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1005d88a
xor eax, eax
jmp 0x1005d918
push 8
call fcn.1005e74b
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1005d8e2
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1005d8cb
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1005e7b2
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x100766cc], eax
mov dword [0x100766d0], 0
mov eax, dword [ebp - 8]
jmp 0x1005d918
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1005d8fa
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1005d8aa
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x100766d4]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x100766d4], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x401230
Capabilities:
Acquire debug privileges
Create thread
Inject dll
Inject thread
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x433050]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
push edi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x18]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40127c
push 0x42f608
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4012e5
lea eax, [esp + 0x1c]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x401299
push str.LookupPrivilegeValue
jmp 0x4012d9
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push 0
push 0
push 0x10
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
push eax
push 0
push dword [esp + 0x2c]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4012e5
push 0x42f658
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [esp + 0x18]
call ebx
sub esp, 0x18
mov ecx, esi
mov edx, esp
lea edi, [ecx + 2]
mov dword [edx], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401303
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.004015c0
mov edi, dword [esp + 0x28]
mov ecx, edi
call fcn.004022f0
add esp, 0x18
push edi
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4013c5
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401346
sub ecx, edx
sar ecx, 1
push 4
push 0x1000
lea eax, [ecx*2 + 2]
push eax
push 0
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x4013c5
push 0
push dword [esp + 0x14]
push dword [esp + 0x1c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4013c5
push str.LoadLibraryW
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4013c5
push 0
push 0
push esi
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
jne 0x4013d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0040733c
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
push edi
call ebx
mov ecx, dword [esp + 0x34]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040733c
mov esp, ebp
pop ebp
ret
Function at 0x401400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423790
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x433050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], esi
xor eax, eax
mov dword [ebp - 0x21c], esi
push eax
mov dword [ebp - 0x234], 0
lea ecx, [ebp - 0x234]
push 0x42f69c
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
call fcn.004015c0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00408d40
add esp, 0xc
mov dword [ebp - 0x21c], 0x104
lea eax, [ebp - 0x238]
push eax
push 0x101
push 0
push str.SoftwareTencentWXWork
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401519
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push str.Executable
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401519
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4014f7
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.004015c0
movups xmm0, xmmword [ebp - 0x234]
mov dword [esi], 0
mov eax, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x224]
movq qword [esi + 0x10], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040733c
mov esp, ebp
pop ebp
ret
Function at 0x4022f0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x433050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x402374
lea eax, [ebp - 0x430]
mov dword [ebp - 0x430], 0x428
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x40236d
mov edi, dword [sym.imp.KERNEL32.dll_Module32NextW]
nop word [eax + eax]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040b442
add esp, 8
test eax, eax
je 0x4023a4
lea eax, [ebp - 0x430]
push eax
push esi
call edi
test eax, eax
jne 0x402340
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x4023bd
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4023b3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023cf
jmp 0x4023b3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x414]
jmp 0x402376
push edx
push ecx
call fcn.0040737a
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0040733c
mov esp, ebp
pop ebp
ret
call fcn.0040b6ff
int3
Function at 0x403c90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x403d76
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x403d65
jg 0x403cd0
test edx, edx
je 0x403d65
nop dword [eax]
call fcn.00405190
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x403d24
jg 0x403ce7
test esi, esi
je 0x403d24
cmp ebx, eax
jg 0x403cf7
jl 0x403cf1
cmp edi, esi
jae 0x403cf7
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.004087c0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x403d49
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x403d5f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x403cd0
jl 0x403d5f
test edi, edi
jne 0x403cd0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x403d98
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x403d9a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x403e18
jg 0x403dad
test esi, esi
je 0x403e18
test eax, eax
jl 0x403dfc
jg 0x403db7
test ebx, ebx
je 0x403dfc
cmp edi, eax
jg 0x403dc7
jl 0x403dc1
cmp esi, ebx
jae 0x403dc7
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.004087c0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x403e18
jg 0x403dff
test esi, esi
je 0x403e18
jmp 0x403dff
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x403e18
push eax
push esi
push 1
push edx
call fcn.0040c424
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc