joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a5d4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a613
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a613
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a613
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a613
cmp dword [ecx + 0x74], 0xe
jbe 0x40a613
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4180d7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b2e0
push 0x42b2d8
push str.FlsAlloc
push 0x1e
call fcn.00417f44
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41810b
push dword [ebp + 8]
mov ecx, esi
call dword [0x427144]
call esi
jmp 0x418111
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x418155
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b2f0
push 0x42b2e8
push str.FlsGetValue
push 0x20
call fcn.00417f44
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41818c
push dword [ebp + 8]
mov ecx, esi
call dword [0x427144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x419873
Capabilities:
Read file on windows

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

Function at 0x41987e
Capabilities:
Read file on windows

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

Function at 0x419c78
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a950
mov eax, dword [0x465c80]
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.0041870a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x419cba
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x419e16
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00409ca0
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 + 0x4679f8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041ae48
mov ecx, dword [esi*4 + 0x4679f8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x419e0f
cmp eax, dword [edi + ecx + 0x24]
jne 0x419e0f
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419e0f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041ae48
add esp, 0x14
test edx, edx
jl 0x419e0f
jg 0x419d85
test eax, eax
jb 0x419e0f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x419e0f
jl 0x419d9f
cmp dword [ebp - 0x1008], eax
ja 0x419e0f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x419dbd
test ebx, ebx
je 0x419df6
cmp ecx, edi
jae 0x419df6
mov al, byte [ecx]
cmp al, 0xd
jne 0x419dd7
lea eax, [edi - 1]
cmp ecx, eax
jae 0x419de3
cmp byte [ecx + 1], 0xa
jne 0x419de3
inc ecx
jmp 0x419de3
movzx eax, al
movsx eax, byte [eax + 0x465f30]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x419dbd
cmp edx, ebx
jne 0x419dbd
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x419e14
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409c84
leave
ret
Function at 0x41a2e6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4679f8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41a326
cmp byte [ebx], 0xa
jne 0x41a326
or byte [eax + edi + 0x28], 4
jmp 0x41a32b
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41a429
mov al, byte [edx]
cmp al, 0x1a
je 0x41a40b
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41a35a
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41a37f
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41a389
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41a33c
jmp 0x41a429
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a406
cmp dword [ebp - 0xc], 0
je 0x41a406
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4679f8]
test byte [eax + edi + 0x28], 0x48
je 0x41a3e0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41a3cb
mov byte [esi], dl
jmp 0x41a3dc
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4679f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41a429
cmp byte [ebp - 1], 0xa
jne 0x41a3ef
cmp esi, ebx
jne 0x41a3ef
mov byte [esi], 0xa
jmp 0x41a428
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041ae66
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41a429
mov byte [esi], 0xd
jmp 0x41a428
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4679f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41a425
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41a429
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41a432
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4679f8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41a475
cmp word [esi], dx
jne 0x41a475
or byte [edi + eax + 0x28], 4
jmp 0x41a47a
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41a5cd
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41a5ad
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41a4bc
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41a4f2
cmp eax, edx
jae 0x41a4fe
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41a494
jmp 0x41a5cd
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a5a9
cmp dword [ebp - 0x14], 0
je 0x41a5a9
mov eax, dword [ebx*4 + 0x4679f8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41a581
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41a54a
mov word [esi], cx
jmp 0x41a57d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4679f8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4679f8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4679f8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41a5cd
pop ebx
cmp word [ebp - 4], bx
jne 0x41a592
cmp esi, dword [ebp + 0xc]
jne 0x41a592
mov word [esi], bx
jmp 0x41a5ca
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041ae66
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41a5cd
push 0xd
jmp 0x41a5c6
mov ecx, dword [ebx*4 + 0x4679f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41a5c4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41a5cd
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e423
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41e4c0
push ebx
push esi
call fcn.0041e3ec
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041d071
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41e46d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e4bf
push edi
push eax
call fcn.0041b045
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41e48d
call fcn.00417a6c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e4be
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041d071
add esp, 0x20
test eax, eax
jne 0x41e4ac
push edi
call fcn.00417a6c
jmp 0x41e4b4
push ebx
call fcn.00417a6c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x425c40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425c6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425c6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4058d0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, ecx
test eax, eax
je 0x405923
mov eax, dword [edi + 4]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, edi
mov esi, eax
call fcn.00404ff0
test eax, eax
mov eax, esi
je 0x4058fe
not eax
and eax, 1
jmp 0x405907
shr eax, 0x14
and eax, 1
shr esi, 0x15
and esi, 1
test eax, eax
jne 0x405912
test esi, esi
je 0x40592f
mov ecx, dword [edi + 0x10]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret 4
mov edx, dword [edi + 0x10]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret 4
Function at 0x408530
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dl, byte [ebp + 0x18]
mov ah, 0
cmp byte [ebp + 0x14], 0
jne 0x40854c
xor ah, 0xff
shr ecx, 3
je 0x408583
cmp byte [ebx], dl
rcl al, 1
cmp byte [ebx + 1], dl
rcl al, 1
cmp byte [ebx + 2], dl
rcl al, 1
cmp byte [ebx + 3], dl
rcl al, 1
cmp byte [ebx + 4], dl
rcl al, 1
cmp byte [ebx + 5], dl
rcl al, 1
cmp byte [ebx + 6], dl
rcl al, 1
cmp byte [ebx + 7], dl
rcl al, 1
xor al, ah
mov byte [edi], al
add ebx, 8
inc edi
dec ecx
jne 0x408551
mov ecx, dword [ebp + 0x10]
and ecx, 7
je 0x40859f
mov dh, cl
cmp byte [ebx], dl
rcl al, 1
loop 0x40858d
mov cx, 8
sub cl, dh
shl al, cl
xor al, ah
mov byte [edi], al
pop edi
pop ebx
pop ebp
ret

Function at 0x408910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov ax, word [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ah, al
mov ecx, dword [ebp + 0x10]
shr ecx, 2
je 0x408936
mov ebx, eax
shl eax, 0x10
mov ax, bx
xor dword [edi], eax
add edi, 4
dec ecx
jne 0x40892e
mov ecx, dword [ebp + 0x10]
and ecx, 3
je 0x408944
xor byte [edi], al
inc edi
dec ecx
jne 0x40893e
pop edi
pop ebx
pop ebp
ret
Function at 0x409be0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x42df60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
push 0xa
lea ecx, [esi + 0x14]
mov dword [esp + 0x24], 1
call sub.MFC42.DLL_CPtrList::CPtrList
push 0xa
lea ecx, [esi + 0x30]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CPtrList::CPtrList
lea edi, [esi + 0x4c]
mov byte [esp + 0x20], 3
mov ecx, edi
call sub.MFC42.DLL_CString::CString_1
lea ebp, [esi + 0x50]
mov byte [esp + 0x20], 4
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x64]
mov byte [esp + 0x20], 5
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x7c]
mov byte [esp + 0x20], 6
call sub.MFC42.DLL_CString::CString_1
push 0xa
lea ecx, [esi + 0x84]
mov byte [esp + 0x24], 7
call sub.MFC42.DLL_CPtrList::CPtrList
lea ecx, [esi + 0xa0]
mov byte [esp + 0x20], 8
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esi + 0xcc]
mov byte [esp + 0x20], 9
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0xdc]
mov byte [esp + 0x20], 0xa
call sub.MFC42.DLL_CPtrArray::CPtrArray
lea ecx, [esi + 0xf0]
mov byte [esp + 0x20], 0xb
call sub.MFC42.DLL_CPtrArray::CPtrArray
lea ecx, [esi + 0x104]
mov byte [esp + 0x20], 0xc
call sub.MFC42.DLL_CPtrArray::CPtrArray
lea eax, [esp + 0x28]
xor ebx, ebx
push eax
mov ecx, edi
mov byte [esp + 0x24], 0xd
mov dword [esi], ebx
mov dword [esi + 0x6c], ebx
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebp
call sub.MFC42.DLL_CString::operator
or edi, 0xffffffff
mov dword [esi + 0x80], ebx
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x78], ebx
push 0xa0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x20], 0xe
je 0x409d20
push ebx
mov ecx, eax
call fcn.004072f0
jmp 0x409d22
xor eax, eax
cmp eax, ebx
mov byte [esp + 0x20], 0xd
mov dword [esi + 0x78], eax
je 0x409d68
push ebx
push 0x99
mov ecx, eax
call sub.MFC42.DLL_CDialog::Create
test eax, eax
je 0x409d57
mov ecx, dword [esi + 0x78]
push ebx
call sub.MFC42.DLL_CWnd::ShowWindow
mov eax, dword [esi + 0x78]
mov edx, dword [eax + 0x20]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x409d68
mov ecx, dword [esi + 0x78]
cmp ecx, ebx
je 0x409d65
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x78], ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], bl
call fcn.0042d5b2
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], edi
call fcn.0042d5b2
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x409db0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x42e006
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 0x14]
mov dword [esp + 0x18], 0xb
push edi
call fcn.0040a1e0
lea ebx, [esi + 0x30]
mov ecx, esi
push ebx
call fcn.0040a1e0
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x409df9
mov eax, dword [ecx]
push 1
call dword [eax + 4]
lea ecx, [esi + 0x104]
mov byte [esp + 0x18], 0xa
call fcn.0042d5fa
lea ecx, [esi + 0xf0]
mov byte [esp + 0x18], 9
call fcn.0042d5fa
lea ecx, [esi + 0xdc]
mov byte [esp + 0x18], 8
call fcn.0042d5fa
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 7
call fcn.0042d5b2
lea ecx, [esi + 0xa0]
mov byte [esp + 0x18], 6
call fcn.0042d600
lea ecx, [esi + 0x84]
mov byte [esp + 0x18], 5
call fcn.0042d606
lea ecx, [esi + 0x7c]
mov byte [esp + 0x18], 4
call fcn.0042d5b2
lea ecx, [esi + 0x64]
mov byte [esp + 0x18], 3
call fcn.0042d5b2
lea ecx, [esi + 0x50]
mov byte [esp + 0x18], 2
call fcn.0042d5b2
lea ecx, [esi + 0x4c]
mov byte [esp + 0x18], 1
call fcn.0042d5b2
mov ecx, ebx
mov byte [esp + 0x18], 0
call fcn.0042d606
mov ecx, edi
mov dword [esp + 0x18], 0xffffffff
call fcn.0042d606
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x419f50
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x1f4]
mov eax, dword [esi + 0x1f8]
mov dword [esi + 0x1f8], ecx
mov dword [esi + 0x1f4], eax
mov edx, dword [esi + 0x208]
mov eax, dword [esi + 0x200]
mov dword [esi + 0x200], edx
mov dword [esi + 0x208], eax
mov ecx, dword [esi + 0x20c]
mov eax, dword [esi + 0x204]
mov dword [esi + 0x204], ecx
mov dword [esi + 0x20c], eax
mov ecx, dword [esi + 0x1bc]
mov edi, dword [esi + 0x214]
call fcn.0040a660
test edi, edi
mov dword [esi + 0x214], eax
je 0x419fca
mov ecx, edi
call fcn.00409b40
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ebp, dword [esi + 0x214]
test ebp, ebp
je 0x41a0b9
mov edi, dword [ebp]
mov eax, dword [esi + 0x33c]
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x41a009
test cl, cl
je 0x41a005
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x41a009
add eax, 2
add edi, 2
test cl, cl
jne 0x419fe1
xor eax, eax
jmp 0x41a00e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41a074
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push ebp
call sub.MFC42.DLL_CString::CString
mov ecx, esi
call fcn.00418440
test eax, eax
je 0x41a094
mov ecx, dword [esi + 0x1f4]
mov eax, dword [esi + 0x1f8]
mov dword [esi + 0x1f8], ecx
mov dword [esi + 0x1f4], eax
mov edx, dword [esi + 0x208]
mov eax, dword [esi + 0x200]
mov dword [esi + 0x200], edx
mov dword [esi + 0x208], eax
mov ecx, dword [esi + 0x20c]
mov eax, dword [esi + 0x204]
mov dword [esi + 0x204], ecx
mov dword [esi + 0x20c], eax
jmp 0x41a094
mov eax, dword [esi + 0x1f8]
test eax, eax
je 0x41a085
mov ecx, dword [eax + 0x74]
test ecx, ecx
jne 0x41a094
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esi + 0x1f0]
push 1
call fcn.0040c4a0
mov edx, dword [esi + 0x1f8]
mov ecx, dword [esi + 0x1f0]
push 0
push 0
push 0xf
push edx
call fcn.0040cc40
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x41dd40
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x48
push ebx
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push edi
mov esi, ecx
xor edi, edi
mov dword [esi], 0x431d90
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
cmp dword [0x439320], edi
jne 0x41dd8b
lea eax, [esp + 0xc]
push eax
call ebx
mov eax, dword [esp + 0x10]
cmp eax, edi
mov dword [0x439320], eax
jne 0x41dd8b
mov dword [0x439320], 0x1000
lea ecx, [esp + 0x30]
mov dword [esi + 0x18], edi
push ecx
mov dword [esi + 0x1c], edi
call ebx
mov edx, dword [esp + 0x4c]
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x20], edx
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x48
ret
Function at 0x41f030
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432378
push 0x42d0b4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x54], ecx
xor edi, edi
mov dword [ebp - 0x28], edi
mov esi, dword [ecx + 8]
add esi, dword [ebp + 8]
mov ecx, dword [0x439320]
cmp ecx, edi
jne 0x41f090
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x4c]
mov dword [0x439320], ecx
cmp ecx, edi
jne 0x41f090
mov ecx, 0x1000
mov dword [0x439320], ecx
lea eax, [ecx - 1]
not eax
and eax, esi
mov edx, dword [ebp + 0xc]
add esi, edx
mov dword [ebp - 4], edi
cmp eax, esi
jae 0x41f0b1
xor edx, edx
mov dl, byte [eax]
mov dword [ebp - 0x20], edx
add eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x41f09f
mov dword [ebp - 0x28], 1
jmp 0x41f0ca
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41fb50
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x42f686
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
mov eax, dword [esp + 0xc0]
push ebx
push ebp
push esi
mov ebp, ecx
push eax
call sub.MFC42.DLL_CWnd::GetDlgItem
mov esi, eax
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x24], esi
je 0x41fd16
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x14]
push edi
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
mov esi, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0x432750
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xc8], ebx
cmp eax, ebx
je 0x41fbdd
push 0xff
push 1
push ebx
call dword [sym.imp.GDI32.dll_CreatePen]
jmp 0x41fc31
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x30], 5
jne 0x41fc09
cmp dword [esp + 0x34], 1
jne 0x41fc09
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
jmp 0x41fc0e
push 0xc0c0c0
mov edi, dword [sym.imp.GDI32.dll_CreatePen]
push 1
push ebx
call edi
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
cmp dword [ebp + 0x94], ebx
je 0x41fc3b
push ebx
push 1
push ebx
call edi
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [esi + 4]
push eax
push edx
call edi
push 5
mov dword [0x43934c], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
mov eax, dword [esi + 4]
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_InflateRect]
push 0xfffffffffffffffe
lea ecx, [esp + 0x1c]
push 0xfffffffffffffffe
push ecx
mov dword [0x439344], eax
call ebx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.GDI32.dll_Rectangle]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call ebp
push 1
lea ecx, [esp + 0x1c]
push 1
push ecx
call ebx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call ebp
mov ecx, dword [0x43934c]
mov edx, dword [esi + 4]
push ecx
push edx
call edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov eax, dword [0x439344]
mov ecx, dword [esi + 4]
push eax
push ecx
call edi
mov eax, dword [esp + 0x28]
mov edx, dword [esi + 4]
push edx
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov dword [esp + 0x10], 0x431dc8
lea ecx, [esp + 0x10]
mov dword [esp + 0xc8], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
pop edi
mov ecx, dword [esp + 0xbc]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xbc
ret 8