joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401364
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x426200
sub eax, eax
test esi, esi
je 0x40143c
sub eax, 1
test ecx, ecx
je 0x40143a
test esi, 3
je 0x4013a2
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x401387
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x401421
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x4013ac
mov ecx, edx
test ecx, ecx
je 0x40143a
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x401427
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x4031d0
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edx, str.Hello_World__n
mov si, cx
call fcn.00406af0
mov edx, str.Hello_World__n
call fcn.00406af0
mov edx, str.Hello_World__n
call fcn.00406af0
mov edx, str.Hello_World__n
call fcn.00406af0
mov edx, str.Hello_World__n
call fcn.00406af0
mov edx, str.Hello_World__n
call fcn.00406af0
mov edx, str.Hello_World__n
call fcn.00406af0
mov edx, str.Hello_World__n
call fcn.00406af0
mov edx, str.Hello_World__n
call fcn.00406af0
mov edx, str.Hello_World__n
call fcn.00406af0
mov edx, str.Hello_World__n
call fcn.00406af0
mov edx, str.Hello_World__n
call fcn.00406af0
mov edx, str.Hello_World__n
call fcn.00406af0
mov edx, str.Hello_World__n
call fcn.00406af0
mov edx, str.Hello_World__n
call fcn.00406af0
mov edx, str.Hello_World__n
call fcn.00406af0
mov edx, str.Hello_World__n
call fcn.00406af0
push 0x4319fb
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov edx, str.Hello_World__n
mov edi, eax
call fcn.00406af0
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
movzx eax, si
mov esi, 0x641
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0xa
nop
push 0
push esi
push 0x4ea
push edi
call ebx
push dword [esp + 0x14]
push esi
push 0x4e9
push edi
call ebx
inc esi
sub dword [esp + 0x10], 1
jne 0x4032c0
mov edx, 0x431ab8
call fcn.00406af0
mov edx, str.Hello_World__n
call fcn.00406af0
push 0
push 5
push 0x312
push edi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4033c0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424fdb
mov eax, dword fs:[0]
push eax
sub esp, 0x8d0
mov eax, dword [0x43504c]
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 edi, edx
mov esi, ecx
mov byte [ebp - 0x814], 0
lea ecx, [ebp - 0x8dc]
push dword [ebp - 0x814]
call fcn.00407300
add esp, 4
lea ecx, [ebp - 0x8dc]
mov dword [ebp - 4], 0
call fcn.00403310
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x8c8]
cmp edx, 8
jb 0x403466
mov ecx, dword [ebp - 0x8dc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40345c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40360c
push edx
push ecx
call fcn.0040893e
add esp, 8
xor eax, eax
mov dword [ebp - 0x8cc], 0
push eax
push eax
push eax
push eax
push str.HTTP_GET
mov dword [ebp - 0x8c8], 7
mov word [ebp - 0x8dc], ax
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp dword [esi + 0x14], 0x10
mov ebx, eax
jb 0x40349c
mov esi, dword [esi]
push 0
push 0x400100
push 0
push 0
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
push 0xb0
mov esi, eax
lea eax, [ebp - 0x8c4]
push 0
push eax
call fcn.0040a110
add esp, 0xc
cmp dword [edi + 0x14], 0x10
jb 0x4034cf
mov edi, dword [edi]
sub esp, 8
lea ecx, [ebp - 0x8c4]
push 0x20
push edi
call fcn.00404d20
mov eax, dword [ebp - 0x8c4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x8c4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x8c8], eax
mov dword [ebp - 4], 1
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x814]
push eax
push 0x800
lea eax, [ebp - 0x810]
push eax
push esi
call edi
test eax, eax
je 0x40359b
push 0
push dword [ebp - 0x814]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x8c4]
call fcn.00405330
cmp dword [ebp - 0x814], 0
jne 0x403514
lea ecx, [ebp - 0x8c0]
call fcn.00405e30
test eax, eax
jne 0x40358b
mov eax, dword [ebp - 0x8c4]
lea ecx, [ebp - 0x8c4]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00402350
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
mov bl, 1
jmp 0x4035e3
lea ecx, [ebp - 0x8c0]
call fcn.00405e30
test eax, eax
jne 0x4035d5
mov eax, dword [ebp - 0x8c4]
lea ecx, [ebp - 0x8c4]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00402350
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
xor bl, bl
lea ecx, [ebp - 0x8c4]
call fcn.00403620
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 - 0x10]
xor ecx, ebp
call fcn.004086f9
mov esp, ebp
pop ebp
ret
call fcn.0040fa03
int3
Function at 0x403850
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
push esi
push edi
push 0x431ac8
push ecx
mov dword [esp + 0x40], edx
call fcn.0040d098
mov edi, eax
add esp, 8
test edi, edi
jne 0x40388b
push str._nERR:_unable_to_open_input_file_n
call fcn.00401520
add esp, 4
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push 0
push edi
call fcn.0040d95b
add esp, 0xc
push edi
call fcn.0040cd76
add esp, 4
mov ebx, eax
push 0
push 0
push edi
call fcn.0040d95b
add esp, 0xc
push ebx
call fcn.0040fa54
mov esi, eax
add esp, 4
mov dword [esp + 0x34], esi
test esi, esi
jne 0x4038dc
push str._nERR:_not_enough_memory_n
call fcn.00401520
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push ebx
push 1
push esi
call fcn.0040f70c
add esp, 0x10
cmp eax, ebx
je 0x403906
push str._nERR:_error_reading_from_input_file_n
call fcn.00401520
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00401080
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
jne 0x403931
push str._nERR:_compressed_data_error_n
call fcn.00401520
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call fcn.0040fa54
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4038c3
call fcn.0040cf7c
push dword [esp + 0x28]
mov esi, eax
push dword [esp + 0x30]
push ebx
push dword [esp + 0x40]
call section..text
add esp, 0x10
mov dword [esp + 0x30], eax
call fcn.0040cf7c
sub eax, esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
cmp esi, dword [esp + 0x28]
je 0x403990
push str._nERR:_an_error_occured_while_decompressing_n
call fcn.00401520
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x431b80
push dword [esp + 0x3c]
call fcn.0040d098
add esp, 8
mov dword [esp + 0x38], eax
test eax, eax
jne 0x4039c2
push str._nERR:_unable_to_create_output_file_n
call fcn.00401520
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push esi
mov esi, dword [esp + 0x34]
push 1
push esi
call fcn.0040f0f8
movd xmm0, dword [esp + 0x4c]
add esp, 8
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x431cf0]
movsd qword [esp], xmm0
push dword [esp + 0x38]
push ebx
push str.Decompressed__u_____u_bytes_in__.2f_seconds_n
call fcn.00401520
add esp, 0x14
push edi
call fcn.0040d600
add esp, 4
push dword [esp + 0x38]
call fcn.0040d600
add esp, 4
push dword [esp + 0x34]
call fcn.0040f363
add esp, 4
push esi
call fcn.0040f363
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x404507
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x4044f6
jg 0x404460
test edx, edx
je 0x4044f6
nop dword [eax]
call fcn.00405f20
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4044b3
jg 0x404477
test esi, esi
je 0x4044b3
cmp ebx, eax
jg 0x404487
jl 0x404481
cmp edi, esi
jae 0x404487
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
push esi
push dword [esp + 0x14]
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.00409b90
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x4044da
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x4044f0
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x404460
jl 0x4044f0
test edi, edi
jne 0x404460
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 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 + 0x10], eax
test eax, eax
je 0x404529
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x40452b
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x4045a9
jg 0x40453e
test esi, esi
je 0x4045a9
test eax, eax
jl 0x40458d
jg 0x404548
test ebx, ebx
je 0x40458d
cmp edi, eax
jg 0x404558
jl 0x404552
cmp esi, ebx
jae 0x404558
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.00409b90
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x4045a9
jg 0x404590
test esi, esi
je 0x4045a9
jmp 0x404590
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x4045a9
push eax
push esi
push 1
push edx
call fcn.0040f0f8
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 0x4045c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x4045f2
jl 0x4045e5
test ecx, ecx
jne 0x4045f2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4046b2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00405f40
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40465e
jg 0x40461d
test esi, esi
je 0x40465e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x404635
mov eax, dword [esp + 0x10]
jl 0x40462f
cmp eax, esi
jae 0x404635
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.00409b90
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x40467f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x40469b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x404604
jl 0x40469b
test ecx, ecx
jne 0x404604
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x4046eb
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x4046eb
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.00409b90
mov eax, dword [ebx + 0x2c]
add esp, 0xc
add dword [esp + 0xc], esi
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x40475b
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x404711
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x404744
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0040f70c
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x40476f
cmp edi, eax
ja 0x404720
test ecx, ecx
je 0x40475b
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0040f70c
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
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 0x404ae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x43504c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x404b10
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004086f9
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x404b4c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x404b4c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004086f9
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x404c36
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x404b74
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 0x404ba7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0040cdaa
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.004086f9
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x25], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
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 edx
sub eax, 0
je 0x404c09
sub eax, 1
je 0x404c09
sub eax, 2
jne 0x404c36
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0040cdaa
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.004086f9
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x404c26
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040f0f8
add esp, 0x10
cmp edi, eax
jne 0x404c36
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x404b37
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004086f9
mov esp, ebp
pop ebp
ret 4
Function at 0x405c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x43504c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x405d0c
cmp byte [esi + 0x3d], 0
je 0x405d0c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x405cfa
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
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 edx
sub eax, 0
je 0x405cc2
sub eax, 1
je 0x405cc6
sub eax, 2
jne 0x405cfa
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004086f9
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x405ce3
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040f0f8
add esp, 0x10
cmp edi, eax
jne 0x405cfa
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004086f9
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004086f9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004086f9
mov esp, ebp
pop ebp
ret

Function at 0x406580
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4252d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43504c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00408909
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00407d51
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
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 0x4170f8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416f6e
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
mov ecx, 0x30e74fbf
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
mov ecx, 0x2a1152f9
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x413b70
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
push ebx
push esi
push edi
lea edi, [ebp - 0x2c]
mov ecx, 0xb
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x42a15c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x42d028
call fcn.00411686
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x1b], 0
mov byte [ebp - 0x1a], 0
mov byte [ebp - 0x19], 0
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x17], 5
cmp dword [0x42a778], 0
jne 0x413bc5
call fcn.004134c0
xor eax, eax
jne 0x413bb7
cmp dword [0x42a778], 3
jg 0x413bd9
mov eax, 1
jmp 0x413c48
mov esi, esp
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp esi, esp
call fcn.004114a6
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x413c45
mov esi, esp
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp esi, esp
call fcn.004114a6
test eax, eax
jne 0x413c32
mov dword [ebp - 0xc], 0
mov esi, esp
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp esi, esp
call fcn.004114a6
mov eax, dword [ebp - 0xc]
push edx
mov ecx, ebp
push eax
lea edx, [0x413c78]
call fcn.004113e3
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004112c1
add esp, 0xec
cmp ebp, esp
call fcn.004114a6
mov esp, ebp
pop ebp
ret