joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ac60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x436038]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push 0x110
lea eax, [esp + 0x18]
mov esi, ecx
push 0
push eax
call fcn.00417c20
add esp, 0xc
mov dword [esp + 0x10], 0x114
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40acde
cmp dword [esp + 0x14], 6
jb 0x40acde
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x207
push eax
push esi
push str.Progid
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, 0x80000001
call fcn.0040aa70
add esp, 0xc
test al, al
je 0x40acde
cmp word [esi], 0
jne 0x40ad36
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, 0x80000000
call fcn.0040aa70
add esp, 0xc
test al, al
je 0x40ad0a
cmp word [esi], 0
jne 0x40ad36
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, 0x80000001
call fcn.0040aa70
add esp, 0xc
test al, al
je 0x40ad4b
cmp word [esi], 0
je 0x40ad4b
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.00416858
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.00416858
mov esp, ebp
pop ebp
ret
Function at 0x40daf0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429428
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x436038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x38]
mov edi, dword [ebp + 0xc]
push esi
push eax
call fcn.0040e3b0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.00404ab0
xorps xmm0, xmm0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov byte [ebp - 0x1c], 0
test eax, eax
jne 0x40db74
xor bl, bl
jmp 0x40db92
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40db8c
cmp eax, 0x80
je 0x40db8c
xor bl, bl
jmp 0x40db92
mov byte [ebp - 0x14], 1
mov bl, 1
mov byte [ebp - 0x1c], bl
mov byte [ebp - 4], 2
lea eax, [ebp - 0x39]
push eax
push edi
push esi
mov byte [ebp - 0x39], 0
call fcn.0040dc80
test al, al
jne 0x40dbc0
cmp byte [ebp - 0x39], al
je 0x40dbc0
cmp dword [esi + 0x14], 8
jb 0x40dbb9
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
test bl, bl
je 0x40dbda
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40dbd6
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40dbfa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x40dc3d
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dc33
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc6f
push edx
push ecx
call fcn.00416d7e
add esp, 8
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00416858
mov esp, ebp
pop ebp
ret 8
call fcn.0041a2ea
int3
Function at 0x40f9b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x436038]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call fcn.00417c20
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x40fa47
cmp dword [esp + 8], 6
jb 0x40fa47
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.00416858
add esp, 0x118
ret
Function at 0x40fa60
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429720
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x436038]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0xc
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
push str.wintrust.dll
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004032a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.00410560
mov ecx, eax
call fcn.00410620
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40fb15
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fb0b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc4e
push edx
push ecx
call fcn.00416d7e
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
push 0xb
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], eax
push str.crypt32.dll
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.004032a0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.00410560
mov ecx, eax
call fcn.00410620
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40fbaa
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fb9d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc53
push edx
push ecx
call fcn.00416d7e
mov eax, dword [ebp - 0x10]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], cx
test edi, edi
je 0x40fc3c
test eax, eax
je 0x40fc3c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push edi
call esi
push str.CryptCATAdminAcquireContext
push edi
mov dword [ebx + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push edi
mov dword [ebx + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push edi
mov dword [ebx + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push edi
mov dword [ebx + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push edi
mov dword [ebx + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push edi
mov dword [ebx + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push edi
mov dword [ebx + 0x1c], eax
call esi
push str.WinVerifyTrust
push edi
mov dword [ebx + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [ebx + 0x24], eax
call esi
mov dword [ebx + 0x28], 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
call fcn.0041a2ea
call fcn.0041a2ea
int3
Function at 0x411060
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428c88
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x436038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
and edi, 0xffffb1af
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41109f
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push eax
call ebx
test eax, eax
je 0x4110b4
mov al, 1
jmp 0x411153
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00411780
test al, al
je 0x4110fe
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x4110fe
mov bl, 1
jmp 0x411100
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41113d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411133
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41116f
push edx
push ecx
call fcn.00416d7e
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov al, bl
mov dword [ebp - 0x14], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00416858
mov esp, ebp
pop ebp
ret
call fcn.0041a2ea
int3

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4298f8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x436038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4111b6
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x411260
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00411780
test al, al
je 0x41120f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41124c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411242
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41127d
push edx
push ecx
call fcn.00416d7e
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00416858
mov esp, ebp
pop ebp
ret
call fcn.0041a2ea
int3
Function at 0x413e50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push esi
mov dword [esp + 4], 0x10d040e
xor esi, esi
mov dword [esp + 8], 0x80b0f02
mov dword [esp + 0xc], 0xc060a03
mov dword [esp + 0x10], 0x7000905
mov dword [esp + 0x14], 0xe08010f
mov dword [esp + 0x18], 0x4030b06
mov dword [esp + 0x1c], 0xd020709
mov dword [esp + 0x20], 0xa05000c
mov dword [esp + 0x24], 0xe09000a
mov dword [esp + 0x28], 0x50f0306
mov dword [esp + 0x2c], 0x70c0d01
mov dword [esp + 0x30], 0x802040b
mov dword [esp + 0x34], 0x30e0d07
mov dword [esp + 0x38], 0xa090600
mov dword [esp + 0x3c], 0x5080201
mov dword [esp + 0x40], 0xf040c0b
mov dword [esp + 0x44], 0x1040c02
mov dword [esp + 0x48], 0x60b0a07
mov dword [esp + 0x4c], 0xf030508
mov dword [esp + 0x50], 0x90e000d
mov dword [esp + 0x54], 0xf0a010c
mov dword [esp + 0x58], 0x8060209
mov dword [esp + 0x5c], 0x4030d00
mov dword [esp + 0x60], 0xb05070e
mov dword [esp + 0x64], 0xe020b04
mov dword [esp + 0x68], 0xd08000f
mov dword [esp + 0x6c], 0x7090c03
mov dword [esp + 0x70], 0x1060a05
mov dword [esp + 0x74], 0x408020d
mov dword [esp + 0x78], 0x10b0f06
mov dword [esp + 0x7c], 0xe03090a
mov dword [esp + 0x80], 0x70c0005
nop dword [eax]
mov ecx, esi
mov edx, esi
sar ecx, 4
and edx, 0xf
movzx eax, byte [esp + ecx + 4]
shl al, 4
or al, byte [esp + edx + 0x14]
mov byte [esi + 0x437da0], al
movzx eax, byte [esp + ecx + 0x24]
shl al, 4
or al, byte [esp + edx + 0x34]
mov byte [esi + 0x437aa0], al
movzx eax, byte [esp + ecx + 0x44]
shl al, 4
or al, byte [esp + edx + 0x54]
mov byte [esi + 0x437ca0], al
movzx eax, byte [esp + ecx + 0x64]
shl al, 4
or al, byte [esp + edx + 0x74]
mov byte [esi + 0x437ba0], al
inc esi
cmp esi, 0x100
jl 0x413f60
pop esi
add esp, 0x80
ret
Function at 0x415b90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x415bc5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415bc5
test al, 0x10
jne 0x415bc5
call fcn.00405b60
push esi
mov ecx, eax
call fcn.00405ed0
test al, al
jne 0x415bcc
push esi
mov ecx, edi
call fcn.00415c10
pop edi
xor eax, eax
pop esi
ret 4
push 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
pop edi
pop esi
ret 4
Function at 0x401000
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 0x40102b
mov dword [0x42e1cc], 1
mov dword [ebp - 8], 1
jmp 0x40103c
mov dword [0x42e1cc], 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 0x401063
cmp eax, 0x491
jne 0x401086
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 0x4010b0
mov eax, dword [ebp - 4]
test eax, eax
je 0x4010b0
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 0x4010c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x42e1cc], 3
mov dword [ebp - 4], 0
jne 0x401145
lea eax, [ebp - 4]
mov dword [0x42e1cc], 2
push eax
push 0x101
push 0
push str.SoftwareAE_Protection
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401145
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 0x40113c
mov dword [0x42e1cc], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x42e1cc]
mov esp, ebp
pop ebp
ret
Function at 0x401150
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.00412ac8
add esp, 4
mov edi, eax
push 0x2000a
call fcn.00412ac8
add esp, 4
mov esi, eax
test edi, edi
je 0x401233
test esi, esi
je 0x401233
mov ecx, dword [ebp - 4]
push dword [0x42f3d0]
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.00412a58
add esp, 0x1c
test eax, eax
jle 0x40121e
xor eax, eax
push 0xfffffffffffffffe
push esi
mov word [esi + 0x1fffe], ax
call fcn.00412b5a
push 0xffffffffffffffff
push esi
inc eax
push eax
lea eax, [ebp - 8]
push edi
push eax
call fcn.00413618
add esp, 0x1c
test eax, eax
je 0x401201
push ebx
push esi
push str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.00412f3c
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.00401280
add esp, 0x10
jmp 0x40124b
push ebx
push str.Error__d_in_swprintf_s_n
call fcn.00412f3c
add esp, 8
push str.Error_in_swprintf_s_n
jmp 0x401245
push str.Memory_allocation_error_in_log_file_n
call fcn.00412f3c
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test edi, edi
je 0x401258
push edi
call fcn.00412a90
add esp, 4
test esi, esi
je 0x401265
push esi
call fcn.00412a90
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401bd0
Capabilities:
Create directory
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x42ef70
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00413c8c
add esp, 0xc
lea eax, [ebp - 0x20a]
push 0x5c
push eax
call fcn.0041298b
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 0x401c5e
xor eax, eax
mov word [esi], ax
add esi, 2
push eax
lea eax, [ebp - 0x210]
push eax
call ebx
test eax, eax
jne 0x401c45
call edi
cmp eax, 0xb7
jne 0x401cf2
mov eax, 0x5c
push eax
push esi
mov word [esi - 2], ax
call fcn.0041298b
mov esi, eax
add esp, 8
test esi, esi
jne 0x401c22
push 0
push 0x42ef70
call ebx
test eax, eax
jne 0x401dc5
call edi
cmp eax, 0xb7
je 0x401dc5
call edi
mov ebx, eax
call edi
push 0x1000a
lea edi, [eax + 0x1e]
call fcn.00412ac8
mov esi, eax
add esp, 4
test esi, esi
je 0x401d0e
push 0x4283c8
push 0xffff
push esi
call fcn.00412a74
add esp, 0xc
push edi
test eax, eax
jle 0x401d90
push esi
push str.MbaeCreateDirectory
push 1
mov edx, 0x3c4
mov byte [esi + 0xffff], 0
mov ecx, str.....mbae_commonMbaeLog.cpp
call fcn.00401280
add esp, 0x10
push esi
call fcn.00412a90
add esp, 4
lea eax, [ebx + 0x1e]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041297c
mov esp, ebp
pop ebp
ret
call edi
mov ebx, eax
call edi
push 0x1000a
lea edi, [eax + 0x1e]
call fcn.00412ac8
mov esi, eax
add esp, 4
test esi, esi
jne 0x401d3a
push str.Memory_allocation_error_in_log_file_n
call fcn.00412f3c
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 [ebp - 4]
xor ecx, ebp
call fcn.0041297c
mov esp, ebp
pop ebp
ret
push 0x4283c8
push 0xffff
push esi
call fcn.00412a74
add esp, 0xc
push edi
test eax, eax
jle 0x401d90
push esi
push str.MbaeCreateDirectory
push 1
mov edx, 0x3bf
mov byte [esi + 0xffff], 0
mov ecx, str.....mbae_commonMbaeLog.cpp
call fcn.00401280
add esp, 0x10
push esi
call fcn.00412a90
add esp, 4
lea eax, [ebx + 0x1e]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041297c
mov esp, ebp
pop ebp
ret
push str.Error__d_in_swprintf_s_n
call fcn.00412f3c
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.00412a90
add esp, 4
lea eax, [ebx + 0x1e]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041297c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041297c
mov esp, ebp
pop ebp
ret
Function at 0x402790
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 0x402863
push 0x1000a
call fcn.00412ac8
mov esi, eax
add esp, 4
test esi, esi
jne 0x4027ee
push str.Memory_allocation_error_in_log_file_n
call fcn.00412f3c
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 0x4283c8
push 0xffff
push esi
call fcn.00412a74
add esp, 0xc
push edi
test eax, eax
jle 0x402839
push esi
push str.GetWindowsVersion
push 1
mov edx, 0x496
mov byte [esi + 0xffff], 0
mov ecx, str.....mbae_commonMbaeLog.cpp
call fcn.00401280
add esp, 0x10
push esi
call fcn.00412a90
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.00412f3c
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.00412a90
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 0x402880
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [section..data]
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.00419530
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00419530
add esp, 0x18
mov esi, 1
push 0x4281f4
push esi
push str.mbae_default.log
push 0x42ef70
lea eax, [ebp - 0x414]
push str._s_s__d._s
push eax
call fcn.004029c0
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004131aa
add esp, 0x20
cmp eax, 0xffffffff
je 0x402911
inc esi
cmp esi, 1
jbe 0x4028d2
jmp 0x402916
cmp esi, 1
jbe 0x402950
push 0x4281f4
push 1
push str.mbae_default.log
push 0x42ef70
lea eax, [ebp - 0x20c]
push str._s_s__d._s
push eax
call fcn.004029c0
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x402950
push str.mbae_default.log
push 0x42ef70
lea eax, [ebp - 0x414]
push str._s_s
push eax
call fcn.004029c0
push 0x4281f4
push 1
push str.mbae_default.log
push 0x42ef70
lea eax, [ebp - 0x20c]
push str._s_s__d._s
push eax
call fcn.004029c0
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.0041297c
mov esp, ebp
pop ebp
ret