joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a51d25
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x40a51d47
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x40a51d47
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x40a51d47
ret
cmp word [ebx + 4], 0x14c
jne 0x40a51d47
test word [ebx + 0x16], 2
je 0x40a51d47
test word [ebx + 0x16], 0x100
je 0x40a51d47
cmp word [ebx + 0x18], 0x10b
jne 0x40a51d47
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x40a51d47
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x40a51dd3
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x40a51d67
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.40a38cb2
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x40a51d47
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x40a51dd3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x40a51d47
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x40a51d47
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x40a51d47
ret
cmp word [ebx + 4], 0x14c
jne 0x40a51d47
test word [ebx + 0x16], 2
je 0x40a51d47
test word [ebx + 0x16], 0x100
je 0x40a51d47
cmp word [ebx + 0x18], 0x10b
jne 0x40a51d47
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x40a51d47
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x40a51dd3
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x40a51d67
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.40a38cb2
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x40a51d47
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x40a51e8a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x40a51ee3
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x40a51e8a
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x40a51e99
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x40e57b3c
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x40a51eea
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.40a38d60
cmp eax, dword [ebp + 0xc]
pop eax
je 0x40a51f89
add edi, 4
add eax, 2
dec ecx
jne 0x40a51ecf
call 0x40a51f36
loope 0x40a51f2c
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x40a51f86
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x40a51f97
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x40a51f4a
cmp eax, ecx
ja 0x40a51f4a
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x40a51fd4
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x40a51fca
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.40a3923f
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x40a51e99
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x40a51ee3
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x40a51e8a
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x40a51e99
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x40e57b3c
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x40a51eea
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.40a38d60
cmp eax, dword [ebp + 0xc]
pop eax
je 0x40a51f89
add edi, 4
add eax, 2
dec ecx
jne 0x40a51ecf
call 0x40a51f36
loope 0x40a51f2c
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x40a51f86
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x40a51f97
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x40a51f4a
cmp eax, ecx
ja 0x40a51f4a
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x40a51fd4
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x40a51fca
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.40a3923f
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x406cbf
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x464144], 0
jne 0x406cfd
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406cd3
mov dword [ecx*4 + 0x464140], eax
inc ecx
cmp ecx, 0x100
jl 0x406cce
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406d2a
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x464140]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406d0b
not eax
pop ebp
ret 0xc
Function at 0x4300a1
Capabilities:
Get common file path
Set current directory
Write file on windows

Disassembly:
push 0x30
push 0x445545
push 0x413922
push 0
call sub.user32.dll_MessageBoxA
jmp 0x41382a
call fcn.00418d6f
push ebx
push ecx
push edx
push esi
push edi
push ebp
push 1
push 0x1a
push 0x446da8
push 0
call sub.SHELL32.dll_SHGetSpecialFolderPathA
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
cmp eax, 1
jne 0x43010d
push 0x445526
push 0x446da8
call fcn.004382bb
push 0x4475c5
push 0x446da8
call fcn.004382bb
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x446da8
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x43010d
mov dword [0x445193], eax
jmp 0x43014a
push 0x446b28
call sub.KERNEL32.dll_SetCurrentDirectoryA
cmp eax, 0
je 0x41390a
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x4475c5
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x41390a
mov dword [0x445193], eax
push ebx
push ecx
push edx
push esi
push edi
push ebp
push 0
push 0
push 0
push dword [0x445193]
call sub.KERNEL32.dll_SetFilePointer
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
cmp eax, 0xffffffff
je 0x41390a
pushal
push ebx
push ecx
push edx
push esi
push edi
push ebp
push 4
push 0x1000
push 0x2dc6c0
push 0
call sub.KERNEL32.dll_VirtualAlloc
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
mov dword [0x43f591], eax
popal
mov edi, dword [0x43f591]
mov eax, dword [0x43b664]
mov dword [edi], eax
add edi, 4
mov word [edi], 0xa0d
mov esi, dword [0x43b6a0]
mov edi, dword [0x43f591]
add edi, 6
mov ecx, dword [0x43b664]
mov ebx, 6
mov edx, esi
add edx, 0x2c
pushal
push edx
mov ebx, 0
pop edi
mov ecx, 0
mov al, byte [edi]
inc edi
inc ecx
cmp al, bl
jne 0x4301d7
dec ecx
mov dword [0x444787], ecx
mov dword [0x44478b], edi
popal
pushal
push dword [0x444787]
push edi
push edx
pop esi
pop edi
pop ecx
cld
rep movsb byte es:[edi], byte [esi]
popal
add edi, dword [0x444787]
mov dword [edi], 0
add edi, 4
mov edx, esi
add edx, 0x18
mov eax, dword [edx]
mov dword [edi], eax
mov eax, dword [edx + 4]
mov dword [edi + 4], eax
add edi, 8
mov dword [edi], 0
add edi, 4
mov edx, esi
add edx, 0x14
mov eax, dword [edx]
mov dword [edi], eax
add edi, 4
add edi, 0x24
mov word [edi], 0xa0d
add edi, 2
add ebx, dword [0x444787]
add ebx, 0x3a
add esi, 0x158
dec ecx
jne 0x4301c5
mov dword [0x43f595], ebx
call fcn.00418d8b
push ebx
push ecx
push edx
push esi
push edi
push ebp
push 0
push 0x44519b
push dword [0x43f595]
push dword [0x43f591]
push dword [0x445193]
call sub.KERNEL32.dll_WriteFile
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
cmp eax, 0
je 0x41390a
push ebx
push ecx
push edx
push esi
push edi
push ebp
push dword [0x445193]
call sub.KERNEL32.dll_CloseHandle
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
cmp eax, 0
je 0x41390a
ret
Function at 0x4302b3
Capabilities:
Create thread
Terminate thread

Disassembly:
pushal
mov ecx, 0
mov esi, 0x43c5fc
mov ebx, dword [esi + ecx*4]
push ebx
push ecx
push edx
push esi
push edi
push ebp
push 0
push ebx
call sub.KERNEL32.dll_TerminateThread
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
mov dword [esi + ecx*4], 0
mov esi, 0x43c610
mov ebx, dword [esi + ecx*4]
push ebx
push ecx
push edx
push esi
push edi
push ebp
push ebx
call sub.KERNEL32.dll_CloseHandle
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
mov dword [esi + ecx*4], 0
mov esi, 0x43c638
mov ebx, dword [esi + ecx*4]
pushal
push ebx
push ecx
push edx
push esi
push edi
push ebp
push 0x8000
push 0
push ebx
call sub.KERNEL32.dll_VirtualFree
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
popal
mov esi, 0x442709
mov edx, 0x12c
push ebx
push ecx
push edx
pop eax
pop ebx
imul eax, ebx
pop ebx
mov edx, eax
add esi, edx
mov edi, 0x43c624
pushal
push esi
mov ebx, 0
pop edi
mov ecx, 0
mov al, byte [edi]
inc edi
inc ecx
cmp al, bl
jne 0x430349
dec ecx
mov dword [0x444787], ecx
mov dword [0x44478b], edi
popal
cmp dword [0x444787], 2
jae 0x430374
mov dword [edi + ecx*4], 0
jmp 0x430407
mov dword [edi + ecx*4], 1
mov edi, 0x43a1d2
add edi, edx
pushal
push 0x12c
push edi
push esi
pop esi
pop edi
pop ecx
cld
rep movsb byte es:[edi], byte [esi]
popal
pushal
push edi
mov ebx, 0
pop edi
cmp byte [edi], bl
je 0x4303a0
inc edi
jmp 0x430399
mov dword [0x44478f], edi
popal
mov edi, dword [0x44478f]
mov byte [edi], 0x5c
mov byte [edi + 1], 0x2a
mov byte [edi + 2], 0
mov esi, 0x43c624
cmp dword [esi + ecx*4], 1
jne 0x430407
mov esi, 0x43c5e8
mov ebx, ecx
shl ebx, 2
add esi, ebx
mov dword [esi], ecx
push ebx
push ecx
push edx
push esi
push edi
push ebp
push 0x43c6a0
push 0
push esi
push 0x4115b9
push 0x3e8
push 0
call sub.KERNEL32.dll_CreateThread
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
mov edi, 0x43c5fc
mov dword [edi + ecx*4], eax
cmp eax, 0
je 0x4139a0
inc ecx
cmp ecx, 5
jb 0x4302b9
popal
ret
Function at 0x43426a
Capabilities:
Get file system object information

