joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444ce0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x444d13
push esi
call fcn.00453030
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x444d0c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x444d99
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x444d82
mov eax, dword [esi + 8]
test eax, eax
je 0x444d37
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x444d7e
cmp eax, 2
je 0x444d82
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x444d2a
cmp eax, 3
je 0x444d5d
cmp eax, 1
jne 0x444d2a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x444d2a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x444d2a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00444dc0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x444da8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00444dc0
add esp, 4
pop esi
ret

Function at 0x445640
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x445661
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x445661
mov eax, dword [eax + 0x44]
test eax, eax
je 0x445661
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x47358a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4735c2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047163e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00471616
jmp 0x4735ce
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x474c78
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x474cba
call fcn.0047a736
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x474cba
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x474cb1
xor eax, eax
jmp 0x474cc2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00474cc8
pop edi
pop esi
pop ebx
ret 4
Function at 0x47ac66
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47ac94
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47acb2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047abcc
jmp 0x47acb2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47acb2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047abcc
test edi, edi
mov eax, edi
jne 0x47ac9c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40148e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x455610]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x401523
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014e0
cmp dword [ebp + 0x10], ebx
jne 0x401517
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.0040148e
test eax, eax
jne 0x4014f2
push edi
lea eax, [ebp - 0x10c]
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.0040606b
cmp eax, ebx
je 0x40152a
push ebx
push dword [0x455610]
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 [0x455610], ebx
jne 0x401520
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401520
jmp 0x401523
Function at 0x405a37
Capabilities:
Create process on windows

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

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

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

Function at 0x405c31
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
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_CreateFileA]
ret 0xc

Function at 0x405c60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
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 byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405ca4
test edi, edi
jne 0x405c6b
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405c9e

Function at 0x405ca8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405d19
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x2004
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405d08
cmp dword [ebp + 0x14], 1
je 0x405d0a
cmp dword [ebp + 0x14], 2
je 0x405d0a
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x2003], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405e8a
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x405eaf
mov eax, dword [0x40c058]
cmp eax, 0xffffffff
je 0x405ea6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40c058], 0xffffffff
jmp 0x405f2c
cmp dword [0x44c89c], ebx
je 0x405f2c
cmp byte [0x4510c0], bl
push esi
je 0x405ef7
cmp dword [0x40c058], 0xffffffff
jne 0x405f00
mov esi, 0x4510c0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 4
push 0x40000000
push esi
call fcn.00405c31
cmp eax, 0xffffffff
mov dword [0x40c058], eax
je 0x405f2b
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40c058], 0xffffffff
je 0x405f2b
push 0x409d94
mov esi, 0x44c8a0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea ecx, [ebp + 8]
push ecx
push eax
push esi
push dword [0x40c058]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4
Function at 0x406491
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4465b8
push esi
call fcn.00405dc1
push esi
call fcn.00405b42
mov edi, eax
test edi, edi
jne 0x4064b2
xor eax, eax
jmp 0x40650a
push edi
call fcn.00405df0
test byte [0x455588], 0x80
je 0x4064cb
mov al, byte [edi]
test al, al
je 0x4064ae
cmp al, 0x5c
je 0x4064ae
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x4064eb
push esi
call fcn.00406044
test eax, eax
je 0x4064e5
test byte [eax], 0x10
je 0x40650f
push esi
call fcn.0040646a
push esi
call ebx
cmp eax, edi
jg 0x4064d6
push esi
call fcn.0040643d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x406509
Function at 0x40676d
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x409f04
mov edi, 0x4485c0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x1c]
test esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ebx, 0x400
je 0x4067bc
push 1
push 0
push esi
call fcn.00405c31
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x4068f5
cmp eax, ebx
jg 0x4068f5
push ebx
mov esi, 0x44af08
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x4068f5
cmp eax, ebx
jg 0x4068f5
push esi
push edi
push str._s_s_r_n
push 0x448b00
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x455534]
push dword [eax + 0x13c]
push esi
call fcn.00406513
push 4
push 0xc0000000
push esi
call fcn.00405c31
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x4068f5
push 0
push ebp
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
test esi, esi
je 0x4068ee
push 0
lea eax, [esp + 0x14]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4068ee
cmp edi, dword [esp + 0x10]
jne 0x4068ee
push str._Rename__r_n
push esi
call fcn.00405b97
test eax, eax
jne 0x406884
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4068b9
push 0x409ef8
add eax, 0xa
push eax
call fcn.00405b97
mov ebp, eax
test ebp, ebp
je 0x4068b5
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4068a6
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4068a0
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x4068bb
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
push 0x448b00
add eax, esi
push eax
call fcn.00405bed
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x406ef7
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.0040883f
add esp, 0xc
push ebx
push ebx
push 3
mov eax, 0x409b0f
push eax
push eax
push dword [ebp + 0x78]
push dword [ebp + 0x60]
call fcn.00406e5c
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov edi, dword [ebp + 0x74]
mov dword [ebp + 0x48], eax
je 0x407089
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 0x40707b
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 0x407071
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 0x407071
cmp byte [ebp - 0x3c], 0x32
jne 0x407071
cmp byte [ebp - 0x3b], 0x30
jne 0x407071
cmp byte [ebp - 0x3a], 0x30
jne 0x407071
mov eax, dword [ebp + 0x70]
mov dword [eax], ebx
mov dword [edi], ebx
mov dword [ebp + 0x54], esi
jmp 0x407054
mov ecx, dword [ebp + 0x54]
cmp ecx, ebx
jbe 0x40706a
mov eax, dword [edi]
cmp eax, ebx
jne 0x407022
push ecx
call fcn.00406e7c
jmp 0x407030
add eax, ecx
push eax
mov eax, dword [ebp + 0x70]
push dword [eax]
call fcn.00406ebd
pop ecx
pop ecx
mov ecx, dword [ebp + 0x70]
mov dword [ecx], eax
mov eax, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x407071
push dword [ebp + 0x54]
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [edi]
add ecx, eax
push ecx
call fcn.00405bed
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 0x40700d
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 0x407090
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 0x40709a
Capabilities:
Encode data using xor

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

