joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4033f9
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x4301e4]
sub esi, dword [0x4341f0]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x473e20], eax
jle 0x403557
push dword [0x4341ec]
call fcn.004033e2
push ebx
push ebx
push dword [0x4341f0]
push dword [0x40c014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x4301e0], esi
mov dword [0x420154], ebx
mov ebp, 0x4281e0
mov eax, dword [0x4341e8]
sub eax, dword [0x4341ec]
mov edi, 0x4000
cmp eax, edi
jg 0x40346e
mov edi, eax
push edi
mov esi, 0x4301e8
push esi
call fcn.004033b0
test eax, eax
je 0x403569
add dword [0x4341ec], edi
mov dword [0x428170], esi
mov dword [0x428174], edi
cmp dword [0x473ddc], ebx
je 0x4034c5
cmp dword [0x473ea0], ebx
jne 0x4034c5
mov eax, dword [0x4301e0]
sub eax, dword [0x4301e4]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x4341f0]
mov dword [0x420154], eax
call fcn.0040330e
pop ecx
mov ecx, 0x428158
mov dword [0x428178], ebp
mov dword [0x42817c], 0x8000
call fcn.00407e30
test eax, eax
jl 0x40356e
mov esi, dword [0x428178]
sub esi, ebp
je 0x403523
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40c014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403573
cmp esi, dword [esp + 0x10]
jne 0x403573
add dword [0x4341f0], esi
cmp dword [0x428174], ebx
jne 0x403494
jmp 0x40352f
cmp dword [0x428174], ebx
jne 0x40356e
cmp edi, ebx
je 0x40356e
mov eax, dword [0x4301e4]
mov ecx, eax
sub ecx, dword [0x4341f0]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x403458
push ebx
push ebx
push eax
push dword [0x40c014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.0040330e
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x403561
push 0xfffffffffffffffd
pop eax
jmp 0x403561
push 0xfffffffffffffffe
jmp 0x403570
Function at 0x403577
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x4035a3
mov ecx, dword [0x473e18]
push edi
add eax, ecx
push edi
push eax
push dword [0x40c014]
mov dword [0x4301e4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.004033f9
cmp eax, edi
jl 0x40369c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40c014]
call ebx
test eax, eax
je 0x403698
cmp dword [ebp - 4], esi
jne 0x403698
push dword [ebp + 8]
add dword [0x4301e4], esi
call fcn.004033f9
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x40369b
cmp dword [ebp + 0x10], edi
jne 0x403667
cmp dword [ebp + 8], edi
jle 0x403693
mov esi, 0x4301e8
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403617
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40c014]
call ebx
test eax, eax
je 0x403698
cmp edi, dword [ebp - 4]
jne 0x403698
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403663
cmp dword [ebp + 0x14], edi
jne 0x403663
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x4301e4], eax
cmp dword [ebp + 8], 0
jg 0x40360a
jmp 0x403693
push 0xfffffffffffffffe
jmp 0x40369a
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403672
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40c014]
call ebx
test eax, eax
je 0x403698
mov eax, dword [ebp - 4]
add dword [0x4301e4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40369b
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x405dc9
Capabilities:
Create process on windows

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

Function at 0x405fb9
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 0x405fd6
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x405fd9
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 0x406008
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 [0x40a6f4]
mov dword [ebp - 8], eax
mov eax, dword [0x40a6f8]
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 0x406058
test edi, edi
jne 0x406015
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x406052

Function at 0x40605c
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 0x4060d0
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 0x4060bd
cmp dword [ebp + 0x14], 1
je 0x4060c0
cmp dword [ebp + 0x14], 2
je 0x4060c0
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 0x40626d
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 0x406296
mov eax, dword [0x40c058]
cmp eax, 0xffffffff
je 0x40628a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40c058], 0xffffffff
jmp 0x406341
cmp dword [0x462538], ebx
je 0x406341
cmp word [0x46b560], bx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x40630d
cmp dword [0x40c058], 0xffffffff
jne 0x406316
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.00405fd9
cmp eax, 0xffffffff
mov dword [0x40c058], eax
je 0x40633f
cmp dword [ebp + 8], 0xffffffff
jne 0x406302
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 0x40633f
push 0x40a710
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 0x4068fa
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4582d0
push esi
call fcn.0040618f
push esi
call fcn.00405ee2
mov edi, eax
test edi, edi
jne 0x40691b
xor eax, eax
jmp 0x406979
push edi
call fcn.004061be
test byte [0x473e28], 0x80
je 0x406938
movzx eax, word [edi]
test ax, ax
je 0x406917
cmp ax, 0x5c
je 0x406917
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x40695a
push esi
call fcn.0040645b
test eax, eax
je 0x406954
test byte [eax], 0x10
je 0x40697e
push esi
call fcn.004068ce
push esi
call ebx
cmp eax, edi
jg 0x406945
push esi
call fcn.0040689f
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 0x406978
Function at 0x406c13
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x40a920
mov ebx, 0x45c2d8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
cmp edi, ebp
mov esi, 0x400
je 0x406c61
push 1
push ebp
push edi
call fcn.00405fd9
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 0x406dd8
cmp eax, esi
jg 0x406dd8
push esi
mov edi, 0x461930
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406dd8
cmp eax, esi
jg 0x406dd8
push ebp
push ebp
push esi
push 0x45cad8
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x406dd8
push ebp
push ebp
push esi
mov esi, 0x45d128
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x406dd8
push esi
push 0x45cad8
push str._s_s_r_n
push 0x45d528
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.00406982
push 4
push 0xc0000000
push edi
call fcn.00405fd9
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x406dd8
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 0x406dce
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 0x406dce
cmp edi, dword [esp + 0x10]
jne 0x406dce
push str._Rename__r_n
push esi
call fcn.00405f3f
cmp eax, ebp
jne 0x406d65
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406d96
push 0x40a914
add eax, 0xa
push eax
call fcn.00405f3f
mov ebp, eax
test ebp, ebp
je 0x406d94
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406d87
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406d81
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x406d98
xor ebp, ebp
mov eax, edi
push ebx
push 0x45d528
add eax, esi
push eax
call fcn.00405f95
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 0x4073d9
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.0040888c
add esp, 0xc
push ebx
push ebx
push 3
mov eax, 0x40ac45
push eax
push eax
push dword [ebp + 0x78]
push dword [ebp + 0x60]
call fcn.0040733e
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov edi, dword [ebp + 0x74]
mov dword [ebp + 0x48], eax
je 0x40756b
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 0x40755d
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 0x407553
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 0x407553
cmp byte [ebp - 0x3c], 0x32
jne 0x407553
cmp byte [ebp - 0x3b], 0x30
jne 0x407553
cmp byte [ebp - 0x3a], 0x30
jne 0x407553
mov eax, dword [ebp + 0x70]
mov dword [eax], ebx
mov dword [edi], ebx
mov dword [ebp + 0x54], esi
jmp 0x407536
mov ecx, dword [ebp + 0x54]
cmp ecx, ebx
jbe 0x40754c
mov eax, dword [edi]
cmp eax, ebx
jne 0x407504
push ecx
call fcn.0040735e
jmp 0x407512
add eax, ecx
push eax
mov eax, dword [ebp + 0x70]
push dword [eax]
call fcn.0040739f
pop ecx
pop ecx
mov ecx, dword [ebp + 0x70]
mov dword [ecx], eax
mov eax, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x407553
push dword [ebp + 0x54]
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [edi]
add ecx, eax
push ecx
call fcn.00405f95
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 0x4074ef
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 0x407572
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 0x40757c
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jle 0x4075a5
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 0x407586
pop edi
pop esi
ret

