joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a06e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov dword [ebp - 8], 0
mov eax, dword [ecx + 0xc]
push esi
push edi
test eax, eax
je 0x4a070d
mov ebx, 1
mov dword [ebp - 8], eax
mov ecx, ebx
add eax, 4
lock xadd dword [eax], ecx
lea ecx, [ebp - 8]
jmp 0x4a0737
mov ebx, 2
call fcn.004604f0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4a0734
mov ecx, 1
add eax, 4
lock xadd dword [eax], ecx
lea ecx, [ebp - 4]
mov esi, dword [ebp + 8]
or edi, 0xffffffff
mov eax, dword [ecx]
mov dword [ecx], 0
mov dword [esi], eax
test bl, 2
je 0x4a0777
mov eax, dword [ebp - 4]
and ebx, 0xfffffffd
test eax, eax
je 0x4a0777
lea ecx, [eax + 4]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x4a0777
test ecx, ecx
je 0x4a0770
add ecx, 0xfffffffc
jmp 0x4a0772
xor ecx, ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
test bl, 1
je 0x4a07b1
mov eax, dword [ebp - 8]
test eax, eax
je 0x4a07b1
lea ecx, [eax + 4]
lock xadd dword [ecx], edi
dec edi
setne al
test al, al
jne 0x4a07b1
test ecx, ecx
je 0x4a07aa
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
call dword [edx + 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
mov edx, dword [ecx]
call dword [edx + 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a4680
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
mov ecx, dword [eax + 0x14]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
push edi
mov edi, dword [eax + 0x10]
cmp ecx, 0x10
jb 0x4a46a3
mov esi, dword [eax]
jmp 0x4a46a5
mov esi, eax
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x4a46c1
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x4a46b0
mov ecx, dword [ebx + 0x14]
mov ebx, ecx
and ebx, edx
mov edx, dword [ebp - 8]
cmp dword [edx + 0x18], ebx
ja 0x4a46d9
shr ecx, 1
or eax, 0xffffffff
sub eax, ecx
add ebx, eax
mov ecx, dword [edx + 8]
lea eax, [ebx + ebx]
mov edx, dword [edx]
lea eax, [eax + 1]
mov dword [ebp - 8], edx
mov esi, dword [ecx + ebx*8]
mov ebx, dword [ecx + eax*4 - 4]
lea eax, [ecx + eax*4]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], eax
cmp ebx, edx
jne 0x4a46ff
mov eax, edx
jmp 0x4a4703
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x4a47c9
cmp dword [ebp - 4], 0x10
lea ecx, [esi + 8]
jb 0x4a471b
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
jmp 0x4a471e
mov edx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 0x10
mov ebx, dword [ecx + 0x10]
jb 0x4a4729
mov ecx, dword [ecx]
cmp ebx, edi
mov eax, edi
cmovb eax, ebx
push eax
push edx
push ecx
call fcn.004136b0
add esp, 0xc
test eax, eax
jne 0x4a474c
cmp ebx, edi
jb 0x4a474c
cmp ebx, edi
setne al
test eax, eax
je 0x4a4759
mov esi, dword [esi]
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
jmp 0x4a46f7
cmp dword [esi + 0x1c], 0x10
lea ecx, [esi + 8]
mov ebx, dword [ecx + 0x10]
jb 0x4a4767
mov ecx, dword [ecx]
cmp dword [ebp - 4], 0x10
jb 0x4a4775
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
cmp edi, ebx
mov eax, ebx
cmovb eax, edi
push eax
push ecx
push dword [ebp + 0xc]
call fcn.004136b0
add esp, 0xc
test eax, eax
jne 0x4a47b0
cmp edi, ebx
jb 0x4a47b0
cmp edi, ebx
setne al
test eax, eax
jne 0x4a47b0
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
pop edi
mov dword [ebp + 0xc], esi
mov ecx, dword [ecx]
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], edx
mov esp, ebp
pop ebp
ret 8
Function at 0x4a47e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
mov ecx, dword [eax + 0x14]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
push edi
mov edi, dword [eax + 0x10]
cmp ecx, 0x10
jb 0x4a4803
mov esi, dword [eax]
jmp 0x4a4805
mov esi, eax
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x4a4821
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x4a4810
mov ecx, dword [ebx + 0x14]
mov ebx, ecx
and ebx, edx
mov edx, dword [ebp - 8]
cmp dword [edx + 0x18], ebx
ja 0x4a4839
shr ecx, 1
or eax, 0xffffffff
sub eax, ecx
add ebx, eax
mov ecx, dword [edx + 8]
lea eax, [ebx + ebx]
mov edx, dword [edx]
lea eax, [eax + 1]
mov dword [ebp - 8], edx
mov esi, dword [ecx + ebx*8]
mov ebx, dword [ecx + eax*4 - 4]
lea eax, [ecx + eax*4]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], eax
cmp ebx, edx
jne 0x4a485f
mov eax, edx
jmp 0x4a4863
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x4a4929
cmp dword [ebp - 4], 0x10
lea ecx, [esi + 8]
jb 0x4a487b
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
jmp 0x4a487e
mov edx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 0x10
mov ebx, dword [ecx + 0x10]
jb 0x4a4889
mov ecx, dword [ecx]
cmp ebx, edi
mov eax, edi
cmovb eax, ebx
push eax
push edx
push ecx
call fcn.004136b0
add esp, 0xc
test eax, eax
jne 0x4a48ac
cmp ebx, edi
jb 0x4a48ac
cmp ebx, edi
setne al
test eax, eax
je 0x4a48b9
mov esi, dword [esi]
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
jmp 0x4a4857
cmp dword [esi + 0x1c], 0x10
lea ecx, [esi + 8]
mov ebx, dword [ecx + 0x10]
jb 0x4a48c7
mov ecx, dword [ecx]
cmp dword [ebp - 4], 0x10
jb 0x4a48d5
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
cmp edi, ebx
mov eax, ebx
cmovb eax, edi
push eax
push ecx
push dword [ebp + 0xc]
call fcn.004136b0
add esp, 0xc
test eax, eax
jne 0x4a4910
cmp edi, ebx
jb 0x4a4910
cmp edi, ebx
setne al
test eax, eax
jne 0x4a4910
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
pop edi
mov dword [ebp + 0xc], esi
mov ecx, dword [ecx]
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], edx
mov esp, ebp
pop ebp
ret 8
Function at 0x4ada60
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x168], 0
mov dword [ecx + 0x170], 0
mov dword [ecx + 0x174], 0
mov dword [ecx + 0x14], 0x67452301
mov dword [ecx + 0x18], 0xefcdab89
mov dword [ecx + 0x1c], 0x98badcfe
mov dword [ecx + 0x20], 0x10325476
mov dword [ecx + 0x24], 0xc3d2e1f0
ret
Function at 0x4ae480
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ecx + 4]
xor edx, edx
push edi
mov dword [ebp - 4], esi
mov ebx, dword [esi + 0x3c]
add ebx, esi
xor edi, edi
movzx ecx, word [ebx + 6]
cmp edx, ecx
jae 0x4ae4db
movzx eax, word [ebx + 0x14]
lea ecx, [ebx + 0x18]
add eax, edi
add ecx, eax
je 0x4ae4db
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x4ae4b6
xor esi, esi
jmp 0x4ae4bd
add esi, eax
cmp esi, dword [ebp + 8]
ja 0x4ae4c7
mov eax, dword [ecx + 8]
add eax, esi
cmp eax, dword [ebp + 8]
ja 0x4ae4d0
mov esi, dword [ebp - 4]
inc edx
add edi, 0x28
jmp 0x4ae496
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4ae730
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 4], ebx
test edi, edi
jne 0x4ae74e
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 4]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov eax, dword [ebx]
push dword [ecx + 0x78]
mov ecx, ebx
call dword [eax + 4]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x4ae7eb
mov eax, dword [ebp + 8]
cmp eax, 0xffff
ja 0x4ae786
pop esi
mov word [edi], ax
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx]
mov ecx, ebx
push dword [esi + 0x20]
call dword [eax + 4]
mov ecx, dword [esi + 0x18]
mov ebx, eax
mov dword [ebp - 0xc], eax
lea edi, [eax + ecx*4]
cmp eax, edi
je 0x4ae7eb
nop
mov ecx, dword [ebp - 4]
mov eax, edi
sub eax, ebx
sar eax, 2
cdq
sub eax, edx
sar eax, 1
push dword [ebx + eax*4]
lea esi, [ebx + eax*4]
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov ecx, edx
mov dl, byte [edx]
test dl, dl
je 0x4ae7d2
cmp dl, byte [eax]
jne 0x4ae7d2
mov dl, byte [ecx + 1]
inc ecx
inc eax
test dl, dl
jne 0x4ae7c5
movzx eax, byte [eax]
movzx ecx, byte [ecx]
sub ecx, eax
je 0x4ae7f6
test ecx, ecx
jle 0x4ae7e5
lea ebx, [esi + 4]
jmp 0x4ae7e7
mov edi, esi
cmp ebx, edi
jne 0x4ae7a0
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, dword [ecx]
push dword [edi + 0x24]
call dword [eax + 4]
sub esi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
sar esi, 2
mov ax, word [eax + esi*2]
add ax, word [edi + 0x10]
pop esi
pop edi
mov word [ecx], ax
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4af751
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.004af106
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edi, edi
cmp eax, 0xffffffff
je 0x4af777
mov esi, dword [ebp - 4]
jmp 0x4af7d1
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4af7cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4af7cc
lea eax, [ebp - 4]
push eax
call fcn.004b02aa
mov esi, dword [ebp - 4]
pop ecx
cmp dword [esi - 0xc], edi
je 0x4af7d2
push esi
call fcn.004af751
pop ecx
test eax, eax
je 0x4af7d2
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4af7cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4af7cf
jmp 0x4af7d2
mov esi, dword [ebp - 4]
xor edi, edi
inc edi
lea ecx, [esi - 0x10]
call fcn.004b05d5
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4b2028
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4b20b4
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp dword [ebp - 4], ebx
jne 0x4b20ac
cmp edi, 0x200000
ja 0x4b20ac
lea eax, [edi + 2]
push eax
call fcn.004db0c5
pop ecx
push ebx
lea ecx, [ebp + 8]
mov dword [ebp - 8], eax
push ecx
push edi
push eax
push esi
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b20ac
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x4b20ac
mov ecx, dword [ebp - 8]
mov byte [eax + ecx], bl
mov eax, dword [ebp + 8]
mov byte [eax + ecx + 1], bl
inc ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b25dc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x55e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
mov dword [ebp - 0xc], ebx
call fcn.004afc69
push eax
lea ecx, [ebp - 8]
call fcn.004af046
call fcn.004afc69
push eax
lea ecx, [ebp - 0x10]
call fcn.004b143c
push ebx
push ebx
push 2
push ebx
xor eax, eax
mov edi, ebx
inc eax
push eax
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x4b274e
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.004b2984
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 8]
mov ecx, dword [sym.imp.KERNEL32.dll_WriteFile]
dec eax
je 0x4b26e8
dec eax
je 0x4b2696
dec eax
jne 0x4b268f
push ebx
lea eax, [ebp - 0xc]
mov word [ebp - 0x14], 0xfeff
push eax
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call ecx
test eax, eax
je 0x4b2743
cmp dword [ebp - 0xc], 2
jne 0x4b2743
mov edi, dword [esi - 0xc]
mov ecx, esi
add edi, edi
jmp 0x4b2726
mov ecx, ebx
jmp 0x4b2726
push ebx
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0xbbef
push eax
push 3
lea eax, [ebp - 8]
mov byte [ebp - 6], 0xbf
push eax
push dword [ebp - 0x18]
call ecx
test eax, eax
je 0x4b2743
cmp dword [ebp - 0xc], 3
jne 0x4b2743
test esi, esi
je 0x4b26fb
push esi
call fcn.004db28a
inc eax
pop ecx
cmp eax, 0x3fffffff
jg 0x4b26fb
lea edi, [eax + eax]
mov eax, edi
call fcn.004dca80
mov eax, esp
push 0xfde9
jmp 0x4b270d
test esi, esi
je 0x4b26fb
push esi
call fcn.004db28a
inc eax
pop ecx
cmp eax, 0x3fffffff
jle 0x4b26ff
mov eax, ebx
jmp 0x4b2715
lea edi, [eax + eax]
mov eax, edi
call fcn.004dca80
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.004b1cfd
push eax
lea ecx, [ebp - 0x10]
call fcn.004b27a5
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov edi, dword [eax - 0xc]
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
push ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b2743
cmp dword [ebp - 0xc], edi
push 1
pop eax
cmove ebx, eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b2751
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004b05d5
lea ecx, [esi - 0x10]
call fcn.004b05d5
mov eax, ebx
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dbbe3
mov esp, ebp
pop ebp
ret 8
Function at 0x4b4d32
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
je 0x4b4dc3
push esi
mov ecx, edi
call fcn.004b403d
push 0x25
pop ecx
cmp cx, ax
jne 0x4b4dc3
push esi
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
je 0x4b4dc3
cmp ebx, 0x8003
ja 0x4b4dc3
call fcn.004afc69
push eax
lea ecx, [ebp + 8]
call fcn.004af046
push ebx
lea ecx, [ebp + 8]
call fcn.004b04ad
push ebx
push eax
push dword [edi]
call fcn.004b4dca
mov ebx, eax
lea ecx, [ebp + 8]
add esp, 0xc
test ebx, ebx
jne 0x4b4da0
push esi
call fcn.004b06e7
jmp 0x4b4db4
push 0xffffffffffffffff
call fcn.004b5fc5
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.004af1ff
mov esi, ebx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004b05d5
mov eax, esi
jmp 0x4b4dc5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4b5128
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x55e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push esi
call fcn.004db28a
pop ecx
mov ebx, eax
lea edx, [ebp - 0x214]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x210]
cmp eax, ebx
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], ebx
cmovae ecx, edx
push dword [ecx]
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x4b5182
xor eax, eax
jmp 0x4b5226
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4b517b
push 0x549ba8
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.004b6604
lea eax, [ebp - 0x20c]
push eax
call fcn.004db28a
mov esi, eax
push edi
mov dword [ebp - 0x210], esi
call fcn.004db28a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x210]
mov edx, eax
sub edx, ebx
add ecx, eax
add esi, edx
mov dword [ebp - 0x214], esi
cmp ecx, ebx
jbe 0x4b517b
lea eax, [esi + 1]
cmp eax, dword [ebp + 0xc]
jae 0x4b517b
mov eax, dword [ebp - 0x210]
lea esi, [eax + eax]
lea eax, [edx + edx]
push eax
lea eax, [edi + ebx*2]
push eax
lea eax, [esi + edi]
push eax
call fcn.004dd350
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.004dcd00
mov eax, dword [ebp - 0x214]
xor ecx, ecx
add esp, 0x18
mov word [edi + eax*2], cx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dbbe3
mov esp, ebp
pop ebp
ret
Function at 0x4b5a02
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x55e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4b5ac4
xor edi, edi
cmp word [esi], di
je 0x4b5ac4
push esi
call fcn.004b5d5a
pop ecx
test eax, eax
jne 0x4b5ac4
push esi
call fcn.004b5d9b
pop ecx
test eax, eax
je 0x4b5ad6
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x408], 0x400
push eax
lea eax, [ebp - 0x408]
mov dword [ebp - 0x404], 2
push eax
lea eax, [ebp - 0x404]
mov dword [ebp - 0x400], edi
push eax
push eax
mov dword [ebp - 0x3fc], edi
mov dword [ebp - 0x3f4], edi
mov dword [ebp - 0x3f0], esi
mov dword [ebp - 0x3e8], edi
mov dword [ebp - 0x3ec], edi
call sub.MPR.dll_WNetGetResourceInformationW
test eax, eax
jne 0x4b5ad6
cmp dword [ebp - 0x3fc], edi
je 0x4b5ad6
cmp dword [ebp - 0x3fc], 3
jne 0x4b5ac4
inc eax
cmp dword [ebp - 0x400], edi
je 0x4b5ac6
cmp dword [ebp - 0x400], eax
je 0x4b5ac6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004dbbe3
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b5ac4
and eax, 0x10
jmp 0x4b5ac6

Function at 0x4b5b28
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4b5b4b
cmp word [eax], 0
je 0x4b5b4b
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4b6d64
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x55e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], ecx
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x4b6f0e
test edi, edi
je 0x4b6f0e
push ebx
lea ecx, [ebp - 0x64]
call fcn.004b3d8a
mov eax, dword [esi + 4]
mov ecx, esi
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x6c]
push 8
push eax
mov dword [ebp - 0x6c], 1
call fcn.004b69c5
xor ebx, ebx
test al, al
je 0x4b6f01
cmp dword [ebp - 0x6c], 1
je 0x4b6e0a
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], ebx
push eax
push 1
push 2
push ebx
push 0xb
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4b6f01
cmp byte [ebp + 0x1c], bl
je 0x4b6e94
cmp dword [esi + 8], ebx
jne 0x4b6e94
push ebx
push 1
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.004b69f3
test al, al
jne 0x4b6e42
cmp dword [ebp - 0x6c], 1
je 0x4b6f01
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b6f01
push 0x20
lea eax, [ebp - 0xa8]
push ebx
push eax
call fcn.004dbc00
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0xa8], 0x20
cmp dword [eax - 0xc], ebx
jne 0x4b6e71
lea ecx, [ebp - 0x64]
call fcn.004b7752
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x4b6e94
mov eax, dword [ebp - 0x8c]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x28]
movzx esi, al
lea eax, [ebp - 0x70]
push esi
push dword [ebp - 0x68]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x4b6f01
push dword [ebp - 0x88]
push edi
push dword [ebp - 0x84]
push dword [ebp - 0x70]
push dword [ebp + 0x18]
push esi
push dword [ebp - 0x74]
push dword [ebp - 0x80]
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x6c], 1
mov edi, eax
je 0x4b6eed
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x70]
call sub.USERENV.dll_DestroyEnvironmentBlock
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
setne bl
lea ecx, [ebp - 0x64]
call fcn.004b3f49
mov al, bl
pop ebx
jmp 0x4b6f10
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004dbbe3
mov esp, ebp
pop ebp
ret 0x28
Function at 0x4b7040
Capabilities:
Acquire debug privileges
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
call fcn.004b82b4
lea ecx, [ebp - 0x1c]
call fcn.004b8559
lea ecx, [ebp - 0x1c]
call fcn.004b8f7c
push str.SeDebugPrivilege
lea ecx, [ebp - 0x1c]
call fcn.004b8938
mov eax, 0xc8
xor esi, esi
lea ebx, [eax + 0x14]
mov ecx, edi
push 0xffffffffffffffff
push ebx
call fcn.004b82c2
test al, al
je 0x4b70e3
mov eax, dword [edi + 4]
lea ecx, [ebp - 4]
push ecx
shl eax, 2
push eax
push dword [edi]
mov dword [ebp - 4], esi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4b70b4
mov eax, dword [ebp - 4]
shr eax, 2
cmp ebx, eax
jb 0x4b7074
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.004b82c2
jmp 0x4b70f2
push 0xffffffffffffffff
push esi
mov ecx, edi
call fcn.004b82c2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x4b70dc
call esi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x4b70f2
mov esi, 0x80004005
jmp 0x4b70f2
push 0xffffffffffffffff
push esi
mov ecx, edi
call fcn.004b82c2
mov esi, 0x8007000e
lea ecx, [ebp - 0x1c]
call fcn.004b8599
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b7103
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x18]
call fcn.004b8559
lea ecx, [ebp - 0x18]
call fcn.004b8f7c
push str.SeDebugPrivilege
lea ecx, [ebp - 0x18]
call fcn.004b8938
xor esi, esi
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x4b7155
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4b714e
call fcn.004b447d
mov esi, eax
jmp 0x4b715f
mov esi, 0x80004005
jmp 0x4b715f
mov dword [edi + 0x230], 1
lea ecx, [ebp - 0x18]
call fcn.004b8599
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4b797e
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, ecx
lea ecx, [ebp - 0x18]
push edi
call fcn.004b8559
lea ecx, [ebp - 0x18]
call fcn.004b8f7c
push str.SeDebugPrivilege
lea ecx, [ebp - 0x18]
call fcn.004b8938
mov ecx, ebx
call fcn.004b7921
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4b7a03
cmp dword [ebx + 0x18], 0
jne 0x4b79da
push 0x533a3c
lea ecx, [ebx + 0x14]
call fcn.004b7e7c
mov edi, eax
test edi, edi
js 0x4b7a1f
mov ecx, dword [ebp + 8]
mov edi, 0x7ff7
push edi
call fcn.004b04ad
push edi
push eax
push esi
lea eax, [ebx + 0x14]
push eax
call fcn.004b7945
mov ecx, dword [ebp + 8]
mov edi, eax
push edi
call fcn.004b5fc5
test edi, edi
jne 0x4b7a1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4b7a16
call fcn.004b447d
mov edi, eax
jmp 0x4b7a1f
mov edi, 0x80004005
jmp 0x4b7a1f
xor edi, edi
test esi, esi
je 0x4b7a2a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.004b8599
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4