joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f588
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 8]
push ebx
call fcn.0047ff2f
pop ecx
lea eax, [ebp - 0x41c]
lea edi, [esi + 0xc]
push eax
mov ecx, edi
call fcn.0045ddcf
mov eax, dword [0x4eef64]
test eax, eax
je 0x47f5ec
lea ecx, [ebp - 0x41c]
push ecx
push dword [esi + 0xa0]
push dword [esi + 0xa8]
push dword [esi + 0xa4]
push dword [esi]
call eax
add esp, 0x14
test al, al
jne 0x47f762
test byte [0x4eb0d8], 2
je 0x47f612
cmp dword [ebp - 0x408], 0x10
lea eax, [ebp - 0x41c]
cmovae eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x47f617
cmp dword [esi], 2
jl 0x47f650
cmp dword [ebp - 0x408], 0x10
lea eax, [ebp - 0x41c]
cmovae eax, dword [ebp - 0x41c]
push eax
push 0x4d3ab4
call fcn.00496dfb
add eax, 0x40
push eax
call fcn.00493ec4
call fcn.00496dfb
add eax, 0x40
push eax
call fcn.00496ab8
add esp, 0x10
push 0
push 0
call fcn.0047fcad
test byte [0x4eb0d8], 1
pop ecx
pop ecx
je 0x47f6b9
call fcn.0047fea6
call fcn.0047fdfb
test al, al
je 0x47f6b4
push 2
push 0
push 0
push dword [0x4eef54]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x408], 0x10
push 0
lea ecx, [ebp - 0x438]
push ecx
push dword [ebp - 0x40c]
lea eax, [ebp - 0x41c]
cmovae eax, dword [ebp - 0x41c]
push eax
push dword [0x4eef54]
call dword [sym.imp.KERNEL32.dll_WriteFile]
call fcn.0047fec9
cmp dword [esi], 4
jne 0x47f71a
push 0
push 0x400
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x41c]
call fcn.0047feea
lea eax, [ebp - 0x404]
push eax
call fcn.00485bb1
pop ecx
call fcn.0048031f
test al, al
jne 0x47f713
cmp dword [0x4eef5c], 0
je 0x47f713
lea eax, [ebp - 0x434]
push eax
mov ecx, edi
call fcn.0045ddcf
lea eax, [ebp - 0x434]
push eax
call dword [0x4eef5c]
jmp 0x47f756
call fcn.0048032c
jmp 0x47f762
cmp dword [esi], 3
jne 0x47f762
cmp dword [0x4eef60], 0
lea eax, [ebp - 0x434]
mov ecx, edi
push eax
je 0x47f745
call fcn.0045ddcf
lea eax, [ebp - 0x434]
push eax
call dword [0x4eef60]
jmp 0x47f756
call fcn.0045ddcf
lea eax, [ebp - 0x434]
push eax
call fcn.0047f84c
pop ecx
lea ecx, [ebp - 0x434]
call fcn.004073c4
lea ecx, [ebp - 0x41c]
call fcn.004073c4
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, ebx
call fcn.0045b616
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f059
leave
ret
Function at 0x47f84c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x10], edi
je 0x47f99c
cmp byte [0x4eef5b], 0
je 0x47f99c
push ebx
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004937d5
pop ecx
pop ecx
test eax, eax
je 0x47f8ab
xor ecx, ecx
mov word [eax + 2], cx
push str.debug_message.exe
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00495008
add esp, 0xc
lea ecx, [ebp - 0x23c]
push esi
call fcn.0046a096
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0047eee0
pop ecx
pop ecx
pop ebx
cmp dword [ebp - 0x214], edi
je 0x47f98e
push 0x44
pop esi
push esi
lea eax, [ebp - 0x280]
push edi
push eax
call fcn.004921d0
add esp, 0xc
cmp dword [ebp - 0x210], 8
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x280]
push ecx
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x224]
cmovae eax, dword [ebp - 0x224]
push edi
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x280], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x47f968
push 0xffffffffffffffff
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x230]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x234]
call esi
jmp 0x47f98e
cmp dword [ebp - 0x210], 8
push 0x40010
lea eax, [ebp - 0x224]
cmovae eax, dword [ebp - 0x224]
push str.Fatal_error
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
push 1
lea ecx, [ebp - 0x224]
call fcn.00405ac5
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0048f059
leave
ret
Function at 0x480347
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push 3
xor ebx, ebx
pop edi
mov dword [ebp - 0x124], ebx
mov dword [esi], ebx
mov dword [esi + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.004804f6
mov dword [esi + 0x24], eax
mov dword [esp], 0x118
lea eax, [ebp - 0x11c]
push ebx
mov dword [esi + 0x3c], 0xf
mov dword [esi + 0x38], ebx
mov byte [esi + 0x28], bl
push eax
mov dword [ebp - 0x120], 0x11c
call fcn.004921d0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x120]
push eax
call fcn.00480537
mov eax, dword [ebp - 0x114]
mov edx, dword [ebp - 0x11c]
pop ecx
mov ecx, dword [ebp - 0x118]
push 6
pop ebx
push 5
mov dword [esi + 0xc], eax
pop eax
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
cmp edx, eax
jne 0x4803fc
test ecx, ecx
jle 0x480423
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x480423
cmp edx, ebx
jne 0x48041b
sub ecx, 0
je 0x480417
dec ecx
je 0x48040f
dec ecx
je 0x4803f8
mov dword [esi], ebx
jmp 0x480423
mov dword [esi], 4
jmp 0x480423
mov dword [esi], edi
jmp 0x480423
jle 0x480423
mov dword [esi], 7
movzx eax, word [ebp - 0xc]
and dword [ebp - 0x148], 0
mov dword [esi + 0x10], eax
movzx eax, word [ebp - 0xa]
push 8
mov dword [esi + 0x14], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x144]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x148]
test eax, eax
je 0x480478
cmp eax, ebx
je 0x48046f
cmp eax, 9
jne 0x48047c
mov dword [esi + 0x18], 1
jmp 0x48047c
mov dword [esi + 0x18], 2
jmp 0x48047c
and dword [esi + 0x18], 0
mov ecx, dword [ebp - 0x134]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0x12c]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f059
leave
ret
Function at 0x4837d1
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x68], eax
mov al, byte [ebx]
test al, al
jne 0x4838c8
cmp dword [ebx + 0x2a0], 0
je 0x4839d4
test al, al
jne 0x4838c8
lea esi, [ebx + 0x290]
mov ecx, esi
lea edi, [ebx + 0x258]
call fcn.00483bb9
push eax
mov ecx, edi
call fcn.0047a13d
mov ecx, esi
call fcn.00483c06
push edi
lea ecx, [ebp - 0x1c]
call fcn.0047a09f
cmp dword [ebx + 0x288], 0
jne 0x48387b
push 0x4d44cc
lea ecx, [ebp - 0x4c]
call fcn.0040513a
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0047a176
push eax
lea ecx, [ebp - 0x1c]
call fcn.0047a13d
lea ecx, [ebp - 0x64]
call fcn.0047a0fe
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00405ac5
jmp 0x48389f
lea eax, [ebx + 0x278]
push eax
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0047a176
push eax
lea ecx, [ebp - 0x1c]
call fcn.0047a13d
lea ecx, [ebp - 0x64]
call fcn.0047a0fe
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
lea esi, [ebx + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x1c]
mov dword [ebx + 0x254], eax
mov byte [ebx], 1
call fcn.0047a0fe
jmp 0x4838ef
lea esi, [ebx + 4]
push esi
push dword [ebx + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4838ef
push dword [ebx + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebx + 0x254], 0xffffffff
cmp dword [ebx + 0x254], 0xffffffff
jne 0x48392c
and dword [ebp - 0xc], 0
xor eax, eax
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebx + 0x278]
mov byte [ebx], 0
mov dword [ebp - 8], 7
call fcn.00409050
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00405ac5
jmp 0x4837ec
lea edi, [ebx + 0x30]
push edi
lea ecx, [ebp - 0x4c]
call fcn.0040513a
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x34]
call fcn.0047a0b4
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00405ac5
lea eax, [ebp - 0x34]
push eax
mov ecx, ebx
call fcn.004835a6
test al, al
jne 0x4839c7
push edi
lea ecx, [ebp - 0x4c]
call fcn.0040513a
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebx + 0x258]
call fcn.0047a176
push eax
lea ecx, [ebp - 0x34]
call fcn.0047a13d
lea ecx, [ebp - 0x64]
call fcn.0047a0fe
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00405ac5
test byte [esi], 0x10
je 0x4839be
cmp byte [ebx + 0x270], 0
je 0x4839b5
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebx + 0x290]
call fcn.00483c32
test byte [ebx + 0x274], 2
jmp 0x4839c5
test byte [ebx + 0x274], 1
jne 0x4839de
lea ecx, [ebp - 0x34]
call fcn.0047a0fe
jmp 0x4837ec
mov ecx, dword [ebp - 0x68]
call fcn.0047a0eb
jmp 0x4839f2
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x34]
push eax
call fcn.0047a09f
lea ecx, [ebp - 0x34]
call fcn.0047a0fe
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x68]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f059
leave
ret 4
Function at 0x4873e4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4eb284]
and dword [ebp - 4], 0
cmp eax, 0xffffffff
je 0x487486
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
test eax, eax
je 0x487486
push ebx
push esi
push edi
push 0x40
pop ebx
mov esi, eax
lea eax, [ebp - 0x104]
push eax
push dword [0x4eb284]
mov ecx, ebx
lea edi, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call edi
push dword [ebp - 4]
call fcn.0048eb4d
pop ecx
mov esi, dword [0x4efae0]
xor al, al
jmp 0x48746c
mov ecx, dword [ebp + esi*4 - 0x104]
test ecx, ecx
je 0x48746b
mov edx, dword [esi*4 + 0x4efae8]
test edx, edx
je 0x48746b
and dword [ebp + esi*4 - 0x104], 0
push ecx
call edx
pop ecx
mov al, 1
dec esi
test esi, esi
jg 0x487447
dec ebx
test ebx, ebx
jle 0x487479
test al, al
jne 0x48743d
push 0
push dword [0x4eb284]
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x487b74
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x14], 0x10
push edi
mov dword [esi + 0x10], ebx
jb 0x487b9c
mov eax, dword [esi]
jmp 0x487b9e
mov eax, esi
mov byte [eax], bl
push 0x103
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.004921d0
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push 0x4c7c04
xor edi, edi
push str.SoftwareClasses9B7A98EC_7EF9_468c_ACC8_37C793DBD7E0Implemented_CategoriesA5F7140E_4311_4ef9_AABC_F55941B5EBE5
inc edi
push SysReAllocStringLen
mov dword [ebp - 0x114], 0x104
mov dword [ebp - 0x110], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x487c55
cmp dword [ebp - 0x110], edi
jne 0x487c55
lea eax, [ebp - 0x108]
push eax
call fcn.004071c8
pop ecx
push eax
lea eax, [ebp - 0x108]
push eax
mov ecx, esi
call fcn.00407429
cmp dword [esi + 0x10], ebx
jbe 0x487c55
push edi
push ebx
lea eax, [ebp - 0x10c]
push eax
mov ecx, esi
mov byte [ebp - 0x10c], 0xa
call fcn.004091eb
cmp eax, 0xffffffff
je 0x487c51
push edi
push eax
mov ecx, esi
call fcn.00407603
push esi
call fcn.004886eb
pop ecx
mov eax, edi
jmp 0x487c57
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f059
leave
ret

Function at 0x487c66
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4efc10]
push esi
xor esi, esi
test al, 1
jne 0x487cb0
or eax, 1
mov dword [0x4efc10], eax
xor eax, eax
push 0x4bb396
mov dword [0x4efc0c], 7
mov dword [0x4efc08], esi
mov word [0x4efbf8], ax
call fcn.0048f202
pop ecx
cmp dword [0x4efc08], esi
je 0x487cc2
mov eax, 0x4efbf8
jmp 0x487d72
push ebx
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.004921d0
add esp, 0xc
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, 0x4efbf8
test eax, eax
je 0x487d6e
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004930b2
pop ecx
pop ecx
push esi
push esi
push esi
xor ecx, ecx
mov word [eax + 2], cx
push esi
lea eax, [ebp - 0x210]
push eax
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x210], esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x487d6e
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push 0x4c7bf0
push ebx
push eax
call fcn.00401c4f
lea eax, [ebp - 0x20c]
push eax
call fcn.00405113
add esp, 0x14
lea ecx, [ebp - 0x20c]
push eax
push ecx
mov ecx, edi
call fcn.0040509a
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0048f059
leave
ret
Function at 0x487d7f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004921d0
add esp, 0xc
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x294]
push eax
push 0x4c1ae8
push str.SOFTWAREliebao
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x298], 0x208
mov dword [ebp - 0x294], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [ebp - 0x20c], 0
jne 0x487e15
push edi
mov edi, 0x4c4bc0
push edi
call fcn.004071c8
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00407429
pop edi
jmp 0x487e69
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x290], eax
push 3
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x290]
call fcn.004045ee
push dword [ebp - 0x290]
call fcn.004071c8
pop ecx
push eax
push dword [ebp - 0x290]
mov ecx, esi
call fcn.00407429
lea eax, [ebp - 0x28c]
cmp dword [ebp - 0x290], eax
je 0x487e69
push dword [ebp - 0x290]
call fcn.0048f255
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0048f059
leave
ret

Function at 0x487e78
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004921d0
add esp, 0xc
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x294]
push eax
push 0x4be380
push str.SOFTWAREliebao
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x298], 0x208
mov dword [ebp - 0x294], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [ebp - 0x20c], 0
jne 0x487f0e
push edi
mov edi, 0x4c4bc0
push edi
call fcn.004071c8
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00407429
pop edi
jmp 0x487f62
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x290], eax
push 3
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x290]
call fcn.004045ee
push dword [ebp - 0x290]
call fcn.004071c8
pop ecx
push eax
push dword [ebp - 0x290]
mov ecx, esi
call fcn.00407429
lea eax, [ebp - 0x28c]
cmp dword [ebp - 0x290], eax
je 0x487f62
push dword [ebp - 0x290]
call fcn.0048f255
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0048f059
leave
ret
Function at 0x4885f2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004921d0
add esp, 0xc
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x294]
push eax
push 0x4d6420
push str.SOFTWAREliebao
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x298], 0x208
mov dword [ebp - 0x294], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [ebp - 0x20c], 0
jne 0x488688
push edi
mov edi, 0x4c4bc0
push edi
call fcn.004071c8
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00407429
pop edi
jmp 0x4886dc
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x290], eax
push 3
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x290]
call fcn.004045ee
push dword [ebp - 0x290]
call fcn.004071c8
pop ecx
push eax
push dword [ebp - 0x290]
mov ecx, esi
call fcn.00407429
lea eax, [ebp - 0x28c]
cmp dword [ebp - 0x290], eax
je 0x4886dc
push dword [ebp - 0x290]
call fcn.0048f255
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0048f059
leave
ret
Function at 0x4889ee
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov esi, 0x4d5ea8
push esi
lea ecx, [edi + 0x3c]
mov dword [edi], 0x4c7f8c
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
call fcn.00407395
push esi
lea ecx, [edi + 0x54]
call fcn.00407395
push str.h_lvse
lea ecx, [edi + 0x6c]
call fcn.00407395
mov byte [edi + 0x84], bl
mov dword [edi + 0x88], ebx
mov dword [edi + 0x8c], ebx
mov dword [edi + 0x90], ebx
mov dword [edi + 0x94], ebx
mov byte [edi + 0x98], bl
mov byte [edi + 0x99], bl
mov byte [edi + 0x9a], bl
mov byte [edi + 0x9b], bl
mov dword [edi + 0x9c], ebx
mov dword [edi + 0xa0], ebx
mov dword [edi + 0xa4], ebx
mov dword [edi + 0xa8], ebx
mov dword [edi + 0xac], ebx
mov dword [edi + 0xb0], ebx
lea esi, [edi + 0xb4]
push 0xf
mov dword [esi + 0x10], ebx
pop eax
mov dword [esi + 0x14], eax
mov byte [esi], bl
mov dword [edi + 0xe0], eax
mov dword [edi + 0xdc], ebx
mov byte [edi + 0xcc], bl
mov dword [edi + 0xf8], eax
mov dword [edi + 0xf4], ebx
mov byte [edi + 0xe4], bl
mov dword [edi + 0x110], eax
mov dword [edi + 0x10c], ebx
mov byte [edi + 0xfc], bl
mov dword [edi + 0x128], eax
mov dword [edi + 0x124], ebx
lea ecx, [edi + 0x12c]
mov byte [edi + 0x114], bl
call fcn.00488854
lea ecx, [edi + 0x228]
call fcn.00488b6e
lea eax, [edi + 0x324]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x804]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x804]
push eax
call fcn.004071c8
pop ecx
push eax
lea eax, [ebp - 0x804]
push eax
mov ecx, esi
call fcn.00407429
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f059
leave
ret
Function at 0x488e95
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
push esi
xor esi, esi
push edi
mov dword [eax], esi
cmp dword [ebp + 0x14], esi
jne 0x488ea7
int3
cmp byte [ebp + 0x10], 0
je 0x488eb6
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], esi
ja 0x488eb6
int3
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x488ec1
mov eax, dword [eax]
push 0x4d457c
push eax
call fcn.00493eaf
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x488f5a
push ebx
push 2
push esi
push edi
call fcn.004942d4
push edi
call fcn.004946ac
push esi
push esi
push edi
mov ebx, eax
call fcn.004942d4
add esp, 0x1c
test ebx, ebx
jle 0x488f52
mov dl, byte [ebp + 0x10]
test dl, dl
je 0x488f0a
mov ecx, dword [ebp + 0x1c]
lea eax, [ebx + 0x18]
mov dword [ecx], eax
jmp 0x488f11
mov eax, dword [ebp + 0x1c]
mov ecx, eax
mov dword [eax], ebx
mov eax, dword [ebp + 0x18]
cmp eax, dword [ecx]
jb 0x488f52
test dl, dl
je 0x488f41
push 0x18
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0xc]
call fcn.00488f60
mov eax, dword [ebp + 0x14]
push edi
xor esi, esi
push ebx
inc esi
add eax, 0x18
push esi
push eax
call fcn.00494199
add esp, 0x20
jmp 0x488f52
push edi
xor esi, esi
push ebx
inc esi
push esi
push dword [ebp + 0x14]
call fcn.00494199
add esp, 0x10
push edi
call fcn.00493d4e
pop ecx
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4891f9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], ecx
jne 0x489207
int3
push ebx
push esi
mov esi, dword [ebp + 8]
push 0x18
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
cdq
pop ebx
idiv ebx
test eax, eax
jne 0x48921e
int3
xor ebx, ebx
jmp 0x489228
add ebx, dword [ecx + 0x10]
add ecx, 0x18
cmp ecx, dword [esi + 4]
jne 0x489222
test bl, 7
je 0x48923c
shr ebx, 3
lea ebx, [ebx*8 + 8]
push ebx
call fcn.0048f28d
push ebx
mov esi, eax
push 0
push esi
call fcn.004921d0
mov ecx, dword [ebp - 4]
add esp, 0x10
push ebx
push esi
push dword [ebp + 8]
call fcn.0048933e
push dword [ebp + 0xc]
push ebx
push 1
push esi
call fcn.00495c3e
push dword [ebp + 0xc]
call fcn.00496ab8
push esi
call fcn.0048f255
add esp, 0x18
pop esi
pop ebx
leave
ret 8

Function at 0x489280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4892f9
push edi
lea edi, [ebx + 0x54]
cmp dword [edi + 0x14], 0x10
jb 0x4892ab
mov ecx, dword [edi]
jmp 0x4892ad
mov ecx, edi
push esi
push eax
push dword [ebx + 0x64]
push 1
push ecx
call fcn.00495c3e
push dword [ebp - 0x20]
mov esi, eax
call fcn.00496ab8
add esp, 0x14
cmp esi, 8
pop esi
je 0x4892f8
push 0x4d5ea8
lea ecx, [ebp - 0x1c]
call fcn.00407395
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebx + 0x3c]
push eax
lea eax, [ebp - 0x1c]
push eax
push 6
mov ecx, ebx
call fcn.0048ccbf
lea ecx, [ebp - 0x1c]
call fcn.004073c4
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0048f059
leave
ret 4
Function at 0x489c61
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x288
mov esi, ecx
mov dword [ebp - 0x38], eax
call fcn.0048f28d
mov ebx, eax
pop ecx
lea eax, [ebp - 0x34]
push eax
push ebx
mov dword [ebp - 0x34], 0x288
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x489cbe
push ebx
call fcn.0048f255
push dword [ebp - 0x34]
call fcn.0048f28d
pop ecx
mov ebx, eax
pop ecx
lea eax, [ebp - 0x34]
push eax
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x489d24
push 8
lea eax, [ebx + 0x194]
push eax
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
call fcn.0048a7c8
push eax
mov ecx, edi
call fcn.00408fea
lea ecx, [ebp - 0x30]
call fcn.004073c4
xor eax, eax
mov byte [ebp - 0x18], 0
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0xa
lea eax, [ebp - 0x18]
push eax
lea eax, [ebx + 0x1b0]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call fcn.00499a93
mov esi, eax
push esi
call fcn.004071c8
mov ecx, dword [ebp - 0x38]
add esp, 0x10
push eax
push esi
call fcn.00407429
test ebx, ebx
je 0x489d2f
push ebx
call fcn.0048f255
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f059
leave
ret 8