joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46fe58
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x46fefa
cmp dword [ebx + 0x90], 0
jne 0x46fef4
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46fdd0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], 0
je 0x46fef4
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_GetWindowLongW
test al, 8
je 0x46feba
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46fef4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x8c]
call fcn.0041ec4c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46fec9
inc dword [ebx + 0x90]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x470118
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x49117c]
cmp dword [eax + 0x170], 0
je 0x47027d
test bl, bl
jne 0x4701cb
cmp dword [esi + 0x98], 0
jne 0x4701c0
mov eax, esi
call fcn.00472c58
push eax
push 0x470024
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x40], 0
je 0x470191
mov eax, dword [0x49117c]
cmp byte [eax + 0xcf], 0
je 0x470191
mov eax, dword [esi + 0xd4]
call fcn.00406840
mov edi, eax
cmp edi, 0
jl 0x470191
push 0
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x47017a
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4701c0
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.0041ec4c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4701a0
inc dword [esi + 0x98]
jmp 0x47027d
cmp dword [esi + 0x98], 0
jle 0x47027d
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x47027d
cmp dword [esi + 0x40], 0
je 0x470228
mov eax, dword [0x49117c]
cmp byte [eax + 0xcf], 0
je 0x470228
mov eax, dword [esi + 0xd4]
call fcn.00406840
mov edi, eax
cmp edi, 0
jl 0x470228
push 5
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x470211
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x470257
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.0041ec4c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x470237
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd4]
mov ecx, 1
mov edx, dword [0x465a4c]
call fcn.00406a00
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x470e38
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x470ea3
cmp byte [ebx + 0xcf], 0
jne 0x470ea3
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004057b0
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x470e90
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x470eb0
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00405674
jmp 0x470eb0
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00405674
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x472418
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x472486
mov eax, esi
call fcn.00459188
test al, al
je 0x472486
mov eax, dword [ebx + 0x80]
call fcn.00458ddc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x472486
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x47247a
push 0
mov eax, dword [ebx + 0x80]
call fcn.00458ddc
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.00450438
jmp 0x472486
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.00472264
pop esi
pop ebx
ret
Function at 0x434f69
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
sub eax, 0
je 0x434f9e
dec eax
jne 0x434fe1
test edi, edi
je 0x434fe1
push edi
call fcn.00434c00
mov esi, eax
pop ecx
test esi, esi
jne 0x434fcf
push 0x26
call fcn.00434c00
push eax
call fcn.004350f3
pop ecx
pop ecx
jmp 0x434fe1
test edi, edi
je 0x434fe1
cmp byte [0x426a60], 1
jne 0x434fc1
push edi
call fcn.00434ff9
mov esi, eax
pop ecx
test esi, esi
jne 0x434fcf
push 0x26
call fcn.00434ff9
jmp 0x434f94
push 0x1e
call fcn.00434ff9
mov esi, eax
pop ecx
test esi, esi
je 0x434fe1
push dword [ebp + 0x10]
push esi
call fcn.00434f39
push esi
call fcn.004350f3
add esp, 0xc
call fcn.0043bc50
cmp eax, 1
jne 0x434ff1
cmp edi, eax
jle 0x434ff1
push eax
pop edi
push edi
call fcn.0043d344
pop edi
pop esi

