joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46dc8b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0046313d
xor ebx, ebx
cmp dword [0x4b16c8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x46dd61
push str.USER32.DLL
call dword [0x4910dc]
mov edi, eax
cmp edi, ebx
je 0x46de41
mov esi, dword [0x491334]
push 0x49782c
push edi
call esi
cmp eax, ebx
je 0x46de41
push eax
call fcn.004630cf
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4b16c8], eax
call esi
push eax
call fcn.004630cf
mov dword [esp], 0x497808
push edi
mov dword [0x4b16cc], eax
call esi
push eax
call fcn.004630cf
mov dword [0x4b16d0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00461740
test eax, eax
pop ecx
pop ecx
je 0x46dd2f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045c732
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x46dd61
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004630cf
cmp eax, ebx
pop ecx
mov dword [0x4b16d8], eax
je 0x46dd61
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004630cf
pop ecx
mov dword [0x4b16d4], eax
mov eax, dword [0x4b16d4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x46dde6
cmp dword [0x4b16d8], ecx
je 0x46dde6
push eax
call fcn.00463146
push dword [0x4b16d8]
mov esi, eax
call fcn.00463146
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x46dde6
cmp edi, ebx
je 0x46dde6
call esi
cmp eax, ebx
je 0x46ddb3
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x46ddb3
test byte [ebp - 0x18], 1
jne 0x46dde6
lea eax, [ebp - 0x10]
push eax
call fcn.00461777
test eax, eax
pop ecx
je 0x46ddce
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045c732
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x46dddd
or dword [ebp + 0x10], 0x200000
jmp 0x46de21
or dword [ebp + 0x10], 0x40000
jmp 0x46de21
mov eax, dword [0x4b16cc]
cmp eax, dword [ebp - 8]
je 0x46de21
push eax
call fcn.00463146
cmp eax, ebx
pop ecx
je 0x46de21
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x46de21
mov eax, dword [0x4b16d0]
cmp eax, dword [ebp - 8]
je 0x46de21
push eax
call fcn.00463146
cmp eax, ebx
pop ecx
je 0x46de21
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b16c8]
call fcn.00463146
cmp eax, ebx
pop ecx
je 0x46de41
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x46de43
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x484870
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x48e558
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ac13c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x4b1b04]
test eax, eax
jne 0x4848a2
xor esi, esi
jmp 0x4848ab
push eax
call dword [0x491324]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
mov ebp, dword [0x491330]
mov dword [esp + 0x20], 0
je 0x4848ed
cmp dword [esi + 0x14], 0
jne 0x48492f
cmp dword [esi + 0x10], 0
jne 0x484935
push 0x484390
push 0x4b1afc
call fcn.00484590
mov eax, dword [0x4b1b04]
add esp, 8
push 0
push eax
call dword [0x491320]
test esi, esi
mov dword [esp + 0x20], 0xffffffff
je 0x48491b
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x48491b
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [0x49132c]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x484975
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x484963
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [0x49132c]
push eax
call ebp
push ebx
push 0
call dword [0x49132c]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x484935
cmp dword [esi + 0x14], 0
je 0x4848c7
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x48499a
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x4849cb
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4849cb
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4849cb
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [0x49132c]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x48497f
jmp 0x4848c1
Function at 0x484b40
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x48e5d8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4ac13c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x4849f0
push 0
push 0
call fcn.0045d8a4
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x484bab
lea ecx, [esp + 0x10]
call fcn.0045bd2b
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], vtable.boost::thread_resource_error.0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.0040b8a0
mov eax, dword [edi]
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x484bd1
cmp eax, 0xffffffff
je 0x484bd1
push eax
call dword [0x491360]
mov dword [esi], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [0x4910cc]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x486160
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x48616f
mov eax, dword [eax + 4]
jmp 0x486172
add eax, 4
push eax
call dword [0x491130]
cmp eax, 0xffffffff
jne 0x48620a
push esi
call fcn.004855e0
mov esi, eax
call dword [0x4913a4]
cmp eax, 2
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov dword [ecx], eax
pop esi
je 0x4861ef
cmp eax, 3
je 0x4861ef
cmp eax, 0x7b
je 0x4861ef
cmp eax, 0xf
je 0x4861ef
cmp eax, 0x15
je 0x4861ef
cmp eax, 0x57
je 0x4861ef
cmp eax, 0xa1
je 0x4861ef
cmp eax, 0x35
je 0x4861ef
cmp eax, 0x20
jne 0x4861e4
mov eax, dword [0x4b1b60]
mov dword [ecx], eax
mov edx, dword [0x4b1b64]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 9
ret
mov eax, dword [esp + 4]
mov dword [eax], 0
ret
mov eax, dword [0x4b1b60]
mov dword [ecx], eax
mov edx, dword [0x4b1b64]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0x4b1b60]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0x4b1b64]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x486237
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret

Function at 0x486240
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 8
jb 0x48624f
mov eax, dword [eax + 4]
jmp 0x486252
add eax, 4
push eax
call dword [0x49133c]
cmp eax, 0xffffffff
jne 0x4862ea
push esi
call fcn.004855e0
mov esi, eax
call dword [0x4913a4]
cmp eax, 2
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov dword [ecx], eax
pop esi
je 0x4862cf
cmp eax, 3
je 0x4862cf
cmp eax, 0x7b
je 0x4862cf
cmp eax, 0xf
je 0x4862cf
cmp eax, 0x15
je 0x4862cf
cmp eax, 0x57
je 0x4862cf
cmp eax, 0xa1
je 0x4862cf
cmp eax, 0x35
je 0x4862cf
cmp eax, 0x20
jne 0x4862c4
mov eax, dword [0x4b1b60]
mov dword [ecx], eax
mov edx, dword [0x4b1b64]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 9
ret
mov eax, dword [esp + 4]
mov dword [eax], 0
ret
mov eax, dword [0x4b1b60]
mov dword [ecx], eax
mov edx, dword [0x4b1b64]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0x4b1b60]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0x4b1b64]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x486317
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret

Function at 0x486320
Capabilities:
Delete directory

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 8
jb 0x48633b
mov eax, dword [eax + 4]
push eax
call dword [0x49127c]
neg eax
sbb eax, eax
neg eax
ret
add eax, 4
push eax
call dword [0x49127c]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x486350
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 8
jb 0x48636b
mov eax, dword [eax + 4]
push eax
call dword [0x4912bc]
neg eax
sbb eax, eax
neg eax
ret
add eax, 4
push eax
call dword [0x4912bc]
neg eax
sbb eax, eax
neg eax
ret
Function at 0x486380
Capabilities:
Delete directory

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0x10
jb 0x48639b
mov eax, dword [eax + 4]
push eax
call dword [0x49115c]
neg eax
sbb eax, eax
neg eax
ret
add eax, 4
push eax
call dword [0x49115c]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x4863b0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0x10
jb 0x4863cb
mov eax, dword [eax + 4]
push eax
call dword [0x491118]
neg eax
sbb eax, eax
neg eax
ret
add eax, 4
push eax
call dword [0x491118]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x4865c0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x48e78b
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x4ac13c]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ac13c]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x2ac]
mov eax, dword [esp + 0x2a8]
mov edx, dword [esp + 0x2b0]
mov ebp, dword [esp + 0x2a0]
mov ebx, dword [esp + 0x2a4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x2b4]
xor esi, esi
push 0xffffffffffffffff
push esi
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], esi
mov word [esp + 0x30], si
call fcn.0040218f
mov eax, dword [esp + 0x34]
cmp eax, esi
mov dword [esp + 0x298], esi
je 0x486687
lea edi, [eax - 1]
cmp edi, eax
jbe 0x48666c
call fcn.0045c852
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x48667b
lea eax, [esp + 0x24]
cmp word [eax + edi*2], 0x5c
mov edx, 0x499cc8
je 0x48668c
mov edx, 0x499cc0
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x486691
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.00411cd0
mov eax, dword [esp + 0x24]
mov edi, 8
cmp dword [esp + 0x38], edi
jae 0x4866be
lea eax, [esp + 0x24]
lea edx, [esp + 0x3c]
push edx
push eax
call dword [0x491270]
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x486701
mov edi, dword [0x4913a4]
mov dword [ebx], esi
call edi
cmp eax, 2
je 0x4866e4
call edi
mov esi, eax
call fcn.004855e0
cmp dword [esp + 0x38], 8
mov dword [ebp], esi
mov dword [ebp + 4], eax
jb 0x486783
mov eax, dword [esp + 0x24]
push eax
jmp 0x48677b
lea eax, [esp + 0x68]
lea edx, [eax + 2]
jmp 0x486710
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x486710
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00402470
test byte [esp + 0x3c], 0x10
je 0x48674b
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [edx], 3
mov dword [eax], 3
jmp 0x48675f
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ecx], 2
mov dword [edx], 2
cmp dword [esp + 0x38], edi
mov eax, dword [0x4b1b60]
mov dword [ebp], eax
mov ecx, dword [0x4b1b64]
mov dword [ebp + 4], ecx
jb 0x486783
mov edx, dword [esp + 0x24]
push edx
call fcn.00451fd9
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.0045b7a6
add esp, 0x288
ret
Function at 0x4868b0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x48e7cb
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x4ac13c]
xor eax, esp
mov dword [esp + 0x168], eax
push ebp
push esi
push edi
mov eax, dword [0x4ac13c]
xor eax, esp
push eax
lea eax, [esp + 0x17c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x18c]
mov ecx, dword [esp + 0x19c]
mov edx, dword [esp + 0x1a0]
mov edi, dword [esp + 0x190]
mov ebp, dword [esp + 0x198]
push 0xffffffffffffffff
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x198]
push 0
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
call fcn.00402093
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x184], 0
je 0x4869a3
lea esi, [eax - 1]
cmp esi, eax
jbe 0x486966
call fcn.0045c852
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x34], 0x10
mov ecx, dword [esp + 0x20]
jae 0x486975
lea ecx, [esp + 0x20]
cmp byte [ecx + esi], 0x5c
je 0x48699c
lea esi, [eax - 1]
cmp esi, eax
jbe 0x486987
call fcn.0045c852
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x486996
lea eax, [esp + 0x20]
cmp byte [eax + esi], 0x3a
jne 0x4869a3
mov edx, 0x495b6c
jmp 0x4869a8
mov edx, 0x499ccc
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4869b0
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.0040ac30
mov eax, dword [esp + 0x20]
mov esi, 0x10
cmp dword [esp + 0x34], esi
jae 0x4869d9
lea eax, [esp + 0x20]
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [0x491124]
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x486a2a
mov esi, dword [0x4913a4]
mov dword [edi], 0
call esi
cmp eax, 2
je 0x486a0c
call esi
cmp eax, 0x12
je 0x486a0c
call esi
mov esi, eax
jmp 0x486a0e
xor esi, esi
call fcn.004855e0
cmp dword [esp + 0x34], 0x10
mov edi, dword [esp + 0x10]
mov dword [edi], esi
mov dword [edi + 4], eax
jb 0x486aa1
mov edx, dword [esp + 0x20]
push edx
jmp 0x486a99
lea eax, [esp + 0x64]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x486a31
sub eax, edx
push eax
lea eax, [esp + 0x68]
push eax
mov ecx, ebp
call fcn.004022c0
test byte [esp + 0x38], 0x10
je 0x486a66
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ecx], 3
mov dword [edx], 3
jmp 0x486a7a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [eax], 2
mov dword [ecx], 2
cmp dword [esp + 0x34], esi
mov edx, dword [0x4b1b60]
mov edi, dword [esp + 0x10]
mov dword [edi], edx
mov eax, dword [0x4b1b64]
mov dword [edi + 4], eax
jb 0x486aa1
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00451fd9
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x17c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0045b7a6
add esp, 0x178
ret
Function at 0x4010b0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x405018]
xor eax, esp
mov dword [esp + 0x208], eax
push edi
push 0x104
push 0
push esi
call sub.MSVCR80.dll_memset
push 0x104
lea edi, [esi + 0x104]
push 0
push edi
call sub.MSVCR80.dll_memset
add esp, 0x18
mov ecx, esi
call fcn.00401060
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x23
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push esi
lea edx, [esp + 8]
push edx
push str._sQQPetRegistrar_s.ini
mov eax, 0x104
call fcn.00401000
push 0x103
lea eax, [esp + 0x119]
push 0
push eax
mov byte [esp + 0x120], 0
call sub.MSVCR80.dll_memset
lea ecx, [esp + 0x1c]
push ecx
push str._sQQPetRegistrar
mov eax, 0x104
lea edi, [esp + 0x128]
call fcn.00401000
add esp, 0x20
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop edi
jne 0x401184
lea eax, [esp + 0x104]
push eax
call fcn.00401260
mov ecx, dword [esp + 0x208]
xor ecx, esp
mov eax, esi
call fcn.004025a0
add esp, 0x20c
ret

Function at 0x4011a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x405018]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push edi
push 0x103
lea eax, [esp + 0x111]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x118], 0
call sub.MSVCR80.dll_memset
push 0x103
lea ecx, [esp + 0x19]
push 0
push ecx
mov byte [esp + 0x20], 0
call sub.MSVCR80.dll_memset
push 0
push 0x4031f0
mov eax, 0x104
lea edi, [esp + 0x28]
call fcn.00401000
add esp, 0x20
add esi, 0x104
push esi
push 0x104
lea edx, [esp + 0x114]
push edx
mov eax, edi
push eax
push str.Version
push str.Kernel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xa
lea ecx, [esp + 0x110]
push 0
push ecx
call dword [sym.imp.MSVCR80.dll_strtoul]
mov ecx, dword [esp + 0x21c]
add esp, 0xc
pop edi
pop esi
xor ecx, esp
call fcn.004025a0
add esp, 0x20c
ret
Function at 0x401440
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esi + 0x10]
sub esp, 0x10
push ebx
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401482
mov eax, dword [esi + 0x10]
cmp edi, eax
je 0x4014fe
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
mov dword [esi + 0x10], ebx
je 0x401484
push 0x8000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esi + 4], ebx
jmp 0x401484
xor ebx, ebx
push ebp
push 0x40
push 0x1000
mov al, 0x68
push 0xd
mov dword [esi + 8], ebx
push 0
mov dword [esi + 0x10], edi
mov byte [esp + 0x18], 0x58
mov byte [esp + 0x19], al
mov dword [esp + 0x1a], esi
mov byte [esp + 0x1e], 0x50
mov byte [esp + 0x1f], al
mov ebp, 0x4016a0
mov bl, 0xc3
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esi + 4], eax
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], ebp
mov byte [eax + 0xc], bl
mov eax, dword [esi + 4]
push 0xd
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [esi + 4]
push ecx
push 0xfffffffffffffffc
push edi
mov dword [esi + 0xc], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x401800
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xc04
mov eax, dword [0x405018]
xor eax, esp
mov dword [esp + 0xc00], eax
push ebp
push edi
push 0x3ff
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR80.dll_memset
push str.kernel.ini
push esi
push str._s_s
mov eax, 0x400
lea edi, [esp + 0x20]
call fcn.00401000
add esp, 0x18
mov ecx, edi
push ecx
push 0
push str.version
push str.kernel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x3ff
lea edx, [esp + 0x40d]
push 0
push edx
mov ebp, eax
mov byte [esp + 0x414], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
mov eax, edi
push eax
push 0x400
lea ecx, [esp + 0x410]
push ecx
push str.QQPenguin
push str.productname
push str.kernel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x3ff
lea edx, [esp + 0x80d]
push 0
push edx
mov byte [esp + 0x814], 0
call sub.MSVCR80.dll_memset
lea eax, [esp + 0x414]
push eax
push esi
push str._s_s.exe
mov eax, 0x400
lea edi, [esp + 0x820]
call fcn.00401000
mov ecx, edi
push 0
push ecx
call dword [sym.imp.MSVCR80.dll__access]
add esp, 0x20
test eax, eax
je 0x401909
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xc00]
xor ecx, esp
call fcn.004025a0
add esp, 0xc04
ret
mov ecx, dword [esp + 0xc08]
pop edi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.004025a0
add esp, 0xc04
ret
Function at 0x401cb0
Capabilities:
Create process on windows
Read .ini file

Disassembly:
mov eax, 0x1970
call fcn.00402f00
mov eax, dword [0x405018]
xor eax, esp
mov dword [esp + 0x196c], eax
mov eax, dword [esp + 0x1978]
push ebx
push ebp
mov ebp, dword [esp + 0x197c]
push esi
push edi
xor ebx, ebx
push 0x7ff
mov esi, ecx
lea ecx, [esp + 0x97d]
push ebx
push ecx
mov dword [esp + 0x20], eax
mov byte [esp + 0x984], bl
call sub.MSVCR80.dll_memset
push 0x7ff
lea edx, [esp + 0x1189]
push ebx
push edx
mov byte [esp + 0x1190], bl
call sub.MSVCR80.dll_memset
push 0x7ff
lea eax, [esp + 0x195]
push ebx
push eax
mov byte [esp + 0x19c], bl
call sub.MSVCR80.dll_memset
push str.kernel.ini
push esi
push str._s_s
mov eax, 0x800
lea edi, [esp + 0x11a8]
call fcn.00401000
add esp, 0x30
mov ecx, edi
push ecx
push 0x800
lea edx, [esp + 0x980]
push edx
push 0x4031bc
push str.productname
push str.kernel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x978], bl
je 0x401e6e
cmp ebp, ebx
lea edi, [esp + 0x178]
je 0x401e4e
push ebp
lea eax, [esp + 0x97c]
push eax
push esi
push str.__s_s.exe___s
mov eax, 0x800
call fcn.00401000
add esp, 0x10
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
lea ecx, [esp + 0x198]
push ecx
push ebx
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x6c], ebx
mov word [esp + 0x72], bx
mov dword [esp + 0x74], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, ebx
jne 0x401e31
push 0x103
lea edx, [esp + 0x75]
push ebx
push edx
mov byte [esp + 0x7c], bl
call sub.MSVCR80.dll_memset
mov ebp, dword [esp + 0x20]
push ebp
push 0x403310
mov eax, 0x104
lea edi, [esp + 0x84]
call fcn.00401000
add esp, 0x14
push ebx
push ebp
mov eax, edi
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, esi
mov ecx, dword [esp + 0x197c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004025a0
add esp, 0x1970
ret 0xc
lea ecx, [esp + 0x978]
push ecx
push esi
push str.__s_s.exe_
mov eax, 0x800
call fcn.00401000
add esp, 0xc
jmp 0x401dac
xor eax, eax
jmp 0x401e33

Function at 0x401e80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x404
mov eax, dword [0x405018]
xor eax, esp
mov dword [esp + 0x400], eax
push edi
mov edi, ecx
test edi, edi
je 0x401eff
test esi, esi
je 0x401eff
push ebx
push 0x3ff
lea eax, [esp + 0xd]
push 0
push eax
mov ebx, 1
mov byte [esp + 0x14], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebx
push 0x23
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push esi
lea edx, [esp + 0xc]
push edx
push str._sQQPet_s
mov eax, 0x400
call fcn.00401000
add esp, 0xc
mov eax, ebx
pop ebx
pop edi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.004025a0
add esp, 0x404
ret
mov ecx, dword [esp + 0x404]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004025a0
add esp, 0x404
ret