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

Disassembly:
push 0x458
mov eax, 0x463de4
call fcn.00461b38
mov ebx, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x460]
mov edx, dword [ebp + 8]
or dword [ebp - 0x460], 0xffffffff
or dword [ebp - 0x45c], 0xffffffff
push eax
push edx
call fcn.004087d6
test al, al
je 0x410366
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov dword [ebp - 0x42c], 0xf
mov dword [ebp - 0x430], ecx
mov byte [ebp - 0x440], cl
mov dword [ebp - 4], ecx
xor eax, eax
mov dword [ebp - 0x414], 7
mov dword [ebp - 0x418], ecx
mov word [ebp - 0x428], ax
mov esi, 0x400
mov byte [ebp - 4], 1
push esi
push ecx
lea eax, [ebp - 0x410]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x464]
push 0
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x410296
cmp dword [ebp - 0x464], 0
je 0x4102a9
push dword [ebp - 0x464]
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x440]
call fcn.0040798b
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x464]
push 0
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x45c]
call esi
test eax, eax
jne 0x410251
push dword [ebp - 0x45c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x42c], 0x10
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
mov dword [ebp - 0x460], eax
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x45c], eax
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.infra.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_base::SysMultiByteToWide_class_base::BasicStringPiece_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____const___unsigned_int_]
add esp, 0xc
lea ecx, [ebp - 0x428]
push eax
call fcn.0040788e
xor esi, esi
lea ecx, [ebp - 0x458]
push esi
push 1
call fcn.004061c2
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebx + 0x6c]
call fcn.00407abe
cmp dword [ebp - 0x414], 8
lea eax, [ebp - 0x428]
lea ecx, [ebx + 8]
cmovae eax, dword [ebp - 0x428]
push eax
push 1
call fcn.00410a02
push esi
push 1
lea ecx, [ebp - 0x428]
call fcn.004061c2
push esi
push 1
lea ecx, [ebp - 0x440]
call fcn.00401ca4
mov al, 1
jmp 0x410368
xor al, al
call fcn.00461ae2
ret 8
Function at 0x411f0e
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46421d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4a601c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.00412044
xor edi, edi
lea ecx, [esi + 0xf0]
push ebx
inc edi
push edi
call fcn.004061c2
push ebx
push edi
lea ecx, [esi + 0xd8]
call fcn.004061c2
push ebx
push edi
lea ecx, [esi + 0xbc]
call fcn.004061c2
push ebx
push edi
lea ecx, [esi + 0xa4]
call fcn.004061c2
lea ecx, [esi + 0xa0]
call dword [sym.imp.infra.dll_public:_void___thiscall_base::WaitableEvent::destructor_void_]
lea ecx, [esi + 0x94]
call fcn.00415b28
lea ecx, [esi + 0x88]
call fcn.0041587c
lea ecx, [esi + 0x48]
call fcn.0040db89
lea ecx, [esi + 0x30]
call dword [sym.imp.infra.dll_public:_void___thiscall_base::Lock::destructor_void_]
lea ecx, [esi + 0x24]
call fcn.0041597c
push ebx
push edi
lea ecx, [esi + 0xc]
call fcn.00401ca4
mov dword [ebp - 4], ebx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x411fcc
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, esi
call fcn.004018f5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414174
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp byte [esi + 0x14], 0
je 0x414190
xor al, al
jmp 0x414282
xor ecx, ecx
xor eax, eax
inc ecx
cmp dword [esi + 0x18], eax
jne 0x4141a6
mov dword [esi + 0x18], ecx
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esi + 0x18], ecx
jne 0x4141f2
cmp dword [esi + 0x1c], eax
je 0x4141c8
call ebx
sub eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x20]
seta al
test al, al
je 0x4141f2
xor ecx, ecx
inc ecx
inc dword [esi + 0x24]
cmp dword [esi + 0x24], 4
jle 0x4141d6
mov byte [esi + 0x14], cl
jmp 0x4141f2
push esi
mov ecx, edi
call fcn.00412dbe
mov dword [esi + 0x20], 0xbb8
call ebx
push 1
test eax, eax
pop ecx
cmove eax, ecx
mov dword [esi + 0x1c], eax
cmp dword [esi + 0x18], 2
jne 0x414271
cmp byte [esi + 0x2c], 0
je 0x41420b
cmp byte [esi + 0x2d], 0
je 0x41420b
mov dword [esi + 0x18], 3
cmp dword [esi + 0x1c], 0
je 0x414220
call ebx
sub eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x20]
seta al
test al, al
je 0x414271
inc dword [esi + 0x24]
cmp dword [esi + 0x24], 4
jle 0x414231
xor eax, eax
inc eax
mov byte [esi + 0x14], al
jmp 0x414271
cmp byte [esi + 0x2c], 0
jne 0x414242
push 0
push dword [esi]
mov ecx, edi
call fcn.00412eda
cmp byte [esi + 0x2d], 0
jne 0x41425d
mov eax, dword [edi + 0x70]
xor ecx, ecx
inc ecx
cmp eax, ecx
jle 0x41425d
dec eax
mov ecx, edi
push eax
push dword [esi]
call fcn.00412eda
mov dword [esi + 0x20], 0xbb8
call ebx
push 1
test eax, eax
pop ecx
cmove eax, ecx
mov dword [esi + 0x1c], eax
cmp dword [esi + 0x18], 3
je 0x414189
cmp byte [esi + 0x14], 0
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41555d
Capabilities:
Create thread

Disassembly:
push 0x10
mov eax, 0x464bae
call fcn.00461b04
mov esi, ecx
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x1c], eax
xor ebx, ebx
lea ecx, [esi + 0x58]
mov dword [ebp - 4], ebx
cmp ecx, edx
je 0x41559e
push 0xffffffffffffffff
push ebx
push edx
call fcn.00406333
lea ecx, [esi + 0x70]
cmp ecx, edi
je 0x4155ae
push 0xffffffffffffffff
push ebx
push edi
call fcn.00406333
mov eax, dword [ebp + 0x10]
lea ecx, [esi + 0x8c]
mov dword [esi + 0x88], eax
mov eax, dword [ebp - 0x10]
cmp ecx, eax
je 0x4155cd
push 0xffffffffffffffff
push ebx
push eax
call fcn.00406333
mov eax, dword [ebp - 0x14]
lea ecx, [esi + 0xa4]
cmp ecx, eax
je 0x4155e3
push 0xffffffffffffffff
push ebx
push eax
call fcn.00406333
mov eax, dword [ebp - 0x18]
lea ecx, [esi + 0x3c]
cmp ecx, eax
je 0x4155f6
push 0xffffffffffffffff
push ebx
push eax
call fcn.00406333
mov eax, dword [ebp + 0x20]
lea ecx, [esi + 4]
push dword [ebp - 0x1c]
mov dword [esi + 0x54], eax
call fcn.00401844
lea eax, [ebp + 0x28]
push eax
lea ecx, [esi + 0x10]
call fcn.00410f6d
push ebx
push ebx
push esi
push 0x415643
push ebx
push ebx
mov byte [esi], bl
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x415631
mov dword [esi + 8], eax
mov bl, 1
lea ecx, [ebp + 0x28]
call fcn.0040db89
mov al, bl
call fcn.00461acd
ret 0x48

Function at 0x419944
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
call dword [sym.imp.infra.dll_bool___cdecl_base::win::MaybeHasSHA256Support_void_]
test al, al
jne 0x419a17
push str.CryptVerifyCertificateSignatureEx
push str.crypt32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x419a17
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push esi
mov dword [ebp - 4], ebx
call edi
test eax, eax
je 0x419a17
push 0x40
push 0x1000
push 0x20
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [0x4a9720], eax
test eax, eax
jne 0x4199c7
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 5
push esi
jmp 0x419a15
push 0
push 0x20
push eax
push 0x419916
push esi
call fcn.00460220
add esp, 0x14
test eax, eax
je 0x4199f6
push 0x8000
push 0
push dword [0x4a9720]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x4199bb
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push 5
push esi
call edi
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 0x20
push dword [0x4a9720]
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a632
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ecx + 0x14], 8
jb 0x41a640
mov ecx, dword [ecx]
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 7
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41a669
xor eax, eax
jmp 0x41a6ea
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, 0x400
cmp eax, ecx
cmova eax, ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x41a6e1
push edi
push eax
call fcn.004609dc
pop ecx
push esi
mov edi, eax
mov dword [ebp - 4], esi
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a6d9
push 2
pop eax
cmp dword [ebp - 4], eax
jb 0x41a6c1
cmp byte [edi], 0xff
jne 0x41a6c1
cmp byte [edi + 1], 0xfe
jne 0x41a6c1
xor esi, esi
inc esi
jmp 0x41a6d9
cmp dword [ebp - 4], 3
jb 0x41a6d9
cmp byte [edi], 0xef
jne 0x41a6d9
cmp byte [edi + 1], 0xbb
jne 0x41a6d9
cmp byte [edi + 2], 0xbf
cmove esi, eax
push edi
call fcn.004609e5
pop ecx
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420a2f
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x466613
call fcn.00461b38
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x420b2b
cmp byte [esi + 0x3d], 0
je 0x420b2b
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x420a69
xor al, al
jmp 0x420b2d
push ecx
push ecx
lea ecx, [ebp - 0x28]
call fcn.0041f649
and dword [ebp - 4], 0
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x14]
cmp edi, 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, ebx
lea ecx, [ebp - 0x28]
cmovae ecx, ebx
add eax, edx
push eax
push ecx
mov ecx, dword [esi + 0x38]
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x420ab8
sub eax, 1
je 0x420abc
dec eax
sub eax, 1
je 0x420b19
xor bl, bl
jmp 0x420b1b
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ebx, dword [ebp - 0x28]
cmp edi, 0x10
mov ecx, dword [ebp - 0x2c]
cmovae eax, ebx
sub ecx, eax
mov dword [ebp - 0x30], ecx
je 0x420afb
push dword [esi + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push ecx
cmovae eax, ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov ecx, dword [ebp - 0x30]
add esp, 0x10
cmp ecx, eax
jne 0x420ab4
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x28]
cmp byte [esi + 0x3d], 0
je 0x420b19
test ecx, ecx
jne 0x420a7d
push ecx
push 8
lea ecx, [ebp - 0x28]
call fcn.0040a754
jmp 0x420a77
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401ca4
mov al, bl
jmp 0x420b2d
mov al, 1
call fcn.00461ae2
ret
Function at 0x43c135
Capabilities:
Get networking parameters

Disassembly:
push 0x34
mov eax, 0x46a659
call fcn.00461b38
mov esi, ecx
mov dword [ebp - 0x3c], esi
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
push 0x248
mov dword [ebp - 4], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x43c181
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
jmp 0x43c260
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x248
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetNetworkParams]
cmp eax, 0x6f
jne 0x43c1b8
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x38]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x43c172
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetNetworkParams]
test eax, eax
jne 0x43c23d
lea eax, [edi + 0x110]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401a71
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x34]
call fcn.00404eba
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00401ca4
mov eax, dword [edi + 0x10c]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x43c23d
mov ebx, eax
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401a71
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x34]
call fcn.00404eba
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00401ca4
mov ebx, dword [ebx]
test ebx, ebx
jne 0x43c205
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test edi, edi
je 0x43c24d
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x34]
mov dword [esi], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 8], eax
xor eax, eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
call fcn.00404fa9
mov eax, esi
call fcn.00461ae2
ret

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

Disassembly:
push esi
mov esi, edx
or edx, 0xffffffff
push edi
mov edi, ecx
test esi, esi
jle 0x43c80c
movzx eax, byte [edi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x4820f8]
inc edi
sub esi, 1
jne 0x43c7f4
pop edi
mov eax, edx
pop esi
ret
Function at 0x43d931
Capabilities:
Check os version

Disassembly:
push 0x550
mov eax, 0x46aa75
call fcn.00461b38
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x410]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x400
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x554], 0x114
lea eax, [ebp - 0x554]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43d98c
cmp dword [ebp - 0x550], 6
ja 0x43d990
jne 0x43d98c
cmp dword [ebp - 0x54c], 2
jae 0x43d990
mov eax, ebx
jmp 0x43d993
xor eax, eax
inc eax
mov edx, dword [esi + 0x18]
lea ecx, [ebp - 0x410]
push ecx
push eax
mov ecx, esi
call fcn.0043d19b
pop ecx
pop ecx
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, ebx
lea esi, [eax - 1]
test esi, esi
jle 0x43d9e3
mov ax, word [ebp + edx - 0x410]
movzx ecx, byte [ebp + edx - 0x40f]
shl ax, 8
or cx, ax
mov word [ebp + edx - 0x410], cx
add edx, 2
cmp edx, esi
jl 0x43d9bd
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x428]
call fcn.00401a71
lea eax, [ebp - 0x428]
mov dword [ebp - 4], ebx
push eax
push ecx
push ecx
mov esi, esp
mov eax, 0x48c8e0
push eax
mov dword [esi], eax
call fcn.004010ec
mov dword [esi + 4], eax
lea eax, [ebp - 0x428]
pop ecx
push eax
call dword [sym.imp.infra.dll_bool___cdecl_base::TrimString_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_base::BasicStringPiece_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____]
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
mov dword [ebp - 0x55c], eax
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x558], eax
lea eax, [ebp - 0x55c]
push eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.infra.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_base::SysUTF8ToWide_class_base::BasicStringPiece_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____const__]
add esp, 0x18
mov ecx, edi
push eax
call fcn.0040788e
push ebx
push 1
lea ecx, [ebp - 0x440]
call fcn.004061c2
push ebx
push 1
lea ecx, [ebp - 0x428]
call fcn.00401ca4
mov al, 1
call fcn.00461ae2
ret 8
Function at 0x43deb8
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ab92
mov eax, dword fs:[0]
push eax
mov eax, 0x2040
call fcn.00461aa0
mov eax, dword [0x4a601c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test esi, esi
jne 0x43defe
xor al, al
jmp 0x43e01c
push eax
lea eax, [ebp - 0x2038]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.infra.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_base::StringPrintf_wchar_t_const__]
add esp, 0xc
xor edi, edi
lea eax, [ebp - 0x2038]
push edi
push edi
push 3
push edi
mov dword [ebp - 4], edi
cmp dword [ebp - 0x2024], 8
push 3
cmovae eax, dword [ebp - 0x2038]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x203c]
mov dword [ebp - 0x203c], edi
call fcn.0043e50b
mov byte [ebp - 4], 1
push dword [ebp - 0x203c]
call fcn.0043d183
pop ecx
test al, al
je 0x43dffa
xor eax, eax
lea edi, [ebp - 0x2020]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov edi, 0x2000
mov dword [ebp - 0x2020], eax
push edi
push eax
mov dword [ebp - 0x201c], eax
mov dword [ebp - 0x2040], eax
lea eax, [ebp - 0x2014]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2040]
push 0
push eax
push edi
lea eax, [ebp - 0x2014]
push eax
push 0xc
lea eax, [ebp - 0x2020]
push eax
push 0x2d1400
push dword [ebp - 0x203c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x43dffa
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x43dffa
lea eax, [ebp - 0x2014]
mov dword [ebp - 0x2044], esi
lea edx, [ebp - 0x2044]
mov dword [ebp - 0x2048], eax
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x2048]
push edx
call dword [eax + 8]
mov bl, al
jmp 0x43dffc
mov bl, 1
lea ecx, [ebp - 0x203c]
mov byte [ebp - 4], 3
call fcn.0043e4d5
push 0
push 1
lea ecx, [ebp - 0x2038]
call fcn.004061c2
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00460962
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43e03a
Capabilities:
Get mac address on windows

Disassembly:
push 0x5c
mov eax, 0x46abe0
call fcn.00461b38
mov edi, ecx
mov dword [ebp - 0x54], edi
mov esi, dword [ebp + 8]
and dword [ebp - 0x60], 0
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x64], edi
call dword [sym.imp.infra.dll_public:_void___thiscall_base::Lock::Acquire_void_]
and dword [ebp - 4], 0
lea ebx, [edi + 0x68]
mov eax, dword [ebx]
mov dword [ebp - 0x58], 0x18
cmp eax, dword [ebx + 4]
jne 0x43e19c
and dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
push eax
push 0
call edi
push dword [ebp - 0x4c]
call fcn.004609dc
mov esi, eax
pop ecx
mov dword [ebp - 0x68], esi
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 1
push eax
push esi
call edi
test eax, eax
jne 0x43e187
mov word [ebp - 0x30], ax
lea edi, [ebp - 0x2e]
push 7
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test esi, esi
je 0x43e187
mov edi, esi
movzx eax, byte [edi + 0x199]
push eax
movzx eax, byte [edi + 0x198]
push eax
movzx eax, byte [edi + 0x197]
push eax
movzx eax, byte [edi + 0x196]
push eax
movzx eax, byte [edi + 0x195]
push eax
movzx eax, byte [edi + 0x194]
push eax
lea eax, [ebp - 0x30]
push str._02X_02X_02X_02X_02X_02X
push eax
call fcn.0043e720
add esp, 0x20
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x48]
push eax
call fcn.00406192
mov byte [ebp - 4], 2
lea eax, [ebp - 0x48]
mov ecx, dword [ebx + 4]
cmp eax, ecx
jae 0x43e149
cmp dword [ebx], eax
ja 0x43e149
sub eax, dword [ebx]
cdq
idiv dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
cmp ecx, dword [ebx + 8]
jne 0x43e13b
push 1
mov ecx, ebx
call fcn.004207b5
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebx + 4]
imul eax, eax, 0x18
add eax, dword [ebx]
test ecx, ecx
je 0x43e167
jmp 0x43e161
cmp ecx, dword [ebx + 8]
jne 0x43e157
push 1
mov ecx, ebx
call fcn.004207b5
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x43e167
lea eax, [ebp - 0x48]
push eax
call fcn.00407eb8
push 0x18
pop eax
add dword [ebx + 4], eax
lea ecx, [ebp - 0x48]
push 0
push 1
mov byte [ebp - 4], 1
call fcn.004061c2
mov edi, dword [edi]
test edi, edi
jne 0x43e0c2
mov byte [ebp - 4], 0
test esi, esi
je 0x43e196
push esi
call fcn.004609e5
pop ecx
mov edi, dword [ebp - 0x54]
mov esi, dword [ebp - 0x50]
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
jle 0x43e1bd
push dword [ebx]
mov ecx, esi
call fcn.004086ef
mov dword [ebp - 4], 3
jmp 0x43e1e0
and dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
jb 0x43e1d2
mov eax, dword [esi]
jmp 0x43e1d4
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], 4
mov ecx, edi
call dword [sym.imp.infra.dll_public:_void___thiscall_base::Lock::Release_void_]
mov eax, esi
call fcn.00461ae2
ret 8
Function at 0x43e1f2
Capabilities:
Get mac address on windows

Disassembly:
push 0x60
mov eax, 0x46ac1c
call fcn.00461b38
mov ebx, ecx
mov eax, dword [ebp + 8]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.infra.dll_public:_void___thiscall_base::Lock::Acquire_void_]
xor ecx, ecx
lea eax, [ebx + 0x74]
mov dword [ebp - 4], ecx
cmp dword [eax + 0x10], ecx
jne 0x43e319
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 0x54]
push eax
push ecx
mov dword [ebp - 0x54], ecx
call edi
push dword [ebp - 0x54]
call fcn.004609dc
mov esi, eax
pop ecx
mov dword [ebp - 0x60], esi
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
push esi
mov dword [ebp - 0x58], esi
call edi
test eax, eax
jne 0x43e307
and dword [ebp - 0x5c], eax
test esi, esi
je 0x43e307
mov esi, dword [ebp - 0x5c]
cmp esi, 0x10
jge 0x43e304
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x58]
movzx eax, byte [ecx + 0x199]
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
lea eax, [ebp - 0x50]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.0043e74e
add esp, 0x2c
lea ecx, [ebp - 0x50]
call fcn.00405fe7
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebx + 0x74]
call fcn.00410e53
mov eax, dword [ebp - 0x58]
inc esi
mov eax, dword [eax]
mov dword [ebp - 0x58], eax
test eax, eax
je 0x43e304
cmp esi, 0x10
jge 0x43e304
mov ecx, 0x48c844
call fcn.00405fe7
push eax
push 0x48c844
lea ecx, [ebx + 0x74]
call fcn.00410e53
jmp 0x43e266
mov esi, dword [ebp - 0x60]
mov byte [ebp - 4], 0
test esi, esi
je 0x43e316
push esi
call fcn.004609e5
pop ecx
lea eax, [ebx + 0x74]
mov ecx, dword [ebp - 0x64]
push eax
call fcn.004086ef
mov ecx, ebx
mov dword [ebp - 4], 2
call dword [sym.imp.infra.dll_public:_void___thiscall_base::Lock::Release_void_]
mov eax, dword [ebp - 0x64]
call fcn.00461ae2
ret 4