joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405380
Capabilities:
Read .ini file

Disassembly:
push ecx
mov eax, dword [esp + 8]
test eax, eax
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x10], ebx
je 0x405439
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x405439
push 0x201
mov esi, 0x200
call fcn.00456408
mov edi, eax
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
jne 0x4053c4
mov eax, 0x483e6c
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ecx
push 0x200
push edi
push eax
push ebp
push edx
call ebx
inc eax
cmp eax, 0x200
jb 0x40542f
jmp 0x4053f0
push edi
add esi, 0x200
call fcn.0045640d
lea eax, [esi + 1]
push eax
call fcn.00456408
mov edi, eax
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
jne 0x405417
mov eax, 0x483e6c
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
push edx
push esi
push edi
push eax
mov eax, dword [esp + 0x28]
push ebp
push eax
call ebx
inc eax
cmp eax, esi
jae 0x4053f0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x405456
push 1
call fcn.00456408
add esp, 4
pop edi
pop esi
pop ebp
mov byte [eax], 0
pop ebx
pop ecx
ret 0xc
mov eax, edi
lea edx, [eax + 1]
jmp 0x405460
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405460
sub eax, edx
inc eax
push eax
call fcn.00456408
mov esi, eax
add esp, 4
mov ecx, edi
sub esi, edi
lea esp, [esp]
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x405480
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x407630
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x4a9e6c]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push esi
mov dword [esp + 0x110], eax
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4076a4
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x120]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
call fcn.004368a4
add esp, 0x110
ret 0xc

Function at 0x408570
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x47d868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x80]
test eax, eax
jne 0x408676
push esi
call fcn.00456579
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 8], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x14], 0
jge 0x4085db
push 0x104
lea ecx, [esp + 0xc]
call fcn.00404140
mov esi, dword [esp + 8]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test esi, esi
jne 0x4085ef
xor eax, eax
jmp 0x408603
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4085f4
sub eax, edx
js 0x408686
cmp eax, dword [esi - 8]
jg 0x408686
push edi
push 0xd
mov dword [esi - 0xc], eax
push 0x483e58
lea ecx, [esp + 0x14]
mov byte [eax + esi], 0
call fcn.00404a90
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40864b
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x40864b
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebx + 0x80], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
jg 0x408675
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
mov ecx, dword [esp + 8]
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0x80070057
call fcn.004013c0
int3

Function at 0x408e80
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
xor ecx, ecx
test ebp, ebp
jle 0x408eae
mov edi, edi
xor edx, edx
mov dh, byte [ecx + edi]
xor eax, eax
mov al, byte [ecx + edi + 1]
add ecx, 2
movzx edx, dx
and eax, 0xff
xor eax, edx
add esi, eax
cmp ecx, ebp
jl 0x408e90
mov eax, esi
shr eax, 0x10
test eax, eax
je 0x408ed1
jmp 0x408ec0
and esi, 0xffff
add esi, eax
mov eax, esi
shr eax, 0x10
test eax, eax
jne 0x408ec0
mov eax, esi
pop esi
not eax
pop ebp
ret
Function at 0x408ee0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
xor eax, eax
test ebp, ebp
jle 0x408f0f
mov edi, edi
xor edx, edx
mov dh, byte [eax + edi]
xor ecx, ecx
mov cl, byte [eax + edi + 1]
add eax, 2
movzx edx, dx
and ecx, 0xff
xor ecx, edx
add esi, ecx
cmp eax, ebp
jl 0x408ef0
mov eax, esi
shr eax, 0x10
test eax, eax
je 0x408f31
jmp 0x408f20
and esi, 0xffff
add esi, eax
mov eax, esi
shr eax, 0x10
test eax, eax
jne 0x408f20
xor eax, eax
cmp si, 0xffff
pop esi
sete al
pop ebp
ret

Function at 0x408f40
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x1a4
mov eax, dword [0x4a9e6c]
mov dword [esp + 0x1a0], eax
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x408f7c
xor al, al
mov ecx, dword [esp + 0x1a0]
call fcn.004368a4
add esp, 0x1a4
ret
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx edx, word [esp + 0xe]
push edx
call fcn.0043796c
mov ecx, dword [esp + 0x1a4]
add esp, 4
mov al, 1
call fcn.004368a4
add esp, 0x1a4
ret

Function at 0x40a880
Capabilities:
Get routing table

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
lea eax, [esp + 0xc]
push eax
push edi
xor esi, esi
mov dword [esp + 0x14], edi
call sub.iphlpapi.dll_GetIpForwardTable
cmp eax, 0x7a
jne 0x40a8d1
mov ecx, dword [esp + 8]
push ecx
call fcn.00437c7d
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x40a8c5
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40a8f6
push edi
lea eax, [esp + 0xc]
push eax
push esi
call sub.iphlpapi.dll_GetIpForwardTable
cmp eax, edi
je 0x40a906
cmp esi, edi
je 0x40a8e2
push esi
call fcn.00437b65
add esp, 4
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a900
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
xor eax, eax
pop esi
pop ecx
ret
cmp dword [esi], edi
push ebx
push ebp
mov ebp, dword [esp + 0x18]
jbe 0x40a928
lea ebx, [esi + 4]
push ebp
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp dword [ebx], eax
je 0x40a956
mov eax, dword [esi]
inc edi
add ebx, 0x38
cmp edi, eax
jb 0x40a913
push esi
call fcn.00437b65
lea eax, [ebp - 0x10]
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a94b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
pop ecx
ret
imul edi, edi, 0x38
lea eax, [edi + esi + 4]
push eax
call sub.iphlpapi.dll_DeleteIpForwardEntry
test eax, eax
je 0x40a928
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a981
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
pop ecx
ret
Function at 0x40b160
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47d938
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00406c50
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.004057a0
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40b1f2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40c0a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47da68
push eax
mov dword fs:[0], esp
sub esp, 0x10
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareGreenGreenSettings
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c174
push esi
push edi
push 0x100
call fcn.00456408
mov esi, eax
add esp, 4
xor eax, eax
mov ecx, 0x40
mov edi, esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push esi
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x24], 0x100
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c169
push esi
lea ecx, [esp + 0x18]
call fcn.0040bc50
mov ecx, dword [esp + 0x2c]
push eax
mov dword [esp + 0x24], 0
call fcn.00406d40
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c169
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
call fcn.0045640d
add esp, 4
pop edi
pop esi
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x40c190
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x47da88
mov eax, dword fs:[0]
push eax
mov eax, 0x1070
mov dword fs:[0], esp
call fcn.00437870
mov eax, dword [0x4a9e6c]
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [esp + 0x1088]
mov dword [esp + 0x1074], eax
mov dword [esp + 0xc], ebx
push ebx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1090], ebx
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40c240
push 0x483e6c
mov ecx, ebp
call fcn.00406f90
mov eax, dword [esp + 0x108c]
add eax, 0xfffffff0
mov dword [esp + 0x1080], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c361
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40c361
push esi
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x1090]
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
mov word [esp + 0x54], bx
mov dword [esp + 0x50], 0x101
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0xfff
or eax, ecx
jge 0x40c2a2
push 0xfff
lea ecx, [esp + 0x1094]
call fcn.00404140
mov esi, dword [esp + 0x1090]
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40c2e9
push 0x483e6c
mov ecx, ebp
call fcn.00406f90
lea eax, [esi - 0x10]
mov dword [esp + 0x1084], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40c356
mov eax, dword [esp + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x7c]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x40c310
mov eax, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x28]
push ecx
push 0xfff
lea edx, [esp + 0x88]
push edx
push eax
call edi
test eax, eax
jne 0x40c310
lea ecx, [esp + 0x7c]
push ecx
mov ecx, ebp
call fcn.00406f90
lea eax, [esi - 0x10]
mov dword [esp + 0x1088], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
pop edi
test ecx, ecx
jg 0x40c360
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
mov ecx, dword [esp + 0x1078]
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1070]
pop ebx
call fcn.004368a4
add esp, 0x107c
ret
Function at 0x40c7a0
Capabilities:
Get local ipv4 addresses

