joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019c0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41c4b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, ecx
push edi
xor edi, edi
mov al, byte [esi + 0x37]
mov dword [esp + 0xc], edi
test al, al
je 0x401a52
mov al, byte [esi + 0x100c]
mov cl, byte [esi + 0x100d]
cmp al, cl
jne 0x401a04
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov cl, byte [esi + 0x100c]
mov al, byte [esi + 0x100d]
cmp cl, al
je 0x401a68
mov ecx, dword [esp + 0x24]
xor edx, edx
mov dl, byte [esi + 0x100d]
mov al, byte [edx + esi + 0xf0c]
mov edx, dword [esp + 0xc]
mov byte [edx + ebp], al
mov edx, dword [esp + 0xc]
mov al, byte [esi + 0x100d]
inc edx
inc al
dec ecx
mov dword [esp + 0xc], edx
mov byte [esi + 0x100d], al
je 0x401a68
cmp byte [esi + 0x100c], al
jne 0x401a18
jmp 0x401a68
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0x18]
lea eax, [esp + 0xc]
push edi
push eax
push ecx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0xc], edi
je 0x401b81
mov al, byte [esi + 0x35]
test al, al
je 0x401b69
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], edi
call sub.MFC42.DLL_CString::CString_2
mov edi, dword [esi + 0x1c8]
mov byte [esp + 0x18], 1
test edi, edi
jne 0x401ab2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov dword [esi + 0x1c8], edi
jmp 0x401abe
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x1c8], eax
mov eax, dword [esi + 0x1c8]
lea ecx, [esp + 0x24]
sub eax, edi
push eax
push str._r_nIN___4d__:
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x18]
add esp, 0xc
xor edi, edi
test eax, eax
jle 0x401b34
xor edx, edx
lea eax, [esp + 0x20]
mov dl, byte [edi + ebp]
push edx
push str._02X
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::operator
mov edx, edi
and edx, 0x8000000f
jns 0x401b18
dec edx
or edx, 0xfffffff0
inc edx
cmp edx, 0xf
jne 0x401b2b
push 0x42f67c
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0xc]
inc edi
cmp edi, eax
jl 0x401ae3
mov eax, dword [esp + 0x24]
mov byte [esi + 0x36], 1
push eax
push esi
call fcn.00401700
add esp, 8
lea ecx, [esp + 0x20]
mov byte [esi + 0x36], 0
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
mov ecx, dword [esp + 0x10]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x401ba0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41c4d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x35]
test al, al
je 0x401cbf
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString_2
mov edi, dword [esi + 0x1c8]
mov byte [esp + 0x1c], 1
test edi, edi
jne 0x401c08
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov dword [esi + 0x1c8], edi
jmp 0x401c14
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x1c8], eax
mov eax, dword [esi + 0x1c8]
lea ecx, [esp + 0x28]
sub eax, edi
push eax
push str._r_nOUT__4d__:
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
xor edi, edi
test ebp, ebp
mov dword [esp + 0x24], ebp
jle 0x401c8a
xor edx, edx
lea eax, [esp + 0x10]
mov dl, byte [edi + ebx]
push edx
push str._02X
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::operator
mov edx, edi
and edx, 0x8000000f
jns 0x401c6e
dec edx
or edx, 0xfffffff0
inc edx
cmp edx, 0xf
jne 0x401c81
push 0x42f67c
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x24]
inc edi
cmp edi, eax
jl 0x401c39
mov eax, dword [esp + 0x28]
mov byte [esi + 0x36], 1
push eax
push esi
call fcn.00401700
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esi + 0x36], 0
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, byte [esi + 0x37]
test al, al
je 0x401cf2
mov edx, dword [esi + 0x18]
lea edi, [esi + 0xee4]
lea ecx, [esp + 0x24]
push edi
push ecx
push ebp
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 0x18]
lea eax, [esp + 0x24]
push 1
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x401d33
mov eax, dword [esi + 0x1a4]
test eax, eax
jne 0x401d11
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x24]
push 0
push edx
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x401d33
xor edi, edi
test ebp, ebp
jle 0x401d33
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0x24]
push 0
push ecx
lea edx, [edi + ebx]
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc edi
cmp edi, ebp
jl 0x401d17
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4102b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov esi, dword [ebp + 0x190]
push esi
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
mov dword [esp + 0x14], 0
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0x18]
push eax
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410368
cmp dword [esp + 0x14], esi
jne 0x410368
cmp byte [ebx + 1], 0x46
jne 0x410368
cmp byte [ebx + 2], 0xb9
jne 0x410368
cmp byte [ebx + 3], 0x68
jne 0x410368
mov al, byte [ebx + 4]
test al, al
jne 0x410368
xor edx, edx
push 3
mov dl, byte [ebx + 5]
mov ecx, ebp
mov esi, edx
sub esi, 6
lea eax, [esi + 3]
push eax
push ebx
call fcn.00401890
mov dl, byte [esi + ebx + 6]
xor ecx, ecx
mov cl, ah
cmp dl, cl
jne 0x410368
cmp byte [esi + ebx + 7], al
jne 0x410368
cmp byte [esi + ebx + 8], 0x16
jne 0x410368
mov edi, dword [esp + 0x1c]
mov ecx, esi
mov edx, ecx
mov dword [esp + 0x10], esi
lea esi, [ebx + 6]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [ebp + 0x1cc], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x410390
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [ecx + 0x194]
push edi
push esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], esi
call sub.MFC42.DLL_operatornew
mov edi, eax
push pe_nt_image_headers32
mov dword [esp + 0x18], edi
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov ebp, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov ebx, dword [esp + 0x2c]
and ecx, 3
mov esi, dword [esp + 0x30]
rep stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
mov edi, ebp
add esp, 8
rep stosd dword es:[edi], eax
mov byte [ebp + 3], al
mov ecx, ebx
mov al, bl
mov edx, ecx
add al, 6
lea edi, [ebp + 5]
shr ecx, 2
mov byte [ebp], 0x46
mov byte [ebp + 1], 0xb9
mov byte [ebp + 2], 0x6a
mov byte [ebp + 4], al
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebx + 3]
and ecx, 3
push 2
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
push eax
push ebp
call fcn.00401890
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov cl, ah
mov byte [ebx + ebp + 5], cl
mov byte [ebx + ebp + 6], al
mov byte [ebx + ebp + 7], 0x16
lea eax, [edx + 8]
xor ebx, ebx
mov dword [esp + 0x24], eax
test eax, eax
jle 0x41048f
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
lea esi, [ebx + ebp]
push 0
lea ecx, [eax - 1]
lea edi, [edx + 1]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
push eax
mov eax, dword [esp + 0x20]
push edx
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x18]
mov esi, eax
lea eax, [edx - 1]
add ebx, eax
mov eax, dword [esp + 0x24]
cmp ebx, eax
jl 0x410440
jmp 0x410493
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
push eax
call sub.MFC42.DLL_operatordelete
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x4104c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x5c
xor eax, eax
push ebx
mov dword [esp + 8], eax
push ebp
mov dword [esp + 0x10], eax
push esi
mov dword [esp + 0x18], eax
push edi
mov dword [esp + 0x20], eax
mov ebp, ecx
push eax
push eax
push eax
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esp + 0x24], eax
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
stosb byte es:[edi], al
push ecx
mov ecx, dword [ebp + 0x18]
push edx
lea eax, [esp + 0x30]
push 0x41
push eax
push ecx
mov dword [ebp + 0x1cc], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41059f
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3e5
je 0x41053f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c
ret 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebp
call fcn.00402180
test al, al
jne 0x410588
mov al, byte [ebp + 0x23]
test al, al
je 0x410588
mov ecx, dword [ebp + 0x18]
lea edx, [esp + 0x10]
push 0
lea eax, [esp + 0x18]
push edx
push eax
push ecx
call esi
test eax, eax
jne 0x41059f
call ebx
cmp eax, 0x3e4
jne 0x41059f
push 5
call edi
jmp 0x410551
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c
ret 4
mov eax, dword [esp + 0x2a]
mov ebx, dword [esp + 0x2b]
mov edi, dword [esp + 0x70]
and eax, 0xff
and ebx, 0xff
mov dword [ebp + 0x1c4], eax
test edi, edi
je 0x4105d4
mov ecx, ebx
lea esi, [esp + 0x2c]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [ebp + 0x1cc], ebx
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x5c
ret 4
Function at 0x410600
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x5c
xor eax, eax
push ebx
mov dword [esp + 8], eax
push ebp
mov dword [esp + 0x10], eax
push esi
mov dword [esp + 0x18], eax
push edi
mov dword [esp + 0x20], eax
mov ebp, ecx
push eax
push eax
push eax
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esp + 0x24], eax
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x70]
xor edx, edx
stosb byte es:[edi], al
mov byte [esp + 0x2a], cl
mov ecx, dword [esp + 0x74]
mov eax, ecx
mov byte [esp + 0x2e], cl
shr eax, 0x10
mov dl, ah
mov byte [esp + 0x2c], al
xor eax, eax
mov byte [esp + 0x29], 0x5a
mov al, ch
mov ecx, dword [esp + 0x78]
test cl, cl
mov byte [esp + 0x2b], dl
mov byte [esp + 0x2d], al
mov byte [esp + 0x2f], cl
jbe 0x410695
mov esi, dword [esp + 0x7c]
test esi, esi
je 0x410695
and ecx, 0xff
lea edi, [esp + 0x30]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea eax, [esp + 0x2c]
push 0x40
push eax
mov ecx, ebp
call fcn.00401890
neg al
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
mov byte [esp + 0x68], al
push ecx
mov ecx, dword [ebp + 0x18]
push edx
lea eax, [esp + 0x30]
push 0x41
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test esi, esi
jne 0x410702
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3e5
jne 0x410702
mov edi, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ecx, dword [ebp + 0x18]
lea edx, [esp + 0x10]
push 0
lea eax, [esp + 0x18]
push edx
push eax
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x410702
call ebx
cmp eax, 0x3e4
je 0x4106e1
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x10
Function at 0x41bad0
Capabilities:
Get mac address on windows

Disassembly:
push ecx
push esi
push edi
mov ecx, 0x40
xor eax, eax
mov edi, 0x433504
mov dword [esp + 8], eax
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0
call sub.iphlpapi.dll_GetAdaptersInfo
mov ecx, dword [esp + 8]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
lea edx, [esp + 8]
mov esi, eax
push edx
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x41bb5e
test esi, esi
je 0x41bb5e
mov al, byte [esi + 0x199]
xor ecx, ecx
mov cl, byte [esi + 0x198]
xor edx, edx
mov dl, byte [esi + 0x197]
push eax
push ecx
xor eax, eax
mov al, byte [esi + 0x196]
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [esi + 0x195]
mov dl, byte [esi + 0x194]
push eax
push ecx
lea eax, [esi + 8]
push edx
push eax
push str.NET__s__02X_02X_02X_02X_02X_02X
push 0x433504
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x24
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 0x433504
pop edi
pop esi
pop ecx
ret

Function at 0x41bc80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x14]
mov cl, 0x4c
test eax, eax
mov byte [esp + 4], cl
mov byte [esp + 3], 0
jbe 0x41bd1d
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x1c]
sub edi, esi
mov dword [esp + 0x24], eax
mov al, byte [edi + esi]
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x20], al
mov dl, cl
mov ebx, dword [esp + 0x20]
inc dl
and ebx, 0xff
and edx, 0xff
and ebp, 0xff
xor al, cl
mov bl, byte [ebx + 0x427838]
sub bl, byte [edx + 0x427938]
xor edx, edx
mov dl, byte [ebp + 0x427938]
and ebx, 0xff
xor ebx, edx
mov dl, byte [esp + 0x13]
add al, dl
mov bl, byte [ebx + 0x427838]
mov cl, al
mov eax, dword [esp + 0x24]
mov byte [esi], bl
mov bl, byte [esp + 0x28]
mov byte [esp + 0x14], cl
add dl, bl
inc esi
dec eax
mov byte [esp + 0x13], dl
mov dword [esp + 0x24], eax
jne 0x41bcac
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x41bd30
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x18]
mov cl, 0x4c
mov byte [esp + 7], 0
test edi, edi
mov byte [esp + 8], cl
jbe 0x41bdac
mov eax, dword [esp + 0x14]
push ebx
push esi
mov esi, dword [esp + 0x18]
sub esi, eax
mov ebx, dword [esp + 0x10]
xor edx, edx
mov dl, byte [esi + eax]
and ebx, 0xff
mov dl, byte [edx + 0x427938]
xor dl, byte [ebx + 0x427938]
mov bl, cl
inc bl
and ebx, 0xff
add dl, byte [ebx + 0x427938]
and edx, 0xff
mov dl, byte [edx + 0x427938]
mov bl, dl
mov byte [eax], dl
mov dl, byte [esp + 0x24]
xor bl, cl
mov cl, bl
mov bl, byte [esp + 0xf]
add cl, bl
add bl, dl
inc eax
dec edi
mov byte [esp + 0x10], cl
mov byte [esp + 0xf], bl
jne 0x41bd53
pop esi
pop ebx
pop edi
add esp, 8
ret
Function at 0x7003301
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x7003310
pop dword [ebp - 0x1c]
mov eax, 0x7003310
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xe107dc2f
sub dword [ebp - 0x2c], 0x92b596e4
mov dword [ebp - 0x28], 0x813d63ed
add dword [ebp - 0x28], 0xb0f5e858
mov dword [ebp - 0x24], 0xddc6137b
add dword [ebp - 0x24], 0x6e8630b3
mov dword [ebp - 0x20], 0xeea62768
add dword [ebp - 0x20], 0x1159d898
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x636d1c9c
add eax, 0xa3940394
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x9ef244cb
sub dword [ebp - 0x2c], 0x2a7fdb75
mov dword [ebp - 0x28], 0x53e5141c
sub dword [ebp - 0x28], 0x1278b2a7
mov dword [ebp - 0x24], 0xddbd723a
add dword [ebp - 0x24], 0x85b1fa32
mov dword [ebp - 0x20], 0xf87b1e8f
add dword [ebp - 0x20], 0x784e171
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3c6a7
push 0
call eax
mov ecx, 0x5a6ee8ca
sub ecx, 0x5a6e9999
mov esi, eax
mov edi, 0x701e000
add edi, dword [ebp - 0x1c]
mov edx, 0xcfc986e4
add edx, 0x40306846
xor dword [ebp - 0x18], esi
mov ebx, dword [edi]
mov dword [ebp - 8], 0xeb4d1d22
xor ebx, edx
sub dword [ebp - 0xc], 0x272682f7
mov dword [esi], ebx
mov dword [ebp - 4], 0xa0288892
add esi, 4
add edi, 0x10d5c737
sub edi, 0x10d5c733
loop 0x7003422
add eax, 0x12f97
xor ebx, ebx
add ebx, eax
add eax, 0x1842b373
add eax, 0xe7bd4c92
mov ecx, 0x86802811
sub ecx, 0x7f802811
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x700c938
Capabilities:
Set current directory

Disassembly:
push 8
mov eax, 0x7010cdd
call fcn.07001ea6
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0700cc00
xor ebx, ebx
mov dword [edi], vtable.FileSharedStream.0
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0700d3f5
lea ecx, [ebp - 0x10]
call fcn.0700c8d5
mov eax, dword [edi + 0x14]
mov byte [ebp - 4], 2
push dword [eax + 0x14]
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x700c9a5
mov eax, dword [eax + 0x14]
jmp 0x700c9aa
mov eax, 0x70127b2
push 0x701411c
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov dword [edi + 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x700c9dc
mov ecx, dword [edi + 4]
call fcn.07007826
lea ecx, [ebp - 0x10]
mov dword [edi + 8], eax
call fcn.07003301
mov eax, edi
call fcn.07002b7f
ret 4
push str.file_does_not_exist
push ebx
call fcn.07003301
int3
Function at 0x403500
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x403514
inc dword [0x4c86a8]
add dword [0x4c4a14], 0x108
mov edx, dword [0x4c4a14]
push esi
push edi
mov ecx, 0x42
mov esi, 0x4c7170
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc]
mov esi, edx
mov dword [esi + 0x2c], ecx
test al, al
je 0x403543
push 0
mov eax, 0x4c9718
call fcn.004165b0
cmp dword [0x4c86d4], 0
mov dword [0x4ca1f8], 0
mov dword [0x4ca1fc], 0
je 0x40356b
push 0x4c8d40
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [esp + 0x10], 0
jne 0x4035ef
or ecx, 0xffffffff
cmp byte [esi + 0xee], 0
jne 0x40359a
xor eax, eax
cmp byte [esp + 0x14], 0x65
sete al
mov byte [esi + 0xee], al
test al, al
je 0x40359a
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4ca204], 0
je 0x4035ac
cmp dword [0x4ca200], 0
jne 0x4035b5
cmp byte [esi + 0xee], 0
je 0x4035ef
cmp byte [esi + 0xee], 0
mov byte [esi + 0xec], 0
jne 0x4035ef
cmp dword [0x4ca204], 0
jge 0x4035d7
pop edi
mov dword [esi + 0xe0], ecx
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xdc], eax
mov edx, dword [0x4ca204]
mov dword [esi + 0xe0], edx
pop edi
pop esi
ret
Function at 0x4042b0
Capabilities:
Write clipboard data

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jne 0x4042d3
call fcn.00404580
test eax, eax
jne 0x4042d3
push str.Cant_open_clipboard_for_writing.
call fcn.004043b0
pop esi
pop ebx
pop ecx
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x40430c
cmp dword [esi + 0x18], ebx
je 0x4042fe
cmp dword [esi + 8], ebx
je 0x4042f3
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
push 0x4a1bf4
call fcn.004043b0
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp eax, ebx
je 0x404345
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x40436c
cmp word [ecx], bx
push eax
sete byte [esp + 0x13]
call edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
cmp byte [esp + 0xf], bl
je 0x40436c
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], ebx
je 0x404362
cmp dword [esi + 8], ebx
je 0x404357
mov ecx, dword [esi]
push ecx
call edi
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
mov edx, dword [esi + 4]
push edx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x404381
mov dword [esi + 4], ebx
jmp 0x404345
cmp dword [esi + 0x18], ebx
je 0x40439e
cmp dword [esi + 8], ebx
je 0x404393
mov eax, dword [esi]
push eax
call edi
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
push 0x4a1c14
call fcn.004043b0
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x404480
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
test esi, esi
je 0x404490
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x40455f
push 0x104
lea ecx, [esp + 4]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
push 0xb
lea edx, [esp + 4]
push str.Link_Source
push edx
call fcn.0048e447
add esp, 0xc
test eax, eax
je 0x404556
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.0048dbf9
add esp, 8
test eax, eax
je 0x404556
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.0048dbf9
add esp, 8
test eax, eax
je 0x404556
lea edx, [esp]
push str.Native
push edx
call fcn.0048dbf9
add esp, 8
test eax, eax
je 0x404556
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.0048dbf9
add esp, 8
test eax, eax
je 0x404556
lea ecx, [esp]
push str.MSDEVColumnSelect
push ecx
call fcn.0048dbf9
add esp, 8
test eax, eax
je 0x40454c
lea edx, [esp]
push str.MSDEVLineSelect
push edx
call fcn.0048dbf9
add esp, 8
test eax, eax
jne 0x404565
test esi, esi
je 0x404556
mov dword [esi], 1
xor eax, eax
add esp, 0x20c
ret
xor eax, eax
mov word [esp], ax
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
add esp, 0x20c
ret
Function at 0x404580
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [ecx + 0x18], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
jne 0x40460a
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
mov edi, eax
mov eax, dword [0x4c8538]
push eax
call ebx
test eax, eax
jne 0x4045ff
mov eax, dword [0x4c4918]
cmp eax, 0xffffffff
je 0x4045cf
test eax, eax
je 0x404616
call esi
mov ecx, dword [0x4c4918]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x404616
push 1
push 0x8000012f
mov dword [0x4c491c], 0
call fcn.004013d0
mov edx, dword [0x4c8538]
add esp, 8
push edx
mov dword [0x4c491c], 1
call ebx
test eax, eax
je 0x4045b0
mov eax, dword [esp + 0xc]
mov dword [eax + 0x18], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret