joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a514
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x78e580]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x45a57e
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push eax
call fcn.0044b6eb
mov esi, eax
add esp, 0x14
test esi, esi
je 0x45a57e
push esi
call fcn.0044a338
pop ecx
lea edx, [eax - 1]
mov cl, byte [edx]
cmp cl, 0x5c
je 0x45a571
cmp cl, 0x2f
jne 0x45a578
cmp byte [eax - 2], 0x3a
cmovne eax, edx
mov byte [eax], bl
mov eax, esi
jmp 0x45a589
push 0x52c7f8
call fcn.00447c7a
pop ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004b5ec4
leave
ret
Function at 0x45ac4c
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, dword [esp + 8]
push dword [esi + 4]
call fcn.00441dce
mov eax, dword [esi]
pop ecx
xor ecx, ecx
mov dword [esi + 4], ecx
sub eax, ecx
je 0x45aca1
sub eax, 1
je 0x45ac95
sub eax, 1
je 0x45ac87
sub eax, 1
lea eax, [esi + 8]
push eax
je 0x45ac80
call fcn.0045f271
pop ecx
pop esi
ret
call fcn.0045f4a0
jmp 0x45ac7d
lea eax, [esi + 8]
push eax
call fcn.0045c96f
add esp, 4
pop esi
ret
mov dword [esi + 0x18], 0xc3d2e1f0
mov dword [esi + 0x20], ecx
jmp 0x45aca4
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x14], 0x10325476
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 8], 0x67452301
pop esi
ret
Function at 0x45c96f
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x24], 0
and dword [eax + 0x20], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret
Function at 0x45f271
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x3c], 0x47b5481d
mov byte [eax + 0xc0], cl
mov dword [eax + 0xc8], ecx
mov dword [eax + 0xcc], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], ecx
ret

Function at 0x45f4a0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov byte [eax + 0xc0], cl
mov dword [eax + 0xc8], ecx
mov dword [eax + 0xcc], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], ecx
ret
Function at 0x467b3b
Capabilities:
Terminate process

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x78e344
push edi
call fcn.0044d056
mov esi, eax
pop ecx
test esi, esi
jne 0x467b78
push 0x467e0b
push fcn.00441dce
push fcn.0044b15d
push fcn.0044b172
call fcn.0044ad85
mov esi, eax
push esi
push edi
call fcn.0044d0f2
add esp, 0x18
mov ebp, dword [esp + 0x1c]
push ebp
call fcn.00467d9e
test eax, eax
mov ebx, 0x52ae14
push ebp
push esi
cmovne ebx, eax
call fcn.0044ac12
mov edi, eax
add esp, 0xc
test edi, edi
je 0x467bb3
cmp dword [edi], 0
je 0x467bb3
push ebx
push dword [edi]
call fcn.004bb3f0
pop ecx
pop ecx
test eax, eax
je 0x467c5a
push ebp
push esi
call fcn.0044ade6
push 8
call fcn.0044c9bf
push 0
push 0x503798
push ebx
mov dword [esp + 0x28], eax
call fcn.004481b8
add esp, 0x18
mov dword [esp + 0x14], eax
mov edi, eax
mov ecx, dword [eax]
test ecx, ecx
je 0x467bff
mov ebp, dword [esp + 0x10]
push ecx
push ebp
call fcn.004677c9
pop ecx
pop ecx
lea edi, [edi + 4]
mov ecx, dword [edi]
test ecx, ecx
jne 0x467be5
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push eax
call fcn.00447f62
mov dword [esp], 0x52ae14
call fcn.00447c7a
mov edi, dword [esp + 0x14]
push eax
push edi
call fcn.0044c720
push 0
push edi
call fcn.0044c720
push 8
push 1
call fcn.00441e05
push ebx
mov edi, eax
call fcn.00447c7a
push 0
push dword [esp + 0x34]
mov dword [edi], eax
call fcn.0044c74b
add esp, 0x28
mov dword [edi + 4], eax
push edi
push ebp
call fcn.00447c7a
pop ecx
push eax
push esi
call fcn.0044aa72
add esp, 0xc
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x46b3f2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x78e580]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
mov esi, dword [esp + 0x218]
call fcn.004bb8cc
xor ebx, ebx
mov dword [eax], ebx
test esi, esi
jne 0x46b42e
call fcn.004bb8cc
mov dword [eax], 0xe
xor eax, eax
jmp 0x46b540
cmp word [esi], bx
jne 0x46b440
call fcn.004bb8cc
mov dword [eax], 0x14
jmp 0x46b427
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46b459
call fcn.004bb8cc
mov dword [eax], 2
jmp 0x46b427
test al, 0x10
je 0x46b433
push ebp
push 0x104
lea eax, [esp + 0x10]
push esi
push eax
call fcn.004cd544
push 0x548f5c
call fcn.004bb0d4
mov ebp, 0x50c7c0
mov esi, eax
push ebp
call fcn.004bb0d4
add esi, eax
lea eax, [esp + 0x20]
push eax
call fcn.004bb0d4
add eax, esi
lea eax, [eax*2 + 0x452]
push eax
call fcn.004c8776
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x46b4bb
call fcn.004bb8cc
mov dword [eax], 0xc
xor eax, eax
jmp 0x46b53f
push edi
lea eax, [esp + 0x10]
push eax
lea edi, [esi + 0x44c]
push edi
call fcn.004bd281
pop ecx
pop ecx
cmp word [edi], bx
je 0x46b501
push edi
call fcn.004bb0d4
pop ecx
cmp word [esi + eax*2 + 0x44a], 0x2f
je 0x46b501
push edi
call fcn.004bb0d4
pop ecx
cmp word [esi + eax*2 + 0x44a], 0x5c
je 0x46b501
push ebp
push edi
call fcn.004bd250
pop ecx
pop ecx
push 0x548f5c
push edi
call fcn.004bd250
or dword [esi + 0x444], 0xffffffff
xor eax, eax
push 0x20a
mov dword [esi + 0x234], eax
lea eax, [esi + 0x238]
push ebx
push eax
mov dword [esi + 0x448], ebx
mov dword [esi + 0x230], ebx
call fcn.004b6f20
add esp, 0x14
mov eax, esi
pop edi
pop ebp
mov ecx, dword [esp + 0x210]
pop esi
pop ebx
xor ecx, esp
call fcn.004b5ec4
add esp, 0x20c
ret
Function at 0x478fe2
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
push edi
sub eax, ebp
je 0x4790fe
sub eax, 1
je 0x479067
sub eax, 1
je 0x479037
sub eax, 1
jne 0x47916a
movzx edi, word [esi + 2]
and edi, 1
je 0x47916a
mov ebx, edi
shl ebx, 4
mov eax, dword [esi + 0xc]
lea ebx, [ebx - 8]
push esi
push dword [eax + ebx]
call dword [eax + ebx + 4]
pop ecx
pop ecx
sub edi, 1
jne 0x47901d
jmp 0x47916a
movzx edi, word [esi + 2]
and edi, 1
je 0x47916a
lea ebx, [edi*8 - 8]
mov ecx, dword [esi + 0xc]
mov eax, ebx
push esi
sub ebx, 8
push dword [ecx + eax]
call dword [ecx + eax + 4]
pop ecx
pop ecx
sub edi, 1
jne 0x47904b
jmp 0x47916a
mov eax, dword [esi]
or eax, 0x8000000
push eax
push dword [esi]
push esi
call fcn.0044131a
add esp, 0xc
test eax, eax
je 0x479067
mov ebx, 0x7f80000
jmp 0x4790db
mov ecx, dword [esi]
shr ecx, 0x13
dec ecx
shl ecx, 0x13
xor ecx, dword [esi]
and ecx, ebx
xor ecx, dword [esi]
push ecx
push dword [esi]
mov eax, ecx
shr eax, 0x13
push esi
movzx edi, al
call fcn.0044131a
add esp, 0xc
test eax, eax
je 0x479085
mov ecx, dword [esi]
mov eax, ecx
shr ecx, 0x11
shr eax, 0x10
and ecx, 3
and eax, 1
add ecx, edi
push esi
lea edx, [ecx + eax*2]
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + edx*8 + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + edx*8]
mov dword [esi + 8], eax
push dword [ecx + edx*8]
call dword [ecx + edx*8 + 4]
pop ecx
pop ecx
test dword [esi], ebx
jne 0x479085
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov eax, dword [esi]
and eax, 0xf7ffffff
push eax
push dword [esi]
push esi
call fcn.0044131a
add esp, 0xc
test eax, eax
je 0x4790e5
jmp 0x47916a
test dword [esi], 0x60000
je 0x479164
mov eax, dword [esi]
shr eax, 0x11
dec eax
shl eax, 0x11
xor eax, dword [esi]
and eax, 0x60000
xor eax, dword [esi]
push eax
push dword [esi]
mov ebp, eax
shr ebp, 0x11
push esi
and ebp, 3
call fcn.0044131a
add esp, 0xc
test eax, eax
je 0x479106
movzx eax, word [esi + 2]
mov ecx, dword [esi + 0xc]
and eax, 1
push esi
lea edx, [eax*2]
add edx, ebp
mov eax, dword [ecx + edx*8 + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + edx*8]
mov dword [esi + 8], eax
push dword [ecx + edx*8]
call dword [ecx + edx*8 + 4]
test dword [esi], 0x60000
pop ecx
pop ecx
jne 0x479106
xor ebp, ebp
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x47916f
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov ecx, dword [ebx]
mov eax, ecx
shr eax, 0x13
movzx edx, al
mov eax, ecx
shr eax, 0x10
and eax, 1
shr ecx, 0x11
and ecx, 3
add ecx, edx
lea edi, [eax*2 - 1]
mov eax, dword [ebx + 0xc]
add edi, ecx
lea edi, [eax + edi*8]
mov eax, edx
shl eax, 3
mov esi, edi
sub esi, eax
add esi, 8
cmp esi, edi
ja 0x4791c7
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
cmp dword [esi + 4], eax
jne 0x4791c0
cmp dword [esi], ecx
je 0x4791cd
add esi, 8
cmp esi, edi
jbe 0x4791b7
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [ebx]
and eax, 0xfff80000
dec eax
xor eax, dword [ebx]
and eax, 0x7f80000
xor eax, dword [ebx]
push eax
push dword [ebx]
push ebx
call fcn.0044131a
add esp, 0xc
test eax, eax
je 0x4791cd
cmp esi, edi
jae 0x4791fc
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [esi], ecx
mov dword [esi + 4], edx
xor eax, eax
inc eax
jmp 0x4791c9

Function at 0x4796cb
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push 8
mov edx, dword [esi]
mov eax, edx
shr eax, 0x13
movzx ecx, al
mov eax, edx
shr eax, 0x11
shr edx, 0xf
and eax, 3
and edx, 2
add ecx, eax
lea eax, [edx + 1]
add eax, ecx
push eax
push dword [esi + 0xc]
call fcn.00441e4b
mov edi, dword [esi]
mov ebx, eax
mov ecx, edi
mov dword [esi + 0xc], ebx
shr ecx, 0x13
add esp, 0xc
movzx eax, cl
test cl, cl
je 0x479737
mov edx, edi
shr edi, 0x11
shr edx, 0x10
and edi, 3
and edx, 1
add edx, edx
lea ecx, [edx + edi]
add edx, edi
add edx, eax
mov eax, dword [ebx + ecx*8]
mov ecx, dword [ebx + ecx*8 + 4]
mov dword [ebx + edx*8], eax
mov dword [ebx + edx*8 + 4], ecx
mov eax, dword [esi]
mov edx, eax
mov ecx, dword [esi + 0xc]
shr eax, 0xf
shr edx, 0x11
and eax, 2
and edx, 3
add edx, eax
mov eax, dword [esp + 0x14]
mov dword [ecx + edx*8], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x18]
mov dword [ecx + edx*8 + 4], eax
mov ecx, dword [esi]
lea eax, [ecx + 0x20000]
xor eax, ecx
and eax, 0x60000
xor eax, ecx
push eax
push ecx
push esi
call fcn.0044131a
add esp, 0xc
test eax, eax
je 0x47975e
pop edi
pop esi
pop ebx
ret

Function at 0x479782
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push 8
mov edx, dword [ebx]
mov eax, edx
shr eax, 0x13
movzx ecx, al
mov eax, edx
shr eax, 0x11
shr edx, 0xf
and eax, 3
and edx, 2
add ecx, eax
lea eax, [edx + 1]
add eax, ecx
push eax
push dword [ebx + 0xc]
call fcn.00441e4b
mov edx, dword [ebx]
mov edi, eax
mov eax, dword [esp + 0x20]
mov ecx, edx
shr ecx, 0x13
add esp, 0xc
movzx esi, cl
mov ecx, edx
shr ecx, 0x11
and ecx, 3
shr edx, 0xf
add esi, ecx
mov dword [ebx + 0xc], edi
and edx, 2
add esi, edx
mov dword [edi + esi*8], eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [esp + 0x18]
mov dword [ecx + esi*8 + 4], eax
mov ecx, dword [ebx]
lea eax, [ecx + 0x80000]
xor eax, ecx
and eax, 0x7f80000
xor eax, ecx
push eax
push ecx
push ebx
call fcn.0044131a
add esp, 0xc
test eax, eax
je 0x4797e9
pop edi
pop esi
pop ebx
ret
Function at 0x479ab5
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
mov edx, dword [esi]
lea ecx, [edx + 1]
xor ecx, edx
and ecx, 0x7fff
xor ecx, edx
push ecx
push edx
push esi
call fcn.0044131a
add esp, 0xc
test eax, eax
je 0x479aba
mov eax, esi
pop esi
ret

Function at 0x479b66
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, 0x7fff
push edi
mov eax, dword [esi]
and eax, ebx
cmp eax, 1
jne 0x479b82
push esi
call fcn.00479983
pop ecx
mov ecx, dword [esi]
lea eax, [ecx - 1]
xor eax, ecx
and eax, ebx
xor eax, ecx
push eax
push ecx
mov edi, eax
push esi
and edi, ebx
call fcn.0044131a
add esp, 0xc
test eax, eax
je 0x479b82
test edi, edi
jne 0x479bbf
push edi
push esi
call fcn.00478fe2
push dword [esi + 0xc]
call fcn.00441dce
lea eax, [esi - 0x10]
push eax
call fcn.00441dce
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4b25bf
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
mov edi, dword [ebp + 8]
xor eax, eax
xorps xmm0, xmm0
mov dword [ebp - 8], eax
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
cmp dword [edi + 8], eax
je 0x4b25e6
inc eax
jmp 0x4b26bf
push ebx
xor ebx, ebx
inc ebx
cmp dword [edi], 2
jne 0x4b25f9
mov dword [edi + 8], ebx
mov eax, ebx
jmp 0x4b26be
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
push eax
push ebx
push eax
call esi
mov dword [ebp + 8], eax
xor eax, eax
push eax
push eax
push ebx
push eax
call esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov ecx, 0x3e5
test esi, esi
jne 0x4b2646
cmp eax, ecx
je 0x4b264a
cmp eax, 0x217
jne 0x4b2680
cmp eax, ecx
jne 0x4b26a3
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
push esi
push edi
call fcn.004b254d
add esp, 0x14
test eax, eax
je 0x4b26ac
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x4b26a6
mov eax, dword [ebp - 0xc]
jmp 0x4b2683
mov esi, dword [ebp + 8]
push str.Error_opening_named_pipe
push eax
call fcn.00408e81
pop ecx
push eax
call fcn.00408f70
push eax
push dword [ebp + 0x10]
call fcn.004418a5
add esp, 0x10
jmp 0x4b26ac
mov esi, dword [ebp + 8]
mov dword [edi + 8], ebx
mov dword [ebp - 8], ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 8]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x4b281b
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
or edi, 0xffffffff
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push str..pipe_
call fcn.00447c0a
push ebx
push ebx
push ebx
mov esi, eax
push edi
push esi
call fcn.0044bdbd
push esi
mov ebx, eax
call fcn.00441dce
add esp, 0x24
call fcn.004b2a62
xor esi, esi
lea ecx, [ebp - 4]
push esi
push ecx
push 1
push eax
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x4b2870
mov esi, str.ConvertStringSecurityDescriptorToSecurityDescriptor
jmp 0x4b28d1
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 8], esi
jne 0x4b28af
push eax
push esi
mov eax, 0x100000
push eax
push eax
push 1
push esi
push 0x40000003
push ebx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4b28f7
mov esi, str.CreateNamedPipe
jmp 0x4b28d1
push esi
push 0x40000000
push 3
push eax
push esi
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4b28f7
mov esi, str.CreateFile
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Error_opening_named_pipe___s_returned_0x_08lx_
push eax
call fcn.00408e81
pop ecx
push eax
call fcn.00408f70
push eax
push dword [ebp + 0x10]
call fcn.004418a5
add esp, 0x18
cmp dword [ebp - 4], 0
je 0x4b2906
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call fcn.00441dce
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b547b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call fcn.0044bdbd
mov ecx, dword [ebp + 0x10]
add esp, 0x14
mov ebx, eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 0x14]
mov esi, edi
mov dword [ebp - 0x10], ebx
push edi
push edi
push 3
push edi
push 3
push closesocket
push ebx
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x4b55e0
push eax
call edi
call fcn.004b5619
push dword [ebp + 8]
push esi
push 0x47a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x4b550b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0x20]
push eax
push dword [ebp + 8]
call fcn.004b56aa
add esp, 0xc
jmp 0x4b55fb
push dword [ebp + 0x20]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x44c]
push eax
call fcn.004b57da
add esp, 0xc
test eax, eax
je 0x4b55fb
xor eax, eax
push eax
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4b55b6
push str.RtlCreateUserThread
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x20]
xor ecx, ecx
push dword [ebp - 0x24]
push ecx
push ecx
push ecx
push ecx
push ecx
push esi
call eax
test eax, eax
je 0x4b55b6
push 0xa
pop ecx
push 7
pop edx
push eax
push str.RtlCreateUserThread
push dword [ebp + 8]
cmp eax, 0xc0000022
push str.Unexpected_error_while_attaching_to_process_with_pid__u___s_returned_0x_08lx_
cmove ecx, edx
push ecx
call fcn.004aa483
push eax
push dword [ebp + 0x20]
call fcn.004418a5
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x44c]
push eax
call fcn.004b57ac
add esp, 0x24
jmp 0x4b55fb
push 0xc
call fcn.0044629e
pop ecx
mov dword [eax], esi
xor esi, esi
mov ecx, dword [ebp - 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 4]
and dword [ebp - 4], esi
mov dword [eax], ecx
jmp 0x4b55fb
push dword [ebp + 0xc]
push str.Unable_to_find_DLL_at__s
push 5
call fcn.004aa483
push eax
push dword [ebp + 0x20]
call fcn.004418a5
add esp, 0x14
cmp dword [ebp - 4], 0
je 0x4b5606
push dword [ebp - 4]
call edi
test esi, esi
je 0x4b560d
push esi
call edi
push ebx
call fcn.00441dce
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b5619
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [0x790aac], esi
je 0x4b5632
xor eax, eax
inc eax
jmp 0x4b56a7
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4b5696
push edi
lea eax, [ebp - 0x10]
xor edi, edi
push eax
push str.SeDebugPrivilege
inc edi
push esi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4b5695
push esi
push esi
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4b5695
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
je 0x4b5695
mov dword [0x790aac], edi
mov esi, edi
pop edi
cmp dword [ebp - 4], 0
je 0x4b56a5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret
Function at 0x4b5ba0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x790ab0], 0
jne 0x4b5bd4
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
xor eax, eax
mov dword [0x790ab0], 1
cmp word [ebp - 0x24], 9
sete al
mov dword [0x790ab4], eax
leave
ret
mov eax, dword [0x790ab4]
leave
ret

Function at 0x4b6c32
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4b6c71
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4b6c71
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b6c71
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4b6c71
cmp dword [ecx + 0x74], 0xe
jbe 0x4b6c71
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4cb070
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004caf1c
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4cb1df
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4cb1df
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4cb194
jg 0x4cb0cc
test eax, eax
je 0x4cb18a
push 1
push 0x1000
call fcn.004d23c0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4cb0ef
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4cb181
push 0x8000
push ebx
call fcn.004cea72
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4cb118
jg 0x4cb113
cmp ecx, 0x1000
jb 0x4cb118
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004d0bb6
add esp, 0x10
cmp eax, 0xffffffff
je 0x4cb15d
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4cb113
jl 0x4cb144
test ecx, ecx
jne 0x4cb105
push dword [ebp - 0xc]
push ebx
call fcn.004cea72
push esi
call fcn.004d1981
add esp, 0xc
xor ebx, ebx
jmp 0x4cb1ed
cmp byte [edi + 0x24], 0
je 0x4cb174
cmp dword [edi + 0x20], 5
jne 0x4cb174
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4cb17f
mov ebx, dword [edi + 0x18]
jmp 0x4cb181
xor ebx, ebx
push esi
call fcn.004d1981
pop ecx
jmp 0x4cb1ed
test ecx, ecx
jg 0x4cb156
jl 0x4cb194
test eax, eax
jae 0x4cb156
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004cd23d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4cb1b4
cmp byte [edi + 0x1c], 0
je 0x4cb156
jmp 0x4cb1e5
push ebx
call fcn.004c2526
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4cb156
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4cb1ed
cmp byte [edi + 0x1c], 0
je 0x4cb1ea
mov ebx, dword [edi + 0x18]
jmp 0x4cb1ed
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004cd23d
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret