joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424830
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x20
test eax, eax
je 0x424864
push eax
push 0x4c0988
lea eax, [ebp - 0x20]
push 0x10
push eax
call fcn.00441b50
add esp, 0x10
lea ecx, [ebp - 0x20]
push ecx
push str.ConEmuHWND
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esp, ebp
pop ebp
ret
push 0
push str.ConEmuHWND
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esp, ebp
pop ebp
ret

Function at 0x424c30
Capabilities:
Read file on windows
Read pipe
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
mov word [ebp - 0x674], ax
mov dword [ebp - 4], eax
test esi, esi
je 0x424da2
mov eax, dword [ebp + 8]
test eax, eax
je 0x424da2
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
push ebx
push edi
mov edi, dword [ebp + 0x18]
push 0
push 0
push ecx
push edx
push 0
lea ecx, [ebp - 0x674]
push ecx
push eax
mov dword [esi + 8], edi
call fcn.00424a80
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x424ca2
cmp ebx, 0xffffffff
je 0x424ca2
mov eax, dword [esi]
push 0
test edi, edi
je 0x424cab
lea edx, [ebp - 4]
push edx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
push 0x258
lea edx, [ebp - 0x264]
push edx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x424cd7
cmp eax, 0xea
jne 0x424d02
mov eax, dword [ebp - 4]
cmp eax, 0x30
jb 0x424d02
mov esi, dword [ebp - 0x264]
cmp esi, eax
jb 0x424d02
cmp dword [ebp - 0x260], 0x7e
jne 0x424d02
push esi
call fcn.004412a0
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x424d12
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x264]
push edx
push eax
call fcn.004b0bb0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
sub esi, eax
add esp, 0xc
lea edx, [eax + ecx]
mov dword [ebp - 0xc], edx
test esi, esi
jle 0x424d6c
test edi, edi
jne 0x424d6c
mov ecx, dword [ebp - 0xc]
push edi
lea eax, [ebp - 4]
push eax
push esi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test edi, edi
jne 0x424d60
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x424d6c
mov eax, dword [ebp - 4]
add dword [ebp - 0xc], eax
sub esi, eax
test esi, esi
jg 0x424d38
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx + 0xc]
je 0x424d98
test eax, eax
jne 0x424d98
lea edx, [ebp - 8]
push edx
call fcn.004247c0
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x424f50
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
je 0x424f93
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x424f6f
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 4], ebx
mov eax, dword [esi]
cmp eax, ebx
je 0x424f7e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov dword [esi], ebx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x110], ebx
xor ecx, ecx
lea edi, [esi + 0x10]
lea eax, [esi + 0x114]
mov dword [esi + 0x110], ebx
mov word [eax], cx
cmp word [edi], bx
jne 0x424fc3
push str.Internal_error._Mapping_file_name_was_not_specified.
push eax
call fcn.0040f030
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jg 0x424fcf
mov eax, 0x10b6
mov edx, dword [ebp + 8]
mov dword [esi + 0xc], eax
cmp edx, ebx
jne 0x424fe2
cmp dword [ebp + 0xc], ebx
jne 0x424fe2
xor ecx, ecx
jmp 0x424fe7
mov ecx, 1
mov dword [esi + 8], ecx
push edi
cmp edx, ebx
je 0x425003
push eax
push ebx
push 4
call fcn.00441aa0
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
jmp 0x42500c
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ecx, eax
mov dword [esi], eax
cmp ecx, ebx
jne 0x425039
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x110], eax
mov ecx, str.create
cmp dword [ebp + 8], ebx
jne 0x42502f
mov ecx, str.open
push edi
push eax
push ecx
push str.Cant__s_console_data_file_mapping._ErrCode0x_08X_n_s
jmp 0x42507d
mov eax, dword [esi + 8]
neg eax
push ebx
sbb eax, eax
push ebx
and eax, 0xf001b
push ebx
add eax, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x425091
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x110], eax
mov ecx, str.ReadWrite
cmp dword [esi + 8], ebx
jne 0x425075
mov ecx, str.Read
push edi
push eax
push ecx
push str.Cant_map_console_info___s_._ErrCode0x_08X_n_s
lea eax, [esi + 0x114]
push 0x208
push eax
call fcn.00441b50
add esp, 0x18
mov eax, dword [esi + 4]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x425340
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
mov esi, ecx
call edi
and al, 1
cmp al, 1
sete al
push 0x90
mov byte [esi + 0x16], al
call edi
and al, 1
cmp al, 1
sete cl
push 0x91
mov byte [esi + 0x17], cl
call edi
and al, 1
cmp al, 1
sete dl
push 0x5b
mov byte [esi + 0x18], dl
call edi
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
je 0x4253a4
push 0x5c
call edi
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
je 0x4253a4
xor eax, eax
jmp 0x4253a9
mov eax, 1
push 0x5d
mov byte [esi + 0x14], al
call edi
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
sete al
push 0xa4
mov byte [esi + 0x15], al
call edi
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
sete al
push 0xa5
mov byte [esi + 0x19], al
call edi
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
sete al
push 0xa2
mov byte [esi + 0x1a], al
call edi
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
sete al
push 0xa3
mov byte [esi + 0x1b], al
call edi
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
sete al
push 0xa0
mov byte [esi + 0x1c], al
call edi
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
sete al
push 0xa1
mov byte [esi + 0x1d], al
call edi
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
sete cl
xor eax, eax
mov byte [esi + 0x1e], cl
cmp byte [esi + 0x16], al
je 0x42546b
mov eax, 0x80
cmp byte [esi + 0x17], 0
je 0x425474
or eax, 0x20
cmp byte [esi + 0x18], 0
je 0x42547d
or eax, 0x40
cmp byte [esi + 0x19], 0
je 0x425486
or eax, 2
cmp byte [esi + 0x1a], 0
je 0x42548f
or eax, 1
cmp byte [esi + 0x1b], 0
je 0x425498
or eax, 8
cmp byte [esi + 0x1c], 0
je 0x4254a1
or eax, 4
cmp byte [esi + 0x1d], 0
jne 0x4254ab
test cl, cl
je 0x4254ae
or eax, 0x10
pop edi
mov dword [esi + 0x10], eax
pop esi
ret

Function at 0x426e60
Capabilities:
Log keystrokes
Log keystrokes via polling
Set global application hook

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 8], 0
je 0x426eaf
push 0x5d
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
jne 0x426eaf
cmp dword [0x50b548], 0
mov byte [0x50b544], 1
jne 0x426ed0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x426ab0
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x50b548], eax
pop ebp
ret 4
mov eax, dword [0x50b548]
test eax, eax
je 0x426ed0
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [0x50b548], 0
mov byte [0x50b544], 0
pop ebp
ret 4
Function at 0x426f80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
call fcn.00434410
add esp, 4
cmp eax, 0x30
jb 0x426f9e
cmp eax, 0x39
jbe 0x426fab
cmp dword [esi + 0xc], 0
je 0x426fab
mov dword [esi + 0xc], 0
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x50b3a4]
push ebx
push eax
push edi
call fcn.0044d580
mov esi, eax
mov dword [0x50b540], esi
test esi, esi
je 0x4270ad
cmp esi, dword [0x4ec194]
je 0x4270ad
mov eax, dword [esi + 8]
test eax, eax
je 0x426ff9
call eax
test al, al
jne 0x426ff9
xor esi, esi
pop edi
mov dword [0x50b540], esi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
mov eax, edi
and eax, 0xffffff00
cmp eax, 0x400
je 0x42700e
cmp eax, 0x800
jne 0x427030
test ebx, ebx
je 0x427030
mov ecx, dword [0x50b3a0]
cmp byte [ecx + 0x11423], 0
je 0x427030
push 0xffffffffffffffff
push 0
push 2
push 0x11
mov ecx, ebx
call fcn.004804a0
cmp dword [esi + 0x90], 0
je 0x4270ad
mov edx, edi
and edx, 0x100000
cmp edx, 0x100000
sete bl
test bl, bl
je 0x427061
mov ecx, dword [0x50b39c]
push 1
add ecx, 0x118
call fcn.00426e60
mov eax, dword [ebp + 0x14]
mov ecx, dword [esi + 0x90]
push eax
push esi
push 0
push edi
call ecx
test bl, bl
je 0x4270ad
push 0x5d
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
and ax, dx
mov ecx, edx
cmp ax, cx
je 0x4270ad
mov eax, dword [0x50b548]
test eax, eax
je 0x4270ad
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [0x50b548], 0
mov byte [0x50b544], 0
pop edi
mov eax, esi
pop esi
mov dword [0x50b540], 0
pop ebx
pop ebp
ret 0x10
Function at 0x4282f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
push esi
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x42835d
lea ecx, [ebp - 0xc]
push ecx
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4283bd
cmp dword [ebp - 8], 0
jne 0x4283bd
mov edx, dword [ebp - 0xc]
inc edx
push edi
push edx
call fcn.004412a0
mov edi, dword [ebp + 0xc]
add esp, 4
mov dword [edi], eax
test eax, eax
jne 0x428362
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xc]
push ebx
push 0
lea ecx, [ebp - 4]
push ecx
push edx
push eax
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
pop ebx
je 0x4283aa
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jne 0x4283aa
mov ecx, dword [edi]
mov byte [eax + ecx], 0
mov edx, dword [edi]
add edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, dword [edi]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi]
push ecx
call fcn.00441300
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4296c0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42972b
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + ecx]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push ecx
mov dword [ebp - 8], edx
lea edx, [ebp - 4]
push edx
push ebx
push str.ConEmuDefaultTerminal
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x429721
cmp dword [ebp - 4], 1
jne 0x429721
cmp dword [ebp - 8], 2
jbe 0x429721
mov bl, 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x429740
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c8
mov eax, dword [0x50b3a0]
cmp byte [eax + 0xa6c], 0
push ebx
push esi
mov esi, ecx
mov byte [ebp - 1], 0
je 0x42976c
cmp byte [eax + 0xa6d], 0
je 0x42976c
mov bl, 1
jmp 0x42976e
xor bl, bl
push 0x618
lea eax, [ebp - 0x8c8]
push 0
push eax
call fcn.004b03e0
push 0x2a8
lea ecx, [ebp - 0x2b0]
push 0
push ecx
call fcn.004b03e0
mov edx, dword [0x50b39c]
add edx, 0x1b4
push edx
lea eax, [ebp - 0x2b0]
push str.__s___SetDefTerm__Detached__MinTSA
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
push 0x30b
lea ecx, [ebp - 0x8c8]
push ecx
mov ecx, esi
call fcn.004296c0
test al, al
je 0x4297d9
cmp word [ebp - 0x8c8], 0
mov al, 1
jne 0x4297dc
mov al, byte [ebp - 1]
cmp al, bl
jne 0x429804
test bl, bl
je 0x4298cb
lea edx, [ebp - 0x8c8]
push edx
lea eax, [ebp - 0x2b0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4298cb
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4298b7
test bl, bl
je 0x429880
lea eax, [ebp - 0x2b0]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x429840
mov ecx, dword [ebp - 8]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x2b0]
push eax
push 1
push 0
push str.ConEmuDefaultTerminal
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4298a7
push 0
push 0
push 0
push eax
push str.Failed_to_set_ConEmuDefaultTerminal_value_in_HKCUSoftwareMicrosoftWindowsCurrentVersionRun
jmp 0x42989f
mov edx, dword [ebp - 8]
push str.ConEmuDefaultTerminal
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4298a7
push 0
push 0
push 0
push eax
push str.Failed_to_remove_ConEmuDefaultTerminal_value_from_HKCUSoftwareMicrosoftWindowsCurrentVersionRun
call fcn.004200b0
add esp, 0x14
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push eax
push str.Failed_to_open_HKCUSoftwareMicrosoftWindowsCurrentVersionRun_for_write
call fcn.004200b0
add esp, 0x14
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429920
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x38]
test edi, edi
je 0x4299ae
lea eax, [edi + 1]
mov dword [ebp - 4], eax
push ebx
mov ecx, dword [esi + 0x44]
mov ebx, dword [ecx + edi*4 - 4]
dec dword [ebp - 4]
dec edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42995d
cmp byte [ebp + 8], 0
je 0x4299a9
push 0x64
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test ebx, ebx
je 0x42996d
cmp ebx, 0xffffffff
je 0x42996d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x38]
cmp dword [ebp - 4], eax
jge 0x4299a6
mov edx, dword [esi + 0x44]
sub eax, edi
dec eax
imul eax, dword [esi + 0x34]
lea ecx, [edx + edi*4]
push eax
lea eax, [ecx + 4]
push eax
push ecx
call fcn.004b0bb0
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x38]
mov eax, dword [esi + 0x44]
push ecx
lea ecx, [eax + edx*4 - 4]
push 0
push ecx
call fcn.004b03e0
add esp, 0x18
dec dword [esi + 0x38]
test edi, edi
jne 0x429936
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x42a060
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
xor bl, bl
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_GetShellWindow]
push 0
push str.Shell_TrayWnd
push 0
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_FindWindowExW]
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
cmp esi, ecx
je 0x42a0cb
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x42a0c8
mov eax, dword [ebp - 4]
test eax, eax
je 0x42a0c8
push 0
push eax
push esi
mov ecx, edi
call fcn.00429c10
mov bl, al
test bl, bl
jne 0x42a137
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x42a0fe
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x42a0fe
mov eax, dword [ebp - 8]
test eax, eax
je 0x42a0fe
cmp eax, dword [ebp - 4]
je 0x42a0fe
mov edx, dword [ebp - 0xc]
push 0
push eax
push edx
mov ecx, edi
call fcn.00429c10
mov bl, al
test bl, bl
jne 0x42a137
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x42a137
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x42a137
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x42a137
cmp eax, dword [ebp - 8]
je 0x42a137
cmp eax, dword [ebp - 4]
je 0x42a137
push 0
push eax
push esi
mov ecx, edi
call fcn.00429c10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42a1b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x50b384], 0
push esi
mov esi, ecx
je 0x42a324
mov eax, dword [0x50b39c]
mov al, byte [eax + 0x42b1]
test al, al
jne 0x42a1e0
mov ecx, dword [0x50b3a0]
cmp byte [ecx + 0xa6c], al
jne 0x42a20c
cmp byte [ebp + 0xc], 0
je 0x42a324
test al, al
je 0x42a324
push 0
push 0
push 0
push 0xffffffffffffffff
push str.Default_terminal_feature_was_blocked_nwith__NoDefTerm_ConEmu_command_line_argument_
call fcn.004200b0
add esp, 0x14
pop esi
pop ebp
ret 8
cmp byte [esi + 0x30], 0
push ebx
mov bl, byte [ebp + 0xc]
je 0x42a244
test bl, bl
je 0x42a323
push 0
mov ecx, esi
call fcn.00429920
cmp dword [esi + 0x38], 0
jle 0x42a244
push 4
push str.Previous_Default_Terminal_setup_cycle_was_not_finished_yet
mov ecx, 0x50dcf0
call fcn.004975a0
pop ebx
pop esi
pop ebp
ret 8
mov ecx, esi
call fcn.00429740
lea edx, [esi + 0x2c]
push edx
push 0
push esi
push 0x42a190
push 0
push 0
mov dword [esi + 0x10], 1
mov byte [esi + 0x30], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x42a302
cmp byte [ebp + 8], 0
je 0x42a2ec
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f02
push 0
call ebx
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [ebp + 0xc]
push 0x7530
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x7f00
push 0
mov dword [ebp + 8], eax
call ebx
push eax
call dword [sym.imp.USER32.dll_SetCursor]
call edi
cmp dword [ebp + 8], 0
pop edi
jne 0x42a2d7
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
pop ebp
ret 8
push 0
push 0
push 0
push 0
push str.PostCreatedThread_was_not_finished_in_30_seconds
call fcn.004200b0
add esp, 0x14
lea edx, [ebp + 0xc]
push edx
lea ecx, [esi + 0x34]
call fcn.004295b0
pop ebx
mov byte [esi + 0x28], 1
pop esi
pop ebp
ret 8
test bl, bl
je 0x42a31b
push 0
push 0
push 0
push 0
push str.Failed_to_start_PostCreatedThread
call fcn.004200b0
add esp, 0x14
mov byte [esi + 0x30], 0
mov byte [esi + 0x28], 1
pop ebx
pop esi
pop ebp
ret 8
Function at 0x42a920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov edx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
lea eax, [ebp - 4]
push eax
mov esi, ecx
mov ecx, dword [ebp + 0x10]
push edi
push ecx
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42aa13
cmp dword [ebp - 4], edi
jne 0x42aa13
add dword [esi + 0xb0], edi
mov ecx, dword [esi + 0xb0]
push 0
adc dword [esi + 0xb4], 0
mov eax, dword [esi + 0xb4]
push 0x3e8
push eax
push ecx
mov edi, 0x4b
call fcn.004b17e0
test edx, edx
jl 0x42a9cc
jg 0x42a996
cmp eax, 0x270f
jbe 0x42a9cc
push 0
push 0x3e8
push edx
push eax
call fcn.004b17e0
mov edi, 0x4d
test edx, edx
jl 0x42a9cc
jg 0x42a9b6
cmp eax, 0x270f
jbe 0x42a9cc
push 0
push 0x3e8
push edx
push eax
call fcn.004b17e0
mov dword [ebp - 8], edx
mov edi, 0x47
mov ecx, dword [esi + 0xa8]
movzx edx, di
push edx
push eax
mov eax, dword [esi + 0xa4]
push eax
inc ecx
push ecx
lea edx, [ebp - 0x8c]
push str.Copying__i_of__i___u_c_
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [0x50b384]
add esp, 0x18
lea eax, [ebp - 0x8c]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42aa22
mov eax, 0x8000ffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42bb80
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bef31
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov dword [esi], 0x4cff18
cmp byte [esi + 0x24], 0
mov dword [ebp - 4], 2
je 0x42bbcf
cmp dword [0x50b384], 0
je 0x42bbcf
mov byte [esi + 0x24], 0
mov eax, dword [0x50b384]
push eax
call dword [sym.imp.ole32.dll_RevokeDragDrop]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [esi + 0xcc]
push edi
call ebx
cmp dword [esi + 0xbc], 0
jne 0x42bbfa
lea ecx, [esi + 8]
call fcn.0042d610
mov dword [ebp - 0x10], 1
test eax, eax
je 0x42bc01
mov dword [ebp - 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x10], 0
jne 0x42bd2a
mov ecx, dword [0x50b39c]
push 0x34
call fcn.004059f0
mov ecx, dword [0x50b384]
push eax
push 0x4cff38
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x42bcf6
push edi
call ebx
cmp dword [esi + 0xbc], 0
jle 0x42bcd9
jmp 0x42bc50
mov edi, dword [esi + 0xbc]
mov eax, dword [esi + 0xc8]
dec edi
lea ecx, [edi*8]
mov ebx, dword [eax + ecx]
add eax, ecx
push 0x64
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xbc]
lea edx, [edi + 1]
cmp edx, eax
jge 0x42bcc6
mov ecx, dword [esi + 0xc8]
sub eax, edi
dec eax
imul eax, dword [esi + 0xb8]
lea ecx, [ecx + edi*8]
push eax
lea edx, [ecx + 8]
push edx
push ecx
call fcn.004b0bb0
mov eax, dword [esi + 0xb8]
mov ecx, dword [esi + 0xbc]
mov edx, dword [esi + 0xc8]
push eax
lea eax, [edx + ecx*8 - 8]
push 0
push eax
call fcn.004b03e0
add esp, 0x18
dec dword [esi + 0xbc]
cmp dword [esi + 0xbc], 0
jg 0x42bc50
lea edi, [esi + 0xcc]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x42bd2a
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call ebx
cmp dword [esi + 0xbc], 0
jne 0x42bd1a
lea ecx, [esi + 8]
call fcn.0042d610
test eax, eax
jne 0x42bd1a
xor ebx, ebx
jmp 0x42bd1f
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x42bcf0
lea ebx, [esi + 8]
mov ecx, ebx
call fcn.0042ddf0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0xc8]
xor edi, edi
mov byte [ebp - 4], 1
cmp eax, edi
je 0x42bd5a
push eax
call fcn.00441300
add esp, 4
mov dword [esi + 0xc8], edi
mov ecx, ebx
mov dword [esi + 0xc0], edi
mov dword [esi + 0xbc], edi
mov byte [ebp - 4], 0
call fcn.0042dfa0
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00403590
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret