joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48798e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4879a8
call fcn.0040e4e3
mov esi, dword [eax + 0xc]
push dword [0x63fd1c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4879c6
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4879be
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4879f3
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4879c0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004878bc
mov esi, eax
jmp 0x4879e5

Function at 0x4c99a8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
add ecx, 4
pop ebp
jmp fcn.004213f1

Function at 0x4d8e81
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00416dcb
call fcn.0040e601
cmp eax, esi
pop esi
jne 0x4d8e9d
mov ecx, 0x63de88
jmp fcn.0041df32
ret

Function at 0x4dc816
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4dc82e
mov edi, dword [esi + 0xc]
jmp 0x4dc86e
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4dc847
call fcn.0041b5df
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4dc85c
call fcn.0041b5df
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4dc86e
call fcn.0041b5df
call fcn.0040e4e3
cmp dword [eax + 0x3c], 0
je 0x4dc883
push edi
mov ecx, ebx
call fcn.004db64a
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004dc730
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4dc8a1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4dc8ad
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4fbd5c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x629d58]
jne 0x4fbd66
repz ret
jmp fcn.0050514c
Function at 0x516dc0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x629d58]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00504b3e
and dword [ebp - 0x14], 0
cmp dword [0x6422f4], 0
mov dword [ebp - 0x18], eax
jne 0x516e73
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x516f1b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x516f1b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5d26b8
push ebx
mov dword [0x6422f4], eax
call edi
push eax
call esi
push 0x5d26a4
push ebx
mov dword [0x6422f8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x6422fc], eax
call edi
push eax
call esi
mov dword [0x642304], eax
test eax, eax
je 0x516e73
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x642300], eax
mov eax, dword [0x642300]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x516ecc
cmp dword [0x642304], ecx
je 0x516ecc
push eax
call esi
push dword [0x642304]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x516ecc
test ebx, ebx
je 0x516ecc
call edi
test eax, eax
je 0x516ec3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x516ec3
test byte [ebp - 8], 1
jne 0x516ecc
or dword [ebp + 0x10], 0x200000
jmp 0x516eff
mov eax, dword [0x6422f8]
cmp eax, dword [ebp - 0x18]
je 0x516eff
push eax
call esi
test eax, eax
je 0x516eff
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x516eff
mov eax, dword [0x6422fc]
cmp eax, dword [ebp - 0x18]
je 0x516eff
push eax
call esi
test eax, eax
je 0x516eff
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x6422f4]
call esi
test eax, eax
je 0x516f1b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x516f1d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fbd5c
leave
ret
Function at 0x51d680
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x58e798
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x629d58]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 4], vtable.Fog::CBase_unsigned_int__0__struct_Fog::CFogClearTraits_.0
mov dword [esp + 0xc], vtable.Fog::CStackStorage_unsigned_int__struct_Fog::CFogClearTraits___1267387242__390004183___1472699768_.0
mov dword [esp + 0x18], 0x7632f36
mov eax, dword [ecx + 8]
mov edx, dword [eax]
push 0xd217863c
add ecx, 8
push 0x6d111963
push 0xce5ad022
mov dword [esp + 0x34], 0
call edx
mov edx, dword [esp + 0xc]
xor eax, 0xcb495fd8
mov ecx, eax
not ecx
xor ecx, eax
and ecx, 0x32884fd3
not eax
xor ecx, eax
mov eax, dword [edx + 4]
xor ecx, 0xb8c00d93
push ecx
lea ecx, [esp + 0x10]
call eax
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push 0xa8386288
push 0x173efdd7
push 0xb4753496
lea ecx, [esp + 0x18]
call eax
cmp eax, dword [esp + 0x30]
setb al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
add esp, 0x28
ret 4

Function at 0x51f2f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
cmp eax, dword [esp + 8]
je 0x51f336
push esi
mov esi, dword [esp + 0x10]
nop
lea ecx, [eax + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax]
push 4
push 0x5b
push 0x1a
call edx
mov edx, dword [esp + 8]
xor al, 0xd8
mov cl, al
not cl
xor cl, al
and cl, 0x2c
xor cl, al
xor cl, 0x8b
mov byte [esi], cl
mov eax, dword [edx]
inc esi
mov dword [esp + 8], eax
cmp eax, dword [esp + 0xc]
jne 0x51f300
mov eax, esi
pop esi
ret
mov eax, dword [esp + 0xc]
ret

Function at 0x520470
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x58ec7f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x629d58]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.FNPNS::ASC::CSessionPolicyBase.0
push fcn.00405bc0
push 9
lea eax, [esi + 0x6c]
push 8
push eax
mov dword [esp + 0x30], 4
call fcn.004fdc63
lea edi, [esi + 0x5c]
mov dword [esp + 0x10], edi
mov eax, dword [edi + 4]
mov ecx, dword [eax]
push eax
push ecx
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
mov byte [esp + 0x2c], 5
call fcn.0051fe30
mov edi, dword [edi + 4]
push edi
call fcn.0040d019
mov dword [esi + 0x3c], vtable.Fog::CBase_unsigned_int___841420853__struct_Fog::CFogNoStorageTraits_.0
add esp, 4
lea ecx, [esi + 0x30]
mov dword [esi + 0x44], vtable.Fog::CStorageBase_unsigned_int__2041437021___622456292__1709215043_.0
call fcn.0051fb10
mov edi, dword [esi + 0x30]
push edi
call fcn.0040d019
add esp, 4
lea ecx, [esi + 0x24]
call fcn.0051fb10
mov edi, dword [esi + 0x24]
push edi
call fcn.0040d019
add esp, 4
lea ecx, [esi + 4]
mov dword [esp + 0x20], 0xffffffff
call fcn.005203d0
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x520560
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x58ecdb
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x629d58]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x629d58]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, dword [esp + 0x88]
mov ebp, ecx
cmp dword [ebp + 0x18], 0
je 0x5205de
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push 0x76d8
lea ecx, [ebp + 8]
push 0xe987
push 0x20c6
call edx
push 0x76d8
lea ecx, [edi + 8]
movzx esi, ax
mov eax, dword [ecx]
mov edx, dword [eax]
push 0xe987
push 0x20c6
call edx
cmp si, ax
je 0x52075d
mov dword [esp + 0x14], vtable.Fog::CConst_unsigned_short_int__1__981406800__struct_Fog::CFogNoStorageTraits_.0
mov dword [esp + 0x1c], vtable.Fog::CStackStorage_unsigned_short_int__struct_Fog::CFogNoStorageTraits__8390__59783__30424_.0
push 0xca1
lea ecx, [esp + 0x20]
mov dword [esp + 0x84], 0
call dword [0x5d37c4]
mov dword [esp + 0x14], vtable.Fog::CConstDef_class_Fog::CValue_unsigned_short_int__981406800__struct_Fog::CFogNoStorageTraits___1_.0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x84], 1
call fcn.0051d5f0
mov edx, dword [edi + 8]
mov eax, dword [edx]
push 0x76d8
lea ecx, [edi + 8]
push 0xe987
push 0x20c6
mov byte [esp + 0x8c], 2
call eax
mov edx, dword [esp + 0x30]
push 0x76d8
push 0xe987
movzx esi, ax
mov eax, dword [edx]
push 0x20c6
lea ecx, [esp + 0x3c]
call eax
cmp si, ax
sete al
mov dword [esp + 0x80], 0xffffffff
test al, al
je 0x52077e
push 0xfc
call fcn.0040cfdf
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
mov dword [esp + 0x80], 3
test esi, esi
je 0x5206d4
mov ecx, esi
call fcn.00537310
push fcn.00405bc0
push 0x51ecc0
push 9
lea eax, [esi + 0xb4]
push 8
push eax
mov byte [esp + 0x94], 4
mov dword [esi], vtable.FNPNS::ASC::CSessionPolicy_LondonGA.0
call fcn.0050145f
jmp 0x5206d6
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push esi
push edx
mov dword [esp + 0x8c], 5
call fcn.0051f120
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea ecx, [ebp + 0x18]
mov dword [esp + 0x84], 6
call fcn.0051f030
mov esi, dword [esp + 0x18]
mov dword [esp + 0x80], 0xffffffff
test esi, esi
je 0x520755
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x520755
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x520755
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
push edi
mov ecx, ebp
call fcn.0051efc0
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004fbd5c
add esp, 0x70
ret 4
push 0x5ac14c
push 0x82
lea ecx, [esp + 0x48]
call fcn.0056b030
push 0x618354
lea ecx, [esp + 0x44]
push ecx
call fcn.004fc4f1
int3
Function at 0x5395f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x591ecb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x629d58]
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.0056b94b
push 4
mov dword [esp + 0x24], 0
call fcn.0040cfdf
mov edi, eax
add esp, 4
test edi, edi
je 0x539672
call fcn.0056b609
mov dword [edi], eax
call fcn.0056b484
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0056b3b9
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x539667
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0056b3e1
jmp 0x539674
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
Function at 0x53bfe0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x592378
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x629d58]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x629d58]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x44], 0
je 0x53c129
cmp byte [edi + 0x49], 0
je 0x53c129
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x53c11c
mov ecx, 0xf
xor eax, eax
mov byte [esp + 0x18], 0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], 8
cmp ecx, 0x10
jae 0x53c063
lea eax, [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
lea ebx, [edi + 0x4c]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x2c]
mov edx, eax
cmp ebp, 0x10
jae 0x53c087
lea edx, [esp + 0x18]
mov eax, edx
add edx, dword [esp + 0x28]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebp, [esp + 0x14]
push ebp
push edx
push eax
mov eax, dword [esi + 0x18]
push ebx
call eax
sub eax, 0
je 0x53c0b0
dec eax
je 0x53c0b4
sub eax, 2
lea ecx, [esp + 0x18]
jne 0x53c117
jmp 0x53c124
mov byte [edi + 0x49], 0
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov ecx, eax
cmp ebp, 0x10
jae 0x53c0c7
lea ecx, [esp + 0x18]
mov esi, dword [esp + 0x14]
sub esi, ecx
je 0x53c0f4
cmp ebp, 0x10
jae 0x53c0d8
lea eax, [esp + 0x18]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0050312e
add esp, 0x10
cmp esi, eax
jne 0x53c113
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
cmp byte [edi + 0x49], 0
je 0x53c120
test esi, esi
jne 0x53c07a
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.004070e0
jmp 0x53c072
lea ecx, [esp + 0x18]
call fcn.004034b0
xor al, al
jmp 0x53c12b
lea ecx, [esp + 0x18]
call fcn.004034b0
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004fbd5c
add esp, 0x30
ret
Function at 0x53ef20
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x592828
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x629d58]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x629d58]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov eax, dword [esp + 0x84]
push 4
xor ebp, ebp
push str._tmp
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebp
mov byte [esp + 0x24], 0
call fcn.00403cc0
push 0x104
mov dword [esp + 0x80], ebp
call fcn.0040d00e
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
add esp, 4
mov esi, eax
push esi
push 0x104
call ebx
mov edi, eax
cmp edi, ebp
jne 0x53efb7
push 3
push 0x5d4db0
jmp 0x53eff0
cmp edi, 0x104
jb 0x53efe0
nop
push esi
call fcn.0040d019
lea ebp, [edi + 1]
push ebp
call fcn.0040d00e
add esp, 8
mov esi, eax
push esi
push ebp
call ebx
mov edi, eax
cmp edi, ebp
jae 0x53efc0
xor ebp, ebp
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x53efe5
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.00403cc0
push esi
call fcn.0040d019
mov ebx, 7
xor ecx, ecx
add esp, 4
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebp
mov word [esp + 0x38], cx
mov byte [esp + 0x7c], 1
call fcn.00569dd0
mov esi, dword [esp + 0x2c]
cmp esi, ebp
je 0x53f04f
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov edx, ecx
cmp edi, 0x10
jae 0x53f03d
lea edx, [esp + 0x1c]
mov ecx, edx
push eax
lea eax, [esp + 0x3c]
push eax
add edx, esi
push edx
push ecx
call fcn.00568140
add esp, 0x10
xor ecx, ecx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], ebp
mov word [esp + 0x54], cx
mov byte [esp + 0x7c], 3
call fcn.00569dd0
push eax
mov eax, dword [str.libFNP_events.log]
lea edx, [esp + 0x58]
push edx
push ebp
push eax
call fcn.00568140
add esp, 0x10
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 4
call fcn.0056a040
mov esi, 8
mov byte [esp + 0x7c], 2
cmp dword [esp + 0x68], esi
jb 0x53f0b0
mov edx, dword [esp + 0x54]
push edx
call fcn.0040d019
add esp, 4
mov edi, dword [esp + 0x14]
push edi
lea ecx, [esp + 0x3c]
call fcn.0053e920
cmp dword [esp + 0x4c], esi
jb 0x53f0d1
mov eax, dword [esp + 0x38]
push eax
call fcn.0040d019
add esp, 4
xor ecx, ecx
cmp dword [esp + 0x30], 0x10
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebp
mov word [esp + 0x38], cx
jb 0x53f0f4
mov edx, dword [esp + 0x1c]
push edx
call fcn.0040d019
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004fbd5c
add esp, 0x6c
ret
Function at 0x540b30
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x592c77
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x629d58]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x18], ebp
xor ebx, ebx
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x2c], ebx
je 0x540b83
mov dword [ebp], 0x5d4e10
mov dword [ebp + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], 1
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
mov dword [ecx + ebp], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov edx, dword [ebp]
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov edi, dword [edx + 4]
add edi, ebp
mov ecx, edi
call fcn.005389a0
lea esi, [ebp + 0x10]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], ebx
call fcn.0053a400
mov byte [edi + 0x40], al
cmp dword [edi + 0x38], ebx
jne 0x540bd1
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push ebx
push eax
mov ecx, edi
call fcn.00538850
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
mov dword [ecx + ebp], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov ecx, esi
mov dword [esp + 0x24], 2
call fcn.005395f0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
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], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov edx, dword [0x642354]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x5428c0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x10c
mov eax, dword [0x629d58]
xor eax, esp
mov dword [esp + 0x108], eax
cmp dword [0x64239c], 0
jne 0x5429a7
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 8]
push str.Locala3d0d9cf_ef71_409f_acb2_91dca7237f13__lx_s_vm_init
push eax
call fcn.004fc8e3
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
je 0x5429bc
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x54295d
cmp dword [0x64239c], 0
jne 0x54297c
push 0x642384
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x5420d0
call fcn.004fbe8e
add esp, 4
mov dword [0x64239c], 0xffffffff
jmp 0x54297c
test esi, esi
je 0x54297c
cmp dword [esi + 4], 0
je 0x54297c
push 0x139
call ebx
mov edx, dword [esi]
push eax
mov eax, dword [esi + 4]
push 0x11
push edx
call eax
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x5429a5
test esi, esi
je 0x5429a5
cmp dword [esi + 4], eax
je 0x5429a5
push 0x139
call ebx
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push eax
push 0x12
push ecx
call edx
add esp, 0x10
pop ebx
pop edi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004fbd5c
add esp, 0x10c
ret
test esi, esi
je 0x5429a6
cmp dword [esi + 4], 0
je 0x5429a6
push 0x139
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi]
push 0x10
push eax
call ecx
mov ecx, dword [esp + 0x11c]
add esp, 0x10
pop edi
xor ecx, esp
call fcn.004fbd5c
add esp, 0x10c
ret
Function at 0x542d90
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x10c
mov eax, dword [0x629d58]
xor eax, esp
mov dword [esp + 0x108], eax
cmp dword [0x6423b8], 0
jne 0x542e71
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 8]
push str.Locala3d0d9cf_ef71_409f_acb2_91dca7237f13__lx_s_tpm_init
push eax
call fcn.004fc8e3
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
je 0x542e86
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x542e2d
cmp dword [0x6423b8], 0
jne 0x542e49
push 0x6423a0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x542d50
call fcn.004fbe8e
add esp, 4
mov dword [0x6423b8], 0xffffffff
jmp 0x542e49
test esi, esi
je 0x542e49
cmp dword [esi + 4], 0
je 0x542e49
push 0x1d
call ebx
mov edx, dword [esi]
push eax
mov eax, dword [esi + 4]
push 0x11
push edx
call eax
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x542e6f
test esi, esi
je 0x542e6f
cmp dword [esi + 4], eax
je 0x542e6f
push 0x1d
call ebx
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push eax
push 0x12
push ecx
call edx
add esp, 0x10
pop ebx
pop edi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004fbd5c
add esp, 0x10c
ret
test esi, esi
je 0x542e70
cmp dword [esi + 4], 0
je 0x542e70
push 0x1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi]
push 0x10
push eax
call ecx
mov ecx, dword [esp + 0x11c]
add esp, 0x10
pop edi
xor ecx, esp
call fcn.004fbd5c
add esp, 0x10c
ret

Function at 0x5432a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
lea edi, [ebp + 3]
shr edi, 2
push 4
push edi
or ebx, 0xffffffff
call fcn.004fd927
mov esi, eax
add esp, 8
test esi, esi
je 0x543328
mov eax, dword [esp + 0x18]
push ebp
push eax
push esi
call fcn.004fbf80
mov ecx, dword [esp + 0x20]
add esp, 0xc
xor eax, eax
test edi, edi
je 0x5432eb
jmp 0x5432e0
xor dword [esi + eax*4], ecx
mov ecx, dword [esi + eax*4]
inc eax
cmp eax, edi
jb 0x5432e0
xor eax, eax
xor edi, edi
xor dl, dl
test ebp, ebp
je 0x543315
mov ebx, dword [esi + edi*4]
movzx ecx, dl
and ecx, 0x1f
shr ebx, cl
mov ecx, dword [esp + 0x18]
inc eax
mov edi, eax
mov byte [eax + ecx - 1], bl
shr edi, 2
add dl, 8
cmp eax, ebp
jb 0x5432f5
push esi
call fcn.004fbea5
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret