joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417a80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
xor edi, edi
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x417c88
cmp dword [esi + 0x6af90], 3
jb 0x417af8
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
test ebx, ebx
je 0x417b35
mov eax, dword [esi + 0x6af84]
sub eax, ebx
cmp eax, 0x7efa
ja 0x417b35
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x417b1f
mov dword [esi + 0x6afa0], eax
mov edx, ebx
mov ecx, esi
call fcn.00417750
mov ecx, dword [esi + 0x6af90]
mov edi, eax
cmp edi, ecx
cmova edi, ecx
mov ecx, esi
cmp edi, 3
jb 0x417c08
mov edx, dword [esi + 0x6af84]
lea eax, [edi - 3]
sub edx, dword [esi + 0x6af88]
push eax
call fcn.00416f40
sub dword [esi + 0x6af90], edi
add esp, 4
mov dword [ebp - 4], eax
cmp edi, dword [esi + 0x6af98]
ja 0x417bcf
cmp dword [esi + 0x6af90], 3
jb 0x417bcf
dec edi
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [esi + edx + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
sub edi, 1
jne 0x417b73
mov eax, dword [ebp - 4]
jmp 0x417c27
add dword [esi + 0x6af84], edi
xor edi, edi
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [eax + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [ebp - 4]
jmp 0x417c2d
mov eax, dword [esi + 0x6af84]
xor edx, edx
movzx eax, byte [eax + esi + 0x1af70]
push eax
call fcn.00416f40
add esp, 4
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
test eax, eax
je 0x417c68
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x417c45
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x417c47
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00416d90
mov eax, dword [esi + 0x6af84]
add esp, 8
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x417c7b
mov ecx, esi
call fcn.00417920
cmp dword [esi + 0x6af90], 0
jne 0x417aa3
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x417c9c
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x417c9e
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
mov ecx, esi
push 1
push eax
call fcn.00416d90
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418980
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x41898b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x418a47
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5bd3e8]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5bd3e8]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5bd3e8]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5bd3e8]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5bd3e8]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5bd3e8]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5bd3e8]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5bd3e8]
sub edi, 1
jne 0x4189a0
pop edi
test esi, esi
je 0x418a6a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5bd3e8]
sub esi, 1
jne 0x418a50
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x418d60
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
je 0x418e38
mov eax, dword [esi + 0x3c]
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x418d94
cmp dword [esi + 0x40], ebx
jae 0x418d94
push eax
call fcn.0042afcb
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x418dac
lea eax, [ebx + ebx]
push eax
call fcn.0042afd0
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
push ebx
push edi
push dword [esi + 0x3c]
call fcn.0055d810
xor edx, edx
add esp, 0xc
mov dword [ebp + 8], edx
test ebx, ebx
je 0x418e35
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x30]
shr ecx, 8
mov bl, byte [edx + eax]
mov edx, dword [esi + 0x38]
mov edi, edx
movsx eax, bl
and edi, 0xfffd
xor eax, dword [esi + 0x30]
or edi, 2
movzx eax, al
mov eax, dword [eax*4 + 0x5bd3e8]
xor eax, ecx
mov ecx, edi
mov dword [esi + 0x30], eax
xor ecx, 1
movzx eax, al
add eax, dword [esi + 0x34]
imul eax, eax, 0x8088405
imul ecx, edi
inc eax
mov dword [esi + 0x34], eax
shr eax, 0x18
xor eax, edx
shr ecx, 8
movzx eax, al
xor cl, bl
shr edx, 8
xor edx, dword [eax*4 + 0x5bd3e8]
mov dword [esi + 0x38], edx
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
mov byte [edx + eax], cl
inc edx
mov dword [ebp + 8], edx
cmp edx, dword [ebp + 0xc]
jb 0x418dc2
mov edi, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x418e76
mov edx, dword [esi + 0x24]
mov ebx, dword [ebp + 0xc]
lea eax, [edx + ebx]
cmp eax, dword [esi + 0x28]
jb 0x418e5d
pop edi
mov dword [esi + 0x14], 0x30000
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
push ebx
add ecx, edx
push edi
push ecx
call fcn.0055d810
add esp, 0xc
mov eax, ebx
add dword [esi + 0x24], ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x418e98
push 0
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
Function at 0x419160
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x78]
test edx, edx
je 0x4191bd
mov ecx, dword [edi + 0x80]
mov ebx, dword [edi + 0x7c]
cmp ecx, ebx
jae 0x419205
mov esi, dword [ebp + 8]
lea eax, [ecx + edx]
sub ebx, ecx
cmp ebx, dword [ebp + 0xc]
cmova ebx, dword [ebp + 0xc]
push ebx
push eax
push esi
call fcn.0055d810
mov ecx, dword [edi + 0x6c]
mov edx, esi
add dword [edi + 0x80], ebx
add dword [edi + 0x68], ebx
push ebx
call fcn.00418980
add esp, 0x10
mov dword [edi + 0x6c], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x70]
test eax, eax
je 0x4191fe
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 4]
push 0
push ecx
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419205
mov esi, dword [ebp - 4]
mov edx, ebx
mov ecx, dword [edi + 0x6c]
add dword [edi + 0x68], esi
push esi
call fcn.00418980
add esp, 4
mov dword [edi + 0x6c], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x14], 0x1000000
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x419faa
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov ebx, dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, ebx
sub edx, dword [edi + 0x6c]
mov dword [ebp - 0xc], edx
cmp dword [edi + 0x6c], eax
jb 0x41a049
mov ecx, dword [edi + 0x38]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.0055d810
mov ecx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
sub dword [edi + 0x5c], ebx
mov edi, ecx
mov dword [ebp - 8], ecx
lea esi, [eax + ecx*2]
lea esi, [esi - 2]
xor ecx, ecx
movzx edx, word [esi]
mov eax, edx
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [esi], cx
sub edi, 1
jne 0x419ffe
mov edi, dword [ebp - 4]
mov eax, dword [edi + 0x40]
mov edi, ebx
lea esi, [eax + ebx*2]
lea esi, [esi - 2]
xor ecx, ecx
movzx edx, word [esi]
mov eax, edx
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [esi], cx
sub edi, 1
jne 0x41a025
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
add edx, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x41a173
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x41a076
xor eax, eax
jmp 0x41a0c7
sub eax, ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x41a093
mov edx, dword [esi]
push ecx
mov ecx, dword [esi + 0x30]
call fcn.0041d6d5
jmp 0x41a0ab
cmp eax, 2
jne 0x41a0af
mov edx, dword [esi]
test edx, edx
jne 0x41a0a2
xor eax, eax
jmp 0x41a0ac
push ecx
mov ecx, dword [esi + 0x30]
call fcn.0041d920
pop ecx
mov dword [esi + 0x30], eax
push dword [ebp - 8]
push dword [esi]
push dword [ebp - 0xc]
call fcn.0055d810
mov eax, dword [ebp - 8]
add esp, 0xc
add dword [esi], eax
add dword [esi + 8], eax
add dword [edi + 0x74], eax
cmp dword [edi + 0x74], 3
jb 0x41a0ef
mov edx, dword [edi + 0x6c]
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x58]
movzx esi, byte [edx + eax]
mov dword [edi + 0x48], esi
movzx eax, byte [edx + eax + 1]
shl esi, cl
xor esi, eax
and esi, dword [edi + 0x54]
mov dword [edi + 0x48], esi
cmp dword [edi + 0x74], 0x106
jae 0x41a104
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x419fbb
mov ecx, dword [edi + 0x16c0]
mov ebx, dword [edi + 0x3c]
cmp ecx, ebx
jae 0x41a173
mov esi, dword [edi + 0x6c]
add esi, dword [edi + 0x74]
cmp ecx, esi
jae 0x41a143
mov eax, 0x102
sub ebx, esi
cmp ebx, eax
cmova ebx, eax
mov eax, dword [edi + 0x38]
push ebx
add eax, esi
push 0
push eax
call fcn.0055dd90
lea eax, [ebx + esi]
add esp, 0xc
mov dword [edi + 0x16c0], eax
jmp 0x41a173
lea eax, [esi + 0x102]
cmp ecx, eax
jae 0x41a173
mov eax, dword [edi + 0x38]
sub esi, ecx
sub ebx, ecx
add esi, 0x102
cmp esi, ebx
cmova esi, ebx
add eax, ecx
push esi
push 0
push eax
call fcn.0055dd90
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a929
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5e8f64]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x20c], ebx
test ebx, ebx
jne 0x41a952
push 0xfffffffffffffffd
pop eax
jmp 0x41aa9a
cmp dword [ebp + 0xc], 0
jg 0x41a95c
push 0xfffffffffffffffc
jmp 0x41a94c
cmp dword [ebp + 0x10], 0
jne 0x41a966
push 0xfffffffffffffffb
jmp 0x41a94c
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jg 0x41a972
push 0xfffffffffffffffa
jmp 0x41a979
cmp dword [ebp + 0xc], edi
jge 0x41a97f
push 0xfffffffffffffff9
pop eax
jmp 0x41aa99
push esi
xor esi, esi
mov edx, esi
mov ecx, esi
mov al, byte [edx + str.C6642F75_8DBE_473d_A98B_940F84EF702C]
mov byte [ebp + ecx - 0x204], al
lea eax, [edx + 1]
cdq
mov dword [ebp - 0x208], 0x26
idiv dword [ebp - 0x208]
mov byte [ebp + ecx - 0x104], cl
inc ecx
cmp ecx, 0x100
jl 0x41a986
mov ebx, esi
mov edi, esi
mov dl, byte [ebp + edi - 0x104]
movzx eax, byte [ebp + edi - 0x204]
add ebx, eax
movzx ecx, dl
add ebx, ecx
and ebx, 0x800000ff
jns 0x41a9e1
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [ebp + ebx - 0x104]
mov byte [ebp + ebx - 0x104], dl
mov byte [ebp + edi - 0x104], al
inc edi
cmp edi, 0x100
jl 0x41a9bb
mov edi, dword [ebp + 0x14]
mov eax, esi
mov ebx, dword [ebp - 0x20c]
test edi, edi
jle 0x41aa96
mov edx, dword [ebp + 0x10]
sub edx, ebx
inc eax
and eax, 0x800000ff
jns 0x41aa26
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 0x208], eax
movzx eax, byte [ebp + eax - 0x104]
add esi, eax
and esi, 0x800000ff
jns 0x41aa46
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [ebp - 0x208]
mov cl, byte [ebp + esi - 0x104]
mov al, byte [ebp + eax - 0x104]
mov byte [ebp + esi - 0x104], al
mov eax, dword [ebp - 0x208]
mov byte [ebp + eax - 0x104], cl
movzx eax, byte [ebp + esi - 0x104]
movzx ecx, cl
add ecx, eax
movzx eax, cl
mov al, byte [ebp + eax - 0x104]
xor al, byte [edx + ebx]
mov byte [ebx], al
inc ebx
mov eax, dword [ebp - 0x208]
sub edi, 1
jne 0x41aa17
xor eax, eax
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0055ab1b
mov esp, ebp
pop ebp
ret
Function at 0x4212a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [0x5f46d4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4212f4
push 8
call fcn.0042af94
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x4212d4
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x4212d6
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00421890
push dword [ebp - 4]
push dword [0x5f46d4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x423470
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push edi
mov edi, ecx
cmp edx, 9
jne 0x4234ed
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
push ecx
mov ecx, dword [edi + 4]
call fcn.004230e0
test eax, eax
jne 0x4234e8
push ebx
mov ebx, dword [edi + 4]
push esi
mov esi, dword [ebx + 0x54]
test esi, esi
je 0x4234dd
mov ecx, dword [esi + 0x18]
mov eax, ecx
shr eax, 2
not eax
test al, 1
jne 0x4234d6
mov eax, dword [esi]
and ecx, 0xfffffffb
mov dword [esi + 0x18], ecx
mov ecx, esi
push 0
call dword [eax + 0x58]
test byte [esi + 0x18], 0x80
je 0x4234d6
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x4234d6
mov ecx, dword [ecx]
lea eax, [esi + 4]
push 0
push eax
call fcn.00424450
mov dword [ebx + 0x54], 0
push ecx
mov ecx, dword [edi + 4]
call fcn.004230e0
pop esi
pop ebx
pop edi
pop ebp
ret 8
mov ecx, dword [edi + 4]
pop edi
mov dword [ebp + 8], edx
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0x30]
Function at 0x426f40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [ebp + 0x10], 1
jb 0x426f8f
mov ecx, dword [esi]
test ecx, ecx
je 0x426f5e
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi], edi
mov ecx, dword [0x5e9c98]
test ecx, ecx
jne 0x426f77
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, eax
mov dword [0x5e9c98], ecx
movzx eax, word [ebp + 8]
push 0x5ca358
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
jne 0x426f99
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push eax
push dword [0x5e9c98]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x426fbf
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x426fe1
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 8]
push dword [0x5e9c98]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
mov edx, eax
call fcn.00426df0
mov dword [esi], eax
test eax, eax
je 0x427026
mov ecx, eax
call fcn.00421b50
mov ecx, dword [esi]
mov dword [esi + 0x10], eax
call fcn.00421b80
mov dword [esi + 0x14], eax
mov edi, 1
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x429dd0
Capabilities:
Read file via mapping

Disassembly:
push esi
push str.GlobalFA6FBBB1_8C8E_43b1_B8EC_35573A94C231
push 0
push 6
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [esi], eax
test eax, eax
je 0x429e0c
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
test eax, eax
jne 0x429e10
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
xor eax, eax
pop esi
ret
mov dword [esi + 8], eax
mov eax, 1
pop esi
ret

Function at 0x429ef0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [0x5f4850], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x429f6b
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
push 0
push 0
push str.EnableLogToView
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x429f62
movzx eax, byte [0x5f4850]
mov ecx, 1
cmp dword [ebp - 8], ecx
cmove eax, ecx
mov byte [0x5f4850], al
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x42a2e0
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5e8f64]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [edi], 0
call fcn.0055dd90
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x103
push eax
push str._APPDATA_TencentQQPCMgr_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x42a37b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42a37b
push esi
lea eax, [ebp - 0x20c]
push eax
lea esi, [edi + 4]
push 0x103
push esi
call fcn.0056c3bb
push 0xffffffffffffffff
push str.ErrLogFile.log
push 0x104
push esi
call fcn.0056db1b
add esp, 0x1c
mov eax, edi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055ab1b
mov esp, ebp
pop ebp
ret
push 0x103
push str.C:ErrLogFile.log
lea eax, [edi + 4]
push 0x103
push eax
call fcn.0056d8f2
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0055ab1b
mov esp, ebp
pop ebp
ret

Function at 0x42a3b0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x42a3dd
push 0
push 0x20
push 4
push 0
push 3
push 0xc0000000
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
test eax, eax
je 0x42a43a
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x42a43a
cmp eax, 0x2800
ja 0x42a43a
push edi
push 2
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp + 8]
mov ecx, edx
mov dword [ebp - 8], 0
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42a420
push 0
lea eax, [ebp - 8]
sub ecx, edi
push eax
push ecx
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x431014
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00431504
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x431050
call fcn.00431236
mov dword [esi + 0xc], 1
jmp 0x431055
call fcn.00431236
cmp dword [esi], 0
je 0x43109e
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x431078
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0042bf6e
jmp 0x431089
push 0xff
mov ecx, esi
call fcn.00404f80
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00415600
jmp 0x4310c2
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4310c2
push dword [esi]
push dword [ebp - 4]
call fcn.00430565
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x43118b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00431236
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4311d3
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0042bf6e
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00415600
jmp 0x4311de
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00430565
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4315ba
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5828a5
call fcn.0055b628
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x4315e0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x43163f
call fcn.0042bd85
push eax
lea ecx, [ebp - 0x10]
call fcn.004053c0
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.0055b5eb
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0056d8f2
push eax
call fcn.004059a0
add esp, 0x14
test esi, esi
je 0x431632
push esi
call fcn.0056df53
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004053f0
mov eax, ebx
call fcn.0055b5f1
ret 8