joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [ebp - 0xc], eax
push 0x421030
push dword [ebp + 0x14]
call fcn.004013bb
mov dword [ebp - 0x18], eax
push 0x421030
push dword [ebp + 0x18]
call fcn.004013bb
mov dword [ebp - 0x1c], eax
push 0x421030
push dword [ebp + 0x1c]
call fcn.004013bb
mov dword [ebp - 0x20], eax
jmp 0x401058
mov dword [ebp - 0x60], 0x30
mov dword [ebp - 0x5c], 0x2000
mov dword [ebp - 0x58], 0x4011a0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0x10
push dword [ebp - 0xc]
pop dword [ebp - 0x4c]
mov dword [ebp - 0x40], 0x10
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x401042
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x60]
push eax
call sub.user32.dll_RegisterClassExA
push 0
push dword [ebp - 0xc]
push dword [ebp + 0x20]
push dword [ebp + 8]
push 0x64
push 0x64
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x50000000
push 0
push 0x401042
push 0x20
call sub.user32.dll_CreateWindowExA
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
push 0
push dword [ebp - 4]
call sub.user32.dll_SetWindowLongA
push dword [ebp - 0x1c]
push 4
push dword [ebp - 4]
call sub.user32.dll_SetWindowLongA
push dword [ebp - 0x20]
push 8
push dword [ebp - 4]
call sub.user32.dll_SetWindowLongA
jmp 0x40110f
push 0
push dword [ebp - 0xc]
push dword [ebp + 0x20]
push dword [ebp - 4]
push 0
push 0
push 0
push 0
push 0x5000000e
push 0
push 0x401108
push 0
call sub.user32.dll_CreateWindowExA
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
push 0
push 0x172
push dword [ebp - 8]
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 8]
call sub.user32.dll_GetWindowRect
push dword [ebp - 8]
push 0xc
push dword [ebp - 4]
call sub.user32.dll_SetWindowLongA
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
sub eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
sub eax, edx
mov dword [ebp - 0x10], eax
push 2
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push 0
push 0
push 0
push dword [ebp - 4]
call sub.user32.dll_SetWindowPos
push 5
push dword [ebp - 4]
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 4]
leave
ret 0x1c

Function at 0x40142c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, 0x422154
xor ecx, ecx
mov eax, ecx
mov ebx, 0xedb88320
add edi, 4
mov esi, 8
shr eax, 1
sbb edx, edx
and edx, ebx
xor eax, edx
dec esi
jne 0x401445
inc ecx
mov dword [edi], eax
cmp ecx, 0x100
jb 0x401436
mov eax, 0x422158
pop edi
pop esi
pop ebx
ret
Function at 0x401464
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, 0x422158
mov edx, dword [ebp + 0xc]
shr edx, 1
or ecx, 0xffffffff
xor eax, eax
mov al, byte [esi]
xor al, cl
shr ecx, 8
mov ebx, dword [edi + eax*4]
xor ecx, ebx
mov al, byte [esi + 1]
xor al, cl
shr ecx, 8
mov ebx, dword [edi + eax*4]
add esi, 2
xor ecx, ebx
dec edx
jne 0x40147c
test dword [ebp + 0xc], 1
je 0x4014b1
mov al, byte [esi]
xor al, cl
inc esi
shr ecx, 8
mov ebx, dword [edi + eax*4]
xor ecx, ebx
mov eax, ecx
not eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x401594
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push 0x4015d5
push 0
push 0
call sub.kernel32.dll_CreateThread
push eax
call sub.kernel32.dll_CloseHandle
leave
ret 4
Function at 0x402360
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40238c
xor eax, eax
leave
ret 0xc
push 0
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 8], eax
add dword [ebp - 8], 0x20
push dword [ebp - 8]
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_ReadFile
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, 1
leave
ret 0xc

Function at 0x402550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x37], 0
jne 0x402563
cmp dword [esi + 0x2b], 0
je 0x402571
mov dword [esi + 8], 0x1002
xor esi, esi
jmp 0x4025fa
mov dword [esi + 8], 0
push 0xa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_FindResourceA]
or eax, eax
jne 0x402595
mov dword [esi + 8], 0x3001
xor esi, esi
jmp 0x4025fa
push eax
push eax
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_LoadResource]
pop ecx
or eax, eax
jne 0x4025b0
mov dword [esi + 8], 0x3002
xor esi, esi
jmp 0x4025fa
mov dword [esi + 0x13], eax
mov dword [esi + 0x1b], eax
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_SizeofResource]
or eax, eax
jne 0x4025cf
mov dword [esi + 8], 0x3002
xor esi, esi
jmp 0x4025fa
mov dword [esi + 0x17], eax
mov dword [esi + 0x2b], 2
push esi
call fcn.00402dd0
or eax, eax
jne 0x4025ee
mov dword [esi + 0x2b], 0
xor esi, esi
jmp 0x4025fa
mov dword [esi + 0x37], 1
mov esi, 1
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x405082
Capabilities:
Create thread

Disassembly:
pushal
mov ebx, 0x7251b0
mov ecx, 0x20082
mov edi, ebx
xor eax, eax
rep stosb byte es:[edi], al
mov esi, dword [esp + 0x24]
mov dword [ebx + 0xc], esi
mov esi, dword [esp + 0x28]
mov dword [ebx + 0x10], esi
lea esi, [ebx + 8]
mov dword [esi], eax
push eax
push esi
push eax
call sub.dsound.dll_DirectSoundCreate
mov esi, dword [esi]
or esi, esi
je 0x4050d5
mov al, 2
push eax
push dword [esp + 0x30]
push esi
mov edi, dword [esi]
call dword [edi + 0x18]
or eax, eax
jne 0x4050d5
push eax
lea ebp, [ebx + 4]
push ebp
push 0x4053b6
push esi
call dword [edi + 0xc]
or eax, eax
jne 0x4050e6
push eax
lea edx, [ebx]
push edx
push 0x4053a2
push esi
call dword [edi + 0xc]
or eax, eax
jne 0x4051b4
lea edi, [ebx + 0x70]
push edi
lea esi, [0x405390]
lea ecx, [eax + 0x12]
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp]
push esi
mov edi, dword [esi]
call dword [edi + 0x38]
xor esi, esi
push 2
lea edx, [ebx + 0x2c]
push edx
lea edx, [ebx + 0x28]
push edx
lea edx, [ebx + 0x24]
push edx
lea edx, [ebx + 0x20]
push edx
push esi
push esi
mov ebp, dword [ebx]
mov esi, dword [ebp]
push ebp
call dword [esi + 0x2c]
or eax, eax
jne 0x4050e6
mov ecx, dword [ebx + 0x24]
mov edi, dword [ebx + 0x20]
rep stosb byte es:[edi], al
mov ecx, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x28]
rep stosb byte es:[edi], al
push dword [ebx + 0x2c]
push dword [ebx + 0x28]
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push ebp
call dword [esi + 0x4c]
or eax, eax
jne 0x4051b4
mov dword [ebx + 0x68], 0xffff0000
mov dword [ebx + 0x6c], 0xffff0000
xor eax, eax
push eax
push eax
push eax
push eax
call sub.kernel32.dll_CreateEventA
mov dword [ebx + 0x40], eax
lea eax, [ebx + 0x48]
push eax
call sub.kernel32.dll_InitializeCriticalSection
xor eax, eax
inc al
push eax
push 1
dec al
push eax
push eax
push ebp
call dword [esi + 0x30]
or eax, eax
jne 0x4051b4
fld dword [0x405050]
fstp dword [ebx + 0x14]
lea edx, [ebx + 0x3c]
push edx
push eax
push eax
push 0x405209
push eax
push eax
call sub.kernel32.dll_CreateThread
mov dword [ebx + 0x1c], eax
inc dword [esp]
push eax
call sub.kernel32.dll_SetThreadPriority
popal
stc
jmp 0x4051bb
call fcn.004051c0
popal
clc
sbb eax, eax
ret 0xc
Function at 0x432000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x28f82298
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x7f2d1371
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x39f05cc1
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x431060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x136f0c3f
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40c040
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40c0f5
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov ebp, dword [sym.imp.USER32.dll_ReleaseDC]
nop dword [eax]
push 0
push 0
call ebp
add byte [edi + ebx], 0x6f
push 0
push 0
call ebp
add byte [edi + ebx], 0x45
push 0
push 0
call ebp
add byte [edi + ebx], 0x25
push 0
push 0
call ebp
xor byte [edi + ebx], 0x22
push 0
push 0
call ebp
add byte [edi + ebx], 0xb0
push 0
push 0
call ebp
add byte [edi + ebx], 0xc7
push 0
push 0
call ebp
add byte [edi + ebx], 0x79
push 0
push 0
call ebp
xor byte [edi + ebx], 0x38
push 0
push 0
call ebp
add byte [edi + ebx], 0x45
push 0
push 0
call ebp
add byte [edi + ebx], 0xcf
push 0
push 0
call ebp
xor byte [edi + ebx], 0x33
push 0
push 0
call ebp
add byte [edi + ebx], 0x4d
push 0
push 0
call ebp
xor byte [edi + ebx], 0x7c
push 0
push 0
call ebp
add byte [edi + ebx], 0xec
inc ebx
cmp esi, ebx
jne 0x40c060
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402cc5
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40c100
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [esp + 0x3c]
mov edi, dword [eax + 0x10]
cmp dword [eax + 0x14], 0x10
mov ebx, eax
jb 0x40c118
mov ebx, dword [eax]
mov esi, dword [esp + 0x40]
xor esi, edi
cmp edi, 4
jae 0x40c127
mov ecx, edi
jmp 0x40c195
mov dword [esp + 0x24], edi
shr edi, 2
xor ebp, ebp
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
movups xmmword [esp], xmm0
mov dword [esp + 0x20], 0
call dword [sym.imp.GDI32.dll_ArcTo]
sub esp, 0x24
mov dword [esp + 4], str.Z81xbyuAua
mov dword [esp], 0x4d4860
call fcn.00402d5b
mov dword [esp], eax
call fcn.004060eb
imul eax, dword [ebx + ebp*4], 0x5bd1e991
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul eax, ecx, 0x5bd1e991
imul esi, esi, 0x5bd1e991
xor esi, eax
inc ebp
cmp edi, ebp
jne 0x40c130
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x10]
mov edi, dword [esp + 0x24]
and edi, 0xfffffffc
and ecx, 3
xor eax, eax
cmp ecx, 1
je 0x40c1be
cmp ecx, 2
je 0x40c1b4
cmp ecx, 3
jne 0x40c1cc
movsx eax, byte [ebx + edi + 2]
shl eax, 0x10
movsx ecx, byte [ebx + edi + 1]
shl ecx, 8
xor eax, ecx
movsx ecx, byte [ebx + edi]
xor ecx, eax
imul eax, ecx, 0x5bd1e991
xor esi, eax
mov eax, esi
shr eax, 0xd
xor eax, esi
imul ecx, eax, 0x5bd1e991
mov eax, ecx
shr eax, 0xf
xor eax, ecx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4035bc
Capabilities:
Terminate process

