joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x10
push ebx
push esi
push edi
push edx
pop edi
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
push ecx
pop esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
or ebx, ebx
je 0x4016d4
push esi
pop edi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
push edi
pop edx
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
push esi
pop ebx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
or ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
push eax
pop esi
mov edx, esi
push ebx
pop ecx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.10019329
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.10019329
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret
Function at 0x40107e
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x42d6f8]
push esi
mov esi, dword [ebx + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x42d6fc]
push edi
mov edi, dword [ebx]
xor edx, edx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], edx
mov dword [ebp - 0x34], 0x9e3779b9
call fcn.00401077
mov eax, dword [0x42d700]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x24], eax
mov eax, dword [0x42d704]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, edi
shl eax, 4
cmp dword [0x43c954], 0xc
mov dword [ebp - 4], eax
jne 0x4010fc
push edx
lea eax, [ebp - 0x38]
push eax
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
xor edx, edx
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [0x43c954]
cmp eax, 0xfa9
jne 0x401118
mov dword [0x43c950], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40113c
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push 0
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_CopySid]
and dword [0x43c8a4], 0
xor edx, edx
mov eax, dword [ebp - 8]
add eax, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [0x43c94c], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x14]
sub esi, eax
mov dword [ebp - 0xc], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add eax, esi
mov dword [ebp - 0x1c], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0xc]
sub edi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x34]
sub dword [ebp - 8], eax
dec dword [ebp - 0x20]
jne 0x4010d0
mov dword [ebx], edi
pop edi
mov dword [ebx + 4], esi
pop esi
leave
ret
Function at 0x408dc8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42cf30]
jne 0x408dd2
repz ret
jmp fcn.0040cd44

Function at 0x40a043
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402b4e
and dword [ebp - 4], 0
cmp dword [0x431940], 0
mov ebx, eax
jne 0x40a0f4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a1a5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a1a5
push eax
call fcn.00402adc
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x431940], eax
call esi
push eax
call fcn.00402adc
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x431944], eax
call esi
push eax
call fcn.00402adc
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x431948], eax
call esi
push eax
call fcn.00402adc
pop ecx
mov dword [0x431950], eax
test eax, eax
je 0x40a0f4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402adc
pop ecx
mov dword [0x43194c], eax
mov eax, dword [0x43194c]
cmp eax, ebx
je 0x40a14c
cmp dword [0x431950], ebx
je 0x40a14c
push eax
call fcn.00402b57
push dword [0x431950]
mov esi, eax
call fcn.00402b57
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a14c
test edi, edi
je 0x40a14c
call esi
test eax, eax
je 0x40a143
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a143
test byte [ebp - 0xc], 1
jne 0x40a14c
or dword [ebp + 0x10], 0x200000
jmp 0x40a185
mov eax, dword [0x431944]
cmp eax, ebx
je 0x40a185
push eax
call fcn.00402b57
pop ecx
test eax, eax
je 0x40a185
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a185
mov eax, dword [0x431948]
cmp eax, ebx
je 0x40a185
push eax
call fcn.00402b57
pop ecx
test eax, eax
je 0x40a185
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x431940]
call fcn.00402b57
pop ecx
test eax, eax
je 0x40a1a5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a1a7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001360
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0x10085a60
mov esi, ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x100013a8
push str.Wow64DisableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100013a8
lea ecx, [ebp - 4]
push ecx
call eax
mov edi, eax
jmp 0x100013aa
xor edi, edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call dword [0x100e288c]
mov esi, eax
cmp esi, 0xffffffff
je 0x10001489
test edi, edi
je 0x100013f7
mov edi, dword [ebp - 4]
push 0x10085a60
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x100013f7
push str.Wow64RevertWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100013f7
push edi
call eax
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10001420
mov ecx, dword [ebp - 0xc]
mov eax, ecx
mov edx, dword [ebp - 8]
or eax, edx
je 0x10001489
test edx, edx
jg 0x10001420
jl 0x10001489
cmp ecx, 0x138
jb 0x10001489
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x10001451
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x10001460
push edi
call dword [0x100e2880]
push esi
call dword [0x100e2880]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
movzx ecx, word [eax]
mov edx, 0x5a4d
cmp cx, dx
jne 0x10001478
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x14c
cmp cx, dx
jne 0x10001489
cmp word [eax + 0x10], 0
je 0x1000146d
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10001550
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
push edi
mov edi, edx
test esi, esi
je 0x100015ab
test edi, edi
je 0x100015ab
push 0xfffffffffffffffe
push esi
call fcn.10051b84
add esp, 8
test eax, eax
je 0x100015ab
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x100015ab
push 0x104
push dword [esi]
push edi
call fcn.10051d9d
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100019f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
test ecx, ecx
je 0x10001a1b
mov dword [0x1009dca0], 1
mov dword [ebp - 8], 1
jmp 0x10001a2c
mov dword [0x1009dca0], 2
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 0xf013f
push 0
push str.SoftwareAE_Protection
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
je 0x10001a53
cmp eax, 0x491
jne 0x10001a76
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareAE_Protection
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10001aa0
mov eax, dword [ebp - 4]
test eax, eax
je 0x10001aa0
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push 0
push str.LogStatus
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x10001ab0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1009dca0], 3
mov dword [ebp - 4], 0
jne 0x10001b35
lea eax, [ebp - 4]
mov dword [0x1009dca0], 2
push eax
push 0x101
push 0
push str.SoftwareAE_Protection
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10001b35
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
push 0
push str.LogStatus
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 0
jbe 0x10001b2c
mov dword [0x1009dca0], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1009dca0]
mov esp, ebp
pop ebp
ret

Function at 0x10001b40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, ecx
or eax, 0xffffffff
test esi, esi
jne 0x10001b4e
xor eax, eax
pop esi
ret
test edx, edx
je 0x10001b6d
movzx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x10085b20]
dec edx
jne 0x10001b52
not eax
pop esi
ret
Function at 0x10001bc0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1000a
mov dword [ebp - 8], 0
lea ebx, [eax + 0x1e]
call fcn.1005218a
add esp, 4
mov edi, eax
push 0x2000a
call fcn.1005218a
add esp, 4
mov esi, eax
test edi, edi
je 0x10001ca3
test esi, esi
je 0x10001ca3
mov ecx, dword [ebp - 4]
push dword [0x100e23f8]
mov ecx, dword [ecx]
push dword [ecx + 0x10]
push dword [ecx]
push dword [ecx + 0xc]
push str.ExceptionAddress:__p___ExceptionCode:__X___NumberParameters:__d___ModuleBaseAddress:__p
push 0xffff
push esi
call fcn.1005211a
add esp, 0x1c
test eax, eax
jle 0x10001c8e
xor eax, eax
push 0xfffffffffffffffe
push esi
mov word [esi + 0x1fffe], ax
call fcn.10051b84
push 0xffffffffffffffff
push esi
inc eax
push eax
lea eax, [ebp - 8]
push edi
push eax
call fcn.10052d14
add esp, 0x1c
test eax, eax
je 0x10001c71
push ebx
push esi
push str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.10052604
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebx
push edi
push str.MbaeException
push 1
mov edx, 0x49
mov ecx, str.....mbae_commonMbaeLog.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10001cbb
push ebx
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
jmp 0x10001cb5
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test edi, edi
je 0x10001cc8
push edi
call fcn.10052152
add esp, 4
test esi, esi
je 0x10001cd5
push esi
call fcn.10052152
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003bf0
Capabilities:
Create directory
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x1009cbc0]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
mov eax, ecx
push edi
push eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push 0x104
push eax
call fcn.10053320
add esp, 0xc
lea eax, [esp + 0x16]
push 0x5c
push eax
call fcn.1005204d
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
test esi, esi
je 0x10003c81
xor eax, eax
mov word [esi], ax
add esi, 2
push eax
lea eax, [esp + 0x14]
push eax
call ebx
test eax, eax
jne 0x10003c68
call edi
cmp eax, 0xb7
jne 0x10003d18
mov eax, 0x5c
push eax
push esi
mov word [esi - 2], ax
call fcn.1005204d
mov esi, eax
add esp, 8
test esi, esi
jne 0x10003c47
push 0
push dword [esp + 0x10]
call ebx
test eax, eax
jne 0x10003df7
call edi
cmp eax, 0xb7
je 0x10003df7
call edi
mov ebx, eax
call edi
push 0x1000a
lea edi, [eax + 0x1e]
call fcn.1005218a
mov esi, eax
add esp, 4
test esi, esi
je 0x10003d34
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x10003dbe
push esi
push str.MbaeCreateDirectory
push 1
mov edx, 0x3c4
mov byte [esi + 0xffff], 0
mov ecx, str.....mbae_commonMbaeLog.cpp
call fcn.10001cf0
add esp, 0x10
push esi
call fcn.10052152
add esp, 4
lea eax, [ebx + 0x1e]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.1005132c
mov esp, ebp
pop ebp
ret
call edi
mov ebx, eax
call edi
push 0x1000a
lea edi, [eax + 0x1e]
call fcn.1005218a
mov esi, eax
add esp, 4
test esi, esi
jne 0x10003d64
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebx + 0x1e]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.1005132c
mov esp, ebp
pop ebp
ret
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x10003dbe
push esi
push str.MbaeCreateDirectory
push 1
mov edx, 0x3bf
mov byte [esi + 0xffff], 0
mov ecx, str.....mbae_commonMbaeLog.cpp
call fcn.10001cf0
add esp, 0x10
push esi
call fcn.10052152
add esp, 4
lea eax, [ebx + 0x1e]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.1005132c
mov esp, ebp
pop ebp
ret
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
lea eax, [ebx + 0x1e]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.1005132c
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x21c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1005132c
mov esp, ebp
pop ebp
ret
Function at 0x10004320
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1008fad8
push 0x1005aa50
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1009cbc0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov eax, dword [str.__:___]
mov dword [ebp - 0x30], eax
mov eax, dword [0x10086b80]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x10086b84]
mov dword [ebp - 0x28], eax
mov eax, dword [0x10086b88]
mov dword [ebp - 0x24], eax
mov eax, dword [0x10086b8c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
mov dword [ebp - 4], 1
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10004393
sub esi, ecx
sar esi, 1
xor ecx, ecx
mov dword [ebp - 0x34], ecx
cmp ecx, esi
jae 0x100044d3
movzx edx, word [edi + ecx*2]
cmp edx, 0x20
jae 0x10004463
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x100043e9
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x10004446
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push 3
test eax, eax
jle 0x10004425
mov byte [esi + 0xffff], 0
push esi
push str.IsValidFileName
push 1
mov edx, 0x47a
mov ecx, str.....mbae_commonMbaeLog.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1000443d
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, 3
jmp 0x10004590
xor eax, eax
mov dword [ebp - 0x38], eax
cmp eax, 9
jae 0x100044cd
cmp dx, word [ebp + eax*2 - 0x30]
jne 0x100044ca
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x100043cf
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push 3
test eax, eax
jle 0x10004425
mov byte [esi + 0xffff], 0
push esi
push str.IsValidFileName
push 1
mov edx, 0x47e
mov ecx, str.....mbae_commonMbaeLog.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1000443d
inc eax
jmp 0x10004465
inc ecx
jmp 0x100043a4
mov dword [ebp - 4], 0
call fcn.100044ed
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x10004590
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1005132c
mov esp, ebp
pop ebp
ret
Function at 0x100045b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x64
push 0
mov esi, edx
mov ebx, ecx
call dword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
mov edi, eax
test edi, edi
je 0x10004683
push 0x1000a
call fcn.1005218a
mov esi, eax
add esp, 4
test esi, esi
jne 0x1000460e
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x10004659
push esi
push str.GetWindowsVersion
push 1
mov edx, 0x496
mov byte [esi + 0xffff], 0
mov ecx, str.....mbae_commonMbaeLog.cpp
call fcn.10001cf0
add esp, 0x10
push esi
call fcn.10052152
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ecx
mov eax, dword [ecx + 0xc]
mov dword [ebx], eax
mov eax, dword [ecx + 0x10]
mov dword [esi], eax
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100046a0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1009cbc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.10055aa0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.10055aa0
add esp, 0x18
mov esi, 1
push 0x1008635c
push esi
push str.mbae_default.log
push 0x100e1fb0
lea eax, [ebp - 0x414]
push str._s_s__d._s
push eax
call fcn.10004ed0
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.1005292e
add esp, 0x20
cmp eax, 0xffffffff
je 0x10004731
inc esi
cmp esi, 1
jbe 0x100046f2
jmp 0x10004736
cmp esi, 1
jbe 0x10004770
push 0x1008635c
push 1
push str.mbae_default.log
push 0x100e1fb0
lea eax, [ebp - 0x20c]
push str._s_s__d._s
push eax
call fcn.10004ed0
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10004770
push str.mbae_default.log
push 0x100e1fb0
lea eax, [ebp - 0x414]
push 0x10086b48
push eax
call fcn.10004ed0
push 0x1008635c
push 1
push str.mbae_default.log
push 0x100e1fb0
lea eax, [ebp - 0x20c]
push str._s_s__d._s
push eax
call fcn.10004ed0
add esp, 0x28
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1005132c
mov esp, ebp
pop ebp
ret