joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a19e
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x51f5d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x10f]
mov esi, ecx
mov edi, edx
push ebx
push eax
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x114], edi
mov byte [ebp - 0x110], bl
call fcn.004c05d0
add esp, 0xc
cmp esi, ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x11c], ebx
je 0x41a22a
cmp byte [esi], bl
je 0x41a22a
cmp edi, ebx
je 0x41a22a
cmp byte [edi], bl
je 0x41a22a
mov edi, 0x61a8
push edi
push 0x20
push 3
push 1
mov eax, esi
call fcn.00418e46
add esp, 0x10
cmp eax, 0xffffffff
mov dword [ebp - 0x124], eax
jne 0x41a23b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bfeb5
leave
ret
push dword [ebp - 0x114]
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.00485786
pop ecx
mov esi, eax
call fcn.00486317
mov edx, esi
call fcn.00485754
test eax, eax
jne 0x41a295
mov eax, esi
push eax
call fcn.004bf880
pop ecx
mov ecx, esi
dec ecx
cmp byte [eax + ecx], 0x5c
jne 0x41a295
push dword [ebp - 0x120]
mov ecx, 0x104
mov eax, esi
call fcn.00485786
pop ecx
push dword [ebp - 0x114]
call fcn.00485e6b
pop ecx
push edi
push 0x80000020
push 2
push 6
lea eax, [ebp - 0x110]
call fcn.00418e46
add esp, 0x10
cmp eax, 0xffffffff
mov dword [ebp - 0x120], eax
jne 0x41a2ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x124]
call fcn.0041cc21
jmp 0x41a22a
mov esi, 0x100000
push esi
call fcn.004c0b87
mov edi, eax
cmp edi, ebx
pop ecx
je 0x41a366
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x11c], ebx
push ebx
lea eax, [ebp - 0x118]
push eax
push esi
push edi
push dword [ebp - 0x124]
mov dword [ebp - 0x118], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41a31c
inc dword [0x52a5c8]
inc dword [ebp - 0x11c]
cmp dword [ebp - 0x118], ebx
jbe 0x41a35d
push ebx
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x118]
mov dword [ebp - 0x128], ebx
push edi
push dword [ebp - 0x120]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41a355
inc dword [0x52a5c8]
inc dword [ebp - 0x114]
cmp dword [ebp - 0x118], ebx
ja 0x41a2f0
push edi
call fcn.004bf2a6
pop ecx
jmp 0x41a370
mov dword [ebp - 0x114], 1
mov esi, dword [ebp - 0x120]
call fcn.0041cc21
mov esi, dword [ebp - 0x124]
call fcn.0041cc21
cmp dword [ebp - 0x11c], ebx
jne 0x41a22a
cmp dword [ebp - 0x114], ebx
jne 0x41a22a
xor eax, eax
inc eax
jmp 0x41a22c

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41a633
test al, 0x10
je 0x41a633
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x41a790
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x35c
mov eax, dword [0x51f5d0]
xor eax, esp
mov dword [esp + 0x358], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [esp + 0x25d]
push ebx
push eax
mov byte [esp + 0x264], bl
call fcn.004c05d0
push esi
lea eax, [esp + 0x161]
push ebx
push eax
mov byte [esp + 0x168], bl
call fcn.004c05d0
push 0x13c
lea eax, [esp + 0x30]
push ebx
push eax
mov dword [esp + 0x34], ebx
call fcn.004c05d0
add esp, 0x24
cmp edi, ebx
je 0x41a8d5
cmp byte [edi], bl
je 0x41a8d5
push edi
lea ecx, [esi + 1]
lea eax, [esp + 0x25c]
call fcn.00485786
push eax
lea eax, [esp + 0x158]
push eax
call fcn.004bf9a0
add esp, 0xc
lea esi, [esp + 0x150]
call fcn.00485a88
mov eax, dword [0x52a2fc]
lea ecx, [eax + 0xf]
mov eax, dword [0x52a2f8]
cmp eax, ecx
jle 0x41a84d
mov dword [0x52a2fc], eax
inc eax
mov dword [0x52a2f8], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
dec dword [0x52a2f8]
mov esi, eax
cmp esi, 0xffffffff
je 0x41a8d5
cmp byte [esp + 0x3c], 0x2e
je 0x41a8be
lea edx, [esp + 0x3c]
call fcn.00485754
test eax, eax
jne 0x41a8be
cmp byte [esp + 0x150], 0x2a
jne 0x41a8ee
cmp byte [esp + 0x152], 0x2a
jne 0x41a8ee
cmp byte [esp + 0x151], 0x3f
je 0x41a8ee
movsx eax, byte [esp + 0x151]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004c2500
test eax, eax
pop ecx
pop ecx
jne 0x41a8ee
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41a873
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov ecx, dword [esp + 0x364]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bfeb5
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
jmp 0x41a8d7
Function at 0x41a8fa
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x51f5d0]
xor eax, ebp
mov dword [ebp + 0x90], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], ebx
je 0x41aa2f
cmp byte [edi], 0x30
je 0x41aa2f
mov esi, 0x104
push esi
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.004c05d0
push edi
mov ecx, esi
lea eax, [ebp - 0x74]
call fcn.00485786
push 0x22
mov edi, eax
call fcn.00486177
add esp, 0x14
cmp dword [ebp + 0x9c], ebx
jbe 0x41a983
push 0xf7b
push str..File.c
mov eax, edi
push eax
push 0x41aa7f
push ebx
mov ecx, str.CreateDirectorySuper
call fcn.0041ca71
mov esi, eax
jmp 0x41a985
xor esi, esi
cmp esi, ebx
jne 0x41a9b9
push ebx
push dword [ebp - 0x7c]
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
cmp eax, ebx
je 0x41a9b4
cmp eax, 0x50
je 0x41a9b4
cmp eax, 0xb7
je 0x41a9b4
cmp eax, 0x4c7
je 0x41a9b4
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41aa2f
xor eax, eax
inc eax
jmp 0x41aa31
call fcn.004af84c
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], ebx
jmp 0x41a9ed
cmp dword [ebp - 0x78], 0x103
jne 0x41aa07
call fcn.004af84c
sub eax, dword [ebp - 0x80]
cmp eax, dword [ebp + 0x9c]
ja 0x41a9fa
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x78]
push eax
push esi
call edi
test eax, eax
jne 0x41a9cc
jmp 0x41aa07
mov dword [ebp - 0x78], ebx
mov dword [0x52a2f4], 0x5b4
call fcn.0041cc21
push dword [0x52a2f4]
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
call esi
cmp dword [ebp - 0x78], ebx
jne 0x41a9b4
mov eax, dword [ebp - 0x7c]
call fcn.0041aa49
push dword [0x52a2f4]
call esi
xor eax, eax
mov ecx, dword [ebp + 0x90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bfeb5
add ebp, 0x94
leave
ret
Function at 0x41ab42
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x51f5d0]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
mov esi, edx
push edi
mov ebx, ecx
mov dword [esp + 0x10], esi
call fcn.00485754
test eax, eax
je 0x41ab87
xor eax, eax
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bfeb5
mov esp, ebp
pop ebp
ret
call fcn.004af84c
push ebx
mov edi, 0x80
push edi
mov dword [esp + 0x1c], eax
push 3
push connect
mov eax, esi
call fcn.00418e46
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
jne 0x41ac14
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
mov esi, eax
je 0x41abc8
call fcn.004af84c
sub eax, dword [esp + 0x14]
cmp eax, ebx
jae 0x41ac08
mov eax, dword [esp + 0x10]
push ebx
push edi
push 3
push 0x2000000
call fcn.00418e46
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
jne 0x41ac14
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
mov esi, eax
je 0x41abfd
call fcn.004af84c
sub eax, dword [esp + 0x14]
cmp eax, ebx
jae 0x41ac08
mov ecx, dword [esp + 0x10]
push ebx
call fcn.0041a636
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41ab70
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x41ac31
call fcn.0041cc21
jmp 0x41ab70
cmp eax, ebx
jbe 0x41ac62
push ebx
lea eax, [esp + 0x14]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ac56
cmp dword [esp + 0x10], ebx
jne 0x41ac62
call fcn.0041cc21
mov eax, ebx
jmp 0x41ab72
mov ebx, dword [esp + 0x14]
jmp 0x41ac56
Function at 0x41b5c3
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, eax
mov edx, edi
call fcn.00485754
test eax, eax
je 0x41b5d8
xor eax, eax
jmp 0x41b657
xor ecx, ecx
mov edx, edi
call fcn.0041ab42
mov esi, eax
test esi, esi
je 0x41b5d4
push 0x1385
push str..File.c
mov edx, 0x4de27c
mov ecx, edi
call fcn.0041c35a
mov ebp, eax
test ebp, ebp
pop ecx
pop ecx
je 0x41b5d4
lea eax, [esi + 0xe]
push eax
call fcn.004c0b87
mov edi, eax
test edi, edi
pop ecx
push ebp
jne 0x41b61e
call fcn.0041c787
pop ecx
jmp 0x41b5d4
push esi
lea eax, [edi + 4]
push 1
push eax
call fcn.004c0915
mov ebx, eax
add esp, 0x10
cmp ebx, esi
jae 0x41b640
push ebp
call fcn.004c064a
test eax, eax
pop ecx
jne 0x41b640
xor ebx, ebx
push ebp
call fcn.0041c787
test ebx, ebx
pop ecx
jne 0x41b653
push edi
call fcn.004bf2a6
jmp 0x41b61b
mov dword [edi], ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x41b6fa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x51f5d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x10f]
mov esi, edx
push 0
push eax
mov edi, ecx
mov dword [ebp - 0x114], esi
mov byte [ebp - 0x110], 0
call fcn.004c05d0
add esp, 0xc
test esi, esi
je 0x41b7da
mov edx, edi
call fcn.00485754
test eax, eax
jne 0x41b7da
push edi
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.00485786
mov esi, eax
call fcn.00485a88
mov eax, esi
push edi
push eax
call fcn.004c0ab0
add esp, 0xc
test eax, eax
jne 0x41b797
push edi
push eax
push eax
call fcn.0045f7e3
pop ecx
pop ecx
push eax
push 0x4df748
mov eax, esi
push 0x104
push eax
call fcn.00486e10
add esp, 0x14
mov edi, esi
push 0x14c4
push str..File.c
mov edx, 0x4de27c
mov ecx, edi
call fcn.0041c35a
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x41b7da
push edi
push 1
push 0x64
push dword [ebp - 0x114]
call fcn.004c0915
mov esi, eax
neg esi
sbb esi, esi
push edi
neg esi
call fcn.0041c787
add esp, 0x14
mov eax, esi
jmp 0x41b7dc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004bfeb5
leave
ret
Function at 0x41b7ea
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x51f5d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x103
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x10f]
push 0
push eax
mov edi, ecx
mov byte [ebp - 0x110], 0
call fcn.004c05d0
add esp, 0xc
mov edx, edi
call fcn.00485754
test eax, eax
je 0x41b839
xor eax, eax
jmp 0x41b8d8
push edi
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.00485786
pop ecx
mov esi, eax
call fcn.00485a88
mov eax, esi
push edi
push eax
call fcn.004c0ab0
test eax, eax
pop ecx
pop ecx
jne 0x41b883
push edi
push eax
push eax
call fcn.0045f7e3
pop ecx
pop ecx
push eax
push 0x4df748
mov eax, esi
push 0x104
push eax
call fcn.00486e10
add esp, 0x14
mov edi, esi
cmp dword [ebp - 0x114], 0
je 0x41b8cd
push 0x14e4
push str..File.c
mov edx, 0x4de3b8
mov ecx, edi
call fcn.0041c35a
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x41b832
push edi
push 1
push 0x64
push dword [ebp - 0x114]
call fcn.004bf5f0
mov esi, eax
neg esi
sbb esi, esi
push edi
neg esi
call fcn.0041c787
add esp, 0x14
jmp 0x41b8d6
mov eax, edi
call fcn.0041a0f3
mov esi, eax
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004bfeb5
leave
ret

Function at 0x41b902
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x51f5d0]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x77]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x7c], esi
mov edi, edx
mov dword [ebp - 0x80], ebx
mov byte [ebp - 0x78], bl
call fcn.004c05d0
add esp, 0xc
cmp edi, ebx
jne 0x41b948
lea edi, [ebp - 0x80]
mov edx, esi
call fcn.00485754
test eax, eax
je 0x41b95c
mov dword [edi], ebx
xor eax, eax
jmp 0x41b9e3
push esi
mov ecx, 0x104
lea eax, [ebp - 0x78]
call fcn.00485786
mov esi, eax
call fcn.00485a88
push dword [ebp - 0x7c]
mov eax, esi
push eax
call fcn.004c0ab0
add esp, 0xc
test eax, eax
jne 0x41b9aa
push dword [ebp - 0x7c]
push ebx
push ebx
call fcn.0045f7e3
pop ecx
pop ecx
push eax
push 0x4df748
mov eax, esi
push 0x104
push eax
call fcn.00486e10
mov eax, esi
add esp, 0x14
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
push 0x151c
push str..File.c
mov edx, 0x4de27c
call fcn.0041c35a
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [edi], ebx
je 0x41b955
push esi
push 1
push 4
push edi
call fcn.004c0915
push esi
mov edi, eax
call fcn.0041c787
add esp, 0x14
mov eax, edi
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bfeb5
add ebp, 0x90
leave
ret
Function at 0x41b9fb
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x51f5d0]
xor eax, ebp
mov dword [ebp + 0x84], eax
push edi
push 0x103
lea eax, [ebp - 0x7f]
push 0
push eax
mov edi, ecx
mov byte [ebp - 0x80], 0
call fcn.004c05d0
add esp, 0xc
mov edx, edi
call fcn.00485754
test eax, eax
je 0x41ba42
xor eax, eax
jmp 0x41bac7
push esi
push edi
mov ecx, 0x104
lea eax, [ebp - 0x80]
call fcn.00485786
mov esi, eax
call fcn.00485a88
mov eax, esi
push edi
push eax
call fcn.004c0ab0
add esp, 0xc
test eax, eax
jne 0x41ba8a
push edi
push eax
push eax
call fcn.0045f7e3
pop ecx
pop ecx
push eax
push 0x4df748
mov eax, esi
push 0x104
push eax
call fcn.00486e10
add esp, 0x14
mov edi, esi
push 0x1542
push str..File.c
mov edx, 0x4de3b8
mov ecx, edi
call fcn.0041c35a
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41bac6
push esi
push 1
lea eax, [ebp + 0x90]
push 4
push eax
call fcn.004bf5f0
push esi
mov edi, eax
call fcn.0041c787
add esp, 0x14
mov eax, edi
pop esi
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
pop edi
call fcn.004bfeb5
add ebp, 0x88
leave
ret
Function at 0x41c05e
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x51f5d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call fcn.004c05d0
add esp, 0xc
mov edx, edi
call fcn.00485754
test eax, eax
je 0x41c0a6
xor eax, eax
jmp 0x41c259
push edi
push str._s.manifest
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.00486e10
add esp, 0x10
cmp dword [ebp + 0xc], ebx
jne 0x41c0e7
push 0x80
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x110]
call fcn.0041a0f3
jmp 0x41c259
push dword [ebp + 0x10]
push ebx
push edi
call fcn.0041c05e
add esp, 0xc
push 0x18d8
push str..File.c
mov edx, 0x4e1360
lea ecx, [ebp - 0x110]
call fcn.0041c35a
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
jne 0x41c19e
push 0x103
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call fcn.004c05d0
lea eax, [ebp - 0x110]
add esp, 0xc
push eax
mov ecx, 0x104
lea eax, [ebp - 0x218]
call fcn.00485786
pop ecx
call fcn.00485acb
push eax
call fcn.0041a61c
test eax, eax
pop ecx
jne 0x41c09f
cmp dword [0x52a5d4], ebx
jne 0x41c09f
push ebx
lea ecx, [ebp - 0x218]
call fcn.0041a8fa
pop ecx
push dword [ebp + 0x10]
mov dword [0x52a5d4], 1
push dword [ebp + 0xc]
push edi
call fcn.0041c05e
add esp, 0xc
mov dword [0x52a5d4], ebx
jmp 0x41c259
push str.__xml_version_1.0__encoding_UTF_8__standalone_yes___
push esi
call fcn.004c0930
push str._n_assembly_xmlns_urn:schemas_microsoft_com:asm.v1__manifestVersion_1.0__
push esi
call fcn.004c0930
push str._n___trustInfo_xmlns_urn:schemas_microsoft_com:asm.v2__
push esi
call fcn.004c0930
push str._n_____security_
push esi
call fcn.004c0930
push str._n_______requestedPrivileges_
push esi
call fcn.004c0930
push str._n_________requestedExecutionLevel
push esi
call fcn.004c0930
add esp, 0x30
cmp dword [ebp + 0x10], ebx
je 0x41c1ef
push str._n__________level_requireAdministrator_
jmp 0x41c1f4
push str._n__________level_asInvoker_
push esi
call fcn.004c0930
pop ecx
pop ecx
push str._n__________uiAccess_false___
push esi
call fcn.004c0930
push str._n________requestedPrivileges_
push esi
call fcn.004c0930
push str._n______security_
push esi
call fcn.004c0930
push str._n____trustInfo_
push esi
call fcn.004c0930
push str._n__assembly_
push esi
call fcn.004c0930
push 0x4e04b4
push esi
call fcn.004c0930
push esi
call fcn.0041c787
add esp, 0x34
push 7
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bfeb5
leave
ret
Function at 0x41c268
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x51f5d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x147]
push ebx
push eax
mov byte [ebp - 0x148], bl
call fcn.004c05d0
push 0x3f
lea eax, [ebp - 0x43]
push ebx
push eax
mov byte [ebp - 0x44], bl
call fcn.004c05d0
add esp, 0x18
cmp edi, ebx
je 0x41c30e
mov eax, edi
call fcn.004856d7
push 0x21e88e
lea eax, [esi - 0x25]
call fcn.0043ebd0
push eax
push str.P2_Tmp__d
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.00486e10
add esp, 0x14
lea eax, [ebp - 0x148]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x41c30e
push edi
push ebx
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x41c30e
mov edx, edi
call fcn.00485754
test eax, eax
jne 0x41c30e
mov eax, edi
jmp 0x41c310
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004bfeb5
leave
ret
Function at 0x41ca71
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x51f5d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
push 0x103
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x107]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x108], 0
call fcn.004c05d0
push 0x1c8
push 1
call fcn.004bf452
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x41cacf
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x41cbbd
push ebx
mov ebx, dword [0x52bd8c]
test ebx, ebx
jne 0x41cae7
call fcn.0046e649
mov ebx, eax
mov dword [0x52bd8c], ebx
push edi
call fcn.0046e6fb
xor ebx, ebx
cmp dword [0x52bd8c], ebx
pop ecx
jne 0x41cb0c
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call fcn.004bf2a6
pop ecx
jmp 0x41cbba
push 0xc
lea eax, [edi + 4]
push ebx
push eax
mov dword [edi], ebx
call fcn.004c05d0
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [edi + 0x18], eax
push 0x40
lea eax, [edi + 0x24]
pop ecx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
call fcn.00485786
push dword [ebp - 0x10c]
mov ecx, 0x104
lea eax, [ebp - 0x108]
call fcn.00485786
mov esi, eax
call fcn.00485a88
mov eax, esi
push eax
push 0x40
lea eax, [edi + 0x64]
pop ecx
call fcn.00485786
mov eax, dword [ebp + 0x18]
add esp, 0x18
mov dword [edi + 0xa4], eax
mov dword [edi + 0xb0], ebx
call fcn.004af84c
mov dword [edi + 0xb4], eax
lea eax, [edi + 0xb8]
call fcn.004856d7
push ebx
push ebx
push edi
push 0x41ca2d
push dword [ebp + 8]
mov dword [edi + 0xac], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [edi + 0xa8], eax
jne 0x41cbbc
mov eax, edi
call fcn.0041c9e5
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004bfeb5
leave
ret 0x14

Function at 0x41cbcd
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [0x52bd8c]
xor ebx, ebx
call fcn.0046e937
xor esi, esi
jmp 0x41cc02
cmp esi, 0x56ce
jge 0x41cc0a
cmp ebp, dword [eax + 0xa8]
je 0x41cc08
mov edi, dword [0x52bd8c]
call fcn.0046e983
inc esi
test eax, eax
jne 0x41cbe6
jmp 0x41cc0a
mov ebx, eax
mov eax, ebx
call fcn.0041c9e5
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41ea49
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x104
mov eax, dword [0x51f5d0]
xor eax, ebp
mov dword [ebp + 0x74], eax
mov eax, dword [0x52c0e8]
push ebx
push esi
xor ebx, ebx
cmp eax, ebx
push edi
mov esi, 0x90
jne 0x41eaa5
push esi
lea eax, [ebp - 0x1c]
push ebx
push eax
mov dword [ebp - 0x20], ebx
call fcn.004c05d0
lea edi, [esi + 4]
push edi
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.004c05d0
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x10]
mov dword [0x52c0e8], eax
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x41ead7
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
xor byte [ebp + 4], bl
push 2
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
add esi, eax
jmp 0x41eaf7
mov edi, dword [sym.imp.USER32.dll_keybd_event]
push 0
push ebx
push 0x45
push esi
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 3
push 0x45
push esi
call edi
mov esi, ebx
mov ecx, dword [ebp + 0x74]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bfeb5
add ebp, 0x78
leave
ret

Function at 0x41eb3a
Capabilities:
Log keystrokes via polling

Disassembly:
push dword [esp + 4]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx eax, ax
movzx eax, ax
shr eax, 0xf
ret