joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d5e10
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov edi, 0x4fd0ac
xor esi, esi
push 0x2001
push edi
push ebx
call sub.kernel32.dll_GetEnvironmentVariableW
test eax, eax
je 0x4d5e33
mov esi, edi
jmp 0x4d5f52
mov eax, dword [0x4f0f78]
cmp byte [eax], 0
je 0x4d5f52
mov edx, 0x4d5f58
mov eax, ebx
call fcn.0041ea44
test eax, eax
jne 0x4d5e61
mov eax, edi
xor edx, edx
call fcn.004d7e34
mov esi, edi
jmp 0x4d5f52
mov edx, 0x4d5f60
mov eax, ebx
call fcn.0041ea44
test eax, eax
jne 0x4d5e8b
push 0xa
push edi
mov eax, dword [0x4f122c]
mov eax, dword [eax]
push eax
call sub.msvcrt.dll__ltow
add esp, 0xc
mov esi, edi
jmp 0x4d5f52
mov edx, 0x4d5f78
mov eax, ebx
call fcn.0041ea44
test eax, eax
jne 0x4d5eaf
push 0xa
push edi
push 2
call sub.msvcrt.dll__ultow
add esp, 0xc
mov esi, edi
jmp 0x4d5f52
mov edx, 0x4d5f94
mov eax, ebx
call fcn.0041ea44
test eax, eax
jne 0x4d5ecb
call sub.kernel32.dll_GetCommandLineW_1
mov esi, eax
jmp 0x4d5f52
mov edx, 0x4d5fac
mov eax, ebx
call fcn.0041ea44
test eax, eax
jne 0x4d5ef8
push 0x2001
mov ecx, edi
mov edx, 1
xor eax, eax
call fcn.004d4ccc
mov word [edi + eax*2], 0
mov esi, edi
jmp 0x4d5f52
mov edx, 0x4d5fb8
mov eax, ebx
call fcn.0041ea44
test eax, eax
jne 0x4d5f25
push 0x2001
mov ecx, edi
mov edx, 1
xor eax, eax
call fcn.004d5248
mov word [edi + eax*2], 0
mov esi, edi
jmp 0x4d5f52
mov edx, 0x4d5fc4
mov eax, ebx
call fcn.0041ea44
test eax, eax
jne 0x4d5f52
call fcn.00406a8c
mov eax, 0x7fff
call fcn.00406ab4
push 0xa
push edi
push eax
call sub.msvcrt.dll__ultow
add esp, 0xc
mov esi, edi
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x4d78e8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push esi
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [edi], eax
jmp 0x4d7946
mov eax, esi
mov edx, dword [ebp - 0xc]
call dword [ebp - 4]
test al, al
je 0x4d7929
mov eax, dword [0x4f1264]
xor edx, edx
mov dword [eax], edx
mov bl, 1
jmp 0x4d794b
push esi
mov eax, dword [edi]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4d7946
mov eax, dword [edi]
push eax
call sub.kernel32.dll_FindClose_1
mov dword [edi], 0xffffffff
jmp 0x4d794b
cmp dword [edi], 0xffffffff
jne 0x4d7910
cmp dword [edi], 0xffffffff
je 0x4d7990
mov eax, dword [0x4f0724]
inc eax
push eax
mov eax, 0x5010b0
mov ecx, 1
mov edx, dword [0x4d78a4]
call fcn.0040bd48
add esp, 4
cmp dword [0x5010b0], 0
je 0x4d798e
mov eax, dword [0x5010b0]
mov edx, dword [0x4f0724]
mov ecx, dword [edi]
mov dword [eax + edx*4], ecx
inc dword [0x4f0724]
mov bl, 1
test bl, bl
jne 0x4d79a1
call sub.kernel32.dll_GetLastError_2
mov edx, dword [0x4f1264]
mov dword [edx], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4d7b1c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], esi
push eax
call sub.msvcrt.dll__get_osfhandle
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ebx
cmp esi, 0x4000
jbe 0x4d7ba3
push 0
push 0
push 0x2000
mov eax, dword [0x4f0f24]
push eax
push 0x2000
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [0x4f11a8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
add dword [ebp - 8], 0x4000
sub esi, 0x4000
push 0
push edi
push ebx
mov eax, dword [0x4f0f24]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x4d7b95
cmp ebx, dword [edi]
je 0x4d7b9b
mov byte [ebp - 1], 0
jmp 0x4d7bf8
cmp esi, 0x4000
ja 0x4d7b44
test esi, esi
je 0x4d7bef
push 0
push 0
push 0x2000
mov eax, dword [0x4f0f24]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [0x4f11a8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
dec esi
push 0
push edi
push esi
mov eax, dword [0x4f0f24]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x4d7be9
cmp esi, dword [edi]
je 0x4d7bef
mov byte [ebp - 1], 0
jmp 0x4d7bf8
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
mov byte [ebp - 1], 1
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4d7e34
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, edx
mov esi, eax
test bx, bx
jne 0x4d7e51
push esi
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
xor eax, eax
jmp 0x4d7ec8
mov word [esp], 0x3d
mov eax, ebx
mov edx, ebx
add edx, 0xffffff9f
sub dx, 0x1a
jae 0x4d7e6a
mov eax, ebx
and ax, 0xffdf
mov word [esp + 2], ax
mov word [esp + 4], 0x3a
mov word [esp + 6], 0
mov eax, esp
call fcn.004d5e10
test eax, eax
jne 0x4d7ebd
mov eax, ebx
mov edx, ebx
add edx, 0xffffff9f
sub dx, 0x1a
jae 0x4d7e9b
mov eax, ebx
and ax, 0xffdf
mov word [esi], ax
add esi, 2
mov word [esi], 0x3a
add esi, 2
mov word [esi], 0x5c
add esi, 2
mov word [esi], 0
mov eax, 1
jmp 0x4d7ec8
mov edx, eax
mov eax, esi
call fcn.004d4100
xor eax, eax
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x4d8018
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set current directory

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffde4
mov esi, edx
cmp word [eax], 0x5c
jne 0x4d803a
cmp word [eax + 2], 0x5c
jne 0x4d803a
mov eax, 0x23bd
jmp 0x4d824c
call fcn.004d7ff0
mov ebx, eax
mov dword [esp], eax
test eax, eax
jne 0x4d8052
mov eax, 8
jmp 0x4d824c
mov eax, ebx
call fcn.004d40f0
mov edx, eax
mov eax, edx
cmp eax, 1
jl 0x4d8077
cmp word [ebx + eax*2 - 2], 0x20
je 0x4d8072
mov word [ebx + eax*2], 0
jmp 0x4d8077
dec eax
test eax, eax
jne 0x4d8062
lea eax, [esp + 0x10]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
movzx edx, word [esp + 0x10]
mov eax, edx
add edx, 0xffffff9f
sub dx, 0x1a
jae 0x4d809f
movzx eax, word [esp + 0x10]
and ax, 0xffdf
mov edi, eax
mov word [esp + 8], 0x3d
movzx eax, word [ebx]
call fcn.004d4208
test al, al
je 0x4d80d8
cmp word [ebx + 2], 0x3a
jne 0x4d80d8
movzx edx, word [ebx]
mov eax, edx
mov ecx, edx
add ecx, 0xffffff9f
sub cx, 0x1a
jae 0x4d80d1
mov eax, edx
and ax, 0xffdf
mov word [esp + 0xa], ax
jmp 0x4d80dd
mov word [esp + 0xa], di
mov word [esp + 0xc], 0x3a
mov word [esp + 0xe], 0
mov word [esp + 0x216], 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x14]
push eax
push 0x104
push ebx
call sub.kernel32.dll_GetFullPathNameW
test eax, eax
jne 0x4d8118
call sub.kernel32.dll_GetLastError_2
jmp 0x4d824c
cmp eax, 0x104
jbe 0x4d8129
mov eax, 0xce
jmp 0x4d824c
cmp word [esp + 0x10], 0
je 0x4d8139
cmp word [esp + 0x12], 0x3a
je 0x4d8143
mov eax, 3
jmp 0x4d824c
cmp dword [esp + 4], 0
jne 0x4d815f
lea eax, [esp + 0x10]
call fcn.004d40f0
add eax, eax
lea edx, [esp + 0x10]
add eax, edx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
cmp word [eax], 0
jne 0x4d818c
lea eax, [esp + 0x16]
cmp eax, dword [esp + 4]
jae 0x4d818c
mov eax, dword [esp + 4]
cmp word [eax - 2], 0x5c
jne 0x4d818c
sub dword [esp + 4], 2
mov eax, dword [esp + 4]
mov word [eax], 0
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x4d81b3
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x4d81b3
cmp eax, 3
je 0x4d81b3
cmp eax, 0x7b
jne 0x4d824c
mov eax, dword [0x4f0f78]
cmp byte [eax], 0
je 0x4d81c8
lea eax, [esp + 0x10]
xor edx, edx
call fcn.004d7ed0
cmp esi, 2
je 0x4d81f4
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x4d81ed
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
jne 0x4d824c
mov eax, 3
jmp 0x4d824c
test eax, 0x410
je 0x4d8247
test esi, esi
je 0x4d8202
dec esi
jne 0x4d8210
cmp di, word [esp + 0xa]
jne 0x4d8210
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
je 0x4d8240
lea edx, [esp + 0x10]
lea eax, [esp + 8]
call fcn.004d6098
test eax, eax
jne 0x4d8239
mov eax, dword [0x4f1398]
xor edx, edx
call fcn.004d7e34
mov eax, dword [esp]
call fcn.004e5f94
xor eax, eax
jmp 0x4d824c
mov eax, 8
jmp 0x4d824c
call sub.kernel32.dll_GetLastError_2
jmp 0x4d824c
mov eax, 0x10b
add esp, 0x21c
pop edi
pop esi
pop ebx
ret
Function at 0x4d827c
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff994
mov edi, eax
mov eax, edi
call fcn.004e7860
mov ebx, eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x25c]
push eax
push 0x208
push ebx
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
test esi, esi
je 0x4d83be
lea ebx, [esp + 0x258]
mov edx, 0x4d83d0
mov ecx, 4
mov eax, ebx
call fcn.0041eaa4
test eax, eax
jne 0x4d8344
add ebx, 8
mov dword [esp + 4], ebx
mov edx, ebx
mov eax, edi
call fcn.0041eb94
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x4d8325
cmp edi, dword [esp + 4]
jae 0x4d8325
mov eax, dword [esp + 4]
movzx ebx, word [eax]
mov eax, dword [esp + 4]
mov word [eax], 0
push edi
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
mov eax, dword [esp + 4]
mov word [eax], bx
cmp esi, 0xffffffff
je 0x4d831e
cmp esi, 1
sbb eax, eax
inc eax
jmp 0x4d83c4
xor eax, eax
jmp 0x4d83c4
push edi
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x4d833d
cmp esi, 1
sbb eax, eax
inc eax
jmp 0x4d83c4
xor eax, eax
jmp 0x4d83c4
cmp dword [esp + 4], 0
je 0x4d8355
mov eax, dword [esp + 4]
cmp word [eax], 0
jne 0x4d8368
push ebx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne al
mov esi, eax
and esi, 0x7f
jmp 0x4d83be
push esp
lea ecx, [esp + 0xc]
mov edx, 0x37
mov eax, ebx
call fcn.004d79ac
mov esi, eax
and esi, 0x7f
mov eax, dword [esp]
call fcn.004d7a30
test esi, esi
jne 0x4d83be
lea eax, [ebx + 2]
cmp word [eax], 0x5c
je 0x4d83ae
lea eax, [ebx + 2]
cmp word [eax], 0x3a
jne 0x4d83be
lea eax, [ebx + 4]
cmp word [eax], 0x5c
jne 0x4d83be
lea eax, [ebx + 6]
cmp word [eax], 0
jne 0x4d83be
push ebx
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
jbe 0x4d83be
mov esi, 1
cmp esi, 1
sbb eax, eax
inc eax
add esp, 0x66c
pop edi
pop esi
pop ebx
ret
Function at 0x4e02fc
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbc8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x430], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x4e04aa
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
jne 0x4e03e4
xor esi, esi
push 0x20a
lea eax, [ebp - 0x212]
push eax
push esi
push edi
call sub.advapi32.dll_RegEnumKeyW
mov ebx, eax
test ebx, ebx
je 0x4e035a
cmp ebx, 0x103
jne 0x4e048e
xor ebx, ebx
jmp 0x4e048e
cmp word [ebp - 0x212], 0x2e
jne 0x4e03c8
mov dword [ebp - 8], 0x20a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x212]
push eax
push edi
call sub.advapi32.dll_RegQueryValueW
mov ebx, eax
test ebx, ebx
jne 0x4e048e
lea eax, [ebp - 0x212]
mov dword [ebp - 0x42c], eax
mov byte [ebp - 0x428], 0xa
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x424], eax
mov byte [ebp - 0x420], 0xa
lea edx, [ebp - 0x42c]
mov eax, 0x4e04bc
mov ecx, 1
call fcn.004d8538
mov eax, dword [0x4f1144]
cmp dword [eax], 0
je 0x4e03de
mov dword [ebp - 4], 1
jmp 0x4e0491
inc esi
jmp 0x4e032e
xor edx, edx
mov eax, esi
call fcn.004e76f8
mov esi, eax
mov dx, 0x20
mov eax, esi
call fcn.004d40a8
test eax, eax
je 0x4e0403
mov word [eax], 0
mov dword [ebp - 8], 0x20a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x41c]
push eax
push esi
push edi
call sub.advapi32.dll_RegQueryValueW
mov ebx, eax
test ebx, ebx
jne 0x4e0459
mov dword [ebp - 0x42c], esi
mov byte [ebp - 0x428], 0xa
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x424], eax
mov byte [ebp - 0x420], 0xa
lea edx, [ebp - 0x42c]
mov eax, 0x4e04bc
mov ecx, 1
call fcn.004d8538
jmp 0x4e048e
push 0
lea edx, [ebp - 0x430]
mov eax, dword [0x4f1160]
call fcn.0040d7c0
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x438], esi
mov byte [ebp - 0x434], 0xa
lea ecx, [ebp - 0x438]
mov edx, 1
call fcn.004e6fc4
mov dword [ebp - 4], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e04b1
lea eax, [ebp - 0x430]
call fcn.00409e68
ret
Function at 0x4e04cc
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4e05b4
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x4e04fb
cmp word [ebx], 0
jne 0x4e0534
push edi
push esi
call sub.advapi32.dll_RegDeleteKeyW
mov esi, eax
test esi, esi
je 0x4e0594
push 0
lea edx, [ebp - 4]
mov eax, dword [0x4f1160]
call fcn.0040d7c0
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xa
lea ecx, [ebp - 0xc]
mov edx, 1
call fcn.004e6fc4
jmp 0x4e0594
mov eax, ebx
call fcn.004d40f0
push eax
push ebx
push 1
push edi
push esi
call sub.advapi32.dll_RegSetValueW
mov esi, eax
test esi, esi
jne 0x4e056e
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x18], 0xa
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x10], 0xa
lea edx, [ebp - 0x1c]
mov eax, 0x4e05c4
mov ecx, 1
call fcn.004d8538
jmp 0x4e0594
push 0
lea edx, [ebp - 0x20]
mov eax, dword [0x4f0fd4]
call fcn.0040d7c0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xa
lea ecx, [ebp - 0xc]
mov edx, 1
call fcn.004e6fc4
mov ebx, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e05bb
lea eax, [ebp - 0x20]
call fcn.00409e68
lea eax, [ebp - 4]
call fcn.00409e68
ret
Function at 0x4e1110
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
add esp, 0xfffffec8
xor esi, esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
test ebx, ebx
je 0x4e11ab
lea edx, [esp + 4]
mov ecx, 0x40
mov eax, ebx
call fcn.0041e664
cmp word [esp + 4], 0x5a4d
jne 0x4e11a5
xor ecx, ecx
mov edx, dword [esp + 0x40]
mov eax, ebx
call fcn.0041e72c
mov edx, esp
mov ecx, 4
mov eax, ebx
call fcn.0041e664
cmp dword [esp], 0x4550
jne 0x4e11a5
lea edx, [esp + 0x44]
mov ecx, 0x14
mov eax, ebx
call fcn.0041e664
cmp word [esp + 0x54], 0
jbe 0x4e11a5
lea edx, [esp + 0x58]
mov ecx, 0xe0
mov eax, ebx
call fcn.0041e664
movzx esi, word [esp + 0x9c]
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, esi
add esp, 0x138
pop esi
pop ebx
ret

Function at 0x4e1334
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp], edx
mov edi, eax
mov ebp, dword [0x4f0fcc]
mov eax, edi
call fcn.004e1314
inc eax
jne 0x4e1448
mov eax, edi
call fcn.0040a358
mov dword [esp + 4], eax
mov eax, dword [ebp]
call fcn.0040bb2c
mov ebx, eax
lea eax, [ebx + 1]
push eax
mov eax, ebp
mov ecx, 1
mov edx, dword [0x4d3eb4]
call fcn.0040bd48
add esp, 4
mov eax, dword [esp + 4]
lea eax, [eax + eax*2]
call fcn.004066cc
lea esi, [ebx + ebx*2]
mov edx, dword [ebp]
mov dword [edx + esi*8], eax
lea eax, [ebx + ebx*2]
mov edx, dword [ebp]
mov eax, dword [edx + eax*8]
mov edx, edi
call fcn.0041e988
mov eax, dword [ebp]
mov edx, dword [esp]
mov dword [eax + esi*8 + 4], edx
mov eax, dword [esp]
push eax
call sub.msvcrt.dll__get_osfhandle
pop ecx
mov edx, dword [ebp]
mov dword [edx + esi*8 + 8], eax
push 2
push 0
push 0
lea eax, [ebx + ebx*2]
mov edx, dword [ebp]
mov eax, dword [edx + eax*8 + 8]
push eax
call sub.kernel32.dll_SetFilePointer_1
mov edx, dword [ebp]
mov dword [edx + esi*8 + 0xc], eax
lea eax, [ebx + ebx*2]
mov edx, dword [ebp]
mov eax, dword [edx + eax*8 + 0xc]
call fcn.004066cc
mov edx, dword [ebp]
mov dword [edx + esi*8 + 0x10], eax
push 0
push 0
push 0
mov eax, dword [ebp]
mov eax, dword [eax + esi*8 + 8]
push eax
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [ebp]
mov eax, dword [eax + esi*8 + 0xc]
push eax
mov eax, dword [ebp]
mov eax, dword [eax + esi*8 + 0x10]
push eax
mov eax, dword [ebp]
mov eax, dword [eax + esi*8 + 8]
push eax
call sub.kernel32.dll_ReadFile_1
mov eax, dword [ebp]
mov edx, dword [eax + esi*8 + 0xc]
mov eax, dword [ebp]
mov eax, dword [eax + esi*8 + 0x10]
call fcn.004d43c8
mov eax, dword [ebp]
xor edx, edx
mov dword [eax + esi*8 + 0x14], edx
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4e2ec0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004d40f0
mov edi, eax
xor eax, eax
mov ebx, dword [ebp + 8]
jmp 0x4e2ef2
inc eax
jmp 0x4e2eec
add ebx, 2
cmp word [ebx], 0
jne 0x4e2ee9
cmp word [ebx], 0
jne 0x4e2ee6
sub ebx, dword [ebp + 8]
sar ebx, 1
jns 0x4e2f02
adc ebx, 0
inc ebx
add ebx, edi
mov edx, ebx
add edx, edx
imul edx, eax
mov eax, edx
call fcn.004e5ffc
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
jmp 0x4e2f4e
mov ecx, edi
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004d4024
mov eax, edi
add eax, eax
add eax, esi
mov edx, ebx
call fcn.004d4100
mov eax, edi
add eax, eax
add esi, eax
jmp 0x4e2f45
add ebx, 2
add esi, 2
cmp word [ebx], 0
jne 0x4e2f3f
add esi, 2
cmp word [ebx], 0
jne 0x4e2f1e
mov word [esi], 0
mov eax, dword [ebp - 0x10]
push eax
push 1
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004e3ba4
mov ebx, eax
mov eax, dword [ebp - 8]
mov word [eax], 0x2a
mov eax, dword [ebp - 8]
mov word [eax + 2], 0
lea eax, [ebp - 0x260]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov esi, eax
mov eax, dword [ebp - 8]
mov word [eax], 0
cmp esi, 0xffffffff
je 0x4e3032
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 8]
call fcn.004d4100
test byte [ebp - 0x260], 0x10
je 0x4e3017
mov edx, 0x4e3040
lea eax, [ebp - 0x234]
call fcn.0041ea18
test eax, eax
je 0x4e3017
mov edx, 0x4e3044
lea eax, [ebp - 0x234]
call fcn.0041ea18
test eax, eax
je 0x4e3017
mov eax, dword [ebp - 8]
call fcn.004d41f4
mov ebx, eax
add ebx, 2
mov word [ebx], 0x5c
add ebx, 2
mov word [ebx], 0
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004e2ec0
mov ebx, eax
lea eax, [ebp - 0x260]
push eax
push esi
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4e2fa3
push esi
call sub.kernel32.dll_FindClose_1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e4bc8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
push eax
call sub.msvcrt.dll__get_osfhandle
pop ecx
mov dword [ebp - 0x10], eax
mov ebx, dword [0x4f0f24]
push 1
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetFilePointer_1
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x4f0f24]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x4e4c1d
xor eax, eax
jmp 0x4e4cc3
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x4e4c2c
xor eax, eax
jmp 0x4e4cc3
mov edi, dword [ebp + 8]
mov edi, dword [edi]
mov esi, edi
test esi, esi
jbe 0x4e4c83
cmp esi, 3
jb 0x4e4c7d
cmp byte [ebx], 0xa
jne 0x4e4c49
lea eax, [ebx + 1]
cmp byte [eax], 0xd
je 0x4e4c56
cmp byte [ebx], 0xd
jne 0x4e4c7d
lea eax, [ebx + 1]
cmp byte [eax], 0xa
jne 0x4e4c7d
lea eax, [ebx + 2]
mov byte [eax], 0
mov eax, dword [0x4f0f24]
mov edi, ebx
sub edi, eax
add edi, 2
push 0
push 0
mov eax, dword [ebp - 0xc]
add eax, edi
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetFilePointer_1
jmp 0x4e4c83
dec esi
inc ebx
test esi, esi
ja 0x4e4c37
mov eax, dword [0x4f11a8]
mov eax, dword [eax]
call fcn.004e1264
mov edx, dword [ebp - 8]
push edx
mov edx, dword [ebp - 4]
push edx
push edi
mov edx, dword [0x4f0f24]
push edx
test eax, eax
setne al
and eax, 0x7f
push eax
mov eax, dword [0x4f11a8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_MultiByteToWideChar_1
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [eax], edx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4e5244
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa8
lea edi, [esp + 8]
mov dword [esp + 0xc], 0x80000002
mov dword [esp + 0x10], 0x80000001
cmp byte [0x4f09f6], 0
je 0x4e526f
mov byte [0x4f09f4], 1
mov ebp, 2
lea esi, [esp + 0xc]
push esp
push 0x4e5414
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegOpenKeyW
test eax, eax
jne 0x4e53fe
xor eax, eax
mov dword [edi], eax
lea ebx, [esp + 0x18]
mov dword [esp + 4], 0x40
lea eax, [esp + 4]
push eax
push ebx
push edi
push 0
push 0x4e5460
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4e52e1
cmp dword [edi], 4
jne 0x4e52cc
cmp dword [ebx], 0
setne al
mov byte [0x4f09de], al
jmp 0x4e52e1
cmp dword [edi], 1
jne 0x4e52e1
push ebx
call sub.msvcrt.dll__wtol
pop ecx
dec eax
sete al
mov byte [0x4f09de], al
lea eax, [esp + 4]
push eax
push ebx
push edi
push 0
push 0x4e5480
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4e5324
cmp dword [edi], 4
jne 0x4e530f
cmp dword [ebx], 0
setne al
mov byte [0x4f09f4], al
jmp 0x4e5324
cmp dword [edi], 1
jne 0x4e5324
push ebx
call sub.msvcrt.dll__wtol
pop ecx
dec eax
sete al
mov byte [0x4f09f4], al
lea eax, [esp + 4]
push eax
push ebx
push edi
push 0
push 0x4e54a4
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4e5367
cmp dword [edi], 4
jne 0x4e5352
cmp dword [ebx], 0
setne al
mov byte [0x4f09f5], al
jmp 0x4e5367
cmp dword [edi], 1
jne 0x4e5367
push ebx
call sub.msvcrt.dll__wtol
pop ecx
dec eax
sete al
mov byte [0x4f09f5], al
lea eax, [esp + 4]
push eax
push ebx
push edi
push 0
push 0x4e54c8
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4e53ae
cmp dword [edi], 4
jne 0x4e5393
movzx eax, word [ebx]
mov word [0x4f09fc], ax
jmp 0x4e53ae
cmp dword [edi], 1
jne 0x4e53ae
push 0
lea eax, [esp + 0x18]
push eax
push ebx
call sub.msvcrt.dll_wcstol
add esp, 0xc
mov word [0x4f09fc], ax
lea eax, [esp + 4]
push eax
push ebx
push edi
push 0
push 0x4e54e4
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4e53f5
cmp dword [edi], 4
jne 0x4e53da
movzx eax, word [ebx]
mov word [0x4f09fe], ax
jmp 0x4e53f5
cmp dword [edi], 1
jne 0x4e53f5
push 0
lea eax, [esp + 0x18]
push eax
push ebx
call sub.msvcrt.dll_wcstol
add esp, 0xc
mov word [0x4f09fe], ax
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
add esi, 4
dec ebp
jne 0x4e5278
mov al, 1
add esp, 0x58
pop ebp
pop edi
pop esi
pop ebx
ret