joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51b522
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
push edi
mov esi, ecx
je 0x51b588
call fcn.0051b5a7
push 0x5c987c
push dword [esp + 0x10]
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x51b588
push edi
call dword [sym.imp.MSVCRT.dll__fileno]
push eax
call dword [sym.imp.MSVCRT.dll__filelength]
push eax
mov dword [esi + 8], eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 0xc
mov dword [esi + 4], eax
test eax, eax
push edi
je 0x51b581
push 1
push dword [esi + 8]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
push edi
je 0x51b58c
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
xor al, al
jmp 0x51b5a2
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push dword [esi + 8]
mov ecx, esi
push dword [esi + 4]
call fcn.0051b639
mov al, 1
pop edi
pop esi
ret 4

Function at 0x51b639
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov edi, ecx
je 0x51b682
cmp dword [ebp + 0xc], esi
jle 0x51b682
push ebx
mov eax, esi
mov ecx, 0x80
cdq
idiv ecx
mov eax, dword [ebp + 8]
push 8
pop ecx
mov bl, byte [edx + edi + 0x10]
xor bl, byte [esi + eax]
mov eax, esi
cdq
idiv ecx
mov al, bl
sub ecx, edx
shl al, cl
mov cl, dl
shr bl, cl
mov ecx, dword [ebp + 8]
add al, bl
mov byte [esi + ecx], al
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x51b64d
pop ebx
pop edi
pop esi
pop ebp
ret 8

Function at 0x51d7e2
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x5776af
call fcn.0051f140
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
or dword [esi + 8], 0xffffffff
or dword [esi + 4], 0xffffffff
mov dword [ebp - 0x10], esi
mov dword [esi + 0xc], edi
mov dword [esi], 0x58b2b8
lea ecx, [esi + 0x14]
mov dword [ebp - 4], edi
call fcn.00402891
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 1
call fcn.00402891
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x10], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi], 0x58b2ac
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x51dc36
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x577780
call fcn.0051f140
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
or dword [esi + 8], 0xffffffff
or dword [esi + 4], 0xffffffff
mov dword [ebp - 0x10], esi
mov dword [esi + 0xc], edi
mov dword [esi], 0x58b2b8
lea ecx, [esi + 0x20]
mov dword [ebp - 4], edi
call fcn.00402891
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi], 0x58b310
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x51ec05
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x577946
call fcn.0051f140
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
or dword [esi + 8], 0xffffffff
or dword [esi + 4], 0xffffffff
and dword [esi + 0xc], 0
mov dword [esi], 0x58b2b8
and dword [ebp - 4], 0
lea edi, [esi + 0x14]
mov ecx, edi
call fcn.00402891
lea ebx, [esi + 0x20]
mov byte [ebp - 4], 1
mov ecx, ebx
call fcn.00402891
push dword [ebp + 8]
mov byte [ebp - 4], 2
mov dword [esi], 0x58b2ac
call sub.MSVCRT.dll_strlen
add eax, dword [ebp + 8]
pop ecx
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.00402557
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
add eax, dword [ebp + 0xc]
pop ecx
mov ecx, ebx
push eax
push dword [ebp + 0xc]
call fcn.00402557
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x51fc60
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push ebx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x51fcf2
push 0x7a
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.005240f0
push 0x58b420
push esi
push 0x58b41c
push ebx
push str.fopen_
push 5
call fcn.005245d0
add esp, 0x2c
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 2
jne 0x51fcd7
push 0x7d
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.005240f0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x7f
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.005240f0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x5cea78
call fcn.0051f7e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x51fd15
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.0051f910
push edi
push 1
push 0x6a
push esi
call fcn.0051fbc0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x5223f0
Capabilities:
Encrypt data using blowfish

Disassembly:
mov eax, 8
call fcn.0051f470
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov ecx, 0x412
mov esi, 0x58b638
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
cmp ecx, 0x48
jle 0x52241d
mov ecx, 0x48
mov edi, dword [esp + 0x20]
push ebp
mov eax, edi
mov ebp, ebx
lea esi, [ecx + edi]
mov dword [esp + 0x1c], 0x12
xor ecx, ecx
mov cl, byte [eax]
inc eax
cmp eax, esi
jb 0x52243c
mov eax, edi
xor edx, edx
mov dl, byte [eax]
shl ecx, 8
or ecx, edx
inc eax
cmp eax, esi
jb 0x52244c
mov eax, edi
xor edx, edx
mov dl, byte [eax]
shl ecx, 8
or ecx, edx
inc eax
cmp eax, esi
jb 0x52245c
mov eax, edi
xor edx, edx
mov dl, byte [eax]
shl ecx, 8
or ecx, edx
inc eax
cmp eax, esi
jb 0x52246c
mov eax, edi
mov edx, dword [ebp]
add ebp, 4
xor edx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [ebp - 4], edx
dec ecx
mov dword [esp + 0x1c], ecx
jne 0x522431
xor eax, eax
mov esi, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov edi, 9
pop ebp
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.0052bfa0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
add esp, 8
add esi, 8
dec edi
jne 0x522494
lea esi, [ebx + 0x48]
mov edi, 0x200
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.0052bfa0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
add esp, 8
add esi, 8
dec edi
jne 0x5224bd
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x524bc0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.0051f470
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x524c0f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x524c0f
mov edx, dword [sym.imp.MSVCRT.dll__iob]
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
add edx, 0x40
push eax
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_vfprintf]
add esp, 0xc
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x104]
push 0xff
push edx
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x524d13
call dword [sym.imp.USER32.dll_GetDesktopWindow]
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov ebx, eax
test ebx, ebx
je 0x524cce
lea eax, [ebp - 4]
push eax
push 0
push 0
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
jne 0x524cce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x524cce
mov eax, dword [ebp - 4]
cmp eax, 0x200
ja 0x524cce
lea esi, [eax + 1]
and esi, 0xfffffffe
mov dword [ebp - 4], esi
lea eax, [esi + 2]
add eax, 3
and al, 0xfc
call fcn.0051f470
lea ecx, [ebp - 4]
mov edi, esp
push ecx
push esi
push edi
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
je 0x524cce
mov edx, dword [ebp - 4]
push str.Service_0x
push edi
lea eax, [edx + 1]
and al, 0xfe
mov dword [ebp - 4], eax
shr eax, 1
mov word [edi + eax*2], 0
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
je 0x524d13
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
lea ecx, [ebp - 4]
push 0
push ecx
push 0
push 1
push 0
push 0
mov esi, eax
push 0
lea eax, [ebp - 0x104]
push 1
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
lea edx, [ebp - 0x104]
push str.OpenSSL:_FATAL
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4015b0
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x4015ca
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 0xc

Function at 0x4015f3
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x4015fe
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x401bd2
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x483cf0]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x9c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x90], eax
mov dword [ebp - 0x74], esi
call fcn.004013a3
cmp eax, esi
jne 0x401c5a
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x401c23
lea eax, [ebp - 0x70]
push eax
call fcn.00401bd2
cmp eax, esi
jne 0x401c59
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], pe_nt_image_headers32
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x401c16
call fcn.0040133e
push dword [ebp + 0x9c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.0040133e
mov ecx, dword [ebp + 0x90]
mov eax, esi
pop esi
pop ebx
call fcn.0043025e
add ebp, 0x94
leave
ret 4
Function at 0x4074a9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4074be
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4074d0
xor eax, eax
jmp 0x407502
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4074f4
cmp esi, eax
jae 0x4074cc
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4074e6
cmp esi, eax
jae 0x4074cc
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x409c5c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push dword [ebx + 0x14]
call fcn.004059f2
mov esi, 0x468ce0
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edi, edi
cmp dword [ebx + 0x14], edi
jbe 0x409cad
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 4]
push edi
mov ecx, ebx
add esi, edi
call fcn.0040535a
mov ecx, edi
and ecx, 0xf
mov cl, byte [ebp + ecx - 0x14]
xor cl, byte [eax]
inc edi
mov byte [esi], cl
cmp edi, dword [ebx + 0x14]
jb 0x409c8a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409fd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x456d92
call fcn.00430898
sub esp, 0x58
mov eax, dword [0x483cf0]
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.00409f0f
mov dword [esp], 0x4680bc
push eax
lea eax, [ebp - 0x48]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.00404bb7
push dword [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00404c05
add esp, 0x18
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.00401df9
push esi
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.00401df9
mov eax, dword [ebp - 0x28]
push 0x10
pop ebx
cmp dword [ebp - 0x14], ebx
jae 0x40a042
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40a079
cmp dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0x28]
jae 0x40a059
lea ecx, [ebp - 0x28]
push 0x20
push 1
push 3
mov edx, 0xc0000000
call fcn.004196bb
cmp eax, 0xffffffff
jne 0x40a072
xor bl, bl
jmp 0x40a0c3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], ebx
mov esi, dword [ebp - 0x28]
jae 0x40a084
lea esi, [ebp - 0x28]
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x18], ebx
jb 0x40a091
mov edx, dword [eax + 4]
jmp 0x40a094
lea edx, [eax + 4]
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], ebx
jb 0x40a0a1
mov ecx, dword [eax + 4]
jmp 0x40a0a4
lea ecx, [eax + 4]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], ebx
jb 0x40a0b1
mov eax, dword [eax + 4]
jmp 0x40a0b4
add eax, 4
push esi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
setne bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401df9
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov al, bl
pop ebx
call fcn.0043025e
leave
ret
Function at 0x40a0e7
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x456dba
call fcn.00430898
sub esp, 0x45c
mov eax, dword [0x483cf0]
push ebx
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x468]
push edi
xor esi, esi
push eax
mov dword [ebp - 0x430], esi
call fcn.00409f0f
mov dword [esp], 0x4680bc
push eax
lea eax, [ebp - 0x44c]
push eax
mov dword [ebp - 4], esi
call fcn.00404bb7
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00404c05
add esp, 0x18
push esi
push 1
lea ecx, [ebp - 0x44c]
call fcn.00401df9
push esi
push 1
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 3
call fcn.00401df9
mov ebx, dword [ebp - 0x28]
push 0x10
pop edi
cmp dword [ebp - 0x14], edi
jae 0x40a16f
lea ebx, [ebp - 0x28]
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x18], edi
jb 0x40a17c
mov edx, dword [eax + 4]
jmp 0x40a17f
lea edx, [eax + 4]
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x18], edi
jb 0x40a18c
mov ecx, dword [eax + 4]
jmp 0x40a18f
lea ecx, [eax + 4]
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], edi
jb 0x40a19c
mov eax, dword [eax + 4]
jmp 0x40a19f
add eax, 4
push ebx
push 0x400
lea edi, [ebp - 0x42c]
push edi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov ecx, dword [ebp + 8]
jbe 0x40a1c1
mov eax, edi
push eax
jmp 0x40a1c6
push 0x467fb5
call fcn.00404d2a
push esi
lea ecx, [ebp - 0x2c]
push 1
call fcn.00401df9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0043025e
leave
ret

Function at 0x40cf96
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 4], 0
jne 0x40cfbd
push 0x482360
lea ecx, [ebp - 0xc]
call fcn.00430e3a
push 0x47a418
lea eax, [ebp - 0xc]
push eax
call fcn.00430a64
push esi
xor esi, esi
cmp dword [ecx + 0x3cc], esi
jle 0x40cfdf
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dl, byte [edi]
xor byte [eax], dl
inc edi
inc eax
inc esi
cmp esi, dword [ecx + 0x3cc]
jl 0x40cfcf
pop edi
pop esi
leave
ret 8
Function at 0x40e9dd
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x457845
call fcn.00430898
mov eax, 0x2960
call fcn.004301f0
mov al, byte [ebp + 8]
push ebx
xor ebx, ebx
cmp al, bl
mov byte [ebp - 0xd], bl
jne 0x40ea03
call fcn.0040e84c
movsx eax, al
push eax
lea eax, [ebp - 0x25c]
push str.._c:
push eax
call fcn.00430b62
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40ec19
push esi
push 0xc
lea eax, [ebp - 0x24]
push ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.0042fe20
mov esi, 0x2710
push esi
lea eax, [ebp - 0x296c]
push ebx
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.0042fe20
add esp, 0x18
push ebx
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x296c]
push eax
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0x2d1400
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40ec0f
cmp dword [ebp - 0x2954], esi
jae 0x40ec0f
cmp dword [ebp - 0x295c], esi
jae 0x40ec0f
mov eax, esi
sub eax, dword [ebp - 0x2954]
push 0x64
pop ecx
cmp eax, ecx
jle 0x40eaba
mov eax, ecx
sub esi, dword [ebp - 0x295c]
dec eax
cmp esi, ecx
mov dword [ebp - 0x18], eax
jle 0x40eaca
mov esi, ecx
push edi
xor edi, edi
inc edi
dec esi
cmp eax, edi
jl 0x40ec0e
cmp esi, edi
jl 0x40ec0e
push ecx
lea eax, [ebp - 0xf8]
push ebx
push eax
call fcn.0042fe20
push 0x64
lea eax, [ebp - 0x15c]
push ebx
push eax
call fcn.0042fe20
mov eax, dword [ebp - 0x2954]
push dword [ebp - 0x18]
lea eax, [ebp + eax - 0x296c]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.0040e702
add esp, 0x24
test eax, eax
je 0x40ec0e
mov eax, dword [ebp - 0x295c]
lea eax, [ebp + eax - 0x296c]
push esi
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.00432240
movsx eax, byte [ebp - 0xf8]
push eax
call fcn.00431581
add esp, 0x10
test eax, eax
jne 0x40eb69
movsx eax, byte [ebp - 0xe5]
push eax
call fcn.00431581
test eax, eax
pop ecx
je 0x40ec0e
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x40]
call fcn.00404d2a
push eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 4], ebx
call fcn.0040e94b
pop ecx
pop ecx
mov esi, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00404275
push ebx
push edi
lea ecx, [ebp - 0x78]
call fcn.00401df9
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp - 0x40]
call fcn.00401df9
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x94]
call fcn.00404d2a
push eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 4], 2
call fcn.0040e94b
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
push ebx
push eax
mov byte [ebp - 4], 3
call fcn.00404275
push ebx
push edi
lea ecx, [ebp - 0x5c]
call fcn.00401df9
push ebx
push edi
lea ecx, [ebp - 0x94]
call fcn.00401df9
cmp dword [esi + 0x14], ebx
jne 0x40ec0a
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], ebx
je 0x40ec0e
mov byte [ebp - 0xd], 1
pop edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40ec29
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2904
call fcn.004301f0
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2904]
push eax
mov dword [ebp - 4], 0x2800
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x40ec67
mov ecx, dword [ebp + 8]
push 0x467fb5
call fcn.00404d2a
jmp 0x40ed1c
lea eax, [ebp - 0x2904]
xor ecx, ecx
push esi
movzx edx, byte [eax + 0x196]
movzx esi, byte [eax + 0x197]
shl edx, 8
add edx, esi
movzx esi, byte [eax + 0x198]
shl edx, 8
add edx, esi
movzx esi, byte [eax + 0x199]
shl edx, 8
add edx, esi
je 0x40ecfe
cmp dword [ebp + 0xc], 0
jl 0x40eca8
cmp dword [ebp + 0xc], ecx
jne 0x40ed03
movzx ecx, byte [eax + 0x199]
push ecx
movzx ecx, byte [eax + 0x198]
push ecx
movzx ecx, byte [eax + 0x197]
push ecx
movzx ecx, byte [eax + 0x196]
push ecx
movzx ecx, byte [eax + 0x195]
movzx eax, byte [eax + 0x194]
push ecx
push eax
push str._02X__02X__02X__02X__02X__02X
lea eax, [ebp - 0x104]
push pe_nt_image_headers32
push eax
call fcn.00432364
add esp, 0x24
lea eax, [ebp - 0x104]
mov byte [ebp - 5], 0
push eax
jmp 0x40ed13
cmp dword [ebp + 0xc], ecx
je 0x40ed0e
mov eax, dword [eax]
inc ecx
test eax, eax
jne 0x40ec70
push 0x467fb5
mov ecx, dword [ebp + 8]
call fcn.00404d2a
pop esi
mov eax, dword [ebp + 8]
leave
ret

Function at 0x40ed21
Capabilities:
Get disk information

Disassembly:
mov eax, 0x457857
call fcn.00430898
sub esp, 0x120
push ebx
xor ebx, ebx
cmp byte [ebp + 8], bl
push edi
mov edi, dword [ebp + 0xc]
mov dword [edi], ebx
jne 0x40ed47
call fcn.0040e84c
mov byte [ebp + 8], al
push esi
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], 0xf
call fcn.00401da9
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
push 1
mov dword [ebp - 4], ebx
call fcn.00404215
push 0x46d1b8
lea ecx, [ebp - 0x28]
call fcn.004041f8
mov esi, 0x104
push esi
lea eax, [ebp - 0x12c]
push ebx
push eax
call fcn.0042fe20
mov eax, dword [ebp - 0x24]
add esp, 0xc
cmp dword [ebp - 0x10], 0x10
jae 0x40ed97
lea eax, [ebp - 0x24]
push ebx
push ebx
push ebx
push ebx
push edi
push esi
lea ecx, [ebp - 0x12c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
pop esi
je 0x40edbf
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x12c]
push eax
call fcn.00404af7
push ebx
lea ecx, [ebp - 0x28]
push 1
call fcn.00401df9
mov ecx, dword [ebp - 0xc]
pop edi
mov al, 1
pop ebx
mov dword fs:[0], ecx
leave
ret