Function at 0x4075a7
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 0x4076ab
push 3
cdq
pop ecx
idiv ecx
cmp eax, 0x40000000
jge 0x4076ab
cmp edi, 2
mov ecx, dword [ebp + 0x10]
jle 0x407641
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 0x4075e9
pop ebx
test edi, edi
je 0x407696
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 0x407685
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 0x407691
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 0x4076a4
mov edx, ecx
sub edx, dword [ebp + 0x10]
mov dword [eax], edx
mov byte [ecx], 0
xor eax, eax
jmp 0x4076ae
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret
Function at 0x407761
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.0040888c
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 0x40781f
cmp dword [ebp - 0xa8], 6
movzx eax, byte [ebp + 0x6e]
mov dword [ebp + 0x70], eax
jb 0x4077ef
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 0x4077ef
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 0x407827
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.0040735e
mov esi, eax
cmp esi, ebx
pop ecx
je 0x4078e7
push dword [ebp - 4]
push ebx
push esi
call fcn.0040888c
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 0x40789d
push esi
call fcn.0040737e
push dword [ebp - 4]
call fcn.0040735e
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4078e7
push dword [ebp - 4]
push ebx
push esi
call fcn.0040888c
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, ebx
mov edi, esi
jne 0x4078dc
cmp dword [esi + 0x1a0], 6
jne 0x4078c2
push str.vmware
lea eax, [esi + 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x4078ca
mov esi, dword [esi]
cmp esi, ebx
jne 0x4078a3
jmp 0x4078dc
push 8
add esi, 0x194
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.00405f95
cmp edi, ebx
je 0x4078e7
push edi
call fcn.0040737e
pop ecx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4078f2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00407827
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 0x40acc0
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
Function at 0x407935
Capabilities:
Get cpu information
Get memory capacity
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push edi
push 8
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
push 0x3c
mov dword [ebp - 0x3c], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x78]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x7c], ebx
call fcn.0040888c
mov edi, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 8], ebx
mov byte [edi], bl
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jle 0x407a47
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x407a47
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x70]
shrd eax, ecx, 0x14
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push 0x80000002
shr ecx, 0x14
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4079f0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push str.MHz
push dword [ebp - 8]
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
jg 0x407a15
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x407a47
mov eax, dword [ebp - 0x18]
cdq
mov ecx, 0xf4240
idiv ecx
cmp eax, ebx
mov dword [ebp - 4], eax
jle 0x407a47
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call esi
mov dword [ebp + 8], eax
shl dword [ebp + 8], 0x10
push ebx
call esi
or eax, dword [ebp + 8]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 0x10]
push str._d__d__d__u
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x407da2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46213c], 0
jne 0x407ddd
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x407db6
mov dword [ecx*4 + 0x462138], eax
inc ecx
cmp ecx, 0x100
jl 0x407db1
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407e0a
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x462138]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x407deb
not eax
pop ebp
ret 0xc

Function at 0x404627
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x40602c]
test eax, eax
je 0x404666
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404666
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404666
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404666
cmp dword [ecx + 0x74], 0xe
jbe 0x404666
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret