joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d79
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 8]
push esi
call fcn.004019d0
pop ecx
mov edi, eax
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x401e09
mov esi, eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
test edi, edi
setne bl
lea eax, [eax + ebx*4]
shl ebx, 2
lea eax, [eax*2 + 3]
and eax, 0xfffffffc
call fcn.00403cc8
mov eax, esp
test edi, edi
mov edi, eax
je 0x401dda
push 0x40d560
push edi
call sub.msvcrt.dll_wcscpy
pop ecx
pop edx
lea eax, [edi + ebx*2]
push esi
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x401e0e
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401e1e
shr eax, 4
and eax, 1
jmp 0x401e11
xor eax, eax
dec eax
jmp 0x401e16
xor eax, eax
dec eax
mov esi, dword [ebp - 0x10]
mov esp, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor eax, eax
cmp ecx, 2
mov esi, dword [ebp - 0x10]
je 0x401e14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor eax, eax
cmp ecx, 3
setne al
neg eax
jmp 0x401e14

Function at 0x401ef8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 8]
push esi
call fcn.004019d0
pop ecx
mov edi, eax
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x401f8c
mov esi, eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
test edi, edi
setne bl
lea eax, [eax + ebx*4]
shl ebx, 2
lea eax, [eax*2 + 3]
and eax, 0xfffffffc
call fcn.00403cc8
mov eax, esp
test edi, edi
mov edi, eax
je 0x401f59
push 0x40d560
push edi
call sub.msvcrt.dll_wcscpy
pop ecx
pop edx
lea eax, [edi + ebx*2]
push esi
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x401f91
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401fa1
mov ecx, eax
xor eax, eax
test cl, 0x10
sete al
jmp 0x401f94
xor eax, eax
dec eax
jmp 0x401f99
xor eax, eax
dec eax
mov esi, dword [ebp - 0x10]
mov esp, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor eax, eax
cmp ecx, 2
mov esi, dword [ebp - 0x10]
je 0x401f97
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor eax, eax
cmp ecx, 3
setne al
neg eax
jmp 0x401f97
Function at 0x402059
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
push ecx
call fcn.004019d0
pop ecx
mov ebx, eax
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x4020ef
mov edi, eax
mov dword [ebp - 0x10], esp
mov ecx, ebx
xor ebx, ebx
test ecx, ecx
setne bl
lea eax, [eax + ebx*4]
shl ebx, 2
lea eax, [eax*2 + 3]
and eax, 0xfffffffc
call fcn.00403cc8
mov eax, esp
test ecx, ecx
mov dword [ebp - 0x14], eax
je 0x4020c2
push 0x40d560
push eax
call sub.msvcrt.dll_wcscpy
mov eax, dword [ebp - 0x14]
add esp, 8
lea eax, [eax + ebx*2]
push edi
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x4020f4
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4020f9
xor eax, eax
inc eax
jmp 0x40210e
xor eax, eax
dec eax
jmp 0x402113
xor eax, eax
dec eax
jmp 0x40210e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor eax, eax
cmp ecx, 0xb7
setne al
neg eax
mov ecx, dword [ebp - 0x10]
mov esp, ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40211b
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 8]
push esi
call fcn.004019d0
pop ecx
mov edi, eax
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40223c
mov esi, eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
test edi, edi
setne bl
lea eax, [eax + ebx*4]
shl ebx, 2
lea eax, [eax*2 + 3]
and eax, 0xfffffffc
call fcn.00403cc8
mov eax, esp
test edi, edi
mov dword [ebp - 0x18], eax
je 0x402187
push 0x40d560
push eax
call sub.msvcrt.dll_wcscpy
mov eax, dword [ebp - 0x18]
add esp, 8
lea eax, [eax + ebx*2]
push esi
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor esi, esi
dec esi
test eax, eax
je 0x402241
mov edi, dword [ebp + 0xc]
push edi
call fcn.004019d0
pop ecx
mov ebx, eax
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x402241
mov edi, eax
mov ecx, ebx
xor ebx, ebx
test ecx, ecx
setne bl
lea eax, [eax + ebx*4]
shl ebx, 2
lea eax, [eax*2 + 3]
and eax, 0xfffffffc
call fcn.00403cc8
mov eax, esp
test ecx, ecx
mov dword [ebp - 0x14], eax
je 0x402207
push 0x40d560
push eax
call sub.msvcrt.dll_wcscpy
mov eax, dword [ebp - 0x14]
add esp, 8
lea eax, [eax + ebx*2]
push edi
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
mov edi, dword [ebp - 0x10]
je 0x402244
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
xor esi, esi
cmp eax, 1
sbb esi, esi
jmp 0x402244
xor esi, esi
dec esi
jmp 0x402246
mov edi, dword [ebp - 0x10]
mov esp, edi
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402d15
Capabilities:
Read file on windows

Disassembly:
push esi
push eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov esi, esp
and dword [esi], 0
push 0
push esi
push ecx
push eax
push dword [edx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
cmp eax, 1
sbb ecx, ecx
or ecx, dword [esi]
mov eax, ecx
add esp, 4
pop esi
ret
Function at 0x403418
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 0xc]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x403528
mov ecx, eax
mov edi, esp
lea eax, [eax*2 + 3]
and eax, 0xfffffffc
call fcn.00403cc8
mov ebx, esp
push ecx
push ebx
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor esi, esi
dec esi
test eax, eax
mov dword [ebp - 0x18], edi
je 0x403523
mov edi, dword [ebp + 0x10]
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x403523
mov ecx, eax
lea eax, [eax*2 + 3]
and eax, 0xfffffffc
call fcn.00403cc8
mov eax, esp
push ecx
mov dword [ebp - 0x14], eax
push eax
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x403523
push 0
push 0
push 0xffffffffffffffff
push dword [ebp + 0x14]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x403523
mov edi, eax
lea eax, [eax*2 + 3]
and eax, 0xfffffffc
call fcn.00403cc8
mov eax, esp
push edi
mov dword [ebp - 0x10], eax
push eax
push 0xffffffffffffffff
push dword [ebp + 0x14]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x403523
add edi, edi
push edi
push dword [ebp - 0x10]
push 1
push dword [ebp - 0x14]
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
xor esi, esi
neg eax
sbb esi, esi
mov esp, dword [ebp - 0x18]
jmp 0x40352b
xor esi, esi
dec esi
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403ea0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x403eb1
jmp dword [eax*4 + 0x40dbe8]
cmp dword [0x40f0cc], 0
je 0x403fb3
push 0x40f0d0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x40f0e8]
test edi, edi
je 0x403fa8
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403efb
mov edi, dword [edi + 8]
test edi, edi
je 0x403fa8
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x403ef0
test esi, esi
je 0x403ef0
mov ecx, dword [edi + 4]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x403ef0
cmp dword [0x40f0cc], 0
jne 0x403f30
push 0x40f0d0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x40f0cc], 1
jmp case.default.0x403eb1
call fcn.00403760
jmp case.default.0x403eb1
cmp dword [0x40f0cc], 0
je case.default.0x403eb1
push 0x40f0d0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x40f0e8]
test edi, edi
je 0x404003
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403f87
mov edi, dword [edi + 8]
test edi, edi
je 0x404003
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x403f80
test esi, esi
je 0x403f80
mov ecx, dword [edi + 4]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x403f80
push 0x40f0d0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x40f0cc]
cmp eax, 1
jne case.default.0x403eb1
mov eax, dword [0x40f0e8]
test eax, eax
je 0x403fe2
nop word cs:[eax + eax]
mov esi, dword [eax + 8]
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, esi
test esi, esi
jne 0x403fd0
mov dword [0x40f0e8], 0
mov dword [0x40f0cc], 0
push 0x40f0d0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp case.default.0x403eb1
push 0x40f0d0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404130
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [0x40d004]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x404196
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x404196
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x404196
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x404196
mov edx, dword [esp + 0xc]
sub edx, dword [0x40d004]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x404186
add esi, 0x28
dec ecx
je 0x404196
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x404180
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x404180
mov eax, esi
pop esi
pop edi
ret
Function at 0x4010c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4c90d6
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
fld qword [0x4f8ab0]
mov dword [esi], vtable.common::CCommandStatusControl.0
xor ebx, ebx
mov byte [esi + 8], bl
mov byte [esi + 9], bl
fstp qword [esi + 0x10]
fldz
fstp qword [esi + 0x18]
fld1
fstp qword [esi + 0x20]
call fcn.00407a70
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ebx
mov dword [esp + 0x14], ebx
lea eax, [esi + 0x34]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
push eax
mov dword [eax + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x406390
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x144]
sub esp, 0x144
push 0xffffffffffffffff
push 0x4cc420
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x512f80]
xor eax, ebp
mov dword [ebp + 0x140], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x406413
push 0x584
push str..BootStrapper.cpp
push str._SystemTimeToFileTime_systemTime__fileTimeNow_____0
call fcn.0042c7e0
mov ecx, eax
call fcn.0042ca10
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40649c
mov esi, 0xf
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
lea eax, [ebp + 0x2c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x406440
sub eax, edx
push eax
lea ecx, [ebp + 0x2c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.0040e480
mov byte [ebp - 4], 1
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x20]
call fcn.004069e0
mov byte [ebp - 4], bl
cmp dword [ebp - 0x30], 0x10
jb 0x40647d
mov eax, dword [ebp - 0x44]
push eax
call fcn.004606bf
add esp, 4
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
lea ecx, [ebp]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406425
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor edi, edi
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x40650f
mov ecx, dword [ebp - 0x18]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x40650f
mov byte [ebp - 4], 3
mov dword [ebp - 0x2c], 0x64
mov dword [ebp - 0x28], 0xa
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x28]
push eax
lea esi, [ebp - 0x20]
call fcn.004069a0
mov ecx, eax
call fcn.00433c30
add esp, 8
mov dword [ebp - 4], ebx
add edi, 1
jmp 0x40649e
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x40655a
mov edi, dword [ebp - 0x18]
cmp eax, edi
je 0x406551
lea esi, [eax + 0x18]
cmp dword [esi], 0x10
jb 0x406538
mov ecx, dword [esi - 0x14]
push ecx
call fcn.004606bf
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, edi
jne 0x406527
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004606bf
add esp, 4
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x140]
xor ecx, ebp
call fcn.0048162f
add ebp, 0x144
mov esp, ebp
pop ebp
ret
mov ecx, str..pkg
jmp 0x406390

Function at 0x406590
Capabilities:
Enumerate files on windows

Disassembly:
mov ecx, 0x4e2950
jmp 0x406390
Function at 0x408080
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4c501b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004a4808
mov dword [esp + 0x18], 0
push 4
call fcn.0046068f
mov edi, eax
add esp, 4
test edi, edi
je 0x4080e4
call fcn.004a4a6e
mov dword [edi], eax
call fcn.004a48a2
mov ecx, eax
call fcn.0040c620
jmp 0x4080e6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x408900
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cc4c1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor ebx, ebx
push 0xffffffffffffffff
mov dword [esp + 0x10], ebx
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.0040dba0
mov dword [esp + 0x34], 1
mov ecx, dword [esp + 0x44]
push 0xffffffffffffffff
push ebx
push ecx
lea ecx, [esp + 0x1c]
call fcn.00407ec0
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.0040dba0
mov dword [esp + 0xc], 1
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 0x10
jb 0x4089a1
mov edx, dword [esp + 0x14]
push edx
call fcn.004606bf
add esp, 4
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x40dfc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c6e5b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.common::CErrorCodeException.0
mov dword [esp + 0x14], 0
cmp dword [esi + 0x44], 0x10
jb 0x40e008
mov eax, dword [esi + 0x30]
push eax
call fcn.004606bf
add esp, 4
mov dword [esi + 0x44], 0xf
mov dword [esi + 0x40], 0
mov byte [esi + 0x30], 0
mov dword [esp + 0x14], 0xffffffff
mov ecx, esi
call fcn.0040e270
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4121f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, 0xffffffff
jne 0x412209
xor al, al
add esp, 0x18
ret
push esi
push str.ProcessIdToSessionId
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x412279
lea eax, [esp + 8]
push eax
push str.SoftwareValveSteam
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x412279
mov dword [esp + 4], eax
mov eax, 4
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 8]
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 0
push str.SteamPID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 4], 0
jne 0x412280
xor al, al
pop esi
add esp, 0x18
ret
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call esi
mov edx, dword [esp + 4]
lea ecx, [esp + 0x10]
push ecx
push edx
call esi
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, dword [esp + 0x10]
pop esi
setne al
add esp, 0x18
ret

Function at 0x412420
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
push edi
push str.GlobalValve_SteamIPC_Class
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov edi, eax
test edi, edi
jne 0x412440
xor al, al
pop edi
add esp, 0x10
ret
lea eax, [esp + 4]
push eax
push str.SoftwareValveSteam
push reloc.WS2_32.dll_bind
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x412509
mov eax, dword [esi + 0x14]
add eax, 1
cmp dword [esi + 0x18], 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
jb 0x412482
mov ecx, dword [esi + 4]
jmp 0x412485
lea ecx, [esi + 4]
push eax
push ecx
mov ecx, dword [esp + 0xc]
push 1
push 0
push str.TempAppCmdLine
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, 4
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push str.SteamPID
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 8], 0
je 0x412502
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, 0xffffffff
je 0x412502
push str.AllowSetForegroundWindow
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x412502
mov ecx, dword [esp + 8]
push ecx
call eax
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
add esp, 0x10
ret
Function at 0x419900
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4c754d
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esi], eax
lea eax, [esi + 0xc]
push eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
call fcn.004199e0
xor eax, eax
mov dword [esp + 0x10], eax
mov byte [esi + 0x30], al
mov byte [esi + 0x31], al
mov dword [esp + 0x10], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 8
Function at 0x41c0e0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4cb4db
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push edi
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
test esi, esi
jne 0x41c131
push str.FilePtr
push ecx
call fcn.0042c7e0
add esp, 4
push eax
mov eax, 0x19f
mov ecx, str.....CommonSrcPkgFileHdr.cpp
mov edx, str.fp___0
call fcn.0042ca40
push 2
call fcn.0041c2e0
neg eax
push eax
push esi
call fcn.00482c18
add esp, 0xc
test eax, eax
je 0x41c167
push 0x1a2
push str.....CommonSrcPkgFileHdr.cpp
push str._fseek_fp___static_cast_long__SizeOfHdr_____2___0____false
push ecx
call fcn.0042c7e0
add esp, 4
mov ecx, eax
call fcn.0042ca10
push esi
push 1
lea eax, [esp + 0x17]
push 1
push eax
call fcn.00483204
add esp, 0x10
cmp eax, 1
je 0x41c19d
push 0x1a6
push str.....CommonSrcPkgFileHdr.cpp
push str._fread_nFormatVersionNum__1__sizeof_nFormatVersionNum___fp___sizeof_nFormatVersionNum_____false
push ecx
call fcn.0042c7e0
add esp, 4
mov ecx, eax
call fcn.0042ca10
push esi
push 4
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00483204
add esp, 0x10
cmp eax, 4
je 0x41c1d3
push 0x1aa
push str.....CommonSrcPkgFileHdr.cpp
push str._fread_uCompressLevel__1__sizeof_uCompressLevel___fp___sizeof_uCompressLevel_____false
push ecx
call fcn.0042c7e0
add esp, 4
mov ecx, eax
call fcn.0042ca10
mov eax, dword [esp + 0x14]
test eax, eax
mov edi, eax
jl 0x41c26f
cmp eax, 9
jg 0x41c26f
push esi
push 4
lea edx, [esp + 0x18]
push 1
push edx
call fcn.00483204
add esp, 0x10
cmp eax, 4
je 0x41c220
push 0x1b2
push str.....CommonSrcPkgFileHdr.cpp
push str._fread_numFiles__1__sizeof_numFiles___fp___sizeof_numFiles_____false
push ecx
call fcn.0042c7e0
add esp, 4
mov ecx, eax
call fcn.0042ca10
mov eax, dword [esp + 0x10]
cmp eax, 0x186a0
jbe 0x41c24b
push str.corrupt_pkg_file_header__invalid_number_of_files_
lea eax, [esp + 0x1c]
push eax
xor cl, cl
call fcn.0040e5f0
push 0x5026f0
lea ecx, [esp + 0x1c]
push ecx
call fcn.00488a7c
mov dl, byte [esp + 0xf]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edi
mov byte [ebx + 0xc], dl
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0xac
ret
push eax
lea eax, [esp + 0x74]
push eax
call fcn.00408d70
mov dword [esp + 0xb8], 0
push eax
lea ecx, [esp + 0x98]
push ecx
mov ecx, str.corrupt_pkg_file_header__invalid_compression_level
call fcn.004089d0
mov byte [esp + 0xc0], 1
push eax
lea edx, [esp + 0x2c]
push edx
mov ecx, 0x4e28e8
call fcn.00408aa0
add esp, 0x18
mov byte [esp + 0xb0], 2
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0040e350
push 0x5026f0
lea ecx, [esp + 0x48]
push ecx
call fcn.00488a7c
int3