joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4928fc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x49296d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x508ad8]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x492957
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.004928ec
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4926c4]
call fcn.00492994
mov dword [0x508b3c], eax
mov eax, dword [ebp - 4]
call fcn.0049289c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492974
lea eax, [ebp - 8]
call fcn.00406204
ret

Function at 0x492b4c
Capabilities:
Get file system object information

Disassembly:
add esp, 0xfffffea0
mov eax, esp
xor ecx, ecx
mov edx, 0x160
call fcn.0040319c
push 0x4001
push 0x160
lea eax, [esp + 8]
push eax
push 0
push 0x492be4
call sub.shell32.dll_SHGetFileInfoA
mov dword [0x508ad0], eax
cmp dword [0x508ad0], 0
je 0x492bdc
cmp dword [0x508ad4], 0
jne 0x492bdc
xor ecx, ecx
mov dl, 1
mov eax, dword [0x48b68c]
call fcn.0048bcb0
mov dword [0x508ad4], eax
mov edx, dword [0x508ad0]
mov eax, dword [0x508ad4]
call fcn.0044f248
mov eax, dword [0x508ad4]
mov byte [eax + 0x42], 1
mov dl, 1
mov eax, dword [0x508ad4]
call fcn.0048c7d8
push 0xffffffffffffffff
mov eax, dword [0x508ad4]
call fcn.0044f284
push eax
call sub.comctl32.dll_ImageList_SetBkColor
add esp, 0x160
ret

Function at 0x49506c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x495126
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404cc8
mov eax, dword [0x509294]
cmp dword [eax], 2
jne 0x4950db
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00404f10
mov eax, dword [ebx]
call fcn.00404e34
push eax
mov eax, dword [ebx]
call fcn.00404e24
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00404e34
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404f10
jmp 0x49510d
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00409870
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00404e14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49512d
lea eax, [ebp - 0x3f0]
call fcn.004045bc
ret
Function at 0x49f6d8
Capabilities:
Find taskbar

Disassembly:
push 0
push 0x49f6e8
call sub.user32.dll_FindWindowA
ret
Function at 0x4b7984
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffdc
mov ebp, edx
mov ebx, eax
cmp dword [ebx + 0x6c], 0
jne 0x4b799c
mov eax, ebx
call fcn.004b722c
cmp dword [ebx + 0x68], 0
jne 0x4b79a9
mov eax, ebx
call fcn.004b7188
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x4b7b5c
cmp dword [ebx + 0x68], 0
je 0x4b7b5c
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [esp], eax
mov eax, dword [ebx + 0x6c]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [esp + 4], eax
lea edx, [esp + 0x14]
mov eax, ebx
call fcn.004b7008
lea eax, [esp + 0x14]
xor edx, edx
call fcn.005017d8
cmp eax, dword [esp]
je 0x4b7a2b
lea eax, [esp + 0x14]
xor edx, edx
call fcn.005017ec
mov edx, dword [esp + 4]
sub edx, eax
sar edx, 1
jns 0x4b7a07
adc edx, 0
push edx
lea eax, [esp + 0x18]
xor edx, edx
call fcn.005017d8
mov edx, dword [esp + 4]
sub edx, eax
sar edx, 1
jns 0x4b7a20
adc edx, 0
push edx
lea eax, [esp + 0x1c]
push eax
call sub.user32.dll_InflateRect
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4b7a3e
mov eax, dword [eax + 0x10]
call fcn.004489a4
mov esi, eax
jmp 0x4b7a41
mov esi, dword [ebx + 0x50]
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
and eax, 8
cmp eax, 8
jne 0x4b7a56
or esi, 0xffffffff
jmp 0x4b7a60
push 3
push esi
call sub.user32.dll_GetWindow
mov esi, eax
mov edi, 0x610
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x68]
call fcn.0044192c
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x68]
call fcn.00441950
mov edx, dword [esp]
mov eax, dword [ebx + 0x68]
call fcn.00441978
mov edx, dword [esp + 4]
mov eax, dword [ebx + 0x68]
call fcn.0044199c
lea ecx, [esp + 8]
xor edx, edx
xor eax, eax
call fcn.00406a18
mov eax, ebp
mov byte [esp + 0x12], al
mov byte [esp + 0x10], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x13], 1
or edi, 2
or edi, 1
push edi
push 0
push 0
push 0
push 0
push esi
mov eax, dword [ebx + 0x68]
call fcn.004489a4
push eax
call sub.user32.dll_SetWindowPos
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x68]
call fcn.004489a4
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
or eax, 0x8000000
or eax, 0x20
push eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x68]
call fcn.004489a4
push eax
call sub.user32.dll_SetWindowLongA
push 2
lea eax, [esp + 0x14]
push eax
push 0x1fffffff
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x6c]
call fcn.00428000
call fcn.00423b34
push eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
mov eax, dword [ebx + 0x68]
call fcn.004489a4
push eax
mov eax, dword [0x508dd0]
mov eax, dword [eax]
call eax
push 4
mov eax, dword [ebx + 0x68]
call fcn.004489a4
push eax
call sub.user32.dll_ShowWindow
push esi
push 0
call sub.user32.dll_ReleaseDC
add esp, 0x24
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4b7d9c
Capabilities:
Allocate or change rwx memory
Find taskbar
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa0
mov dword [esp], eax
mov eax, dword [esp]
xor ecx, ecx
mov edx, 0x10
call fcn.0040319c
lea eax, [esp + 0x3c]
push eax
call sub.kernel32.dll_GetSystemInfo
call sub.user32.dll_GetDesktopWindow
test eax, eax
je 0x4b7fa5
push 0
push 0x4b7fb0
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x4b7fa5
push 0
push 0x4b7fc0
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x4b7fa5
push 0
push 0x4b7fd0
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x4b7fa5
push 0
push 0x4b7fe0
push 0
push eax
call sub.user32.dll_FindWindowExA
mov edi, eax
test edi, edi
je 0x4b7fa5
push 0
push 0
push 0x418
push edi
call sub.user32.dll_SendMessageA
mov dword [esp + 4], eax
cmp dword [esp + 4], 1
jl 0x4b7fa5
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push edi
call sub.user32.dll_GetWindowThreadProcessId
cmp dword [esp + 8], 0
je 0x4b7fa5
mov eax, dword [esp + 8]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
je 0x4b7fa5
push 0x40
push 0x1000
push 0x1000
push 0
push esi
call sub.kernel32.dll_VirtualAllocEx
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x4b7fa5
or ebx, 0xffffffff
cmp ebx, dword [esp + 4]
jge 0x4b7f8d
inc ebx
mov eax, dword [esp + 0xc]
push eax
push ebx
push 0x417
push edi
call sub.user32.dll_SendMessageA
test eax, eax
je 0x4b7f83
lea eax, [esp + 0x10]
push eax
push 0x18
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push eax
push esi
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x4b7f83
test byte [esp + 0x21], 0xd
jne 0x4b7f83
mov al, byte [esp + 0x20]
and al, 8
cmp al, 8
je 0x4b7f83
lea eax, [esp + 0x10]
push eax
push 4
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x30]
push eax
push esi
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x4b7f83
cmp dword [esp + 0x10], 0
je 0x4b7f83
mov eax, dword [0x5090ac]
mov eax, dword [eax]
mov ebp, dword [eax + 0x30]
cmp ebp, dword [esp + 0x14]
jne 0x4b7f83
mov eax, dword [esp + 0xc]
push eax
push ebx
push 0x41d
push edi
call sub.user32.dll_SendMessageA
test eax, eax
je 0x4b7f5f
lea eax, [esp + 0x10]
push eax
push 0x10
mov eax, dword [esp + 8]
push eax
mov eax, dword [esp + 0x18]
push eax
push esi
call sub.kernel32.dll_ReadProcessMemory
cmp dword [esp + 0x10], 0
je 0x4b7f8d
lea eax, [esp + 0x2c]
push eax
push edi
call sub.user32.dll_GetWindowRect
mov eax, dword [esp]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
call fcn.00406a5c
jmp 0x4b7f8d
cmp ebx, dword [esp + 4]
jl 0x4b7eaf
push 0x8000
push 0
mov eax, dword [esp + 0x14]
push eax
push esi
call sub.kernel32.dll_VirtualFreeEx
push esi
call sub.kernel32.dll_CloseHandle
add esp, 0x60
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4d1668
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, ebx
call fcn.004d1654
test eax, eax
jne 0x4d1689
mov eax, esi
call fcn.004045bc
jmp 0x4d171a
mov eax, ebx
call fcn.004d17b0
test al, al
je 0x4d16cf
push 0
push 0
push 0xe
mov eax, dword [ebx + 0x4c]
push eax
call sub.user32.dll_SendMessageA
mov edi, eax
mov eax, esi
mov ecx, edi
xor edx, edx
call fcn.004046ac
test edi, edi
je 0x4d16c6
mov eax, dword [esi]
push eax
inc edi
push edi
push 0xd
mov eax, dword [ebx + 0x4c]
push eax
call sub.user32.dll_SendMessageA
jmp 0x4d171a
mov eax, esi
call fcn.004045bc
jmp 0x4d171a
mov ebp, dword [ebx + 0x70]
test ebp, ebp
je 0x4d1713
mov eax, dword [ebp + 0x208]
call fcn.00419a54
test eax, eax
jle 0x4d1701
mov eax, dword [ebx + 0x70]
mov eax, dword [eax + 0x208]
mov edx, edi
call fcn.00435f80
mov edx, dword [eax + 0xc]
mov eax, esi
call fcn.00404610
jmp 0x4d171a
mov eax, esi
mov edx, dword [ebx + 0x70]
mov edx, dword [edx + 0x210]
call fcn.00404610
jmp 0x4d171a
mov eax, esi
call fcn.004045bc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4d33bc
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
push 1
push esi
mov ecx, 1
xor edx, edx
xor eax, eax
call fcn.004069fc
push esi
push 0
push 0x419
mov eax, dword [ebx + 0x4c]
push eax
call sub.user32.dll_SendMessageA
pop esi
pop ebx
ret
Function at 0x4d7fc4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, ecx
mov esi, edx
mov ebx, eax
mov ebp, 0x50afec
test esi, esi
jne 0x4d7fde
xor eax, eax
jmp 0x4d80e0
cmp dword [ebp], 0
jne 0x4d7fe9
call fcn.004d7f54
xor ebx, 0xffffffff
cmp edi, 8
jb 0x4d80b9
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
sub edi, 8
cmp edi, 8
jae 0x4d7ff5
test edi, edi
jbe 0x4d80db
xor eax, eax
mov al, byte [esi]
xor eax, ebx
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
dec edi
test edi, edi
ja 0x4d80bd
mov eax, ebx
xor eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x50058c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, eax
mov ebx, dword [ebp + 8]
add ebx, 0xffffffc4
mov esi, dword [ebp + 8]
add esi, 0xffffffb8
xor eax, eax
push ebp
push 0x500744
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x44]
call fcn.00428000
mov eax, dword [eax + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
mov edx, dword [edx + 0x70]
mov edx, dword [edx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x4c]
call fcn.004547fc
call fcn.00490c84
mov edx, dword [ebp + 8]
mov dword [edx - 0x50], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 0x50], 0
je 0x500610
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x50]
mov eax, dword [eax + 0x68]
call fcn.00422d68
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x44]
call fcn.00428000
mov eax, dword [eax + 0xc]
pop edx
call fcn.00422d70
mov eax, dword [ebp + 8]
mov dword [eax - 0x40], ebx
lea edx, [ebp - 4]
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00422c50
mov edx, dword [ebp - 4]
lea eax, [ebx + 0x1c]
call fcn.00409700
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
push eax
push 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x44]
call fcn.00428000
call fcn.00423b34
push eax
call sub.gdi32.dll_GetObjectA
mov dword [ebx + 8], edi
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00422cc4
mov dword [ebx], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00422d00
test al, 8
setne al
mov byte [ebx + 0x16], al
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00422d00
test al, 2
setne al
mov byte [ebx + 0x14], al
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00422d00
test al, 4
setne al
mov byte [ebx + 0x15], al
mov dword [ebx + 0x10], 0x190
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00422d68
mov byte [ebx + 0x17], al
xor eax, eax
mov dword [ebx + 4], eax
mov byte [ebx + 0x18], 0
mov byte [ebx + 0x19], 0
mov eax, dword [ebx + 8]
mov dword [ebx + 0xc], eax
mov byte [ebx + 0x1b], 0
mov byte [ebx + 0x1a], 0
push ebx
call sub.gdi32.dll_CreateFontIndirectA
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x44]
call fcn.00428000
mov eax, dword [eax + 0xc]
pop edx
call fcn.00422bfc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x44]
call fcn.00428000
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x54]
shl edx, 5
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0x9c]
mov edx, dword [ecx + edx*8 + 0xac]
call fcn.00422a40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50074b
lea eax, [ebp - 4]
call fcn.004045bc
ret
Function at 0x501bd8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetTickCount
mov ebx, eax
mov eax, dword [0x5090ac]
mov eax, dword [eax]
call fcn.00461f6c
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, esi
jb 0x501be3
pop esi
pop ebx
ret

Function at 0x50215c
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [esp], eax
mov eax, ebx
call fcn.00409340
test al, al
je 0x5021e3
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x160
call fcn.0040319c
or esi, 0x100
test esi, esi
jns 0x502197
call fcn.004036c8
push esi
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
mov eax, ebx
call fcn.00404a7c
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x5021e3
mov dl, 1
mov eax, dword [0x421bb4]
call fcn.00429600
mov dword [esp], eax
mov edx, dword [esp + 4]
mov eax, dword [esp]
call fcn.00429a0c
mov eax, dword [esp]
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
je 0x5021e3
mov eax, esp
call fcn.0040e43c
mov eax, dword [esp]
add esp, 0x164
pop esi
pop ebx
ret
Function at 0x100034fd
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [0x1000b200]
push edi
mov edi, dword [ebp + 8]
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
lea edi, [ebp - 0x14]
sub eax, ecx
mov dword [ebp + 0xc], 4
mov dword [ebp - 4], eax
jmp 0x10003537
mov eax, dword [ebp - 4]
push dword [eax + edi]
call esi
mov dword [edi], eax
add edi, 4
dec dword [ebp + 0xc]
jne 0x10003534
push 0x10
xor eax, eax
pop ecx
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 8]
shr edx, 5
add edx, dword [ebp - 0x10]
sub eax, 0x61c88647
shl esi, 4
add esi, dword [ebp - 0x14]
xor edx, esi
mov esi, dword [ebp + 8]
add esi, eax
xor edx, esi
add ebx, edx
mov edx, ebx
mov esi, ebx
shr edx, 5
add edx, dword [ebp - 8]
shl esi, 4
add esi, dword [ebp - 0xc]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add dword [ebp + 8], edx
dec ecx
jne 0x1000354b
mov esi, dword [0x1000b208]
push ebx
call esi
mov edi, dword [ebp + 0x10]
push dword [ebp + 8]
mov dword [edi], eax
call esi
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10005d22
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [0x1000b200]
push edi
mov edi, dword [ebp + 8]
push dword [edi]
call esi
push dword [edi + 4]
mov dword [ebp + 8], eax
call esi
mov ebx, eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
lea edi, [ebp - 0x14]
sub eax, ecx
mov dword [ebp + 0xc], 4
mov dword [ebp - 4], eax
jmp 0x10005d5c
mov eax, dword [ebp - 4]
push dword [eax + edi]
call esi
mov dword [edi], eax
add edi, 4
dec dword [ebp + 0xc]
jne 0x10005d59
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 8]
shr edx, 5
add edx, dword [ebp - 8]
shl esi, 4
add esi, dword [ebp - 0xc]
xor edx, esi
mov esi, dword [ebp + 8]
add esi, eax
xor edx, esi
sub ebx, edx
mov edx, ebx
mov esi, ebx
shr edx, 5
add edx, dword [ebp - 0x10]
shl esi, 4
add esi, dword [ebp - 0x14]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add eax, 0x61c88647
sub dword [ebp + 8], edx
dec ecx
jne 0x10005d73
push dword [ebp + 8]
mov esi, dword [0x1000b208]
call esi
mov edi, dword [ebp + 0x10]
push ebx
mov dword [edi], eax
call esi
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000738c
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
ret
Function at 0x403393
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00403543
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x403491
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x403434
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x403477
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x40344b
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x403466
test al, 0x40
je 0x40345d
mov ecx, dword [edi + 0x20]
jmp 0x403464
test al, 0x80
je 0x403477
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x403477
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x403403
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x40e0a0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push FreeLibrary
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.004806dd
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40e122
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047d857
mov eax, dword [eax]
push 0x88f210
push eax
call fcn.0046f804
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00480968
test bl, bl
je 0x40e122
push 0x88f210
lea ecx, [esp + 0xc]
call fcn.00480cf8
push 0x892da0
lea ecx, [esp + 0xc]
call fcn.00480cf8
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 0x40e15e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00480968
jmp 0x40e229
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 0x40e1e2
lea edx, [esp + 0x7c]
push 0x892d9c
push edx
call fcn.0046f804
add esp, 8
test eax, eax
je 0x40e1e2
lea eax, [esp + 0x7c]
push 0x892d98
push eax
call fcn.0046f804
add esp, 8
test eax, eax
je 0x40e1e2
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 0x40e172
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.00480968
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 0x40ea20
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 0x40ea82
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