joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e522
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push edi
push dword [esi + 0x144]
lea ebx, [esi + 0x78]
push dword [esi + 0x20]
lea eax, [esi + 0x1f0]
push ebx
push eax
mov dword [ebp - 8], 1
call fcn.0042e1fa
mov edi, eax
test edi, edi
jns 0x41e55f
push 0x43bb08
jmp 0x41e6df
lea eax, [esi + 0xe8]
push ebx
push eax
call fcn.004332f4
mov edi, eax
test edi, edi
jns 0x41e57c
push 0x43bad4
jmp 0x41e6df
cmp dword [esi + 0x268], 1
jne 0x41e5d0
lea eax, [ebp - 4]
push eax
push 1
lea ebx, [esi + 0x274]
push ebx
call fcn.0041f5c0
mov edi, eax
test edi, edi
jns 0x41e5a7
push 0x43ba96
jmp 0x41e6df
push ebx
call fcn.0041f7dc
mov edi, eax
test edi, edi
jns 0x41e5bd
push 0x43ba68
jmp 0x41e6df
cmp dword [ebp - 4], 0
je 0x41e5d0
push dword [ebp - 4]
call dword [0x401270]
inc eax
invalid
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0xe4]
push eax
push dword [esi + 0x144]
lea eax, [esi + 0x9c]
push dword [esi + 0x20]
lea ebx, [esi + 0x78]
push eax
push ebx
call fcn.004325c4
mov edi, eax
xor eax, eax
cmp edi, eax
jge 0x41e606
push 0x43ba46
jmp 0x41e6df
cmp dword [ebp - 8], eax
jne 0x41e61e
push 0xe0000035
push 1
call fcn.0041e1ca
xor edi, edi
jmp 0x41e6e5
cmp dword [esi + 0xa8], eax
je 0x41e639
cmp dword [esi + 0x20], 2
jle 0x41e639
lea ecx, [esi + 0x34]
push ecx
push eax
push dword [ebp + 8]
call fcn.004315ac
push esi
push dword [ebp + 8]
call fcn.0042d90a
mov edi, eax
test edi, edi
jns 0x41e652
push 0x43b7c4
jmp 0x41e6df
push esi
call fcn.00428f62
mov edi, eax
test edi, edi
jns 0x41e665
push 0x43ba28
jmp 0x41e6df
push ebx
push dword [esi + 0x1c]
call fcn.0042f450
mov edi, eax
test edi, edi
jns 0x41e67b
push 0x43ba08
jmp 0x41e6df
push ebx
lea eax, [esi + 0xe8]
push eax
call fcn.00423c14
mov edi, eax
test edi, edi
jns 0x41e695
push 0x43b9e2
jmp 0x41e6df
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x41e6bd
cmp word [eax], 0
je 0x41e6bd
push 0
push eax
push 0x402658
push ebx
call fcn.0042789e
mov edi, eax
test edi, edi
jns 0x41e6bd
push 0x43b994
jmp 0x41e6df
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
mov eax, esi
call fcn.0041e3cc
mov edi, eax
test edi, edi
js 0x41e6da
cmp dword [ebp + 8], 0
jne 0x41e6bd
jmp 0x41e6e7
push 0x43b97e
push edi
call 0x44334a
pop ecx
pop ecx
push esi
call fcn.0042d632
lea eax, [esi + 0x78]
push eax
call fcn.004286a6
cmp dword [esi + 0x284], 0xffffffff
je 0x41e722
cmp dword [esi + 0x268], 1
jne 0x41e70d
mov eax, dword [esi + 0x18]
jmp 0x41e70f
xor eax, eax
push eax
push dword [esi + 0xe4]
lea eax, [esi + 0x274]
push eax
call fcn.0041faca
push dword [esi + 0x34]
call dword [fcn.00401358]
test eax, eax
je 0x41e73e
push 0
push 0
push 0x10
push dword [esi + 0x34]
call dword [fcn.0040135c]
cmp dword [ebp - 4], 0
je 0x41e74d
push dword [ebp - 4]
call dword [0x401270]
mov eax, edi
pop edi
pop ebx
leave
ret 4
Function at 0x4013e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4013f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40140d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40142e
cmp esi, eax
jae 0x401407
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401420
cmp esi, eax
jae 0x401407
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4051f0
Capabilities:
Read .ini file

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
test eax, eax
push ebx
mov ebx, ecx
push ebp
mov dword [esp + 8], ebx
je 0x405204
mov byte [eax], 0
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x405214
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
test eax, eax
jne 0x40528c
push esi
push edi
push 0x201
mov esi, 0x200
call fcn.0045d06c
add esp, 4
mov edi, eax
mov eax, dword [ebx + 4]
push eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov ebx, eax
lea ecx, [ebx + 2]
cmp ecx, esi
jb 0x405278
push edi
add esi, 0x200
call fcn.0045d071
lea edx, [esi + 1]
push edx
call fcn.0045d06c
mov edi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
add esp, 8
push ecx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov ebx, eax
lea edx, [ebx + 2]
cmp edx, esi
jae 0x405244
push edi
call fcn.0045d071
add esp, 4
pop edi
pop esi
pop ebp
lea eax, [ebx + 2]
pop ebx
pop ecx
ret 0xc
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x18]
push ecx
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x4052b0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
push ebp
mov ebp, ecx
jne 0x405332
push ebx
push esi
push edi
push 0x201
mov esi, 0x200
call fcn.0045d06c
add esp, 4
mov edi, eax
mov eax, dword [ebp + 4]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov ebx, eax
lea ecx, [ebx + 2]
cmp ecx, esi
jb 0x40531f
jmp 0x4052f0
push edi
add esi, 0x200
call fcn.0045d071
lea edx, [esi + 1]
push edx
call fcn.0045d06c
add esp, 8
mov edi, eax
mov eax, dword [ebp + 4]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov ebx, eax
lea ecx, [ebx + 2]
cmp ecx, esi
jae 0x4052f0
push edi
call fcn.0045d071
add esp, 4
pop edi
pop esi
lea eax, [ebx + 2]
pop ebx
pop ebp
ret 8
mov edx, dword [ebp + 4]
mov ecx, dword [esp + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
pop ebp
ret 8
Function at 0x405390
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 0x405449
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x405449
push 0x201
mov esi, 0x200
call fcn.0045d06c
mov edi, eax
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
jne 0x4053d4
mov eax, 0x492e6c
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 0x40543f
jmp 0x405400
push edi
add esi, 0x200
call fcn.0045d071
lea eax, [esi + 1]
push eax
call fcn.0045d06c
mov edi, eax
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
jne 0x405427
mov eax, 0x492e6c
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 0x405400
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x405466
push 1
call fcn.0045d06c
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 0x405470
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405470
sub eax, edx
inc eax
push eax
call fcn.0045d06c
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 0x405490
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x407ac0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x4ba8fc]
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 0x407b34
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.0043d1f7
add esp, 0x110
ret 0xc

Function at 0x408870
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4844c8
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 0x408976
push esi
call fcn.0045d1dd
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 0x4088db
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 0x4088ef
xor eax, eax
jmp 0x408903
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4088f4
sub eax, edx
js 0x408986
cmp eax, dword [esi - 8]
jg 0x408986
push edi
push 0xd
mov dword [esi - 0xc], eax
push 0x492e58
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 0x40894b
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x40894b
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 0x408975
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 0x40af60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4845e8
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.00406f80
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.004057f0
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 0x40aff2
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 0x40d750
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x1ec
mov eax, dword [0x4ba8fc]
mov dword [esp + 0x1e8], eax
lea eax, [esp + 0x58]
push eax
push 0x101
mov dword [esp + 0x10], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40d794
or eax, 0xffffffff
mov ecx, dword [esp + 0x1e8]
call fcn.0043d1f7
add esp, 0x1ec
ret
push ebx
push str.ICMP.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x10], ebx
jne 0x40d7c3
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x1e8]
call fcn.0043d1f7
add esp, 0x1ec
ret
mov ecx, dword [esp + 0x1f4]
push ebp
push ecx
lea ecx, [esp + 0x1c]
call fcn.004073b0
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebp, eax
mov eax, dword [esp + 0x18]
test ebp, ebp
sete byte [esp + 0xb]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d805
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0xb]
test al, al
je 0x40d827
pop ebp
mov eax, 0xfffffffd
pop ebx
mov ecx, dword [esp + 0x1e8]
call fcn.0043d1f7
add esp, 0x1ec
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push str.IcmpCreateFile
push ebx
call esi
push str.IcmpCloseHandle
push ebx
mov edi, eax
call esi
push str.IcmpSendEcho
push ebx
mov dword [esp + 0x2c], eax
call esi
test edi, edi
mov dword [esp + 0x14], eax
je 0x40d92f
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x40d92f
test eax, eax
je 0x40d92f
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40d892
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
mov ecx, dword [esp + 0x1e8]
call fcn.0043d1f7
add esp, 0x1ec
ret
push 0x5c
mov eax, 0xaaaaaaaa
mov ecx, 0x10
lea edi, [esp + 0x2c]
push 0x40
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x40d8ce
pop edi
pop esi
pop ebp
mov eax, 0xfffffffa
pop ebx
mov ecx, dword [esp + 0x1e8]
call fcn.0043d1f7
add esp, 0x1ec
ret
push 0x3e8
push 0x5c
push esi
lea eax, [esp + 0x34]
push 0
mov dword [esi + 0x10], eax
mov word [esi + 0xc], 0x40
mov edx, dword [ebp + 0xc]
push 0x40
mov ecx, eax
mov eax, dword [edx]
push ecx
mov ecx, dword [eax]
push ecx
push ebx
call dword [esp + 0x34]
test eax, eax
je 0x40d900
mov edi, dword [esi + 8]
jmp 0x40d904
mov edi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1e8]
call fcn.0043d1f7
add esp, 0x1ec
ret
mov ecx, dword [esp + 0x1f8]
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
call fcn.0043d1f7
add esp, 0x1ec
ret
Function at 0x40d950
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4847e8
push eax
mov eax, 0x1070
mov dword fs:[0], esp
call fcn.0043e250
mov eax, dword [0x4ba8fc]
push ebp
xor ebp, ebp
mov dword [esp + 0x1070], eax
mov dword [esp + 8], ebp
push ebp
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x108c], ebp
mov dword [esp + 0x1c], 0xc
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40d9f8
push 0x492e6c
mov ecx, ebx
call fcn.004073b0
mov eax, dword [esp + 0x1084]
add eax, 0xfffffff0
mov dword [esp + 0x107c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40daf1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40daf1
push esi
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov esi, dword [esp + 0x1088]
mov eax, dword [esp + 8]
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x24]
push edx
push ebp
push ebp
push 0x20
push 1
push ebp
push ebp
push esi
push ebp
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], eax
mov word [esp + 0x78], bp
mov dword [esp + 0x74], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40da79
push 0x492e6c
mov ecx, ebx
call fcn.004073b0
lea eax, [esi - 0x10]
mov dword [esp + 0x1080], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40dae6
mov eax, dword [esp + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x40daa0
mov eax, dword [esp + 0x10]
push ebp
lea ecx, [esp + 0x24]
push ecx
push 0xfff
lea edx, [esp + 0x84]
push edx
push eax
call edi
test eax, eax
jne 0x40daa0
lea ecx, [esp + 0x78]
push ecx
mov ecx, ebx
call fcn.004073b0
lea eax, [esi - 0x10]
mov dword [esp + 0x1084], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
pop edi
test ecx, ecx
jg 0x40daf0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
mov ecx, dword [esp + 0x1074]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1070]
mov eax, ebx
pop ebp
call fcn.0043d1f7
add esp, 0x107c
ret
Function at 0x412670
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x138
mov eax, dword [0x4ba8fc]
mov dword [esp + 0x134], eax
mov eax, dword [0x4bbc1c]
test eax, eax
jne 0x412777
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftPlus_ThemesCurrent
push SysFreeString
mov dword [0x4bbc1c], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412777
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 0x41276d
mov edx, dword [str.Windows_Classic.theme]
mov eax, dword [0x495618]
mov ecx, dword [0x49561c]
mov dword [esp + 0xc], edx
mov edx, dword [0x495620]
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 [0x495624]
mov dword [esp + 0x1c], ecx
mov cx, word [0x495628]
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 0x41276b
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 0x41276b
mov dword [0x4bbc18], 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 [0x4bbc18]
call fcn.0043d1f7
add esp, 0x138
ret

Function at 0x413980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x484df3
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], 0x4956f0
call fcn.00456b4e
mov dword [ebx], method.CPtrArray.virtual_0
lea ebx, [esi + 0x1c]
mov ecx, ebx
mov byte [esp + 0x18], 1
call fcn.00456b4e
mov dword [ebx], method.CPtrArray.virtual_0
or eax, 0xffffffff
push 0x4bbbc8
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 0x4143b0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x484e88
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.004638df
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.004639ed
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.0046324d
lea eax, [edi + 5]
push eax
push ebx
mov ecx, esi
call fcn.00462c9a
lea ebp, [edi + 3]
push ebp
lea eax, [ebx + 1]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.0046324d
lea eax, [edi + 6]
push eax
lea eax, [ebx + 1]
push eax
mov ecx, esi
call fcn.00462c9a
lea eax, [edi + 4]
push eax
lea ecx, [ebx + 2]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0046324d
lea eax, [edi + 7]
push eax
lea eax, [ebx + 2]
push eax
mov ecx, esi
call fcn.00462c9a
push ebp
lea eax, [ebx + 3]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.0046324d
lea eax, [edi + 6]
push eax
lea eax, [ebx + 3]
push eax
mov ecx, esi
call fcn.00462c9a
lea eax, [edi + 2]
lea ecx, [ebx + 4]
push eax
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0046324d
lea eax, [edi + 5]
push eax
lea eax, [ebx + 4]
push eax
mov ecx, esi
call fcn.00462c9a
lea ecx, [edi + 1]
push ecx
lea eax, [ebx + 5]
push eax
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0046324d
lea eax, [edi + 4]
push eax
lea eax, [ebx + 5]
push eax
mov ecx, esi
call fcn.00462c9a
push edi
add ebx, 6
push ebx
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.0046324d
push ebp
push ebx
mov ecx, esi
call fcn.00462c9a
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, esi
call fcn.004639ed
lea ecx, [esp + 0x10]
call fcn.00463936
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x10], vtable.CGdiObject.0
call fcn.00463936
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 0x414ab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x484f08
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 ebp, ecx
mov eax, esi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 8]
push edi
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0xc]
xor edi, edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], vtable.CBrush.0
cmp dword [0x4bbc00], 7
mov dword [esp + 0x30], edi
jne 0x414b17
call fcn.00412670
test eax, eax
jne 0x414b17
push 0xf
jmp 0x414b19
push 4
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
call ebx
cmp dword [esp + 0x40], edi
jne 0x414b3c
fld qword [0x495720]
sub esp, 8
fstp qword [esp]
push eax
call fcn.00412100
add esp, 0xc
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x14]
call fcn.004638df
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x38]
mov edx, dword [edi + 4]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x10]
call fcn.00463936
cmp dword [0x4bbc00], 2
jl 0x414b8a
mov ecx, dword [edi + 4]
push 0xf
push 2
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [esp + 0x44]
test eax, eax
push 7
jne 0x414bae
call ebx
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi]
add edx, 4
push edx
add eax, 4
push eax
push edi
mov ecx, ebp
call fcn.004143b0
jmp 0x414bc6
call ebx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
add ecx, 4
push ecx
add edx, 5
push edx
push edi
mov ecx, ebp
call fcn.00414290
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x10], vtable.CGdiObject.0
call fcn.00463936
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 0x415040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.0047916a
movzx ebx, word [esp + 0x14]
mov edi, dword [eax + 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 2
push ebx
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x415071
push 2
push ebx
xor edi, edi
push edi
call ebp
mov esi, eax
test esi, esi
je 0x4150a2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4150a2
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4150a2
push eax
call fcn.00412610
add esp, 4
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp bp, 0x10
je 0x4150a9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push esi
push edi
call fcn.00469efe
pop edi
pop esi
pop ebp
pop ebx
ret