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

Disassembly:
push 0xffffffffffffffff
push 0x4efed5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x620
mov eax, dword [0x4fab44]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x426]
mov word [esp + 0x424], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x21c]
push 0x104
push ecx
mov dword [esp + 0x63c], 1
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x4720e1
lea edx, [esp + 0x21c]
push 0x5c
push edx
call fcn.004381a6
add esp, 8
cmp eax, ebx
je 0x472090
mov word [eax], bx
lea eax, [esp + 0x14]
test eax, eax
je 0x4720da
lea ecx, [esp + 0x21c]
test ecx, ecx
je 0x4720da
lea edx, [esp + 0x21c]
mov esi, 0x7a
push edx
call fcn.00437501
add esp, 4
cmp eax, 0x104
jae 0x4720d6
lea eax, [esp + 0x21c]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00438248
add esp, 8
xor esi, esi
mov eax, esi
jmp 0x4720e7
mov eax, 0x57
jmp 0x4720e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
cmp eax, ebx
mov dword [0x531ae0], eax
je 0x472113
push eax
call edi
mov eax, dword [0x531ae0]
cmp eax, ebx
mov dword [0x531ae0], eax
je 0x4721ad
push eax
call edi
jmp 0x4721be
push 0x103
lea edx, [esp + 0x18]
push 0x51fb68
push edx
call fcn.004385a4
lea eax, [esp + 0x430]
add esp, 0xc
test eax, eax
je 0x4721a3
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x4721a3
mov eax, dword [esp + 0x640]
mov esi, 0x7a
cmp eax, ebx
je 0x472171
lea edx, [esp + 0x14]
push eax
push edx
push 0x51a5dc
lea eax, [esp + 0x430]
push 0x104
push eax
call fcn.0043850b
add esp, 0x14
mov eax, esi
jmp 0x4720fe
lea ecx, [esp + 0x14]
push ecx
call fcn.00437501
add esp, 4
cmp eax, 0x104
jae 0x47219c
lea edx, [esp + 0x14]
lea eax, [esp + 0x424]
push edx
push eax
call fcn.00438248
add esp, 8
xor esi, esi
mov eax, esi
jmp 0x4720fe
mov eax, 0x57
jmp 0x4720fe
lea ecx, [esp + 0x424]
push ecx
lea ecx, [esp + 0x10]
call fcn.004508e0
mov esi, dword [esp + 0x63c]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.0044fc60
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x634], bl
call fcn.00450660
mov ecx, dword [esp + 0x62c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x62c
ret
Function at 0x479020
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
test ebx, ebx
jne 0x47903c
xor eax, eax
pop ebx
add esp, 0x104
ret
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.00438330
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.00444190
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4790f5
lea edx, [esp + 0x10]
mov byte [esi], 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x4790b9
test bl, 1
je 0x4790a8
and al, 0xfe
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x47912b
cmp ebx, 0xffffffff
je 0x4790c2
test edi, edi
jne 0x4790d1
lea eax, [esp + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x47912b
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.00444190
mov esi, eax
add esp, 8
test esi, esi
jne 0x47907e
test ebp, ebp
je 0x47912b
mov ebx, dword [esp + 0x118]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x479120
test al, 0x10
jne 0x47912b
test al, 1
je 0x479113
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x47912b
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x479140
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
jne 0x47915c
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.004374c4
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.0043857b
mov esi, eax
add esp, 0x14
test esi, esi
je 0x47921c
lea edx, [esp + 0x10]
mov word [esi], 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x4791dc
test bl, 1
je 0x4791cb
and al, 0xfe
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x479252
cmp ebx, 0xffffffff
je 0x4791e5
test edi, edi
jne 0x4791f4
lea eax, [esp + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x479252
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.0043857b
mov esi, eax
add esp, 8
test esi, esi
jne 0x47919f
test ebp, ebp
je 0x479252
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x479247
test al, 0x10
jne 0x479252
test al, 1
je 0x47923a
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x479252
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x47c010
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f03b8
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x20]
xor edi, edi
xor ebp, ebp
cmp eax, ebx
je 0x47c042
call fcn.004838a0
mov ebp, eax
mov eax, dword [esi + 0x18]
mov ecx, 0xc0000000
cmp eax, ebx
je 0x47c053
mov ecx, SysReAllocStringLen
mov eax, dword [esi + 0x24]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
cmp dword [eax - 8], ebx
je 0x47c0a8
push ebx
push 0x80
push 3
push ebp
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x47c08e
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp dword [esi + 4], 0xffffffff
je 0x47c1d4
cmp dword [esp + 0x18], ebx
jne 0x47c0a8
cmp dword [esp + 0x14], ebx
je 0x47c1d4
mov eax, dword [esi + 0x18]
mov edi, 4
cmp eax, ebx
je 0x47c0b9
mov edi, 2
lea ebx, [esi + 0x28]
lea ecx, [esp + 0x10]
push ebx
call fcn.0044fc60
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], 0
test eax, eax
je 0x47c0ff
mov edx, dword [ebx]
mov eax, dword [edx - 8]
test eax, eax
je 0x47c0ff
call fcn.0047d090
test eax, eax
je 0x47c0ff
push str.Global_
lea ecx, [esp + 0x14]
call fcn.004508e0
push ebx
lea ecx, [esp + 0x14]
call fcn.00451310
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0x10]
push eax
push 0
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 8], eax
je 0x47c1ae
mov edx, dword [esi + 0x18]
mov ecx, 6
test edx, edx
je 0x47c13b
mov ecx, 4
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xc], eax
je 0x47c1ae
mov eax, dword [esi + 0x10]
mov ebp, 1
test eax, eax
jne 0x47c189
mov eax, dword [esi + 4]
or ebx, 0xffffffff
cmp eax, ebx
je 0x47c18c
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x18]
xor edi, edi
sub ecx, edx
sbb eax, edi
test eax, eax
jle 0x47c184
mov dword [esi + 0x10], ebx
jmp 0x47c18c
mov dword [esi + 0x10], ecx
jmp 0x47c18c
or ebx, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
call fcn.00450660
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00450660
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x47c6a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea ebp, [esi + 0x42c]
lea edi, [esi + 0x2c]
mov ecx, 0x100
xor eax, eax
mov dword [esi], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [ebp], ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
lea ecx, [esi + 0xc]
lea edi, [esi + 0x14]
cmp eax, 0xffffffff
mov dword [esi + 8], ebx
mov dword [ecx], ebx
mov dword [esi + 0x10], ebx
mov dword [edi], ebx
mov dword [esi + 4], eax
mov dword [esi + 0x18], ebx
je 0x47c740
cmp eax, ebx
je 0x47c740
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
push 1
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x47c712
cmp dword [edi], ebx
je 0x47c71f
mov ecx, dword [esi + 4]
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 4]
push ebx
push ebp
lea eax, [esi + 0x2c]
push 0x400
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47c740
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x47c990
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x47cae7
xor edx, edx
cmp eax, edx
je 0x47cae7
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], edx
lea eax, [ebx + ecx]
cmp eax, ebx
jb 0x47c9ca
cmp eax, ecx
jb 0x47c9ca
xor ecx, ecx
jmp 0x47c9cf
mov ecx, 1
mov edi, dword [esi + 0xc]
mov dword [esp + 0x14], ecx
cmp ecx, edi
jl 0x47c9e9
jg 0x47cae7
cmp eax, dword [esi + 8]
ja 0x47cae7
cmp ecx, edx
jne 0x47ca03
cmp eax, dword [esi + 0x42c]
ja 0x47ca03
lea eax, [ebx + esi + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
mov ebp, dword [esi + 0x1c]
cmp ebp, edx
je 0x47ca48
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x24]
lea edi, [edx + ecx]
cmp edi, ecx
jb 0x47ca23
cmp edi, edx
jb 0x47ca23
xor edx, edx
jmp 0x47ca28
mov edx, 1
cmp ecx, ebx
ja 0x47ca48
cmp dword [esp + 0x14], edx
jg 0x47ca48
jl 0x47ca38
cmp eax, edi
ja 0x47ca48
mov eax, ebp
pop edi
sub eax, ecx
pop esi
add eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret 8
mov eax, dword [esp + 0x28]
mov ecx, esi
push eax
call fcn.0047cb00
test eax, eax
je 0x47cae7
cmp ebx, 0x7fffffff
push 0
push 0
jbe 0x47ca96
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push SysReAllocString
push ecx
call edi
cmp eax, 0xffffffff
je 0x47cad7
mov eax, dword [esi + 4]
push 1
lea edx, [ebx - 0x7fffffff]
push 0
push edx
push eax
call edi
cmp eax, 0xffffffff
je 0x47cad7
jmp 0x47caa6
mov ecx, dword [esi + 4]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x47cad7
mov ebp, dword [esp + 0x28]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 4]
lea edi, [esi + 0x24]
push 0
push edi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47cad7
cmp dword [edi], ebp
jne 0x47cad7
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x28], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
xor eax, eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 8
Function at 0x47cc20
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x531d5c]
test eax, eax
jne 0x47ccfa
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x531af8
mov dword [0x531d5c], 1
mov dword [0x531af8], 0x114
call esi
mov edx, dword [0x531b08]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x51fdb0], eax
je 0x47ccee
push edi
push 0x531c10
mov dword [0x531c10], 0x11c
call esi
push 0x51a968
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetNativeSystemInfo
push esi
call edi
push str.GetProductInfo
push esi
mov dword [0x531d54], eax
call edi
mov dword [0x531d58], eax
mov eax, dword [0x531d54]
pop edi
test eax, eax
push 0x531d30
je 0x47ccbc
call eax
jmp 0x47ccc2
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x531c14]
cmp eax, 6
jae 0x47ccda
cmp eax, 5
jne 0x47ccee
cmp dword [0x531c18], 2
jb 0x47ccee
cmp word [0x531d30], 9
jne 0x47ccee
mov dword [0x531aec], 1
call fcn.0047cd00
mov eax, 1
pop esi
ret
mov eax, 1
ret

Function at 0x47d7d0
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4faf68
push 0x43b928
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [0x531d60]
xor ebx, ebx
cmp eax, ebx
jne 0x47d930
mov word [ebp - 0x220], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x47d92b
mov word [ebp - 0x42c], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x42a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.user32.dll
lea ecx, [ebp - 0x220]
push ecx
push 0x51a5dc
lea edx, [ebp - 0x42c]
push edx
call fcn.004382b4
add esp, 0x10
mov dword [ebp - 0x434], ebx
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x224], eax
push eax
call fcn.004d2462
add esp, 4
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, ebx
je 0x47d92b
push esi
mov edx, dword [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x434]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x47d922
mov dword [ebp - 0x438], ebx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x47d922
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov ecx, dword [eax]
mov dword [0x531d60], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x47d922
push esi
call fcn.004d248b
add esp, 4
mov eax, dword [0x531d60]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47e230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f054f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov ecx, dword [0x4fab44]
push ebx
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov ecx, 9
lea edi, [esp + 0x16]
mov ebx, dword [esp + 0x50]
mov word [esp + 0x14], ax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, ebx
lea edx, [esp + 0x14]
push 0xa
push edx
shr eax, 0x18
push eax
mov dword [esp + 0x50], 1
call fcn.00439e49
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.004512b0
push 0x52055c
lea ecx, [esp + 0x10]
call fcn.004512b0
xor edx, edx
lea ecx, [esp + 0x14]
mov dl, byte [esp + 0x52]
push 0xa
push ecx
push edx
call fcn.00439e49
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.004512b0
push 0x52055c
lea ecx, [esp + 0x10]
call fcn.004512b0
xor ecx, ecx
lea eax, [esp + 0x14]
push 0xa
mov cl, bh
push eax
push ecx
call fcn.00439e49
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.004512b0
push 0x52055c
lea ecx, [esp + 0x10]
call fcn.004512b0
lea edx, [esp + 0x14]
push 0xa
and ebx, 0xff
push edx
push ebx
call fcn.00439e49
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.004512b0
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0044fc60
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 0
call fcn.00450660
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x4831f0
Capabilities:
Get user security identifier

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edi
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
xor ebx, ebx
push eax
push ecx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push ebp
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x48323b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x48323b
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.004d2462
mov ecx, dword [esp + 0x14]
mov dword [edi], eax
lea edx, [ecx + ecx]
push edx
call fcn.004d2462
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x483280
test esi, esi
je 0x483291
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x1c]
push esi
push ecx
push eax
push ebp
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test esi, esi
je 0x48328d
push esi
call fcn.004d248b
add esp, 4
test ebx, ebx
jne 0x4832a0
mov edi, dword [edi]
test edi, edi
je 0x4832a0
push edi
call fcn.004d248b
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret

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

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x48431b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
mov esi, edi
not eax
jb 0x48441d
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x4faf78]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4faf78]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4faf78]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4faf78]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4faf78]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4faf78]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4faf78]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4faf78]
xor eax, edx
inc ecx
dec edi
jne 0x484336
test esi, esi
je 0x48443f
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4faf78]
xor eax, edx
inc ecx
dec esi
jne 0x484421
pop edi
pop esi
not eax
pop ebx
ret
Function at 0x48d7d0
Capabilities:
Accept command line arguments
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f12b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x200
push ebx
push esi
push edi
mov ecx, 0x7c
xor eax, eax
lea edi, [ebp - 0x20b]
mov byte [ebp - 0x20c], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], edi
call esi
mov ebx, dword [ebp + 8]
cmp eax, ebx
jne 0x48d8a0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edx, eax
test edx, edx
je 0x48d877
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0x10]
not ecx
dec ecx
mov esi, ecx
cmp esi, eax
jb 0x48d845
lea esi, [eax - 1]
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x48d888
test eax, eax
jbe 0x48d888
push esi
push edx
push edi
call fcn.00438330
add esp, 0xc
mov byte [esi + edi], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x48d888
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jbe 0x48d888
mov byte [eax], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.0047d040
test eax, eax
je 0x48d8bb
push 1
push str.SeDebugPrivilege
call esi
push eax
call fcn.0049fc40
add esp, 0xc
push ebx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
mov dword [ebp - 0x18], esi
jne 0x48d8e5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
call fcn.00482410
add esp, 4
test eax, eax
je 0x48d907
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 4], 0
mov ecx, dword [eax + 1]
mov dword [ebp + 8], ecx
call fcn.0047d040
test eax, eax
je 0x48d972
mov ecx, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea edx, [ebp - 0x14]
lea eax, [ebp + 8]
push edx
push 4
push eax
push ecx
push esi
call ebx
test eax, eax
je 0x48d972
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x20c]
push 0x1f4
push eax
push ecx
push esi
call ebx
test eax, eax
je 0x48d972
mov edi, 1
jmp 0x48d972
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x48d9c6
mov eax, dword [ebp - 0x14]
xor edi, edi
cmp eax, 0x1f4
jb 0x48d991
mov eax, 0x1f3
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jb 0x48d99e
lea eax, [ecx - 1]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x48d9c6
test ecx, ecx
jbe 0x48d9c6
lea edx, [ebp - 0x20c]
push eax
push edx
push esi
call fcn.00438330
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov edi, 1
mov byte [eax + esi], 0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc