joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101837d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, 0x1028ab99
push ebx
push esi
push edi
call fcn.10193940
cmp dword [0x1025d258], 0
je 0x10183997
mov eax, dword [0x102648ac]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x10183997
xor ebx, ebx
mov dword [ebp - 4], ebx
test ecx, ecx
jle 0x10183997
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, dword [eax]
add esi, ecx
mov ecx, dword [esi]
test ecx, ecx
je 0x10183981
mov eax, dword [ecx]
mov eax, dword [eax + 0x260]
call eax
test al, al
je 0x1018397c
mov edi, dword [esi]
mov eax, dword [0x102649fc]
cmp byte [eax + edi], 0
jne 0x1018397c
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 0x28]
call eax
lea ebx, [eax - 1]
cmp ebx, 0x800
jb 0x1018389f
push str.array_subscript_out_of_range
push 0x101ad5ac
push 0
push 0x22f
push 0x101ade30
push 2
call dword [sym.imp.ucrtbased.dll__CrtDbgReport]
add esp, 0x18
cmp eax, 1
jne 0x10183880
int3
push 0
push 0x22f
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.32.31326include_array
push 0x101ad6dc
push str._array_subscript_out_of_range_
call dword [sym.imp.ucrtbased.dll__invalid_parameter]
add esp, 0x14
mov edx, dword [0x1027d6c4]
mov eax, dword [0x1025d258]
add edx, 0xffffffd5
xor edx, 0x7d97e686
mov ecx, dword [edx + edi]
cmp ecx, dword [edx + eax]
jne 0x101838f6
mov ecx, dword [0x10264914]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
test eax, eax
jne 0x101838f6
movss xmm3, dword [0x1026fa38]
mulss xmm3, dword [0x1023217c]
cmp byte [0x1026f78c], al
je 0x10183979
mov eax, dword [0x1026f8e4]
movzx edx, word [0x1026f8e6]
jmp 0x1018391b
cmp byte [0x1026f6f4], 0
movss xmm3, dword [0x1026f968]
mulss xmm3, dword [0x1023217c]
je 0x10183979
mov eax, dword [0x1026f844]
movzx edx, word [0x1026f846]
movss xmm4, dword [0x10232170]
mov ecx, eax
movzx eax, al
shr ecx, 8
mov word [esi + 0x24], 1
mov byte [esi + 0x26], 0
movd xmm2, eax
movzx eax, cl
cvtdq2ps xmm2, xmm2
movd xmm1, eax
movzx eax, dl
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm2, xmm4
mulss xmm1, xmm4
mulss xmm0, xmm4
movss dword [esi + 4], xmm2
movss dword [esi + 8], xmm1
movss dword [esi + 0xc], xmm0
mulss xmm3, dword [ebx*4 + 0x10281880]
movss dword [esi + 0x10], xmm3
mov ebx, dword [ebp - 4]
mov eax, dword [0x102648ac]
mov ecx, dword [ebp - 8]
inc ebx
add ecx, 0x38
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ecx
cmp ebx, dword [eax + 0xc]
jl 0x10183812
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101882f0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a8985
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x102480b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0xc]
mov ecx, 0x1028aaef
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], ebx
call fcn.10193940
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor ecx, eax
movzx eax, byte [esi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.1018a810
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10188384
mov dword [ebx], eax
mov byte [ebx + 4], 0
jmp 0x101884cb
cmp dword [edi + 0xc], 0xfffffff
jne 0x10188398
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140D.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [edi + 4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
push 0x10
mov dword [ebp - 0x24], 0
call fcn.10191600
mov ecx, dword [ebp - 0x10]
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov ecx, dword [ecx]
mov dword [esi + 8], ecx
mov byte [esi + 0xc], 0
mov dword [ebp - 4], 1
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x24]
inc eax
movss xmm3, dword [edi]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10232500]
mov eax, ecx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x10232500]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x1018847e
divss xmm2, xmm3
sub esp, 8
movss dword [ebp - 0x10], xmm2
fld dword [ebp - 0x10]
fstp qword [esp]
call sub.ucrtbased.dll_ceil
add esp, 8
fstp dword [ebp - 0x10]
movss xmm0, dword [ebp - 0x10]
call fcn.10193c50
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [edi + 0x24]
cmp eax, ecx
jae 0x1018845f
cmp eax, 0x200
jae 0x1018845d
shl eax, 3
cmp eax, ecx
jae 0x1018845f
mov eax, ecx
push eax
mov ecx, edi
call fcn.10189070
mov ebx, dword [ebp - 0x14]
lea eax, [esi + 8]
push ebx
push eax
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.1018a810
mov edx, dword [eax]
jmp 0x10188484
mov edx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
inc dword [edi + 0xc]
mov dword [esi + 4], eax
mov dword [esi], edx
mov dword [eax], esi
mov dword [edx + 4], esi
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x20]
and eax, ebx
mov ebx, dword [ecx + eax*8]
cmp ebx, dword [edi + 8]
jne 0x101884ac
mov dword [ecx + eax*8], esi
jmp 0x101884be
cmp ebx, edx
jne 0x101884b5
mov dword [ecx + eax*8], esi
jmp 0x101884c2
mov edx, dword [ebp - 0x10]
cmp dword [ecx + eax*8 + 4], edx
jne 0x101884c2
mov dword [ecx + eax*8 + 4], esi
mov ebx, dword [ebp - 0x18]
mov dword [ebx], esi
mov byte [ebx + 4], 1
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10189070
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
mov ecx, 0x1028aaef
push edi
mov dword [ebp - 0x10], ebx
call fcn.10193940
mov eax, 0x1fffffff
mov edi, 1
bsr ecx, eax
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
jbe 0x101890ab
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140D.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
mov esi, dword [ebx + 8]
or eax, 1
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0x10]
lea eax, [edi + edi]
push eax
call fcn.10187210
lea eax, [edi - 1]
mov dword [ebx + 0x24], edi
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 8]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x101891b0
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
imul edx, edi, 0x1000193
mov edi, dword [ebx + 0x20]
and edi, edx
mov edx, dword [ebx + 0x14]
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 0xc], edx
cmp ebx, esi
jne 0x10189136
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x101891a3
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x10189170
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x10189168
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
jmp 0x101891a3
cmp ebx, edx
je 0x10189180
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x101891b9
cmp ebx, edx
jne 0x10189174
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 0x10]
mov eax, ecx
cmp ecx, esi
jne 0x101890e4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x101891a3
Function at 0x401d28
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.00404590
mov dword [esp], eax
mov eax, dword [0x40b368]
push eax
push eax
call fcn.004066bb
lea ecx, [esp + 8]
pop edx
call fcn.00403100
push dword [esp]
push 0
push 0x40a00d
push dword [esp + 0x10]
call sub.KERNEL32.DLL_GetTempFileNameA
mov eax, dword [0x40b368]
push eax
push eax
push dword [esp + 8]
call fcn.004045b0
lea ecx, [0x40b0c8]
pop edx
call fcn.00403100
push dword [esp]
call fcn.00404600
push dword [0x40b0c8]
call fcn.00406629
push dword [0x40b0c8]
call fcn.0040671c
mov eax, dword [0x40b368]
push eax
push eax
call fcn.0040655e
lea ecx, [0x40b0c4]
pop edx
call fcn.00403100
mov eax, dword [esp + 0x14]
call fcn.00404620
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x401df1
mov edx, dword [0x40b0c8]
push dword [0x40b368]
call fcn.00407c80
lea ecx, [0x40b0c4]
pop edx
call fcn.00403100
mov dword [esp + 0xc], 2
jmp 0x401e03
mov ebx, 1
cmp ebx, dword [esp]
jne 0x401e03
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
mov eax, ebx
call fcn.00404620
mov dword [0x40b0bc], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
mov eax, ebx
call fcn.00404620
mov dword [0x40b0c0], eax
mov eax, 1
jmp 0x401e36
push dword [esp + 4]
call fcn.00407ce0
add esp, 0xc
pop ebx
ret 4
Function at 0x4021a1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.004030f0
push 0xa
push dword [esp + 4]
push dword [esp + 0x28]
call sub.KERNEL32.DLL_FindResourceA
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x4021f7
push dword [esp + 4]
push dword [esp + 0x24]
call sub.KERNEL32.DLL_LoadResource
mov dword [0x40b10c], eax
push dword [esp + 4]
push dword [esp + 0x24]
call sub.KERNEL32.DLL_SizeofResource
mov dword [0x40b108], eax
push dword [esp]
mov edx, 0x40a0ac
pop ecx
call fcn.00407c50
je 0x40226d
push dword [0x40b108]
call fcn.00404590
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov ebx, dword [0x40b108]
dec ebx
cmp ebx, dword [esp + 0xc]
jl 0x402264
mov ebx, dword [0x40b10c]
add ebx, dword [esp + 0xc]
mov eax, ebx
call fcn.00404620
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
imul ebx, ebx, 0xffffffff
mov dword [esp + 0x14], ebx
push dword [esp + 0x14]
mov ebx, dword [esp + 0xc]
add ebx, dword [esp + 0x10]
mov eax, ebx
call fcn.00404670
inc dword [esp + 0xc]
jmp 0x40221e
mov eax, dword [esp + 8]
mov dword [0x40b10c], eax
mov eax, dword [esp + 4]
jmp 0x402275
push dword [esp]
call fcn.00407ce0
add esp, 0x18
pop ebx
ret 8
Function at 0x403aea
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x403b02
push dword [esp + 4]
push 0x403a83
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x403b3f
push esi
mov esi, dword [0x40b174]
test esi, esi
je 0x403b3e
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x403b36
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
push 0x40b174
call fcn.00406fad
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x403b0f
pop edi
pop ebx
pop esi
ret 4
Function at 0x404457
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x130
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExA]
push edi
push 0x64
pop edi
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call esi
test eax, eax
je 0x4044fb
mov eax, dword [ebp - 0xc]
dec eax
je 0x4044de
dec eax
jne 0x4044fb
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x4044da
dec eax
je 0x4044d6
dec eax
je 0x4044bc
dec eax
jne 0x4044fb
push 0x46
pop edi
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 0xb8], 0x9c
call esi
test eax, eax
je 0x4044fb
cmp byte [ebp - 0x1e], 1
je 0x4044fb
push 0x4b
jmp 0x4044fa
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x4044d2
dec eax
je 0x4044ce
dec eax
jne 0x4044fb
push 0x41
jmp 0x4044fa
push 0x3c
jmp 0x4044fa
push 0x32
jmp 0x4044fa
push 0x14
jmp 0x4044fa
push 5
jmp 0x4044fa
cmp dword [ebp - 0x14], 0
je 0x4044f8
cmp dword [ebp - 0x14], 0xa
je 0x4044f4
cmp dword [ebp - 0x14], 0x5a
jne 0x4044fb
push 0x28
jmp 0x4044fa
push 0x1e
jmp 0x4044fa
push 0xa
pop edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret

Function at 0x404d85
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x40b3dc]
call fcn.00406e20
mov edi, eax
test edi, edi
je 0x404de7
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x404dae
push dword [esp + 0xc]
push edi
call eax
jmp 0x404de7
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.00407e90
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.00407fc0
pop esi
pop ebx
pop edi
ret 8
Function at 0x4064c5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 9
call esi
test al, al
jns 0x406533
push 0x11
call esi
test al, al
js 0x406533
push 0x10
call esi
test al, al
js 0x406533
push 0x12
call esi
test al, al
js 0x406533
mov esi, dword [sym.imp.USER32.dll_GetFocus]
push 5
lea eax, [ebp - 8]
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
push 4
lea eax, [ebp - 8]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x406533
push eax
push eax
push 0x44e
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test ax, 0x800
je 0x406557
push str.PB_WindowID
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetPropA]
test eax, eax
je 0x406557
dec eax
push eax
push dword [0x40b3e4]
call fcn.00406e20
mov eax, dword [eax + 8]
jmp 0x406559
xor eax, eax
pop esi
leave
ret 4

Function at 0x40671c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x40678f
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x406771
lea ecx, [eax - 1]
mov dl, byte [ecx]
cmp dl, 0x20
je 0x40676f
cmp dl, 0x5c
je 0x40676f
cmp dl, 0x2f
jne 0x40677b
mov eax, ecx
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x40675b
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
jmp 0x406791
xor eax, eax
leave
ret 4

Function at 0x4067a0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 4], eax
jne 0x4067d5
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x406a60
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
test edi, edi
mov dword [esp + 4], eax
je 0x406ab9
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x406ab8
mov eax, dword [esp + 0x10]
mov ecx, dword [0x40b3f4]
push eax
push ecx
call fcn.00406e20
test eax, eax
je 0x406ab4
cmp dword [eax + 4], 0
je 0x406aa2
push esi
push edi
push eax
call fcn.00406ac0
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc
Function at 0x406ac0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x406af5
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x406b6e
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
sub ecx, 1
je 0x406b5b
sub ecx, 1
je 0x406b46
sub ecx, 2
je 0x406b33
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.004067a0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x406b9b
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x4070f0
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push esi
or esi, 0xffffffff
test eax, eax
je 0x4072a5
push ebx
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], ebx
je 0x4072a4
mov eax, dword [0x40b098]
push ebp
push 0x1000
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x40729c
push edi
nop
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x1000
push ebp
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edx, dword [esp + 0x1c]
cmp edx, 8
mov eax, ebp
mov edi, edx
jb 0x40725e
mov ebp, edx
shr ebp, 3
lea ebx, [ebx]
movzx ebx, byte [eax]
xor ebx, esi
and ebx, 0xff
add eax, 1
mov ecx, esi
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f8]
movzx ebx, byte [eax]
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f8]
movzx ebx, byte [eax + 1]
xor ebx, ecx
and ebx, 0xff
add eax, 1
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f8]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f8]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f8]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f8]
movzx ebx, byte [eax + 1]
add eax, 1
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f8]
movzx ebx, byte [eax + 1]
add eax, 1
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f8]
add eax, 1
sub edi, 8
sub ebp, 1
mov esi, ecx
jne 0x407180
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
test edi, edi
je 0x40727f
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x4090f8]
add eax, 1
sub edi, 1
jne 0x407262
cmp edx, 0x1000
je 0x407150
mov edx, dword [0x40b098]
push ebp
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_HeapFree]
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebp
pop ebx
mov eax, esi
not eax
pop esi
add esp, 8
ret 4

Function at 0x4072b0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x401981
Capabilities:
Clear file content
Get common file path
Get keyboard layout

Disassembly:
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp edi, 0x58ced85
jg 0x4019a7
inc edi
cmp edi, 0x1f6502b1
jl 0x40198d
cmp dword [0x281893c], 0x400
jne 0x4019e7
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
call dword [sym.imp.USER32.dll_DdeCmpStringHandles]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
push esi
call fcn.00401de1
push esi
call fcn.00401f47
push esi
call fcn.00401f56
add esp, 0xc
xor edi, edi
cmp edi, 0xd036
jge 0x4019f8
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0xd2ced2
jg 0x401a1e
inc edi
cmp edi, 0x263ff
jl 0x4019e9
mov eax, dword [0x42aa9c]
mov dword [0x281893c], eax
call fcn.004016e4
mov edi, 0x3078f
cmp dword [0x281893c], 0x51f
jne 0x401a4a
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec edi
jne 0x401a32
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10
Function at 0x404ecb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40ca80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004032a5
and dword [ebp - 0x14], 0
cmp dword [0x435600], 0
mov dword [ebp - 0x18], eax
jne 0x404f7e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405026
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405026
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x435600], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x435604], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x435608], eax
call edi
push eax
call esi
mov dword [0x435610], eax
test eax, eax
je 0x404f7e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x43560c], eax
mov eax, dword [0x43560c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404fd7
cmp dword [0x435610], ecx
je 0x404fd7
push eax
call esi
push dword [0x435610]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404fd7
test ebx, ebx
je 0x404fd7
call edi
test eax, eax
je 0x404fce
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x404fce
test byte [ebp - 8], 1
jne 0x404fd7
or dword [ebp + 0x10], 0x200000
jmp 0x40500a
mov eax, dword [0x435604]
cmp eax, dword [ebp - 0x18]
je 0x40500a
push eax
call esi
test eax, eax
je 0x40500a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40500a
mov eax, dword [0x435608]
cmp eax, dword [ebp - 0x18]
je 0x40500a
push eax
call esi
test eax, eax
je 0x40500a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x435600]
call esi
test eax, eax
je 0x405026
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405028
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405236
leave
ret

Function at 0x405236
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40ca80]
jne 0x405240
repz ret
jmp fcn.00405fef