Function at 0x4070c5
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 0x4071c9
push 3
cdq
pop ecx
idiv ecx
cmp eax, 0x40000000
jge 0x4071c9
cmp edi, 2
mov ecx, dword [ebp + 0x10]
jle 0x40715f
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 0x407107
pop ebx
test edi, edi
je 0x4071b4
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 0x4071a3
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 0x4071af
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 0x4071c2
mov edx, ecx
sub edx, dword [ebp + 0x10]
mov dword [eax], edx
mov byte [ecx], 0
xor eax, eax
jmp 0x4071cc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret
Function at 0x40727f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xa0
push esi
push 0x98
lea eax, [ebp - 0x28]
push 0
push eax
mov dword [ebp - 0x2c], 0x9c
call fcn.0040883f
mov esi, dword [ebp + 0x7c]
and dword [ebp + 0x70], 0
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x407322
cmp dword [ebp - 0x28], 6
movzx eax, byte [ebp + 0x6e]
mov dword [ebp + 0x70], eax
jb 0x4072fb
push str.GetProductInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4072fb
lea ecx, [ebp + 0x70]
push ecx
movzx ecx, word [ebp + 0x6a]
push ecx
movzx ecx, word [ebp + 0x68]
push ecx
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push eax
push dword [ebp + 0x70]
movzx eax, word [ebp + 0x68]
push dword [ebp - 0x20]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
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 0x40732a
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.00406e7c
mov esi, eax
cmp esi, ebx
pop ecx
je 0x4073ea
push dword [ebp - 4]
push ebx
push esi
call fcn.0040883f
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 0x4073a0
push esi
call fcn.00406e9c
push dword [ebp - 4]
call fcn.00406e7c
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4073ea
push dword [ebp - 4]
push ebx
push esi
call fcn.0040883f
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, ebx
mov edi, esi
jne 0x4073df
cmp dword [esi + 0x1a0], 6
jne 0x4073c5
push str.vmware
lea eax, [esi + 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x4073cd
mov esi, dword [esi]
cmp esi, ebx
jne 0x4073a6
jmp 0x4073df
push 8
add esi, 0x194
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.00405bed
cmp edi, ebx
je 0x4073ea
push edi
call fcn.00406e9c
pop ecx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4073f5
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040732a
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 0x40a164
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 0x407438
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.0040883f
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 0x40754a
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x40754a
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_RegOpenKeyExA]
test eax, eax
jne 0x4074f3
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_RegQueryValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
jg 0x407518
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x40754a
mov eax, dword [ebp - 0x18]
cdq
mov ecx, 0xf4240
idiv ecx
cmp eax, ebx
mov dword [ebp - 4], eax
jle 0x40754a
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 0x4078a5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x44b314], 0
jne 0x4078e0
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 0x4078b9
mov dword [ecx*4 + 0x44b310], eax
inc ecx
cmp ecx, 0x100
jl 0x4078b4
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40790d
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 + 0x44b310]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4078ee
not eax
pop ebp
ret 0xc