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

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x4269ac]
sub esi, dword [0x42a9b8]
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 [0x44a8c0], eax
jle 0x40339d
push dword [0x42a9b4]
call fcn.00403228
push ebx
push ebx
push dword [0x42a9b8]
push dword [0x40c014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x4269a8], esi
mov dword [0x41691c], ebx
mov ebp, 0x41e9a8
mov eax, dword [0x42a9b0]
sub eax, dword [0x42a9b4]
mov edi, 0x4000
cmp eax, edi
jg 0x4032b4
mov edi, eax
push edi
mov esi, 0x4269b0
push esi
call fcn.004031f6
test eax, eax
je 0x4033af
add dword [0x42a9b4], edi
mov dword [0x41e938], esi
mov dword [0x41e93c], edi
cmp dword [0x44a874], ebx
je 0x40330b
cmp dword [0x44a940], ebx
jne 0x40330b
mov eax, dword [0x4269a8]
sub eax, dword [0x4269ac]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x42a9b8]
mov dword [0x41691c], eax
call fcn.00403157
pop ecx
mov ecx, 0x41e920
mov dword [0x41e940], ebp
mov dword [0x41e944], 0x8000
call fcn.00407a69
test eax, eax
jl 0x4033b4
mov esi, dword [0x41e940]
sub esi, ebp
je 0x403369
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 0x4033b9
cmp esi, dword [esp + 0x10]
jne 0x4033b9
add dword [0x42a9b8], esi
cmp dword [0x41e93c], ebx
jne 0x4032da
jmp 0x403375
cmp dword [0x41e93c], ebx
jne 0x4033b4
cmp edi, ebx
je 0x4033b4
mov eax, dword [0x4269ac]
mov ecx, eax
sub ecx, dword [0x42a9b8]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x40329e
push ebx
push ebx
push eax
push dword [0x40c014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00403157
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x4033a7
push 0xfffffffffffffffd
pop eax
jmp 0x4033a7
push 0xfffffffffffffffe
jmp 0x4033b6
Function at 0x4033bd
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 0x4033e9
mov ecx, dword [0x44a8b8]
push edi
add eax, ecx
push edi
push eax
push dword [0x40c014]
mov dword [0x4269ac], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.0040323f
cmp eax, edi
jl 0x4034e2
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 0x4034de
cmp dword [ebp - 4], esi
jne 0x4034de
push dword [ebp + 8]
add dword [0x4269ac], esi
call fcn.0040323f
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x4034e1
cmp dword [ebp + 0x10], edi
jne 0x4034ad
cmp dword [ebp + 8], edi
jle 0x4034d9
mov esi, 0x4269b0
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x40345d
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 0x4034de
cmp edi, dword [ebp - 4]
jne 0x4034de
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 0x4034a9
cmp dword [ebp + 0x14], edi
jne 0x4034a9
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x4269ac], eax
cmp dword [ebp + 8], 0
jg 0x403450
jmp 0x4034d9
push 0xfffffffffffffffe
jmp 0x4034e0
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4034b8
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 0x4034de
mov eax, dword [ebp - 4]
add dword [0x4269ac], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x4034e1
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x405b6d
Capabilities:
Create process on windows

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

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

Function at 0x405d67
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 0x405d96
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 0x405dda
test edi, edi
jne 0x405da1
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405dd4

Function at 0x405dde
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 0x405e4f
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 0x405e3e
cmp dword [ebp + 0x14], 1
je 0x405e40
cmp dword [ebp + 0x14], 2
je 0x405e40
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 0x405fc0
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 0x405fe5
mov eax, dword [0x40c058]
cmp eax, 0xffffffff
je 0x405fdc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40c058], 0xffffffff
jmp 0x406062
cmp dword [0x441bc8], ebx
je 0x406062
cmp byte [0x446400], bl
push esi
je 0x40602d
cmp dword [0x40c058], 0xffffffff
jne 0x406036
mov esi, 0x446400
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 4
push 0x40000000
push esi
call fcn.00405d67
cmp eax, 0xffffffff
mov dword [0x40c058], eax
je 0x406061
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40c058], 0xffffffff
je 0x406061
push 0x409db0
mov esi, 0x441be0
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 0x4065c7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43ca70
push esi
call fcn.00405ef7
push esi
call fcn.00405c78
mov edi, eax
test edi, edi
jne 0x4065e8
xor eax, eax
jmp 0x406640
push edi
call fcn.00405f26
test byte [0x44a8c8], 0x80
je 0x406601
mov al, byte [edi]
test al, al
je 0x4065e4
cmp al, 0x5c
je 0x4065e4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x406621
push esi
call fcn.0040617a
test eax, eax
je 0x40661b
test byte [eax], 0x10
je 0x406645
push esi
call fcn.004065a0
push esi
call ebx
cmp eax, edi
jg 0x40660c
push esi
call fcn.00406573
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 0x40663f
Function at 0x4068a3
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x409f20
mov edi, 0x43ea78
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 0x4068f2
push 1
push 0
push esi
call fcn.00405d67
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x406a2b
cmp eax, ebx
jg 0x406a2b
push ebx
mov esi, 0x4413c0
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x406a2b
cmp eax, ebx
jg 0x406a2b
push esi
push edi
push str._s_s_r_n
push 0x43efb8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x44a874]
push dword [eax + 0x13c]
push esi
call fcn.00406649
push 4
push 0xc0000000
push esi
call fcn.00405d67
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x406a2b
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 0x406a24
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 0x406a24
cmp edi, dword [esp + 0x10]
jne 0x406a24
push str._Rename__r_n
push esi
call fcn.00405ccd
test eax, eax
jne 0x4069ba
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4069ef
push 0x409f14
add eax, 0xa
push eax
call fcn.00405ccd
mov ebp, eax
test ebp, ebp
je 0x4069eb
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4069dc
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4069d6
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x4069f1
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
push 0x43efb8
add eax, esi
push eax
call fcn.00405d23
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 0x40702d
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.004084c5
add esp, 0xc
push ebx
push ebx
push 3
mov eax, 0x409b6f
push eax
push eax
push dword [ebp + 0x78]
push dword [ebp + 0x60]
call fcn.00406f92
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov edi, dword [ebp + 0x74]
mov dword [ebp + 0x48], eax
je 0x4071bf
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 0x4071b1
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 0x4071a7
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 0x4071a7
cmp byte [ebp - 0x3c], 0x32
jne 0x4071a7
cmp byte [ebp - 0x3b], 0x30
jne 0x4071a7
cmp byte [ebp - 0x3a], 0x30
jne 0x4071a7
mov eax, dword [ebp + 0x70]
mov dword [eax], ebx
mov dword [edi], ebx
mov dword [ebp + 0x54], esi
jmp 0x40718a
mov ecx, dword [ebp + 0x54]
cmp ecx, ebx
jbe 0x4071a0
mov eax, dword [edi]
cmp eax, ebx
jne 0x407158
push ecx
call fcn.00406fb2
jmp 0x407166
add eax, ecx
push eax
mov eax, dword [ebp + 0x70]
push dword [eax]
call fcn.00406ff3
pop ecx
pop ecx
mov ecx, dword [ebp + 0x70]
mov dword [ecx], eax
mov eax, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x4071a7
push dword [ebp + 0x54]
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [edi]
add ecx, eax
push ecx
call fcn.00405d23
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 0x407143
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 0x4071c6
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 0x4071d0
Capabilities:
Encode data using xor

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

Function at 0x4071fb
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 0x4072ff
push 3
cdq
pop ecx
idiv ecx
cmp eax, 0x40000000
jge 0x4072ff
cmp edi, 2
mov ecx, dword [ebp + 0x10]
jle 0x407295
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 0x40723d
pop ebx
test edi, edi
je 0x4072ea
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 0x4072d9
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 0x4072e5
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 0x4072f8
mov edx, ecx
sub edx, dword [ebp + 0x10]
mov dword [eax], edx
mov byte [ecx], 0
xor eax, eax
jmp 0x407302
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret
Function at 0x4073b5
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.004084c5
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 0x407458
cmp dword [ebp - 0x28], 6
movzx eax, byte [ebp + 0x6e]
mov dword [ebp + 0x70], eax
jb 0x407431
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 0x407431
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 0x407460
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.00406fb2
mov esi, eax
cmp esi, ebx
pop ecx
je 0x407520
push dword [ebp - 4]
push ebx
push esi
call fcn.004084c5
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 0x4074d6
push esi
call fcn.00406fd2
push dword [ebp - 4]
call fcn.00406fb2
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x407520
push dword [ebp - 4]
push ebx
push esi
call fcn.004084c5
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, ebx
mov edi, esi
jne 0x407515
cmp dword [esi + 0x1a0], 6
jne 0x4074fb
push str.vmware
lea eax, [esi + 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x407503
mov esi, dword [esi]
cmp esi, ebx
jne 0x4074dc
jmp 0x407515
push 8
add esi, 0x194
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.00405d23
cmp edi, ebx
je 0x407520
push edi
call fcn.00406fd2
pop ecx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40752b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00407460
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 0x40a184
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 0x40756e
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.004084c5
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 0x407680
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x407680
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 0x407629
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 0x40764e
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x407680
mov eax, dword [ebp - 0x18]
cdq
mov ecx, 0xf4240
idiv ecx
cmp eax, ebx
mov dword [ebp - 4], eax
jle 0x407680
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 0x4079db
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4417cc], 0
jne 0x407a16
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 0x4079ef
mov dword [ecx*4 + 0x4417c8], eax
inc ecx
cmp ecx, 0x100
jl 0x4079ea
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407a43
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 + 0x4417c8]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x407a24
not eax
pop ebp
ret 0xc
Function at 0x401440
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x40693b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
lea eax, [esp + 8]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [esp]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 4]
mov dword [esp + 0x1a0], 0
push ecx
push 0x10
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0x10
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0xffffffffffffffff
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [esp]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4014ed
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x4014ed
push esi
mov esi, dword [eax]
lea ecx, [esp + 4]
mov dword [esp + 0x1a4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop esi
mov ecx, dword [esp + 0x198]
mov dword fs:[0], ecx
add esp, 0x1a4
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [esp]
mov dword [esp + 0x1a0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x198]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x1a4
ret