joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404800
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fd4e
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x34], esi
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 4]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x38], esi
push eax
mov dword [ebp - 0x30], eax
mov dword [esi], 0
call fcn.0040aa50
lea edi, [esi + 0x1c]
mov dword [ebp - 4], 0
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
add esi, 0x34
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040aa50
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
add eax, 0x4c
push eax
push esi
push edi
push ebx
call fcn.00404f10
test al, al
je 0x404922
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x14], 0x10
jb 0x4048b8
mov eax, dword [eax]
push 0
push 0
push 0
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
mov dword [ebx], eax
cmp edx, 0x10
jb 0x404902
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4048f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4048f8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0041e9db
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e5ae
mov esp, ebp
pop ebp
ret 8
push ecx
lea ecx, [ebp - 0x44]
call fcn.00401610
push 0x429848
lea eax, [ebp - 0x44]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x407940
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420817
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
movaps xmm0, xmmword [0x425ec0]
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x14], 0xe9e3
mov edi, dword [eax]
mov byte [ebp - 0x12], 0x4f
mov eax, dword [edi + 0x1c0]
test al, 1
jne 0x4079ec
or eax, 1
mov dword [edi + 0x1c0], eax
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movlpd qword [ebp - 0x2c], xmm0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov byte [edi + 0x3db], 1
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x24]
mov byte [ecx + edi + 0x3c8], al
add ecx, 1
adc edx, 0
jne 0x4079d8
cmp ecx, 0x13
jb 0x4079c0
push 0x422d30
call fcn.0041ea92
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea esi, [edi + 0x3c8]
mov ecx, esi
call fcn.0040b340
push esi
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
movaps xmm0, xmmword [0x425f00]
mov ebx, eax
mov eax, dword [edi + 0x1dc]
mov byte [ebp - 0x14], 0x53
movups xmmword [ebp - 0x24], xmm0
test al, 1
jne 0x407a75
or eax, 1
mov dword [edi + 0x1dc], eax
xorps xmm0, xmm0
mov dword [ebp - 4], 1
movlpd qword [ebp - 0x2c], xmm0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov byte [edi + 0x25d], 1
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x24]
mov byte [ecx + edi + 0x24c], al
add ecx, 1
adc edx, 0
jne 0x407a68
cmp ecx, 0x11
jb 0x407a50
push 0x422cf0
call fcn.0041ea92
add esp, 4
lea esi, [edi + 0x24c]
mov ecx, esi
call fcn.0040b2e0
push esi
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov esi, eax
test esi, esi
je 0x407aca
push esi
mov dword [0x42c9d4], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e5ae
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x407ae2
push ebx
mov dword [0x42c9d4], 2
call dword [sym.imp.KERNEL32.dll_SetEvent]
push ebx
jmp 0x407aa8
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x407af0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x42c008]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, ecx
mov edx, str.Start_Point_Blank_n
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push esi
push edi
mov dword [esp + 0x14], ebx
call fcn.0040d290
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push 0
push 0x42488c
call esi
test eax, eax
je 0x407b23
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [esp + 0x10]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push str.ntdll.dll
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
test ecx, ecx
je 0x407bde
push str.RtlGetFullPathName_U
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [esp + 0xc], esi
test esi, esi
je 0x407bde
mov eax, 0x42c9c8
mov ebx, esi
sub eax, esi
mov esi, 5
mov dword [esp + 0x18], eax
push 0
push 1
add eax, ebx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [esp + 0x18]
inc ebx
sub esi, 1
jne 0x407b88
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push eax
push 0x40
push 5
push esi
push edi
call ebx
push 0
push 5
push 0x424894
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
push 5
push esi
push edi
call ebx
mov ebx, dword [esp + 0x14]
jmp 0x407be2
mov esi, dword [esp + 0x14]
cmp dword [ebx + 0x14], 0x10
jb 0x407bea
mov ebx, dword [ebx]
mov ecx, dword [esp + 0x10]
mov edx, ebx
call fcn.00402080
test al, al
je 0x407c47
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x4248c0
call fcn.0040d290
test esi, esi
je 0x407c40
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea eax, [esp + 0x18]
push eax
push 0x40
push 5
push esi
push edi
call ebx
push 0
push 5
push 0x42c9c8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
push 5
push esi
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041e5ae
mov esp, ebp
pop ebp
ret
Function at 0x409a50
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jb 0x409a70
pop edi
mov dword [ecx], 0x270
mov eax, ecx
pop esi
pop ebp
ret 4

Function at 0x409f40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x409f6c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x409f8e
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x409f90
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x40a015
jg 0x409fa5
test esi, esi
je 0x40a015
test ecx, ecx
jl 0x409ff8
jg 0x409faf
test eax, eax
je 0x409ff8
cmp edi, ecx
jg 0x409fc3
jl 0x409fb9
cmp esi, eax
jae 0x409fc3
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [esp + 0x10]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x40a015
jg 0x409ffb
test esi, esi
je 0x40a015
jmp 0x409ffb
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x40a015
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a030
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x40a05c
jl 0x40a050
test esi, esi
jne 0x40a05c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x40a075
push eax
push esi
push ecx
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, esi
mov edx, dword [eax]
test edx, edx
je 0x40a0af
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x40a0af
mov edi, dword [ebp + 0xc]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
cmp dword [ebx + 0x4c], 0
mov edx, edi
je 0x40a130
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40a0d8
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, edi
mov ecx, dword [ebp - 4]
cmp edi, 0xfff
jbe 0x40a11c
nop word [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call eax
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x40a143
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x40a0f0
test edx, edx
je 0x40a130
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call eax
mov edx, edi
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a4a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40a4d0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e5ae
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x40a500
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x40a500
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e5ae
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x40a5d6
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x40a529
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40a535
movsx eax, bl
jmp 0x40a56d
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x40a597
sub eax, 1
je 0x40a597
sub eax, 2
jne 0x40a5d6
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e5ae
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40a5b5
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40a5d6
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x40a5d6
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e5ae
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e5ae
mov esp, ebp
pop ebp
ret 4
Function at 0x40c050
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40c10c
cmp byte [esi + 0x3d], 0
je 0x40c10c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40c0fa
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
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 0x40c0c1
sub eax, 1
je 0x40c0c5
sub eax, 2
jne 0x40c0fa
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e5ae
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40c0e3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40c0fa
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e5ae
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e5ae
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0041e5ae
mov esp, ebp
pop ebp
ret
Function at 0x4157e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x41583e
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x415800
mov eax, dword [edi]
jmp 0x415929
cmp eax, 0x4e0
jb 0x415929
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x415860
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x4158b0
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a680
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x42c008]
xor eax, esp
mov dword [esp + 0x44], eax
cmp dword [0x42dcbc], 0x10
lea ecx, [esp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov eax, 0x42dca8
cmovae eax, dword [0x42dca8]
push edi
mov edi, dword [ebp + 0xc]
push ecx
push 0x20019
push 0
push eax
push dword [0x42dca4]
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41a7c6
cmp dword [edi + 0x14], 0x10
mov dword [esp + 0x1c], eax
mov eax, edi
jb 0x41a6e2
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push eax
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41a7bc
push dword [esp + 0x1c]
call fcn.0041e9e9
add esp, 4
mov dword [esp + 0x14], eax
cmp dword [edi + 0x14], 0x10
jb 0x41a718
mov edi, dword [edi]
lea ecx, [esp + 0x1c]
push ecx
push eax
push 0
push 0
push edi
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, dword [esp + 0x14]
test eax, eax
jne 0x41a7b3
mov ecx, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0xf
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a750
sub ecx, edx
push ecx
push edi
lea ecx, [esp + 0x28]
call fcn.0040c3d0
push edi
call fcn.0041e640
add esp, 4
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [esp + 0x20]
mov dword [esi], 0
mov eax, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [esp + 0x30]
movq qword [esi + 0x10], xmm0
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0041e5ae
mov esp, ebp
pop ebp
ret 8
push edi
call fcn.0041e640
add esp, 4
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
mov dword [esi], 0
mov ecx, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push 0x4244ab
mov byte [esi], 0
call fcn.0040c3d0
mov ecx, dword [esp + 0x4c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0041e5ae
mov esp, ebp
pop ebp
ret 8
Function at 0x41aad0
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0x11
mov dword [ebp - 8], 4
call edi
push 0x288
mov dword [ebp - 0xc], eax
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x41ab14
push str.Error_allocating_memory_needed_to_call_GetAdaptersinfo_n
call fcn.004013a0
add esp, 4
mov ebx, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 8]
push eax
push esi
call ebx
cmp eax, 0x6f
jne 0x41ab41
push dword [ebp - 8]
call edi
mov esi, eax
add esp, 4
test esi, esi
jne 0x41ab41
push str.Error_allocating_memory_needed_to_call_GetAdaptersinfo_n
call fcn.004013a0
add esp, 4
lea eax, [ebp - 8]
push eax
push esi
call ebx
test eax, eax
jne 0x41abb2
movzx eax, byte [esi + 0x199]
mov ebx, dword [ebp - 0xc]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
push str._02X_02X_02X_02X_02X_02X
push ebx
call fcn.00401410
push ebx
lea eax, [esi + 0x1b0]
push eax
push 0x4244ab
call fcn.004013a0
add esp, 0x2c
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e5ae
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0041e5ae
mov esp, ebp
pop ebp
ret

Function at 0x41abd0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422256
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x64
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword fs:[0x2c]
add esp, 4
mov edi, eax
mov dword [ebp - 0x14], 0x95a3158c
mov esi, dword [ecx]
mov ecx, dword [esi + 0x52c]
test cl, 1
jne 0x41ac75
or ecx, 1
mov dword [esi + 0x52c], ecx
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movlpd qword [ebp - 0x1c], xmm0
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov byte [esi + 0x528], 1
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x14]
mov byte [ecx + esi + 0x524], al
add ecx, 1
adc edx, 0
jne 0x41ac68
cmp ecx, 4
jb 0x41ac50
push 0x423a30
call fcn.0041ea92
add esp, 4
lea esi, [esi + 0x524]
mov ecx, esi
call fcn.0041cbe0
push 0xff
push 0x42caf0
push 0x42cae8
push 0x42cae0
push 0x42cae4
push 0xff
push 0x42c9e0
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [0x42cae4]
mov eax, ecx
shl eax, 5
add eax, ecx
push eax
imul eax, ecx, 0x19
push eax
push str._2x_2x
push edi
call fcn.00401410
add esp, 0x10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e5ae
mov esp, ebp
pop ebp
ret