joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ab0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
push eax
push 0x4019e4
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebp, dword [esp + 0x30]
add esp, 0xc
cmp ebp, 1
push 0
push 0x4066b4
jne 0x402b44
mov edx, dword [0x4015cc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
call esi
mov ecx, dword [0x406730]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
mov eax, dword [0x4015cc]
push eax
push ecx
call edi
mov edx, dword [0x4015fc]
push 0
push 0x4066b4
push edx
call esi
mov ecx, dword [0x406730]
push eax
mov eax, dword [0x4015fc]
push eax
push ecx
call edi
mov edx, dword [0x4015e0]
push 0
push 0x4066b4
push edx
call esi
mov ecx, dword [0x406730]
push eax
mov eax, dword [0x4015e0]
push eax
push ecx
jmp 0x402b67
mov edx, dword [0x4015c8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
call esi
mov ecx, dword [0x406730]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
mov eax, dword [0x4015c8]
push eax
push ecx
call edi
mov ebx, dword [esp + 0x1c]
push 0
push 0x4066b4
push ebx
call esi
mov edx, dword [0x406730]
push eax
push ebx
push edx
call edi
push 0
lea eax, [esp + 0x14]
push 0x4066b4
push eax
call esi
mov edx, dword [0x406730]
lea ecx, [esp + 0x18]
push eax
push ecx
push edx
call edi
cmp ebp, 1
push 0
push 0x4066b4
jne 0x402bec
mov eax, dword [0x4015e8]
push eax
call esi
mov ecx, dword [0x4015e8]
mov edx, dword [0x406730]
push eax
push ecx
push edx
call edi
mov eax, dword [0x401600]
push 0
push 0x4066b4
push eax
call esi
mov ecx, dword [0x401600]
mov edx, dword [0x406730]
push eax
push ecx
push edx
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [0x4015c8]
push eax
call esi
mov ecx, dword [0x4015c8]
mov edx, dword [0x406730]
push eax
push ecx
push edx
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x402c10
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
je 0x402c68
mov eax, dword [0x4015fc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
push 0x4066b4
push eax
call edi
mov ecx, dword [0x4015fc]
mov edx, dword [0x406730]
push eax
push ecx
push edx
call ebp
mov eax, dword [0x4015e4]
push 0
push 0x4066b4
push eax
call edi
mov ecx, dword [0x4015e4]
mov edx, dword [0x406730]
push eax
push ecx
push edx
call ebp
jmp 0x402c6e
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov dword [esp + 0x10], esi
je 0x402d27
push ebx
jmp 0x402c8c
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov eax, dword [esi]
push eax
call edi
mov ebx, dword [esi]
mov edi, eax
test edi, edi
jbe 0x402cf2
cmp edi, 0x3e8
mov esi, edi
jb 0x402ca8
mov esi, 0x3e8
mov ecx, dword [0x406730]
push 0
push 0x4066b4
push esi
push ebx
push ecx
call ebp
mov eax, dword [esp + 0x18]
add ebx, esi
sub edi, esi
test eax, eax
je 0x402cea
mov edx, dword [0x4015cc]
push 0
push 0x4066b4
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [0x406730]
push eax
mov eax, dword [0x4015cc]
push eax
push ecx
call ebp
test edi, edi
ja 0x402c99
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x402d11
mov edx, dword [0x406730]
push 0
push 0x4066b4
push 2
push 0x401614
push edx
call ebp
mov esi, dword [esi + 4]
test esi, esi
mov dword [esp + 0x14], esi
jne 0x402c82
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
pop ebx
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x402d70
mov eax, dword [0x4015ec]
push 0
push 0x4066b4
push eax
call edi
mov ecx, dword [0x4015ec]
mov edx, dword [0x406730]
push eax
push ecx
push edx
call ebp
mov eax, dword [0x401600]
push 0
push 0x4066b4
push eax
call edi
mov ecx, dword [0x401600]
mov edx, dword [0x406730]
push eax
push ecx
push edx
call ebp
pop edi
pop ebp
ret
Function at 0x402d80
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
test ebp, ebp
je 0x402dd8
mov eax, dword [0x4015fc]
push 0
push 0x4066b4
push eax
call edi
mov ecx, dword [0x4015fc]
mov edx, dword [0x406730]
push eax
push ecx
push edx
call esi
mov eax, dword [0x4015e0]
push 0
push 0x4066b4
push eax
call edi
mov ecx, dword [0x4015e0]
mov edx, dword [0x406730]
push eax
push ecx
push edx
call esi
mov ebx, dword [esp + 0x14]
push 0
push 0x4066b4
push ebx
call edi
push eax
mov eax, dword [0x406730]
push ebx
push eax
call esi
mov ebx, dword [esp + 0x18]
push 0
push 0x4066b4
push ebx
call edi
mov ecx, dword [0x406730]
push eax
push ebx
push ecx
call esi
test ebp, ebp
push 0
push 0x4066b4
je 0x402e52
mov edx, dword [0x4015e8]
push edx
call edi
mov ecx, dword [0x406730]
push eax
mov eax, dword [0x4015e8]
push eax
push ecx
call esi
mov edx, dword [0x401600]
push 0
push 0x4066b4
push edx
call edi
mov ecx, dword [0x406730]
push eax
mov eax, dword [0x401600]
push eax
push ecx
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [0x406730]
push 2
push 0x401614
push edx
call esi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x402ec0
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x51eb851f
push esi
mul dword [0x406630]
mov eax, dword [0x406848]
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0x640000
push 0
push 0x401
push 0x400
shr edx, 5
push eax
mov dword [0x4068b8], 0
mov dword [0x4066ac], edx
mov dword [0x40674c], 0
mov dword [0x4066b8], edx
call esi
mov ecx, dword [0x406848]
push 0
push 0
push 0x402
push 0x400
push ecx
call esi
mov edx, dword [0x406848]
push 0
push 1
push 0x404
push 0x400
push edx
call esi
mov eax, dword [0x406848]
push 5
push 0x400
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x403f10
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
mov dword [0x406664], eax
call dword [sym.imp.USER32.dll_SetCursor]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [0x4066bc], eax
mov eax, dword [0x406848]
push 0
push 0x404
push eax
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
mov ecx, dword [0x406848]
push 0
push 0x405
push ecx
call esi
push eax
call edi
mov edx, dword [0x406848]
push 0
push 0x406
push edx
call esi
push eax
call edi
mov eax, dword [0x406848]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
ret
Function at 0x404dc0
Capabilities:
Read .ini file

Disassembly:
push ebp
push esi
push edi
push 8
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, dword [esp + 0x10]
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0
push 0
push 0x147
push 0x409
push edi
mov ebp, eax
call esi
cmp eax, 0xffffffff
je 0x404f31
mov ecx, dword [0x406838]
push ebx
push ecx
push eax
push 0x148
push 0x409
push edi
call esi
mov edx, dword [0x40683c]
mov eax, dword [0x406838]
push edx
push eax
mov eax, dword [0x4011b8]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edi, dword [0x4068b0]
mov ecx, 0x1000
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [0x40683c]
mov edx, dword [0x4068b0]
mov eax, dword [0x406838]
push ecx
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov eax, dword [0x4068a0]
mov esi, 1
mov edi, 0x4011ea
mov ebx, eax
push 0x401ab4
push esi
push 0x401aac
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x4068b0]
push 0x4000
push ebp
push ecx
call fcn.00404d60
add esp, 0x1c
test eax, eax
je 0x404e91
mov dword [ebx], eax
jmp 0x404e96
lea edx, [edi - 0x16]
mov dword [ebx], edx
cmp edi, 0x40143c
jb 0x404ec3
cmp edi, 0x40155a
jae 0x404ec3
cmp edi, 0x4014c0
je 0x404ec3
mov eax, dword [ebx]
mov edx, dword [esp + 0x14]
lea ecx, [esi + 0x3cf]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
add edi, 0x16
inc esi
add ebx, 4
cmp edi, 0x4015de
jb 0x404e62
mov eax, dword [0x4011bc]
mov ecx, dword [0x4068b0]
push 0x4000
push eax
push ecx
call fcn.00404d60
add esp, 0xc
test eax, eax
pop ebx
je 0x404f0e
inc eax
mov dword [0x4068bc], eax
call fcn.00404bf0
push ebp
mov esi, 1
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebp
ret
mov edx, dword [0x4011c0]
mov dword [0x4068bc], edx
call fcn.00404bf0
push ebp
mov esi, 1
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebp
ret
push ebp
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x406390
Capabilities:
Hide graphical window
Inspect load icon resource

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push 0x405910
push 0
push 0x64
push esi
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 0x6f
push esi
mov dword [0x406848], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push eax
mov eax, dword [0x406848]
push 0xfffffffffffffff2
push eax
call dword [sym.imp.USER32.dll_SetClassLongA]
mov ecx, dword [0x401610]
mov edx, dword [0x406848]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [0x406848]
mov eax, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x406848]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
push 0x4066e0
call esi
test eax, eax
je 0x40645f
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_IsDialogMessageA]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov eax, dword [0x406848]
push 0x4066e0
push eax
call ebp
test eax, eax
jne 0x406442
push 0x4066e0
call edi
push 0x4066e0
call ebx
push 0
push 0
push 0
push 0x4066e0
call esi
test eax, eax
jne 0x406423
mov eax, dword [0x4066e8]
pop edi
pop ebp
pop ebx
pop esi
ret 0x10
mov eax, dword [0x4066e8]
pop esi
ret 0x10
Function at 0x401000
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49219a
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x158
mov eax, dword [0x4c1cfc]
xor eax, ebp
mov dword [ebp - 0x38], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, 0x4c3574
call fcn.00404690
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x30], ecx
push 0x20
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
call fcn.00404290
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x54]
call fcn.00401810
mov dword [ebp - 0x140], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], 0
mov ecx, 1
test ecx, ecx
je 0x4011af
mov edx, dword [ebp - 0x34]
push edx
push 0x49a4a0
lea ecx, [ebp - 0x54]
call fcn.004018b0
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [0x49a518]
je 0x40113e
mov edx, dword [ebp - 0x58]
sub edx, dword [ebp - 0x34]
je 0x40113c
mov eax, dword [ebp - 0x58]
sub eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
lea edx, [ebp - 0xe0]
push edx
lea ecx, [ebp - 0x54]
call fcn.00401900
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x14c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14c]
push ecx
mov ecx, 0x4c355c
call fcn.00401950
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe0]
call fcn.00401850
jmp 0x4011a1
lea ecx, [ebp - 0x54]
call fcn.00401890
mov dword [ebp - 0x150], eax
mov edx, dword [ebp - 0x150]
sub edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0xfc]
push ecx
lea ecx, [ebp - 0x54]
call fcn.00401900
mov dword [ebp - 0x154], eax
mov edx, dword [ebp - 0x154]
mov dword [ebp - 0x158], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x158]
push eax
mov ecx, 0x4c355c
call fcn.00401950
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xfc]
call fcn.00401850
jmp 0x4011af
mov ecx, dword [ebp - 0x58]
add ecx, 1
mov dword [ebp - 0x34], ecx
jmp 0x4010ac
call fcn.00401330
call fcn.004042c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00401850
jmp 0x4012f9
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x38]
xor ecx, ebp
call fcn.0046bfee
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40d860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x493268
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x4c1cfc]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x30]
mov dword [esi + 4], eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x28], 0
mov dword [esi], vtable.std::ctype_char_.0
call fcn.0046b14e
mov edx, dword [eax]
mov dword [esi + 8], edx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov edx, dword [eax + 8]
mov dword [esi + 0x10], edx
mov eax, dword [eax + 0xc]
mov dword [esi + 0x14], eax
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x20
ret 8

Function at 0x413d50
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [esi + 0xbf0]
mov ecx, dword [esi + 0xbf4]
push ebx
push ebp
mov ebp, dword [esi + 0xbf8]
push edi
mov edi, dword [esi + 0xbfc]
mov dword [esp + 0x20], edi
xor edi, 0x3b8d12ac
xor eax, 0xb32f4329
mov edx, ebp
xor edx, 0x548a7c7a
xor ecx, 0x90014964
mov dword [esp + 0x18], edi
and eax, 0xdc82880
and edx, 1
xor edi, edi
and ecx, 0x3d84e1ac
xor eax, edx
xor ecx, edi
mov edi, eax
mov dword [esp + 0x10], ecx
mov ebx, 0x20
mov edi, edi
mov edx, dword [esp + 0x10]
mov eax, edi
mov ecx, ebx
call fcn.0046f250
xor dword [esp + 0x10], edx
sar ebx, 1
xor edi, eax
test ebx, ebx
jg 0x413db0
and edi, 1
mov dword [esp + 0xc], edi
mov eax, 0
je 0x413ddb
test eax, eax
je 0x413df1
mov eax, dword [esp + 0x20]
xor ebp, 1
xor eax, 0
mov dword [esi + 0xbf8], ebp
mov dword [esi + 0xbfc], eax
pop edi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x414070
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [esp + 0xc], 0x4de1
je 0x414097
push 0x49b5b8
call fcn.0046fafb
add eax, 0x40
push eax
call fcn.0046f9df
add esp, 8
push 1
call fcn.0046f166
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
mov dword [esi], eax
mov eax, 1
mov ecx, esi
push edi
lea ebx, [ebx]
mov edx, dword [ecx]
mov edi, edx
shr edi, 0x1e
xor edi, edx
imul edi, edi, 0x6c078965
add edi, eax
mov dword [ecx + 4], edi
inc eax
add ecx, 4
cmp eax, 0x300
jl 0x4140b0
xor eax, eax
pop edi
mov edx, dword [esi + eax*8 + 4]
mov ecx, dword [esi + eax*8]
and edx, 0xfffff
or edx, 0x3ff00000
mov dword [esi + eax*8], ecx
mov dword [esi + eax*8 + 4], edx
inc eax
cmp eax, 0x17e
jl 0x4140d2
call fcn.00413d50
mov dword [esi + 0xc00], 0x17e
pop esi
ret
Function at 0x418ac0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x493b63
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4c1cfc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 0x6c]
mov dword [esp + 0x14], 1
call fcn.00408fa0
cmp dword [esi + 0x30], 0x10
jb 0x418b0a
mov eax, dword [esi + 0x1c]
push eax
call fcn.0046d8ad
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov ecx, dword [esi]
push ecx
call fcn.0046d8ad
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x41e680
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x49444f
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push esi
push edi
mov eax, dword [0x4c1cfc]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
push 0x400
call fcn.0046b7d4
push 0x400
mov esi, eax
push 0
push esi
call fcn.0046dec0
add esp, 0x10
push 0x400
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41e6e0
sub eax, edx
push eax
push esi
mov ecx, 0x4c59e8
call fcn.00401ef0
push 1
push 0xffffffffffffffff
lea eax, [esp + 0x14]
push eax
mov ecx, 0x4c59e8
mov byte [esp + 0x18], 0x5c
call fcn.0041dac0
push 0xffffffffffffffff
inc eax
push eax
mov ecx, 0x4c59e8
call fcn.00401b30
push 0x49c338
lea ecx, [esp + 0x1c]
push 0x4c59e8
push ecx
call fcn.00404120
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x4c5a24
mov dword [esp + 0xa0], 0
call fcn.00401a40
cmp dword [esp + 0x30], 0x10
mov dword [esp + 0x94], 0xffffffff
jb 0x41e76b
mov edx, dword [esp + 0x1c]
push edx
call fcn.0046d8ad
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0x400
push esi
push str.USERPROFILE
call edi
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41e783
sub eax, edx
push eax
push esi
mov ecx, 0x4c5a60
call fcn.00401ef0
push 1
push 0x49c350
mov ecx, 0x4c5a60
call fcn.00403840
push 0x400
push esi
push str.APPDATA
call edi
mov eax, esi
lea ecx, [eax + 1]
jmp 0x41e7c0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41e7c0
sub eax, ecx
push eax
push esi
mov ecx, 0x4c5a9c
call fcn.00401ef0
push 1
push 0x49c35c
mov ecx, 0x4c5a9c
call fcn.00403840
push esi
call fcn.0046ed1d
push 0x400
call fcn.0046b7d4
push 0x400
mov esi, eax
push 0
push esi
call fcn.0046dec0
add esp, 0x14
lea eax, [esp + 0x10]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push 0x80000001
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41e84e
push str.Failed_to_get_user_home_path.
push 0x49c343
push 0x4bd9b8
lea ecx, [esp + 0x40]
call fcn.00403d80
lea ecx, [esp + 0x34]
call fcn.004015c0
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push esi
push 0
push 0
push str.Personal
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41e878
sub eax, edx
push eax
push esi
mov ecx, 0x4c5b14
call fcn.00401ef0
push 1
push 0x49c3d4
mov ecx, 0x4c5b14
call fcn.00403840
push esi
call fcn.0046ed1d
add esp, 4
call fcn.0041e4c0
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x8c
ret
Function at 0x4201f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4944fa
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4c1cfc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
xor edx, edx
mov dword [esp + 0x10], edx
cmp dword [esp + 0x48], edx
je 0x42028f
lea eax, [ebx + 0x90]
mov dword [ebx], 0x49c60c
mov dword [ebx + 0x38], 0x49ec88
mov dword [eax], 0x49cc1c
mov dword [ebx + 0x24], vtable.Psychlops::Figure.0
mov ecx, dword [ebx + 0x38]
mov dword [ebx + 0x30], vtable.Psychlops::Shape.1.0
mov ecx, dword [ecx + 4]
mov dword [ecx + ebx + 0x38], vtable.Psychlops::Shape.0
lea edi, [ebx + 0x40]
mov ecx, 8
mov esi, 0x4c4d00
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x60]
mov ecx, 0xc
mov esi, 0x4c4b00
rep movsd dword es:[edi], dword [esi]
push edx
mov ecx, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], 3
call fcn.004090f0
mov edx, dword [ebx]
fld qword [esp + 0x38]
mov eax, dword [edx + 4]
mov dword [ebx + eax], vtable.Psychlops::Line.0
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
mov dword [ebx + edx], vtable.Psychlops::Line.1.0
mov eax, dword [ebx]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x24]
mov dword [eax + ebx - 4], ecx
mov edx, dword [ebx]
mov eax, dword [edx + 8]
lea ecx, [eax - 0x30]
mov dword [eax + ebx - 4], ecx
fstp qword [ebx + 8]
fld qword [esp + 0x40]
mov edx, dword [ebx]
fstp qword [ebx + 0x10]
fldz
fst qword [ebx + 0x18]
mov eax, dword [edx + 0xc]
fld qword [esp + 0x28]
fstp qword [eax + ebx + 8]
mov ecx, dword [ebx]
fld qword [esp + 0x30]
mov edx, dword [ecx + 0xc]
fstp qword [edx + ebx + 0x10]
mov eax, dword [ebx]
mov ecx, dword [eax + 0xc]
fstp qword [ecx + ebx + 0x18]
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0x24
Function at 0x42ca10
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x78
push esi
push edi
mov esi, ecx
call fcn.0042c960
mov eax, dword [esp + 0x88]
cmp dword [eax + 0x30], 0x10
jb 0x42ca2e
mov eax, dword [eax + 0x1c]
jmp 0x42ca31
add eax, 0x1c
mov edi, dword [esp + 0x84]
push 0
push 4
push 0
push edi
push eax
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsExA]
test eax, eax
je 0x42ca71
push str.API_Error__Failed_to_switch_display_mode_
push 0x49ced4
push 0x4bd664
lea ecx, [esp + 0x34]
call fcn.00403d80
push 0x4b5284
lea eax, [esp + 0x2c]
push eax
call fcn.0046d8b8
mov ecx, dword [edi + 0x6c]
mov dword [esi + 0x16c], ecx
mov edx, dword [edi + 0x70]
mov dword [esi + 0x170], edx
mov eax, dword [edi + 0x68]
mov dword [esi + 0x174], eax
fild dword [edi + 0x78]
mov ecx, dword [edi + 0x78]
test ecx, ecx
jge 0x42ca9c
fadd qword [0x49c908]
push 0
fstp qword [esi + 0x178]
call dword [sym.imp.USER32.dll_ShowCursor]
mov edx, dword [0x4c4d8c]
mov eax, dword [esi + 0x170]
mov ecx, dword [esi + 0x16c]
push 0
push edx
mov edx, dword [esi + 0x154]
push 0
push 0
push eax
mov eax, dword [esi + 0x14c]
push ecx
mov ecx, dword [0x4c3598]
push edx
push eax
push 0x80000000
push 0x49cee0
push ecx
push 0x40008
call dword [sym.imp.USER32.dll_CreateWindowExA]
lea edi, [esi + 0xc]
mov dword [edi], eax
test eax, eax
jne 0x42cb1f
push 0x49cef4
push 0x49cf14
push 0x4bd664
lea ecx, [esp + 0x34]
call fcn.00403d80
push 0x4b5284
lea edx, [esp + 0x2c]
push edx
call fcn.0046d8b8
mov eax, dword [esi + 0x7c]
push eax
lea ecx, [esi + 0x10]
push ecx
lea edx, [esi + 8]
push edx
push edi
mov ecx, esi
call fcn.0042bb20
push 1
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
mov byte [esi + 0x15c], 1
mov dword [esi + 0x7a4], 0
call dword [sym.imp.USER32.dll_PeekMessageA]
mov ecx, dword [0x4c3580]
mov edx, dword [edi]
push ecx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
add esp, 0x78
ret 8