Disassembly:
enter 0x14, 0
pushal
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x1f0]
add eax, dword [edi + 0x1f4]
mov dword [ebp - 4], eax
test dword [ebp + 0x1c], 2
jne 0x43429a
push 0
push dword [ebp + 0xc]
call fcn.004317bf
mov edi, dword [ebp + 8]
cmp dword [edi + 0x9c], 0
je 0x43445d
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x9c]
sub eax, dword [edi + 0x108]
cmp eax, dword [ebp + 0x10]
jbe 0x4342c1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x108]
mov ecx, 0x158
mul ecx
mov ebx, dword [edi + 0x200]
add ebx, eax
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp - 0x10]
test dword [esi + 0x28], 1
jne 0x434447
test dword [esi + 0x28], 2
jne 0x434447
test dword [ebp + 0x1c], 1
jne 0x43439a
mov edi, esi
add edi, 0x2c
pushal
push edi
mov ebx, 0
pop edi
mov ecx, 0
mov al, byte [edi]
inc edi
inc ecx
cmp al, bl
jne 0x434318
dec ecx
mov dword [0x444787], ecx
mov dword [0x44478b], edi
popal
dec dword [0x44478b]
pushal
push dword [0x44478b]
mov ebx, 0x2e
pop edi
cmp byte [edi], bl
je 0x434348
dec edi
jmp 0x434341
mov dword [0x44478f], edi
popal
mov edi, dword [0x44478f]
mov dword [0x444827], 1
push ebx
push ecx
push edx
push esi
push edi
push ebp
push 0x111
push 0x160
push 0x4483fd
push 0x80
push edi
call sub.SHELL32.dll_SHGetFileInfo
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
mov dword [0x444827], 0
cmp eax, 0
je 0x434447
jmp 0x4343c1
push ebx
push ecx
push edx
push esi
push edi
push ebp
push 0x111
push 0x160
push 0x4483fd
push 0x10
push 0x446786
call sub.SHELL32.dll_SHGetFileInfo
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
mov edi, dword [ebp + 0xc]
push ebx
push ecx
push edx
push esi
push edi
push ebp
push 3
push 0
push 0
push dword [edi + 0x21c]
push dword [edi + 0x21c]
push dword [0x4483fd]
push dword [ebp - 8]
push dword [ebp + 0x14]
push dword [edi + 0x68]
call sub.user32.dll_DrawIconEx
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
cmp eax, 0
jne 0x434413
push 0x30
push 0x43f808
push 0x43f80e
push 0
call sub.user32.dll_MessageBoxA
jmp 0x41382a
push ebx
push ecx
push edx
push esi
push edi
push ebp
push dword [0x4483fd]
call sub.user32.dll_DestroyIcon
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
cmp eax, 0
jne 0x434447
push 0x30
push 0x43f82a
push 0x43f830
push 0
call sub.user32.dll_MessageBoxA
jmp 0x41382a
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
add dword [ebp - 0x10], 0x158
dec dword [ebp - 0xc]
jne 0x4342dc
pushal
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 0x128]
push dword [edi + 0xc]
push dword [edi + 8]
push dword [edi + 0x114]
push dword [edi + 0x1c]
push dword [edi + 0x18]
push 0
push 0
push dword [esi + 0x114]
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [edi + 4]
push dword [edi]
call fcn.00434d99
popal
popal
leave
ret 0x18
Function at 0x436497
Capabilities:
Create thread

