joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4029c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], edx
push esi
mov esi, ecx
push edi
test ebx, ebx
jne 0x4029e0
mov dword [esi], 1
jmp 0x402aaa
push 2
push 0
push 0
push ebx
call fcn.0041564e
push ebx
call fcn.004150f7
add esp, 0x14
mov dword [ebp - 4], edx
mov edi, eax
push 0
push 0
push 0
push ebx
call fcn.0041564e
mov eax, dword [ebp - 4]
add esp, 0x10
test eax, eax
jg 0x402a20
jl 0x402a16
test edi, edi
jae 0x402a20
mov eax, 2
jmp 0x402aa8
xor ecx, ecx
cmp ecx, eax
jne 0x402aa3
lea eax, [edi + 1]
push eax
mov dword [ebp - 4], eax
call fcn.004158ae
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x402a43
mov dword [esi], 3
jmp 0x402aaa
push dword [ebp + 8]
push edi
push 1
push ebx
call fcn.004152e4
add esp, 0x10
cmp eax, edi
je 0x402a67
push ebx
call fcn.00414b2a
add esp, 4
mov dword [esi], 2
jmp 0x402aaa
push edi
mov edx, ebx
xor ecx, ecx
call fcn.004018a0
add esp, 4
cmp eax, 1
jne 0x402a80
mov byte [edi + ebx], 0
mov edi, dword [ebp - 4]
push dword [ebp + 0x14]
sub esp, 8
push eax
mov eax, dword [ebp - 8]
mov edx, eax
push ecx
push edi
push ebx
push eax
mov ecx, esi
call fcn.004028c0
add esp, 0x20
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 3
mov dword [esi], eax
pop edi
mov dword [esi + 4], 0
mov eax, esi
mov dword [esi + 8], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404110
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428ddc
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x5c
mov eax, dword [0x43b070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x64], esi
mov dword [esi + 0xc], 0
lea ecx, [esi + 0x30]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [ebp - 0x68], esi
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
call fcn.00404960
lea ecx, [esi + 0x70]
mov dword [ebp - 4], 0
call fcn.00404960
mov byte [ebp - 4], 1
lea eax, [ebp - 0x60]
mov dword [esi], 0x41f00000
mov ecx, esi
mov dword [esi + 4], 0x42de0000
mov dword [esi + 8], 0x41a80000
push eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
call fcn.004043e0
push fcn.004011c0
push 4
push 0x10
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 2
push eax
call fcn.0040c261
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040bd25
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4042c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428e46
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x5c
mov eax, dword [0x43b070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mulss xmm1, dword [0x4358ec]
push ecx
movss xmm0, dword [ebx + 8]
lea ecx, [ebp - 0x60]
movss dword [esp], xmm0
call fcn.00404a10
mov edx, eax
add esp, 4
mov ecx, dword [edx]
mov dword [esi + 0x30], ecx
mov ecx, dword [edx + 4]
mov dword [esi + 0x34], ecx
mov ecx, dword [edx + 8]
mov dword [esi + 0x38], ecx
mov ecx, dword [edx + 0xc]
mov dword [esi + 0x3c], ecx
mov eax, dword [edx + 0x10]
mov dword [esi + 0x40], eax
mov eax, dword [edx + 0x14]
mov dword [esi + 0x44], eax
mov eax, dword [edx + 0x18]
mov dword [esi + 0x48], eax
mov eax, dword [edx + 0x1c]
mov dword [esi + 0x4c], eax
mov eax, dword [edx + 0x20]
mov dword [esi + 0x50], eax
mov eax, dword [edx + 0x24]
mov dword [esi + 0x54], eax
mov eax, dword [edx + 0x28]
mov dword [esi + 0x58], eax
mov eax, dword [edx + 0x2c]
mov dword [esi + 0x5c], eax
mov eax, dword [edx + 0x30]
mov dword [esi + 0x60], eax
mov eax, dword [edx + 0x34]
mov dword [esi + 0x64], eax
mov eax, dword [edx + 0x38]
mov dword [esi + 0x68], eax
mov eax, dword [edx + 0x3c]
mov dword [esi + 0x6c], eax
push fcn.004011c0
push 4
push 0x10
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 0
push eax
call fcn.0040c261
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040bd25
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x4043e0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428e76
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x43b070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
movss xmm0, dword [esi + 8]
mulss xmm0, dword [0x4358ec]
mov edi, dword [ebx + 8]
mov dword [ebp - 0x80], 0
movss dword [ebp - 0x64], xmm0
cvtps2pd xmm0, xmm0
call fcn.00427de0
movss xmm1, dword [esi]
cvtsd2ss xmm0, xmm0
mulss xmm1, xmm0
movss xmm0, dword [ebp - 0x64]
cvtps2pd xmm0, xmm0
movss dword [ebp - 0x6c], xmm1
call fcn.00427c20
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esi]
movss dword [ebp - 0x64], xmm0
movss xmm0, dword [esi + 4]
mulss xmm0, dword [0x4358ec]
movss dword [ebp - 0x68], xmm0
cvtps2pd xmm0, xmm0
call fcn.00427c20
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [ebp - 0x64]
movss dword [ebp - 0x70], xmm0
movss xmm0, dword [ebp - 0x68]
cvtps2pd xmm0, xmm0
call fcn.00427de0
movss xmm2, dword [esi + 0x20]
lea eax, [esi + 0x18]
movss xmm1, dword [eax + 4]
lea ecx, [ebp - 0x7c]
addss xmm1, dword [ebp - 0x6c]
cvtsd2ss xmm0, xmm0
lea edx, [esi + 0xc]
mov dword [ebp - 0x7c], 0
push ecx
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x78], 0x3f800000
mov dword [ebp - 0x74], 0
mulss xmm0, dword [ebp - 0x64]
addss xmm2, xmm0
movss xmm0, dword [eax]
addss xmm0, dword [ebp - 0x70]
movss dword [edx + 4], xmm1
movss dword [edx + 8], xmm2
movss dword [edx], xmm0
call fcn.00404af0
mov ecx, eax
add esp, 8
add esi, 0x70
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 8]
mov dword [esi + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ecx + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [ecx + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [ecx + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [ecx + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [ecx + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [ecx + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [ecx + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [ecx + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [ecx + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [ecx + 0x3c]
mov dword [esi + 0x3c], eax
push fcn.004011c0
push 4
push 0x10
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 0
push eax
call fcn.0040c261
push esi
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.004048d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040bd25
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x407850
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4290b8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x168
mov eax, dword [0x43b070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebx + 0xc]
lea ecx, [ebp - 0x150]
inc dword [0x43c890]
push ecx
mov ecx, eax
mov dword [ebp - 0x154], eax
call fcn.00405110
mov esi, eax
lea eax, [ebp - 0x110]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x20]
call fcn.004043e0
push esi
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd0]
call fcn.00408530
add esp, 4
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x88], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x78], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ebp - 0x68], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [ebp - 0x58], xmm0
push fcn.004011c0
push 4
push 0x10
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 2
push eax
call fcn.0040c261
push fcn.004011c0
push 4
push 0x10
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 3
push eax
call fcn.0040c261
push fcn.004011c0
push 4
push 0x10
lea eax, [ebp - 0x150]
mov dword [ebp - 4], 4
push eax
call fcn.0040c261
mov esi, dword [ebp - 0x154]
lea eax, [ebp - 0x170]
add esi, 0x10
mov dword [ebp - 4], 0xffffffff
push eax
mov ecx, esi
call fcn.00405330
mov ecx, esi
movups xmm0, xmmword [eax]
lea eax, [ebp - 0x170]
push eax
movups xmmword [ebp - 0x48], xmm0
call fcn.00405350
mov ecx, esi
movups xmm0, xmmword [eax]
lea eax, [ebp - 0x170]
push eax
movups xmmword [ebp - 0x38], xmm0
call fcn.00405380
push dword [ebx + 8]
push 0x8a11
movups xmm0, xmmword [eax]
mov eax, dword [sym.imp.glew32.dll___glewBindBuffer]
movups xmmword [ebp - 0x28], xmm0
mov eax, dword [eax]
call eax
push 0x88e8
lea eax, [ebp - 0x88]
push eax
mov eax, dword [sym.imp.glew32.dll___glewBufferData]
push 0x70
push 0x8a11
mov eax, dword [eax]
call eax
mov eax, dword [sym.imp.glew32.dll___glewBindBuffer]
push 0
push 0x8a11
mov eax, dword [eax]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040bd25
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
Function at 0x409e80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
xorps xmm0, xmm0
push 0x25
movss dword [esp + 0x10], xmm1
movss dword [esp + 8], xmm0
movss dword [esp + 0xc], xmm0
call esi
test ax, ax
je 0x409ebc
movss xmm1, dword [0x4358f4]
movss dword [esp + 4], xmm1
push 0x27
call esi
test ax, ax
je 0x409ecf
movss xmm0, dword [0x435918]
jmp 0x409ed5
movss xmm0, dword [esp + 4]
mulss xmm0, dword [esp + 0xc]
push 0x26
mulss xmm0, dword [0x4358f8]
movss dword [esp + 8], xmm0
call esi
test ax, ax
je 0x409f00
movss xmm0, dword [0x4358f4]
movss dword [esp + 8], xmm0
push 0x28
call esi
test ax, ax
je 0x409f13
movss xmm0, dword [0x435918]
jmp 0x409f19
movss xmm0, dword [esp + 8]
mulss xmm0, dword [esp + 0xc]
movss xmm1, dword [esp + 4]
mulss xmm0, dword [0x4358f8]
movaps xmm2, xmm0
call fcn.004045b0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 2
call esi
test ax, ax
je 0x40a014
mov ecx, dword [esp + 0x14]
mov eax, ecx
sub eax, dword [0x43ca88]
mov edx, dword [esp + 0x10]
movss xmm0, dword [0x435910]
movd xmm2, eax
mov eax, edx
sub eax, dword [0x43cbc0]
cvtdq2ps xmm2, xmm2
movd xmm1, eax
mulss xmm2, dword [0x4358f0]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x4358f0]
addss xmm1, dword [0x43c8a4]
comiss xmm1, xmm0
movss dword [0x43c8a4], xmm1
jbe 0x409fac
subss xmm1, xmm0
movss dword [0x43c8a4], xmm1
xorps xmm3, xmm3
comiss xmm3, xmm1
jbe 0x409fc0
addss xmm1, xmm0
movss dword [0x43c8a4], xmm1
movss xmm1, dword [0x43c8a8]
addss xmm1, xmm2
mov dword [0x43cbc0], edx
mov dword [0x43ca88], ecx
comiss xmm1, dword [0x43590c]
movss dword [0x43c8a8], xmm1
jbe 0x409ff8
mov dword [0x43c8a8], 0x42aa0000
pop esi
mov esp, ebp
pop ebp
ret
movss xmm0, dword [0x435900]
comiss xmm0, xmm1
jbe 0x40a026
mov dword [0x43c8a8], 0x40a00000
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
mov dword [0x43cbc0], eax
mov eax, dword [esp + 0x14]
mov dword [0x43ca88], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ac50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push str._n_n
mov edi, ecx
call fcn.0040ac10
add esp, 4
push str.SHADERSDirectLight.vsh
push str.LOADING_VERTEX_SHADER___s__n
call fcn.0040ac10
push 0x435170
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push str.SHADERSDirectLight.vsh
push eax
call fcn.0040fbfe
mov eax, dword [ebp - 4]
add esp, 0x14
test eax, eax
jne 0x40acbb
push str.SHADERSDirectLight.vsh
push str.file__s_cant_be_found_n
call fcn.0040ac10
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 2
push 0
push eax
call fcn.00415669
add esp, 0xc
push dword [ebp - 4]
call fcn.0041510d
add esp, 4
mov esi, eax
push esi
push str.file_size:__i_bytes_n
call fcn.0040ac10
lea ecx, [esi + 1]
push ecx
call fcn.0040c3b1
add esp, 0xc
mov dword [ebp - 8], 0
mov ebx, eax
mov dword [ebp - 0xc], ebx
push 0
push 0
push dword [ebp - 4]
call fcn.00415669
add esp, 0xc
push dword [ebp - 4]
push esi
push 1
push ebx
call fcn.004152e4
push ebx
push str.vertex_shader_text:_n_n_s_n
mov byte [eax + ebx], 0
call fcn.0040ac10
push dword [ebp - 4]
call fcn.00412b3b
mov eax, dword [sym.imp.glew32.dll___glewCreateShader]
add esp, 0x1c
mov eax, dword [eax]
push 0x8b31
call eax
mov dword [edi], eax
test eax, eax
jne 0x40ad5c
push str.Vertex_Shader_can_not_be_created_n
call fcn.0040ac10
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
push str._nvertex_shader_glCreateShader___4.4i__t_..._OK_n
call fcn.0040ac10
add esp, 8
lea eax, [ebp - 0xc]
push 0
push eax
mov eax, dword [sym.imp.glew32.dll___glewShaderSource]
push 1
push dword [edi]
mov eax, dword [eax]
call eax
push str.vertex_shader_glShaderSource_t_t_..._OK_n
call fcn.0040ac10
mov eax, dword [sym.imp.glew32.dll___glewCompileShader]
add esp, 4
push dword [edi]
mov eax, dword [eax]
call eax
push str.vertex_shader_glCompileShader_t_t_..._OK_n
call fcn.0040ac10
add esp, 4
lea eax, [ebp - 8]
push eax
mov eax, dword [sym.imp.glew32.dll___glewGetShaderiv]
push 0x8b81
push dword [edi]
mov eax, dword [eax]
call eax
push dword [ebp - 8]
push str.vertex_shader_status_...__i_n_n
call fcn.0040ac10
add esp, 8
cmp dword [ebp - 8], 0
jne 0x40adfd
push ebx
lea eax, [ebp - 0x10]
push eax
mov eax, dword [sym.imp.glew32.dll___glewGetShaderInfoLog]
push 0x400
push dword [edi]
mov eax, dword [eax]
call eax
push ebx
push str.vertex_shader_error:_n_s_n
call fcn.0040ac10
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40ae10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push str._n_n
mov edi, ecx
call fcn.0040ac10
add esp, 4
push str.SHADERSDirectLight.fsh
push str.LOADING_FRAGMENT_SHADER___s__n
call fcn.0040ac10
push 0x435170
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push str.SHADERSDirectLight.fsh
push eax
call fcn.0040fbfe
mov eax, dword [ebp - 4]
add esp, 0x14
test eax, eax
jne 0x40ae7b
push str.SHADERSDirectLight.fsh
push str.file__s_cant_be_found_n
call fcn.0040ac10
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 2
push 0
push eax
call fcn.00415669
add esp, 0xc
push dword [ebp - 4]
call fcn.0041510d
add esp, 4
mov esi, eax
push esi
push str.file_size:__i_bytes_n
call fcn.0040ac10
lea ecx, [esi + 1]
push ecx
call fcn.0040c3b1
add esp, 0xc
mov dword [ebp - 8], 0
mov ebx, eax
mov dword [ebp - 0xc], ebx
push 0
push 0
push dword [ebp - 4]
call fcn.00415669
add esp, 0xc
push dword [ebp - 4]
push esi
push 1
push ebx
call fcn.004152e4
push ebx
push str.fragment_shader_text:_n_n_s_n
mov byte [eax + ebx], 0
call fcn.0040ac10
push dword [ebp - 4]
call fcn.00412b3b
mov eax, dword [sym.imp.glew32.dll___glewCreateShader]
add esp, 0x1c
mov eax, dword [eax]
push 0x8b30
call eax
mov dword [edi + 4], eax
test eax, eax
jne 0x40af1d
push str.Fragment_Shader_can_not_be_created_n
call fcn.0040ac10
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
push str._nfragment_shader_glCreateShader___4.4i__t_..._OK_n
call fcn.0040ac10
add esp, 8
lea eax, [ebp - 0xc]
push 0
push eax
mov eax, dword [sym.imp.glew32.dll___glewShaderSource]
push 1
push dword [edi + 4]
mov eax, dword [eax]
call eax
push str.fragment_shader_glShaderSource_t_t_..._OK_n
call fcn.0040ac10
mov eax, dword [sym.imp.glew32.dll___glewCompileShader]
add esp, 4
push dword [edi + 4]
mov eax, dword [eax]
call eax
push str.fragment_shader_glCompileShader_t_t_..._OK_n
call fcn.0040ac10
add esp, 4
lea eax, [ebp - 8]
push eax
mov eax, dword [sym.imp.glew32.dll___glewGetShaderiv]
push 0x8b81
push dword [edi + 4]
mov eax, dword [eax]
call eax
push dword [ebp - 8]
push str.fragment_shader_status_...__i_n_n
call fcn.0040ac10
add esp, 8
cmp dword [ebp - 8], 0
jne 0x40afc2
push ebx
lea eax, [ebp - 0x10]
push eax
mov eax, dword [sym.imp.glew32.dll___glewGetShaderInfoLog]
push 0x400
push dword [edi + 4]
mov eax, dword [eax]
call eax
push ebx
push str.fragment_shader_error:_n_s_n
call fcn.0040ac10
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x420625
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004204a4

Function at 0x4237f5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004234b5
Function at 0x408ebe
Capabilities:
Get file attributes
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor eax, eax
push eax
push eax
push 3
push eax
push 7
push closesocket
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408fa2
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x408f96
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
or ebx, 0xffffffff
mov dword [ebp - 0x18], eax
or eax, ecx
mov dword [ebp - 0x14], ecx
je 0x408fa2
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x408fa2
mov esi, dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov dword [ebp - 8], eax
and dword [ebp - 8], 1
je 0x408f3e
and eax, 0xfffffffe
push eax
push edi
call esi
test byte [ebp + 0x14], 1
jne 0x408f67
cmp dword [ebp - 0x14], 0
ja 0x408f53
cmp dword [ebp - 0x18], 0x180000
jb 0x408f67
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
call fcn.00408c42
jmp 0x408f79
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
call fcn.00408782
add esp, 0x10
cmp dword [ebp - 8], 0
mov dword [ebp - 4], eax
je 0x408fa2
push dword [ebp - 0xc]
test eax, eax
je 0x408f93
push dword [ebp + 0x10]
call esi
jmp 0x408fa2
push edi
call esi
cmp ebx, 0xffffffff
je 0x408fa2
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402520
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402594
lea ecx, [esp + 4]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push 0
push 0
push 0x10
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x10]
push 0
push edx
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x402594
xor eax, eax
add esp, 0x1c
ret
mov eax, dword [esp + 0x20]
push 0x80020003
or eax, 0x10
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x1c
ret

Function at 0x403510
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 0x403529
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403564
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403560
lea ebx, [ebx]
cmp esi, eax
jae 0x403564
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403550
cmp esi, eax
jb 0x40356a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403db0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ecx
push esi
xor esi, esi
push esi
mov dword [esp + 8], esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x403e4f
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ebp, dword [esp + 0x14]
mov eax, ebp
lea edx, [eax + 2]
jmp 0x403de0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403de0
sub eax, edx
sar eax, 1
lea edi, [eax + eax]
lea eax, [edi + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x403e40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x403e3f
push edi
push ebp
push ebx
call fcn.00494680
add esp, 0xc
xor ecx, ecx
push esi
mov word [edi + ebx], cx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x403e3f
mov dword [esp + 0x10], 1
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop esi
pop ecx
ret
mov eax, esi
pop esi
pop ecx
ret