joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ba8af
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5ba8e7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005b8966
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005b893e
jmp 0x5ba8f3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5bbf9d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5bbfdf
call fcn.005c1fe3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5bbfdf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5bbfd6
xor eax, eax
jmp 0x5bbfe7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005bbfed
pop edi
pop esi
pop ebx
ret 4

Function at 0x5c2513
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5c2541
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5c255f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005c2479
jmp 0x5c255f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5c255f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005c2479
test edi, edi
mov eax, edi
jne 0x5c2549
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push eax
push 0x101
call sub.WS2_32.dll_WSAStartup
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
pop esi
jne 0x401034
mov ax, word [esp]
cmp al, 1
jne 0x401034
xor ecx, ecx
mov cl, ah
cmp cl, al
je 0x401039
call fcn.00401de0
add esp, 0x190
ret

Function at 0x401140
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
xor ecx, ecx
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov edx, edi
mov byte [edx], al
inc eax
inc edx
cmp ax, 0x100
jl 0x401151
mov byte [edi + 0x100], cl
mov byte [edi + 0x101], cl
mov byte [esp + 0x24], cl
mov esi, edi
mov dword [esp + 0x10], 0x100
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
mov dl, byte [esi]
and eax, 0xff
xor ebx, ebx
mov bl, byte [eax + ebp]
mov ebp, edx
and ebp, 0xff
add ecx, ebx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4011a5
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x14], cl
mov ecx, dword [esp + 0x14]
and ecx, 0xff
inc eax
mov bl, byte [ecx + edi]
mov byte [esi], bl
mov byte [ecx + edi], dl
cdq
idiv dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc esi
dec eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x24], dl
jne 0x401175
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x401280
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
push ebx
push esi
push edi
push eax
mov ebx, eax
call sub.WS2_32.dll_gethostbyname
mov edi, eax
test edi, edi
jne 0x4012a2
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret
xor esi, esi
mov eax, dword [edi + 0xc]
mov eax, dword [eax + esi]
test eax, eax
je 0x4012bd
mov ecx, dword [eax]
push ecx
call sub.WS2_32.dll_inet_ntoa
mov ebx, eax
add esi, 4
jmp 0x4012a4
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x4012d8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
mov edx, dword [esp + 0x24]
mov word [esp + 0xc], 2
push edx
call sub.WS2_32.dll_htons
push ebx
mov word [esp + 0x12], ax
call sub.WS2_32.dll_inet_addr
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push 0x10
push eax
push esi
call sub.WS2_32.dll_connect
test eax, eax
jge 0x401319
push esi
call sub.WS2_32.dll_closesocket
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x401330
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebp
push esi
cmp eax, 0xffffffff
push edi
je 0x401455
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x408b58]
xor esi, esi
lea ebp, [eax + 0x18]
mov dword [esp + 0xc], esi
lea eax, [ebp + 0x80]
cmp ecx, eax
jae 0x401376
push eax
push esi
mov dword [0x408b58], ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [0x408b54], edi
jmp 0x40137c
mov edi, dword [0x408b54]
cmp edi, esi
je 0x401455
push ebx
mov ecx, 6
xor eax, eax
mov ebx, edi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], esi
cmp eax, esi
mov esi, dword [esp + 0x1c]
mov dword [ebx], 0x12
mov dword [ebx + 4], ebp
je 0x4013d6
lea edi, [ebx + 0x10]
push 8
push edi
mov dword [ebx], 0x800012
call fcn.00401050
mov ecx, dword [esp + 0x28]
push 8
push edi
push ecx
push esi
call fcn.00401570
push 8
push edi
push edi
call fcn.004010a0
add esp, 0x24
test esi, esi
je 0x4013f9
mov ecx, dword [esp + 0x20]
test ecx, ecx
jle 0x4013f9
mov edx, dword [0x408b54]
mov eax, ecx
shr ecx, 2
lea edi, [edx + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebp, ebp
mov esi, ebp
jle 0x401448
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push 0
push esi
lea edx, [ebx + ecx]
push edx
push eax
call sub.WS2_32.dll_send
test eax, eax
jl 0x401435
mov ecx, dword [esp + 0x10]
sub esi, eax
add ecx, eax
test esi, esi
mov dword [esp + 0x10], ecx
jg 0x4013ff
xor eax, eax
pop ebx
test esi, esi
pop edi
pop esi
sete al
pop ebp
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.send_faild_n
call fcn.00401fb6
add esp, 4
xor eax, eax
pop ebx
test esi, esi
pop edi
pop esi
sete al
pop ebp
pop ecx
ret
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
Function at 0x401460
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x18]
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
xor edi, edi
mov byte [esp + 8], cl
test esi, esi
mov byte [esp + 0x20], dl
jle 0x40155a
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x20]
push ebx
and ecx, 0xff
push ebp
and esi, 0xff
lea edx, [ecx + 1]
and edx, 0x800000ff
jns 0x4014b4
dec edx
or edx, 0xffffff00
inc edx
mov byte [esp + 0x10], dl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov bl, byte [ecx + eax]
mov byte [esp + 0x18], bl
and ebx, 0xff
add ebx, esi
and ebx, 0x800000ff
jns 0x4014e1
dec ebx
or ebx, 0xffffff00
inc ebx
mov byte [esp + 0x28], bl
mov bl, byte [esp + 0x18]
mov esi, dword [esp + 0x28]
mov byte [esp + 0x14], bl
and esi, 0xff
mov ebp, dword [esp + 0x14]
and ebp, 0xff
mov bl, byte [esi + eax]
mov byte [ecx + eax], bl
mov bl, byte [esp + 0x14]
mov byte [esi + eax], bl
xor ebx, ebx
mov bl, byte [ecx + eax]
add ebx, ebp
and ebx, 0x800000ff
jns 0x401525
dec ebx
or ebx, 0xffffff00
inc ebx
mov ebp, dword [esp + 0x20]
and ebx, 0xff
mov bl, byte [ebx + eax]
xor byte [edi + ebp], bl
mov ebx, dword [esp + 0x24]
inc edi
cmp edi, ebx
jl 0x4014a1
mov cl, byte [esp + 0x28]
pop ebp
pop ebx
pop edi
mov byte [eax + 0x100], dl
mov byte [eax + 0x101], cl
pop esi
add esp, 0xc
ret
pop edi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop esi
add esp, 0xc
ret
Function at 0x401b10
Capabilities:
Get graphical window text

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x104
mov eax, ecx
and eax, 0xffff
push edi
cmp eax, 0x3e9
jg 0x401c37
je 0x401bdb
dec eax
je 0x401bc1
dec eax
je 0x401ba4
sub eax, 0x3e6
jne 0x401d5f
shr ecx, 0x10
cmp ecx, 0x300
jne 0x401d5f
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10c]
push 0x104
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push 0x3e8
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 4]
push 0x408a50
push edx
push str.addr
jmp 0x401d54
mov eax, dword [esp + 0x10c]
push 2
push eax
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, 1
pop edi
add esp, 0x104
ret
mov ecx, dword [esp + 0x10c]
push ecx
call fcn.004015d0
add esp, 4
xor eax, eax
pop edi
add esp, 0x104
ret
shr ecx, 0x10
cmp ecx, 0x300
jne 0x401d5f
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 4]
push 0x104
stosb byte es:[edi], al
mov eax, dword [esp + 0x110]
push edx
push 0x3e9
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [esp + 4]
push 0x408a50
push ecx
push 0x408078
jmp 0x401d54
sub eax, 0x3ea
je 0x401d01
dec eax
je 0x401ca8
dec eax
jne 0x401d5f
shr ecx, 0x10
cmp ecx, 0x300
jne 0x401d5f
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 4]
push 0x104
stosb byte es:[edi], al
mov eax, dword [esp + 0x110]
push edx
push 0x3ec
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [esp + 4]
push 0x408a50
push ecx
push 0x408068
jmp 0x401d54
shr ecx, 0x10
cmp ecx, 0x300
jne 0x401d5f
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 4]
push 0x104
stosb byte es:[edi], al
mov eax, dword [esp + 0x110]
push edx
push 0x3eb
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [esp + 4]
push 0x408a50
push ecx
push str.game
jmp 0x401d54
shr ecx, 0x10
cmp ecx, 0x300
jne 0x401d5f
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 4]
push 0x104
stosb byte es:[edi], al
mov eax, dword [esp + 0x110]
push edx
push 0x3ea
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [esp + 4]
push 0x408a50
push ecx
push 0x408074
push str.post
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
xor eax, eax
pop edi
add esp, 0x104
ret
Function at 0x4038bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408600
cmp edx, dword [eax]
je 0x4038df
add eax, 8
inc ecx
cmp eax, 0x408690
jl 0x4038d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408600]
jne 0x403a0d
mov eax, dword [0x408b80]
cmp eax, 1
je 0x4039e7
test eax, eax
jne 0x403910
cmp dword [0x4080b4], 1
je 0x4039e7
cmp edx, 0xfc
je 0x403a0d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403947
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404bf0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404260
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40398a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404260
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x407474
push edi
call fcn.00405be0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404bf0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404c00
lea eax, [ebp - 0xa0]
push 0x407454
push eax
call fcn.00404c00
push dword [esi + 0x408604]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404c00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405b54
add esp, 0x2c
pop edi
jmp 0x403a0d
lea eax, [ebp + 8]
lea esi, [esi + 0x408604]
push 0
push eax
push dword [esi]
call fcn.00404260
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4015ed
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c88
call fcn.004104b0
push edi
push dword [ebp + 8]
call fcn.00401ec0
mov edi, eax
cmp edi, 0xffffffff
pop ecx
mov dword [ebp - 4], edi
je 0x40171d
push esi
xor esi, esi
push 0x2c82
lea eax, [ebp - 0x2c86]
push esi
push eax
mov word [ebp - 0x2c88], si
call sub.msvcrt.dll_memset
push 4
lea eax, [ebp - 0x2c88]
push eax
push edi
call fcn.004024ef
add esp, 0x18
cmp word [ebp - 0x2c88], 0xc350
jne 0x401713
cmp word [ebp - 0x2c86], 0x80
jae 0x401713
movzx eax, word [ebp - 0x2c86]
imul eax, eax, 0x59
push eax
lea eax, [ebp - 0x2c84]
push eax
push edi
call fcn.004024ef
add esp, 0xc
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x401713
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40170d
cmp word [ebp - 0x2c86], si
mov dword [ebp + 8], esi
jbe 0x40170d
lea esi, [ebp - 0x2c82]
push ebx
movzx ebx, word [esi - 2]
cmp bx, 0xc000
jb 0x4016bd
lea eax, [esi + 8]
push eax
call dword [sym.imp.USER32.dll_RegisterClipboardFormatA]
movzx ebx, ax
push dword [esi]
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
test eax, eax
je 0x4016fa
push dword [esi]
push eax
push dword [esi + 4]
push dword [ebp - 4]
call fcn.00402a4c
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
movzx eax, bx
push edi
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
movzx eax, word [ebp - 0x2c86]
inc dword [ebp + 8]
add esi, 0x59
cmp dword [ebp + 8], eax
jb 0x4016a5
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop edi
leave
ret 4

Function at 0x4018f6
Capabilities:
Link many functions at runtime

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x401902
xor eax, eax
inc eax
pop edi
ret
push str.GDIPlus.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
cmp eax, edi
mov dword [esi], eax
je 0x401997
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.GdiplusStartup
push eax
call edi
push str.GdiplusShutdown
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.GdipSaveImageToFile
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.GdipGetImageEncodersSize
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.GdipGetImageEncoders
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.GdipCreateBitmapFromHBITMAP
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.GdipDisposeImage
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.GdipLoadImageFromFile
push dword [esi]
mov dword [esi + 0x1c], eax
call edi
push str.GdipCreateHBITMAPFromBitmap
push dword [esi]
mov dword [esi + 0x20], eax
call edi
push str.GdipCreateBitmapFromFile
push dword [esi]
mov dword [esi + 0x24], eax
call edi
xor edi, edi
mov dword [esi + 0x28], eax
inc edi
mov eax, edi
pop edi
ret
Function at 0x401da3
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
xor edi, edi
mov esi, eax
mov dword [ebp - 4], edi
call fcn.004018f6
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x401dca
push edi
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 8]
call eax
jmp 0x401dcd
xor eax, eax
inc eax
cmp eax, edi
jne 0x401e33
push ebx
lea eax, [ebp - 0x58]
push eax
push 0x54
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetObjectA]
push edi
mov dword [ebp - 0x30], edi
call dword [sym.imp.USER32.dll_GetDC]
push edi
mov esi, eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x44]
push 4
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push esi
push edi
mov ebx, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x401e29
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteObject]
pop ebx
pop edi
xor eax, eax
pop esi
leave
ret 4

Function at 0x40214a
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402165
xor eax, eax
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x108]
push 0x5c
push eax
call sub.msvcrt.dll_strrchr
add esp, 0x10
test eax, eax
je 0x402199
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call fcn.0040214a
pop ecx
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
leave
ret

Function at 0x4021ca
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x248]
call fcn.004020b7
pop ecx
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402232
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.004059de
test eax, eax
je 0x402226
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x4021fa
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor eax, eax
inc eax
jmp 0x402234
xor eax, eax
pop esi
leave
ret

Function at 0x40258c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
xor esi, esi
cmp dword [ebp + 0x18], edi
je 0x4025ac
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test al, 0x10
je 0x4025ac
mov esi, 0x2000000
push edi
push esi
push 3
push edi
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4025e1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x4028e7
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
push 1
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_GetClipboardData]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x40297d
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov ebx, eax
cmp ebx, edi
je 0x40297c
cmp dword [ebp + 0xc], edi
push esi
je 0x402939
push edi
push edi
push 4
push edi
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push 2
push edi
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
jmp 0x402944
push dword [ebp + 8]
call fcn.00401ed9
pop ecx
mov esi, eax
cmp esi, 0xffffffff
je 0x402972
push ebx
push esi
call fcn.00401ef2
cmp dword [ebp + 0xc], edi
pop ecx
pop ecx
je 0x402964
push 0x412128
push esi
call fcn.00401ef2
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 4], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
pop esi
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
pop edi
leave
ret

Function at 0x402989
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
test ebp, ebp
je 0x4029e5
push ebx
push edi
push ebp
call sub.msvcrt.dll_strlen
pop ecx
lea ebx, [eax + 1]
push ebx
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4029e3
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push ebx
push ebp
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, eax
neg esi
sbb esi, esi
neg esi
pop edi
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x402c7b
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov esi, eax
call fcn.00401ec0
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
je 0x402ccc
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
call fcn.00402bbe
mov edx, edi
mov eax, esi
call fcn.00402b98
push edi
push dword [esi]
push ebx
call fcn.004024ef
mov eax, dword [esi]
add esp, 0xc
mov byte [edi + eax], 0
push ebx
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor eax, eax
inc eax
pop edi
jmp 0x402cce
xor eax, eax
pop esi
pop ebx
ret 4
Function at 0x402d02
Capabilities:
Enumerate files on windows

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x402d2e
lea eax, [esi + 0x148]
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov dword [esp + 4], ecx
jmp 0x402d49
lea ecx, [esi + 0x148]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
mov dword [esp + 4], eax
jne 0x402d50
call fcn.00402d9a
cmp dword [esp + 4], 0
je 0x402d93
push ebx
push ebp
push edi
lea edi, [esi + 0x288]
lea ebx, [esi + 0x174]
add esi, 0x3cc
push esi
call sub.msvcrt.dll_strlen
push ebx
mov ebp, eax
call sub.msvcrt.dll_strlen
lea eax, [eax + ebp + 1]
cmp eax, 0x143
pop ecx
pop ecx
jae 0x402d8d
push ebx
push esi
mov eax, edi
call fcn.004021a6
pop ecx
pop ecx
jmp 0x402d90
mov byte [edi], 0
pop edi
pop ebp
pop ebx
mov eax, dword [esp + 4]
pop esi
pop ecx
ret

Function at 0x402ec9
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x411e1c
push 1
xor edi, edi
push edi
push 0x411e2c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, edi
jl 0x402fbb
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp dword [ebp + 0x1c], edi
je 0x402f23
mov eax, dword [ebp - 4]
push dword [ebp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
cmp dword [ebp + 0x14], edi
je 0x402f34
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp ebx, edi
jl 0x402f47
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
neg ebx
push ebx
push dword [ebp + 0x18]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
cmp word [ebp + 0x24], di
je 0x402f65
mov eax, dword [ebp - 4]
push dword [ebp + 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x411e3c
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x402fb2
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x210]
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret