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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0
jmp 0x49a81b
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x1e
jge 0x49a841
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
cmp dword [eax*4 + 0x4b709c], ecx
jne 0x49a83f
cmp dword [ebp - 0xc], 0
je 0x49a83d
mov eax, dword [ebp - 0xc]
add dword [eax + 8], 0xa
jmp 0x49a841
jmp 0x49a818
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_ReadFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jne 0x49a8e4
mov dword [ebp - 0x18], 0
jmp 0x49a86f
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x1e
jge 0x49a8e4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
cmp dword [eax*4 + 0x4b709c], ecx
jne 0x49a8e2
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx*4 + 0x4b71aa]
cmp dword [eax*4 + 0x4b7132], ecx
jb 0x49a8d1
mov eax, dword [ebp - 0x10]
cmp dword [0x4b7098], eax
je 0x49a8bf
mov eax, dword [ebp - 0x18]
mov al, byte [eax + 0x4b7114]
push eax
call fcn.0049f322
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [0x4b7098], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0049ee79
add esp, 8
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
add dword [ecx*4 + 0x4b7132], eax
jmp 0x49a8e4
jmp 0x49a86c
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x14]
leave
ret 0x14
Function at 0x49a8f5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
jmp 0x49a943
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x1e
jge 0x49a9a5
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
cmp dword [eax*4 + 0x4b709c], ecx
jne 0x49a9a3
mov eax, dword [ebp - 0xc]
cmp dword [0x4b7098], eax
je 0x49a97d
mov eax, dword [ebp - 0x18]
mov al, byte [eax + 0x4b7114]
push eax
call fcn.0049f322
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [0x4b7098], eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0049eec5
add esp, 8
mov dword [ebp - 0x10], 1
cmp dword [ebp - 8], 0
je 0x49a9a1
mov eax, dword [ebp - 8]
add dword [eax + 8], 0xa
jmp 0x49a9a5
jmp 0x49a940
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WriteFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x49a9d3
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0049ee79
add esp, 8
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x14]
leave
ret 0x14
Function at 0x49ef59
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 8], 0xffffffff
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov dword [ebp - 4], eax
push 0
push 0
push 0x1e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov dword [ebp - 0xc], 0
jmp 0x49ef98
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jge 0x49f06e
push 0
lea eax, [ebp - 0x14]
push eax
push 0xa
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
xor eax, eax
mov al, byte [ebp - 0x20]
cmp eax, 0x54
jne 0x49f069
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x44
je 0x49efe8
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x64
je 0x49efe8
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x53
jne 0x49f069
mov al, byte [ebp - 0x17]
mov ecx, dword [ebp + 0x10]
mov byte [ecx], al
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
push eax
call fcn.0049f322
add esp, 4
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x64
jne 0x49f03b
mov dword [0x4b72ca], 1
mov dword [ebp - 0x10], 0
jmp 0x49f01e
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 7
jge 0x49f039
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + ebp - 0x1e]
xor cl, byte [ebp - 0x17]
mov eax, dword [ebp - 0x10]
mov byte [eax + ebp - 0x1e], cl
jmp 0x49f01b
jmp 0x49f045
mov dword [0x4b72ca], 0
mov eax, dword [ebp - 0x1e]
xor eax, 0x19611225
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1a]
xor eax, 0x198931
and eax, 0xffffff
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx]
mov dword [ebp - 8], eax
jmp 0x49f06e
jmp 0x49ef95
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov eax, dword [ebp - 8]
jmp 0x49f085
pop edi
pop esi
pop ebx
leave
ret

Function at 0x49f1af
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 4], 0xffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 0xa
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
mov dword [ebp - 8], 0
jmp 0x49f1e1
inc dword [ebp - 8]
cmp dword [ebp - 8], 9
jge 0x49f1fc
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax + ebp - 0x18]
xor cl, byte [ebp - 0xf]
mov eax, dword [ebp - 8]
mov byte [eax + ebp - 0x18], cl
jmp 0x49f1de
cmp dword [ebp - 0x18], 0x646c6f47
jne 0x49f246
cmp dword [ebp - 0x14], 0x6f736e65
jne 0x49f246
xor eax, eax
mov al, byte [ebp - 0x10]
cmp eax, 0x66
jne 0x49f246
mov al, byte [ebp - 0xf]
mov ecx, dword [ebp + 0x10]
mov byte [ecx], al
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
push eax
call fcn.0049f322
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x49f23d
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [ebp - 4], 0xa
jmp 0x49f256
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov eax, dword [ebp - 4]
jmp 0x49f25b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49f5bb
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call fcn.0049ec5e
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.0049ece6
add esp, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0049f7ea
add esp, 8
cmp eax, 0xffffffff
je 0x49f620
mov dword [ebp - 0x14], 1
jmp 0x49f627
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 2
jne 0x49f657
cmp dword [ebp - 8], 0
je 0x49f657
cmp dword [ebp - 0x14], 0
je 0x49f657
push 0x4b7a78
mov eax, dword [ebp - 4]
push eax
call fcn.0049f668
add esp, 8
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 8]
leave
ret 4

Function at 0x49f838
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov dword [ebp - 4], eax
push 2
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x49f90d
cmp dword [ebp - 8], 0
jne 0x49f90d
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov al, byte [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
push eax
call fcn.0049f322
add esp, 4
mov dword [ebp - 0x41c], 0x646c6f47
mov dword [ebp - 0x418], 0x6f736e65
mov byte [ebp - 0x414], 0x66
mov dword [ebp - 0x1c], 0
jmp 0x49f8c5
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 9
jge 0x49f8e7
mov eax, dword [ebp - 0x1c]
movsx eax, byte [eax + ebp - 0x41c]
mov ecx, dword [ebp + 0xc]
xor al, byte [ecx]
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + ebp - 0x41c], al
jmp 0x49f8c2
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
mov byte [ebp - 0x413], al
push 0
lea eax, [ebp - 0x1c]
push eax
push 0xa
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
jmp 0x49f91f
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4a265d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0x14], esi
jle 0x4a268f
push ebx
push edi
mov edi, dword [ebp + 8]
sub edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
push 4
pop ebx
lea ecx, [eax + esi]
mov eax, esi
cdq
idiv ebx
mov al, byte [edx + ebp + 0x10]
xor al, byte [ecx + edi]
inc esi
cmp esi, dword [ebp + 0x14]
mov byte [ecx], al
jl 0x4a2670
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x4094f0
Capabilities:
Create thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 4], 0xffffffff
mov dword [esp + 8], 0
mov eax, dword [esi + 0x280]
test eax, eax
je 0x4095d7
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x4095d7
mov eax, dword [esi + 0x27c]
test eax, eax
je 0x409566
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 4], 0x103
jne 0x40954f
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
pop esi
add esp, 8
ret
mov edx, dword [esi + 0x27c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x27c], 0
mov eax, dword [esi + 0x2b4]
test eax, eax
je 0x409585
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [esi + 0x2b4], 0
mov ecx, dword [esi + 0x20]
push 0
push 0x64
push 0x4c5
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x2b4], eax
mov edx, dword [esi + 0x3dc]
push 0
push 0
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x4095e0
push 0x1f400
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x27c], eax
pop esi
add esp, 8
ret
Function at 0x409920
Capabilities:
Get disk information

Disassembly:
sub esp, 0x29c
mov al, byte [0x5937a0]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x18], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x19]
mov ebp, dword [esp + 0x2b0]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ebx, ebx
cmp ebp, ebx
stosb byte es:[edi], al
je 0x409aeb
push 0x207
lea ecx, [esp + 0xa8]
push 0x5965b8
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov al, byte [esp + 0xb1]
add esp, 0xc
cmp al, 0x3a
mov byte [esp + 0x2ab], bl
jne 0x409992
cmp byte [esp + 0xa6], 0x5c
jne 0x409992
mov byte [esp + 0xa7], bl
cmp dword [0x5937a8], ebx
jne 0x409a23
lea edx, [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x1f
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0x5937a8
push 0x7f
lea edx, [esp + 0xbc]
push 0x5937ac
push edx
call esi
test eax, eax
jne 0x409a23
mov edi, dword [sym.imp.MSVCRT.dll_strrchr]
lea eax, [esp + 0xa4]
push 0x5c
push eax
call edi
add esp, 8
cmp eax, ebx
je 0x409af6
cmp byte [eax + 1], bl
je 0x4099f6
mov byte [eax + 1], bl
jmp 0x4099f8
mov byte [eax], bl
lea ecx, [esp + 0x18]
push 0x1f
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
push 0x5937a8
push 0x7f
lea ecx, [esp + 0xbc]
push 0x5937ac
push ecx
call esi
test eax, eax
je 0x4099d5
mov eax, dword [0x5937a8]
mov ecx, dword [esp + 0x2b4]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ecx
mov edi, 0x5937ac
or ecx, 0xffffffff
xor eax, eax
mov byte [0x59382b], bl
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0xac], bl
lea edx, [esp + 0xac]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
lea edx, [esp + 0xac]
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x5965b9
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
call fcn.00433a10
lea edi, [esp + 0xac]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 7
lea eax, [esp + 0xa4]
push ecx
push eax
lea ecx, [esp + 0x40]
call fcn.00433a40
lea ecx, [esp + 0x38]
call fcn.00433b20
push ebp
lea ecx, [esp + 0x3c]
call fcn.00433ba0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x29c
ret
mov edx, 0x7f7f7f7f
pop edi
mov dword [ebp], edx
pop esi
mov dword [ebp + 4], edx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edx
pop ebp
pop ebx
add esp, 0x29c
ret
Function at 0x409f80
Capabilities:
Delete file
Write file on windows

Disassembly:
mov eax, 0x38b8
call fcn.00563290
push ebx
push ebp
mov ebx, ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
call esi
push 0x5965b8
push str._sconfig_accounts.ini
lea eax, [esp + 0x2c]
push 0xff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
push 0x593d48
call esi
mov esi, dword [0x593f50]
push 0x593d48
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebp, ebp
cmp esi, ebp
jne 0x409fef
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebp
pop ebx
add esp, 0x38b8
ret
lea edx, [esp + 0x24]
push 0x581698
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, ebp
mov dword [esp + 0x10], esi
je 0x40a0df
mov eax, dword [ebx + 0x1c]
push edi
cmp eax, ebp
je 0x40a0d4
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push esi
push 1
lea eax, [ebx + 0x18]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x40a0d4
lea ecx, [esp + 0x18]
push 0x1e240
push ecx
call fcn.00409920
push esi
push 1
lea edx, [esp + 0x28]
push 0x10
push edx
call edi
add esp, 0x18
cmp eax, 1
jne 0x40a0d4
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x10], ebp
cmp eax, ebp
jle 0x40a0d4
mov esi, dword [ebx + 0x1c]
mov ecx, 0xde8
add esi, ebp
lea edi, [esp + 0x128]
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.MSVCRT.dll_rand]
mov edx, 0x37a0
lea ecx, [esp + 0x128]
mov dword [esp + 0x128], eax
call fcn.00433990
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x128]
push eax
push 1
push 0x37a0
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x40a0d0
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x20]
inc eax
add ebp, 0x37a0
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x40a067
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebp
pop ebx
add esp, 0x38b8
ret
Function at 0x40a0f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, ecx
push edi
test ebp, ebp
mov dword [esp + 0x10], esi
je 0x40a261
cmp dword [ebp + 4], 1
jl 0x40a261
mov al, byte [ebp + 8]
test al, al
je 0x40a261
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esi + 0x1c]
test ebx, ebx
je 0x40a25a
mov edx, dword [esi + 0x20]
xor ecx, ecx
test edx, edx
jle 0x40a151
mov edi, dword [ebp + 4]
lea eax, [ebx + 4]
cmp dword [eax], edi
je 0x40a1e8
inc ecx
add eax, 0x37a0
cmp ecx, edx
jl 0x40a13f
cmp edx, 0x40
jge 0x40a25a
lea eax, [edx + edx*4]
mov ecx, 0xde8
mov esi, ebp
lea eax, [eax + eax*8]
shl eax, 1
sub eax, edx
lea edi, [eax + eax*4]
shl edi, 5
add edi, ebx
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
mov edx, dword [ebp + 4]
push edx
mov ecx, dword [edi + 0x20]
lea eax, [ecx + ecx*4]
lea eax, [eax + eax*8]
shl eax, 1
sub eax, ecx
mov ecx, dword [edi + 0x1c]
lea eax, [eax + eax*4]
shl eax, 5
lea esi, [eax + ecx + 8]
lea eax, [esp + 0x18]
push eax
call fcn.00409920
add esp, 8
xor eax, eax
mov ecx, eax
and ecx, 0xf
mov dl, byte [esp + ecx + 0x14]
add dl, bl
mov bl, byte [eax + esi]
xor bl, dl
mov byte [eax + esi], bl
inc eax
cmp eax, 0x10
movsx ebx, bl
jb 0x40a1a8
mov ecx, dword [edi + 0x20]
push edi
inc ecx
mov dword [edi + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, edi
call fcn.00409f80
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret 4
lea eax, [ecx + ecx*4]
mov esi, ebp
lea eax, [eax + eax*8]
shl eax, 1
sub eax, ecx
mov ecx, 0xde8
lea eax, [eax + eax*4]
shl eax, 5
lea edi, [eax + ebx]
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
mov edx, dword [ebp + 4]
push edx
mov ecx, dword [edi + 0x1c]
lea esi, [ecx + eax + 8]
lea eax, [esp + 0x18]
push eax
call fcn.00409920
add esp, 8
xor eax, eax
mov ecx, eax
and ecx, 0xf
mov dl, byte [esp + ecx + 0x14]
add dl, bl
mov bl, byte [eax + esi]
xor bl, dl
mov byte [eax + esi], bl
inc eax
cmp eax, 0x10
movsx ebx, bl
jb 0x40a224
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, edi
call fcn.00409f80
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
Function at 0x40a270
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
xor eax, eax
push ebx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0xd], eax
mov dword [esp + 0x11], eax
push edi
mov dword [esp + 0x19], eax
mov edi, ecx
mov word [esp + 0x1d], ax
mov dword [esp + 0xc], edi
test ebx, ebx
mov byte [esp + 0x10], 0
mov byte [esp + 0x1f], al
mov dword [esp + 8], eax
je 0x40a359
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x34]
test edx, edx
jl 0x40a352
cmp edx, dword [edi + 0x20]
jge 0x40a352
lea eax, [edx + edx*4]
push ebp
mov ebp, dword [edi + 0x1c]
push esi
lea eax, [eax + eax*8]
mov ecx, 0xde8
shl eax, 1
sub eax, edx
mov edi, ebx
lea edx, [esp + 0x28]
lea esi, [eax + eax*4]
shl esi, 5
add esi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 4]
push ecx
push edx
call fcn.00409920
lea ebp, [ebx + 8]
add esp, 8
test ebp, ebp
je 0x40a334
mov ecx, 4
lea edi, [esp + 0x18]
mov esi, ebp
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x40a334
mov bl, byte [esp + 0x10]
mov cl, byte [eax + ebp]
mov edx, eax
and edx, 0xf
movsx esi, cl
mov dl, byte [esp + edx + 0x28]
mov dword [esp + 0x10], esi
add dl, bl
xor dl, cl
mov byte [eax + ebp], dl
inc eax
cmp eax, 0x10
jb 0x40a30c
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
mov byte [ebx + 0x17], 0
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
add esp, 0x28
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop ebx
add esp, 0x28
ret 8
Function at 0x40b310
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
lea edi, [esi + 0x9c]
mov dword [esp + 0x10], ebp
push edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x6df8]
mov eax, 1
cmp ecx, eax
je 0x40b4e2
cmp dword [esi + 0x6de4], eax
jl 0x40b4e2
mov eax, dword [esi + 0x440]
xor ebx, ebx
cmp eax, ebp
jle 0x40b3b9
lea edi, [esi + 0x438]
mov eax, dword [edi]
cmp eax, ebp
je 0x40b392
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x18], 0x103
jne 0x40b387
inc dword [esp + 0x10]
jmp 0x40b392
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], ebp
mov eax, dword [esi + 0x440]
inc ebx
add edi, 4
cmp ebx, eax
jl 0x40b365
cmp dword [esp + 0x10], ebp
jle 0x40b3b9
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, esi
call fcn.0040ab90
cmp esi, ebp
mov dword [esi + 0x440], ebp
mov dword [esi + 0x434], ebp
mov dword [esi + 0x6dec], ebp
je 0x40b419
cmp dword [esi + 0x20], ebp
je 0x40b419
push ebp
lea ecx, [esi + 0x712c]
call sub.MFC42.DLL_CWnd::EnableWindow
mov edx, dword [esi + 0x710c]
xor ecx, ecx
mov cx, word [esi + 0x6de8]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
shl ecx, 0x10
push ecx
push ebp
push 0x401
push edx
call edi
mov eax, dword [esi + 0x710c]
push ebp
push ebp
push 0x402
push eax
call edi
mov ecx, 0x593b60
call fcn.0042de30
mov eax, dword [esi + 0x6de4]
xor ecx, ecx
cmp eax, ebp
jle 0x40b44e
lea eax, [esi + 0x504]
mov dword [eax + 8], ebp
mov dword [eax], 0xf4240
mov edx, dword [esi + 0x6de4]
inc ecx
add eax, 0xd0
cmp ecx, edx
jl 0x40b435
mov ebp, dword [sym.imp.MSVCRT.dll_time]
lea edi, [esi + 0x438]
mov ebx, 2
push 0
call ebp
lea ecx, [esp + 0x20]
mov dword [edi - 0xc], eax
push ecx
push 0
push esi
push 0x40b500
push 0x3e800
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov dword [edi], eax
mov edx, dword [esi + 0x440]
add esp, 0x1c
inc edx
add edi, 4
dec ebx
mov dword [esi + 0x440], edx
jne 0x40b45f
mov eax, 1
mov dword [esi + 0x6df8], eax
mov dword [esi + 0x6df0], eax
mov eax, dword [esi + 0x6dfc]
test eax, eax
jne 0x40b4cf
mov edx, dword [esi + 0x20]
push 0
push 0x3e8
push 0x302c
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x6dfc], eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret