joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4058a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
cmp eax, ebx
mov dword [esi + 0x30], eax
je 0x4059ae
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RunDetector
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi + 0x30]
push str.GetDectectorResult
push eax
call edi
mov ecx, dword [esi + 0x30]
push str.WaitDetectorComplete
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 0x30]
push str.CancelDetector
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x30]
push str.InitDetector
push eax
call edi
mov ecx, dword [esi + 0x30]
push str.UnInitDetector
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 0x30]
push str.SetGroupId
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x30]
push str.RunDetectorEx
push eax
call edi
mov ecx, dword [esi + 0x30]
push str.GetDectectorResultEx
push ecx
mov dword [esi + 0x20], eax
call edi
mov edx, dword [esi + 0x30]
push str.WaitDetectorCompleteEx
push edx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x30]
push str.InitLoadLoadParam
push eax
call edi
cmp dword [esi + 4], ebx
mov dword [esi + 0x2c], eax
pop edi
je 0x405988
cmp dword [esi + 8], ebx
je 0x405988
cmp dword [esi + 0xc], ebx
je 0x405988
cmp dword [esi + 0x10], ebx
je 0x405988
mov ecx, dword [esi + 0x14]
cmp ecx, ebx
je 0x405988
cmp dword [esi + 0x1c], ebx
je 0x405988
cmp eax, ebx
je 0x405988
push ebp
call ecx
pop ebp
lea eax, [ebx + 1]
pop ebx
ret 4
mov eax, dword [esi + 0x30]
cmp eax, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x2c], ebx
je 0x4059ae
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x30], ebx
pop ebp
xor eax, eax
pop ebx
ret 4
Function at 0x405bc0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x447dd2
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4555b4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040f2f0
mov edx, dword [esi + 0xc4]
add edx, dword [esi + 0xb4]
mov edi, dword [esi + 4]
mov ebx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
add edi, edx
mov edx, dword [esi + 0xc8]
add edx, dword [esi + 0xb8]
push 0x457500
add ebx, edx
mov edx, dword [esi + 0xcc]
add edx, dword [esi + 0xbc]
push 0x64
sub eax, edx
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0xd0]
add eax, dword [esi + 0xc0]
sub ecx, eax
mov dword [esp + 0x30], ecx
call fcn.0042ae70
mov ebp, eax
add esp, 8
mov dword [esp + 0x18], ebp
test ebp, ebp
mov dword [esp + 0x38], 0
je 0x405c70
push ebp
call fcn.0040c2e0
mov dword [ebp], vtable.CVClientContainer2.0
jmp 0x405c72
xor ebp, ebp
test ebp, ebp
mov dword [esp + 0x38], 0xffffffff
mov dword [esi + 0x190], ebp
je 0x405cda
mov eax, dword [esp + 0x28]
sub eax, ebx
sub ebx, dword [esi + 8]
mov ecx, eax
mov eax, dword [esp + 0x24]
sub eax, edi
sub edi, dword [esi + 4]
mov edx, eax
mov eax, dword [ebp + 0x18]
test al, 1
je 0x405cae
test byte [esi + 0x18], 0x80
je 0x405cae
or eax, 0x80
jmp 0x405cb3
and eax, 0xffffff7f
add ecx, ebx
push ecx
add edx, edi
push edx
push ebx
mov dword [ebp + 0x18], eax
push edi
lea eax, [ebp + 4]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push ebp
mov eax, esi
call fcn.0040c4f0
mov edx, dword [ebp]
mov eax, dword [edx + 8]
mov ecx, ebp
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406570
Capabilities:
Delete file
Query or enumerate registry value
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x445e52
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x4555b4]
xor eax, esp
mov dword [esp + 0x424], eax
push ebx
push esi
push edi
mov eax, dword [0x4555b4]
xor eax, esp
push eax
lea eax, [esp + 0x438]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x440], ebx
mov dword [esp + 0x10], ebx
mov eax, dword [0x4577bc]
mov edx, dword [eax + 0xc]
mov edi, ecx
mov ecx, 0x4577bc
mov dword [esp + 0x1c], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x440], ebx
mov eax, 1
push 0x208
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x22e]
push ebx
push eax
mov dword [esp + 0x24], 0x104
mov word [esp + 0x234], bx
call fcn.004315d0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x22c]
push edx
lea eax, [esp + 0x1c]
push eax
push str.install
push str.SOFTWARETencentQQLive
push connect
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4066e4
push 0x206
lea ecx, [esp + 0x26]
push ebx
push ecx
mov word [esp + 0x2c], bx
call fcn.004315d0
add esp, 0xc
push 0x104
lea edx, [esp + 0x24]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x20]
push ecx
push str._s_scan.dat
call fcn.00406b90
mov eax, dword [edi]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4066e4
lea eax, [esp + 0x228]
mov dword [esp + 0x10], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4066b6
sub eax, edx
push ebx
sar eax, 1
lea edx, [esp + 0x14]
push edx
add eax, eax
push eax
lea ecx, [esp + 0x234]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [esp + 0x438]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.00429d78
add esp, 0x434
ret

Function at 0x406710
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x4555b4]
xor eax, esp
mov dword [esp + 0x214], eax
push 0x208
lea eax, [esp + 0xe]
push 0
push eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0x104
mov word [esp + 0x14], 0
call fcn.004315d0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 8]
push eax
push str.ExeString
push str.SOFTWARETencentQQPCMgr
push connect
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x406797
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00429d78
add esp, 0x218
ret
mov ecx, dword [esp + 0x214]
xor ecx, esp
xor eax, eax
call fcn.00429d78
add esp, 0x218
ret
Function at 0x4067b0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x446166
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x4555b4]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [0x4555b4]
xor eax, esp
push eax
lea eax, [esp + 0x284]
mov dword fs:[0], eax
xor ebx, ebx
push 0x208
lea eax, [esp + 0x7a]
push ebx
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x104
mov word [esp + 0x80], bx
call fcn.004315d0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x20]
push eax
push str.ExeString
push str.SOFTWARETencentQQPCMgr
push connect
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x406940
push 0x44
lea ecx, [esp + 0x34]
push ebx
push ecx
call fcn.004315d0
mov edx, dword [0x4577bc]
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x4577bc
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x5c], 0x80
mov dword [esp + 0x20], ebx
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x28c], ebx
call fcn.00406570
mov byte [esp + 0x28c], 1
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x78]
push edx
push str.__s___TAB_TROJAN__ContextScan__s
lea edi, [esp + 0x1c]
call fcn.00406b90
mov byte [esp + 0x298], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4068e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406919
mov eax, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0x24]
push ecx
call edi
lea eax, [esi - 0x10]
mov dword [esp + 0x28c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406940
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x284]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.00429d78
add esp, 0x280
ret
Function at 0x406f70
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x44758a
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4555b4]
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.miniskin::CSkinMgr.0
lea eax, [esi + 0x94]
push eax
mov dword [esp + 0x18], 7
call fcn.004097f0
lea eax, [esi + 0x88]
mov byte [esp + 0x14], 6
call fcn.00408960
lea eax, [esi + 0x7c]
mov byte [esp + 0x14], 5
call fcn.00408920
lea eax, [esi + 0x70]
mov byte [esp + 0x14], 4
call fcn.00408920
lea eax, [esi + 0x64]
mov byte [esp + 0x14], 3
call fcn.00408920
lea eax, [esi + 0x58]
mov byte [esp + 0x14], 2
call fcn.00408960
lea eax, [esi + 0x4c]
mov byte [esp + 0x14], 1
call fcn.00408960
lea eax, [esi + 0x3c]
mov byte [esp + 0x14], 0
call fcn.00408960
cmp dword [esi + 0x34], 8
jb 0x407022
mov ecx, dword [esi + 0x20]
push ecx
call fcn.00429c36
add esp, 4
mov dword [esi + 0x34], 7
mov dword [esi + 0x30], 0
mov word [esi + 0x20], 0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x409b10
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x446998
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4555b4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
mov eax, edx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], di
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x409b56
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x20]
call fcn.00403890
lea eax, [esp + 0x10]
push eax
push ebx
mov eax, esi
mov dword [esp + 0x48], edi
call fcn.00409d30
cmp dword [esp + 0x30], 8
jb 0x409b95
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00429c36
add esp, 4
mov esi, dword [esp + 0x10]
test esi, esi
mov edi, dword [ebx + 4]
je 0x409ba4
cmp esi, ebx
je 0x409ba9
call fcn.0042ab0d
mov ebx, dword [esp + 0x14]
cmp ebx, edi
jne 0x409bc6
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x409bcf
call fcn.0042ab0d
cmp ebx, dword [esi + 4]
jne 0x409bd9
call fcn.0042ab0d
add ebx, 0x28
cmp dword [ebx], 0
jne 0x409be6
call fcn.00409700
mov eax, dword [ebx]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d170
Capabilities:
Log keystrokes via polling

Disassembly:
cmp eax, 9
push esi
jne 0x40d1f0
push ebp
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
setl cl
mov ebp, ecx
mov ecx, dword [edi + 4]
push ebp
call fcn.0040cd40
test eax, eax
jne 0x40d1eb
push ebx
mov ebx, dword [edi + 4]
mov esi, dword [ebx + 0x5c]
test esi, esi
je 0x40d1e1
mov eax, dword [esi + 0x18]
mov edx, eax
shr edx, 2
not edx
test dl, 1
jne 0x40d1da
and eax, 0xfffffffb
mov dword [esi + 0x18], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x58]
push 0
mov ecx, esi
call edx
test byte [esi + 0x18], 0x80
lea eax, [esi + 4]
je 0x40d1da
mov esi, dword [esi + 0x3c]
test esi, esi
je 0x40d1da
mov esi, dword [esi]
push 0
call fcn.0040e210
mov dword [ebx + 0x5c], 0
mov ecx, dword [edi + 4]
push ebp
call fcn.0040cd40
pop ebx
pop ebp
pop esi
ret 4
mov ecx, dword [edi + 4]
mov esi, dword [esp + 8]
mov edx, dword [ecx]
push esi
push eax
mov eax, dword [edx + 0x30]
call eax
pop esi
ret 4
Function at 0x4109c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
cmp dword [esp + 0xc], 1
mov dword [esp], 0
jb 0x410ab7
mov ecx, dword [ebx]
test ecx, ecx
je 0x4109e7
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [ebx], 0
mov eax, dword [0x456d18]
test eax, eax
jne 0x4109fc
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x456d18], eax
movzx ecx, word [esp + 8]
push esi
push 0x44d1bc
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x410a1a
pop esi
pop ecx
ret 8
mov edx, dword [0x456d18]
push ebp
push esi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
jne 0x410a3e
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
xor eax, eax
pop esi
pop ecx
ret 8
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x410a60
push ebp
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop ebp
pop esi
pop ecx
ret 8
mov eax, dword [0x456d18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov edi, eax
call fcn.00410870
add esp, 4
test eax, eax
mov dword [ebx], eax
je 0x410aa5
mov esi, eax
call fcn.0040b540
mov esi, dword [ebx]
mov dword [ebx + 0x10], eax
call fcn.0040b570
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0x14], eax
mov eax, 1
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
mov dword [esp + 0xc], eax
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop esi
pop ecx
ret 8
xor eax, eax
pop ecx
ret 8
Function at 0x413df0
Capabilities:
Read file via mapping

Disassembly:
push str.GlobalFA6FBBB1_8C8E_43b1_B8EC_35573A94C231
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test eax, eax
mov dword [esi], eax
je 0x413e2a
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 4], eax
jne 0x413e2d
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
xor eax, eax
ret
mov dword [esi + 8], eax
mov eax, 1
ret

Function at 0x413f00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SOFTWARETencentQQPCMgr
push connect
mov dword [esp + 0x14], 0
mov byte [0x458f80], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413f77
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push eax
push eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
push str.EnableLogToView
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413f6d
mov eax, 1
cmp dword [esp + 4], eax
jne 0x413f6d
mov byte [0x458f80], al
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
ret

Function at 0x414310
Capabilities:
Check if file exists
Query environment variable

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4555b4]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x206
lea eax, [esp + 6]
push 0
push eax
mov dword [esi], 0
mov word [esp + 0xc], 0
call fcn.004315d0
add esp, 0xc
push 0x103
lea ecx, [esp + 4]
push ecx
push str._APPDATA_TencentQQPCMgr_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4143ad
lea edx, [esp]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4143ad
push edi
lea eax, [esp + 4]
push eax
lea edi, [esi + 4]
push 0x103
push edi
call fcn.00429c3b
push 0xffffffffffffffff
push str.ErrLogFile.log
push 0x104
push edi
call fcn.0042c0c6
add esp, 0x1c
pop edi
mov eax, esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00429d78
add esp, 0x20c
ret
push 0x103
push str.C:ErrLogFile.log
lea ecx, [esi + 4]
push 0x103
push ecx
call fcn.0042a40e
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
mov eax, esi
call fcn.00429d78
add esp, 0x20c
ret

Function at 0x4143e0
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 8
cmp dword [esi], 0
jne 0x414407
push 0
push 0x20
push 4
push 0
push 3
push 0xc0000000
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
mov dword [esi], eax
je 0x414462
mov ecx, dword [esi]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x414462
cmp eax, 0x2800
ja 0x414462
mov eax, dword [esi]
push 2
lea edx, [esp + 4]
push edx
push 0
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, edi
mov dword [esp + 4], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x414445
push 0
lea ecx, [esp + 8]
push ecx
sub eax, edx
mov edx, dword [esi]
push eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 8
ret
Function at 0x415090
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x447ea9
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x4555b4]
xor eax, esp
mov dword [esp + 0x154], eax
push ebx
push ebp
push esi
mov eax, dword [0x4555b4]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
lea ebp, [edi + 0x8c]
push ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov dword [esp + 0x170], ebx
cmp dword [edi + 0x28], ebx
je 0x415253
cmp dword [edi + 0x1c], ebx
jne 0x415253
push 0x80
call fcn.0042ae06
add esp, 4
mov dword [esp + 0x40], eax
cmp eax, ebx
mov byte [esp + 0x170], 1
je 0x415123
push eax
call fcn.00414e20
jmp 0x415125
xor eax, eax
mov byte [esp + 0x170], bl
mov ecx, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
mov dword [eax + 0x28], ecx
mov eax, dword [edi + 0x1c]
mov edx, dword [edi + 8]
mov dword [eax + 0x20], edx
mov ecx, dword [edi + 0xc]
mov dword [eax + 0x24], ecx
mov eax, dword [edi + 0x1c]
mov edx, dword [edi + 0x10]
mov dword [eax + 0x30], edx
mov ecx, dword [edi + 0x14]
mov dword [eax + 0x34], ecx
call fcn.00419ef0
mov ecx, dword [edi + 0x1c]
cdq
mov dword [ecx + 0x58], eax
mov dword [ecx + 0x5c], edx
push 0x118
lea edx, [esp + 0x4c]
push ebx
push edx
mov dword [esp + 0x50], ebx
call fcn.004315d0
add esp, 0xc
lea esi, [esp + 0x44]
call fcn.00419e90
test eax, eax
je 0x4151bb
movzx ecx, word [esp + 0x48]
mov eax, dword [edi + 0x1c]
mov word [eax + 0x38], cx
mov edx, dword [edi + 0x1c]
mov ax, word [esp + 0x4c]
mov word [edx + 0x3a], ax
mov ecx, dword [edi + 0x1c]
mov dx, word [esp + 0x158]
mov word [ecx + 0x3e], dx
movzx ecx, word [esp + 0x50]
mov eax, dword [edi + 0x1c]
mov word [eax + 0x3c], cx
jmp 0x4151d7
mov edx, dword [edi + 0x1c]
mov word [edx + 0x38], bx
mov eax, dword [edi + 0x1c]
mov word [eax + 0x3a], bx
mov ecx, dword [edi + 0x1c]
mov word [ecx + 0x3e], bx
mov edx, dword [edi + 0x1c]
mov word [edx + 0x3c], bx
xor eax, eax
push str.GetNativeSystemInfo
push str.kernel32.dll
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x415221
lea ecx, [esp + 0x14]
push ecx
call eax
jmp 0x41522c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [edi + 0x1c]
mov cx, word [esp + 0x14]
mov word [eax + 0x40], cx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov edx, dword [edi + 0x1c]
mov word [edx + 0x42], ax
call fcn.00415290
mov ecx, dword [edi + 0x1c]
mov dword [ecx + 0x48], eax
mov dword [ecx + 0x4c], edx
xor eax, eax
cmp dword [edi + 0x1c], ebx
push ebp
setne al
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.00429d78
add esp, 0x164
ret
Function at 0x415290
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xfc
mov eax, dword [0x4555b4]
xor eax, esp
mov dword [esp + 0xf4], eax
push esi
push edi
lea eax, [esp + 8]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREMicrosoftInternet_Explorer
push connect
mov dword [esp + 0x1c], esi
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415379
push 0xc6
lea ecx, [esp + 0x36]
push esi
push ecx
mov word [esp + 0x3c], si
call fcn.004315d0
add esp, 0xc
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
push str.Version
push edx
mov dword [esp + 0x28], 0xc8
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41536e
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x415331
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x34]
push eax
lea esi, [esp + 0x1c]
call fcn.00403890
mov eax, esi
call fcn.00415470
cmp dword [esp + 0x2c], 8
mov esi, eax
mov edi, edx
jb 0x41536e
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00429c36
add esp, 4
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xfc]
mov edx, edi
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.00429d78
add esp, 0xfc
ret

Function at 0x418280
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x445ddb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4555b4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0042942e
push 4
mov dword [esp + 0x24], 0
call fcn.0042ae06
mov edi, eax
add esp, 4
test edi, edi
je 0x418304
call fcn.004290b8
mov dword [edi], eax
call fcn.00428eec
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.004295de
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4182f9
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.004295ff
jmp 0x418306
xor edi, 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
mov dword [esi + 0x38], edi
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 eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret