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

Disassembly:
push 0x644
mov eax, 0x41fbd3
call fcn.0041eefb
mov eax, dword [ebp + 8]
mov dword [ebp - 0x644], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, esi
jne 0x4118ca
xor eax, eax
jmp 0x4119e4
push eax
lea eax, [ebp - 0x640]
push eax
call fcn.00411bbb
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.00401689
cmp edi, esi
jne 0x4118c3
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 0x411974
push dword [ebp - 0x634]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4118c3
lea eax, [ebp - 0x63c]
push eax
lea ecx, [ebp - 0x630]
call fcn.004047a6
lea eax, [ebp - 0x638]
push eax
mov ecx, 0x4274b4
mov dword [ebp - 4], esi
call fcn.004047a6
mov ecx, dword [ebp - 0x644]
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x63c]
push eax
mov byte [ebp - 4], 1
call fcn.00414844
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.00401689
mov eax, dword [ebp - 0x63c]
add eax, 0xfffffff0
call fcn.00401689
xor eax, eax
inc eax
call fcn.0041ef7e
ret
Function at 0x4119ea
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x650
mov eax, 0x41fb95
call fcn.0041eefb
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 0x411a1b
xor eax, eax
jmp 0x411bb5
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.00411bbb
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.00401689
cmp edi, esi
jne 0x411a14
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 0x411ac8
push dword [ebp - 0x640]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x411a14
lea eax, [ebp - 0x63c]
push eax
lea ecx, [ebp - 0x638]
call fcn.004047a6
lea eax, [ebp - 0x644]
push eax
mov ecx, 0x4274b4
mov dword [ebp - 4], esi
call fcn.004047a6
mov ecx, dword [ebp - 0x654]
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x63c]
push eax
mov byte [ebp - 4], 1
call fcn.00414844
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 0x411b8b
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.00414844
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.00401689
mov eax, dword [ebp - 0x63c]
add eax, 0xfffffff0
call fcn.00401689
mov eax, ebx
call fcn.0041ef7e
ret
Function at 0x411c01
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0xc
mov eax, 0x4204a3
call fcn.0041ee92
xor edi, edi
cmp dword [ebp + 8], edi
je 0x411ca1
xor eax, eax
mov esi, str.CrashCount
cmp eax, esi
je 0x411ca1
lea eax, [ebp - 0x14]
push eax
call fcn.004102be
mov dword [ebp - 4], edi
lea eax, [ebp - 0x10]
mov dword [esp], str.BREvent.ini
push eax
lea ecx, [ebp - 0x14]
call fcn.00404989
pop ecx
pop ecx
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411cb0
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 0x411ca9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x10]
push str._AddEventLog__create_file___s__failed___ld_
push 0x426430
call fcn.00414b27
mov eax, dword [ebp - 0x10]
add esp, 0x10
add eax, 0xfffffff0
call fcn.00401689
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401689
xor eax, eax
call fcn.0041ef6a
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, 0x426430
push str._s:_s_lu
push edi
call fcn.00414b27
push ebx
lea eax, [ebp - 0x18]
push 0x4276c8
push eax
call fcn.00410f85
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.00401689
test bl, bl
je 0x411d24
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x10]
push str._AddEventLog__write_file___s__failed___ld_
push edi
jmp 0x411c83
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401689
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401689
xor eax, eax
inc eax
jmp 0x411ca3
Function at 0x411d42
Capabilities:
Check if file exists

Disassembly:
push 0x214
mov eax, 0x41f6ac
call fcn.0041eefb
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 0x411daa
mov word [eax], di
call fcn.004045ad
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.0040485b
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411e4c
push dword [esi]
mov edi, 0x426430
push str.txupd___s__not_exist_so_uplevel_dir
push edi
call fcn.00414b27
lea eax, [ebp - 0x218]
push 0x5c
push eax
call ebx
add esp, 0x14
test eax, eax
je 0x411e08
and word [eax], 0
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00401445
push str._txupd.exe
push esi
call fcn.0040485b
push dword [esi]
push str.txupd___s_
push edi
call fcn.00414b27
add esp, 0xc
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411e4c
push dword [esi]
push str.txupd___s__not_exist_error
push edi
call fcn.00414b27
add esp, 0xc
mov eax, esi
call fcn.0041ef7e
ret

Function at 0x411f6a
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 0x411fcd
cmp dword [ebp + 0xc], 1
je 0x411fa6
cmp dword [ebp + 0xc], 2
je 0x411fa6
push 0xd
pop eax
jmp 0x411fcd
test edi, edi
mov eax, dword [ebp - 4]
je 0x411fc7
test eax, eax
je 0x411fc3
test al, 1
jne 0x411fa1
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x411fc7
jmp 0x411fa1
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x413c6b
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 0x413cc6
push 0x40
call fcn.0041e4c4
pop ecx
push 0
push 0x40
push 0x40
push eax
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi + 8]
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, 0x413ccc
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 0x413f84
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 0x413fa7
mov eax, 0x80004005
jmp 0x4140da
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 0x413fe3
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 0x414072
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 8], eax
jne 0x414072
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0xc], eax
jne 0x414072
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 0x41403b
push esi
lea esi, [ebp - 0x1c]
call fcn.00413c6b
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 0x414067
push dword [ebp - 0x18]
push 0xfffffffffffffffc
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push dword [ebp - 0x14]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x41408b
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 0x4140ce
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 0x4140d9
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 0x415289
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push esi
push str.OpenUrlWithDefBrowserInternal__url_s
push 0x42641c
call fcn.00414b27
call fcn.004152f2
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 0x4152ea
mov al, 1
jmp 0x4152ef
test edi, edi
setne al
pop edi
leave
ret
Function at 0x4155c4
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 [0x432024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.OpenUrlWithIEInternal__url_s
push 0x42641c
call fcn.00414b27
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 0x41563e
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x41563e
mov al, 1
jmp 0x415640
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.00414a12
pop ecx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41568b
push esi
mov ecx, str.iexplore.exe
lea eax, [ebp - 0x210]
mov word [ebp - 0x210], bx
call fcn.00414a12
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.0041e4d6
leave
ret

Function at 0x415b6e
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x432024]
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 0x415c5a
cmp dword [ebp - 0x650], 0
jne 0x415bc0
cmp dword [ebp - 0x64c], 0x500000
jbe 0x415c4e
mov ecx, edi
lea eax, [ebp - 0x41c]
call fcn.00414a65
mov ecx, edi
lea eax, [ebp - 0x214]
call fcn.00414a65
mov esi, 0x104
push esi
mov ecx, 0x42b1a8
lea eax, [ebp - 0x41c]
call fcn.00414a12
push esi
mov ecx, 0x42b1b0
lea eax, [ebp - 0x214]
call fcn.00414a12
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 0x415c2b
cmp esi, 2
jge 0x415c25
push 0x28
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 3
jl 0x415c0b
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.0041e4d6
leave
ret 4
Function at 0x415f9a
Capabilities:
Accept command line arguments

Disassembly:
push 0x18
mov eax, 0x42012e
call fcn.0041ee92
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.004047a6
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00414f11
mov eax, dword [ebp - 0x14]
pop ecx
add eax, 0xfffffff0
call fcn.00401689
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x20], esi
mov dword [ebp + 8], ecx
je 0x416113
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
sar eax, 2
cmp eax, ecx
mov dword [ebp - 0x14], eax
jbe 0x416113
jmp 0x416063
xor esi, esi
cmp dword [ebp - 0x20], esi
je 0x416076
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
sar eax, 2
cmp dword [ebp + 8], eax
jb 0x41607c
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 0x416104
cmp word [esi], 0x2f
jne 0x4160af
movzx eax, word [esi + 2]
push eax
call dword [sym.imp.MSVCR80.dll_iswdigit]
test eax, eax
pop ecx
je 0x4160af
cmp word [esi + 4], 0
jne 0x4160af
movzx eax, word [esi + 2]
sub eax, 0x30
jmp 0x4160cf
push 0xa
push str._loglevel:
push esi
call dword [sym.imp.MSVCR80.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x4160d7
add esi, 0x14
push esi
call dword [sym.imp.MSVCR80.dll__wtoi]
pop ecx
mov dword [edi + 0x234], eax
jmp 0x416104
push 8
push str._logbuf:
push esi
call dword [sym.imp.MSVCR80.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x416104
mov eax, ebx
mov ecx, esi
call fcn.004150e9
add dword [ebx], 8
cmp dword [ebx], 1
ja 0x416104
mov byte [edi + 0x23d], 0
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x14]
jb 0x416061
push edi
call fcn.00415efe
test eax, eax
jne 0x416123
mov byte [edi + 0x23c], al
mov ebx, edi
call fcn.00415c6b
lea esi, [ebp - 0x24]
call fcn.00404cc5
mov eax, edi
call fcn.0041ef6a
ret 4
Function at 0x41613c
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1901c
call fcn.0041f050
mov eax, dword [0x432024]
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 0x4162e6
or dword [ebp - 0x1900c], 0xffffffff
lea esi, [edi + 0x24]
push esi
lea eax, [ebp - 0x1900c]
push eax
call fcn.00415b14
test eax, eax
jne 0x4161ef
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4161ad
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
lea eax, [ebp - 0x1900c]
push eax
call fcn.00415b14
test eax, eax
jne 0x4161ef
xor ebx, ebx
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
lea eax, [ebp - 0x1900c]
push eax
call fcn.00415b14
test eax, eax
jne 0x4161ce
inc ebx
cmp ebx, 3
jb 0x4161af
cmp ebx, 3
jne 0x4161ef
cmp dword [ebp - 0x1900c], 0xffffffff
je 0x4161e8
push dword [ebp - 0x1900c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x416325
cmp dword [ebp - 0x1900c], 0xffffffff
je 0x41620a
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.00405154
test eax, eax
jbe 0x4162be
mov esi, dword [ebp - 0x19010]
mov edi, dword [ebp - 0x19014]
call fcn.00416b5c
mov esi, dword [eax]
mov eax, dword [esi]
add eax, ebx
mov edi, 0x19000
cmp eax, edi
jbe 0x416278
push ebx
lea eax, [ebp - 0x19008]
push eax
lea eax, [ebp - 0x1900c]
call fcn.00415b45
xor ebx, ebx
mov eax, dword [esi]
cmp eax, edi
push eax
push esi
jbe 0x41628d
lea eax, [ebp - 0x1900c]
call fcn.00415b45
jmp 0x41629f
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.00405154
cmp dword [ebp - 0x19010], eax
jb 0x416243
mov edi, dword [ebp - 0x19018]
push ebx
lea eax, [ebp - 0x19008]
push eax
lea eax, [ebp - 0x1900c]
call fcn.00415b45
cmp dword [ebp - 0x1900c], 0xffffffff
je 0x4162e6
push dword [ebp - 0x1900c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 0x240
mov eax, edi
xor esi, esi
call fcn.00405154
test eax, eax
jbe 0x41631b
call fcn.00416b5c
push dword [eax]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
call fcn.00416b5c
and dword [eax], 0
mov eax, edi
inc esi
call fcn.00405154
cmp esi, eax
jb 0x4162f9
mov esi, edi
call fcn.00416b74
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e4d6
leave
ret
Function at 0x4176f5
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x432024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push esi
push str..PhysicalDrive0
mov dword [ebp - 0x414], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4177d1
push edi
push 0xc
lea eax, [ebp - 0x410]
push esi
push eax
call sub.MSVCR80.dll_memset
mov edi, 0x400
push edi
lea eax, [ebp - 0x404]
push esi
push eax
mov dword [ebp - 0x410], esi
mov dword [ebp - 0x40c], esi
mov dword [ebp - 0x418], esi
call sub.MSVCR80.dll_memset
add esp, 0x18
push esi
lea eax, [ebp - 0x418]
push eax
push edi
lea eax, [ebp - 0x404]
push eax
push 0xc
lea eax, [ebp - 0x410]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
pop edi
je 0x4177ca
mov esi, dword [ebp - 0x3f4]
lea esi, [ebp + esi - 0x404]
movsx eax, byte [esi]
push eax
call dword [sym.imp.MSVCR80.dll_isalnum]
test eax, eax
pop ecx
je 0x4177ca
mov ecx, dword [ebp - 0x414]
push esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x4177d3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e4d6
leave
ret 4

Function at 0x417f68
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push str.M_GetAdaptersAddresses_begin.
mov edi, str.bugreport
push edi
call fcn.00414b27
xor ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 8], ebx
xor esi, esi
mov dword [ebp - 4], ebx
lea eax, [ebp - 8]
push eax
push esi
push ebx
push ebx
push 2
call sub.iphlpapi.dll_GetAdaptersAddresses
cmp eax, 0x6f
mov dword [ebp - 0xc], eax
jne 0x418000
cmp esi, ebx
je 0x417fae
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
push dword [ebp - 8]
call fcn.0041e4c4
mov esi, eax
cmp esi, ebx
pop ecx
je 0x417feb
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jl 0x417f8d
cmp esi, ebx
je 0x417fd1
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
push dword [ebp - 0xc]
push str.GetAdaptersAddresses_failed___ld_.
push edi
call fcn.00414b27
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Allocate_memory_failed___ld__in_M_GetAdaptersAddresses.
push edi
call fcn.00414b27
add esp, 0xc
cmp dword [ebp - 0xc], ebx
jne 0x417fc6
cmp esi, ebx
je 0x417fd1
push dword [ebp + 8]
mov ecx, esi
call fcn.0041802e
mov edi, eax
cmp edi, ebx
je 0x418023
push dword [ebp + 8]
call fcn.004189aa
mov edi, eax
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, edi
jmp 0x417fe4
Function at 0x418f6e
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
test edx, edx
push edi
mov edi, dword [ebp + 8]
jle 0x418fd8
sub ecx, edi
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
push esi
inc byte [eax + 0x100]
movzx ecx, byte [eax + 0x100]
lea esi, [ecx + eax]
mov cl, byte [esi]
add byte [eax + 0x101], cl
movzx ecx, byte [eax + 0x101]
mov dl, byte [esi]
add ecx, eax
mov bl, byte [ecx]
mov byte [esi], bl
mov byte [ecx], dl
movzx ecx, byte [eax + 0x101]
movzx edx, byte [eax + 0x100]
mov cl, byte [ecx + eax]
add cl, byte [edx + eax]
mov edx, dword [ebp - 8]
movzx ecx, cl
mov cl, byte [ecx + eax]
xor cl, byte [edx + edi]
mov byte [edi], cl
inc edi
dec dword [ebp - 4]
jne 0x418f85
pop esi
pop ebx
pop edi
leave
ret