joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40677e
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0x104
mov eax, 0x442f03
call fcn.0042bd2c
mov edx, dword [ebp + 8]
xor esi, esi
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 4], esi
mov edi, dword [ecx + 8]
mov dword [ebp - 0xbc], ecx
test edi, edi
jne 0x4067e7
push 0x80090003
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], str.Encrypt_1_:_Key_is_not_valid
push eax
lea ecx, [ebp - 0xec]
call fcn.004282a1
mov dword [ebp - 0xec], vtable.WinAESException.0
lea eax, [ebp - 0xec]
push 0x45876c
push eax
call fcn.0042b404
test edx, edx
jne 0x406829
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], str.Encrypt_1_:_Buffer_is_NULL
push eax
lea ecx, [ebp - 0xc8]
call fcn.004282a1
mov dword [ebp - 0xc8], vtable.WinAESException.0
lea eax, [ebp - 0xc8]
push 0x45876c
jmp 0x4067e1
mov eax, dword [ebp + 0x10]
shr eax, 4
inc eax
shl eax, 4
cmp dword [ebp + 0xc], eax
jae 0x406879
push 0x80090028
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], str.Encrypt_1_:_Buffer_is_too_small
push eax
lea ecx, [ebp - 0xe0]
call fcn.004282a1
mov dword [ebp - 0xe0], vtable.WinAESException.0
lea eax, [ebp - 0xe0]
push 0x45876c
jmp 0x4067e1
cmp byte [ecx + 0x10], 0
jne 0x4068c0
push 0x80090027
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], str.Encrypt_1_:_IV_has_not_been_set
push eax
lea ecx, [ebp - 0xf8]
call fcn.004282a1
mov dword [ebp - 0xf8], vtable.WinAESException.0
lea eax, [ebp - 0xf8]
push 0x45876c
jmp 0x4067e1
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push edx
push esi
push 1
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ecx, eax
test ecx, ecx
jne 0x4069f6
push 0x98
lea eax, [ebp - 0xb0]
push esi
push eax
call fcn.0042b470
pop ecx
lea ecx, [ebp - 0xb0]
call fcn.00407803
mov edx, str.Encrypt_1_:_CryptEncrypt_failed__
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb0]
call fcn.00409575
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004071e6
mov edx, eax
lea ecx, [ebp - 0xb0]
call fcn.00409575
mov edx, str.__0x
lea ecx, [ebp - 0xb0]
call fcn.00409575
mov edi, eax
test edi, edi
jne 0x406949
mov ecx, esi
jmp 0x406950
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.00407736
mov edx, 0x44d71c
mov ecx, eax
call fcn.00409575
lea eax, [ebp - 0x110]
mov dword [ebx], esi
push eax
lea ecx, [ebp - 0xb0]
call fcn.004078cc
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x40699a
mov eax, dword [eax]
mov dword [ebp - 0xb8], eax
lea ecx, [ebp - 0xd4]
lea eax, [ebp - 0xb8]
push eax
call fcn.004282a1
mov dword [ebp - 0xd4], vtable.WinAESException.0
lea eax, [ebp - 0xd4]
push 0x45876c
jmp 0x4067e1
mov eax, dword [ebp - 0x18]
mov dword [ebx], eax
xor eax, eax
test ecx, ecx
setne al
call fcn.0042bc7e
ret 0x10
Function at 0x4161ac
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44426b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x45a620]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x45a620]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
xor ebx, ebx
lea eax, [esp + 0xac]
mov dword [esp + 0x250], ebx
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor ecx, ecx
movzx ebx, bl
inc ecx
test eax, eax
cmove ebx, ecx
mov byte [esp + 0x13], bl
call fcn.004160e4
mov edi, eax
call fcn.0040b725
cmp dword [eax + 0x10], 0
je 0x416312
cmp dword [eax + 0x28], 0
je 0x416312
lea ecx, [esp + 0x44]
push ecx
mov ecx, eax
call fcn.0040b6ee
lea ecx, [edi + 0x18]
mov byte [esp + 0x250], 1
cmp ecx, eax
je 0x41625c
push 0xffffffffffffffff
push 0
push eax
call fcn.00402c0e
push 0
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x258], 0
call fcn.00402d99
call fcn.0041de55
mov ecx, eax
call fcn.0041de9e
test al, al
je 0x416312
call fcn.0041e13f
test al, al
je 0x416312
call fcn.0041e3b6
test al, al
je 0x416312
call fcn.00405394
test al, al
jne 0x416312
call fcn.00405404
test al, al
jne 0x416312
mov al, byte [edi + 0x48]
test al, al
je 0x4162dc
call fcn.004160e4
push 0x451d88
lea esi, [eax + 0x30]
call fcn.004012d5
pop ecx
push eax
push 0x451d88
push dword [esi + 0x10]
push ecx
mov ecx, esi
call fcn.00404e39
test eax, eax
jne 0x416312
call fcn.0040a6bf
push 0x451d88
lea ecx, [esp + 0x30]
call fcn.0040276c
lea ecx, [edi + 0x30]
mov byte [esp + 0x250], 2
lea eax, [esp + 0x2c]
cmp ecx, eax
je 0x41630c
push 0xffffffffffffffff
push 0
push eax
call fcn.00402c0e
lea ecx, [esp + 0x2c]
jmp 0x416341
push 0x45260c
lea ecx, [esp + 0x18]
call fcn.0040276c
lea ecx, [edi + 0x30]
mov byte [esp + 0x250], 3
lea eax, [esp + 0x14]
cmp ecx, eax
je 0x41633d
push 0xffffffffffffffff
push 0
push eax
call fcn.00402c0e
lea ecx, [esp + 0x14]
push 0
push 1
mov byte [esp + 0x258], 0
call fcn.00402d99
call fcn.00419c86
push 0x4c
xor edi, edi
lea eax, [esp + 0x60]
push edi
push eax
call fcn.0042b470
add esp, 0xc
lea ecx, [esp + 0x5c]
cmp dword [0x45cfcc], 8
mov esi, 0x45cfb8
mov eax, 0x45cfa0
cmovae esi, dword [0x45cfb8]
cmp dword [0x45cfb4], 8
cmovae eax, dword [0x45cfa0]
push eax
call fcn.00402874
push esi
lea ecx, [esp + 0x78]
mov byte [esp + 0x254], 4
call fcn.00402874
xor eax, eax
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], edi
mov word [esp + 0x8c], ax
mov dword [esp + 0xa4], edi
lea ecx, [esp + 0x5c]
mov byte [esp + 0x250], 5
call fcn.0040b7b3
cmp dword [esp + 0xa4], edi
je 0x4163fa
push 0x1388
push dword [esp + 0xa8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.0041993a
push edi
push 1
lea ecx, [esp + 0x94]
call fcn.00403476
push edi
push 1
lea ecx, [esp + 0x7c]
call fcn.00403476
push edi
push 1
lea ecx, [esp + 0x64]
call fcn.00403476
test bl, bl
je 0x416430
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.004273bf
mov esp, ebp
pop ebp
ret
Function at 0x416577
Capabilities:
Connect socket
Get socket status
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x45a620]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 1
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
push ebx
push 1
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x416662
push 2
pop eax
mov word [ebp - 0x20], ax
lea eax, [esi + 0x24]
cmp dword [eax + 0x14], 0x10
jb 0x4165bf
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x416662
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call fcn.0042b580
add esp, 0xc
push 0x50
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
lea eax, [ebp - 8]
push eax
push 0x8004667e
push dword [esi + 4]
mov dword [ebp - 8], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x10
lea eax, [ebp - 0x20]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x416662
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x416662
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x10]
push ecx
push ebx
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x120], eax
push ecx
push ebx
push eax
mov dword [ebp - 0x124], 1
mov dword [ebp - 0x10], 5
mov dword [ebp - 0xc], ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x416662
mov byte [esi], 1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x1c], eax
xor ecx, ebp
mov dword [esi + 0x20], eax
pop esi
pop ebx
call fcn.004273bf
mov esp, ebp
pop ebp
ret
Function at 0x41703a
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x45a620]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
inc ebx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi], 0
jne 0x41705e
xor al, al
jmp 0x4170c8
call fcn.0041701a
xor eax, eax
mov dword [ebp - 0x10], edi
push eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x4170a2
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x3e5
je 0x4170a2
call edi
push 0
push 0x1388
push ebx
lea eax, [esi + 0x20]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
test eax, eax
je 0x4170c6
push dword [esi + 4]
xor bl, bl
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [esi], bl
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004273bf
mov esp, ebp
pop ebp
ret 4

Function at 0x4170db
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x45a620]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov bl, 1
cmp byte [esi], 0
jne 0x417100
xor al, al
jmp 0x417183
cmp dword [eax + 0x14], 0x10
jb 0x41710a
mov ecx, dword [eax]
jmp 0x41710c
mov ecx, eax
mov eax, dword [eax + 0x10]
and dword [ebp - 8], 0
mov dword [ebp - 0xc], ecx
mov ecx, esi
mov dword [ebp - 0x10], eax
call fcn.0041701a
push 0
lea eax, [esi + 8]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x417153
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
movzx ebx, bl
cmp eax, 0x3e5
cmovne ebx, ecx
push 0
push 0x1388
push 1
lea eax, [esi + 0x20]
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
xor ecx, ecx
movzx ebx, bl
test eax, eax
cmovne ebx, ecx
test bl, bl
jne 0x417181
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [esi], bl
mov al, bl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004273bf
mov esp, ebp
pop ebp
ret 4
Function at 0x419ffd
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x1c
mov eax, 0x44496d
call fcn.0042bc8d
mov esi, ecx
mov eax, dword [0x45d010]
xor ebx, ebx
inc ebx
test bl, al
jne 0x41a040
or eax, ebx
mov dword [0x45d010], eax
and dword [ebp - 4], 0
mov ecx, 0x45d014
push 0x44d0e4
call fcn.00402874
push 0x44578c
call fcn.00427bf8
or dword [ebp - 4], 0xffffffff
pop ecx
cmp dword [esi + 0x14], 8
jb 0x41a04a
mov eax, dword [esi]
jmp 0x41a04c
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41a099
push ecx
push ecx
mov ecx, esi
call fcn.0040b94c
cmp eax, 0xffffffff
je 0x41a088
push eax
push ecx
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0040b9e4
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00419ffd
push 0
push ebx
lea ecx, [ebp - 0x28]
call fcn.00403476
cmp dword [esi + 0x14], 8
jb 0x41a090
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call fcn.0042bc5b
ret

Function at 0x41a09f
Capabilities:
Get mac address on windows

Disassembly:
push 0x2c
mov eax, 0x444990
call fcn.0042bcc0
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x30], 4
push 0x11
mov dword [ebp - 0x38], ebx
call fcn.00428948
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 4], ebx
mov dword [esp], 0x288
call fcn.00428948
mov edi, eax
pop ecx
test edi, edi
jne 0x41a103
lea eax, [ebp - 0x2c]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov ecx, esi
push eax
mov byte [esi], bl
call fcn.00402a78
push ebx
jmp 0x41a1b9
mov ebx, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 0x30]
push eax
push edi
call ebx
cmp eax, 0x6f
jne 0x41a128
push dword [ebp - 0x30]
call fcn.00428948
mov edi, eax
pop ecx
test edi, edi
jne 0x41a128
xor ebx, ebx
jmp 0x41a0e6
lea eax, [ebp - 0x30]
push eax
push edi
call ebx
test eax, eax
jne 0x41a197
mov ecx, edi
cmp dword [ecx + 0x190], 0
jne 0x41a146
mov ecx, dword [ecx]
test ecx, ecx
jne 0x41a135
jmp 0x41a197
movzx eax, byte [ecx + 0x199]
mov ebx, dword [ebp - 0x34]
push eax
movzx eax, byte [ecx + 0x198]
push eax
movzx eax, byte [ecx + 0x197]
push eax
movzx eax, byte [ecx + 0x196]
push eax
movzx eax, byte [ecx + 0x195]
push eax
movzx eax, byte [ecx + 0x194]
push eax
push str._02X:_02X:_02X:_02X:_02X:_02X
push ebx
call fcn.004283ce
push ebx
call fcn.004012d5
add esp, 0x24
lea ecx, [ebp - 0x2c]
push eax
push ebx
call fcn.00403538
push edi
call fcn.0042846e
and dword [esi + 0x10], 0
lea eax, [ebp - 0x2c]
pop ecx
mov dword [esi + 0x14], 0xf
mov ecx, esi
push eax
mov byte [esi], 0
call fcn.00402a78
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402d99
mov eax, esi
call fcn.0042bc6f
ret
Function at 0x41a1cb
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x45a620]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
xor edx, edx
push edi
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], edx
jb 0x41a1ee
mov eax, dword [ebx]
jmp 0x41a1f0
mov eax, ebx
mov byte [eax], dl
lea edi, [ebp - 0x23]
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x24], dl
rep stosd dword es:[edi], eax
push edx
push str..PhysicalDrive_u
stosb byte es:[edi], al
lea eax, [ebp - 0x24]
push eax
call fcn.004283ce
add esp, 0xc
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [ebp - 0x44], ecx
cmp ecx, 0xffffffff
jne 0x41a23b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41a333
xor eax, eax
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
push eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push 8
lea eax, [ebp - 0x34]
push eax
push 0xc
lea eax, [ebp - 0x40]
push eax
push 0x2d1400
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x41a28e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x44]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x41a332
mov esi, dword [ebp - 0x30]
push esi
call fcn.00423b61
push esi
mov edi, eax
push 0
push edi
call fcn.0042b470
add esp, 0x10
lea eax, [ebp - 0x2c]
push 0
push eax
push esi
mov esi, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push edi
push 0xc
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x41a2d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x41a322
mov eax, dword [edi + 0x18]
test eax, eax
je 0x41a320
lea esi, [eax + edi]
push esi
call fcn.004012d5
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.00403538
push 1
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 0x28], 0x20
push eax
mov ecx, ebx
call fcn.00402ca2
cmp eax, 0xffffffff
je 0x41a31d
push 1
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 0x28], 0x20
push eax
mov ecx, ebx
call fcn.00402ca2
push eax
mov ecx, ebx
call fcn.004027ed
mov esi, dword [ebp - 0x44]
xor ebx, ebx
push edi
call fcn.004284cc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004273bf
mov esp, ebp
pop ebp
ret
Function at 0x41a9c4
Capabilities:
Check os version

Disassembly:
push 0x15c
mov eax, 0x444a22
call fcn.0042bcc0
mov ebx, ecx
and dword [ebp - 0x168], 0
lea eax, [ebp - 0x164]
push eax
mov dword [ebp - 0x164], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x41aa08
push 0x44d05a
mov ecx, ebx
call fcn.0040276c
jmp 0x41abdc
push 0xf
xor eax, eax
pop ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x44], al
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x160]
mov esi, dword [ebp - 0x15c]
cmp edi, 6
jne 0x41aa65
cmp esi, 3
ja 0x41aa44
jne 0x41aa4e
cmp byte [ebp - 0x4a], 1
jne 0x41aa5b
mov esi, str.Windows8.1
jmp 0x41ab2f
cmp esi, 2
ja 0x41aa5b
jne 0x41aa65
cmp byte [ebp - 0x4a], 1
jne 0x41aa65
mov esi, str.Windows8
jmp 0x41ab2f
lea ecx, [ebp - 0x164]
call fcn.0041a7a5
test al, al
je 0x41aa7e
mov esi, str.Windows7_SP1
jmp 0x41ab2f
cmp edi, 6
jne 0x41aa9a
cmp esi, 1
ja 0x41aa90
jne 0x41aa9a
cmp byte [ebp - 0x4a], 1
jne 0x41aa9a
mov esi, str.Windows7
jmp 0x41ab2f
lea ecx, [ebp - 0x164]
call fcn.0041a803
test al, al
je 0x41aab0
mov esi, str.Windows_Vista_SP2
jmp 0x41ab2f
lea ecx, [ebp - 0x164]
call fcn.0041a861
test al, al
je 0x41aac6
mov esi, str.Windows_Vista_SP1
jmp 0x41ab2f
cmp edi, 6
jne 0x41aadc
test esi, esi
jne 0x41aad5
cmp byte [ebp - 0x4a], 1
jne 0x41aadc
mov esi, str.Windows_Vista
jmp 0x41ab2f
lea ecx, [ebp - 0x164]
call fcn.0041a8bf
test al, al
je 0x41aaf2
mov esi, str.Windows_XP_SP3
jmp 0x41ab2f
lea ecx, [ebp - 0x164]
call fcn.0041a916
test al, al
je 0x41ab08
mov esi, str.Windows_XP_SP2
jmp 0x41ab2f
lea ecx, [ebp - 0x164]
call fcn.0041a96d
test al, al
je 0x41ab1e
mov esi, str.Windows_XP_SP1
jmp 0x41ab2f
cmp edi, 5
ja 0x41ab2a
jne 0x41ab40
cmp esi, 1
jb 0x41ab40
mov esi, str.Windows_XP
push esi
call fcn.004012d5
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403538
cmp byte [ebp - 0x4a], 1
mov esi, str.Server
jne 0x41ab50
mov esi, str.Client
push esi
call fcn.004012d5
pop ecx
push eax
push esi
lea ecx, [ebp - 0x44]
call fcn.00403538
call fcn.0041a750
mov esi, str._64bit
test eax, eax
jne 0x41ab74
mov esi, str._32bit
push esi
call fcn.004012d5
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00402b6c
mov esi, 0x44d42c
push esi
call fcn.004012d5
pop ecx
push eax
push esi
lea ecx, [ebp - 0x44]
call fcn.00402b6c
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.00402ac6
and dword [ebx + 0x10], 0
lea eax, [ebp - 0x44]
mov dword [ebx + 0x14], 0xf
mov ecx, ebx
push eax
mov byte [ebx], 0
call fcn.00402a78
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402d99
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.00402d99
mov eax, ebx
call fcn.0042bc6f
ret
Function at 0x41ad20
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x45a620]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov ebx, ecx
mov dword [ebp - 0x230], 0x22c
push 2
mov esi, edx
mov dword [ebp - 0x234], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x41ae0c
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
lea ecx, [ebp - 0x20c]
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41ad9b
test dx, dx
je 0x41ad97
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41ad9b
add eax, 4
add ecx, 4
test dx, dx
jne 0x41ad75
xor eax, eax
jmp 0x41ada0
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41adb4
test esi, esi
je 0x41adb0
mov ecx, dword [ebp - 0x228]
mov dword [esi], ecx
mov al, 1
jmp 0x41ae0e
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x41adf7
mov eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41adee
test dx, dx
je 0x41adea
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41adee
add eax, 4
add ecx, 4
test dx, dx
jne 0x41adc8
xor eax, eax
jmp 0x41adf3
sbb eax, eax
or eax, 1
test eax, eax
je 0x41ae1f
lea eax, [ebp - 0x230]
push eax
push edi
call ebx
test eax, eax
jne 0x41adbc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004273bf
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x41adb0
mov eax, dword [ebp - 0x228]
mov dword [esi], eax
jmp 0x41adb0

Function at 0x41ae2d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ecx + 0x14], 0x10
mov dword [ebp - 4], edx
jb 0x41ae3c
mov ecx, dword [ecx]
push esi
push 0x452db0
push ecx
call fcn.00429241
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41aea0
push ebx
push edi
push 2
push 0
push esi
call fcn.00429b2d
push esi
call fcn.00429a32
push esi
mov ebx, eax
call fcn.00428fb4
push ebx
call fcn.00428948
mov edi, eax
add esp, 0x18
test edi, edi
je 0x41ae9e
push esi
push ebx
push 1
push edi
call fcn.0042941b
mov ecx, dword [ebp - 4]
add esp, 0x10
push ebx
push edi
call fcn.00403538
push esi
call fcn.00429c1c
push edi
call fcn.0042846e
pop ecx
pop ecx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41aea5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, edx
cmp dword [eax + 0x14], 0x10
jb 0x41aeb7
mov eax, dword [eax]
cmp dword [ecx + 0x14], 0x10
jb 0x41aebf
mov ecx, dword [ecx]
push eax
push ecx
call fcn.00429241
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41aeec
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x41aed9
mov esi, dword [esi]
push edi
push eax
push 1
push esi
call fcn.00429620
push edi
call fcn.00429c1c
add esp, 0x14
pop edi
pop esi
pop ebp
ret
Function at 0x41aef0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x24c
mov eax, 0x444ae7
call fcn.0042bcc0
mov esi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x23c], ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x240], esi
mov byte [esi], bl
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x23c], 1
jb 0x41af36
mov eax, dword [eax]
lea ecx, [ebp - 0x238]
push ecx
push 1
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41b004
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.0042b470
add esp, 0xc
mov dword [ebp - 0x21c], 0x208
cmp dword [edi + 0x14], 8
jb 0x41af7e
mov edi, dword [edi]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41aff8
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.00402874
xor edi, edi
lea edx, [ebp - 0x234]
inc edi
lea ecx, [ebp - 0x258]
mov dword [ebp - 4], edi
cmp dword [ebp - 0x220], 8
cmovae edx, dword [ebp - 0x234]
call fcn.0041dd26
push eax
mov ecx, esi
call fcn.004027be
push ebx
push edi
lea ecx, [ebp - 0x258]
call fcn.00402d99
push ebx
push edi
lea ecx, [ebp - 0x234]
call fcn.00403476
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
call fcn.0042bc6f
ret