joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461f54
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
sub edi, dword [ebx + 0x6c]
sub edi, dword [ebx + 0x64]
test edi, edi
jne 0x461f7e
cmp dword [ebx + 0x64], 0
jne 0x461f7e
cmp dword [ebx + 0x6c], 0
jne 0x461f7e
mov edi, esi
jmp 0x462005
cmp edi, 0xffffffff
jne 0x461f86
dec edi
jmp 0x462005
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x462005
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00460cc8
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x461fd3
mov cx, word [esp]
sub cx, si
jmp 0x461fd5
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x461fbc
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x461ffb
mov cx, word [esp]
sub cx, si
jmp 0x461ffd
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x461fe4
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x462062
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.00461cf0
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x46204d
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x462062
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x461f5e
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x467598
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, ecx
mov ebp, edx
mov ebx, eax
mov eax, esi
mov edx, ebx
call fcn.00404618
mov eax, dword [esi]
call fcn.00404884
mov edi, eax
test edi, edi
jle 0x4675d4
mov ebx, 1
mov eax, esi
call fcn.00404adc
mov edx, ebp
mov ecx, dword [esi]
xor dl, byte [ecx + ebx - 1]
mov byte [eax + ebx - 1], dl
inc ebx
dec edi
jne 0x4675bd
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x46956c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x41587c]
call fcn.00404f60
xor eax, eax
push ebp
push 0x4696b0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x47d0dc], 0
jne 0x4695bf
mov ecx, dword [0x47d23c]
mov dl, 1
mov eax, dword [0x407984]
call fcn.0040c864
call fcn.00403f54
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004031b8
mov eax, ebx
call fcn.00404e2c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4696c0
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405fa0
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404e3c
test eax, eax
jle 0x469657
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x469650
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.0040484c
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404834
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408814
test eax, eax
jne 0x469650
mov ebx, 0x15
jmp 0x46965c
mov ebx, 0x10
jmp 0x46965c
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x47d0dc]
call fcn.004694c4
mov eax, dword [ebp - 8]
call fcn.004694c4
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405fb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4696b7
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004045e8
lea eax, [ebp - 0x10]
mov edx, dword [0x41587c]
call fcn.00405030
ret
Function at 0x470f3c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x471122
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 8]
mov edx, 0x471138
mov eax, 0x80000002
call fcn.0045d230
cmp dword [ebp - 8], 0
jne 0x470f84
lea ecx, [ebp - 8]
mov edx, 0x471138
mov eax, 0x80000001
call fcn.0045d230
cmp dword [ebp - 8], 0
je 0x470fb4
push 0x471164
push dword [ebp - 8]
push 0x471190
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404944
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov eax, 0x80000002
call fcn.0045d230
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x470fc9
mov edx, dword [ebp - 4]
mov eax, 0x4711ac
call fcn.0045d390
lea ecx, [ebp - 8]
mov edx, 0x104
xor eax, eax
call fcn.00404c74
mov eax, dword [ebp - 8]
call fcn.00404884
push eax
mov eax, dword [ebp - 8]
call fcn.00404a84
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404a84
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00408884
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x4710ff
lea ecx, [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dl, 0x22
call fcn.0045d698
cmp dword [ebp - 8], 0
je 0x4710ff
mov eax, dword [ebp - 4]
call fcn.004045c4
mov dl, 1
mov eax, dword [0x416890]
call fcn.00403784
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4710e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0041a2d0
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4710ca
inc ebx
xor esi, esi
lea ecx, [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 8]
mov eax, 0x4711bc
call fcn.0040d520
test eax, eax
jg 0x4710c6
mov edx, dword [ebp - 8]
mov eax, 0x4711c8
call fcn.0040d520
test eax, eax
jg 0x4710c6
mov edx, dword [ebp - 8]
mov eax, 0x4711d4
call fcn.0040d520
test eax, eax
jg 0x4710c6
mov eax, dword [ebp - 4]
push dword [eax]
push dword [ebp - 8]
push 0x4711e0
mov eax, dword [ebp - 4]
mov edx, 3
call fcn.00404944
inc esi
dec ebx
jne 0x47106c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4710e7
mov eax, dword [ebp - 0xc]
call fcn.004037b4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x471129
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004045e8
lea eax, [ebp - 8]
call fcn.004045c4
ret
Function at 0x471410
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4714c8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x34], 0
je 0x4714ad
cmp dword [ebx + 0x38], 0
jne 0x471478
push 5
push 0
push 0
mov eax, dword [ebx + 0x34]
call fcn.00404a84
push eax
push 0x4714d4
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
jae 0x4714ad
push 5
lea eax, [ebp - 4]
mov ecx, dword [ebx + 0x34]
mov edx, 0x4714e4
call fcn.004048d0
mov eax, dword [ebp - 4]
call fcn.00404a84
push eax
call sub.kernel32.dll_WinExec
jmp 0x4714ad
push 5
lea ecx, [ebp - 0xc]
mov dl, 0x22
mov eax, dword [ebx + 0x38]
call fcn.0045d644
push dword [ebp - 0xc]
push 0x4714f8
push dword [ebx + 0x34]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404944
mov eax, dword [ebp - 8]
call fcn.00404a84
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4714cf
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004045e8
ret

Function at 0x4714fc
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
cmp dword [esi + 0x34], 0
je 0x471538
push 5
push 0
push 0
mov eax, dword [esi + 0x34]
call fcn.00404a84
push eax
push 0x47153c
push 0
call sub.shell32.dll_ShellExecuteA
test bl, bl
je 0x471538
cmp eax, 2
je 0x471538
cmp eax, 0x20
jg 0x471538
mov eax, esi
call fcn.00471410
pop esi
pop ebx
ret
Function at 0x4736a8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x473840
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0041ad1c
mov ebx, eax
mov eax, dword [0x47d1f8]
call fcn.00404884
mov edx, eax
lea eax, [ebp - 0x1c]
call fcn.00404c10
mov eax, dword [ebp - 0x1c]
call fcn.00404884
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404a84
mov edx, eax
mov eax, dword [ebp - 0xc]
pop ecx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x1c]
mov edx, dword [0x47d1f8]
call fcn.004049d0
jne 0x473806
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00467364
mov eax, dword [ebp - 0xc]
call fcn.00467320
mov edx, dword [ebp - 4]
mov byte [edx + 0x44], al
mov eax, dword [ebp - 0xc]
call fcn.00467334
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x44], 0
je 0x4737fd
cmp dword [ebp - 8], 0
jle 0x4737fd
mov eax, dword [ebp - 8]
call fcn.00402ac0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4737f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0x18]
push eax
push 0
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.00460f1c
xor eax, eax
push ebp
push 0x4737d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0041ada0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.004073a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4737e0
mov eax, dword [ebp - 0x14]
call fcn.00402af0
ret
push ebp
call fcn.00473664
pop ecx
jmp 0x473825
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [ebp - 0xc]
call fcn.0041ad3c
mov eax, dword [ebp - 0xc]
call fcn.00467334
mov dword [ebp - 8], eax
push ebp
call fcn.00473664
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473847
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004045e8
ret
Function at 0x476870
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a74
xor eax, eax
push ebp
push 0x47691b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.004092c4
test al, al
jne 0x4768ad
mov eax, dword [ebp - 4]
call fcn.004092d4
test al, al
je 0x476905
lea eax, [ebp - 4]
mov dl, 1
call fcn.00476768
lea eax, [ebp - 0x23]
mov dl, byte [ebp - 5]
call fcn.004767ac
test byte [ebp - 5], 1
je 0x4768d5
lea eax, [ebp - 4]
mov edx, 0x476934
call fcn.0040488c
mov dword [ebp - 0x1f], 3
mov eax, dword [ebp - 4]
call fcn.00404a84
mov dword [ebp - 0x1b], eax
xor eax, eax
mov dword [ebp - 0x17], eax
lea eax, [ebp - 0x23]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
mov dl, byte [ebp - 5]
mov eax, dword [ebp - 4]
call fcn.004767f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476922
lea eax, [ebp - 4]
call fcn.004045c4
ret
Function at 0x401390
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x410f13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x413740
mov dword [esi + 4], edi
lea ebx, [esi + 8]
mov dword [esp + 0x18], edi
mov ecx, ebx
call fcn.0041054c
mov dword [ebx], 0x41372c
lea ebx, [esi + 0x1c]
mov byte [esp + 0x18], 1
mov ecx, ebx
call fcn.0041054c
or eax, 0xffffffff
push 0x417cd0
mov dword [ebx], 0x4136f0
push edi
mov dword [esi], 0x413704
mov dword [esi + 0x54], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x30], 0x10
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x38], 0xc0c0c0
mov dword [esi + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x58], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x403580
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41112b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4137d8
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x403610
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x4035d7
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x403601
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x403616
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x403616
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x413770
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x41375c
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x404d90
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4113f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x413798
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
push ecx
push eax
push eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_2
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
mov ecx, esi
lea eax, [edi + 2]
push eax
lea eax, [esp + 0x1c]
push ebx
push eax
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 5]
mov ecx, esi
push eax
push ebx
call sub.MFC42.DLL_CDC::LineTo
lea ebp, [edi + 3]
lea eax, [ebx + 1]
push ebp
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 1]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [edi + 4]
lea ecx, [ebx + 2]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 7]
mov ecx, esi
push eax
lea eax, [ebx + 2]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [ebx + 3]
push ebp
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 3]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [edi + 2]
lea ecx, [ebx + 4]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 5]
mov ecx, esi
push eax
lea eax, [ebx + 4]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea ecx, [edi + 1]
lea eax, [ebx + 5]
push ecx
lea edx, [esp + 0x1c]
push eax
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 4]
mov ecx, esi
push eax
lea eax, [ebx + 5]
push eax
call sub.MFC42.DLL_CDC::LineTo
add ebx, 6
push edi
lea eax, [esp + 0x1c]
push ebx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
push ebp
push ebx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_2
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x10], 0x413770
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x405e90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x411520
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
mov eax, esi
mov ebp, ecx
push edi
xor edi, edi
mov ecx, dword [eax]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 0x4137ac
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], edi
call fcn.004014f0
test eax, eax
je 0x405eee
push 0xf
jmp 0x405ef0
push 4
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
call ebx
cmp dword [esp + 0x40], edi
jne 0x405f11
push 0x3fe33333
push 0x33333333
push eax
call fcn.00402460
add esp, 0xc
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
call fcn.004014e0
test eax, eax
je 0x405f69
mov eax, dword [edi + 4]
push 0xf
lea edx, [esp + 0x1c]
push 2
push edx
push eax
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [esp + 0x44]
push 7
test eax, eax
jne 0x405f8d
call ebx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
add ecx, 4
push eax
add edx, 4
push ecx
push edx
push edi
mov ecx, ebp
call fcn.00404d90
jmp 0x405fa5
call ebx
mov ecx, dword [esi]
push eax
mov eax, dword [esi + 4]
add ecx, 5
add eax, 4
push eax
push ecx
push edi
mov ecx, ebp
call fcn.00404c70
mov dword [esp + 0x10], 0x413770
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10

Function at 0x406540
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
and esi, 0xffff
push 2
push esi
call sub.MFC42.DLL_AfxFindResourceHandle
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push 2
push esi
push ebx
call ebp
mov edi, eax
test edi, edi
jne 0x40657d
xor ebx, ebx
push 2
push esi
push ebx
call ebp
mov edi, eax
test edi, edi
jne 0x40657d
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40658e
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x40659e
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call fcn.00406500
add esp, 4
cmp ax, 0x10
je 0x4065b4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push edi
push ebx
call sub.MFC42.DLL_AfxLoadSysColorBitmap
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x406660
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x417cf0]
sub esp, 0x134
test eax, eax
jne 0x406735
lea eax, [esp]
mov dword [0x417cf0], 1
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftPlus_ThemesCurrent
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406735
push esi
lea ecx, [esp + 0xc]
push edi
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ecx
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406728
mov ecx, 5
mov esi, str.Windows_Classic.theme
lea edi, [esp + 0x14]
lea edx, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
call edi
mov esi, eax
lea eax, [esp + 0x14]
push eax
call edi
cmp esi, eax
jl 0x406728
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
call edi
sub esi, eax
lea eax, [esp + esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x406728
mov dword [0x417cec], 1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [0x417cec]
add esp, 0x134
ret
Function at 0x408000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x411768
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov eax, dword [esi + 0x20]
push eax
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CClientDC::CClientDC
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi + 0x20]
push edx
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWnd::ScreenToClient
mov eax, dword [esi + 0x150]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x408136
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x14c]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, edi
push eax
push ecx
push edx
lea edi, [esi + 0x15c]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
test edi, edi
je 0x4080e2
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x150]
push edi
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esi + 0x164], eax
mov eax, dword [esp + 0xc]
sub ecx, edx
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
sub edx, eax
lea eax, [esp + 0x2c]
push 0xcc0020
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
push edi
push eax
push ecx
mov ecx, dword [esi + 0x150]
push edx
push 0
push 0
push ecx
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0x14c]
sub ecx, edi
test edx, edx
je 0x408157
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push 0
mov eax, dword [edx + 4]
push 0
push eax
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.004108ac
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4