Disassembly:
push 0xffffffffffffffff
push 0x47dad0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
xor ebx, ebx
push esi
mov dword [esp + 0x14], ebx
call fcn.00456579
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
push 0x280
mov dword [esp + 0x24], ebx
call fcn.00437c7d
mov ebp, eax
add esp, 4
lea eax, [esp + 0x10]
push eax
push ebp
mov dword [esp + 0x18], 0x280
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40c814
push ebp
call fcn.00437b65
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00437c7d
add esp, 8
mov ebp, eax
lea edx, [esp + 0x10]
push edx
push ebp
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, ebx
jne 0x40c94c
cmp ebp, ebx
push edi
mov edi, ebp
je 0x40c910
call fcn.00456579
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [edi + 0x10c]
cmp ecx, ebx
mov byte [esp + 0x24], 1
jne 0x40c858
xor eax, eax
jmp 0x40c869
mov eax, ecx
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40c860
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00406bb0
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], ebx
jl 0x40c896
push str.TAP_Win
push esi
call fcn.00436efd
add esp, 8
cmp eax, ebx
je 0x40c896
sub eax, esi
cmp eax, 0xffffffff
jne 0x40c8c0
mov edi, dword [edi]
lea eax, [esi - 0x10]
mov byte [esp + 0x24], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c8b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp edi, ebx
jne 0x40c832
jmp 0x40c910
lea ecx, [esp + 0x10]
call fcn.004064d0
add edi, 0x1b0
push edi
lea eax, [esp + 0x14]
push 0x484b78
push eax
call fcn.004081c0
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.0040b210
mov ecx, eax
call fcn.0040acc0
lea eax, [esi - 0x10]
mov byte [esp + 0x24], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c910
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ebp
call fcn.00437b65
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.004057a0
mov esi, dword [esp + 0x34]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 8
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
jmp 0x40c976
mov esi, dword [esp + 0x28]
push 0x483e6c
mov ecx, esi
call fcn.00406f90
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c982
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x40d230
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x47dae8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
movzx ecx, word [esp + 0x14]
push eax
push ecx
push 0
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40d272
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40d28f
push 0x483e6c
mov ecx, edi
call fcn.00406f90
mov eax, edi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
call fcn.00456579
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
push esi
lea eax, [esp + 0x1c]
push 0x484b78
push eax
mov dword [esp + 0x1c], 0
call fcn.004081c0
mov esi, dword [esp + 0x24]
add esi, 0xfffffff0
push esi
call fcn.004057a0
add eax, 0x10
add esp, 0x10
mov dword [edi], eax
mov dword [esp + 0x10], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d2f8
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov ecx, dword [esp + 8]
pop esi
mov eax, edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4120e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x138
mov eax, dword [0x4a9e6c]
mov dword [esp + 0x134], eax
mov eax, dword [0x4aaea4]
test eax, eax
jne 0x4121e7
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftPlus_ThemesCurrent
push SysFreeString
mov dword [0x4aaea4], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4121e7
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 4]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0xc]
push eax
push 0
push 0
push ecx
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4121dd
mov edx, dword [str.Windows_Classic.theme]
mov eax, dword [0x4855f8]
mov ecx, dword [0x4855fc]
mov dword [esp + 0xc], edx
mov edx, dword [0x485600]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], eax
mov eax, dword [0x485604]
mov dword [esp + 0x1c], ecx
mov cx, word [0x485608]
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], cx
call edi
mov esi, eax
lea eax, [esp + 0x14]
push eax
call edi
cmp esi, eax
jl 0x4121db
lea ecx, [esp + 0x14]
push ecx
mov edx, 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 0x4121db
mov dword [0x4aaea0], 1
pop edi
pop esi
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x134]
mov eax, dword [0x4aaea0]
call fcn.004368a4
add esp, 0x138
ret

Function at 0x4133f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47e203
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 + 4], edi
lea ebx, [esi + 8]
mov ecx, ebx
mov dword [esp + 0x18], edi
mov dword [esi], 0x4856d0
call fcn.0044feea
mov dword [ebx], method.CPtrArray.virtual_0
lea ebx, [esi + 0x1c]
mov ecx, ebx
mov byte [esp + 0x18], 1
call fcn.0044feea
mov dword [ebx], method.CPtrArray.virtual_0
or eax, 0xffffffff
push 0x4aae50
push edi
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
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x413e20
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x47e298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
xor eax, eax
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], vtable.CPen.0
mov ecx, dword [esp + 0x3c]
push ecx
push eax
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x14]
call fcn.0045cc7b
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.0045cd89
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
lea eax, [edi + 2]
push eax
push ebx
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.0045c5e9
lea eax, [edi + 5]
push eax
push ebx
mov ecx, esi
call fcn.0045c036
lea ebp, [edi + 3]
push ebp
lea eax, [ebx + 1]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.0045c5e9
lea eax, [edi + 6]
push eax
lea eax, [ebx + 1]
push eax
mov ecx, esi
call fcn.0045c036
lea eax, [edi + 4]
push eax
lea ecx, [ebx + 2]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0045c5e9
lea eax, [edi + 7]
push eax
lea eax, [ebx + 2]
push eax
mov ecx, esi
call fcn.0045c036
push ebp
lea eax, [ebx + 3]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.0045c5e9
lea eax, [edi + 6]
push eax
lea eax, [ebx + 3]
push eax
mov ecx, esi
call fcn.0045c036
lea eax, [edi + 2]
lea ecx, [ebx + 4]
push eax
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0045c5e9
lea eax, [edi + 5]
push eax
lea eax, [ebx + 4]
push eax
mov ecx, esi
call fcn.0045c036
lea ecx, [edi + 1]
push ecx
lea eax, [ebx + 5]
push eax
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0045c5e9
lea eax, [edi + 4]
push eax
lea eax, [ebx + 5]
push eax
mov ecx, esi
call fcn.0045c036
push edi
add ebx, 6
push ebx
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.0045c5e9
push ebp
push ebx
mov ecx, esi
call fcn.0045c036
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, esi
call fcn.0045cd89
lea ecx, [esp + 0x10]
call fcn.0045ccd2
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x10], vtable.CGdiObject.0
call fcn.0045ccd2
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10