Disassembly:
jmp 0x453cc3
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x453cd4
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004058c1
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret
Function at 0x402600
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b222
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
push dword [ebp + 0x20]
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.00405930
push dword [ebp + 0x24]
lea ecx, [edi + 0x18]
mov dword [ebp - 4], 0
call fcn.00405930
push dword [ebp + 0x18]
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 1
call fcn.00405930
push dword [ebp + 0x1c]
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 2
call fcn.00405930
push dword [ebp + 0x14]
lea ecx, [edi + 0x60]
mov byte [ebp - 4], 3
call fcn.00405930
lea esi, [edi + 0x78]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
push dword [ebp + 0x10]
lea ecx, [edi + 0x90]
mov byte [ebp - 4], 5
call fcn.00405930
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 6
mov byte [edi + 0xa8], 0x20
mov dword [edi + 0xac], 0xffffffff
mov dword [edi + 0xb0], eax
test al, 1
jne 0x402737
mov edi, dword [edi + 0x28]
sub edi, 1
js 0x40270e
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x2c], 0xf
lea eax, [edx + 0x18]
jbe 0x4026d0
mov eax, dword [edx + 0x18]
cmp byte [eax + edi], 0xa
je 0x402723
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x4026f7
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0xf
jbe 0x4026ef
mov eax, dword [esi]
mov word [eax + ecx], 0x20
jmp 0x402709
push 0x20
mov byte [ebp + 0x20], 0
mov ecx, esi
push dword [ebp + 0x20]
push 1
call fcn.00409380
sub edi, 1
jns 0x4026c1
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x24
pop edi
mov eax, edx
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x24
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x403d70
Capabilities:
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov ecx, dword [0x438eb4]
mov eax, dword [0x438eb0]
push esi
xor esi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], ecx
push edi
mov edi, dword [0x438eb8]
test ecx, ecx
jne 0x403e39
xor eax, eax
xor edx, edx
test edi, edi
je 0x403ddc
mov eax, edi
imul eax, ecx
test eax, eax
jle 0x403dd0
mov ecx, eax
call fcn.0040a030
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ecx
mov eax, ecx
mov dword [esp + 0x2c], edi
mov edx, edi
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x1c]
imul eax, edx
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0xf]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], ecx
xor ecx, ecx
mov dword [esp + 0x10], eax
cdq
sub eax, edx
mov dword [esp + 0x1c], esi
mov edx, eax
and edx, 0xfffffffe
test edx, edx
jle 0x403e56
nop dword [eax]
mov eax, dword [esp + 0x14]
movups xmm0, xmmword [eax + ecx*8]
movups xmmword [esi + ecx*8], xmm0
add ecx, 2
cmp ecx, edx
jge 0x403e56
mov esi, dword [esp + 0x1c]
jmp 0x403e20
test edi, edi
je 0x403db6
mov eax, 0x7fffffff
cdq
idiv edi
cmp ecx, eax
jg 0x403f75
jmp 0x403db6
push dword [esp + 0x10]
lea ecx, [esp + 0x34]
call fcn.0040a090
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.cryplibtouch.dll_null_matrix]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add esp, 8
xorps xmm0, xmm0
mov dword [esp + 0x58], 0
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x6c], xmm0
push 0
movlpd qword [esp + 0x78], xmm0
mov dword [esp + 0x60], 0x403960
call esi
mov dword [esp + 0x68], eax
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x80], str.EigenMatrixWindowClass
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0
push 0
call esi
push eax
push 0
push 0
push 0x258
push 0x320
push 0x80000000
push 0x80000000
push 0xcf0000
push str.EigMat_Calculator
push str.EigenMatrixWindowClass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x438e94], eax
test eax, eax
je 0x403f58
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x30]
push 0
push 0
xorps xmm0, xmm0
mov dword [esp + 0x50], 0
push 0
push eax
movaps xmmword [esp + 0x40], xmm0
movq qword [esp + 0x50], xmm0
call esi
test eax, eax
je 0x403f58
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x30]
push eax
call edi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x3c]
push eax
call esi
test eax, eax
jne 0x403f35
mov eax, dword [esp + 0x24]
test eax, eax
je 0x403f6b
push dword [eax - 4]
call fcn.00415f38
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
call fcn.00402210
int3
Function at 0x407820
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42b1b0
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.0040eafb
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0040e16f
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.004077c0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40f498
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40f4d7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40f4d7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f4d7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40f4d7
cmp dword [ecx + 0x74], 0xe
jbe 0x40f4d7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41e246
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430020
push 0x430018
push str.FlsAlloc
push 0x1f
call fcn.0041e10e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e27a
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c194]
call esi
jmp 0x41e280
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41e2c4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430030
push 0x430028
push str.FlsGetValue
push 0x21
call fcn.0041e10e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e2fb
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c194]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41e303
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430038
push 0x430030
push str.FlsSetValue
push 0x22
call fcn.0041e10e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e33d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42c194]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41ea42
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040f8f0
mov eax, dword [0x437080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041b192
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ea84
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41ebe0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042ac80
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x438a68]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00420230
mov ecx, dword [esi*4 + 0x438a68]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x41ebd9
cmp eax, dword [ecx + edi + 0x24]
jne 0x41ebd9
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ebd9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00420230
add esp, 0x14
test edx, edx
jl 0x41ebd9
jg 0x41eb4f
test eax, eax
jb 0x41ebd9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41ebd9
jl 0x41eb69
cmp dword [ebp - 0x1008], eax
ja 0x41ebd9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41eb87
test ebx, ebx
je 0x41ebc0
cmp ecx, edi
jae 0x41ebc0
mov al, byte [ecx]
cmp al, 0xd
jne 0x41eba1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41ebad
cmp byte [ecx + 1], 0xa
jne 0x41ebad
inc ecx
jmp 0x41ebad
movzx eax, al
movsx eax, byte [eax + 0x437340]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41eb87
cmp edx, ebx
jne 0x41eb87
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41ebde
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040eff8
leave
ret