joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411f81
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x644
mov eax, 0x4202db
call fcn.0041f62b
mov eax, dword [ebp + 8]
mov dword [ebp - 0x644], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, esi
jne 0x411fa9
xor eax, eax
jmp 0x4120c3
push eax
lea eax, [ebp - 0x640]
push eax
call fcn.0041229a
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 0x634]
push ecx
push 0x20019
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov eax, dword [ebp - 0x640]
add eax, 0xfffffff0
call fcn.004016a4
cmp edi, esi
jne 0x411fa2
push 0x618
lea eax, [ebp - 0x62e]
push esi
push eax
mov word [ebp - 0x630], si
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x648]
push eax
push esi
push str.ExtRptFile
push dword [ebp - 0x634]
mov dword [ebp - 0x648], 1
mov dword [ebp - 0x64c], 0x30c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x412053
push dword [ebp - 0x634]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x411fa2
lea eax, [ebp - 0x63c]
push eax
lea ecx, [ebp - 0x630]
call fcn.004047fa
lea eax, [ebp - 0x638]
push eax
mov ecx, 0x4284c4
mov dword [ebp - 4], esi
call fcn.004047fa
mov ecx, dword [ebp - 0x644]
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x63c]
push eax
mov byte [ebp - 4], 1
call fcn.00414ed8
pop ecx
pop ecx
push dword [ebp - 0x634]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x638]
add eax, 0xfffffff0
call fcn.004016a4
mov eax, dword [ebp - 0x63c]
add eax, 0xfffffff0
call fcn.004016a4
xor eax, eax
inc eax
call fcn.0041f6ae
ret
Function at 0x4120c9
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x650
mov eax, 0x42029d
call fcn.0041f62b
mov eax, dword [ebp + 8]
mov dword [ebp - 0x654], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x650], eax
mov eax, dword [ebp + 0x10]
xor esi, esi
cmp eax, esi
jne 0x4120fa
xor eax, eax
jmp 0x412294
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.0041229a
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 0x640]
push ecx
push 0x20019
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov eax, dword [ebp - 0x658]
add eax, 0xfffffff0
call fcn.004016a4
cmp edi, esi
jne 0x4120f3
push 0x410
lea eax, [ebp - 0x636]
push esi
push eax
mov word [ebp - 0x638], si
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x64c]
push eax
push esi
push str.InstallDir
push dword [ebp - 0x640]
mov ebx, 0x208
mov dword [ebp - 0x64c], 1
mov dword [ebp - 0x648], ebx
call edi
cmp eax, esi
je 0x4121a7
push dword [ebp - 0x640]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4120f3
lea eax, [ebp - 0x63c]
push eax
lea ecx, [ebp - 0x638]
call fcn.004047fa
lea eax, [ebp - 0x644]
push eax
mov ecx, 0x4284c4
mov dword [ebp - 4], esi
call fcn.004047fa
mov ecx, dword [ebp - 0x654]
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x63c]
push eax
mov byte [ebp - 4], 1
call fcn.00414ed8
push ebx
lea eax, [ebp - 0x21e]
push esi
push eax
mov word [ebp - 0x220], si
call sub.MSVCR80.dll_memset
add esp, 0x14
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x64c]
push eax
push esi
push str.ExcDir
push dword [ebp - 0x640]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x64c], ebx
mov dword [ebp - 0x648], 0x104
call edi
test eax, eax
jne 0x41226a
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x63c]
push eax
call fcn.00401445
mov ecx, dword [ebp - 0x650]
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x63c]
push eax
call fcn.00414ed8
pop ecx
pop ecx
push dword [ebp - 0x640]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x644]
add eax, 0xfffffff0
call fcn.004016a4
mov eax, dword [ebp - 0x63c]
add eax, 0xfffffff0
call fcn.004016a4
mov eax, ebx
call fcn.0041f6ae
ret
Function at 0x4122e0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0xc
mov eax, 0x420bee
call fcn.0041f5c2
xor edi, edi
cmp dword [ebp + 8], edi
je 0x412380
xor eax, eax
mov esi, str.CrashCount
cmp eax, esi
je 0x412380
lea eax, [ebp - 0x14]
push eax
call fcn.0041099d
mov dword [ebp - 4], edi
lea eax, [ebp - 0x10]
mov dword [esp], str.BREvent.ini
push eax
lea ecx, [ebp - 0x14]
call fcn.004049dd
pop ecx
pop ecx
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41238f
push edi
push edi
push 2
push edi
push 3
push 0x40000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x412388
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x10]
push str._AddEventLog__create_file___s__failed___ld_
push 0x427440
call fcn.004151bb
mov eax, dword [ebp - 0x10]
add esp, 0x10
add eax, 0xfffffff0
call fcn.004016a4
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004016a4
xor eax, eax
call fcn.0041f69a
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
inc ebx
push ebx
push esi
push dword [ebp + 8]
mov edi, 0x427440
push str._s:_s_lu
push edi
call fcn.004151bb
push ebx
lea eax, [ebp - 0x18]
push 0x4286d8
push eax
call fcn.00411664
mov eax, dword [eax]
add esp, 0x20
push dword [ebp - 0x10]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ebx, eax
mov eax, dword [ebp - 0x18]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.004016a4
test bl, bl
je 0x412403
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x10]
push str._AddEventLog__write_file___s__failed___ld_
push edi
jmp 0x412362
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004016a4
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004016a4
xor eax, eax
inc eax
jmp 0x412382
Function at 0x412421
Capabilities:
Check if file exists

Disassembly:
push 0x214
mov eax, 0x420bb6
call fcn.0041f62b
xor edi, edi
push 0x206
lea eax, [ebp - 0x216]
mov esi, ecx
push edi
mov dword [ebp - 0x21c], edi
push eax
mov dword [ebp - 0x220], esi
mov word [ebp - 0x218], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.MSVCR80.dll_wcsrchr]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call ebx
cmp eax, edi
pop ecx
pop ecx
je 0x412489
mov word [eax], di
call fcn.00404601
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 4], edi
push esi
mov dword [ebp - 0x21c], 1
call fcn.00401445
push str._txupd.exe
push esi
call fcn.004048af
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41252b
push dword [esi]
mov edi, 0x427440
push str.txupd___s__not_exist_so_uplevel_dir
push edi
call fcn.004151bb
lea eax, [ebp - 0x218]
push 0x5c
push eax
call ebx
add esp, 0x14
test eax, eax
je 0x4124e7
and word [eax], 0
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00401445
push str._txupd.exe
push esi
call fcn.004048af
push dword [esi]
push str.txupd___s_
push edi
call fcn.004151bb
add esp, 0xc
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41252b
push dword [esi]
push str.txupd___s__not_exist_error
push edi
call fcn.004151bb
add esp, 0xc
mov eax, esi
call fcn.0041f6ae
ret

Function at 0x412649
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4126ac
cmp dword [ebp + 0xc], 1
je 0x412685
cmp dword [ebp + 0xc], 2
je 0x412685
push 0xd
pop eax
jmp 0x4126ac
test edi, edi
mov eax, dword [ebp - 4]
je 0x4126a6
test eax, eax
je 0x4126a2
test al, 1
jne 0x412680
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x4126a6
jmp 0x412680
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x414309
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41435d
push 0x40
push 0x3000
push 0x40
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 8], eax
mov byte [eax], 0xb9
mov eax, dword [esi + 8]
mov byte [eax + 5], 0xe9
mov eax, dword [esi + 8]
mov dword [eax + 1], esi
mov eax, dword [esi + 8]
mov ecx, 0x414363
sub ecx, eax
sub ecx, 0xa
mov dword [eax + 6], ecx
push dword [esi + 8]
push 0xfffffffffffffffc
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [esi + 4], eax
mov eax, esi
pop ebp
ret 4
Function at 0x414628
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push edi
mov ebx, eax
call dword [sym.imp.USER32.dll_CreatePopupMenu]
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x41464b
mov eax, 0x80004005
jmp 0x414789
push esi
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push dword [ebp - 4]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, dword [ebx + 4]
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x414687
mov esi, dword [eax]
push edi
push 0x2710
push 0x64
push dword [ebp - 4]
add esi, 0xc
call dword [sym.imp.USER32.dll_GetMenuItemCount]
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [esi]
push dword [ebp - 4]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push esi
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebx + 4], edi
mov dword [ebp - 0xc], eax
je 0x414721
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 8], eax
jne 0x414721
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0xc], eax
jne 0x414721
mov eax, dword [ebx + 4]
cmp eax, edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
je 0x4146df
push esi
lea esi, [ebp - 0x1c]
call fcn.00414309
mov esi, dword [ebp + 0x10]
push edi
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x100
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
cmp dword [ebp - 0x18], edi
mov esi, eax
je 0x41470b
push dword [ebp - 0x18]
push 0xfffffffffffffffc
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_SetWindowLongW]
cmp dword [ebp - 0x14], edi
je 0x41473a
push 0x8000
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x41473a
push edi
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x100
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DestroyMenu]
lea eax, [esi - 0x64]
cmp eax, 0x26ac
ja 0x41477d
mov ebx, dword [ebx + 4]
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0x40], 0x24
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
add esi, 0xffffff9c
movzx eax, si
lea ecx, [ebp - 0x40]
push ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 1
mov eax, dword [ebx]
push ebx
call dword [eax + 0x10]
jmp 0x414788
push dword [ebp + 0x10]
mov eax, dword [ebx]
push esi
mov ecx, ebx
call dword [eax + 8]
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x41591d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push esi
push str.OpenUrlWithDefBrowserInternal__url_s
push 0x42742c
call fcn.004151bb
call fcn.00415986
push 0x38
mov edi, eax
lea eax, [ebp - 0x38]
push 0
push eax
mov dword [ebp - 0x3c], 0x3c
call sub.MSVCR80.dll_memset
add esp, 0x18
mov dword [ebp - 0x38], 0x500
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x2c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x41597e
mov al, 1
jmp 0x415983
test edi, edi
setne al
pop edi
leave
ret
Function at 0x415c58
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x433024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.OpenUrlWithIEInternal__url_s
push 0x42742c
call fcn.004151bb
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call sub.MSVCR80.dll_memset
add esp, 0x18
push ebx
push 0x26
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x210], bx
je 0x415cd2
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x415cd2
mov al, 1
jmp 0x415cd4
xor al, al
xor ecx, ecx
cmp al, bl
sete cl
mov esi, 0x104
push esi
lea eax, [ebp - 0x210]
lea ecx, [ecx*2 + str.Internet_ExplorerIEXPLORE.EXE]
call fcn.004150a6
pop ecx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x415d1f
push esi
mov ecx, str.iexplore.exe
lea eax, [ebp - 0x210]
mov word [ebp - 0x210], bx
call fcn.004150a6
pop ecx
push 5
push ebx
push edi
lea eax, [ebp - 0x210]
push eax
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov al, cl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ec06
leave
ret

Function at 0x416202
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x433024]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edi, [eax + 0x24]
lea eax, [ebp - 0x66c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x670], eax
je 0x4162ee
cmp dword [ebp - 0x650], 0
jne 0x416254
cmp dword [ebp - 0x64c], 0x500000
jbe 0x4162e2
mov ecx, edi
lea eax, [ebp - 0x41c]
call fcn.004150f9
mov ecx, edi
lea eax, [ebp - 0x214]
call fcn.004150f9
mov esi, 0x104
push esi
mov ecx, 0x42c550
lea eax, [ebp - 0x41c]
call fcn.004150a6
push esi
mov ecx, 0x42c558
lea eax, [ebp - 0x214]
call fcn.004150a6
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop ecx
pop ecx
xor esi, esi
lea eax, [ebp - 0x214]
push eax
call ebx
test eax, eax
jne 0x4162bf
cmp esi, 2
jge 0x4162b9
push 0x28
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 3
jl 0x41629f
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call esi
lea eax, [ebp - 0x41c]
push eax
push edi
call esi
push edi
call ebx
push dword [ebp - 0x670]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ec06
leave
ret 4
Function at 0x41662e
Capabilities:
Accept command line arguments

Disassembly:
push 0x18
mov eax, 0x420837
call fcn.0041f5c2
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor esi, esi
lea eax, [edi + 0x240]
mov dword [ebp - 4], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
lea ebx, [edi + 0x238]
mov byte [edi + 0x23d], 1
mov dword [edi + 0x22c], esi
mov dword [edi + 0x230], esi
mov byte [edi + 0x23c], 1
mov dword [edi + 0x234], 2
mov dword [ebx], 0x3e8
mov byte [edi + 0x23e], 1
mov byte [edi + 0x23f], 0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.004047fa
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004155a5
mov eax, dword [ebp - 0x14]
pop ecx
add eax, 0xfffffff0
call fcn.004016a4
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x20], esi
mov dword [ebp + 8], ecx
je 0x4167a7
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
sar eax, 2
cmp eax, ecx
mov dword [ebp - 0x14], eax
jbe 0x4167a7
jmp 0x4166f7
xor esi, esi
cmp dword [ebp - 0x20], esi
je 0x41670a
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
sar eax, 2
cmp dword [ebp + 8], eax
jb 0x416710
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x416798
cmp word [esi], 0x2f
jne 0x416743
movzx eax, word [esi + 2]
push eax
call dword [sym.imp.MSVCR80.dll_iswdigit]
test eax, eax
pop ecx
je 0x416743
cmp word [esi + 4], 0
jne 0x416743
movzx eax, word [esi + 2]
sub eax, 0x30
jmp 0x416763
push 0xa
push str._loglevel:
push esi
call dword [sym.imp.MSVCR80.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x41676b
add esi, 0x14
push esi
call dword [sym.imp.MSVCR80.dll__wtoi]
pop ecx
mov dword [edi + 0x234], eax
jmp 0x416798
push 8
push str._logbuf:
push esi
call dword [sym.imp.MSVCR80.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x416798
mov eax, ebx
mov ecx, esi
call fcn.0041577d
add dword [ebx], 8
cmp dword [ebx], 1
ja 0x416798
mov byte [edi + 0x23d], 0
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x14]
jb 0x4166f5
push edi
call fcn.00416592
test eax, eax
jne 0x4167b7
mov byte [edi + 0x23c], al
mov ebx, edi
call fcn.004162ff
lea esi, [ebp - 0x24]
call fcn.00404d42
mov eax, edi
call fcn.0041f69a
ret 4
Function at 0x4167d0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1901c
call fcn.0041f780
mov eax, dword [0x433024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x23f], 0
mov dword [ebp - 0x19018], edi
jne 0x41697a
or dword [ebp - 0x1900c], 0xffffffff
lea esi, [edi + 0x24]
push esi
lea eax, [ebp - 0x1900c]
push eax
call fcn.004161a8
test eax, eax
jne 0x416883
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x416841
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
lea eax, [ebp - 0x1900c]
push eax
call fcn.004161a8
test eax, eax
jne 0x416883
xor ebx, ebx
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
lea eax, [ebp - 0x1900c]
push eax
call fcn.004161a8
test eax, eax
jne 0x416862
inc ebx
cmp ebx, 3
jb 0x416843
cmp ebx, 3
jne 0x416883
cmp dword [ebp - 0x1900c], 0xffffffff
je 0x41687c
push dword [ebp - 0x1900c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4169b9
cmp dword [ebp - 0x1900c], 0xffffffff
je 0x41689e
push 2
push 0
push 0
push dword [ebp - 0x1900c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x18fff
xor ebx, ebx
lea eax, [ebp - 0x19007]
push ebx
push eax
mov byte [ebp - 0x19008], 0
call sub.MSVCR80.dll_memset
and dword [ebp - 0x19010], ebx
lea eax, [edi + 0x240]
add esp, 0xc
mov dword [ebp - 0x19014], eax
call fcn.004051b9
test eax, eax
jbe 0x416952
mov esi, dword [ebp - 0x19010]
mov edi, dword [ebp - 0x19014]
call fcn.004171f0
mov esi, dword [eax]
mov eax, dword [esi]
add eax, ebx
mov edi, 0x19000
cmp eax, edi
jbe 0x41690c
push ebx
lea eax, [ebp - 0x19008]
push eax
lea eax, [ebp - 0x1900c]
call fcn.004161d9
xor ebx, ebx
mov eax, dword [esi]
cmp eax, edi
push eax
push esi
jbe 0x416921
lea eax, [ebp - 0x1900c]
call fcn.004161d9
jmp 0x416933
lea eax, [ebp + ebx - 0x19008]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
add ebx, dword [esi]
mov eax, dword [ebp - 0x19014]
inc dword [ebp - 0x19010]
call fcn.004051b9
cmp dword [ebp - 0x19010], eax
jb 0x4168d7
mov edi, dword [ebp - 0x19018]
push ebx
lea eax, [ebp - 0x19008]
push eax
lea eax, [ebp - 0x1900c]
call fcn.004161d9
cmp dword [ebp - 0x1900c], 0xffffffff
je 0x41697a
push dword [ebp - 0x1900c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 0x240
mov eax, edi
xor esi, esi
call fcn.004051b9
test eax, eax
jbe 0x4169af
call fcn.004171f0
push dword [eax]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
call fcn.004171f0
and dword [eax], 0
mov eax, edi
inc esi
call fcn.004051b9
cmp esi, eax
jb 0x41698d
mov esi, edi
call fcn.00417208
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ec06
leave
ret
Function at 0x417707
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, eax
push 3
mov esi, ecx
xor edx, edx
lea eax, [edi + 2]
pop ecx
div ecx
cmp eax, 0x40000000
jae 0x417808
mov ecx, dword [ebp + 0xc]
shl eax, 2
cmp dword [ecx], eax
jb 0x417808
cmp edi, 2
mov ecx, dword [ebp + 8]
jbe 0x4177a2
push ebx
push 3
xor edx, edx
lea eax, [edi - 3]
pop ebx
div ebx
inc eax
movzx edx, byte [esi]
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
movzx edx, byte [esi]
movzx ebx, byte [esi + 1]
and edx, 3
shl edx, 4
shr ebx, 4
mov dl, byte [edx + ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
movzx edx, byte [esi + 1]
movzx ebx, byte [esi + 2]
and edx, 0xf
shr ebx, 6
mov dl, byte [ebx + edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
movzx edx, byte [esi + 2]
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
inc ecx
add esi, 3
sub edi, 3
dec eax
jne 0x417747
pop ebx
test edi, edi
je 0x4177f7
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi]
and eax, 3
inc ecx
shl eax, 4
cmp edi, 1
jbe 0x4177e6
movzx edx, byte [esi + 1]
shr edx, 4
mov al, byte [eax + edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi + 1]
inc ecx
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
jmp 0x4177f2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov edx, dword [ebp + 0xc]
mov eax, ecx
sub eax, dword [ebp + 8]
mov byte [ecx], 0
mov dword [edx], eax
xor eax, eax
jmp 0x41780b
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret