joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4057a9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [ebp + 8]
push 2
push 0xffffffffffffffff
push 0xffffffffffffffea
push edi
call fcn.0040b13f
mov ebx, edx
add esp, 0x10
mov dword [ebp - 0xc], eax
test ebx, ebx
jg 0x4057dc
jl 0x4057d2
test eax, eax
jae 0x4057dc
or eax, 0xffffffff
or edx, eax
jmp 0x405928
push esi
mov esi, dword [ebp + 0xc]
push 0x16
push esi
push edi
call fcn.0041741b
add esp, 0xc
test eax, eax
js 0x405922
movzx eax, byte [esi + 3]
movzx ecx, byte [esi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi]
shl eax, 8
or eax, ecx
cmp eax, 0x6054b50
jne 0x40583e
mov eax, esi
call fcn.004056c2
test eax, eax
je 0x405836
push ebx
push dword [ebp - 0xc]
push edi
call fcn.00405735
add esp, 0xc
jmp 0x405927
mov eax, dword [ebp - 0xc]
jmp 0x405967
push 2
push 0
push 0
push edi
call fcn.0040b13f
mov ebx, edx
add esp, 0x10
mov esi, eax
test ebx, ebx
jg 0x405863
jl 0x405922
test esi, esi
jb 0x405922
mov edi, 0x10015
test ebx, ebx
jg 0x405879
jl 0x405872
cmp esi, edi
jae 0x405879
mov dword [ebp - 0xc], esi
mov eax, ebx
jmp 0x40587e
mov dword [ebp - 0xc], edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
neg ecx
adc eax, 0
push 2
neg eax
push eax
push ecx
push dword [ebp + 8]
call fcn.0040b13f
add esp, 0x10
test edx, edx
jg 0x4058a5
jl 0x405922
test eax, eax
jb 0x405922
push edi
call fcn.0040a0e7
mov edi, eax
pop ecx
mov dword [ebp - 4], edi
test edi, edi
je 0x405922
push dword [ebp - 0xc]
push edi
push dword [ebp + 8]
call fcn.0041741b
add esp, 0xc
test eax, eax
jns 0x4058cb
push edi
jmp 0x40591c
add eax, edi
mov dword [ebp - 8], eax
lea edi, [eax - 0x16]
jmp 0x405914
cmp byte [edi], 0x50
jne 0x405913
movzx ecx, byte [edi + 3]
movzx edx, byte [edi + 2]
shl ecx, 8
or ecx, edx
movzx edx, byte [edi + 1]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, 0x50
cmp ecx, 0x6054b50
jne 0x405913
movzx ecx, byte [edi + 0x15]
movzx edx, byte [edi + 0x14]
shl ecx, 8
or ecx, edx
lea ecx, [ecx + edi + 0x16]
cmp ecx, eax
je 0x40592c
dec edi
cmp edi, dword [ebp - 4]
jae 0x4058d5
push dword [ebp - 4]
call fcn.00408e95
pop ecx
or edx, 0xffffffff
mov eax, edx
pop esi
pop edi
pop ebx
leave
ret
push 0x16
push edi
push dword [ebp + 0xc]
call fcn.00409240
push dword [ebp - 4]
call fcn.00408e95
mov eax, dword [ebp - 8]
sub eax, edi
cdq
add esp, 0x10
sub esi, eax
mov eax, dword [ebp + 0xc]
sbb ebx, edx
call fcn.004056c2
test eax, eax
je 0x405965
push ebx
push esi
push dword [ebp + 8]
mov esi, dword [ebp + 0xc]
jmp 0x405829
mov eax, esi
mov edx, ebx
jmp 0x405927
Function at 0x4097a8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424070]
jne 0x4097b2
repz ret
jmp fcn.0041149e

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40aee5
call fcn.0040abd4
mov dword [eax], esi
call fcn.0040abc1
push 0x16
pop esi
mov dword [eax], esi
call fcn.0040d396
mov eax, esi
jmp 0x40af3a
test dword [ebp + 0xc], 0xfffffff9
jne 0x40aecb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40af12
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040abe7
pop ecx
call fcn.0040abc1
mov eax, dword [eax]
jmp 0x40af3a
test al, 0x10
jne 0x40af38
test al, 1
je 0x40af38
test byte [ebp + 0xc], 2
je 0x40af38
call fcn.0040abd4
mov dword [eax], 5
call fcn.0040abc1
mov dword [eax], 0xd
jmp 0x40af09
xor eax, eax
pop esi
pop ebp
ret
Function at 0x41546e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x424070]
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.0040d3dd
and dword [ebp - 0x14], 0
cmp dword [0x426280], 0
mov dword [ebp - 0x18], eax
jne 0x415521
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4155c9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4155c9
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x426280], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x426284], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x426288], eax
call edi
push eax
call esi
mov dword [0x426290], eax
test eax, eax
je 0x415521
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42628c], eax
mov eax, dword [0x42628c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41557a
cmp dword [0x426290], ecx
je 0x41557a
push eax
call esi
push dword [0x426290]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41557a
test ebx, ebx
je 0x41557a
call edi
test eax, eax
je 0x415571
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x415571
test byte [ebp - 8], 1
jne 0x41557a
or dword [ebp + 0x10], 0x200000
jmp 0x4155ad
mov eax, dword [0x426284]
cmp eax, dword [ebp - 0x18]
je 0x4155ad
push eax
call esi
test eax, eax
je 0x4155ad
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4155ad
mov eax, dword [0x426288]
cmp eax, dword [ebp - 0x18]
je 0x4155ad
push eax
call esi
test eax, eax
je 0x4155ad
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x426280]
call esi
test eax, eax
je 0x4155c9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4155cb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004097a8
leave
ret
Function at 0x42fb71
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x43757a
call fcn.004339e0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x43c770
mov dword [esi + 4], 0x43c758
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.004028e9
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x24], 1
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov byte [esi + 0x4c], bl
mov byte [esi + 0x4d], bl
mov dword [esi], 0x43c73c
mov dword [esi + 4], 0x43c724
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x43196e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x43197d
pop dword [ebp - 0x1c]
mov eax, 0x43197d
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x37878
push 0
mov eax, 0xe6bc01b
sub eax, 0xe283feb
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0xd77d9428
add ecx, 0x2882a721
mov esi, eax
mov edi, 0x44c600
add edi, dword [ebp - 0x1c]
mov ebx, 0x4628058f
xor dword [ebp - 0xc], 0xbfba399f
mov edx, dword [edi]
xor edx, ebx
sub dword [ebp - 0x18], esi
mov dword [esi], edx
sub dword [ebp - 8], 0x49508ced
add esi, 4
add edi, 0xb9b9a43b
sub edi, 0xb9b9a437
loop 0x4319cb
add eax, 0x66b74353
sub eax, 0x66b6635c
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x3fa055b7
add ecx, 0xc09faa49
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x433770
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x433799
xor eax, eax
ret 4
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x4337a8
mov eax, 1
ret 4
Function at 0x5003bd0
Capabilities:
Print debug messages

Disassembly:
cmp dword [esp + 4], 1
push esi
mov esi, ecx
mov dword [esi], 0x57544653
jne 0x5003c1d
push str._META__CMetaDbParser__HIHI_I_am_OpenDB_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 4
call sub.mfc90.dll_Ordinal_798
add esp, 4
test eax, eax
je 0x5003c0f
mov dword [eax], vtable.DataLibraryOpenDB.0
mov dword [esi + 4], eax
mov dword [esi + 8], 0
mov eax, esi
pop esi
ret 4
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, esi
pop esi
ret 4
push str._META__CMetaDbParser__HIHI_I_am_EDB_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 4
call sub.mfc90.dll_Ordinal_798
add esp, 4
test eax, eax
je 0x5003c40
mov dword [eax], vtable.DataLibraryEDB.0
mov ecx, eax
jmp 0x5003c42
xor ecx, ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], 0
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push 1
call edx
mov eax, esi
pop esi
ret 4
Function at 0x5015bb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52367f8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push edi
mov eax, dword [0x53f3c3c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x30], 0
mov ebx, dword [esi + 0x10]
mov ebp, dword [esi + 0xc]
mov ecx, ebx
sub ecx, ebp
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jbe 0x5015c38
cmp ebp, ebx
jbe 0x5015c0b
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
push ebx
push eax
lea eax, [esp + 0x40]
push eax
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub edi, ecx
push edi
push esi
call fcn.05016520
jmp 0x5015c8a
jae 0x5015c8a
cmp ebp, ebx
jbe 0x5015c44
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebp, dword [esi + 0xc]
mov edx, dword [esi]
mov dword [esp + 0x10], edx
cmp ebp, dword [esi + 0x10]
jbe 0x5015c58
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi]
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], eax
push ecx
mov ecx, edi
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], ebp
call fcn.05016940
mov edx, dword [esp + 0x10]
mov ecx, dword [eax + 4]
push ebx
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x20]
push eax
push esi
call fcn.05016450
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call fcn.0500b3e0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x24
ret 0xb8
Function at 0x5034bb0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5233738
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f3c3c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x44]
movzx eax, word [esi + 2]
movzx ecx, word [esi + 4]
mov ebp, dword [esp + 0x40]
mov edx, eax
imul edx, ecx
add edx, edx
add edx, edx
cmp ebp, edx
je 0x5034c7e
push str._ERROR:
push 0xff
push 0x14aa
push str..META_erf.cpp
lea ecx, [esp + 0x24]
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x30], 0
mov ebx, dword [esp + 0x38]
push ebx
mov ecx, 0x53f4cc8
call fcn.05065960
mov edx, dword [eax + 8]
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
push eax
imul eax, ecx
add eax, eax
add eax, eax
push eax
push ebp
push str.ERF_FillMIPICodeWord
push ebx
push str.__d___s__:_ERF_FillMIPICodeWord_bufferLen__d___total_need_length__d__4code_word_num__d_power_level_num__d____
push edx
push edi
call fcn.051ae2d0
add esp, 0x24
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.051ae2c0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
xor edi, edi
test eax, eax
jle 0x5034cbf
mov ebx, dword [esp + 0x3c]
lea edx, [esi + 8]
mov dword [esp + 0x44], edx
xor eax, eax
test ecx, ecx
jle 0x5034cab
mov ebp, dword [edx]
imul ecx, edi
add ecx, eax
mov dword [ebx + ecx*4], ebp
movzx ecx, word [esi + 4]
inc eax
add edx, 4
cmp eax, ecx
jl 0x5034c95
mov edx, dword [esp + 0x44]
movzx eax, word [esi + 2]
inc edi
add edx, 0x40
cmp edi, eax
mov dword [esp + 0x44], edx
jl 0x5034c8f
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x5038420
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5221e10
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f3c3c]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
movzx ebx, word [esp + 0x60]
movzx esi, word [esp + 0x6c]
lea eax, [esp + 0x14]
push eax
xor edi, edi
push ebx
mov dword [esp + 0x1c], edi
call sym.META_DLL.dll_META_GetPrimitiveTypeName
mov ecx, dword [esp + 0x6c]
push eax
push str.type
push esi
mov esi, dword [esp + 0x6c]
push ecx
push esi
call fcn.05019ed0
mov ebp, dword [esp + 0x2c]
add esp, 0x18
cmp ebp, 0x70
jae 0x5038619
mov eax, dword [0x53f48f8]
cmp eax, edi
jne 0x503849f
push esi
call fcn.051a87a0
add esp, 4
mov dword [0x53f48f8], eax
mov edx, dword [esp + 0x70]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
cmp edx, edi
je 0x50384e5
mov cx, word [esp + 0x74]
cmp cx, di
jbe 0x50384e5
movzx ecx, cx
cmp ecx, eax
jge 0x50384d9
mov eax, 5
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
add edx, eax
sub ecx, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
add eax, 0xa800
lea edi, [eax + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
mov dword [esp + 0x54], 0
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov edx, dword [esp + 0x64]
push edx
lea ecx, [eax + 0xa800]
mov eax, dword [ecx]
mov eax, dword [eax]
push ebp
push ebx
lea edx, [esp + 0x40]
push edx
call eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x5038608
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x70]
push ecx
movzx ecx, word [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x74]
push ecx
push ebp
push edx
push esi
call eax
mov eax, dword [ebp*4 + 0x527f178]
push 0x52c722a
push 1
push 0x93
push str..META_erf.cpp
lea ecx, [esp + 0x30]
mov dword [esp + 0x7c], eax
call fcn.051ae270
mov dword [esp + 0x18], eax
mov byte [esp + 0x54], 1
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov edx, dword [esp + 0x6c]
mov ecx, dword [eax + 8]
push ebp
push edx
push ebx
push ebx
mov dword [esp + 0x70], ecx
call sym.META_DLL.dll_META_GetPrimitiveTypeName
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x24]
push eax
movsx eax, word [esp + 0x74]
push eax
push esi
push str.__d___LTE_ERF_Cnf_token_d_:__s__d____s__d_:_callback_OK.
push ecx
push edx
call fcn.051ae2d0
add esp, 0x24
mov byte [esp + 0x54], 0
lea ecx, [esp + 0x20]
call fcn.051ae2c0
mov dword [esp + 0x54], 0xffffffff
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov eax, 6
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov dword [esp + 0x54], 0xffffffff
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov eax, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
Function at 0x5061820
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52230c8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x53f3c3c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x30]
push 0x52c722a
push 1
push 0x199
push str..META_Handle.cpp
lea ecx, [esp + 0x1c]
mov dword [esi + 0xd58c], edi
call fcn.051ae270
mov dword [esp + 0x28], 0
mov ecx, dword [esi + 0xd58c]
mov edx, dword [esi]
push ecx
mov ecx, dword [esi + 8]
push edx
push str.__d__Set_max_ctrl:__d
push ecx
push eax
call fcn.051ae2d0
add esp, 0x14
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.051ae2c0
mov dword [esi + 0xd5a0], edi
mov dword [esi + 0xd5a4], 0x708
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 4
Function at 0x5071070
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5221710
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x53f3c3c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
push str._META__Handle_init_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.05065970
test al, al
jne 0x50710d7
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
imul eax, eax, 0xd5c8
add esi, eax
cmp byte [esi + 0xd5bc], 0
je 0x5071103
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x52c722a
push 1
push 0xd1f
push str..META_Handle.cpp
lea ecx, [ebp - 0x24]
call fcn.051ae270
mov byte [ebp - 4], 1
mov ecx, dword [esi + 8]
push edi
push str.MHA::Initial__:_m_MetaHandleArray__d__initialization_starts_...
push ecx
push eax
call fcn.051ae2d0
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.051ae2c0
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.05071030
lea ebx, [esi + 0xc]
mov ecx, ebx
call fcn.051b2620
test eax, eax
je 0x5071171
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
push 0x51b6090
mov ecx, ebx
call fcn.051b2f10
push edi
push 0x51b6480
mov ecx, ebx
call fcn.051b2eb0
push edi
push 0x51b6320
mov ecx, ebx
call fcn.051b2ee0
mov byte [esi + 0xd5bc], 1
push 0x52c722a
push 1
push 0xd2e
push str..META_Handle.cpp
lea ecx, [ebp - 0x24]
call fcn.051ae270
mov byte [ebp - 4], 3
mov esi, dword [esi + 8]
push edi
push str.MHA::Initial__:_m_MetaHandleArray__d__initialization_is_done.
push esi
push eax
call fcn.051ae2d0
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.051ae2c0
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x509f9d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52230c8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x53f3c3c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x509fa72
push str._ERROR:
push 0xff
push 0x30b
push str..META_nvram.cpp
lea ecx, [esp + 0x1c]
call fcn.051ae270
mov esi, eax
mov dword [esp + 0x28], 0
mov edi, dword [esp + 0x30]
push edi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push 0
push edi
push str.__d__META_NVRAM_Init_r__:_invalid_argument__PathName_0x_p_
push eax
push esi
call fcn.051ae2d0
add esp, 0x14
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.051ae2c0
mov eax, 0xa
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 0xc
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
push ecx
push 0
push eax
push edx
push 0x525e304
call fcn.0509f4c0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 0xc
Function at 0x50f5f70
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1004
call fcn.0520b920
mov eax, dword [0x53f3c3c]
xor eax, esp
mov dword [esp + 0x1000], eax
mov ecx, dword [esp + 0x100c]
mov eax, dword [esp + 0x1008]
push ecx
push 0x1000
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov ecx, dword [esp + 0x1000]
test eax, eax
setg al
xor ecx, esp
call fcn.0520b902
add esp, 0x1004
ret
Function at 0x50f9580
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20
mov eax, dword [0x53f3c3c]
xor eax, esp
mov dword [esp + 0x1c], eax
mov ecx, dword [0x5274878]
mov edx, dword [0x527487c]
mov eax, dword [str..META_UnitTest.ini]
push esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
mov ecx, dword [0x5274884]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x1c], edx
mov edx, dword [str.MMRF_ET]
mov dword [esp + 0x14], eax
mov eax, dword [0x5274880]
push 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], eax
mov eax, dword [0x527551c]
push str.RAT_Index
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x1c], eax
call edi
mov word [esi], ax
lea eax, [esp + 0x10]
push eax
push 1
push str.Band_Index
lea ecx, [esp + 0x14]
push ecx
call edi
lea edx, [esp + 0x10]
push edx
push 0
mov word [esi + 2], ax
push str.Signal_Path
lea eax, [esp + 0x14]
push eax
call edi
mov ecx, dword [esp + 0x24]
pop edi
mov word [esi + 4], ax
pop esi
xor ecx, esp
call fcn.0520b902
add esp, 0x20
ret
Function at 0x50fdde0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5228b58
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f3c3c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov esi, dword [esp + 0x40]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov dword [esp + 0x14], edi
or ebp, 0xffffffff
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esp + 0x18]
mov dword [ecx + 4], eax
cmp eax, ebp
jne 0x50fded6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x50fdea7
push str._ERROR:
push 0xff
push 0x2c
push str..ProxyNamedPipeClient.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov dword [esp + 0x38], 0
mov edx, dword [0x56bc0f0]
push esi
push str.NamedPipeClient::Open
push str._s:_Pipe__s_not_existed_fail__cb_function_is_NULL.
push edx
push eax
call fcn.051ae2d0
add esp, 0x14
mov dword [esp + 0x38], ebp
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
push 0x1f4
add edi, 0x1f4
call ebx
jmp 0x50fdecc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x50fdf50
mov eax, dword [esp + 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
je 0x50fdf9d
cmp edi, dword [esp + 0x44]
jbe 0x50fde1e
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
push 0
push 0
lea edx, [esp + 0x1c]
push edx
mov edi, 2
push ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x50fdfa1
push str._ERROR:
push 0xff
push 0x47
push str..ProxyNamedPipeClient.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov esi, eax
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x56bc0f0]
push eax
push str.NamedPipeClient::Open
push str._s:_SetNamedPipeHandleState_failed._GLE_d
push edx
push esi
call fcn.051ae2d0
add esp, 0x14
mov dword [esp + 0x38], ebp
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
mov eax, ebp
jmp 0x50fdfa3
push str._ERROR:
push 0xff
push 0x34
push str..ProxyNamedPipeClient.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov esi, eax
mov dword [esp + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x56bc0f0]
push eax
push str._s:_Could_not_open_pipe._GLE_d
push ecx
push esi
call fcn.051ae2d0
add esp, 0x10
mov dword [esp + 0x38], ebp
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
mov eax, ebp
jmp 0x50fdfa3
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8