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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1020e058
push 0x101c1c80
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 [0x1026ca44]
xor ebx, ebx
cmp eax, ebx
jne 0x100f4460
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 0x100f445b
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 0x10247ab0
lea edx, [ebp - 0x42c]
push edx
call fcn.100987f3
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.10063988
add esp, 4
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, ebx
je 0x100f445b
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 0x100f4452
mov dword [ebp - 0x438], ebx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
push 0x10248ef0
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100f4452
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov ecx, dword [eax]
mov dword [0x1026ca44], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x100f4452
push esi
call fcn.100639b7
add esp, 4
mov eax, dword [0x1026ca44]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100f4970
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 0x100f49bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x100f49bb
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.10063988
mov ecx, dword [esp + 0x14]
mov dword [edi], eax
lea edx, [ecx + ecx]
push edx
call fcn.10063988
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x100f4a00
test esi, esi
je 0x100f4a11
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 0x100f4a0d
push esi
call fcn.100639b7
add esp, 4
test ebx, ebx
jne 0x100f4a20
mov edi, dword [edi]
test edi, edi
je 0x100f4a20
push edi
call fcn.100639b7
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret
Function at 0x100f9b20
Capabilities:
Get file size

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
mov dword [0x1026caf8], ebp
call edi
mov ebx, dword [esp + 0x54]
mov dword [0x1026cb00], eax
cmp ebx, 0xffffffff
je 0x100f9d19
mov esi, dword [esp + 0x58]
cmp esi, 0xffffffff
je 0x100f9d19
lea eax, [esp + 0x10]
mov dword [esp + 0x20], ebp
push eax
push ebx
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
push edi
push esi
call fcn.101489b0
add esp, 0xc
test eax, eax
je 0x100f9cee
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push ebp
push ebp
push ebx
call esi
mov edx, dword [esp + 0x58]
push ebp
push ebp
push ebp
push edx
call esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ebp
cmp eax, ebp
mov dword [esp + 0x18], ebp
jne 0x100f9bb1
cmp edi, ebp
je 0x100f9c99
cmp eax, ebp
mov ebx, 0x1000
jne 0x100f9bc0
cmp edi, ebx
jae 0x100f9bc0
mov ebx, edi
push ebx
call fcn.10063988
add esp, 4
mov esi, eax
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x24]
push eax
push ebx
push esi
push ecx
mov dword [esp + 0x34], ebp
call fcn.10147090
add esp, 0x18
test eax, eax
je 0x100f9c36
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jae 0x100f9c11
cmp eax, ebp
mov dword [esp + 0x14], 1
je 0x100f9c73
lea edx, [esp + 0x24]
push ebp
push edx
push eax
mov eax, dword [esp + 0x64]
push esi
push eax
mov dword [esp + 0x38], ebp
call fcn.10147190
add esp, 0x14
test eax, eax
je 0x100f9c4c
cmp dword [esp + 0x14], ebp
je 0x100f9bcb
jmp 0x100f9c73
mov dword [0x1026caf8], 0xd
mov dword [0x1026cafc], 0x54c
jmp 0x100f9c60
mov dword [0x1026caf8], 0xe
mov dword [0x1026cafc], 0x55b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026cb00], eax
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call fcn.100639b7
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebp
je 0x100f9ce2
cmp dword [esp + 0x18], ebp
jne 0x100f9ce2
mov ebx, dword [esp + 0x54]
mov al, byte [esp + 0x5c]
mov dword [esp + 0x20], 1
test al, 2
je 0x100f9ce2
lea edx, [esp + 0x28]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x2c]
push 0x28
mov dword [esp + 0x2c], ebp
push edx
push ebx
rep stosd dword es:[edi], eax
call fcn.10146c10
add esp, 0xc
test eax, eax
je 0x100f9ce2
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x28]
push 0x28
push eax
push ecx
call fcn.10146c50
add esp, 0xc
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov dword [0x1026caf8], 0x25
mov dword [0x1026cafc], 0x52d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x1026cb00], eax
mov eax, dword [esp + 0x18]
pop ebp
pop ebx
add esp, 0x40
ret
mov dword [0x1026caf8], 1
mov dword [0x1026cafc], 0x51d
call edi
pop edi
pop esi
mov dword [0x1026cb00], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x101004d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebp, ebp
cmp esi, ebp
je 0x1010063b
cmp esi, 0xffffffff
je 0x1010063b
cmp dword [0x1026cb08], ebp
je 0x1010063b
mov ecx, dword [0x1026cb10]
cmp ecx, ebp
je 0x1010063b
mov eax, dword [0x1026cb0c]
cmp eax, ebp
jge 0x10100519
neg eax
cmp ecx, eax
ja 0x1010063b
push edi
push ecx
mov dword [esp + 0x14], ebp
call fcn.10063988
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x20], edi
je 0x10100630
mov ecx, dword [0x1026cb10]
xor eax, eax
mov edx, ecx
push ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 1
and ecx, 3
mov dword [esp + 0x14], ebp
rep stosb byte es:[edi], al
mov ebx, dword [0x1026cb10]
mov edi, dword [0x1026cb0c]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
push eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call ebp
xor ecx, ecx
mov dword [esp + 0x1c], eax
test edi, edi
setl cl
dec ecx
and ecx, 0xfffffffe
add ecx, 2
push ecx
push 0
push edi
push esi
call ebp
cmp eax, 0xffffffff
je 0x10100622
mov eax, dword [esp + 0x28]
push 0
test eax, eax
je 0x101005b5
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x14]
push 0
push edx
push ebx
push eax
push esi
call fcn.10147090
add esp, 0x18
jmp 0x101005c7
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ecx
push ebx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x1c]
mov edi, eax
lea eax, [esp + 0x18]
push 0
push eax
push ecx
push esi
call ebp
test edi, edi
je 0x10100622
mov ebx, dword [0x1026cab4]
xor edx, edx
test ebx, ebx
jle 0x10100622
mov ebp, dword [0x1026cab0]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov ecx, dword [eax + 4]
cmp esi, ecx
jb 0x10100608
mov edi, dword [eax]
mov esi, dword [esp + 0x24]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1010061a
inc edx
add ebp, 4
cmp edx, ebx
mov dword [esp + 0x14], 0
jge 0x10100622
jmp 0x101005ee
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x24]
push ecx
call fcn.100639b7
add esp, 4
pop ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0x10
ret
pop esi
xor eax, eax
pop ebp
add esp, 0x10
ret
Function at 0x1010a880
Capabilities:
Get file size

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x64]
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.10108de0
push eax
call fcn.1014a800
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x1010a8e5
mov dword [0x1026cba0], 0xc
mov dword [0x1026cba4], 0x14b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x1026cba8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov ebx, dword [esp + 0x6c]
mov eax, dword [ebx + 0x70]
mov edi, dword [ebx + 0x6c]
add eax, edi
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x74]
lea ecx, [eax + edx*2]
mov edx, dword [ebp]
lea eax, [ecx + ecx + 0x7a]
mov ecx, ebp
push eax
mov dword [esp + 0x68], eax
call dword [edx + 8]
mov edi, eax
push edi
mov dword [esp + 0x14], edi
call fcn.10063988
mov esi, eax
add esp, 4
test esi, esi
jne 0x1010a949
mov dword [0x1026cba0], 0x21
mov dword [0x1026cba4], 0x14bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x1026cba8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x6c]
lea edi, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x68]
push ecx
push esi
push eax
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
push ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
call dword [edx + 0x10]
test eax, eax
je 0x1010aa33
mov edi, dword [esp + 0x68]
mov ebp, dword [esp + 0x60]
mov ebx, dword [edi + 0x378]
mov eax, dword [edi + 0x37c]
test ebx, ebx
mov dword [esp + 0x64], eax
jne 0x1010a9ca
test eax, eax
jne 0x1010a9ca
lea edx, [esp + 0x64]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [esp + 0x64]
push 0
push eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x18]
push 0
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x2c], 0
call fcn.10147190
add esp, 0x14
test eax, eax
je 0x1010aa49
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x6c]
push edx
push esi
mov dword [edi + 0x378], ebx
mov dword [edi + 0x37c], eax
mov dword [edi + 0x380], ecx
call fcn.10147c90
add esp, 8
mov dword [edi + 0x384], eax
mov dword [esp + 0x14], 1
jmp 0x1010aa68
mov dword [0x1026cba0], 0x11
mov dword [0x1026cba4], 0x14cb
jmp 0x1010aa5d
mov dword [0x1026cba0], 0xe
mov dword [0x1026cba4], 0x14da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026cba8], eax
push esi
call fcn.100639b7
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x10138a90
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x101dc3a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.100e0750
xor edi, edi
push 1
push 0x1026d298
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], edi
call fcn.100da930
mov ecx, 0x1026d290
mov byte [esp + 0x34], 1
call fcn.100e0950
test eax, eax
jbe 0x10138aec
push 0x1026d290
lea ecx, [esp + 0x14]
call fcn.100e0d00
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 0
call fcn.100da990
mov esi, dword [esp + 0x3c]
lea eax, [esp + 0x14]
push 1
push eax
push edi
push esi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
sub ebp, ebx
mov dword [esp + 0x1c], eax
push ebp
mov dword [esp + 0x1c], edi
call fcn.10063988
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x10138c14
lea ecx, [esp + 0x10]
call fcn.100e0950
cmp eax, ebp
mov dword [esp + 0x44], eax
jbe 0x10138b4b
mov dword [esp + 0x44], ebp
mov ecx, ebp
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x44]
test eax, eax
jbe 0x10138b8a
lea ecx, [esp + 0x10]
call fcn.100e1050
mov ecx, dword [esp + 0x44]
mov esi, eax
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
push 0
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, 0xffffffff
je 0x10138be0
test ebp, ebp
je 0x10138be0
lea edx, [esp + 0x3c]
push 0
push edx
push ebp
push ebx
push esi
mov dword [esp + 0x50], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10138c01
mov dword [0x1026d330], 0xe
mov dword [0x1026d334], 0x2263
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026d338], eax
jmp 0x10138c09
mov dword [0x1026d330], 1
mov dword [0x1026d334], 0x225c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026d338], eax
jmp 0x10138c09
mov dword [esp + 0x18], 1
push ebx
call fcn.100639b7
add esp, 4
xor edi, edi
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push edi
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.100e08b0
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x10140340
Capabilities:
Get file size

Disassembly:
sub esp, 0x18
mov ecx, dword [esp + 0x1c]
push ebp
push esi
lea eax, [esp + 0x14]
push edi
xor edi, edi
push eax
push ecx
mov dword [esp + 0x1c], edi
xor ebp, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
cmp eax, edi
jne 0x10140376
cmp ecx, edi
je 0x1014046c
xor esi, esi
xor edx, edx
or esi, eax
or ecx, edx
mov dword [esp + 0x20], ecx
ja 0x1014038d
cmp esi, 0x20
jbe 0x10140494
push ebx
push 0x200
call fcn.10063988
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x101404bc
mov ecx, 0x80
xor eax, eax
mov edi, ebx
push eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x30]
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x24]
test eax, eax
ja 0x101403ce
cmp esi, 0x200
jbe 0x101403d3
mov esi, 0x200
mov ecx, dword [esp + 0x30]
push 0
lea eax, [esp + 0x14]
push 0
push eax
push esi
push ebx
push edi
push ecx
mov dword [esp + 0x2c], 0
call fcn.10148a60
add esp, 0x1c
test eax, eax
je 0x101404d2
cmp esi, dword [esp + 0x10]
jne 0x101404e8
add esi, esi
push esi
call fcn.10063988
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x101404fe
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ebx
push ecx
push ebp
mov dword [esp + 0x24], esi
call fcn.101b8fc0
test eax, eax
jne 0x10140514
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add edx, 0x20
cmp edx, eax
ja 0x1014052a
mov dword [esp + 0x18], 1
jmp 0x10140549
mov dword [0x1026d940], 0x1000b
mov dword [0x1026d944], 0x1098
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026d948], eax
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x18
ret
mov dword [0x1026d940], 0x30
mov dword [0x1026d944], 0x10a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026d948], eax
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x18
ret
mov dword [0x1026d940], 0x21
mov dword [0x1026d944], 0x10a7
jmp 0x1014053e
mov dword [0x1026d940], 0xd
mov dword [0x1026d944], 0x10b4
jmp 0x1014053e
mov dword [0x1026d940], 0xd
mov dword [0x1026d944], 0x10ba
jmp 0x1014053e
mov dword [0x1026d940], 0x21
mov dword [0x1026d944], 0x10c4
jmp 0x1014053e
mov dword [0x1026d940], 0x2f
mov dword [0x1026d944], 0x10cd
jmp 0x1014053e
mov dword [0x1026d940], 0x30
mov dword [0x1026d944], 0x10d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026d948], eax
test ebx, ebx
je 0x10140556
push ebx
call fcn.100639b7
add esp, 4
test ebp, ebp
pop ebx
je 0x10140564
push ebp
call fcn.100639b7
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x101516f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101dccdf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [esp + 0x38]
push esi
mov dword [esp + 4], 0
cmp word [eax], 0x4d4f
je 0x1015173d
mov esi, dword [esp + 0x38]
push 0
push 0
mov ecx, esi
call fcn.100e0760
mov eax, esi
pop esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
push ebp
push edi
mov ebp, dword [esp + 0x48]
mov ecx, 8
mov esi, eax
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x1c]
xor esi, esi
xor edi, edi
test ecx, ecx
jbe 0x10151771
and word [esp + 0x12], 0xefff
test byte [eax + 3], 0x10
je 0x1015176d
or byte [esp + 0x13], 0x20
mov esi, ebp
mov edi, ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], edi
call fcn.100e0750
lea eax, [esp + 0x10]
push 0x20
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x40], 1
call fcn.100e0cb0
push edi
push esi
lea ecx, [esp + 0x4c]
call fcn.100e0cb0
test esi, esi
je 0x101517b2
cmp esi, ebp
je 0x101517b2
push esi
call fcn.100639b7
add esp, 4
mov esi, dword [esp + 0x40]
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.100e0870
lea ecx, [esp + 0x44]
mov dword [esp + 0xc], 1
mov byte [esp + 0x38], 0
call fcn.100e08b0
mov ecx, dword [esp + 0x30]
pop edi
mov eax, esi
pop ebp
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x10154fa0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101dcf78
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
cmp ebp, 0x640
push edi
mov esi, ecx
ja 0x10155089
xor edi, edi
cmp ebp, edi
jbe 0x10155089
lea eax, [esi + 0x74]
push 1
push eax
lea ecx, [esp + 0x20]
call fcn.100da930
mov eax, dword [esp + 0x34]
mov ebx, dword [esi + 0x64]
mov dword [esp + 0x2c], edi
lea ecx, [eax + eax*2]
shl ecx, 4
add ebx, ecx
cmp dword [ebx + 0x28], edi
jne 0x101550a0
mov esi, dword [esp + 0x38]
mov edi, dword [ebx + 0x1c]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x24]
mov edx, dword [ebx + 0x1c]
lea ecx, [esp + 0x38]
push eax
mov eax, dword [ebx]
push ecx
push ebp
xor esi, esi
push edx
push eax
mov dword [ebx + 0x28], 1
mov dword [esp + 0x4c], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, esi
je 0x10155067
cmp dword [esp + 0x38], ebp
jne 0x1015512e
lea ecx, [esp + 0x18]
mov dword [ebx + 0x28], esi
mov dword [esp + 0x2c], 0xffffffff
call fcn.100da990
mov eax, 1
jmp 0x1015508b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1015512e
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100da990
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
push ebp
mov dword [esp + 0x18], edi
call fcn.10063988
mov edx, eax
add esp, 4
cmp edx, edi
mov dword [esp + 0x3c], edx
je 0x10155078
mov esi, dword [esp + 0x38]
mov ecx, ebp
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [ebx + 0x2c]
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 4]
test eax, eax
jne 0x101550ee
push 0x10
call fcn.10063988
add esp, 4
test eax, eax
jne 0x101550fc
mov edx, dword [esp + 0x3c]
jmp 0x10155118
mov ecx, dword [eax]
mov dword [ebx + 8], ecx
mov ecx, dword [ebx + 0x10]
dec ecx
mov dword [ebx + 0x10], ecx
jmp 0x10155100
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], esi
mov dword [eax], 0
mov ecx, dword [ebx + 0xc]
inc ecx
mov dword [ebx + 0xc], ecx
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 8], ebp
mov dword [eax + 0xc], edx
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x10155129
mov dword [ecx], eax
jmp 0x1015512b
mov dword [ebx], eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100da990
mov eax, 1
jmp 0x1015508b
Function at 0x10187c60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x101dd66e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x10], ebx
call fcn.1018acb0
mov eax, dword [0x1020db0c]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [ebx + 0x2c], eax
mov ecx, dword [0x1020db0c]
lea ebp, [ebx + 0x30]
mov dword [ebp], ecx
mov byte [esp + 0x1c], 2
mov dword [ebx], 0x102193a0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1026ea5c
mov dword [ebx + 0xc], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [esp + 0x24]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], edi
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x34], edi
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x3c], edi
mov dword [ebx + 0x40], edi
mov edx, dword [esi + 0x14]
mov dword [ebx + 0x14], edx
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov ecx, dword [esi + 0x1c]
mov dword [ebx + 0x1c], ecx
mov edx, dword [esi + 0x20]
mov dword [ebx + 0x20], edx
mov eax, dword [esi + 0x24]
mov dword [ebx + 0x24], eax
mov ecx, dword [esi + 0x28]
lea edx, [esi + 0x30]
mov dword [ebx + 0x28], ecx
push edx
mov ecx, ebp
call fcn.100c7480
mov eax, dword [ebx + 0x38]
mov ebp, dword [esi + 0x34]
mov esi, dword [esi + 0x38]
cmp eax, edi
je 0x10187d40
push eax
call fcn.100639b7
add esp, 4
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x34], edi
cmp esi, edi
je 0x10187d6d
cmp ebp, edi
jbe 0x10187d6d
push ebp
call fcn.10063988
add esp, 4
cmp eax, edi
mov dword [ebx + 0x38], eax
je 0x10187d6d
mov ecx, ebp
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 0x34], ebp
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x10187d90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101dd69e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x102193a0
mov eax, dword [esi + 0x38]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x14], 2
je 0x10187dd4
push eax
call fcn.100639b7
add esp, 4
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
lea ecx, [esi + 0x30]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov byte [esp + 0x14], 1
call fcn.100c7300
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], bl
call fcn.100c7300
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.1018ace0
mov ecx, dword [esp + 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret