joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405680
Capabilities:
Terminate process

Disassembly:
push edi
push dword [esp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x405697
pop edi
ret
push esi
push dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
ret

Function at 0x405890
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415c7d
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x41c140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x278]
mov esi, dword [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4059a1
nop dword [eax]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405900
sub eax, edx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.004011f0
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
push ecx
cmp eax, dword [esi + 8]
je 0x40593f
mov ecx, eax
call fcn.004031b0
add dword [esi + 4], 0x18
jmp 0x405947
push eax
mov ecx, esi
call fcn.00402a30
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 8
jb 0x405984
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40597a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4059bc
push ecx
push edx
call fcn.004149eb
add esp, 8
lea eax, [ebp - 0x278]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4058e0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004149f9
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3

Function at 0x405b20
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [ecx + 0x7c]
mov dword [ecx + 0xd0], 1
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x405c40
Capabilities:
Hide graphical window

Disassembly:
push 5
push dword [ecx + 0x7c]
mov dword [ecx + 0xd0], 0
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x4067d0
Capabilities:
Delete file
Get file size
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415ced
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x41c140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
call sub.MSVCP140.dll__Xtime_get_ticks
mov ebx, eax
mov eax, edx
mov edi, ebx
mov dword [ebp - 0x34], eax
sub edi, dword [0x41c3d0]
mov ecx, eax
sbb ecx, dword [0x41c3d4]
cmp edi, 0x23c34600
jne 0x406826
test ecx, ecx
je 0x406842
test ecx, ecx
jg 0x406838
jl 0x406834
cmp edi, 0x23c34600
jae 0x406838
or al, 0xff
jmp 0x40683a
mov al, 1
test al, al
js 0x406961
push esi
call fcn.004142e0
add esp, 4
cmp eax, 1
je 0x406961
mov eax, dword [ebp - 0x34]
mov dword [0x41c3d4], eax
mov eax, esi
mov dword [0x41c3d0], ebx
cmp dword [esi + 0x14], 8
jb 0x40686c
mov eax, dword [esi]
push 0
push 0x80
push 3
push 0
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x406961
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
push edi
movlpd qword [ebp - 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], 0
ja 0x4068ba
cmp dword [ebp - 0x30], 0x100000
jb 0x406961
push esi
lea ecx, [ebp - 0x28]
call fcn.004031b0
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
push 0
add eax, 0xfffffffc
mov dword [ebp - 4], 0
push eax
call fcn.00406d70
push str..old.txt
lea ecx, [ebp - 0x28]
call fcn.004057e0
lea eax, [ebp - 0x28]
push eax
call fcn.004049a0
add esp, 4
test eax, eax
je 0x40690a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x40691d
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x406961
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406957
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406957
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004149eb
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004149f9
mov esp, ebp
pop ebp
ret

Function at 0x406980
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x41c0d4
call fcn.00406b60
add esp, 4
test al, al
je 0x4069d0
cmp dword [0x41c0e8], 8
mov eax, 0x41c0d4
cmovae eax, dword [0x41c0d4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4069cd
cmp dword [0x41c0e8], 8
mov eax, 0x41c0d4
cmovae eax, dword [0x41c0d4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4069d0
mov al, 1
ret
xor al, al
ret
Function at 0x406b60
Capabilities:
Get common file path

Disassembly:
sub esp, 8
mov eax, dword [0x41c140]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
cmp dword [esi + 0x10], 0
je 0x406b8b
mov al, 1
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004149f9
add esp, 8
ret
cmp dword [0x41c0ac], 0
je 0x406cbe
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push 0
push 0x418b3c
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x406cbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x406bd0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esp + 4]
mov ecx, edx
push ebx
push edi
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406be0
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00401cb0
push dword [esp + 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push str.Rockstar_GamesSocial_Club_
mov ecx, esi
call fcn.004057e0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x406c18
mov eax, dword [esi]
push eax
call fcn.004049e0
add esp, 4
test eax, eax
jne 0x406c3a
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x406c2f
mov eax, dword [esi]
push 0
push eax
call fcn.00404620
add esp, 8
cmp dword [0x41c0b0], 8
mov edx, 0x41c09c
mov ecx, dword [esi + 0x14]
mov eax, ecx
cmovae edx, dword [0x41c09c]
mov ebx, dword [esi + 0x10]
sub eax, ebx
mov edi, dword [0x41c0ac]
cmp edi, eax
ja 0x406c9c
lea eax, [edi + ebx]
mov dword [esi + 0x10], eax
cmp ecx, 8
jb 0x406c6e
mov esi, dword [esi]
lea eax, [edi + edi]
push eax
lea ecx, [esi + ebx*2]
push edx
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [edi + ebx]
xor ecx, ecx
mov word [esi + eax*2], cx
mov al, 1
pop edi
pop ebx
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004149f9
add esp, 8
ret
push edi
push edx
push dword [esp + 0x14]
mov ecx, esi
push edi
call fcn.00402d50
pop edi
pop ebx
mov al, 1
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004149f9
add esp, 8
ret
mov ecx, dword [esp + 8]
xor al, al
pop esi
xor ecx, esp
call fcn.004149f9
add esp, 8
ret
Function at 0x408090
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x41c140]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
mov esi, dword [esp + 0x224]
lea eax, [esp + 8]
push edi
mov edi, dword [esp + 0x22c]
push eax
push 1
push 0
mov dword [esp + 0x20], esi
push dword [0x41c3f4]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x408104
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
mov ecx, esi
movups xmmword [esi], xmm0
push 0
mov dword [esi + 0x10], 0
push 0x4172dc
mov dword [esi + 0x14], 0
call fcn.004011f0
jmp 0x40815e
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], 0
push eax
lea eax, [esp + 0x18]
push eax
push 0
push edi
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4080d6
cmp dword [esp + 0x10], 1
push dword [esp + 0xc]
je 0x40814c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4172dc
jmp 0x408157
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.004032a0
mov ecx, dword [esp + 0x220]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004149f9
add esp, 0x21c
ret

Function at 0x4082b0
Capabilities:
Write file on windows

Disassembly:
call fcn.00403980
push 1
mov ecx, 0x41c428
call fcn.00409e30
call fcn.00406270
call fcn.00409800
call fcn.00407ca0
mov eax, dword [0x41c41c]
test eax, eax
je 0x4082f2
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je fcn.00405320
mov dword [0x41c41c], 0
mov ecx, dword [0x41db38]
test ecx, ecx
je 0x40830c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x41db38], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp fcn.004069e0
Function at 0x40c210
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416325
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x41c140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0xc
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
call fcn.004149bb
add esp, 4
test eax, eax
je 0x40c261
movq xmm0, qword [ebp - 0x28]
movq qword [eax], xmm0
mov dword [eax + 8], esi
jmp 0x40c263
xor eax, eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x40bb90
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40c2d2
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x40c2c5
push ecx
push eax
call sub.MSVCP140.dll__Thrd_detach
add esp, 8
test eax, eax
jne 0x40c2cc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004149f9
mov esp, ebp
pop ebp
ret 8
push 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
push 6
mov dword [ebp - 0x18], 0
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x40da90
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4165fd
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x41c140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x24], eax
mov edi, dword [eax + 0x380]
mov eax, dword [eax + 0x384]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
cmp edi, eax
je 0x40dbf0
lea esi, [edi + 0x18]
nop dword [eax]
cmp dword [esi + 0x14], 8
mov edx, esi
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x18], eax
jb 0x40daf0
mov edx, dword [esi]
mov eax, edx
mov dword [ebp - 0x2c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x3c], xmm0
lea ecx, [eax + 2]
mov dword [ebp - 0x14], ecx
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40db10
sub eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
sar eax, 1
push eax
push edx
call fcn.004011f0
push dword [ebp - 0x18]
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0
push eax
mov eax, dword [ebp - 0x1c]
push dword [eax]
call fcn.004036a0
mov ecx, dword [ebp - 0x28]
add esp, 0xc
test eax, eax
mov dword [ebp - 4], 0xffffffff
sete al
mov byte [ebp - 0xd], al
cmp ecx, 8
jb 0x40db8d
mov edx, dword [ebp - 0x3c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40db80
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbd8
push ecx
push edx
call fcn.004149eb
mov al, byte [ebp - 0xd]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], cx
test al, al
jne 0x40dbde
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40dbaf
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add edi, 0x34
add esi, 0x34
cmp edi, dword [ebp - 0x20]
jne 0x40dae0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.00405320
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x150], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40dfc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416692
mov eax, dword fs:[0]
push eax
sub esp, 0xc90
mov eax, dword [0x41c140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc9c], ecx
lea ecx, [ebp - 0xc94]
push edx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc98], eax
call fcn.0040c8a0
push 0xc80
mov dword [ebp - 4], 1
call fcn.004149bb
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x40e054
mov ecx, dword [ebp - 0xc9c]
lea eax, [ebp - 0xc94]
mov dword [esi], ecx
mov ecx, dword [ebp - 0xc98]
mov dword [esi + 4], ecx
lea ecx, [esi + 8]
push eax
call fcn.0040c8a0
jmp 0x40e056
xor esi, esi
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
push 0
push esi
push 0x40c590
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40e0cc
lea ecx, [ebp - 0xc94]
mov byte [ebp - 4], 5
call fcn.004075c0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40e0bf
push eax
push dword [ebp - 0x1c]
call sub.MSVCP140.dll__Thrd_detach
add esp, 8
test eax, eax
jne 0x40e0c6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004149f9
mov esp, ebp
pop ebp
ret 8
push 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
push 6
mov dword [ebp - 0x18], 0
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x40ec20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416812
mov eax, dword fs:[0]
push eax
sub esp, 0xc94
mov eax, dword [0x41c140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [ebp - 0xca0], ecx
lea ecx, [ebp - 0xc94]
mov dword [ebp - 0xc9c], eax
mov eax, dword [ebp + 0xc]
push edx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc98], eax
call fcn.0040c8a0
push 0xc84
mov dword [ebp - 4], 1
call fcn.004149bb
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x40ecc6
mov ecx, dword [ebp - 0xca0]
mov dword [esi], ecx
mov ecx, dword [ebp - 0xc9c]
mov dword [esi + 4], ecx
lea ecx, [esi + 0xc]
mov eax, dword [ebp - 0xc98]
mov dword [esi + 8], eax
lea eax, [ebp - 0xc94]
push eax
call fcn.0040c8a0
jmp 0x40ecc8
xor esi, esi
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
push 0
push esi
push 0x40c610
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40ed3e
lea ecx, [ebp - 0xc94]
mov byte [ebp - 4], 5
call fcn.004075c0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40ed31
push eax
push dword [ebp - 0x1c]
call sub.MSVCP140.dll__Thrd_detach
add esp, 8
test eax, eax
jne 0x40ed38
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004149f9
mov esp, ebp
pop ebp
ret 0xc
push 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
push 6
mov dword [ebp - 0x18], 0
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x40f530
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4162a5
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x41c140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], edi
sub esp, 0x18
mov dword [ebp - 4], 0
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.0040a280
push esi
mov ecx, edi
call fcn.00408910
mov dword [edi], 0x417fb0
lea esi, [edi + 0xfc]
lea ecx, [esi + 0x48]
mov dword [esi], 0
mov dword [esi + 4], 0
xorps xmm0, xmm0
mov dword [esi + 8], 4
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0x78
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
push 0
movups xmmword [ecx], xmm0
push 0x4172dc
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], esi
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.004011f0
mov ecx, dword [ebp + 0x20]
mov dword [esi + 0x68], 1
mov dword [edi + 0x168], 0x81
mov dword [edi + 0x16c], 0x16a
mov dword [edi + 0x170], 0x61
mov dword [edi + 0x174], 0xa0
mov dword [edi + 0x178], 0x7f
mov dword [edi + 0x17c], 0x244
mov dword [edi + 0x180], 0xd2
mov dword [edi + 0x184], 0xe6
mov dword [edi + 0x188], 0xfa
mov dword [edi + 0x18c], 0x10e
mov dword [edi + 0x190], 0x12c
mov dword [edi + 0x194], 0x168
mov dword [edi + 0x198], 0x1a4
mov dword [edi + 0x19c], 0x1b8
mov dword [edi + 0x1a0], 0x1cc
mov dword [edi + 0x1a4], 0x1e0
mov dword [edi + 0x1a8], 0xa
mov dword [edi + 0x1ac], 0xa
mov dword [edi + 0x1b0], 0x61
mov dword [edi + 0x1b4], 0x226
mov dword [edi + 0x1b8], 0xd5
mov dword [edi + 0x1bc], 0xe9
mov dword [edi + 0x1c0], 0xfd
mov dword [edi + 0x1c4], 0x111
cmp ecx, 0x10
jb 0x40f743
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f739
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40f739
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004149eb
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x410de0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x410ded
xor eax, eax
pop esi
ret
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
not eax
test edi, edi
je 0x410e32
nop dword [eax]
mov cl, byte [esi]
lea esi, [esi + 1]
movzx edx, cl
mov ecx, edx
shr edx, 4
xor ecx, eax
shr eax, 4
and ecx, 0xf
xor eax, dword [ecx*4 + 0x417fe0]
mov ecx, eax
shr eax, 4
and ecx, 0xf
xor edx, ecx
xor eax, dword [edx*4 + 0x417fe0]
sub edi, 1
jne 0x410e00
pop edi
not eax
pop esi
ret
Function at 0x4114e0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
push edi
test ecx, ecx
je 0x41160c
mov edx, dword [ecx + 0x38]
test edx, edx
je 0x41160c
mov esi, dword [esp + 0x14]
cmp esi, dword [ecx + 0x10]
jae 0x41160c
cmp dword [ecx + 0x14], 1
jne 0x41160c
mov eax, dword [edx + 0x10]
mov edi, dword [eax + esi*4]
add edi, dword [edx]
je 0x41160c
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x41160c
mov dword [ebx], esi
mov eax, dword [ecx + 0x38]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + esi*4]
mov dword [ebx + 4], eax
movzx eax, word [edi + 4]
mov word [ebx + 8], ax
movzx eax, word [edi + 6]
mov word [ebx + 0xa], ax
movzx eax, word [edi + 8]
mov word [ebx + 0xc], ax
movzx eax, word [edi + 0xa]
mov word [ebx + 0xe], ax
movzx eax, word [edi + 0xe]
push eax
movzx eax, word [edi + 0xc]
push eax
call fcn.00410ea0
mov dword [ebx + 0x10], eax
mov esi, 0x103
mov dword [ebx + 0x14], edx
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x18], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], 0
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], 0
movzx eax, word [edi + 0x24]
mov word [ebx + 0x30], ax
mov eax, dword [edi + 0x26]
mov dword [ebx + 0x34], eax
mov eax, dword [edi + 0x2a]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
movzx eax, word [edi + 0x1c]
cmp eax, esi
cmovb esi, eax
lea eax, [edi + 0x2e]
push esi
push eax
lea eax, [ebx + 0x44]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov byte [esi + ebx + 0x44], 0
mov esi, 0xff
movzx eax, word [edi + 0x20]
cmp eax, esi
cmovb esi, eax
mov dword [ebx + 0x40], esi
movzx ecx, word [edi + 0x1e]
movzx eax, word [edi + 0x1c]
add ecx, edi
add eax, 0x2e
add eax, ecx
push esi
push eax
lea eax, [ebx + 0x148]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x20
mov byte [esi + ebx + 0x148], 0
mov eax, 1
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4148e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 4]
cmp dword [eax + 0x14], 8
jb 0x4148f4
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41490b
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 1
push 0
call fcn.004149a0
add esp, 8
mov eax, edi
pop edi
ret
Function at 0x4380a2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x4380b1
pop dword [ebp - 0x48]
mov eax, 0xe291e2f1
add eax, 0x1db19dc0
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x50e34
push 0
mov eax, 0x9c93f3bf
add eax, 0x63b0bef1
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x4b0f
mov edx, eax
mov ebx, 0x475e00
add ebx, dword [ebp - 0x48]
mov edi, 0x4e09bacd
sub edi, 0xf7c88fa2
xor dword [ebp - 0x40], ebx
mov esi, dword [ebx]
sub dword [ebp - 0x34], edx
add esi, edi
mov dword [edx], esi
sub dword [ebp - 0x30], esi
add edx, 0xaf89e2aa
sub edx, 0xaf89e2a6
add ebx, 4
loop 0x438104
add eax, 0x88e83bff
add eax, 0x7718e310
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xf6bf844a
add ecx, 0x9807bb6
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret