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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x42df03
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42df13
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x42e035
test ebx, ebx
jl 0x42e035
test esi, esi
jle 0x42e035
mov eax, dword [ebp - 8]
call fcn.0040a640
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040a640
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x42dfd2
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x42e035
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42dfb7
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42df86
inc dword [ebp - 0x14]
jmp 0x42df96
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x42df96
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x42dfa1
or eax, 0xffffffff
jmp 0x42dfb7
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42dfb4
inc eax
jmp 0x42dfb7
or eax, 0xffffffff
test eax, eax
jl 0x42dfbf
cmp esi, eax
jg 0x42df74
cmp esi, eax
jg 0x42dfca
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42e038
inc edx
dec dword [ebp - 0x1c]
jne 0x42df70
jmp 0x42e035
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x42e035
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42e01c
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42dffb
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x42e006
or eax, 0xffffffff
jmp 0x42e01c
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42e019
inc eax
jmp 0x42e01c
or eax, 0xffffffff
test eax, eax
jl 0x42e024
cmp esi, eax
jg 0x42dfe4
cmp esi, eax
jg 0x42e02f
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42e038
inc edx
dec dword [ebp - 0x1c]
jne 0x42dfe0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43d580
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x43d588
mov eax, edx
pop esi
pop ebx
ret
Function at 0x4b7c18
Capabilities:
Encode data using xor

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x4b7c2f
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x4b7c1f
mov eax, ecx
pop ebx
ret

Function at 0x4e5a44
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4e5a4a
ret

Function at 0x4ec068
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, esi
call fcn.004ebef8
lea edx, [ebp - 0x22]
mov ecx, 0x16
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0x22], 0x9ac6cdd7
jne 0x4ec0aa
lea eax, [ebp - 0x22]
call fcn.004e96c8
cmp ax, word [ebp - 0xe]
je 0x4ec0af
call fcn.004e8660
sub dword [ebp - 8], 0x16
mov eax, dword [ebp - 8]
call fcn.00406fa4
mov dword [ebp - 0xc], eax
mov ebx, dword [esi + 0x30]
xor eax, eax
push ebp
push 0x4ec1d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [esi + 0x30]
movzx edx, word [ebp - 0x14]
mov word [eax + 0x18], dx
cmp word [ebp - 0x14], 0
jne 0x4ec0f5
mov word [ebp - 0x14], 0x60
movzx eax, word [ebp - 0x14]
push eax
push 0x9ec
movsx eax, word [ebp - 0x18]
movsx edx, word [ebp - 0x1c]
sub eax, edx
push eax
call fcn.00413844
mov dword [ebx + 0xc], eax
movzx eax, word [ebp - 0x14]
push eax
push 0x9ec
movsx eax, word [ebp - 0x16]
movsx edx, word [ebp - 0x1a]
sub eax, edx
push eax
call fcn.00413844
mov dword [ebx + 0x10], eax
mov dword [ebp - 0x34], 8
xor eax, eax
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.00413cec
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
jne 0x4ec166
call fcn.004e8660
lea eax, [ebp - 0xa0]
push eax
push 0x6c
mov eax, dword [ebx + 8]
push eax
call fcn.00413b3c
mov dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 8]
push eax
call fcn.00413a8c
lea eax, [ebp - 0x34]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.00413cec
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
jne 0x4ec1ba
call fcn.004e8660
mov byte [esi + 0x34], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ec1e0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00406fc0
pop eax
jmp eax

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, eax
and eax, 0xff
shr ecx, 8
inc edx
xor ecx, dword [eax*4 + 0x6f0c74]
cmp edx, 4
mov eax, ecx
jl 0x503968
pop ebp
ret
Function at 0x503984
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, eax
inc edx
shr eax, 0x18
and eax, 0xff
shl ecx, 8
xor ecx, dword [eax*4 + 0x6f1074]
cmp edx, 4
mov eax, ecx
jl 0x50398c
pop ebp
ret
Function at 0x571414
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff70
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x90], ebx
mov byte [ebp - 5], cl
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5714f0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 5], 0
je 0x5714a4
cmp esi, 0x40
jle 0x571480
lea ecx, [ebp - 0x90]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0057753c
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x8c]
call fcn.00577c80
mov eax, dword [ebp - 0x8c]
xor edx, edx
call fcn.00571500
mov ebx, eax
jmp 0x5714d0
push esi
lea eax, [ebp - 0x86]
push eax
push esi
mov eax, dword [ebp - 4]
push eax
push 0x200
push 0
call fcn.004137f4
mov esi, eax
lea eax, [ebp - 0x86]
mov dword [ebp - 4], eax
xor ebx, ebx
test esi, esi
jle 0x5714d0
shl ebx, 4
mov eax, dword [ebp - 4]
movzx eax, word [eax]
add ebx, eax
mov eax, 0xf0000000
and eax, ebx
mov edx, eax
shr edx, 0x18
xor ebx, edx
not eax
and ebx, eax
dec esi
add dword [ebp - 4], 2
test esi, esi
jg 0x5714aa
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5714f7
lea eax, [ebp - 0x90]
mov edx, 2
call fcn.00409b7c
pop eax
jmp eax

Function at 0x571874
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test eax, eax
jbe 0x5718a6
mov esi, dword [edx]
shr esi, 0x18
and esi, 0xff
movzx edi, byte [ecx]
xor esi, edi
mov esi, dword [ebx + esi*4]
mov edi, dword [edx]
shl edi, 8
xor esi, edi
mov dword [edx], esi
inc ecx
dec eax
test eax, eax
ja 0x571884
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x6305fc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov byte [ebx + 0x30], 1
mov eax, dword [ebx + 0x2c]
xor edx, edx
call fcn.00631304
mov eax, dword [ebx + 0x28]
xor edx, edx
call fcn.00630bdc
lea eax, [ebx + 0x20]
mov edx, esi
call fcn.00409f0c
mov edx, dword [ebp - 4]
mov eax, dword [0x62d3e0]
call fcn.0062f4a0
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x6306b8
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebx + 0x28]
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, esi
call fcn.0040a640
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x63066e
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
jmp 0x630697
mov ebx, dword [ebp - 0xc]
dec ebx
test ebx, ebx
jl 0x630697
inc ebx
xor esi, esi
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edi, dword [eax + esi*4]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call edi
test al, al
jne 0x630697
inc esi
dec ebx
jne 0x63067e
mov eax, dword [ebp - 0x10]
cmp word [eax], 0
jne 0x630673
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6306bf
mov eax, dword [ebp - 8]
call fcn.00407e08
pop eax
jmp eax

Function at 0x6a8684
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
xor eax, eax
mov ecx, dword [ebp + 8]
dec ecx
test ecx, ecx
jl 0x6a86be
inc ecx
xor edx, edx
mov ebx, eax
add ebx, ebx
add ebx, ebx
shr eax, 0x1e
or ebx, eax
mov eax, dword [ebp - 8]
add eax, edx
mov esi, dword [ebp - 4]
movzx eax, word [esi + eax*2]
xor ebx, eax
mov eax, ebx
inc edx
dec ecx
jne 0x6a869f
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x6b4334
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, pe_nt_image_headers32
or ebx, 0x100
add edi, edi
mov edx, esi
mov eax, ebx
and edx, edi
shr eax, 8
add edx, esi
add edx, eax
mov ecx, dword [ebp - 8]
add edx, edx
mov eax, dword [ebp - 4]
add edx, ecx
mov ecx, ebx
shr ecx, 7
and ecx, 1
call fcn.006b42a4
add ebx, ebx
mov edx, ebx
xor edx, edi
not edx
and esi, edx
cmp ebx, 0x10000
jb 0x6b4353
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x6b43f8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
or edx, 0x100
mov esi, edx
mov edi, edx
shr esi, 8
shr edi, 7
movzx esi, word [eax + esi*2]
and edi, 1
neg edi
and edi, 0x7ff
xor esi, edi
sar esi, 4
add ebx, dword [ecx + esi*4]
add edx, edx
cmp edx, 0x10000
jb 0x6b4403
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x6b4434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov ebx, pe_nt_image_headers32
or edx, 0x100
add ecx, ecx
mov esi, ebx
mov edi, edx
and esi, ecx
shr edi, 8
add esi, ebx
add esi, edi
mov edi, dword [ebp - 4]
movzx esi, word [edi + esi*2]
mov edi, edx
add edx, edx
shr edi, 7
and edi, 1
neg edi
and edi, 0x7ff
xor esi, edi
mov edi, dword [ebp + 8]
sar esi, 4
add eax, dword [edi + esi*4]
mov esi, edx
xor esi, ecx
not esi
and ebx, esi
cmp edx, 0x10000
jb 0x6b444b
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x6b4538
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edx, dword [ebp + 8]
xor esi, esi
mov ecx, dword [ebp - 4]
mov edi, 1
shl edi, cl
or ebx, edi
cmp ebx, 1
je 0x6b457e
mov ecx, ebx
mov edi, ebx
shr ecx, 1
and edi, 1
neg edi
movzx ecx, word [eax + ecx*2]
and edi, 0x7ff
xor ecx, edi
sar ecx, 4
add esi, dword [edx + ecx*4]
shr ebx, 1
cmp ebx, 1
jne 0x6b455a
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x6b4588
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov ebx, 1
mov dword [ebp - 8], eax
mov eax, edx
test eax, eax
je 0x6b45d5
mov esi, dword [ebp - 4]
mov edx, ecx
and edx, 1
movzx esi, word [esi + ebx*2]
mov edi, edx
add ebx, ebx
neg edi
and edi, 0x7ff
xor esi, edi
mov edi, dword [ebp + 8]
sar esi, 4
shr ecx, 1
mov esi, dword [edi + esi*4]
add dword [ebp - 8], esi
or edx, ebx
mov ebx, edx
dec eax
test eax, eax
jne 0x6b45a4
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x6b7b9c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
mov ebx, eax
xor eax, eax
push esi
mov dword [ebx + 0x30], eax
xor edx, edx
mov dword [ebx + 0x50], edx
xor ecx, ecx
mov dword [ebx + 0x20], ecx
mov eax, ebx
call fcn.006b7b7c
xor ecx, ecx
lea edx, [ebx + 0x70]
mov ebx, edx
mov eax, ecx
xor edx, edx
mov esi, eax
and eax, 1
dec eax
inc edx
not eax
shr esi, 1
and eax, 0xedb88320
xor esi, eax
cmp edx, 8
mov eax, esi
jl 0x6b7bc1
mov dword [ebx], eax
inc ecx
add ebx, 4
cmp ecx, 0x100
jb 0x6b7bbd
pop esi
pop ebx
ret
Function at 0x4292e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov eax, ecx
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
cmp edi, 0x1f
jb 0x429480
test edx, 3
je 0x429312
movzx esi, byte [edx]
movzx ebx, al
inc edx
shr eax, 8
xor esi, ebx
xor eax, dword [ebp + esi*4]
dec edi
jmp 0x4292f7
xor eax, dword [edx]
lea edi, [edx + edi - 0x1b]
sub edx, edi
lea ebx, [ebx]
mov ecx, dword [edi + edx + 0xc]
mov ebx, dword [edi + edx + 8]
movzx esi, bl
xor ecx, dword [ebp + esi*4 + 0xc00]
movzx esi, bh
shr ebx, 0x10
xor ecx, dword [ebp + esi*4 + 0x800]
movzx esi, bl
shr ebx, 8
xor ecx, dword [ebp + esi*4 + 0x400]
xor ecx, dword [ebp + ebx*4]
mov ebx, dword [edi + edx + 4]
movzx esi, bl
xor ecx, dword [ebp + esi*4 + 0x1c00]
movzx esi, bh
shr ebx, 0x10
xor ecx, dword [ebp + esi*4 + 0x1800]
movzx esi, bl
shr ebx, 8
xor ecx, dword [ebp + esi*4 + 0x1400]
xor ecx, dword [ebp + ebx*4 + 0x1000]
movzx esi, al
mov ebx, eax
shr ebx, 0x18
xor ecx, dword [ebp + esi*4 + 0x2c00]
xor ecx, dword [ebp + ebx*4 + 0x2000]
ror eax, 0x10
movzx esi, al
shr eax, 0x18
xor ecx, dword [ebp + esi*4 + 0x2400]
xor ecx, dword [ebp + eax*4 + 0x2800]
mov eax, dword [edi + edx + 0x18]
mov ebx, dword [edi + edx + 0x14]
movzx esi, bl
xor eax, dword [ebp + esi*4 + 0xc00]
movzx esi, bh
shr ebx, 0x10
xor eax, dword [ebp + esi*4 + 0x800]
movzx esi, bl
shr ebx, 8
xor eax, dword [ebp + esi*4 + 0x400]
xor eax, dword [ebp + ebx*4]
mov ebx, dword [edi + edx + 0x10]
movzx esi, bl
xor eax, dword [ebp + esi*4 + 0x1c00]
movzx esi, bh
shr ebx, 0x10
xor eax, dword [ebp + esi*4 + 0x1800]
movzx esi, bl
shr ebx, 8
xor eax, dword [ebp + esi*4 + 0x1400]
xor eax, dword [ebp + ebx*4 + 0x1000]
movzx esi, cl
mov ebx, ecx
shr ebx, 0x18
xor eax, dword [ebp + esi*4 + 0x2c00]
xor eax, dword [ebp + ebx*4 + 0x2000]
ror ecx, 0x10
movzx esi, cl
shr ecx, 0x18
xor eax, dword [ebp + esi*4 + 0x2400]
xor eax, dword [ebp + ecx*4 + 0x2800]
add edx, 0x18
jae 0x429320
add edi, 0x18
sub edx, 0x18
movzx ebx, al
movzx ecx, ah
shr eax, 0x10
movzx esi, al
shr eax, 8
mov eax, dword [ebp + eax*4]
xor eax, dword [ebp + ebx*4 + 0xc00]
xor eax, dword [ebp + ecx*4 + 0x800]
xor eax, dword [ebp + esi*4 + 0x400]
add edx, 4
jb 0x429479
xor eax, dword [edi + edx]
jmp 0x429447
add edx, edi
add edi, 3
sub edi, edx
test edi, edi
je 0x429497
movzx esi, byte [edx]
movzx ebx, al
inc edx
shr eax, 8
xor esi, ebx
xor eax, dword [ebp + esi*4]
dec edi
jne 0x429484
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4011c0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x43c08c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, dword [ebp + 0x10]
mov esi, str.D:_D_OICI_GA___BG__D_OICI_GA___AN__A_OICI_GRGX___AU__A_OICI_GRGX___BA_
push edi
mov dword [ebp - 0x410], ecx
lea edi, [ebp - 0x98]
mov ebx, dword [ebp + 8]
mov ecx, 0x23
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x41c]
push 0
push eax
push 1
lea eax, [ebp - 0x98]
mov dword [ebp - 0x414], edx
push eax
mov dword [ebp - 0x420], 0xc
mov dword [ebp - 0x418], 0
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
jne 0x40126a
mov edi, dword [ebp - 0x40c]
push 0x437c94
push 0x200
push edi
call fcn.00402c70
add esp, 0xc
push 0
push 1
push 2
push 0
push 1
push 0xc0000000
push dword [ebp - 0x410]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx], eax
jmp 0x4012c2
push 0
push 1
push 2
lea eax, [ebp - 0x420]
push eax
push 1
push 0xc0000000
push dword [ebp - 0x410]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx], eax
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x4012bc
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp - 0x40c]
test eax, eax
je 0x4012c2
push 0x437cc8
push 0x200
push edi
call fcn.00402c70
add esp, 0xc
jmp 0x4012c2
mov edi, dword [ebp - 0x40c]
cmp dword [ebx], 0xffffffff
jne 0x401323
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x200
mov esi, eax
lea eax, [ebp - 0x408]
push eax
push 0x800
push esi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x410]
push str._OutputFile_
push 0x200
push edi
call fcn.00402c70
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040afb3
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x414]
push 0x437d50
movzx eax, ax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
lea ecx, [ebp - 0x424]
push ecx
push edi
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x401396
call dword [sym.imp.KERNEL32.dll_FreeResource]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040afb3
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_FreeResource]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
mov dword [ebx], 0
xor ecx, ebp
pop ebx
call fcn.0040afb3
mov esp, ebp
pop ebp
ret
Function at 0x401b40
Capabilities:
Extract resource via kernel32 functions
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb0
mov eax, dword [0x43c08c]
xor eax, esp
mov dword [esp + 0xac], eax
push esi
push edi
push 0x437d50
movzx eax, cx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x48], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0x67452301
mov dword [esp + 0x98], 0xefcdab89
mov dword [esp + 0x9c], 0x98badcfe
mov dword [esp + 0xa0], 0x10325476
call sym.YZAgentService.exe_public:_void___thiscall_MD5::update_unsigned_char_const___unsigned_int_
lea ecx, [esp + 0x40]
call sym.YZAgentService.exe_public:_class_MD5____thiscall_MD5::finalize_void_
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x44]
call sym.YZAgentService.exe_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_MD5::hexdigest_void_
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [esp + 0xc]
push ecx
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
lea ecx, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call sym.YZAgentService.exe_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_MD5::CalculateFileMD5_char_const___int__
cmp dword [esp + 0xc], 0xffffffff
jne 0x401c27
mov esi, 1
jmp 0x401c42
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.004020a0
test eax, eax
je 0x401c40
mov esi, 2
jmp 0x401c42
xor esi, esi
mov edx, dword [esp + 0x24]
cmp edx, 0x10
jb 0x401c78
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401c6e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401cf0
push edx
push ecx
call fcn.0040afa0
add esp, 8
mov edx, dword [esp + 0x3c]
cmp edx, 0x10
jb 0x401caa
mov ecx, dword [esp + 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401ca0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401cf0
push edx
push ecx
call fcn.0040afa0
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x401cda
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401cd0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401cf0
push edx
push ecx
call fcn.0040afa0
add esp, 8
mov ecx, dword [esp + 0xb4]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0040afb3
mov esp, ebp
pop ebp
ret
call fcn.0040fb59
int3
Function at 0x401d00
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x45c
mov eax, dword [0x43c08c]
xor eax, esp
mov dword [esp + 0x458], eax
mov eax, dword [0x437da0]
movq xmm0, qword [str.Users]
push esi
push 3
push 1
mov dword [esp + 0x40], eax
lea eax, [esp + 0x38]
push 0x10000000
push eax
movq qword [esp + 0x40], xmm0
lea eax, [esp + 0x20]
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
push eax
movups xmmword [esp + 0x50], xmm0
mov dword [esp + 0x68], 0
movq qword [esp + 0x60], xmm0
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameW]
lea eax, [esp + 8]
push eax
push 0
lea eax, [esp + 0x18]
push eax
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x401dda
mov eax, dword [ebp + 0x18]
push 0x437c90
push 2
lea esi, [eax + eax]
call fcn.00413c7a
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push esi
cmovae eax, dword [ebp + 8]
push eax
push 0x200
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00414260
add esp, 0x1c
lea eax, [esp + 0x58]
push 0
push dword [esp + 0xc]
push 0
push 0
push 4
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 0x80
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401e11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x401e13
xor esi, esi
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x401e43
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401e39
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401e58
push edx
push ecx
call fcn.0040afa0
add esp, 8
mov ecx, dword [esp + 0x45c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040afb3
mov esp, ebp
pop ebp
ret
call fcn.0040fb59
int3