Function at 0x43b910
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x100
test eax, eax
je 0x43b934
lea ecx, [esp + 0x110]
lea edx, [esp]
push ecx
push eax
push edx
call fcn.0043d2c6
add esp, 0xc
mov eax, dword [esp + 0x108]
push esi
mov esi, dword [esp + 0x108]
sub eax, 0
je 0x43b9a9
dec eax
je 0x43b95e
dec eax
je 0x43b9c2
push esi
push 0x4286c0
call fcn.0043dd78
add esp, 8
jmp 0x43b9c2
push esi
push 0x4286b4
call fcn.0043dd78
mov eax, dword [esp + 0x118]
add esp, 8
test eax, eax
je 0x43b99a
push 0x4286b0
call fcn.0043dd78
lea eax, [esp + 8]
push eax
call fcn.0043dd78
push 0x426fbc
call fcn.0043dd78
add esp, 0xc
jmp 0x43b9c2
push 0x426fbc
call fcn.0043dd78
add esp, 4
jmp 0x43b9c2
push esi
push 0x4286b4
call fcn.0043dd78
lea ecx, [esp + 0xc]
push ecx
push esi
call fcn.0043b9f0
add esp, 0x10
test esi, esi
jge 0x43b9df
call fcn.00445100
cmp dword [0x42ca4c], 1
jne 0x43b9d9
mov esi, 1
push esi
call fcn.0043d344
pop esi
add esp, 0x100
ret
Function at 0x405eb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x419a80], ecx
inc edx
cmp edx, 0x100
jb 0x405eb2
cmp edx, 0x800
jae 0x405f89
lea esp, [esp]
mov eax, dword [edx*4 + 0x419680]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x419a80]
inc edx
mov dword [edx*4 + 0x419a7c], eax
cmp edx, 0x800
jb 0x405f60
mov dword [0x418fc0], 0x4061f0
call fcn.00406fc0
test eax, eax
jne 0x405fa6
mov dword [0x418fc0], 0x4062a0
ret
Function at 0x40a120
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x10]
xor eax, eax
and ebp, 7
cmp ecx, 5
jae 0x40a139
pop ebp
pop ecx
ret
mov edx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x1c]
add esi, 5
lea edx, [edx + ecx - 4]
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x10], edx
jmp 0x40a160
mov ecx, dword [esp + 0x18]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x40a17d
jmp 0x40a170
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40a17d
inc edi
cmp edi, edx
jb 0x40a170
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x1c]
cmp edi, edx
jae 0x40a292
cmp ecx, 3
jbe 0x40a1b1
xor ebp, ebp
mov cl, byte [edi + 4]
mov dword [esp + 0x1c], eax
test cl, cl
je 0x40a1eb
cmp cl, 0xff
je 0x40a1eb
and ebp, 3
add ebp, ebp
or ebp, 1
inc eax
jmp 0x40a160
dec ecx
shl ebp, cl
and ebp, 7
je 0x40a196
movzx ecx, byte [ebp + 0x414300]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x4142f8], 0
mov cl, byte [ebx + 4]
je 0x40a1d9
test cl, cl
je 0x40a1d9
cmp cl, 0xff
jne 0x40a196
and ebp, 3
add ebp, ebp
mov dword [esp + 0x1c], eax
or ebp, 1
inc eax
jmp 0x40a160
movzx edx, cl
movzx ecx, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea esp, [esp]
cmp dword [esp + 0x28], 0
je 0x40a21e
lea ebx, [edx + eax]
add ebx, esi
jmp 0x40a224
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x40a264
movzx esi, byte [ebp + 0x414300]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x40a249
cmp dl, 0xff
jne 0x40a260
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
dec edx
xor edx, ebx
jmp 0x40a210
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x10]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x40a160
pop edi
pop esi
pop ebx
cmp ecx, 3
jbe 0x40a2a5
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov dword [ecx], ebp
pop ebp
pop ecx
ret
dec ecx
shl ebp, cl
mov ecx, dword [esp + 0x18]
and ebp, 7
mov dword [ecx], ebp
pop ebp
pop ecx
ret
Function at 0x4010f0
Capabilities:
Link many functions at runtime
Terminate thread

Disassembly:
sub esp, 0x20
mov al, 0x4d
push ebx
mov byte [esp + 0x1b], al
mov byte [esp + 0x1c], al
mov al, 0x4c
push ebp
push esi
mov byte [esp + 0x27], al
mov byte [esp + 0x28], al
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, ecx
lea eax, [esp + 0x24]
push str.waveInReset
push eax
mov dword [esi], 0x57aa50
mov byte [esp + 0x2c], 0x57
mov byte [esp + 0x2d], 0x49
mov byte [esp + 0x2e], 0x4e
mov byte [esp + 0x31], 0x2e
mov byte [esp + 0x32], 0x44
mov byte [esp + 0x35], 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
lea ecx, [esp + 0x24]
push str.waveOutReset
push ecx
mov ebp, eax
call edi
push eax
call ebx
lea edx, [esp + 0x24]
push str.waveInStop
push edx
mov dword [esp + 0x20], eax
call edi
push eax
call ebx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
push str.waveInClose
push eax
call edi
push eax
call ebx
lea ecx, [esp + 0x24]
push str.waveOutUnprepareHeader
push ecx
mov dword [esp + 0x1c], eax
call edi
push eax
call ebx
lea edx, [esp + 0x24]
push str.waveOutClose
push edx
mov dword [esp + 0x24], eax
call edi
push eax
call ebx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push str.waveInUnprepareHeader
push eax
call edi
push eax
call ebx
mov ebx, eax
mov al, byte [esi + 0x44]
test al, al
je 0x401200
mov ecx, dword [esi + 0x18]
push ecx
call dword [esp + 0x14]
mov edx, dword [esi + 0x18]
push edx
call ebp
lea edi, [esi + 0x30]
mov ebp, 2
mov eax, dword [edi]
mov ecx, dword [esi + 0x18]
push 0x20
push eax
push ecx
call ebx
add edi, 4
dec ebp
jne 0x4011db
mov edx, dword [esi + 0x18]
push edx
call dword [esp + 0x18]
mov eax, dword [esi + 0x2c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov al, byte [esi + 0x45]
test al, al
je 0x401232
mov ecx, dword [esi + 0x40]
push ecx
call dword [esp + 0x1c]
lea edi, [esi + 0x30]
mov ebx, 2
mov edx, dword [edi]
mov eax, dword [esi + 0x40]
push 0x20
push edx
push eax
call dword [esp + 0x28]
add edi, 4
dec ebx
jne 0x401217
mov ecx, dword [esi + 0x40]
push ecx
call dword [esp + 0x24]
lea edi, [esi + 0x30]
mov ebx, 2
mov edx, dword [edi - 0x28]
push edx
call fcn.00547bc3
mov eax, dword [edi]
push eax
call fcn.00547bc3
mov ecx, dword [edi - 0x20]
push ecx
call fcn.00547bc3
mov edx, dword [edi + 8]
push edx
call fcn.00547bc3
add esp, 0x10
add edi, 4
dec ebx
jne 0x40123a
mov eax, dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esi + 0x28]
push ecx
call edi
mov edx, dword [esi + 0x2c]
push edx
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x4013c0
Capabilities:
Capture microphone audio
Create thread
Resume thread

Disassembly:
sub esp, 0x14
mov al, 0x4d
push ebx
mov byte [esp + 0xf], al
mov byte [esp + 0x10], al
mov al, 0x4c
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov byte [esp + 0x1b], al
mov byte [esp + 0x1c], al
push edi
lea eax, [esp + 0x18]
xor ebx, ebx
push str.waveInGetNumDevs
mov edi, ecx
push eax
mov byte [esp + 0x20], 0x57
mov byte [esp + 0x21], 0x49
mov byte [esp + 0x22], 0x4e
mov byte [esp + 0x25], 0x2e
mov byte [esp + 0x26], 0x44
mov byte [esp + 0x29], bl
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
lea ecx, [esp + 0x18]
push str.waveInOpen
push ecx
mov dword [esp + 0x1c], eax
call esi
push eax
call ebp
mov esi, eax
call dword [esp + 0x14]
test eax, eax
jne 0x40143e
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x14
ret
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push edx
push 4
push edi
push 0x4015f0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x2c], eax
mov eax, dword [esp + 0x10]
push 0x20000
push ebx
lea ecx, [edi + 0x46]
push eax
lea ebp, [edi + 0x18]
push ecx
push 0xffff
push ebp
call esi
test eax, eax
je 0x401482
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x14
ret
lea esi, [edi + 0x30]
mov dword [esp + 0x14], 2
mov edx, dword [esi]
mov eax, dword [esi - 0x28]
push 0x20
mov dword [edx], eax
mov ecx, dword [esi]
mov edx, dword [edi + 4]
mov dword [ecx + 4], edx
mov eax, dword [esi]
mov dword [eax + 0x10], ebx
mov ecx, dword [esi]
mov dword [ecx + 0x14], ebx
mov edx, dword [esi]
mov eax, dword [ebp]
push edx
push eax
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
mov eax, dword [esp + 0x14]
add esi, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x40148d
mov ecx, dword [edi + 0x1c]
mov eax, dword [ebp]
push 0x20
mov edx, dword [edi + ecx*4 + 0x30]
push edx
push eax
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
mov ecx, dword [edi + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [ebp]
push edx
call dword [sym.imp.WINMM.dll_waveInStart]
mov al, 1
mov byte [edi + 0x44], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4022e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
mov eax, 0x55555556
push esi
lea ecx, [ebp*4]
imul ecx
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 4]
push ecx
call dword [0x59adb4]
add esp, 4
mov esi, eax
test eax, eax
jne 0x402313
pop esi
or eax, 0xffffffff
pop ebp
ret
xor ecx, ecx
push edi
test ebp, ebp
jle 0x4023a0
mov edi, dword [esp + 0x10]
push ebx
xor edx, edx
mov dl, byte [ecx + edi]
inc ecx
shl edx, 8
cmp ecx, ebp
jge 0x402337
xor ebx, ebx
mov bl, byte [ecx + edi]
add edx, ebx
inc ecx
shl edx, 8
cmp ecx, ebp
jge 0x402346
xor ebx, ebx
mov bl, byte [ecx + edi]
add edx, ebx
mov ebx, edx
inc ecx
sar ebx, 0x12
and ebx, 0x3f
mov bl, byte [ebx + 0x5b9740]
mov byte [esi], bl
mov ebx, edx
sar ebx, 0xc
and ebx, 0x3f
mov bl, byte [ebx + 0x5b9740]
mov byte [esi + 1], bl
mov ebx, edx
sar ebx, 6
and ebx, 0x3f
and edx, 0x3f
cmp ecx, ebp
mov bl, byte [ebx + 0x5b9740]
mov byte [esi + 2], bl
mov dl, byte [edx + 0x5b9740]
mov byte [esi + 3], dl
jle 0x40238d
mov byte [esi + 3], 0x3d
lea edx, [ebp + 1]
cmp ecx, edx
jle 0x402398
mov byte [esi + 2], 0x3d
add esi, 4
cmp ecx, ebp
jl 0x402323
pop ebx
mov ecx, dword [esp + 0x18]
mov byte [esi], 0
mov edi, eax
mov dword [ecx], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
pop esi
mov eax, ecx
pop ebp
ret

Function at 0x4023c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
inc ebx
push ebx
call dword [0x59adb4]
mov ecx, ebx
mov ebp, eax
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
and ecx, 3
xor eax, eax
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
jle 0x40240f
mov cl, byte [eax + ebp]
xor cl, 0x11
add cl, 0x77
xor cl, 0x11
mov byte [eax + ebp], cl
inc eax
cmp eax, ebx
jl 0x4023fb
lea edx, [esp + 0x14]
push edx
push ebx
push ebp
call fcn.004022e0
push ebp
call dword [0x59adb8]
mov eax, dword [esp + 0x24]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4042b0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [esp + 8]
lea eax, [esp]
push eax
push edx
mov dword [esp + 8], 0
call fcn.00404160
xor ecx, ecx
test eax, eax
jle 0x404304
push ebx
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
xor bl, 0x11
mov byte [ecx + edx], bl
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
add bl, 0x89
mov byte [ecx + edx], bl
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
xor bl, 0x11
mov byte [ecx + edx], bl
inc ecx
cmp ecx, eax
jl 0x4042cf
mov eax, dword [esp + 4]
pop ebx
pop ecx
ret 4
mov eax, dword [esp]
pop ecx
ret 4

Function at 0x4061b0
Capabilities:
Get file system object information

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x160
cmp eax, 0xffffffff
jne 0x4061c6
mov eax, 0x80
jmp 0x4061c8
or al, 0x80
mov edx, dword [esp + 0x164]
push 0x4010
lea ecx, [esp + 4]
push 0x160
push ecx
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [esp + 4]
add esp, 0x160
ret
Function at 0x407980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x567e37
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [esp + 0x14], 0
lea eax, [esp + 0x30]
mov edi, 1
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], edi
call fcn.0054c36d
push 0x5c
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.00544edb
cmp eax, 0xffffffff
jne 0x4079e8
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0054c36d
mov dword [esp + 0x14], edi
jmp 0x407aaa
lea edx, [esp + 0x10]
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.00544e63
mov bl, 3
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00544edb
cmp eax, 0xffffffff
jne 0x407a1d
push 0x5cf618
lea ecx, [esp + 0x10]
call fcn.0054c781
jmp 0x407a88
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00544e63
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.0054c731
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.0054c5f8
lea edx, [esp + 0x18]
push edi
push edx
lea ecx, [esp + 0x14]
call fcn.00544de7
mov eax, dword [eax]
push 0x5b9e84
push eax
call dword [0x59adc8]
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
setne bl
call fcn.0054c5f8
test bl, bl
je 0x407a88
push 0x5b9e84
lea ecx, [esp + 0x10]
call fcn.0054c9d4
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0054c36d
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0x24], 2
call fcn.0054c5f8
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.0054c5f8
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call fcn.0054c5f8
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x408670
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x567eab
push eax
mov dword fs:[0], esp
sub esp, 0x354
xor eax, eax
push ebx
mov ebx, dword [esp + 0x368]
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x41
lea edi, [esp + 0x15c]
rep stosd dword es:[edi], eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + ebx - 1], 0x5c
je 0x4086c1
mov edi, 0x5b9e84
mov dword [esp + 0x14], edi
jmp 0x4086cd
mov dword [esp + 0x14], 0x5cf618
mov edi, dword [esp + 0x14]
push edi
push ebx
lea eax, [esp + 0x164]
push str._s_s.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x15c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
jne 0x40870a
xor al, al
jmp 0x408854
cmp byte [esp + 0x48], 0x2e
je 0x408837
test byte [esp + 0x1c], 0x10
je 0x40874d
lea eax, [esp + 0x48]
lea ecx, [esp + 0x260]
push eax
push edi
push ebx
push str._s_s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [esp + 0x260]
mov ecx, esi
push edx
call fcn.00408670
jmp 0x408837
mov eax, dword [0x5bc6c4]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x48]
lea edx, [esp + 0x10]
push ecx
push edi
push ebx
push str._s_s_s
push edx
mov dword [esp + 0x380], 0
call fcn.00545283
mov eax, dword [esi + 0xb4]
mov ebp, dword [esi + 0xac]
add esp, 0x14
test eax, eax
jne 0x4087c6
mov eax, dword [esi + 0xbc]
push 0xc
lea ecx, [esi + 0xb8]
push eax
push ecx
call fcn.00546fd7
mov ecx, dword [esi + 0xbc]
lea edx, [ecx + ecx*2]
dec ecx
test ecx, ecx
lea eax, [eax + edx*4 - 8]
jl 0x4087c6
inc ecx
mov edx, dword [esi + 0xb4]
mov dword [eax], edx
mov dword [esi + 0xb4], eax
sub eax, 0xc
dec ecx
jne 0x4087b2
mov edi, dword [esi + 0xb4]
push 1
mov eax, dword [edi]
mov dword [esi + 0xb4], eax
mov dword [edi + 4], ebp
mov dword [edi], 0
mov edx, dword [esi + 0xb0]
lea ebp, [edi + 8]
inc edx
push ebp
mov dword [esi + 0xb0], edx
call fcn.00545334
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.0054c731
mov eax, dword [esi + 0xac]
test eax, eax
je 0x40880f
mov dword [eax], edi
jmp 0x408815
mov dword [esi + 0xa8], edi
lea ecx, [esp + 0x10]
mov dword [esi + 0xac], edi
mov dword [esp + 0x36c], 0xffffffff
call fcn.0054c5f8
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40870a
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov ecx, dword [esp + 0x364]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x360
ret 4
Function at 0x4096b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 9
mov ecx, dword [esi + 0x654]
add ecx, 0x24
call fcn.00402170
mov ecx, dword [esi + 0x654]
push 1
add ecx, 0x24
mov ebp, eax
call fcn.00402170
mov edi, dword [eax + 4]
mov edx, dword [eax]
xor ecx, ecx
xor ebx, ebx
or ecx, edi
or edx, ebx
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], edx
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x654]
mov edx, dword [eax + 4]
add ecx, 0x24
mov dword [esp + 0x1c], edx
call fcn.00401fb0
push ebx
push 0x80
push 3
push ebx
push 2
mov edi, eax
push 0x40000000
lea ecx, [esi + 0x60]
push ebx
sub edi, 9
call fcn.0054ca28
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esp + 0x1c]
mov ebx, eax
lea eax, [esp + 0x14]
push 0
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x10], 0
lea edx, [esp + 0x18]
push 0
push edx
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jg 0x409773
mov ecx, dword [esp + 0x10]
inc ecx
cmp ecx, 0xf
mov dword [esp + 0x10], ecx
jl 0x409751
cmp dword [esp + 0x10], 0xf
jne 0x4097ae
test eax, eax
jg 0x4097ae
lea eax, [esi + 0x60]
push 0x5b9f18
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0054c88d
mov ecx, dword [eax]
mov edx, dword [esi + 0x1c]
push 0x30
push 0x5b9ecc
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x10]
call fcn.0054c5f8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0x80]
add edx, eax
mov dword [esi + 0x80], edx
mov ecx, dword [esi + 0x84]
adc ecx, 0
mov dword [esi + 0x84], ecx
mov ecx, esi
call fcn.00409aa0
mov al, byte [esi + 0x5c]
test al, al
je 0x4097f3
mov ecx, esi
call fcn.00409a70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add edx, eax
mov dword [esp + 0x21], ecx
mov dword [esp + 0x25], edx
mov edx, dword [esi + 0x654]
lea ecx, [esp + 0x20]
push 9
push ecx
mov ecx, dword [esi + 0x658]
push edx
mov byte [esp + 0x2c], 7
call fcn.0040ce80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret