joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a3a1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43fc50
push 0x43fc48
push str.FlsAlloc
push 0x1f
call fcn.0042a260
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42a3d5
push dword [ebp + 8]
mov ecx, esi
call dword [0x43645c]
call esi
jmp 0x42a3db
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42a41f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43fc60
push 0x43fc58
push str.FlsGetValue
push 0x21
call fcn.0042a260
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42a456
push dword [ebp + 8]
mov ecx, esi
call dword [0x43645c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42a45e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43fc68
push 0x43fc60
push str.FlsSetValue
push 0x22
call fcn.0042a260
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42a498
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43645c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42d773
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x44c340]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x42d7be
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0042d90e
test al, al
jne 0x42d7b8
sub edx, 2
cmp edx, edi
jne 0x42d79e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42d7e0
lea eax, [edi + 2]
cmp edx, eax
je 0x42d7e0
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042d6bf
add esp, 0x10
jmp 0x42d8da
push esi
lea ecx, [ebp - 0x255]
call fcn.0042d90e
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42d823
push dword [ebp - 0x25c]
jmp 0x42d7d0
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x42d860
cmp word [ebp - 0x226], 0
je 0x42d881
cmp word [ebp - 0x226], ax
jne 0x42d860
cmp word [ebp - 0x224], 0
je 0x42d881
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042d6bf
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42d8cd
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42d83a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x42d8b5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42d8da
push 0x42d420
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004343d0
add esp, 0x10
jmp 0x42d8aa
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419e34
leave
ret
Function at 0x42e38a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42e427
push ebx
push esi
call fcn.0042e353
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0042e2e7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42e3d4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42e426
push edi
push eax
call fcn.004291cb
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42e3f4
call fcn.0042a0f3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42e425
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042e2e7
add esp, 0x20
test eax, eax
jne 0x42e413
push edi
call fcn.0042a0f3
jmp 0x42e41b
push ebx
call fcn.0042a0f3
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x42e42a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x42e43b
pop esi
ret
push ebx
push edi
push esi
call fcn.0042e353
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004291cb
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x42e463
push ebx
push esi
push edi
call fcn.0041ac20
add esp, 0xc
push 0
call fcn.0042a0f3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x42ebbd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042e6d8
Function at 0x435970
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43599d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43599d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0xf052e4
Capabilities:
Encode data using xor

Disassembly:
jmp 0xf052ee
pushal
call 0xf052f4
pop ebp
sub ebp, 0x10
sub ebp, 0xb052e4
jmp 0xf0530a
mov eax, 0xb052e4
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c4
mov edx, 0x115f8e3e
xor byte [eax], dl
inc eax
dec ecx
jne 0xf05321
jmp 0xf05334
mov ch, 0xf3
mov ch, 0xb7
add bh, byte [esi]
mov edi, 0x3e3ec6ff
cmp eax, 0x3e3886f3
test byte ds:[esi], dl
leave
fdivr qword [0x32bfb5f6]
cmp eax, 0x1a5ab3fb
ret 0x3ab7
Function at 0x4019f8
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e9c98
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x1ec]
test eax, eax
je 0x401adf
mov cl, byte [0x75e2f0]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov al, 1
test al, cl
jne 0x401a2b
or cl, al
mov byte [0x75e2f0], cl
call edi
mov dword [0x75e2ec], eax
call edi
sub eax, dword [0x75e2ec]
cmp eax, 0x3e8
jb 0x401adf
call edi
mov dword [0x75e2ec], eax
mov eax, dword [0x74e3a4]
mov dword [esp + 8], eax
mov ecx, dword [esi + 0x1ec]
mov eax, dword [esi + 0xc0]
mov dword [esp + 0x18], 0
mov edx, dword [ecx + 0x4c]
mov ecx, dword [esi + 0x150]
push edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
push ecx
mov ecx, dword [esi + 0x1f4]
push edx
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x5481d0
push edx
call fcn.004cd19e
mov eax, dword [esi + 0x14c]
add esp, 0x1c
test esi, esi
mov dword [esi + 0x150], eax
mov dword [esi + 0x14c], 0
je 0x401aab
mov esi, dword [esi + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push 0x1f4
push 3
push 0
lea ecx, [esp + 0x18]
call fcn.004d3b90
push eax
push 0
push 0xc
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call fcn.004d3760
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
push 0xffffffffffffffff
push 0x4ea148
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x74e3a4]
push esi
mov esi, ecx
mov dword [esp + 4], eax
mov ecx, dword [esi + 0x5c]
mov eax, dword [esi + 0x90]
mov dword [esp + 0x10], 0
mov edx, dword [ecx + 0x4c]
mov ecx, dword [esi + 0x6c]
push edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
push ecx
mov ecx, dword [esi + 0x68]
push edx
push eax
push ecx
lea edx, [esp + 0x18]
push 0x548448
push edx
call fcn.004cd19e
mov eax, dword [esp + 0x20]
add esp, 0x1c
mov ecx, esi
push eax
call fcn.004d2d21
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.004d3760
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
mov eax, dword [esp + 4]
test eax, eax
je 0x426954
mov ecx, dword [eax + 0x48]
mov eax, dword [eax + 0x44]
test eax, eax
jle 0x426954
sub eax, 2
je 0x42694f
dec eax
jne 0x426954
jmp 0x406a20
jmp 0x4019e0
ret
Function at 0x402140
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x18
push ebx
mov ebx, ecx
push ebp
push esi
mov ecx, dword [ebx + 0x1ec]
push edi
add ecx, 0x24
call fcn.00414d60
mov ebp, eax
mov eax, dword [ebx + 0xc0]
dec ebp
test eax, eax
je 0x402336
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
push eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
call fcn.004d3d6b
mov eax, dword [ebx + 0xc4]
push eax
call fcn.004d3d6b
push ebp
call fcn.004d3d42
push ebp
mov dword [ebx + 0xc0], eax
call fcn.004d3d42
mov ecx, dword [ebx + 0x1ec]
add esp, 0x10
add ecx, 0x24
mov dword [ebx + 0xc4], eax
push 1
call fcn.00414f20
mov edi, dword [ebx + 0xc0]
mov ecx, ebp
mov edx, ecx
mov esi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x1ec]
add ecx, 0x24
call fcn.00414f20
mov edi, dword [ebx + 0xc4]
mov ecx, ebp
mov esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0xb4]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebx + 0xc0]
mov ecx, dword [ebx + 0xac]
push 0
lea edx, [ebx + 0xb8]
push 0
push edx
push 0
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebx + 0xb4], eax
mov eax, dword [ebx + 0xbc]
test eax, eax
je 0x40224f
push eax
call fcn.004d3d6b
mov edx, dword [ebx + 0xc4]
mov eax, dword [edx + 0x14]
push eax
call fcn.004d3d42
add esp, 8
mov dword [ebx + 0xbc], eax
mov ecx, dword [ebx + 0xb4]
mov edx, dword [ebx + 0xb0]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
lea esi, [ebx + 0xe0]
mov ecx, esi
call fcn.004041d0
mov eax, dword [ebx + 0xc0]
xor ecx, ecx
mov cx, word [eax + 0xe]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00404080
mov eax, dword [ebx + 0xc0]
mov ecx, dword [esp + 0x10]
cmp ecx, dword [eax + 4]
jne 0x4022aa
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + 8]
cmp edx, ecx
je 0x402336
mov al, byte [ebx + 0x1e9]
test al, al
je 0x4022c4
mov ecx, ebx
call fcn.00401e30
mov ecx, ebx
call fcn.00401e30
jmp 0x402301
lea esi, [ebx + 0x94]
xor eax, eax
mov ecx, esi
sub esp, 8
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov eax, esp
push 2
mov ecx, ebx
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.00402d80
xor edx, edx
mov dword [esi], edx
mov dword [esi + 4], edx
mov dword [esi + 8], edx
mov dword [esi + 0xc], edx
push 0x91
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x402336
mov ecx, dword [ebx + 0x1c]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea edx, [esp + 0x18]
mov ecx, ebx
push edx
call fcn.004d692c
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_ClipCursor]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x403d70
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x403dd5
push ebx
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [esp + 0x10]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x403dcd
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, esi
mov esi, dword [esp + 0x10]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebx
ret 8

Function at 0x403de0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 8
push esi
mov dword [esp + 8], ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x403e85
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
mov dword [esp + 4], esi
jne 0x403e15
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
add esp, 8
ret
push ebx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov ebx, eax
push esi
inc ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov esi, eax
call fcn.004d3d42
lea ecx, [ebx - 1]
mov ebp, eax
mov eax, ecx
add esp, 4
lea edi, [ebp + 1]
mov byte [ebp], 0x21
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0x14]
push 0
push ebx
push ebp
mov edx, dword [eax + 0x1ec]
mov ecx, dword [eax + 0x1f0]
push edx
call fcn.00415950
push ebp
call fcn.004d3d6b
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x404420
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x48]
mov dword [esi], 0x50fad4
test al, al
je 0x40447c
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.WINMM.dll_waveInStop]
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.WINMM.dll_waveInReset]
mov ebp, dword [sym.imp.WINMM.dll_waveInUnprepareHeader]
lea edi, [esi + 0x34]
mov ebx, 2
mov edx, dword [edi]
mov eax, dword [esi + 0x18]
push 0x20
push edx
push eax
call ebp
add edi, 4
dec ebx
jne 0x404455
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.WINMM.dll_waveInClose]
mov edx, dword [esi + 0x30]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov al, byte [esi + 0x49]
test al, al
je 0x4044b6
mov eax, dword [esi + 0x44]
push eax
call dword [sym.imp.WINMM.dll_waveOutReset]
mov ebp, dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
lea edi, [esi + 0x34]
mov ebx, 2
mov ecx, dword [edi]
mov edx, dword [esi + 0x44]
push 0x20
push ecx
push edx
call ebp
add edi, 4
dec ebx
jne 0x40449b
mov eax, dword [esi + 0x44]
push eax
call dword [sym.imp.WINMM.dll_waveOutClose]
lea edi, [esi + 0x34]
mov ebx, 2
mov ecx, dword [edi - 0x2c]
push ecx
call fcn.004d3d6b
mov edx, dword [edi]
push edx
call fcn.004d3d6b
mov eax, dword [edi - 0x24]
push eax
call fcn.004d3d6b
mov ecx, dword [edi + 8]
push ecx
call fcn.004d3d6b
add esp, 0x10
add edi, 4
dec ebx
jne 0x4044be
mov edx, dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 0x28]
push eax
call edi
mov ecx, dword [esi + 0x30]
push ecx
call edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4045f0
Capabilities:
Capture microphone audio
Create thread
Resume thread

Disassembly:
sub esp, 0x18
push ebx
push edi
mov edi, ecx
call dword [sym.imp.WINMM.dll_waveInGetNumDevs]
test eax, eax
jne 0x404609
pop edi
xor al, al
pop ebx
add esp, 0x18
ret
lea eax, [esp + 0xc]
mov ecx, edi
push eax
call fcn.004046d0
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push 4
push edi
push 0x4047e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [esp + 8]
mov ecx, dword [edi + 0x2c]
mov dword [edi + 0x30], eax
push 0x20000
push 0
lea eax, [esp + 0x14]
push edx
lea ebx, [edi + 0x18]
push eax
push ecx
push ebx
call dword [sym.imp.WINMM.dll_waveInOpen]
test eax, eax
je 0x404662
pop edi
xor al, al
pop ebx
add esp, 0x18
ret
push ebp
push esi
lea esi, [edi + 0x34]
mov ebp, 2
mov edx, dword [esi]
mov eax, dword [esi - 0x2c]
push 0x20
mov dword [edx], eax
mov ecx, dword [esi]
mov edx, dword [edi + 4]
xor eax, eax
mov dword [ecx + 4], edx
mov ecx, dword [esi]
mov dword [ecx + 0x10], eax
mov edx, dword [esi]
mov dword [edx + 0x14], eax
mov eax, dword [esi]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
add esi, 4
dec ebp
jne 0x40466c
mov edx, dword [edi + 0x1c]
mov ecx, dword [ebx]
push 0x20
mov eax, dword [edi + edx*4 + 0x34]
push eax
push ecx
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
mov edx, dword [edi + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebx]
push eax
call dword [sym.imp.WINMM.dll_waveInStart]
mov al, 1
pop esi
mov byte [edi + 0x48], al
pop ebp
pop edi
pop ebx
add esp, 0x18
ret

Function at 0x405dd3
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
sub esp, 0x34
push esi
mov esi, ecx
push 0
push 0
lea ecx, [esi + 8]
mov eax, dword [esi + 4]
mov dword [esp + 0x3a], eax
add eax, 0x26
mov edx, dword [ecx]
push 0
mov dword [esp + 0x28], edx
mov dword [esp + 0x3a], 0x61746164
mov edx, dword [ecx + 4]
mov dword [esp + 0x20], 0x20746d66
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], 0x12
mov edx, dword [ecx + 8]
mov dword [esp + 0x14], 0x46464952
mov dword [esp + 0x30], edx
mov dword [esp + 0x18], eax
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x1c], 0x45564157
mov dword [esp + 0x34], edx
mov edx, dword [esi + 0x1c]
mov cx, word [ecx + 0x10]
push edx
mov word [esp + 0x3c], cx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 0x1c]
lea eax, [esp + 4]
push 0
push eax
lea ecx, [esp + 0x10]
push 0x2e
push ecx
push edx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop esi
je 0x405e75
cmp dword [esp], 0x2e
jne 0x405e75
xor eax, eax
add esp, 0x34
ret
or eax, 0xffffffff
add esp, 0x34
ret

Function at 0x405f20
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 0x1c]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
ret 8
Function at 0x4085c0
Capabilities:
Get file system object information

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x160
cmp eax, 0xffffffff
jne 0x4085d6
mov eax, 0x80
jmp 0x4085d8
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 0x409540
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ea667
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.004d34d5
push 0x5c
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.004ccdf6
cmp eax, 0xffffffff
jne 0x4095a8
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.004d34d5
mov dword [esp + 0x14], edi
jmp 0x409669
lea edx, [esp + 0x10]
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.004ccd7e
mov bl, 3
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.004ccdf6
cmp eax, 0xffffffff
jne 0x4095dd
push 0x75e2e8
lea ecx, [esp + 0x10]
call fcn.004d38e9
jmp 0x409647
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.004ccd7e
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.004d3899
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.004d3760
lea edx, [esp + 0x18]
push edi
push edx
lea ecx, [esp + 0x14]
call fcn.004ccd02
mov eax, dword [eax]
push 0x548600
push eax
call fcn.004435ac
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
setne bl
call fcn.004d3760
test bl, bl
je 0x409647
push 0x548600
lea ecx, [esp + 0x10]
call fcn.004d3b3c
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.004d34d5
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0x24], 2
call fcn.004d3760
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.004d3760
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call fcn.004d3760
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 0x40a340
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ea6fb
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 0x40a391
mov edi, 0x548600
mov dword [esp + 0x14], edi
jmp 0x40a39d
mov dword [esp + 0x14], 0x75e2e8
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 0x40a3da
xor al, al
jmp 0x40a524
cmp byte [esp + 0x48], 0x2e
je 0x40a507
test byte [esp + 0x1c], 0x10
je 0x40a41d
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.0040a340
jmp 0x40a507
mov eax, dword [0x74e3a4]
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.004cd19e
mov eax, dword [esi + 0xc4]
mov ebp, dword [esi + 0xbc]
add esp, 0x14
test eax, eax
jne 0x40a496
mov eax, dword [esi + 0xcc]
push 0xc
lea ecx, [esi + 0xc8]
push eax
push ecx
call fcn.004ce56f
mov ecx, dword [esi + 0xcc]
lea edx, [ecx + ecx*2]
dec ecx
test ecx, ecx
lea eax, [eax + edx*4 - 8]
jl 0x40a496
inc ecx
mov edx, dword [esi + 0xc4]
mov dword [eax], edx
mov dword [esi + 0xc4], eax
sub eax, 0xc
dec ecx
jne 0x40a482
mov edi, dword [esi + 0xc4]
push 1
mov eax, dword [edi]
mov dword [esi + 0xc4], eax
mov dword [edi + 4], ebp
mov dword [edi], 0
mov edx, dword [esi + 0xc0]
lea ebp, [edi + 8]
inc edx
push ebp
mov dword [esi + 0xc0], edx
call fcn.004cd1b1
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.004d3899
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x40a4df
mov dword [eax], edi
jmp 0x40a4e5
mov dword [esi + 0xb8], edi
lea ecx, [esp + 0x10]
mov dword [esi + 0xbc], edi
mov dword [esp + 0x36c], 0xffffffff
call fcn.004d3760
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a3da
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