Disassembly:
pushal
push ebx
push ecx
push edx
push esi
push edi
push ebp
push 0x43fc52
push 0
push 0x4478d6
push 0x4364ef
push 0x3e8
push 0
call sub.KERNEL32.dll_CreateThread
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
cmp eax, 0
jne 0x4364de
push 0x30
push 0x441283
push 0x441289
push 0
call sub.user32.dll_MessageBoxA
jmp 0x41382a
mov dword [0x43fc56], eax
mov dword [0x43fc5a], 1
popal
ret
Function at 0x1000ec50
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1000ee14
pushal
mov esi, section.m4k1
lea edi, [esi - 0xa000]
push edi
jmp 0x1000ec7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1000ec81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1000ec70
mov eax, 1
add ebx, ebx
jne 0x1000ec93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1000ec88
jne 0x1000eca4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1000ec88
xor ecx, ecx
sub eax, 3
jb 0x1000ecb8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1000ed2a
mov ebp, eax
add ebx, ebx
jne 0x1000ecc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1000ecd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1000ecf4
inc ecx
add ebx, ebx
jne 0x1000ece0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1000ecd5
jne 0x1000ecf1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1000ecd5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1000ed14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1000ed05
jmp 0x1000ec76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1000ed14
add edi, ecx
jmp 0x1000ec76
pop esi
mov edi, esi
mov ecx, 0x1dd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1000ed32
cmp byte [edi], 5
jne 0x1000ed32
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1000ed37
lea edi, [esi + 0xc000]
mov eax, dword [edi]
or eax, eax
je 0x1000eda6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe7fc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe824]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1000ed64
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe828]
or eax, eax
je 0x1000eda0
mov dword [ebx], eax
add ebx, 4
jmp 0x1000ed81
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1000edd7
cmp al, 0xef
ja 0x1000edca
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1000edac
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1000edb9
mov ebp, dword [esi + 0xe82c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1000ee0b
sub esp, 0xffffff80
jmp 0x10001269
Function at 0x1003b509
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 0x100c7a7c
call dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x1003b545
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
leave
ret

Function at 0x1003b6a6
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 0x100c7af0
call dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x1003b6e2
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
leave
ret

Function at 0x1003b843
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x1003b87f
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
leave
ret

Function at 0x1003e958
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b7a79
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x100e13e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.1003e6bb
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.1003eac5
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CQQChannelDownload.0
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], vtable.CQQChannelDownload.1.0
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.100016d2
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
and dword [eax + 0xc], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
call dword [eax + 8]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 0x10]
and dword [eax + 0x10], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x30], 0
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 8
Function at 0x1005ad1e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWARETencentQQPC2Mgr
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1005ad47
xor eax, eax
leave
ret
push esi
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret
Function at 0x1005e20a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
mov esi, edx
jne 0x1005e215
xor eax, eax
pop esi
ret
cmp eax, 8
push ebx
not esi
mov edx, 0xff
jb 0x1005e2c7
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100c4330]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100c4330]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100c4330]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100c4330]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100c4330]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100c4330]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100c4330]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100c4330]
inc ecx
sub eax, 8
dec edi
jne 0x1005e22c
pop edi
test eax, eax
je 0x1005e2e0
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100c4330]
inc ecx
dec eax
jne 0x1005e2cb
mov eax, esi
pop ebx
not eax
pop esi
ret

Function at 0x1005e2e7
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x100c4330]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x100c4330]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x1005ea26
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x1005ea56
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1005ea51
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x1005ea8e
xor eax, eax
mov ecx, edi
add ecx, dword [esi + 0x28]
adc eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x24]
jl 0x1005ea72
jg 0x1005ea6c
cmp ecx, dword [esi + 0x20]
jbe 0x1005ea72
mov edi, dword [esi + 0x20]
sub edi, dword [esi + 0x28]
mov eax, dword [esi + 0x1c]
add eax, dword [esi + 0x28]
push edi
push eax
push dword [ebp + 8]
call fcn.100720d0
add esp, 0xc
add dword [esi + 0x28], edi
mov eax, edi
adc dword [esi + 0x2c], 0
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret
Function at 0x1001a103
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001a142
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001a142
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001a142
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001a142
cmp dword [ecx + 0x74], 0xe
jbe 0x1001a142
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret