joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e8d0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46ea7b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46ea5c
mov dl, 1
mov eax, dword [0x41aa74]
call fcn.00403b78
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404aa8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46ea4b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004612e8
test al, al
je 0x46ea3e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x46ea8c
lea eax, [ebp - 0x254]
call fcn.0040aab4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46ea3e
xor eax, eax
push ebp
push 0x46ea37
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x46eac4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46ea20
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404d18
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x46ea20
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404d18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ea3e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46e941
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041f418
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ea82
lea eax, [ebp - 0x260]
call fcn.00404aa8
ret

Function at 0x46f3f4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x5025b8]
cmp byte [eax + 0xad], 0
jne 0x46f465
cmp dword [0x5025d0], 0
jne 0x46f426
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46f3b0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x5025d0], eax
cmp dword [0x5025cc], 0
jne 0x46f441
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x5025cc], eax
cmp dword [0x5025d4], 0
jne 0x46f465
push esp
push 0
push 0
push 0x46f354
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5025d4], eax
pop edx
ret
Function at 0x46f638
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46f64f
add esp, 0xfffffff0
call fcn.00403ecc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00423d14
mov eax, dword [0x4fead8]
cmp word [eax + 2], 0
jne 0x46f677
mov eax, dword [0x4fead8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00471178
mov eax, dword [0x4fec58]
cmp word [eax + 2], 0
jne 0x46f691
mov eax, dword [0x4fec58]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00471384
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41a408]
call fcn.00403b78
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41a408]
call fcn.00403b78
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x41a408]
call fcn.00403b78
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x429884]
call fcn.00431d8c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x46f848
mov eax, dword [0x4fe8d8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00432160
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x471a54
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4fe8d8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040e994
test eax, eax
je 0x46f798
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040a0bc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e9c8
test eax, eax
je 0x46f7ac
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404d18
mov byte [ebx + 0xd4], 0
push ebx
push 0x470cd8
call fcn.00424e90
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4fe624]
cmp byte [eax], 0
jne 0x46f7fd
mov eax, ebx
call fcn.0046f98c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00471c30
mov eax, ebx
call fcn.00472790
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46f83d
call fcn.00403f24
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46fc0c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x5025b8]
cmp dword [eax + 0x30], 0
je 0x46fcb6
cmp dword [ebx + 0x94], 0
jne 0x46fcb0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46fb9c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46fcb0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46fc76
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46fcb0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041cae0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46fc85
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4709d0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x470a05
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404b98
jmp 0x470a12
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404afc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x471e14
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x471e82
mov eax, esi
call fcn.0045bf1c
test al, al
je 0x471e82
mov eax, dword [ebx + 0x84]
call fcn.0045bb7c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x471e82
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x471e76
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045bb7c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00453e20
jmp 0x471e82
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00471c50
pop esi
pop ebx
ret
Function at 0x4756b8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4756e6
mov eax, ebx
call fcn.0047616c
cmp dword [ebx + 0x40], 0
je 0x4756df
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x475757
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x475749
cmp dword [ebx + 8], 0
je 0x475708
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x47571a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x475749
cmp dword [ebx + 8], 0
je 0x4756fb
cmp eax, 3
je 0x47572d
dec eax
jne 0x4756fb
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4756fb
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4756fb
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x475775
cmp dword [ebx + 0x14], 0xcc
je 0x475775
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00475780
pop ebx
ret
Function at 0x49746c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x407d1c]
call fcn.004055e0
xor eax, eax
push ebp
push 0x49760d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4fd48c], 0
jne 0x4974c7
mov ecx, dword [0x4fe654]
mov dl, 1
mov eax, dword [0x408348]
call fcn.0040db18
call fcn.0040441c
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.004034c8
mov eax, ebx
call fcn.00405430
mov dword [ebp - 0x24], eax
mov esi, 0x49761c
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.004067c0
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00405440
test eax, eax
jle 0x4975b0
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x49759c
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404d18
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x497542
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00404d30
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x497558
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00404d30
mov eax, dword [ebp - 0x54]
call fcn.00404f6c
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404d18
mov eax, dword [ebp - 0x58]
call fcn.00404f6c
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x49759e
xor eax, eax
test al, al
je 0x4975a9
mov ebx, 0x15
jmp 0x4975b5
mov ebx, 0x10
jmp 0x4975b5
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x4fd48c]
call fcn.004972f0
mov eax, dword [ebp - 4]
call fcn.004972f0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.004067d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497614
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00404acc
lea eax, [ebp - 0xc]
mov edx, dword [0x407d1c]
call fcn.004056b0
ret
Function at 0x49f038
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcdc
push ebx
xor eax, eax
mov dword [ebp - 0x324], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49f0f3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x31f]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x324]
lea edx, [ebp - 0x31f]
mov ecx, 0x105
call fcn.00404d18
mov eax, dword [ebp - 0x324]
lea edx, [ebp - 4]
call fcn.00409e98
lea eax, [ebp - 4]
mov edx, 0x49f10c
call fcn.00404d74
push 0x105
lea eax, [ebp - 0x21a]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x105
lea eax, [ebp - 0x115]
push eax
mov eax, dword [ebp - 4]
call fcn.00404f6c
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov ebx, dword [ebp - 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f0fa
lea eax, [ebp - 0x324]
call fcn.00404aa8
lea eax, [ebp - 4]
call fcn.00404aa8
ret
Function at 0x4ea25c
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404f5c
xor eax, eax
push ebp
push 0x4ea441
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 0xc
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0xffffffff
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebx + 0x34]
push eax
call sub.kernel32.dll_CreatePipe
cmp eax, 1
sbb eax, eax
inc eax
and eax, 0x7f
cmp eax, 1
jbe 0x4ea2ba
call fcn.00403a70
call fcn.004e9e0c
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebx + 0x40]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_CreatePipe
cmp eax, 1
sbb eax, eax
inc eax
and eax, 0x7f
cmp eax, 1
jbe 0x4ea2e5
call fcn.00403a70
call fcn.004e9e0c
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebx + 0x48]
push eax
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_CreatePipe
cmp eax, 1
sbb eax, eax
inc eax
and eax, 0x7f
cmp eax, 1
jbe 0x4ea310
call fcn.00403a70
call fcn.004e9e0c
lea edx, [ebx + 0x38]
mov eax, dword [ebp - 8]
call fcn.004e9e18
lea edx, [ebx + 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004e9e18
lea edx, [ebx + 0x44]
mov eax, dword [ebp - 0x10]
call fcn.004e9e18
lea eax, [ebp - 8]
call fcn.004e9e54
lea eax, [ebp - 0xc]
call fcn.004e9e54
lea eax, [ebp - 0x10]
call fcn.004e9e54
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x44
call fcn.004034c8
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x38], 0x101
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x40]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0x24], eax
movzx eax, byte [ebp + 8]
call fcn.004e9e90
cmp eax, 0xffff
jbe 0x4ea392
call fcn.00403a70
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 4]
call fcn.004e9e7c
push eax
push 0
push 0x10
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, esi
call fcn.00404f6c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
and eax, 0x7f
cmp eax, 1
jbe 0x4ea3d5
call fcn.00403a70
call fcn.004e9e0c
lea eax, [ebp - 0x70]
call fcn.004e9e54
mov edx, dword [ebp - 0x74]
mov eax, ebx
call fcn.004ea77c
push ebx
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4e9ea0
xor edx, edx
xor eax, eax
call fcn.00404a2c
push ebx
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4e9eb0
xor edx, edx
xor eax, eax
call fcn.00404a2c
push ebx
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4e9ec0
xor edx, edx
xor eax, eax
call fcn.00404a2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ea448
lea eax, [ebp - 4]
call fcn.00404aa8
ret
Function at 0x4ea450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404f5c
xor eax, eax
push ebp
push 0x4ea50a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.004ea8b8
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00404d74
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4ea499
sub ebx, 4
mov ebx, dword [ebx]
push 0
lea eax, [ebp - 8]
push eax
test ebx, ebx
jns 0x4ea4a8
call fcn.00403a70
push ebx
lea eax, [ebp - 4]
call fcn.00404fc4
mov edx, 1
dec edx
test eax, eax
je 0x4ea4c0
cmp edx, dword [eax - 4]
jb 0x4ea4c5
call fcn.00403a70
inc edx
lea eax, [eax + edx - 1]
push eax
mov eax, dword [esi + 0x38]
push eax
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
and eax, 0x7f
cmp eax, 1
jbe 0x4ea4e7
call fcn.00403a70
call fcn.004e9e0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ea511
lea eax, [ebp - 0xc]
call fcn.00404aa8
lea eax, [ebp - 4]
call fcn.00404aa8
ret

Function at 0x4ea608
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4ea72f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x14]
push eax
push 0x401
lea eax, [ebp - 0x415]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x4ea6dd
xor eax, eax
push ebp
push 0x4ea689
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004ea774
test al, al
jne 0x4ea67a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ea719
call fcn.0040f230
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ea6dd
cmp dword [ebp - 0x14], 0
jbe 0x4ea630
mov eax, dword [ebp - 0x14]
test eax, eax
jns 0x4ea6f3
call fcn.00403a70
push eax
lea eax, [ebp - 0x415]
push eax
mov eax, dword [ebp - 0x10]
test eax, eax
jns 0x4ea707
call fcn.00403a70
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_SendMessageA
jmp 0x4ea630
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ea736
lea eax, [ebp - 4]
call fcn.00404aa8
ret

Function at 0x4ea864
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004ea774
test al, al
je 0x4ea8b3
cmp dword [ebx + 0x50], 0
je 0x4ea882
mov edx, dword [ebx + 0x50]
mov eax, ebx
call fcn.004ea450
cmp byte [ebx + 0x54], 0
je 0x4ea8b3
cmp dword [ebx + 0x50], 0
je 0x4ea8a8
mov eax, dword [ebx + 0x58]
test eax, eax
jns 0x4ea89a
call fcn.00403a70
push eax
mov eax, dword [ebx + 0x4c]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x4ea8b3
push 4
mov eax, dword [ebx + 0x4c]
push eax
call sub.kernel32.dll_TerminateProcess
pop ebx
ret
Function at 0x4f823c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, dword [0x4fede0]
xor eax, eax
push ebp
push 0x4f8392
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4f8365
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 4]
mov eax, dword [ebx]
mov eax, dword [eax + 0x388]
call fcn.00453f00
mov edx, dword [ebp - 4]
mov eax, 0x4f83a8
call fcn.004050b0
test eax, eax
je 0x4f82a0
mov eax, dword [ebx]
mov eax, dword [eax + 0x3c8]
mov edx, 0x4f83b4
call fcn.0049efcc
jmp 0x4f82b2
mov eax, dword [ebx]
mov eax, dword [eax + 0x3c8]
mov edx, 0x4f8400
call fcn.0049efcc
mov edx, dword [ebx]
mov eax, dword [0x4fe63c]
mov eax, dword [eax]
call fcn.004f7c40
mov eax, dword [ebx]
mov edx, 0x4f8450
call fcn.00453f30
mov eax, dword [ebx]
mov eax, dword [eax + 0x39c]
mov edx, 0x4f8464
call fcn.00453f30
mov eax, dword [ebx]
mov eax, dword [eax + 0x3f4]
mov edx, dword [eax]
call dword [edx + 0xd8]
lea edx, [ebp - 8]
call fcn.004098b8
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
mov eax, dword [eax + 0x3a0]
call fcn.00453f30
mov eax, dword [ebx]
mov byte [eax + 0x566], 0
mov eax, dword [ebx]
mov byte [eax + 0x567], 0
lea edx, [ebp - 0xc]
mov eax, 1
call fcn.00403200
mov eax, dword [ebp - 0xc]
mov edx, 0x4f8474
call fcn.00404eb8
jne 0x4f835b
lea edx, [ebp - 0x10]
mov eax, 2
call fcn.00403200
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x14]
call fcn.00404f6c
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f836f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f8399
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404acc
lea eax, [ebp - 4]
call fcn.00404aa8
ret
Function at 0x405970
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46f08b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045fdd1
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4059f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045d887
mov eax, dword [eax]
push 0x4881e0
push eax
call fcn.004505d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046005c
test bl, bl
je 0x4059f2
push 0x4881e0
lea ecx, [esp + 0xc]
call fcn.00460438
push 0x48bd28
lea ecx, [esp + 0xc]
call fcn.00460438
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x405a2e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046005c
jmp 0x405af9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x405ab2
lea edx, [esp + 0x7c]
push 0x48bd24
push edx
call fcn.004505d4
add esp, 8
test eax, eax
je 0x405ab2
lea eax, [esp + 0x7c]
push 0x48bd20
push eax
call fcn.004505d4
add esp, 8
test eax, eax
je 0x405ab2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405a42
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046005c
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4062f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x406352
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc