joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ccb8
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf0
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x14]
test ebx, ebx
js 0x44ccd5
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x44ccce
mov ecx, esp
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor edi, edi
xor ebx, ebx
lea eax, [ebp - 0x410]
mov dword [eax], ebx
inc ebx
add eax, 4
cmp ebx, 0x100
jne 0x44ccea
xor ebx, ebx
lea esi, [ebp - 0x410]
mov eax, dword [ebp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
call fcn.00405390
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + eax]
add edi, dword [esi]
add eax, edi
cdq
call fcn.00405390
mov edi, eax
mov al, byte [esi]
mov edx, dword [ebp + edi*4 - 0x410]
mov dword [esi], edx
and eax, 0xff
mov dword [ebp + edi*4 - 0x410], eax
inc ebx
add esi, 4
cmp ebx, 0x100
jne 0x44cd00
xor ebx, ebx
mov eax, dword [ebp - 4]
dec eax
test eax, eax
jb 0x44cdd2
inc eax
mov dword [ebp - 0x10], eax
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
xor edx, edx
push edx
push eax
lea eax, [ebx + 1]
cdq
call fcn.00405390
mov ebx, eax
mov eax, dword [ebp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp + ebx*4 - 0x410]
add eax, edi
cdq
call fcn.00405390
mov edi, eax
mov al, byte [ebp + ebx*4 - 0x410]
mov edx, dword [ebp + edi*4 - 0x410]
mov dword [ebp + ebx*4 - 0x410], edx
and eax, 0xff
mov dword [ebp + edi*4 - 0x410], eax
mov eax, dword [ebp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp + ebx*4 - 0x410]
add eax, dword [ebp + edi*4 - 0x410]
cdq
call fcn.00405390
mov al, byte [ebp + eax*4 - 0x410]
xor byte [esi], al
inc esi
dec dword [ebp - 0x10]
jne 0x44cd5d
mov edi, dword [ebp - 0x41c]
mov esi, dword [ebp - 0x418]
mov ebx, dword [ebp - 0x414]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10001920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1000194c
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 + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x10001974
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1000197a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x100019e2
jg 0x10001991
test esi, esi
je 0x100019e2
test ecx, ecx
jl 0x100019dd
jg 0x1000199b
test eax, eax
je 0x100019dd
cmp edi, ecx
jg 0x100019af
jl 0x100019a5
cmp esi, eax
jae 0x100019af
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x100019e5
mov ecx, dword [ebp + 8]
jmp 0x100019ef
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10001a09
jg 0x100019ef
test esi, esi
je 0x10001a09
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10001a09
push eax
push esi
push 1
push ecx
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 + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10001a20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x10001a4c
jl 0x10001a40
test ecx, ecx
jne 0x10001a4c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10001a65
push eax
push ecx
push esi
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, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x10001ab3
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x10001ab9
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x10001ab9
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x10001b26
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10001ae2
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 [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x10001b14
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10001b26
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10001af0
test edi, edi
je 0x10001b26
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10001ea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10007040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10001ed0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100032a2
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10001f0c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x10001f0c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100032a2
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10001fe3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10001f34
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 0x10001f40
movsx eax, bl
jmp 0x10001f78
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 0x10001fa2
sub eax, 1
je 0x10001fa2
sub eax, 2
jne 0x10001fe3
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
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100032a2
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10001fc0
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 0x10001fe3
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100032a2
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.100032a2
mov esp, ebp
pop ebp
ret 4
Function at 0x100023b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10007040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1000246c
cmp byte [esi + 0x3d], 0
je 0x1000246c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1000245a
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 0x10002421
sub eax, 1
je 0x10002425
sub eax, 2
jne 0x1000245a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100032a2
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10002443
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 0x1000245a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100032a2
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100032a2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.100032a2
mov esp, ebp
pop ebp
ret
Function at 0x401050
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b5863
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x65ee20]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, 7
xor edi, edi
xor ecx, ecx
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], edi
mov word [esi + 4], cx
mov dword [esp + 0x14], edi
xor edx, edx
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], edi
mov word [esi + 0x20], dx
mov byte [esp + 0x14], 1
push 4
mov dword [esi + 0x5c], edi
call fcn.0044f931
add esp, 4
cmp eax, edi
je 0x4010b3
mov dword [eax], edi
jmp 0x4010b5
xor eax, eax
push 0xc
mov dword [esi + 0x60], eax
call fcn.0044f931
add esp, 4
cmp eax, edi
je 0x4010d0
mov dword [eax + 8], edi
mov dword [eax + 4], edi
mov dword [eax], edi
jmp 0x4010d2
xor eax, eax
push edi
mov ecx, esi
mov dword [esi + 0x64], eax
mov dword [esi + 0x58], edi
call fcn.004150d0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x411760
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b5863
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x65ee20]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, 7
xor edi, edi
xor ecx, ecx
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], edi
mov word [esi + 4], cx
mov dword [esp + 0x14], edi
xor edx, edx
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], edi
mov word [esi + 0x20], dx
mov byte [esp + 0x14], 1
push 4
mov dword [esi + 0x5c], edi
call fcn.0044f931
add esp, 4
cmp eax, edi
je 0x4117c3
mov dword [eax], edi
jmp 0x4117c5
xor eax, eax
push 0xc
mov dword [esi + 0x60], eax
call fcn.0044f931
add esp, 4
cmp eax, edi
je 0x4117e0
mov dword [eax + 8], edi
mov dword [eax + 4], edi
mov dword [eax], edi
jmp 0x4117e2
xor eax, eax
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x20]
push eax
mov ecx, esi
mov dword [esi + 0x58], edi
call fcn.004150d0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x413800
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push eax
push 1
push ecx
push edi
call fcn.00588e30
mov ecx, dword [esi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
sete bl
cdq
idiv dword [esi + 0x18]
mov byte [esp + 0x12], bl
mov dword [esi + 0x1c], eax
test bl, bl
je 0x413979
add dword [esi + 0x14], ecx
cmp dword [esi + 0x54], 8
push 0xffffffffffffffff
push eax
push 0x18
push ecx
mov ecx, esp
jb 0x413853
mov eax, dword [esi + 0x40]
jmp 0x413856
lea eax, [esi + 0x40]
mov dword [ecx], eax
push ecx
mov eax, esp
mov dword [eax], str.read
lea eax, [esi + 0x20]
push eax
mov dword [esp + 0x2c], eax
call fcn.004119b0
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
add esp, 0x18
xor ebp, ebp
xor eax, eax
cmp ecx, 1
sete byte [esp + 0x13]
test ebx, ebx
je 0x413914
xor edx, edx
dec ebx
cmp byte [esp + 0x13], dl
je 0x413898
cmp byte [edi], dl
jmp 0x41389c
cmp word [edi], 0
sete dl
test edx, edx
je 0x4138c6
test eax, eax
je 0x4138bf
cmp edi, eax
je 0x4138bf
imul ecx, ebp
mov edx, edi
sub edx, eax
push edx
push eax
sub eax, ecx
push eax
call fcn.0058fba0
add esp, 0xc
mov ecx, dword [esi + 0x18]
lea eax, [ecx + edi]
inc ebp
add edi, ecx
test ebx, ebx
jne 0x41388b
test eax, eax
je 0x4138e9
cmp edi, eax
je 0x4138e9
mov ecx, dword [esi + 0x18]
imul ecx, ebp
sub edi, eax
push edi
push eax
sub eax, ecx
push eax
call fcn.0058fba0
add esp, 0xc
test ebp, ebp
je 0x413914
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebp
push 1
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edx
mov dword [eax], str.nulls_removed
call fcn.004119b0
add esp, 0x18
sub dword [esi + 0x1c], ebp
cmp dword [esi + 0x18], 1
jle 0x41396b
test byte [esi + 4], 0x80
je 0x41396b
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x413946
jmp 0x413930
mov ecx, dword [esp + 0x1c]
movzx eax, word [ecx + esi*2 - 2]
dec esi
rol ax, 8
mov word [ecx + esi*2], ax
test esi, esi
jne 0x413930
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], str.endian_swap
mov eax, dword [esp + 0x28]
push eax
call fcn.004119b0
add esp, 0x18
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
call fcn.004131f0
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 8
ret 4
Function at 0x413e90
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
imul ecx, eax
push edi
mov dword [esi + 8], ecx
test ebp, ebp
jne 0x413eac
mov ebp, edx
mov ecx, dword [esi + 4]
xor edi, edi
test cl, cl
jns 0x413f26
test edx, edx
jne 0x413ee5
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044f96b
mov edi, eax
mov eax, dword [esi + 0x1c]
add eax, eax
push eax
push ebp
push edi
call fcn.0058c780
add esp, 0x10
mov edx, edi
mov ebp, edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x413f02
lea esp, [esp]
movzx ecx, word [edx + eax*2 - 2]
dec eax
rol cx, 8
mov word [edx + eax*2], cx
test eax, eax
jne 0x413ef0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
lea ecx, [esi + 0x20]
push ecx
mov dword [eax], str.endian_swap
call fcn.004119b0
add esp, 0x18
mov edx, dword [esi]
mov eax, dword [esi + 8]
push edx
push 1
push eax
push ebp
call fcn.0058fa80
add esp, 0x10
cmp eax, 1
sete bl
test edi, edi
je 0x413f4b
push edi
call fcn.0044f960
add esp, 4
test bl, bl
je 0x413f8e
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
add dword [esi + 0x14], ecx
cmp dword [esi + 0x54], 8
push 0xffffffffffffffff
push edx
push 0x18
push ecx
mov ecx, esp
jb 0x413f6b
mov eax, dword [esi + 0x40]
jmp 0x413f6e
lea eax, [esi + 0x40]
push ecx
mov dword [ecx], eax
mov eax, esp
add esi, 0x20
push esi
mov dword [eax], str.write
call fcn.004119b0
add esp, 0x18
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
ret 4
push esi
call fcn.004131f0
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 4
Function at 0x415530
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5b5df9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65ee20]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x18], esi
lea edi, [ebp + 4]
xor eax, eax
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], esi
mov dword [esp + 0x1c], ebp
mov word [edi], ax
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], 1
mov ebx, eax
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x415590
sub eax, edx
mov esi, dword [ebp + 0x14]
sar eax, 1
mov ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [ecx + eax + 7]
cmp esi, eax
ja 0x4155e1
cmp dword [ebp + 0x18], eax
je 0x4155e1
push 1
push eax
mov eax, ebp
call fcn.0040e300
test al, al
je 0x4155e1
cmp dword [ebp + 0x18], 8
mov dword [ebp + 0x14], esi
jb 0x4155db
mov edi, dword [edi]
xor ecx, ecx
mov word [edi + esi*2], cx
movzx eax, word [ebx]
test ax, ax
je 0x4156fb
mov esi, dword [esp + 0x38]
and esi, 0x100
mov dword [esp + 0x14], esi
test esi, esi
je 0x415618
lea edx, [eax - 0x22]
cmp dx, 0x1c
ja 0x4156e1
movzx ecx, ax
movsx edi, byte [ecx + 0x637cb6]
jmp 0x41562f
lea edx, [eax - 0x26]
cmp dx, 0x18
ja 0x4156e1
movzx ecx, ax
movsx edi, byte [ecx + 0x637cd2]
test edi, edi
je 0x4156e1
test byte [esp + 0x38], 8
je 0x4156b7
cmp ax, 0x26
jne 0x4156b7
movzx eax, word [ebx + 2]
lea esi, [ebx + 2]
lea edx, [eax - 0x23]
cmp dx, 0x57
ja 0x415662
movzx ecx, ax
movsx ecx, byte [ecx + 0x637cf5]
test ecx, ecx
jne 0x415668
cmp ax, 0x7f
jbe 0x4156b7
movzx eax, word [esi + 2]
add esi, 2
cmp ax, 0x3b
je 0x41569f
lea edx, [eax - 0x2d]
cmp dx, 0x4d
ja 0x41568c
movzx ecx, ax
movsx ecx, byte [ecx + 0x637d4b]
test ecx, ecx
jne 0x415692
cmp ax, 0x7f
jbe 0x4156b7
movzx eax, word [esi + 2]
add esi, 2
cmp ax, 0x3b
jne 0x415675
mov eax, esi
sub eax, ebx
sar eax, 1
inc eax
push eax
push ebx
mov eax, ebp
call fcn.0040e060
mov ebx, esi
mov esi, dword [esp + 0x14]
jmp 0x4156eb
mov edx, dword [edi*4 + 0x660a94]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4156c3
sub eax, esi
sar eax, 1
push eax
push edx
mov eax, ebp
call fcn.0040e060
mov esi, dword [esp + 0x14]
jmp 0x4156eb
push 1
push ebx
mov eax, ebp
call fcn.0040e060
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
jne 0x4155fb
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x4188b0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5b5d28
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x65ee20]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.0040d030
mov eax, 0x638608
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x418910
sub eax, edx
sar eax, 1
push eax
push 0x638608
lea eax, [esp + 0x14]
call fcn.0040e060
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.0040d030
cmp dword [esp + 0x24], 8
jb 0x41895c
mov edx, dword [esp + 0x10]
push edx
call fcn.0044f960
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x418a40
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
cmp byte [0x6684bc], 0
je 0x418a58
cmp byte [esp + 4], 0
jne 0x418a58
mov eax, 0x11
ret 4
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [edi + 8], eax
test eax, eax
jge 0x418a6c
xor eax, eax
ret 4
push esi
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jge 0x418a90
cmp eax, 0x80010119
jne 0x418aed
lea esi, [edi + 4]
push esi
push 0x632a0c
push 1
push 0
push 0x632adc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x418ae7
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push str.rootCIMV2
push eax
call edx
test eax, eax
jl 0x418ae7
mov eax, dword [edi]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jge 0x418aed
xor eax, eax
pop esi
ret 4
mov byte [0x6684bc], 1
mov eax, 1
pop esi
ret 4
Function at 0x41c4e0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5b7a10
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x65ee20]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov eax, dword [0x65ee20]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor esi, esi
push esi
push esi
push esi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
push esi
push esi
push 0x6385c0
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ebx, dword [esp + 0x14]
xor eax, eax
lea esi, [esp + 0x1c]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x1c], 0
mov dword [esp + 0x1d], eax
mov word [esp + 0x21], ax
mov byte [esp + 0x23], al
call fcn.0041c3d0
mov dl, byte [esp + 0x12]
add byte [esp + 0x1c], dl
mov cl, byte [esp + 0x21]
mov al, byte [esp + 0x1e]
add al, byte [esp + 0x13]
add byte [esp + 0x1f], bl
add cl, dl
movzx edx, bh
push edx
movzx edx, bl
push edx
movzx edx, byte [esp + 0x28]
movzx ecx, cl
push ecx
movzx ecx, byte [esp + 0x2b]
push edx
push ecx
movzx ecx, byte [esp + 0x30]
movzx edx, al
movzx eax, byte [esp + 0x31]
push edx
push eax
push ecx
push str._02X_02X_02X_02X_02X_02X_02X_02X
lea edx, [esp + 0x54]
push 0x11
push edx
call fcn.0058908a
add esp, 0x2c
lea eax, [esp + 0x30]
push eax
lea ebx, [esp + 0x14]
call fcn.00410ef0
xor ebx, ebx
mov dword [esp + 0x50], ebx
mov esi, dword [eax]
cmp esi, ebx
je 0x41c5de
cmp dword [esi + 4], ebx
jne 0x41c5d9
mov ecx, dword [esi]
push ecx
call fcn.005ac940
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x41c5e0
xor esi, esi
push esi
lea ecx, [esp + 0x20]
call fcn.00424ef0
push eax
push str.MachId
mov ecx, edi
mov byte [esp + 0x58], 1
call fcn.004260c0
mov ecx, eax
call fcn.00425350
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], bl
call fcn.00425250
mov esi, dword [esp + 0x10]
cmp esi, ebx
je 0x41c650
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x41c650
cmp esi, ebx
je 0x41c650
mov eax, dword [esi]
cmp eax, ebx
je 0x41c637
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x41c647
push eax
call fcn.0044f960
add esp, 4
push esi
call fcn.0044f960
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0058845d
add esp, 0x48
ret