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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x426800
cmp edx, dword [eax]
je 0x40d07b
add eax, 8
inc ecx
cmp eax, 0x426890
jl 0x40d06c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x426800]
jne 0x40d1a9
mov eax, dword [0x42c24c]
cmp eax, 1
je 0x40d183
test eax, eax
jne 0x40d0ac
cmp dword [0x425f0c], 1
je 0x40d183
cmp edx, 0xfc
je 0x40d1a9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d0e3
lea eax, [ebp - 0x1a4]
push 0x42070c
push eax
call fcn.0040b7c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409080
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40d126
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409080
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x420708
push edi
call fcn.0040ef20
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4206ec
push eax
call fcn.0040b7c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040b7d0
lea eax, [ebp - 0xa0]
push 0x4206e8
push eax
call fcn.0040b7d0
push dword [esi + 0x426804]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040b7d0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4206c0
push eax
call fcn.0040f822
add esp, 0x2c
pop edi
jmp 0x40d1a9
lea eax, [ebp + 8]
lea esi, [esi + 0x426804]
push 0
push eax
push dword [esi]
call fcn.00409080
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4140a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00409100
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41416b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41416b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41411e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x414129
or bh, 8
and edi, 0x8000000
je 0x414144
mov eax, dword [0x42d9dc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41416b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414540
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41456b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41458f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4145aa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x414742
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x414762
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004098c0
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x414785
test byte [esp + 8], 2
je 0x414785
call fcn.00409933
mov dword [eax], 0xd
call fcn.0040993c
mov dword [eax], 5
jmp 0x41475e
xor eax, eax
ret
Function at 0x417cb2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x417cf4
call fcn.0041b526
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x417cf4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x417ceb
xor eax, eax
jmp 0x417cfc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00417d02
pop edi
pop esi
pop ebx
ret 4

Function at 0x41c389
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41c3b7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41c3d5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041c2ef
jmp 0x41c3d5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41c3d5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041c2ef
test edi, edi
mov eax, edi
jne 0x41c3bf
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40b08a
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
mov eax, dword [ebp + 8]
and dword [eax + 0x10], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
pop ebp
ret

Function at 0x40b0c4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1060
call fcn.0040b970
lea eax, [ebp - 0x58]
push eax
call fcn.0040b08a
pop ecx
push dword [ebp + 8]
push 0x1000
push 1
lea eax, [ebp - 0x105c]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov dword [ebp - 0x1060], eax
cmp dword [ebp - 0x1060], 0
jbe 0x40b11f
push dword [ebp - 0x1060]
lea eax, [ebp - 0x105c]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00409f89
add esp, 0xc
jmp 0x40b0db
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
and eax, 0x20
test eax, eax
je 0x40b135
mov dword [ebp - 0x5c], 3
jmp 0x40b147
push dword [ebp + 0xc]
lea eax, [ebp - 0x58]
push eax
call fcn.0040afc8
pop ecx
pop ecx
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x5c]
leave
ret

Function at 0x40b99f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c0f8
push 0x40bae0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x410f34], 0xffffffff
or dword [0x410f38], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x410f30]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x410f2c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x410f3c], eax
call fcn.0040bad1
cmp dword [0x410da0], 0
jne 0x40ba22
push 0x40bace
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040babc
push 0x40d00c
push 0x40d008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x410f28]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x410f24]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x40d004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call section..text
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x4018a0
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp + 0x14], edi
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
mov esi, dword [edi + 0xf0]
lea esi, [esi + esi - 2]
lea esi, [edi + esi*8]
mov dword [esp + 0x18], esi
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 3]
mov edi, ecx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, edx
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
shr ebx, 0x10
mov esi, dword [ebp + esi*8]
movzx edi, ch
xor esi, dword [ebp + edi*8 + 3]
mov edi, edx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, eax
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
shr ecx, 0x18
mov esi, dword [ebp + esi*8]
movzx edi, dh
xor esi, dword [ebp + edi*8 + 3]
mov edi, eax
shr edi, 0x10
and edx, 0xff
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 1]
mov edi, dword [esp + 0x14]
mov edx, dword [ebp + edx*8]
movzx eax, ah
xor edx, dword [ebp + eax*8 + 3]
mov eax, dword [esp + 4]
and ebx, 0xff
xor edx, dword [ebp + ebx*8 + 2]
mov ebx, dword [esp + 8]
xor edx, dword [ebp + ecx*8 + 1]
mov ecx, esi
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
cmp edi, dword [esp + 0x18]
mov dword [esp + 0x14], edi
jb 0x4018c0
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, bh
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, ecx
shr edi, 0x10
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
mov edi, edx
shr edi, 0x18
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
shr ebx, 0x10
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, ch
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
mov edi, eax
shr edi, 0x18
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
shr ecx, 0x18
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, dh
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, eax
shr edi, 0x10
and edx, 0xff
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
movzx edi, bh
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov edi, dword [esp + 0x14]
and edx, 0xff
mov edx, dword [ebp + edx*8 + 2]
and edx, 0xff
movzx eax, ah
mov eax, dword [ebp + eax*8]
and eax, 0xff00
xor edx, eax
mov eax, dword [esp + 4]
and ebx, 0xff
mov ebx, dword [ebp + ebx*8]
and ebx, 0xff0000
xor edx, ebx
mov ebx, dword [esp + 8]
mov ecx, dword [ebp + ecx*8 + 2]
and ecx, 0xff000000
xor edx, ecx
mov ecx, esi
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
ret
Function at 0x407130
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
test eax, eax
je 0x4073dc
test edx, edx
je 0x4073dc
movups xmm0, xmmword [eax]
xorps xmm4, xmm4
lea edx, [edx + 0x10]
cmp ecx, 0x100
je 0x4072f0
cmp ecx, 0xc0
je 0x407210
cmp ecx, 0x80
jne 0x4073e4
lea ecx, [ecx]
mov ecx, 9
movups xmmword [edx - 0x10], xmm0
aeskeygenassist xmm1, xmm0, 1
call fcn.004071f6
aeskeygenassist xmm1, xmm0, 2
call fcn.004071f0
aeskeygenassist xmm1, xmm0, 4
call fcn.004071f0
aeskeygenassist xmm1, xmm0, 8
call fcn.004071f0
aeskeygenassist xmm1, xmm0, 0x10
call fcn.004071f0
aeskeygenassist xmm1, xmm0, 0x20
call fcn.004071f0
aeskeygenassist xmm1, xmm0, 0x40
call fcn.004071f0
aeskeygenassist xmm1, xmm0, 0x80
call fcn.004071f0
aeskeygenassist xmm1, xmm0, 0x1b
call fcn.004071f0
aeskeygenassist xmm1, xmm0, 0x36
call fcn.004071f0
movups xmmword [edx], xmm0
mov dword [edx + 0x50], ecx
xor eax, eax
ret
movq xmm2, qword [eax + 0x10]
mov ecx, 0xb
movups xmmword [edx - 0x10], xmm0
aeskeygenassist xmm1, xmm2, 1
call fcn.00407290
aeskeygenassist xmm1, xmm2, 2
call fcn.004072d0
aeskeygenassist xmm1, xmm2, 4
call fcn.00407280
aeskeygenassist xmm1, xmm2, 8
call fcn.004072d0
aeskeygenassist xmm1, xmm2, 0x10
call fcn.00407280
aeskeygenassist xmm1, xmm2, 0x20
call fcn.004072d0
aeskeygenassist xmm1, xmm2, 0x40
call fcn.00407280
aeskeygenassist xmm1, xmm2, 0x80
call fcn.004072d0
movups xmmword [edx], xmm0
mov dword [edx + 0x30], ecx
xor eax, eax
ret
movups xmm2, xmmword [eax + 0x10]
mov ecx, 0xd
lea edx, [edx + 0x10]
movups xmmword [edx - 0x20], xmm0
movups xmmword [edx - 0x10], xmm2
aeskeygenassist xmm1, xmm2, 1
call fcn.004073a6
aeskeygenassist xmm1, xmm0, 1
call fcn.004073c0
aeskeygenassist xmm1, xmm2, 2
call fcn.004073a0
aeskeygenassist xmm1, xmm0, 2
call fcn.004073c0
aeskeygenassist xmm1, xmm2, 4
call fcn.004073a0
aeskeygenassist xmm1, xmm0, 4
call fcn.004073c0
aeskeygenassist xmm1, xmm2, 8
call fcn.004073a0
aeskeygenassist xmm1, xmm0, 8
call fcn.004073c0
aeskeygenassist xmm1, xmm2, 0x10
call fcn.004073a0
aeskeygenassist xmm1, xmm0, 0x10
call fcn.004073c0
aeskeygenassist xmm1, xmm2, 0x20
call fcn.004073a0
aeskeygenassist xmm1, xmm0, 0x20
call fcn.004073c0
aeskeygenassist xmm1, xmm2, 0x40
call fcn.004073a0
movups xmmword [edx], xmm0
mov dword [edx + 0x10], ecx
xor eax, eax
ret
mov eax, 0xffffffff
ret
mov eax, 0xfffffffe
ret

Function at 0x407410
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
call fcn.00407130
mov edx, dword [esp + 0xc]
shl ecx, 4
test eax, eax
jne 0x407471
lea eax, [edx + ecx + 0x10]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [eax]
movups xmmword [eax], xmm0
movups xmmword [edx], xmm1
lea edx, [edx + 0x10]
lea eax, [eax - 0x10]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [eax]
aesimc xmm0, xmm0
aesimc xmm1, xmm1
lea edx, [edx + 0x10]
lea eax, [eax - 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmmword [edx - 0x10], xmm1
cmp eax, edx
ja 0x407442
movups xmm0, xmmword [edx]
aesimc xmm0, xmm0
movups xmmword [edx], xmm0
xor eax, eax
ret
Function at 0x409840
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
call fcn.00409849

Function at 0x40b740
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push esi
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, esp
call fcn.0040b757

Function at 0x40bb40
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push esi
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, esp
call fcn.0040bb57

Function at 0x40f0d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
mov edi, edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp dword [edi + 0x14], 8
mov ebx, eax
jb 0x40f0ed
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x40f0f5
mov esi, dword [esi]
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40f13d
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40f136
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x40f136
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, ebx
mov ecx, eax
call fcn.0040f150
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov al, 1
pop ebx
pop ecx
pop ebp
ret
Function at 0x4118b0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58fe4c
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x5f1414]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x27c], 0
call fcn.004123e0
mov esi, eax
mov dword [ebp - 0x234], 7
xor eax, eax
mov dword [ebp - 0x238], 0
cmp word [str.UserDataFilePath], ax
mov ecx, 0x10
mov word [ebp - 0x248], ax
cmove ecx, eax
push ecx
push str.UserDataFilePath
lea ecx, [ebp - 0x248]
call fcn.00410890
lea eax, [ebp - 0x248]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x260]
mov ecx, esi
push eax
call fcn.00412ea0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x411969
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00411000
xor eax, eax
mov dword [ebp - 0x234], 7
push 0x208
push eax
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x238], 0
call fcn.005619c0
add esp, 0xc
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 8
cmovae eax, dword [ebp - 0x260]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x5db124
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411a49
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x411a0c
xor ecx, ecx
jmp 0x411a24
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411a15
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00410890
cmp dword [ebp - 0x220], 0
mov eax, 1
jbe 0x411a4f
mov bl, al
jmp 0x411a51
mov eax, dword [ebp - 0x27c]
xor bl, bl
test al, 1
je 0x411a73
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x411a73
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00411000
test bl, bl
je 0x411b38
test esi, esi
je 0x411b38
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x278]
call fcn.0040f470
push str.InstallPath
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call fcn.0040f470
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x280]
mov ecx, esi
push eax
call fcn.004135f0
mov ecx, dword [ebp - 0x280]
lea eax, [ebp - 0x278]
add ecx, 0x28
cmp ecx, eax
je 0x411adf
push 0xffffffffffffffff
push 0
push eax
call fcn.00410a40
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x411afd
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00411000
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x220], 0
cmp eax, 8
jb 0x411b38
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.00411000
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x411b56
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00411000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fb4f0
mov esp, ebp
pop ebp
ret
Function at 0x4165c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4165d9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x416616
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x416612
nop word [eax + eax]
cmp esi, edx
jae 0x416616
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x416600
cmp esi, edx
jb 0x41661d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x41a920
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x888
mov eax, dword [0x5f1414]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push 0x820
lea eax, [ebp - 0x82c]
mov esi, ecx
push 0
push eax
call fcn.005619c0
add esp, 0xc
test esi, esi
je 0x41a965
push esi
lea eax, [ebp - 0x82c]
push 0x40f
push eax
call fcn.0056f5c6
add esp, 0xc
push 0x5dbb00
lea eax, [ebp - 0x82c]
push 0x40f
push eax
call fcn.0056f6c8
push 0x5db124
lea eax, [ebp - 0x82c]
push 0x40f
push eax
call fcn.0056f6c8
push 0x44
lea eax, [ebp - 0x884]
push 0
push eax
call fcn.005619c0
add esp, 0x24
mov dword [ebp - 0x858], 0x101
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x854], ax
lea eax, [ebp - 0x83c]
movups xmmword [ebp - 0x83c], xmm0
push eax
lea eax, [ebp - 0x884]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x82c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41a9ff
xor eax, eax
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004fb4f0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.004fb4f0
mov esp, ebp
pop ebp
ret