joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434aae
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [ecx + 0x80]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0xc], ecx
cmp eax, ebx
je 0x434bd5
mov esi, dword [ebp + 8]
mov edi, dword [esi]
and edi, 2
jne 0x434ae0
cmp edi, ebx
je 0x434b78
mov ecx, edi
neg ecx
sbb ecx, ecx
lea edx, [esp + 0x20]
and ecx, edx
push ecx
mov ecx, edi
neg ecx
sbb ecx, ecx
lea edx, [esp + 0x1c]
and ecx, edx
push ecx
mov ecx, edi
neg ecx
sbb ecx, ecx
lea edx, [esp + 0x18]
and ecx, edx
push ecx
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.DLL_GetFileTime]
test eax, eax
jne 0x434b3c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.00434fc5
jmp 0x434bda
cmp edi, ebx
je 0x434b78
lea eax, [esp + 0x10]
push eax
call fcn.00434d08
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
cmp edi, ebx
je 0x434b78
lea eax, [esp + 0x18]
push eax
call fcn.00434d08
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
cmp edi, ebx
je 0x434b78
lea eax, [esp + 0x20]
push eax
call fcn.00434d08
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
test byte [esi], 0x10
je 0x434b8c
mov ecx, dword [esp + 0xc]
call fcn.0043531f
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
test byte [esi], 1
je 0x434bb6
mov eax, dword [esp + 0xc]
call fcn.0043538f
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x434b2a
lea ecx, [esp + 0x10]
call fcn.00434be3
mov dword [esi + 4], eax
test byte [esi], 0x20
je 0x434bd0
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x20], 8
jb 0x434bca
mov eax, dword [eax + 0xc]
jmp 0x434bcd
add eax, 0xc
mov dword [esi + 0x28], eax
xor eax, eax
inc eax
jmp 0x434bda
mov eax, 0x1000000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x434dd3
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x80], 0
jne 0x434de5
xor eax, eax
xor edx, edx
jmp 0x434e08
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00435338
push dword [esi + 0x80]
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
pop esi
ret 8

Function at 0x434e8f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x80]
test eax, eax
je 0x434ef3
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x434ecd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.00434fc5
mov dword [esi + 0x4c], eax
jmp 0x434ef0
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x434edd
mov dword [esi + 0x4c], 0x1000c00
jmp 0x434ef0
lea eax, [esi + 0x88]
add dword [eax], ecx
mov dword [esi + 0x4c], 1
adc dword [eax + 4], 0
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
Function at 0x434ef8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x80]
test eax, eax
je 0x434f4f
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x434f36
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.00434fc5
mov dword [esi + 0x4c], eax
jmp 0x434f4c
mov ecx, dword [ebp - 4]
lea eax, [esi + 0x88]
add dword [eax], ecx
mov dword [esi + 0x4c], 1
adc dword [eax + 4], 0
mov eax, dword [ebp - 4]
pop esi
leave
ret 8

Function at 0x43519c
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x80]
test eax, eax
je 0x4351e5
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea edi, [esi + 0x50]
test byte [edi], 1
je 0x4351dd
lea ecx, [esi + 0x54]
call fcn.00434c61
push eax
mov eax, esi
call fcn.0043538f
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push 0x30
push 0
push edi
call fcn.0043ad60
add esp, 0xc
and dword [esi + 0x80], 0
pop edi
pop esi
ret
Function at 0x43542b
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44e571
mov eax, dword fs:[0]
push eax
sub esp, 0x550
mov eax, dword [0x4651b0]
xor eax, esp
mov dword [esp + 0x548], eax
push ebx
push esi
push edi
mov eax, dword [0x4651b0]
xor eax, esp
push eax
lea eax, [esp + 0x560]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x10], esi
call fcn.0043571b
lea eax, [esp + 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x43549c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.00434fc5
jmp 0x435609
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
push 0x4411
push 0x2b4
lea eax, [esp + 0x2a4]
push eax
push dword [esp + 0x58]
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
xor esi, esi
cmp eax, esi
je 0x43548a
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0x48], esi
test al, 1
je 0x4354d8
mov dword [ebx + 0x48], 0x80
test al, 0x20
je 0x4354e0
or dword [ebx + 0x48], 2
mov ecx, 0x800
test ecx, eax
je 0x4354ed
or dword [ebx + 0x48], 4
test eax, 0x4000
je 0x4354f8
or dword [ebx + 0x48], 8
test al, 2
je 0x435500
or dword [ebx + 0x48], 0x10
test al, al
jns 0x435508
or dword [ebx + 0x48], 0x20
test al, 4
je 0x435513
or dword [ebx + 0x48], 0x400
test eax, 0x100
je 0x43551d
or dword [ebx + 0x48], ecx
test al, 0x10
je 0x435525
or dword [ebx + 0x48], 1
push dword [esp + 0x54]
push dword [esp + 0x54]
call fcn.00435660
push dword [esp + 0x5c]
mov dword [ebx + 0x58], eax
push dword [esp + 0x5c]
mov dword [ebx + 0x5c], edx
call fcn.00435660
push dword [esp + 0x64]
mov dword [ebx + 0x60], eax
push dword [esp + 0x64]
mov dword [ebx + 0x64], edx
call fcn.00435660
mov dword [ebx + 0x68], eax
mov eax, dword [esp + 0x68]
mov dword [ebx + 0x6c], edx
mov edx, esi
mov cl, 0x20
call fcn.00448500
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x6c]
add dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
lea eax, [esp + 0x4b0]
adc dword [ebx + 0xc], esi
lea ecx, [esp + 0x14]
call fcn.00413420
mov dword [esp + 0x568], esi
lea esi, [ebx + 0x10]
lea edi, [esp + 0x14]
call fcn.0041999d
mov esi, edi
call fcn.0040ba90
mov eax, dword [esp + 0x2a0]
mov esi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x4010
mov dword [ebx + 0x50], eax
mov edi, 0x2b4
push edi
lea eax, [esp + 0x2a4]
push eax
push dword [esp + 0x58]
push dword [esp + 0x20]
call esi
test eax, eax
je 0x4355e0
mov eax, dword [esp + 0x2a0]
mov dword [ebx + 0x54], eax
push 0x4012
push edi
lea eax, [esp + 0x2a4]
push eax
push dword [esp + 0x58]
push dword [esp + 0x20]
call esi
test eax, eax
je 0x435606
mov eax, dword [esp + 0x2a0]
mov dword [ebx + 0x4c], eax
xor eax, eax
inc eax
mov ecx, dword [esp + 0x560]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x548]
xor ecx, esp
call fcn.00438b17
mov esp, ebp
pop ebp
ret 4
Function at 0x435dc9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov eax, edi
push dword [ebp + 8]
call fcn.00435e24
push dword [ebp + 0x18]
lea eax, [edi + 8]
push dword [ebp + 0x14]
push 0xc
push eax
call fcn.00438e1d
xor esi, esi
add esp, 0x10
cmp dword [ebp + 0x18], esi
jbe 0x435e19
push ebx
mov eax, edi
call fcn.00435d58
mov bl, al
mov eax, dword [ebp + 0x14]
xor bl, byte [esi + eax]
mov eax, edi
mov cl, bl
call fcn.00435e59
mov byte [edi + esi + 8], bl
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x435df6
pop ebx
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x20], eax
pop esi
pop ebp
ret 0x14

Function at 0x435e59
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
movzx edx, byte [eax + 0x14]
movzx ecx, cl
xor ecx, edx
mov ecx, dword [ecx*4 + 0x455078]
mov edx, dword [eax + 0x14]
shr edx, 8
xor ecx, edx
movzx edx, byte [eax + 0x1c]
mov dword [eax + 0x14], ecx
movzx ecx, cl
add ecx, dword [eax + 0x18]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [eax + 0x18], ecx
shr ecx, 0x18
xor ecx, edx
mov edx, dword [eax + 0x1c]
shr edx, 8
xor edx, dword [ecx*4 + 0x455078]
mov dword [eax + 0x1c], edx
ret

Function at 0x436919
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push edi
mov edi, 0x104
push edi
lea ebx, [esi + 0x104]
push esi
push ebx
xor ebp, ebp
call fcn.0043afe0
add esp, 0xc
mov eax, edi
sub eax, ebp
push eax
lea eax, [esi + ebp]
push eax
call dword [esi + 0x20c]
add ebp, eax
pop ecx
pop ecx
cmp ebp, edi
jb 0x436934
xor eax, eax
mov cl, byte [ebx + eax]
not cl
xor byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x43694d
push esi
call fcn.00436888
push ebx
call fcn.00436888
pop ecx
pop ecx
pop edi
pop ebp
pop ebx
ret

Function at 0x436a8d
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ebx + 0x9c]
push edi
cmp eax, 0xffffffff
je 0x436af7
cmp eax, 0x40
jbe 0x436ab4
push esi
lea esi, [ebx + 0x40]
push ebx
call fcn.004389a6
pop ecx
mov dword [ebx + 0x9c], 0x14
pop esi
mov eax, dword [ebx + 0x9c]
push 0x40
pop ecx
sub ecx, eax
push ecx
add eax, ebx
push 0
push eax
call fcn.0043ad60
add esp, 0xc
xor eax, eax
xor dword [ebx + eax*4], 0x36363636
inc eax
cmp eax, 0x10
jb 0x436acf
lea eax, [ebx + 0x40]
call fcn.00438915
push 0x40
mov edi, eax
mov ecx, ebx
call fcn.00438940
or dword [ebx + 0x9c], 0xffffffff
pop ecx
cmp dword [esp + 0xc], 0
je 0x436b0f
push dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
lea edi, [ebx + 0x40]
call fcn.00438940
pop ecx
pop edi
ret
Function at 0x436b11
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4651b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
cmp dword [ebx + 0x9c], 0xffffffff
push esi
push edi
mov dword [ebp - 0x1c], eax
je 0x436b40
push 0
push 0
call fcn.00436a8d
pop ecx
pop ecx
lea eax, [ebp - 0x18]
lea esi, [ebx + 0x40]
push eax
call fcn.004389a6
pop ecx
xor eax, eax
xor dword [ebx + eax*4], 0x6a6a6a6a
inc eax
cmp eax, 0x10
jb 0x436b4f
mov eax, esi
call fcn.00438915
push 0x40
mov edi, esi
mov ecx, ebx
call fcn.00438940
push 0x14
lea ecx, [ebp - 0x18]
call fcn.00438940
lea eax, [ebp - 0x18]
push eax
call fcn.004389a6
add esp, 0xc
cmp dword [ebp + 0xc], 0
pop edi
pop esi
pop ebx
jbe 0x436b9f
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call fcn.0043afe0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438b17
leave
ret
Function at 0x4385d3
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x220
mov eax, dword [0x4651b0]
xor eax, ebp
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x70]
push ebx
mov dword [ebp - 0x1b0], eax
mov eax, dword [ebp + 0x78]
push esi
mov dword [ebp - 0x1bc], eax
lea eax, [ebp - 0x108]
push edi
push eax
mov esi, ecx
call fcn.00436a1b
mov ebx, dword [ebp + 0x6c]
push esi
lea esi, [ebp - 0x108]
call fcn.00436a2f
mov edi, 0xa0
push edi
mov eax, esi
push eax
lea eax, [ebp - 0x1a8]
push eax
call fcn.0043afe0
push dword [ebp + 0x74]
lea ebx, [ebp - 0x1a8]
push dword [ebp - 0x1b0]
call fcn.00436a8d
mov eax, dword [ebp + 0x7c]
add esp, 0x1c
push 0x14
dec eax
xor edx, edx
pop ecx
div ecx
mov esi, eax
inc esi
je 0x438756
and dword [ebp - 0x1b4], 0
xor ebx, ebx
inc ebx
lea eax, [ebp + 0x38]
mov dword [ebp - 0x1ac], ebx
mov dword [ebp - 0x1b8], eax
jmp 0x43867b
mov ebx, dword [ebp - 0x1ac]
push 0x14
lea eax, [ebp + 0x38]
push 0
push eax
call fcn.0043ad60
push edi
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0043afe0
mov eax, ebx
shr eax, 0x18
mov byte [ebp + 0x4c], al
mov eax, ebx
shr eax, 0x10
add esp, 0x18
mov byte [ebp + 0x4d], al
mov eax, ebx
shr eax, 8
push 4
mov byte [ebp + 0x4f], bl
mov byte [ebp + 0x4e], al
pop ebx
mov dword [ebp - 0x1b0], 0x3e8
push ebx
lea eax, [ebp + 0x4c]
push eax
lea ebx, [ebp - 0x68]
call fcn.00436a8d
lea eax, [ebp + 0x4c]
push 0x14
push eax
mov ecx, ebx
call fcn.00436b11
add esp, 0x10
xor ebx, ebx
mov al, byte [ebp + ebx + 0x4c]
xor byte [ebp + ebx + 0x38], al
inc ebx
cmp ebx, 0x14
jb 0x4386e3
push edi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0043afe0
add esp, 0xc
dec dword [ebp - 0x1b0]
jne 0x4386c4
mov eax, dword [ebp - 0x1b4]
xor ecx, ecx
cmp eax, dword [ebp + 0x7c]
jae 0x438733
mov edx, dword [ebp - 0x1b8]
mov dl, byte [edx + eax]
mov ebx, dword [ebp - 0x1bc]
inc ecx
mov byte [eax + ebx], dl
inc eax
cmp ecx, 0x14
jb 0x438715
inc dword [ebp - 0x1ac]
add dword [ebp - 0x1b4], 0x14
sub dword [ebp - 0x1b8], 0x14
mov eax, dword [ebp - 0x1ac]
dec eax
cmp eax, esi
jb 0x438675
mov ecx, dword [ebp + 0x60]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438b17
add ebp, 0x64
leave
ret
Function at 0x438768
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push ebx
push esi
push edi
xor esi, esi
lea edx, [eax + 0x1c]
mov ecx, dword [edx]
mov edi, ecx
ror edi, 8
and edi, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edi, ecx
mov dword [ebp + esi*4 - 0x150], edi
inc esi
add edx, 4
cmp esi, 0x10
jb 0x438779
push 0x40
lea ecx, [ebp - 0x148]
pop edx
mov esi, dword [ecx + 0x2c]
xor esi, dword [ecx + 0x18]
xor esi, dword [ecx - 8]
xor esi, dword [ecx]
add ecx, 4
dec edx
rol esi, 1
mov dword [ecx + 0x34], esi
jne 0x4387aa
mov edi, dword [eax + 0x14]
mov edx, dword [eax + 8]
mov esi, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
and dword [ebp - 4], 0
mov dword [ebp - 8], edi
mov edi, dword [eax + 0x18]
mov dword [ebp - 0x10], edi
mov edi, esi
not edi
and edi, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov ebx, ecx
and ebx, esi
xor edi, ebx
rol edx, 5
add edx, edi
mov edi, dword [ebp - 4]
add edx, dword [ebp + edi*4 - 0x150]
mov edi, dword [ebp - 0x10]
inc dword [ebp - 4]
ror esi, 2
cmp dword [ebp - 4], 0x14
lea edx, [edx + edi + 0x5a827999]
mov edi, dword [ebp - 8]
mov dword [ebp - 8], ecx
mov ecx, esi
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
jb 0x4387d9
mov dword [ebp - 4], 0x14
mov ebx, dword [ebp - 8]
xor ebx, ecx
mov dword [ebp - 0xc], edx
xor ebx, esi
rol edx, 5
add edx, ebx
mov ebx, dword [ebp - 4]
add edx, dword [ebp + ebx*4 - 0x150]
inc dword [ebp - 4]
ror esi, 2
cmp dword [ebp - 4], 0x28
lea edx, [edx + edi + 0x6ed9eba1]
mov edi, dword [ebp - 8]
mov dword [ebp - 8], ecx
mov ecx, esi
mov esi, dword [ebp - 0xc]
jb 0x438823
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0x28
mov edi, ecx
xor edi, esi
and edi, dword [ebp - 8]
mov ebx, ecx
and ebx, esi
xor edi, ebx
mov ebx, dword [ebp - 4]
add edi, dword [ebp + ebx*4 - 0x150]
mov dword [ebp - 0xc], edx
rol edx, 5
add edx, dword [ebp - 0x10]
inc dword [ebp - 4]
lea edx, [edi + edx - 0x70e44324]
mov edi, dword [ebp - 8]
ror esi, 2
push 0x3c
mov dword [ebp - 0x10], edi
pop edi
mov dword [ebp - 8], ecx
mov ecx, esi
mov esi, dword [ebp - 0xc]
cmp dword [ebp - 4], edi
jb 0x438864
mov dword [ebp - 4], edi
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
xor edi, ecx
mov dword [ebp - 0xc], edx
xor edi, esi
add edi, dword [ebp + ebx*4 - 0x150]
mov ebx, dword [ebp - 8]
rol edx, 5
add edx, dword [ebp - 0x10]
inc dword [ebp - 4]
ror esi, 2
cmp dword [ebp - 4], 0x50
mov dword [ebp - 8], ecx
mov ecx, esi
mov esi, dword [ebp - 0xc]
lea edx, [edi + edx - 0x359d3e2a]
mov dword [ebp - 0x10], ebx
jb 0x4388aa
mov edi, dword [eax + 8]
add edi, edx
mov edx, dword [eax + 0xc]
add edx, esi
mov dword [eax + 0xc], edx
mov edx, dword [eax + 0x10]
add edx, ecx
mov ecx, dword [eax + 0x14]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 8]
add ecx, edx
mov dword [eax + 0x14], ecx
mov ecx, dword [eax + 0x18]
mov dword [eax + 8], edi
pop edi
add ecx, ebx
pop esi
mov dword [eax + 0x18], ecx
pop ebx
leave
ret
Function at 0x438915
Capabilities:
Hash data using sha1

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret

Function at 0x438b17
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4651b0]
jne 0x438b21
repz ret
jmp fcn.0043d1f9

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4391d6
call fcn.0043a657
mov dword [eax], esi
call fcn.0043a644
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00438ddc
add esp, 0x14
push 0x16
pop eax
jmp 0x43922b
test dword [ebp + 0xc], 0xfffffff9
jne 0x4391b2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x439203
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.0043a66a
pop ecx
call fcn.0043a644
mov eax, dword [eax]
jmp 0x43922b
test al, 0x10
jne 0x439229
test al, 1
je 0x439229
test byte [ebp + 0xc], 2
je 0x439229
call fcn.0043a657
mov dword [eax], 5
call fcn.0043a644
mov dword [eax], 0xd
jmp 0x4391fa
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4468aa
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0043d747
and dword [ebp - 4], 0
cmp dword [0x4681a4], 0
mov ebx, eax
jne 0x44695b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x446a0c
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x446a0c
push eax
call fcn.0043d6d5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4681a4], eax
call esi
push eax
call fcn.0043d6d5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4681a8], eax
call esi
push eax
call fcn.0043d6d5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4681ac], eax
call esi
push eax
call fcn.0043d6d5
pop ecx
mov dword [0x4681b4], eax
test eax, eax
je 0x44695b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043d6d5
pop ecx
mov dword [0x4681b0], eax
mov eax, dword [0x4681b0]
cmp eax, ebx
je 0x4469b3
cmp dword [0x4681b4], ebx
je 0x4469b3
push eax
call fcn.0043d750
push dword [0x4681b4]
mov esi, eax
call fcn.0043d750
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4469b3
test edi, edi
je 0x4469b3
call esi
test eax, eax
je 0x4469aa
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4469aa
test byte [ebp - 0xc], 1
jne 0x4469b3
or dword [ebp + 0x10], 0x200000
jmp 0x4469ec
mov eax, dword [0x4681a8]
cmp eax, ebx
je 0x4469ec
push eax
call fcn.0043d750
pop ecx
test eax, eax
je 0x4469ec
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4469ec
mov eax, dword [0x4681ac]
cmp eax, ebx
je 0x4469ec
push eax
call fcn.0043d750
pop ecx
test eax, eax
je 0x4469ec
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4681a4]
call fcn.0043d750
pop ecx
test eax, eax
je 0x446a0c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x446a0e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100094c4
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, edx
xor ebx, ebx
push edi
push ebx
push 5
xor esi, esi
mov edx, str.SOFTWAREPoliciesMicrosoftOffice_i.0OneNoteOptionsSave
inc esi
push esi
push str.Notebook_Root
push str.SOFTWAREMicrosoftOffice_i.0OneNoteOptionsSave
call fcn.100152f6
test eax, eax
jne 0x10009559
test edi, edi
je 0x10009557
push esi
push 5
push edi
push ebx
mov word [edi], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10009552
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10009507
sub ecx, edx
sar ecx, 1
call fcn.100152f6
mov ecx, eax
cmp ecx, 0x824
jl 0x10009529
mov eax, ebx
jmp 0x1000954e
test ecx, ecx
jle 0x1000954c
push 0x5c
pop edx
cmp dx, word [edi + ecx*2 - 2]
je 0x1000954c
lea eax, [ecx + 1]
cmp eax, 0x824
jge 0x10009525
xor eax, eax
mov word [edi + ecx*2], dx
mov word [edi + ecx*2 + 2], ax
mov eax, esi
test eax, eax
jne 0x10009559
xor eax, eax
mov word [edi], ax
mov esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
ret 4
Function at 0x100152f6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x10015305
pop dword [ebp - 0x50]
mov eax, 0x10015305
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x40984
push 0
mov eax, 0xe072b7bc
sub eax, 0xd06f5664
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0xfee3be23
sub ecx, 0xfee37cae
mov edi, eax
mov ebx, 0xeb6077d7
sub ebx, 0xdb5bb7d7
add ebx, dword [ebp - 0x50]
mov edx, 0xadf43578
add edx, 0xa6ca43ca
mov dword [ebp - 0x44], 0x3fa0edf5
mov esi, dword [ebx]
sub dword [ebp - 8], 0xfd83bc9a
xor esi, edx
mov dword [ebp - 0x30], 0x5d6a256e
mov dword [edi], esi
xor dword [ebp - 0x20], ebx
add edi, 0xca031b9a
add edi, 0x35fce46a
add ebx, 0xd1184383
add ebx, 0x2ee7bc81
loop 0x1001535f
add eax, 0xde0d4689
sub eax, 0xde0c4de2
xor ebx, ebx
add ebx, eax
add eax, 0x7ea0c773
sub eax, 0x7ea0c76e
mov ecx, 0xaf1032ba
sub ecx, 0x9f1032ba
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x406500
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x30
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
mov dword [esp + 8], eax
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
lea eax, [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 0x2c], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00406ea0
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
and esp, 0xfffffff0
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
leave
shl edx, 5
add eax, edx
ret
Function at 0x40913c
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40915d
xor al, al
jmp 0x4091ce
lea ecx, [ebp - 0x18]
push ecx
push 0x436460
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x409180
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4091ce
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 2
push 0
push 0
push 0x10
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4091c2
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4091ce
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret